/* Follow the application's existing theme switch; do not force a theme. */
html[data-theme="light"] .sale-workspace{--sale-line:#cbdedf;--sale-text:#173b42;--sale-muted:#577781;--sale-accent:#008b84;color:var(--sale-text)}
html[data-theme="light"] .sale-workspace .sale-box{background:#fff;border-color:#cbdedf;box-shadow:0 3px 12px #173b4205}
html[data-theme="light"] .sale-workspace :is(h1,h2,h3,strong,b){color:#173b42}
html[data-theme="light"] .sale-page-heading :is(p,.sale-back-link){color:#577781}
html[data-theme="light"] .sale-page-heading h1 span{background:#e6f5f3;border-color:#bfdfdc;color:#28716f}
html[data-theme="light"] .sale-workspace :is(input:not([type=radio]):not([type=checkbox]),select,textarea){background:#f8fbfc;border-color:#bdd3d8;color:#173b42;box-shadow:none;color-scheme:light}
html[data-theme="light"] .sale-workspace input::placeholder{color:#6c8790}
html[data-theme="light"] .sale-workspace .sale-scanner :is(button,>span){color:#426a77}
html[data-theme="light"] .sale-workspace .sale-scanner button{background:#edf6f7;border-color:#bad7dc}
html[data-theme="light"] .sale-device{background:#f8fbfc;border-color:#cbdedf}
html[data-theme="light"] .sale-device-copy :is(p,small),html[data-theme="light"] .sale-accessory small{color:#587a85}
html[data-theme="light"] .sale-specs span{background:#eaf4f6;border-color:#c7dfe4;color:#3c6571}
html[data-theme="light"] .sale-specs .sale-stock-status{background:#e7f7ef;color:#14794f;border-color:#c2e5d3}
html[data-theme="light"] .sale-workspace :is(.sale-remove,.sale-device-add button,.sale-payment-more){color:#39747a}
html[data-theme="light"] .sale-accessory-actions button,html[data-theme="light"] .sale-workspace .sale-client-panel .secondary{background:#f1fbfa;border-color:#45aaa2;color:#246663}
html[data-theme="light"] .sale-accessory-actions button>span{color:#00877f}
html[data-theme="light"] .sale-accessory{background:#f8fbfc;border-color:#d1e2e5}
html[data-theme="light"] .sale-workspace .sale-retail{border-color:#d1e2e5;color:#2d515b}
html[data-theme="light"] .sale-payment-tabs button{background:#f2f7f9;border-color:#c3d9de;color:#355d69}
html[data-theme="light"] .sale-payment-tabs button[aria-pressed=true]{background:#008c85;border-color:#008c85;color:#fff}
html[data-theme="light"] .sale-payment-line,html[data-theme="light"] .sale-payment-line>div>span{color:#426975}
html[data-theme="light"] .sale-workspace .positive{color:#167b52}html[data-theme="light"] .sale-workspace .negative{color:#b63f3f}
html[data-theme="light"] .sale-workspace :is(.sale-summary-lines,.sale-grand-total,.sale-payment-summary){border-color:#d3e2e5}
html[data-theme="light"] .sale-grand-total b{color:#008d83}
html[data-theme="light"] .sale-workspace .sale-submit{background:#008e86;border-color:#008e86;color:#fff}
html[data-theme="light"] .sale-workspace .sale-cancel{background:#fff;border-color:#a4cccd;color:#2d696a}
html[data-theme="light"] .sale-workspace :is(.sale-document-option,.secure-note,.sale-empty,.sale-history p){color:#5c7c86}
html[data-theme="light"] .sale-workspace .sale-history textarea{background:#f8fbfc}
html[data-theme="light"] .sale-picker-dialog{background:#fff;color:#173b42;border-color:#bfd6dc;box-shadow:0 24px 80px #143f4633;color-scheme:light}
html[data-theme="light"] .sale-picker-dialog::backdrop{background:#193a4566}
html[data-theme="light"] .sale-picker-dialog :is(button,input){background:#f3f8fa;color:#254d59;border-color:#c3dade}
html[data-theme="light"] .sale-picker-dialog :is(.primary,.sale-category-tabs [aria-pressed=true]){background:#008f86;border-color:#008f86;color:white}
html[data-theme="light"] .sale-picker-dialog :is(p,small,label){color:#5c7b86}
html[data-theme="light"] .sale-picker-dialog .sale-picker-row{border-color:#d5e4e7}
html[data-theme="light"] .sale-picker-photo{background:#f1f6f8;border-color:#d3e2e6}
html[data-theme="light"] .sale-picker-row:has(.sale-picker-device-check input:checked){background:#e3f5ee}
/* Keep cards and dialogs usable inside the ERP sidebar at narrow widths. */
.sale-workspace{min-width:0}.sale-workspace :is(.sale-box,.sale-device-copy,.sale-client-panel,.sale-payment-panel){min-width:0}.sale-device-copy h3{overflow-wrap:anywhere}.sale-summary-lines span{overflow-wrap:anywhere}.sale-picker-dialog{overscroll-behavior:contain}.sale-picker-dialog .sale-picker-list{overscroll-behavior:contain}.sale-picker-dialog input{max-width:100%}
@media(max-width:1200px){.quick-sale-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.55fr)}.sale-workspace .quick-sale-bottom{grid-template-columns:minmax(0,1fr)}.sale-grand-total{flex-wrap:wrap}.sale-device-copy h3{margin-right:0}.sale-device-price{position:static;grid-column:2;margin-top:0;font-size:16px}.sale-device-copy>small{padding-bottom:0}.sale-specs{gap:4px}.sale-specs span{white-space:normal}.sale-picker-dialog{width:min(860px,calc(100vw - 32px))}}
@media(max-width:950px){.quick-sale-layout{grid-template-columns:minmax(0,1fr)}.sale-workspace .sale-summary{position:static;min-height:0}.sale-workspace .quick-sale-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-summary h2{margin-bottom:15px}.sale-grand-total{justify-content:space-between}.sale-summary-lines>div{align-items:start}.sale-workspace .sale-page-heading{gap:12px}.sale-page-heading h1 span{display:none}}
@media(max-width:600px){.sale-workspace .quick-sale-bottom{grid-template-columns:minmax(0,1fr)}.sale-workspace .sale-box{padding:12px}.sale-page-heading h1{font-size:25px}.sale-page-heading p{font-size:14px}.sale-device{grid-template-columns:65px minmax(0,1fr);gap:10px;padding:10px}.sale-device-photo{width:65px;height:90px}.sale-device-copy h3{font-size:17px;padding-right:13px}.sale-device-price{position:static;grid-column:2;margin:0}.sale-device-copy>small{font-size:10px;overflow-wrap:anywhere}.sale-specs span{font-size:10px;min-height:25px}.sale-accessory{grid-template-columns:32px minmax(0,1fr) 18px;gap:8px}.sale-accessory-photo{width:32px;grid-row:1/span 2}.sale-accessory>b{grid-column:2;font-size:14px}.sale-accessory>.sale-remove{grid-column:3;grid-row:1/span 2}.sale-accessory-actions button{font-size:12px;gap:5px}.sale-workspace .sale-payment-tabs button{min-height:40px}.sale-workspace .sale-scanner input{min-width:0;font-size:12px;padding-left:32px}.sale-workspace .sale-scanner{gap:6px}.sale-picker-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:14px;border-radius:12px}.sale-picker-dialog .sale-picker-list{max-height:45dvh}.sale-picker-dialog .sale-category-tabs{gap:6px;margin:12px 0}.sale-picker-dialog button{min-height:36px;padding:8px 10px;font-size:12px}.sale-picker-head p{font-size:11px}.sale-picker-dialog footer{flex-wrap:wrap;gap:8px}.sale-picker-dialog footer>span{flex-basis:100%}.sale-picker-dialog footer>button{flex:1}.sale-picker-dialog .sale-picker-row{grid-template-columns:45px minmax(0,1fr) 65px;gap:8px}.sale-picker-dialog .sale-picker-photo{width:45px;height:60px}.sale-picker-dialog .sale-picker-product-copy strong{font-size:12px}.sale-picker-dialog .sale-picker-product-copy small{font-size:10px;overflow-wrap:anywhere}.sale-workspace .sale-summary-lines>div{font-size:13px}}
@media(max-width:1100px){.sale-workspace .quick-sale-bottom{grid-template-columns:minmax(0,1fr)}}.sale-workspace .sale-payment-tabs{min-width:0}.sale-workspace .sale-payment-tabs button{min-width:0}
