:root{color-scheme:light;--theme-page:#f4f6fb;--theme-surface:#fff;--theme-text:#252944;--theme-muted:#66756f;--theme-line:#dfe5e1;--theme-soft:#f4f6fb;--theme-shadow:0 12px 32px #16221c12}
:root[data-theme="dark"]{color-scheme:dark;--theme-page:#111a18;--theme-surface:#1b2723;--theme-text:#ecf3ef;--theme-muted:#a7b7af;--theme-line:#33433c;--theme-soft:#22312b;--theme-shadow:0 12px 32px #0004}
:root[data-theme="dark"] body{background:var(--theme-page)!important;color:var(--theme-text)!important}
:root[data-theme="dark"] .staff-content,:root[data-theme="dark"] .dash-main{background:var(--theme-page);color:var(--theme-text)}
:root[data-theme="dark"] .dash-card,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .form-card,:root[data-theme="dark"] .summary,:root[data-theme="dark"] .product,:root[data-theme="dark"] .account-orders,:root[data-theme="dark"] .account-profile,:root[data-theme="dark"] .customer-order,:root[data-theme="dark"] .report-card,:root[data-theme="dark"] .backup-hero,:root[data-theme="dark"] .data-summary,:root[data-theme="dark"] .health-check,:root[data-theme="dark"] .supplier-card,:root[data-theme="dark"] .purchase-card,:root[data-theme="dark"] .subscription-card,:root[data-theme="dark"] .subscription-help{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important;box-shadow:var(--theme-shadow)}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#14201b!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
:root[data-theme="dark"] th,:root[data-theme="dark"] td{border-color:var(--theme-line)!important;color:var(--theme-text)}:root[data-theme="dark"] th{background:#202d27!important;color:#bccbc3}
:root[data-theme="dark"] .product-image,:root[data-theme="dark"] .stock-row,:root[data-theme="dark"] .account-stats,:root[data-theme="dark"] .loyalty-summary{background:#22312b!important;color:var(--theme-text);border-color:var(--theme-line)}
:root[data-theme="dark"] .hero,:root[data-theme="dark"] .category-strip{filter:brightness(.78)}
:root[data-theme="dark"] p,:root[data-theme="dark"] small,:root[data-theme="dark"] .muted{color:var(--theme-muted)}
.theme-toggle{position:fixed;right:18px;top:18px;z-index:1200;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d5dfda;border-radius:999px;background:#fff;color:#203a30;font:700 13px 'DM Sans',sans-serif;box-shadow:0 5px 20px #0002;cursor:pointer}.theme-toggle:hover{transform:translateY(-1px)}:root[data-theme="dark"] .theme-toggle{background:#26372f;color:#f2fff7;border-color:#485b50}@media(max-width:700px){.theme-toggle{right:15px;top:12px;padding:9px 11px}}:root[data-theme="dark"] .customer-card,:root[data-theme="dark"] .return-card,:root[data-theme="dark"] .gallery-card,:root[data-theme="dark"] .category-card,:root[data-theme="dark"] .zone-card,:root[data-theme="dark"] .delivery-card,:root[data-theme="dark"] .staff-member,:root[data-theme="dark"] .cashier-shift-card,:root[data-theme="dark"] .backup-history,:root[data-theme="dark"] .supplier-kpis>article,:root[data-theme="dark"] .stock-kpis>article,:root[data-theme="dark"] .report-kpis>article,:root[data-theme="dark"] .purchase-order-card,:root[data-theme="dark"] .purchase-card,:root[data-theme="dark"] .management-filter,:root[data-theme="dark"] .filter-bar,:root[data-theme="dark"] .report-period,:root[data-theme="dark"] .return-history,:root[data-theme="dark"] .data-summary p{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
:root[data-theme="dark"] .section-head,:root[data-theme="dark"] .management-page,:root[data-theme="dark"] .admin,:root[data-theme="dark"] .narrow{color:var(--theme-text)}
:root[data-theme="dark"] details,:root[data-theme="dark"] dialog{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}
:root[data-theme="dark"] summary,:root[data-theme="dark"] label,:root[data-theme="dark"] h1,:root[data-theme="dark"] h2,:root[data-theme="dark"] h3,:root[data-theme="dark"] strong{color:var(--theme-text)}
:root[data-theme="dark"] .customer-card>div:last-of-type span,:root[data-theme="dark"] .supplier-summary span,:root[data-theme="dark"] .stock-alert,:root[data-theme="dark"] .purchase-summary{border-color:var(--theme-line);color:var(--theme-text)}
:root[data-theme="dark"] .customer-balance-details,:root[data-theme="dark"] .supplier-payment-details{margin-top:12px;padding:12px;border:1px solid var(--theme-line);border-radius:10px;background:#202d27}
.customer-balance-details,.supplier-payment-details{margin-top:12px;padding:12px;border:1px solid #e4ebe7;border-radius:10px;background:#f8faf9}.customer-balance-details summary,.supplier-payment-details summary{cursor:pointer;font-weight:800;color:var(--green);padding:5px}.balance-entry{padding:12px 0;border-top:1px solid #e7ece9}.balance-entry>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.balance-entry small{display:block;color:#6b7771}.balance-form{display:grid;grid-template-columns:minmax(90px,1fr) 100px minmax(90px,1fr) auto;gap:7px}.balance-form input,.balance-form select{min-width:0;padding:8px;border:1px solid #d7e0db;border-radius:7px}.balance-form .button{padding:8px 12px}.balance-payment-history{padding-top:5px}.supplier-payment-details form{display:grid;gap:10px;padding:8px}.supplier-payment-details textarea{min-height:50px}@media(max-width:700px){.balance-form{grid-template-columns:1fr 1fr}.balance-form button{grid-column:span 2}}

:root[data-theme='dark'] .checkout-payment-instructions,:root[data-theme='dark'] .payment-instruction-row{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}.payment-instruction-row label{min-width:0}
