:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#20332c;background:#f7f8f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible{outline:3px solid #b0cc70;outline-offset:2px}input{border:1px solid #dce2d8;border-radius:9px;padding:12px;background:white;color:#20332c;min-width:0}label{display:flex;flex-direction:column;gap:8px;font-size:13px}button{border:0;border-radius:9px;padding:11px 16px;background:#edf0e9;color:#294535}h1{font-size:32px;letter-spacing:-1px;margin:8px 0 0;font-weight:600}h2{font-size:19px;font-weight:600;margin:0}p{line-height:1.5}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#7b897c;margin:0 0 8px}.brand{font-size:25px;font-weight:700;letter-spacing:-1px}.brand span{color:#87ad49}.primary{background:#234d3b;color:white;width:100%;padding:16px;font-weight:600}.muted{color:#839080;font-size:12px}.small{font-size:11px}#login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top right,#e0ebcc,transparent 65%)}#login[hidden], [hidden]{display:none!important}#login form{width:min(420px,90vw);background:white;padding:36px;border:1px solid #e5e9df;border-radius:20px}#login h1{font-size:46px;margin-top:22px}#login label{margin:20px 0}#login .eyebrow{margin-top:28px}#login-error{color:#a33232}#workspace{display:grid;grid-template-columns:92px minmax(350px,1fr) 370px;min-height:100vh}aside{padding:26px 12px;border-right:1px solid #e3e7dd;background:#fff;display:flex;align-items:center;flex-direction:column;gap:20px}.nav{width:68px;background:transparent;font-size:24px;padding:12px 3px}.nav span{display:block;font-size:10px;margin-top:8px}.nav.active{background:#eaf0df;color:#315334}.aside-bottom{margin-top:auto;text-align:center;font-size:10px}.aside-bottom button{font-size:10px;background:transparent;padding:10px 0}.avatar{display:grid;place-items:center;background:#e7eddb;border-radius:50%;width:34px;height:34px;margin:auto}main{padding:36px 34px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;gap:16px}.status{font-size:11px;color:#587355;white-space:nowrap}.status i{display:inline-block;width:6px;height:6px;background:#75a15f;border-radius:50%;margin-right:6px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.segmented{display:flex;background:#e9ede3;padding:4px;border-radius:10px}.segmented button{background:transparent;font-size:12px;padding:10px 18px}.segmented .selected{background:white;box-shadow:0 1px 5px #20332c12}.tax{flex-direction:row;align-items:center;font-size:11px}.search{display:flex;align-items:center;margin:22px 0 16px;border:1px solid #dde3d7;background:white;border-radius:10px;padding:0 14px}.search span{font-size:26px;color:#8d9b87}.search input{border:0;background:transparent;width:100%}.categories{display:flex;gap:8px;flex-wrap:wrap}.categories button{border:1px solid #dfe5d7;background:transparent;border-radius:30px;font-size:11px;padding:8px 13px}.categories .selected{background:#294f3c;border-color:#294f3c;color:white}.section-title{display:flex;align-items:center;justify-content:space-between;margin:32px 0 18px}.section-title span{color:#89917f;font-size:11px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}.product{text-align:left;background:white;padding:12px;border:1px solid #e3e8dc;border-radius:14px;transition:transform .15s}.product:hover{transform:translateY(-3px);border-color:#9bb88c}.product-art{height:115px;display:grid;place-items:center;border-radius:9px;background:#eef0e4;font-size:44px;margin-bottom:16px}.product:nth-child(3n+2) .product-art{background:#eee8dd}.product:nth-child(3n) .product-art{background:#e5ebe5}.product-category{color:#88927f;font-size:10px}.product-name{font-size:13px;font-weight:600;margin:6px 0 14px}.product-bottom{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600}.add{display:grid;place-items:center;background:#eaf0df;border-radius:50%;width:26px;height:26px}#cart-panel{background:white;border-left:1px solid #e3e7dd;padding:35px 24px;display:flex;flex-direction:column}.cart-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.subtle{background:transparent;color:#819075;font-size:12px;padding:8px}#table-label{margin-bottom:20px}#cart-lines{flex:1;min-height:170px}.empty{padding:50px 14px;text-align:center;color:#8b9782;font-size:13px}.cart-line{padding:16px 0;border-bottom:1px solid #eef0e9}.line-top{display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:600}.quantity{display:flex;align-items:center;gap:13px;margin-top:12px;font-size:12px}.quantity button{padding:3px 9px;font-size:16px}.amount{display:flex;justify-content:space-between;margin:14px 0;font-size:13px}.total{font-size:23px;border-top:1px dashed #dce3d5;padding-top:22px;margin-top:22px;font-weight:600}.checkout label{margin:24px 0 14px}#notice{font-size:12px;color:#a44935}dialog{border:1px solid #dce3d5;padding:32px;border-radius:18px;min-width:320px;max-width:90vw}dialog::backdrop{background:#152c2466}#receipt-body{margin:22px 0;font-size:14px;line-height:1.8}.sale-row{background:white;border:1px solid #e2e7dc;padding:18px;margin:12px 0;border-radius:10px;display:flex;justify-content:space-between;gap:14px;font-size:13px}@media(max-width:1100px){#workspace{grid-template-columns:76px 1fr 320px}main{padding:28px 20px}.toolbar{align-items:flex-start;flex-direction:column}h1{font-size:26px}#cart-panel{padding:28px 18px}}@media(max-width:760px){#workspace{grid-template-columns:64px 1fr}aside{padding:22px 4px;grid-row:1/3}.nav{width:54px}main{padding:24px 16px}#cart-panel{grid-column:2;border-top:1px solid #e3e7dd;border-left:0}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-art{height:90px}.status{display:none}.product-name{min-height:32px}h1{font-size:24px}.tax{font-size:10px}header{margin-bottom:24px}}

