: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:not-allowed}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:0 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}

.branch-stations{background:#fff;border:1px solid #cad6e5;border-radius:10px;padding:14px 18px;margin:10px 0}.branch-stations summary{cursor:pointer;font-weight:600}.branch-stations p{margin:8px 0}

#hq-units{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}#hq-units strong{font-size:18px;letter-spacing:0}#hq-units p{font-size:12px;line-height:1.6;margin:0}

.procurement-card{border:1px solid #d3ddec;border-radius:12px;background:white;padding:18px;margin:14px 0}.procurement-card h3{margin:0 0 10px}.procurement-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.procurement-line{display:grid;grid-template-columns:minmax(130px,2fr) minmax(75px,1fr) minmax(90px,1fr) auto;gap:10px;align-items:end;margin:12px 0}#procurement-dialog{width:min(860px,94vw);max-height:90vh;overflow:auto}#procurement-fields input,#procurement-fields select{min-width:0}#procurement-fields .confirmation{flex-direction:row;align-items:center}#procurement-notice,#procurement-error{color:#97562b;line-height:1.6}@media(max-width:650px){.procurement-line{grid-template-columns:1fr 1fr}.procurement-line label:first-child{grid-column:1/-1}}

#cost-confirm{width:min(760px,94vw);max-height:88vh;overflow:auto}#cost-confirm-info{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7}

#fiscal-dialog{width:min(920px,94vw);max-height:90vh;overflow:auto}#fiscal-fields label{margin:14px 0}#fiscal-fields .confirmation{flex-direction:row;align-items:center}#fiscal-error,#fiscal-notice{color:#97562b;line-height:1.6}#fiscal-fields .table-scroll{max-height:48vh;overflow:auto}
#payroll-dialog{width:min(820px,94vw);max-height:90vh;overflow:auto}#payroll-fields label{margin:12px 0}#payroll-fields input[type=checkbox]{width:auto;display:inline-block;margin-right:10px}#payroll-runs .sale-row{flex-wrap:wrap;gap:8px}#payroll-error,#payroll-notice{color:#97562b;line-height:1.6}#payroll-employees .sale-row:nth-child(even),#payroll-runs .sale-row:nth-child(even){background:#edf2f8}
#attendance-days .sale-row,#attendance-leave .sale-row,#attendance-schedules .sale-row{flex-wrap:wrap;gap:8px}#attendance-days .sale-row:nth-child(even),#attendance-leave .sale-row:nth-child(even){background:#edf2f8}#attendance-notice{color:#97562b;line-height:1.6}#attendance-page .procurement-actions{margin-bottom:24px}
.organization-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.organization-tabs button[aria-selected=true]{background:#214970;color:#fff}
.workspace-profile{position:relative;flex:none}
.workspace-profile summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.workspace-profile summary::-webkit-details-marker{display:none}
.profile-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d8e6f3;color:#193754;font-weight:700}
.profile-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:5;display:grid;gap:6px;min-width:160px;padding:8px;border:1px solid #cbd9e7;border-radius:8px;background:white}
.workspace-profile:not([open]) .profile-actions{display:none}
@media(max-width:650px){main>header{flex-wrap:wrap}.workspace-profile #staff-label{font-size:12px}}
.products{grid-template-columns:repeat(2,minmax(0,1fr))}
.category-mint{--category-fill:#e5f5e9}.category-sky{--category-fill:#e5f2fc}.category-lavender{--category-fill:#f0eafa}.category-peach{--category-fill:#fcece2}.category-cream{--category-fill:#fbf5dc}.category-rose{--category-fill:#fae8ee}.category-stone{--category-fill:#eef0ed}
button.product,.category-preview,#category-list button{background:var(--category-fill,#fff)}
.product[class*="category-"] .product-art{background:#ffffff72}
.category-icon{width:1.25em;height:1.25em;vertical-align:middle;flex:none}
.product-art .category-icon{width:42px;height:42px}
.category-preview,#category-list button{display:inline-flex;align-items:center;gap:8px;padding:8px;border-radius:8px}
#sidebar-toggle{margin-bottom:10px}
.sidebar-closed #workspace aside{display:none}
.sidebar-closed #workspace{grid-template-columns:minmax(0,1fr) minmax(260px,370px)}
.office-shell.sidebar-closed #workspace,.head-office-mode.sidebar-closed #workspace{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){
  .sidebar-closed #workspace,.office-shell.sidebar-closed #workspace,.head-office-mode.sidebar-closed #workspace{grid-template-columns:minmax(0,1fr)}
  .sidebar-closed #cart-panel{grid-column:1}
  #workspace aside{position:fixed;left:0;top:0;bottom:0;z-index:10;width:min(240px,75vw);overflow-y:auto;box-shadow:0 0 20px #101e3533}
  #workspace,#workspace main,#workspace #cart-panel,.office-shell #workspace,.office-shell.head-office-mode #workspace,.head-office-mode #workspace{grid-column:1;grid-template-columns:minmax(0,1fr);min-width:0}
  .office-shell #workspace aside .nav span:not(.nav-icon){display:inline}
}
#categories button .category-icon{margin-right:5px}
#sidebar-close{margin-top:auto}
#workspace-navigation[hidden]{display:none}
#managed-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#managed-products .managed-product-card{margin:0;min-width:0;background:var(--category-fill,#fff);display:flex;flex-wrap:wrap;gap:8px;align-content:start}
#managed-products .sale-info{flex:1 0 100%;min-width:0;overflow-wrap:anywhere}
#managed-products .sale-info .category-icon{margin-right:7px}
#managed-products .managed-product-card button{white-space:normal}
@media(max-width:480px){
  #managed-products{gap:8px}
  #managed-products .managed-product-card{padding:9px}
  #managed-products .managed-product-card button{padding:6px 8px}
}

.category-aqua{--category-fill:#e0f5f4}
.category-sage{--category-fill:#eaf1e3}
.category-lemon{--category-fill:#fff8d5}
.category-apricot{--category-fill:#ffe9d4}
.category-blush{--category-fill:#fce5e5}
.category-lilac{--category-fill:#f5e5f6}
.category-periwinkle{--category-fill:#e8ecff}
.category-ice{--category-fill:#edf7ff}
.category-sand{--category-fill:#f4ebdf}
.category-gradient-mint-sky{--category-fill:linear-gradient(135deg,#e5f5e9,#e5f2fc)}
.category-gradient-sky-lavender{--category-fill:linear-gradient(135deg,#e5f2fc,#f0eafa)}
.category-gradient-peach-rose{--category-fill:linear-gradient(135deg,#fcece2,#fae8ee)}
.category-gradient-cream-peach{--category-fill:linear-gradient(135deg,#fbf5dc,#fcece2)}
.category-gradient-aqua-sage{--category-fill:linear-gradient(135deg,#e0f5f4,#eaf1e3)}
.category-gradient-lilac-blush{--category-fill:linear-gradient(135deg,#f5e5f6,#fce5e5)}
.product-report-table caption{text-align:left;padding:8px 0;color:#526779}
.product-report-table tbody th{text-align:left;font-weight:600}
.product-report-table td,.product-report-table th{white-space:nowrap}
#managed-products-report{max-width:100%;overflow-x:auto}
.product-report-toggle{text-align:left;white-space:normal}
.product-report-toggle::before{content:"▸";margin-right:.5em}
.product-report-toggle[aria-expanded=true]::before{content:"▾"}
.product-report-detail[hidden]{display:none}
.product-report-table .product-report-detail td{white-space:normal;background:#f3f7fa;padding:14px}
.product-report-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 12px}
.product-report-fields dt{font-weight:600}
.product-report-fields dd{margin:3px 0 0;overflow-wrap:anywhere}
.product-photo{display:inline-block;object-fit:contain;vertical-align:middle}
.product-art .product-photo{width:100%;height:100%;min-height:0}
#managed-products .product-photo{width:42px;height:42px;border-radius:6px;margin-right:8px}
#product-dialog{width:min(570px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:20px}
#product-dialog .organization-tabs{margin:8px 0 12px}
#product-editor-name{margin:0}
.product-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
#product-dialog .product-editor-grid label{margin:0;min-width:0}
.product-editor-wide{grid-column:1/-1}
#product-dialog .product-editor-grid input,#product-dialog .product-editor-grid select{min-width:0;width:100%;margin-top:4px}
#product-dialog .confirmation{margin:8px 0}
.product-image-preview{height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#edf2f6;border:1px dashed #a8b9c9;border-radius:8px;overflow:hidden}
.product-image-preview .category-icon{width:42px;height:42px}
.product-image-preview .product-photo{width:100%;height:100%;object-fit:contain}
@media(max-width:420px){#product-dialog{padding:14px}.product-editor-grid{gap:6px 8px}}
#demo-clear-dialog{max-height:calc(100dvh - 24px);overflow:auto}
#demo-clear-list{max-height:30vh;overflow:auto}
#demo-clear-form[hidden],#demo-review-stage[hidden]{display:none}

/* Shared eVolva catalog */
.product-art img{width:100%;height:100%;object-fit:contain}.catalog-thumb{width:64px;height:64px;flex:0 0 64px;background:#f4f5f0;border-radius:12px;display:grid;place-items:center;font-size:28px}.catalog-thumb img{width:100%;height:100%;object-fit:contain}.catalog-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.catalog-toolbar input{flex:1;min-width:200px}.catalog-toolbar select{max-width:240px}#product-image-preview .product-art{height:160px;margin:8px 0}#product-description{width:100%;font:inherit;padding:10px;border:1px solid #d8ddd3;border-radius:8px}

#production-dialog{width:min(800px,94vw);max-height:90vh;overflow:auto}#production-fields label{margin:12px 0}.production-material-row{display:grid;grid-template-columns:minmax(160px,1fr) 170px auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid #dce2d8}#production-preview{margin:18px 0;padding:0 12px}#production-error{color:#a33232}#production-recipes{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}#production-recipes .procurement-card{margin:0}#production-recipes .catalog-thumb{float:right}#production-dialog .confirmation{display:flex;flex-direction:row;align-items:center}@media(max-width:650px){.production-material-row{grid-template-columns:1fr}.production-material-row button{width:100%}}

.store-catalog-picker{display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:10px 14px;align-items:end;padding:18px;margin:18px 0;background:#fff;border:1px solid #dce2d8;border-radius:12px}.store-catalog-picker p{grid-column:1/-1;margin:0}.store-catalog-picker select{width:100%}.branch-context #catalog-label{display:block}@media(max-width:650px){.store-catalog-picker{grid-template-columns:1fr}}

.product:disabled{opacity:1;cursor:not-allowed}.product:disabled .add{background:#e8e8e2;color:#69736a}.stock-status{display:inline-block;border-radius:6px;padding:5px 8px;background:#fff0d9;color:#84521b;font-size:11px;font-weight:600}[aria-busy="true"]{cursor:wait}

.products[class*="catalog-size-"]{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--card-width)),1fr));gap:10px}
.catalog-size-tiny{--card-width:110px;--art-height:34px}
.catalog-size-small{--card-width:145px;--art-height:54px}
.catalog-size-standard{--card-width:185px;--art-height:82px}
.catalog-size-large{--card-width:250px;--art-height:128px}
.products[class*="catalog-size-"] .product-art{height:var(--art-height);font-size:28px;margin-bottom:8px}
.products[class*="catalog-size-"] .product-art img{width:100%;height:100%;object-fit:contain}
.products[class*="catalog-size-"] .product{padding:9px;min-width:0}
.products[class*="catalog-size-"] .product-name{margin:5px 0 8px;overflow-wrap:anywhere}
.catalog-size-tiny .product-category{display:none}
.catalog-size-tiny .product-name,.catalog-size-tiny .product-bottom{font-size:11px}
.catalog-size-tiny .add{width:20px;height:20px}
#force-sale-options{border:1px solid #ead5af;border-radius:9px;background:#fff8eb;padding:10px;margin:12px 0}
#force-sale-options label{margin:8px 0}
.toolbar{flex-wrap:wrap}
.products[class*="catalog-size-"] .product-art .category-icon{width:min(42px,var(--art-height));height:min(42px,var(--art-height))}

/* Keep payment visible while the product catalog and bill details scroll. */
#cart-lines{flex:none;min-height:0}
@media(min-width:761px){
  #cart-panel{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;min-height:0;padding:20px 18px;overflow:hidden}
  #cart-details{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
  #cart-panel .checkout{flex:0 1 auto;min-height:0;max-height:65vh;max-height:65dvh;overflow-y:auto;border-top:1px solid #e3e7dd;padding-top:8px}
  #cart-panel .checkout .amount{margin:8px 0}
  #cart-panel .checkout .total{margin-top:10px;padding-top:10px}
  #cart-panel .checkout label{margin:10px 0 8px}
  #cart-panel .checkout input,#cart-panel .checkout select{padding:9px}
  #cart-panel .checkout .primary{padding:12px}
  #cart-panel .checkout>p{margin:8px 0 0}
}

/* Compact checkout controls leave more vertical room for products. */
.checkout-mode main{min-width:0;padding-top:18px}
.checkout-mode main>header{margin-bottom:14px;gap:12px}
.checkout-mode main>header>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.checkout-mode main>header .eyebrow{display:none}
.checkout-mode #page-title{font-size:22px;margin:0;letter-spacing:-.5px}
.checkout-mode #sidebar-toggle{padding:8px 10px;font-size:12px}
.checkout-mode #sell>.toolbar{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}
.checkout-mode #sell>.toolbar>label{flex-direction:row;align-items:center;gap:8px;font-size:11px}
.checkout-mode #product-size{width:auto;padding:8px}
.checkout-mode .segmented button{padding:8px 14px}
.checkout-mode #sell>.search{margin:12px 0 10px}
.checkout-mode #sell>.search input{padding:10px}
#categories{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;padding-bottom:6px}
#categories button{flex:0 0 auto;white-space:nowrap}
#categories:focus-visible{outline:2px solid #87ad49;outline-offset:2px}
.checkout-mode #sell>.section-title{margin:12px 0 10px}
.checkout-mode #sell>.section-title h2{font-size:16px}
@media(max-width:760px){
  .checkout-mode main>header{gap:8px}
  .checkout-mode #page-title{font-size:19px}
  .checkout-mode main>header>div:first-child{gap:8px}
}
/* Sales reports use the full workspace, with no checkout panel. */
.sales-report-mode #workspace{grid-template-columns:92px minmax(0,1fr)}
.sales-report-mode.sidebar-closed #workspace{grid-template-columns:minmax(0,1fr)}
.sales-report-mode #cart-panel{display:none}
.sales-report-mode main{min-width:0}
.sales-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}
.sales-filters label{flex:1 1 145px;min-width:0}
.sales-filters input,.sales-filters select{width:100%}
.sales-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.sales-charts>section{background:white;border:1px solid #dce2d8;border-radius:12px;padding:18px;min-width:0}
#sales-trend,#sales-category-chart{max-height:340px;overflow:auto;margin-top:14px}
.sales-chart-row{margin:12px 0}
.sales-chart-label{font-size:12px;overflow-wrap:anywhere;margin-bottom:4px}
.sales-chart-track{position:relative;background:#f0f3ec;min-height:25px;margin:3px 0;border-radius:4px;overflow:hidden}
.sales-chart-bar{position:absolute;inset:0 auto 0 0;background:#c9dfca;min-width:0}
.sales-chart-bar.refunds,.sales-chart-bar.negative{background:#f1cabb}
.sales-chart-value{position:relative;display:block;font-size:11px;padding:5px 8px;color:#20332c}
.sales-report-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 12px}
.sales-report-heading label{flex-direction:row;align-items:center}
.sales-report-heading select{width:auto}
@media(max-width:1100px){.sales-report-mode #workspace{grid-template-columns:76px minmax(0,1fr)}}
@media(max-width:760px){.sales-report-mode #workspace{grid-template-columns:minmax(0,1fr)}.sales-charts{grid-template-columns:minmax(0,1fr)}}

/* Compact catalog workspace and shared category navigation. */
.product-master-mode main{padding-top:18px}
.product-master-mode header{margin-bottom:14px}
.product-master-mode #page-title{font-size:24px;margin:6px 0}
.product-master-mode .section-title{margin:8px 0}
.product-master-mode .store-catalog-picker{padding:10px 14px;margin-bottom:10px;gap:8px}
.product-master-mode #catalog-current{display:none}
.product-master-mode #catalog-store-help{margin:0;font-size:11px}
.product-master-mode #product-management>details{margin:6px 0}
.catalog-category-bar{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;max-width:100%;padding:5px 0 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.catalog-category-bar button{flex:none;white-space:nowrap;border-radius:24px;padding:8px 12px;font-size:12px}
.catalog-category-bar button.active{background:#214c76;color:white}
#managed-products{grid-template-columns:repeat(4,minmax(0,1fr))}
#managed-products .product-card-preview{display:block;text-align:left;background:transparent;color:inherit;border:0;border-radius:8px;padding:0;width:100%;cursor:pointer}
#managed-products .product-card-preview:focus-visible{outline:3px solid #214c76;outline-offset:4px}
#managed-products .product-card-preview .product-photo{display:block;width:100%;height:110px;object-fit:contain;background:#fff;margin:0 0 10px;border-radius:8px}
#managed-products .product-card-preview p{font-size:11px;line-height:1.5;margin:6px 0}
#managed-products .managed-product-card>button:not(.product-card-preview){padding:7px 9px;font-size:12px}
#product-preview-dialog{width:650px;max-width:calc(100vw - 32px);max-height:88vh;overflow-y:auto;padding:24px}
.product-preview-close{float:right}
#product-preview-body .product-preview-details>.product-photo{display:block;width:100%;height:240px;object-fit:contain;margin:16px 0}
#product-preview-body .product-report-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:1250px){#managed-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#managed-products{gap:6px}#managed-products .product-card-preview .product-photo{height:80px}#product-preview-body .product-report-fields{grid-template-columns:1fr}}

.product-master-mode header>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.product-master-mode header .eyebrow{display:none}.office-shell.product-master-mode main{padding-top:18px}.product-master-mode .store-catalog-picker{margin-top:8px}

.catalog-columns-control{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0}.catalog-columns-control select{width:95px;padding:7px}
#managed-products .product-card-preview strong{overflow-wrap:anywhere}
@media(max-width:900px){#managed-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

#managed-products .product-disabled{background:#e5e8eb;border-style:dashed}
#managed-products .product-disabled .product-card-preview{opacity:.52;filter:grayscale(1)}
.product-disabled-badge{display:inline-block;background:#596474;color:#fff;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:600}
.product-report-table tr.product-disabled>td,.product-report-table tr.product-disabled>th{background:#eef0f2;color:#68717b}
.product-report-preview{padding:6px 9px;margin-right:7px;font-size:18px;line-height:1;border:1px solid #b8c9dc;border-radius:6px}
#product-dialog{width:620px;max-width:calc(100vw - 32px)}
.product-description-field{grid-column:1/-1}
#product-description{min-height:120px;resize:vertical;line-height:1.5;margin-top:4px}

#sidebar-toggle{display:block;width:36px;height:36px;padding:4px;margin:0 0 12px;font-size:23px;line-height:1;border-radius:8px}
#sidebar-close{display:none!important}
.sidebar-closed #workspace aside{display:flex!important;width:56px;padding:12px 10px;align-items:center}
.sidebar-closed #workspace aside>:not(#sidebar-toggle){display:none!important}
.sidebar-closed #workspace{grid-template-columns:56px minmax(0,1fr) minmax(260px,370px)}
.office-shell.sidebar-closed #workspace,.head-office-mode.sidebar-closed #workspace,.sales-report-mode.sidebar-closed #workspace{grid-template-columns:56px minmax(0,1fr)}
.company-heading{display:flex;align-items:center;gap:12px;margin:0 0 12px;overflow-wrap:anywhere}
#company-header-name{font-size:20px}#company-header-address{font-size:12px;color:#66788a;white-space:pre-line}#company-header-tagline{font-size:13px;color:#45617a}
#company-header-logo{width:54px;height:54px;object-fit:contain}.company-header-banner{display:block;width:100%;max-height:100px;object-fit:cover;border-radius:8px;margin-bottom:12px}
.company-asset-preview{display:block;max-width:100%;height:100px;object-fit:contain;margin:8px 0}
#hq-branding{border-top:1px solid #dce2e8;margin-top:14px;padding-top:6px}
@media(max-width:760px){.sidebar-closed #cart-panel{grid-column:2}.sidebar-closed #workspace{grid-template-columns:56px minmax(0,1fr)}}

.company-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.company-topline .company-heading{order:0;flex:1;margin-bottom:0}.workspace-label{order:1;margin-left:auto;white-space:nowrap;font-size:13px;font-weight:600;color:#506681}
.receipt-company-branding{text-align:center;white-space:pre-line;margin-bottom:14px;line-height:1.5}.receipt-company-name{display:block;font-size:17px}.receipt-company-logo{display:block;max-width:140px;max-height:75px;object-fit:contain;margin:0 auto 8px}
@media print{.receipt-company-logo{max-width:40mm;max-height:20mm}.receipt-company-branding{break-inside:avoid}}

.office-shell .workspace-label{font-size:20px;font-weight:700}
.office-shell #page-title{font-size:22px;letter-spacing:0}
#hq-dialog.company-edit-dialog{width:620px;max-height:82vh;padding:22px;overflow-y:auto}
#hq-dialog.company-edit-dialog label{margin:10px 0;gap:5px}
#hq-dialog.company-edit-dialog input:not([type=checkbox]){padding:9px}
#hq-dialog.company-edit-dialog #hq-branding{border:0;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
#hq-branding>label:has(#hq-tagline),#hq-branding>#hq-upload-status,#hq-branding>p{grid-column:1/-1}
#hq-dialog.company-edit-dialog .company-asset-preview{height:65px}
#hq-dialog.company-edit-dialog #hq-save{position:sticky;bottom:0;margin-top:12px;padding:12px}
#company-edit-tabs{margin:10px 0}.receipt-preview-notice{text-align:center;font-size:11px;font-weight:600;border-bottom:1px dashed #999;padding-bottom:8px}
@media(max-width:480px){#hq-dialog.company-edit-dialog #hq-branding{display:block}}

#offline-status{font-size:12px;padding:6px 10px;margin-right:12px}#offline-status[data-offline="true"]{background:#fff0d3;color:#855000}#offline-queue{max-width:650px;max-height:80vh;overflow:auto}.office-shell #offline-status{display:none}

.product-preview-tabs{display:flex;gap:6px;margin:10px 0;flex-wrap:nowrap;overflow-x:auto;clear:both}
.product-preview-tabs>button{width:auto;flex:0 0 auto;padding:8px 12px;font-size:13px;white-space:nowrap}
#product-preview-copy[hidden],#product-preview-details[hidden]{display:none}

.product-preview-tabs>button{height:36px;min-height:36px;line-height:20px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;font-weight:600}
.product-preview-balance{display:flex;align-items:center;justify-content:space-between;gap:16px;clear:both;background:#edf3f8;border-radius:10px;padding:12px 16px;margin:12px 0}
.product-preview-balance span{font-size:15px;font-weight:600}.product-preview-balance strong{font-size:32px;line-height:1.1}
.product-stock-form{display:grid;gap:12px}.product-stock-form input,.product-stock-form select{width:100%}.product-stock-form .confirmation input{width:auto}

/* Stable product popup shell, sized for short desktop screens. */
#product-preview-dialog{width:720px;height:min(640px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:18px;overflow:hidden}
#product-preview-dialog[open]{display:flex;flex-direction:column;gap:10px}
#product-preview-dialog>form{position:absolute;top:14px;right:16px;margin:0}
#product-preview-title{padding-right:98px;min-height:34px;display:flex;align-items:center;flex-shrink:0;font-size:18px;line-height:1.2}
#product-preview-body{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px}
.product-preview-summary{display:flex;align-items:center;gap:14px;flex:0 0 98px;min-height:0}
#product-preview-body .product-preview-summary>.product-photo{width:118px;height:98px;object-fit:contain;margin:0;flex-shrink:0}
.product-preview-summary .product-preview-balance{flex:1;margin:0;min-height:76px;padding:12px 16px;clear:none}
.product-preview-summary .product-preview-balance strong{font-size:36px}
#product-preview-body .product-preview-tabs{flex-shrink:0;margin:0;padding-bottom:2px;min-height:38px}
#product-preview-body>[role="tabpanel"],#product-preview-body>.product-preview-details{flex:1;min-height:0;overflow-y:auto;padding:4px 4px 8px 0}
#product-preview-body .product-report-fields{gap:10px 20px;margin:0;font-size:14px}
#product-preview-body .product-report-fields dd{margin-top:2px}
#product-preview-body .product-preview-details>p{font-size:13px;margin:12px 0 0}
#product-preview-body input,#product-preview-body select{padding:8px 10px;min-height:36px;font-size:14px}
#product-preview-body .product-stock-form{display:flex;flex-direction:column;gap:0}
#product-preview-body .product-stock-form>label{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid #e4e9ee;font-size:13px}
#product-preview-body .product-stock-form>.confirmation{display:flex;padding:10px 0}
#product-preview-body .product-stock-form>p{margin:4px 0 8px;font-size:12px}
#product-preview-body .product-stock-form>button{align-self:flex-end;width:auto;padding:10px 18px;margin-top:8px}
#product-preview-copy>label{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px}
#product-preview-copy>button{width:auto;padding:10px 16px;margin:0 8px 0 0}
#product-preview-copy>p{font-size:12px;margin:12px 0}
@media(max-width:480px){#product-preview-dialog{padding:14px;max-width:calc(100vw - 16px)}.product-preview-summary{gap:8px}#product-preview-body .product-preview-summary>.product-photo{width:85px}.product-preview-summary .product-preview-balance{padding:10px;gap:8px}.product-preview-balance span{font-size:13px}#product-preview-body .product-stock-form>label,#product-preview-copy>label{grid-template-columns:100px minmax(0,1fr);gap:8px}#product-preview-body .product-report-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.product-info-actions{display:flex;gap:8px;margin-bottom:10px}.product-info-actions>button{width:auto;padding:8px 16px}.product-info-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;min-height:160px}.product-info-editor{width:100%;height:230px;min-height:160px;resize:vertical;padding:10px;border:1px solid #d0dbe6;border-radius:8px;font:inherit;line-height:1.6}

#product-preview-body>.product-info-panel,#product-preview-body>.product-search-panel{display:flex;flex-direction:column;overflow:hidden;gap:8px}
.product-info-actions{flex-shrink:0;flex-wrap:wrap;margin-bottom:0;align-items:center}
.product-info-preview{flex:1;min-height:0;width:100%;border:1px solid #e1e6ec;border-radius:6px;background:white}
#product-preview-body .product-info-editor,.product-search-results{flex:1;width:100%;height:auto;min-height:0;resize:none;font:14px/1.6 Consolas,'Myanmar Text',monospace;border:1px solid #cfd9e4;border-radius:6px;padding:10px}
.product-info-panel>p,.product-search-panel>p{font-size:12px;margin:0;flex-shrink:0}.product-info-panel>p:empty{display:none}
.product-search-tools{display:flex;gap:8px;flex-shrink:0}.product-search-tools>input{flex:1;min-width:0}.product-search-link{display:inline-block;padding:8px 12px;border-radius:6px;background:#e4ebf5;color:#214d75;text-decoration:none;font-size:13px}

.product-search-attribution{width:100%;height:64px;flex-shrink:0;border:0}

.settings-card{background:white;border:1px solid #d6e0ec;border-radius:12px;padding:20px;max-width:900px}.settings-heading h2{font-size:24px}.personal-settings-form{display:grid;gap:16px}.personal-settings-form>label{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center}.personal-settings-form>button{width:auto;justify-self:start}.personal-settings-form p{margin:0}.settings-key-row{border-top:1px solid #e0e6ef;padding-top:12px;display:grid;gap:8px}.settings-key-row .confirmation{display:flex;align-items:center}.settings-key-row .confirmation input{width:auto}.settings-key-row input[type=password]{width:100%}#preferences-tabs{overflow-x:auto;flex-wrap:nowrap}#preferences-tabs>button{width:auto;white-space:nowrap;padding:10px 16px}
:root[data-theme=dark]{color-scheme:dark;background:#111c2a;color:#e3eaf2}
:root[data-theme=dark] body,:root[data-theme=dark] main{background:#111c2a;color:#e3eaf2}
:root[data-theme=dark] aside,:root[data-theme=dark] dialog,:root[data-theme=dark] .settings-card,:root[data-theme=dark] #cart-panel,:root[data-theme=dark] .store-catalog-picker,:root[data-theme=dark] .sale-row,:root[data-theme=dark] .hq-metric,:root[data-theme=dark] .procurement-card{background:#1b2b3e;color:#e3eaf2;border-color:#3b4c61}
:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{background:#122031;color:#eef3fa;border-color:#4a5d74}
:root[data-theme=dark] button:not(.primary),:root[data-theme=dark] .office-shell button:not(.primary){background:#2b415a;color:#e2edff}
:root[data-theme=dark] .product-card,:root[data-theme=dark] .product-card-preview,:root[data-theme=dark] .product-preview-balance,:root[data-theme=dark] details,:root[data-theme=dark] .finance-table tr:nth-child(even){background:#24374b;color:#e3eaf2}
:root[data-theme=dark] .muted,:root[data-theme=dark] .product-category{color:#b3c4d7}
:root[data-density=compact] .office-shell main{padding-top:16px;padding-bottom:16px}:root[data-density=compact] .personal-settings-form{gap:10px}:root[data-density=compact] .finance-table td,:root[data-density=compact] .finance-table th{padding:7px 9px}:root[data-density=compact] .sale-row{padding:10px}:root[data-density=compact] .office-shell .nav{padding-top:9px;padding-bottom:9px}
@media(max-width:600px){.settings-card{padding:14px}.personal-settings-form>label{grid-template-columns:1fr;gap:6px}}

.provider-choice-group{display:flex;gap:10px}.provider-choice-group>button{width:auto;min-width:140px;border:2px solid transparent}.provider-choice-group>button[aria-pressed=true]{border-color:#56a49b;box-shadow:0 0 0 2px #56a49b33}.provider-summary{padding:12px 14px;background:#edf4fb;border-left:4px solid #245681;border-radius:8px;font-size:14px;font-weight:600;line-height:1.5}
#pref-google-controls{display:grid;gap:10px}#pref-google-controls>label{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center}.provider-key-badge{font-size:12px;font-weight:600;color:#6b7d8d}.provider-key-selected{border:1px solid #7199be;border-radius:8px;padding:12px;background:#f3f7fc}.provider-key-selected .provider-key-badge{color:#204e79}
.settings-message{max-width:900px;padding:14px 16px;border:1px solid #a6c5df;border-left:4px solid #3477ad;border-radius:9px;background:#edf6ff;color:#214968;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.settings-message::before{content:attr(data-title);display:block;font-weight:700;margin-bottom:4px}.settings-message[data-kind=error]{background:#fff1ee;border-color:#e9b5aa;border-left-color:#b84c37;color:#833521}.settings-message[data-kind=success]{background:#edf8f0;border-color:#a9d2b4;border-left-color:#37804e;color:#245a35}
:root[data-theme=dark] .provider-summary,:root[data-theme=dark] .provider-key-selected{background:#243b51;color:#e4edf7}:root[data-theme=dark] .provider-key-badge,:root[data-theme=dark] .provider-key-selected .provider-key-badge{color:#c5d8ed}:root[data-theme=dark] .settings-message{background:#233d53;color:#dceeff}:root[data-theme=dark] .settings-message[data-kind=error]{background:#462b2d;color:#ffddd6}:root[data-theme=dark] .settings-message[data-kind=success]{background:#234332;color:#d5f3dd}
@media(max-width:600px){#pref-google-controls>label{grid-template-columns:1fr;gap:6px}.provider-choice-group>button{min-width:0;flex:1}}

.provider-choice-group>button[role=tab][aria-selected=true]{border-color:#56a49b;box-shadow:0 0 0 2px #56a49b33}.provider-panel{display:grid;gap:12px}.provider-panel .settings-key-row{border:0;padding:0}.provider-model-options{border-top:1px solid #e0e6ef;padding-top:12px}.provider-model-options>summary{font-size:13px;cursor:pointer;font-weight:600}.provider-model-options[open]>summary{margin-bottom:12px}#pref-use-provider{border:1px solid #afc3d8}.provider-summary{padding:10px 12px;font-size:13px}

.pos-product-card{position:relative;min-width:0;display:flex}.pos-product-card>.product{width:100%;height:100%;flex:1}.pos-product-info{position:absolute;top:7px;right:7px;z-index:1;display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;background:#fff;color:#214f78;border:1px solid #bed0df;font-size:21px;line-height:1;box-shadow:0 1px 4px #152b3c1a}.pos-product-info:hover{background:#e9f3fc}.pos-product-info:focus-visible{outline:3px solid #8fb850;outline-offset:2px}.catalog-size-tiny .pos-product-info{width:26px;height:26px;font-size:18px;top:4px;right:4px}:root[data-theme=dark] .pos-product-info{background:#273e57;color:#e3f0ff;border-color:#66819b}