select{font:inherit;border:1px solid #dce2d8;border-radius:9px;padding:12px;background:white;color:#20332c;width:100%}.confirmation{flex-direction:row;align-items:center;line-height:1.5}.confirmation input{flex-shrink:0}select:focus-visible{outline:3px solid #b0cc70;outline-offset:2px}.sale-row span{overflow-wrap:anywhere}

.cart-line{padding:14px 10px;border-bottom:0;border-radius:8px}.cart-line:nth-child(even){background:#f0f3ec}.cart-line:nth-child(odd){background:#fff}.split-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.split-inputs label{margin:12px 0 0}.split-inputs input{width:100%}.transfer-button{width:100%;text-align:left;padding:10px 12px;font-size:12px;background:#eef3e9;margin:6px 0}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}#transfer-dialog{width:380px}#transfer-dialog label{margin:16px 0}#transfer-dialog input:not([type=checkbox]){width:100%}#transfer-dialog .confirmation{font-size:13px}#split-hint{margin:6px 0}

.compact{width:auto;padding:10px 15px;font-size:12px}#manage-search{width:100%}.sale-info{flex:1;min-width:0}.sale-info p{margin:8px 0 0}.sale-row{align-items:center;flex-wrap:wrap}#product-dialog{width:440px;max-height:90vh;overflow-y:auto}#product-form label{margin:14px 0}#product-error{color:#a44935;font-size:12px}#receipt-body{overflow-wrap:anywhere}#receipt-print{width:100%;margin-bottom:10px}#receipt{max-height:90vh;overflow-y:auto}
@media print{@page{size:80mm auto;margin:5mm}body{background:white}body>*{display:none!important}body>#receipt[open]{display:block!important;position:static;width:70mm;min-width:0;max-width:none;max-height:none;overflow:visible;border:0;padding:0;margin:0;box-shadow:none}#receipt::backdrop{display:none}#receipt button{display:none!important}#receipt-body{font-size:11px}#receipt h2{font-size:18px}}

.order-options{margin-bottom:4px}.order-options label{font-size:11px}.order-options input,.order-options select{width:100%;padding:9px}.operation-form{display:flex;gap:12px;align-items:end;margin:18px 0;flex-wrap:wrap}.operation-form input{width:180px}.session-summary{padding:16px;background:#eaf0df;border-radius:10px;line-height:1.7;font-size:13px}#customer-search{width:100%}#customer-dialog,#stock-dialog,#return-dialog{width:420px;max-height:90vh;overflow:auto}#customer-dialog label,#stock-dialog label,#return-dialog label{margin:16px 0}#operations-notice,#stock-error,#return-error,#customer-error{font-size:12px;color:#a44935}#stock-close,#return-close{width:100%;margin-top:10px}.aside-bottom{padding-top:20px}

#return-lines .return-item{display:grid;grid-template-columns:minmax(0,1fr) 80px;align-items:center;gap:12px;padding:10px;border-radius:8px;background:#f0f3ec;font-size:13px}#return-lines input{width:80px;padding:8px}#return-summary{padding:10px 0;font-size:13px}#return-all{font-size:12px}

.head-office-mode #workspace{grid-template-columns:92px minmax(0,1fr)}.head-office-mode #cart-panel{display:none}.head-office-mode main{max-width:1200px;width:100%;margin:auto}.hq-banner{background:#e7eddb;border:1px solid #dce5d0;border-radius:14px;padding:24px}.hq-banner h2{font-size:28px}.hq-banner p:last-child{font-size:13px;color:#61745c;margin-bottom:0}.branch-context{margin-left:auto;display:flex;flex-direction:column;gap:5px;min-width:130px;max-width:220px}.branch-context span{font-size:10px;color:#7b897c}.branch-context select{padding:8px;font-size:12px}#hq-dialog{width:440px;max-height:90vh;overflow:auto}#hq-dialog label{margin:15px 0}textarea{font:inherit;border:1px solid #dce2d8;border-radius:9px;padding:12px;resize:vertical}#hq-error,#hq-notice{font-size:12px;color:#a44935}.head-office-mode .sale-row{margin:8px 0}@media(max-width:760px){.head-office-mode #workspace{grid-template-columns:64px minmax(0,1fr)}.branch-context{min-width:100px}.branch-context select{max-width:150px}header{flex-wrap:wrap}}

.finance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:18px}.finance-grid input,.finance-grid select{width:100%}.finance-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:24px 0}.summary-card{display:flex;flex-direction:column;gap:12px;background:white;border:1px solid #e0e6d8;border-radius:12px;padding:20px}.summary-card strong{font-size:24px}.finance-table{width:100%;border-collapse:collapse;background:white;font-size:12px}.finance-table th,.finance-table td{padding:11px;text-align:left;border-bottom:1px solid #e8eddf}.finance-table tr:nth-child(even){background:#f0f3ec}.table-scroll{overflow:auto}.journal-detail{background:white;border:1px solid #e0e6d8;border-radius:9px;margin:10px 0;padding:14px;overflow:auto}.journal-detail summary{cursor:pointer;font-size:12px}.journal-detail table{margin-top:14px}#finance-action-dialog,#account-dialog{width:420px;max-height:90vh;overflow:auto}#finance-action-dialog label,#account-dialog label{margin:15px 0}#finance-notice,#finance-action-error,#account-error,#price-notice{font-size:12px;color:#a44935}#finance-action-close,#account-close{margin-top:10px;width:100%}#price-form label{min-width:140px}#price-form input,#price-form select{max-width:250px}.nav{padding:8px 3px}aside{gap:13px}

.office-shell{background:#edf1f7;color:#17263e}.office-shell #workspace,.office-shell.head-office-mode #workspace{grid-template-columns:230px minmax(0,1fr)}.office-shell aside{background:#101e35;color:#dfe8f7;align-items:stretch;border:0;padding:30px 18px;gap:9px}.office-wordmark{display:flex;align-items:center;gap:12px;padding:0 10px 30px;letter-spacing:2px;font-size:15px;font-weight:700}.office-wordmark b{background:#4ad6bd;color:#10273a;border-radius:11px;padding:10px 13px;font-size:22px}.office-wordmark small{display:block;color:#829bbd;font-size:9px;letter-spacing:2px;margin-top:6px}.office-shell .nav{display:flex;align-items:center;gap:12px;width:100%;border-radius:9px;text-align:left;color:#a9bad1;font-size:14px;padding:15px}.office-shell .nav span{display:inline;margin:0;font-size:13px}.office-shell .nav .nav-icon{font-size:21px}.office-shell .nav.active{background:#263d5a;color:white;border-left:3px solid #4ad6bd}.office-shell .aside-bottom{margin-top:auto;text-align:left}.office-shell .aside-bottom .avatar{margin:16px 0;background:#2c4261;color:white}.office-shell .aside-bottom button{color:#9bb0ce;font-size:12px}.office-shell main{max-width:1400px;padding:35px 48px}.office-shell h1{font-size:32px;font-weight:650}.office-shell .hq-banner{background:linear-gradient(120deg,#172e4d,#245269);border:0;color:white;padding:28px}.office-shell .hq-banner p:last-child,.office-shell .hq-banner .eyebrow{color:#b6cadd}.hq-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.hq-metric{padding:20px;border-radius:12px;border:1px solid #dce4f0;background:white;display:flex;flex-direction:column;gap:14px}.hq-metric span{font-size:12px;color:#71819a}.hq-metric strong{font-size:30px;letter-spacing:-1px}.office-shell .primary{background:#1f4b76}.office-shell button{color:#274b71;background:#e4ebf5}.office-shell .primary{color:white}.office-shell .sale-row{border-color:#dce4f0}.office-shell .section-title{margin-top:34px}.office-shell #login{background:linear-gradient(110deg,#101e35 0%,#203f60 47%,#e9eef6 47%,#f2f5fa 100%);place-items:center end;padding:6vw}.office-shell #login form{width:min(460px,90vw);border-radius:18px;padding:40px;box-shadow:0 24px 80px #132b4125}.office-shell #login .brand{font-size:15px;letter-spacing:2px;color:#244a70}.office-shell #login h1{font-size:40px;line-height:1.15}.office-shell .branch-context select{border-color:#cfd9e8}.office-shell .finance-table tr:nth-child(even){background:#f1f5fb}@media(max-width:1000px){.office-shell #workspace,.office-shell.head-office-mode #workspace{grid-template-columns:180px minmax(0,1fr)}.office-shell main{padding:28px 24px}.hq-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.office-shell #workspace,.office-shell.head-office-mode #workspace{grid-template-columns:75px minmax(0,1fr)}.office-shell aside{padding:20px 8px}.office-wordmark{padding:0 4px 22px}.office-wordmark span{display:none}.office-wordmark b{padding:8px 12px}.office-shell .nav{justify-content:center;padding:13px 5px}.office-shell .nav span:not(.nav-icon){display:none}.office-shell main{padding:24px 14px}.hq-metrics{gap:9px}.hq-metric{padding:14px}.office-shell #login{padding:20px;place-items:center;background:#172e4d}.office-shell #login form{padding:28px}.office-shell #login h1{font-size:34px}}

/* Navigation states must override the general Head Office button palette. */
.office-shell aside .nav{background:transparent;color:#e2eaf6;border-left:3px solid transparent;font-weight:600;min-height:52px}
.office-shell aside .nav span{color:inherit}
.office-shell aside .nav:hover{background:#223953;color:#fff}
.office-shell aside .nav.active{background:#294968;color:#fff;border-left-color:#4ad6bd}
.office-shell aside .nav:focus-visible{outline:3px solid #72e5cf;outline-offset:2px}
.field-caption{display:block;line-height:1.4}
.field-caption .currency-code{display:inline;white-space:nowrap}

#valuation-warning,#valuation-notice{font-size:12px;color:#97562b;line-height:1.6}#valuation-payables select{max-width:170px}#valuation-payables .confirmation{font-size:11px;flex-direction:row;align-items:center}#valuation-items td,#valuation-history td{white-space:nowrap}

.product-location{font-size:11px;color:#385c4a;background:#eef3e8;border-radius:5px;padding:5px 7px;margin:9px 0 0}
