:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19283e;background:#f3f6fa;font-synthesis:none;--teal:#087f78;--line:#e4eaf1}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #61cfc0;outline-offset:2px}aside{width:236px;background:#101e35;color:#e2e9f5;padding:32px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px}.mark{width:38px;height:38px;display:grid;place-items:center;font-size:30px;color:#67e0c8;border:1px solid #3a5466;border-radius:12px}.brand strong{font-size:19px;letter-spacing:1px}.brand small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:5px;color:#a2b0c5}.store{margin:35px 0 24px;padding:14px;background:#1a2b44;border-radius:10px;font-size:13px}nav{display:grid;gap:8px}nav button{display:flex;gap:13px;text-align:left;border:0;background:none;color:#aab9cf;padding:14px;border-radius:9px}nav button.selected{color:white;background:#28425a;box-shadow:inset 3px 0 #5dd5bc}nav button:hover{background:#233650}.aside-bottom{margin-top:auto;font-size:11px;color:#adbbcf;line-height:1.8}.aside-bottom small{display:block;font-size:10px}.demo-dot{display:inline-block;width:6px;height:6px;background:#5dd5bc;border-radius:50%;margin-right:5px}main{margin-left:236px;width:calc(100% - 236px);padding:36px 38px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.eyebrow{color:#8090a5;font-size:10px;font-weight:700;letter-spacing:2px}h1{font-size:29px;letter-spacing:-1px;margin:8px 0}header p{color:#7c899c;font-size:13px;margin:0}.pill{border:1px solid #d7dfe9;border-radius:24px;background:white;font-size:12px;padding:11px 15px;color:#67778d}.pill.open{background:#e7f6f0;border-color:#cce8db;color:#187b62}.demo-banner{color:#8b692b;font-size:11px;padding:11px 15px;background:#fff6df;border:1px solid #f0e4c3;border-radius:8px;margin-bottom:25px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:25px}.search{width:100%;padding:15px 17px;background:white;border:1px solid var(--line);border-radius:10px;font-size:13px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 22px}.chips button{padding:8px 13px;border-radius:20px;border:1px solid var(--line);background:white;color:#718095;font-size:11px}.chips button.active{background:#173c45;border-color:#173c45;color:white}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:white;border:1px solid var(--line);border-radius:13px;padding:18px;text-align:left;display:flex;flex-direction:column;min-height:172px}.product-card:hover{border-color:#62b4a4;box-shadow:0 5px 16px #1838400a}.product-icon{font-size:22px;width:43px;height:43px;border-radius:12px;background:#f0f5f6;display:grid;place-items:center;margin-bottom:15px}.product-card strong{font-size:13px;margin-bottom:6px}.product-card small{font-size:10px;color:#8b97a7}.product-footer{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:5px}.product-price{font-size:15px;font-weight:700}.stock{font-size:10px;color:#5e8b7c}.stock.low{color:#b37d25}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:23px}.cart-panel{align-self:start;position:sticky;top:25px}.panel h2{margin:0 0 8px;font-size:17px;letter-spacing:-.4px}.subtle{font-size:12px;color:#8290a2}.cart-empty{text-align:center;padding:46px 8px;color:#9ba7b6;font-size:12px;line-height:1.7}.cart-empty span{font-size:32px;display:block;color:#a5c8c0;margin-bottom:12px}.cart-line{padding:18px 0;border-bottom:1px solid var(--line)}.cart-line strong{display:block;font-size:12px}.cart-line-top{display:flex;justify-content:space-between;gap:10px}.cart-line-bottom{display:flex;justify-content:space-between;margin-top:10px;align-items:center}.qty{display:flex;align-items:center;gap:12px;font-size:12px}.qty button{width:26px;height:26px;background:#f4f7fa;border:1px solid var(--line);border-radius:6px}.text-btn{border:0;background:none;color:#8a97a8;font-size:11px;padding:4px}.text-btn.danger{color:#b24b4b}.cart-total{display:flex;justify-content:space-between;align-items:center;margin:25px 0 20px;font-size:13px}.cart-total strong{font-size:27px;letter-spacing:-1px}.primary{background:var(--teal);color:white;border:0;border-radius:9px;padding:13px 18px;font-size:12px;font-weight:600}.primary:hover{background:#086d67}.wide{width:100%}.secondary{background:white;border:1px solid #d9e2ea;border-radius:8px;padding:11px 14px;color:#456078;font-size:12px}.danger-btn{background:#fff0f0;color:#a84646;border:1px solid #f1d0d0;border-radius:8px;padding:10px 13px;font-size:12px}.toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.toolbar .search{max-width:380px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stat{padding:22px;background:white;border:1px solid var(--line);border-radius:12px}.stat span{font-size:11px;color:#7d8da0}.stat strong{display:block;font-size:25px;margin-top:13px;letter-spacing:-.8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;color:#8794a6;font-weight:500;font-size:10px;letter-spacing:.7px;text-transform:uppercase;background:#f8fafc}td,th{padding:16px 13px;border-bottom:1px solid var(--line)}td small{display:block;color:#8c99aa;margin-top:4px}.tag{border-radius:15px;padding:5px 9px;font-size:10px;background:#e9f5ef;color:#357a62}.tag.warning{background:#fff4de;color:#9c782f}.tag.void{background:#f5e9e9;color:#a26464}.empty{padding:45px;text-align:center;color:#8794a6;font-size:13px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form{display:grid;gap:17px}.form label{display:grid;gap:7px;font-size:12px;color:#5e7087}.form input,.form select,.form textarea{padding:11px 12px;border:1px solid #d8e2eb;border-radius:7px;width:100%;color:#21364d;background:white}.form p{font-size:12px;color:#7d8da0;line-height:1.6}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:9px}.cash-details{display:grid;gap:0;margin:22px 0}.cash-details div{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.cash-details .expected{font-weight:700;color:#087f78}dialog{border:1px solid #e5ebef;border-radius:16px;padding:27px;max-width:480px;width:calc(100% - 32px);box-shadow:0 20px 80px #10203944}dialog::backdrop{background:#0a172966;backdrop-filter:blur(3px)}dialog h2{font-size:20px;margin:0 0 20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#142c40;color:white;padding:13px 22px;border-radius:10px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:100}#toast.show{opacity:1}.receipt{font-family:monospace;font-size:12px;line-height:1.8}.receipt h2,.receipt p{text-align:center}.receipt .receipt-row{display:flex;justify-content:space-between;gap:12px}.receipt hr{border:0;border-top:1px dashed #9aabba}.receipt-note{font-size:10px;text-align:center;color:#6d7d8c}.notice{color:#7d8da0;font-size:12px;line-height:1.7}.file-input{font-size:12px;width:100%}.activity{font-size:12px;border-bottom:1px solid var(--line);padding:13px 0;display:flex;justify-content:space-between;gap:10px}.activity small{color:#8794a6;display:block;margin-top:5px}@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){main{padding:26px 22px}.pos-layout{grid-template-columns:1fr 300px}.product-grid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){aside{width:76px;padding:24px 10px}.brand{justify-content:center}.brand>div,.store,nav span,.aside-bottom{display:none}nav{margin-top:35px}nav button{justify-content:center;font-size:20px;padding:14px}main{margin-left:76px;width:calc(100% - 76px)}.pos-layout,.two-col{grid-template-columns:1fr}.cart-panel{position:static}header{gap:12px}h1{font-size:24px}.eyebrow{font-size:8px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:460px){main{padding:20px 12px}.panel{padding:17px}.product-grid{gap:8px}.product-card{padding:12px}.product-price{font-size:13px}.stat{padding:15px}.stat strong{font-size:20px}header .pill{font-size:10px;padding:8px}header p{font-size:11px}}@media print{body>*{display:none!important}body>dialog{display:block!important;position:static;border:0;box-shadow:none;max-width:80mm;width:80mm;padding:4mm;margin:0}dialog .form-actions{display:none}dialog::backdrop{display:none}.receipt{color:black}}
:root{color-scheme:dark;--teal:#56ffc5;--line:#223449;--paper-width:80mm;--ticket-font:12px;background:#071019;color:#e1eafa}body{background:radial-gradient(ellipse at 90% 0,#16304a55,transparent 48%),#071019;color:#e1eafa}[hidden]{display:none!important}aside{background:#0b1423;border-right:1px solid #1d3248;padding:26px 20px}.brand strong{color:#f0f5ff}.mark{color:#56ffc5;border-color:#56ffc566;box-shadow:0 0 24px #56ffc516}.store{background:#152338;color:#b9d0e4}nav{overflow:auto;min-height:0;margin-bottom:20px}nav button,nav .nav-link{color:#9bb1cd;padding:12px;border-radius:9px}nav .nav-link{display:flex;gap:13px;font-size:13px;text-decoration:none}nav button.selected{background:#183844;color:#66ffd1;box-shadow:inset 3px 0 #66ffd1}nav button:hover,nav .nav-link:hover{background:#1a2b40}.aside-bottom{border-top:1px solid #233349;padding-top:14px;flex-shrink:0}main{background:transparent}h1{color:#eff6ff}.eyebrow{color:#70bcd4}header p,.subtle,.notice,.form p{color:#9cb0c7}.demo-banner{background:#252519;border-color:#554b28;color:#d6c089}.panel,.product-card,.stat{background:#101d2d;border-color:#24374b;color:#e1eafa;box-shadow:0 12px 28px #00000014}.panel h2,.stat strong{color:#edf5ff}.product-card:hover{border-color:#58f7c1;box-shadow:0 0 24px #58f7c11c}.product-card strong{color:#edf5ff}.search,.form input,.form select,.form textarea,.field-label select,.field-label input{background:#0c1726;color:#dceafd;border:1px solid #30475f;border-radius:9px;padding:12px}.search::placeholder,.form input::placeholder{color:#7c91ab}.chips button{background:#111f30;border-color:#2a4059;color:#a9bfd8}.chips button.active{background:#58ffc5;color:#09221d;border-color:#58ffc5}.primary{background:#56ffc5;color:#06231b;box-shadow:0 0 22px #56ffc51a}.primary:hover{background:#94ffdd}.secondary{background:#17273b;color:#c3d8ef;border-color:#33506b}.secondary:hover{border-color:#70cfff;background:#20344a}.pill,.pill.open{background:#132e2c;color:#7fffd0;border-color:#2b685b}.text-btn{color:#7cdbc6}.text-btn.danger{color:#ff8e9f}.danger-btn{color:#ffa5b5;background:#351f2d;border-color:#6b3448}.cash-details .expected{color:#56ffc5}.cash-details div,.cart-line,td,th{border-color:#25394e}.qty button{background:#1c3046;color:#d2e7fb;border-color:#3a536b}.tag{background:#173a30;color:#80e8bd}.tag.void{background:#432638;color:#ff9eae}.tag.warning{background:#3b3220;color:#f1d88c}th{background:#0b1726;color:#88a6c7}td small,.product-card small,.stock{color:#8fb0c7}.stat span{color:#96b0ca}.cart-total strong{color:#6effcf}.cart-empty{color:#8ca5bc}.product-photo,.photo-placeholder{width:100%;height:122px;object-fit:contain;border-radius:10px;background:#091420;margin-bottom:13px}.photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:34px;color:#4abda6;border:1px dashed #31516b}.photo-placeholder small{display:block;font-size:10px;color:#809db8;margin-top:8px}.table-photo{width:56px;height:56px}.table-photo .product-photo,.table-photo .photo-placeholder{height:56px;margin:0}.table-photo .photo-placeholder{font-size:23px}.table-photo small{display:none}.photo-editor{max-width:180px;margin:auto}.photo-editor img,.photo-editor .photo-placeholder{height:150px}.field-label{display:grid;gap:8px;font-size:12px;color:#a9bfd7;margin:15px 0}.zone-tag{display:inline-block;font-size:11px;background:#183c38;border:1px solid #326356;border-radius:20px;padding:7px 12px;color:#89f7d2}dialog{background:#112034;color:#dce8f8;border-color:#365572;max-height:90vh;overflow:auto}dialog h2,dialog h3{color:#edf6ff}dialog::backdrop{background:#020814bb}.auth-panel{max-width:440px;margin:35px auto}.auth-mark{font-size:45px;color:#56ffc5}.auth-panel a{color:#87dbff;font-size:13px}.login-page main{width:100%;margin-left:0;max-width:1100px;margin-right:auto;margin-left:auto}.hero-panel{background:linear-gradient(125deg,#10362e,#101d33 70%);border-color:#2c6856;position:relative;overflow:hidden}.hero-panel:after{content:"";position:absolute;right:-24px;top:20px;width:160px;height:160px;border:1px solid #75ffc53a;border-radius:30px;transform:rotate(32deg);pointer-events:none}.hero-panel h2{font-size:32px;line-height:1.2;margin-top:18px}.launch-link{display:inline-block;text-decoration:none;margin-top:10px}.flow-line{font-size:12px;color:#83d7f4;border-top:1px solid #28435a;padding-top:22px;margin-top:28px}.section-title{font-size:18px;color:#d0e7fa;margin:26px 0 16px}.form label{color:#a4bdd6}#toast{background:#1d403c;border:1px solid #428574;color:#b7ffdd}@media(max-width:800px){nav .nav-link span{display:none}nav .nav-link{justify-content:center;font-size:20px}.hero-panel h2{font-size:26px}}@media print{html,body{background:white!important;color:black!important;color-scheme:light}body>dialog{background:white!important;color:black!important;max-height:none!important;overflow:visible!important;max-width:var(--paper-width)!important;width:var(--paper-width)!important;padding:3mm!important}body>dialog .receipt,body>dialog .receipt *{color:black!important;font-size:var(--ticket-font)}body>dialog .receipt h2{font-size:calc(var(--ticket-font) + 4px)}}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}fieldset{border:1px solid var(--line);border-radius:10px;padding:12px}legend{font-size:12px;padding:0 6px}a{color:#7cdfff}:root[data-theme="day"]{color-scheme:light;--teal:#087f78;--line:#d9e5e9;background:#f1f6f8;color:#183044}:root[data-theme="day"] body{background:#f1f6f8;color:#183044}:root[data-theme="day"] .panel,:root[data-theme="day"] .product-card,:root[data-theme="day"] .stat,:root[data-theme="day"] dialog{background:#fff;color:#183044;border-color:#d5e3e9;box-shadow:0 8px 25px #173e5110}:root[data-theme="day"] h1,:root[data-theme="day"] .panel h2,:root[data-theme="day"] .product-card strong,:root[data-theme="day"] .stat strong,:root[data-theme="day"] dialog h2,:root[data-theme="day"] dialog h3,:root[data-theme="day"] .section-title{color:#173549}:root[data-theme="day"] .notice,:root[data-theme="day"] .subtle,:root[data-theme="day"] header p,:root[data-theme="day"] .form p,:root[data-theme="day"] .form label,:root[data-theme="day"] .field-label,:root[data-theme="day"] td small,:root[data-theme="day"] .stat span{color:#526e80}:root[data-theme="day"] .search,:root[data-theme="day"] .form input,:root[data-theme="day"] .form select,:root[data-theme="day"] .form textarea,:root[data-theme="day"] .field-label select,:root[data-theme="day"] .field-label input{background:#f8fbfc;color:#173549;border-color:#becfd9}:root[data-theme="day"] .chips button,:root[data-theme="day"] .secondary,:root[data-theme="day"] .qty button{background:#fff;color:#235368;border-color:#c4d7e0}:root[data-theme="day"] .chips button.active{background:#087f78;color:#fff;border-color:#087f78}:root[data-theme="day"] .primary{background:#087f78;color:#fff}:root[data-theme="day"] .primary:hover{background:#04645e}:root[data-theme="day"] .text-btn,:root[data-theme="day"] .cart-total strong{color:#08756e}:root[data-theme="day"] .text-btn.danger{color:#aa3349}:root[data-theme="day"] .cash-details div,:root[data-theme="day"] .cart-line,:root[data-theme="day"] td,:root[data-theme="day"] th{border-color:#dce7ec}:root[data-theme="day"] th{background:#edf4f7;color:#4b6e82}:root[data-theme="day"] .photo-placeholder,:root[data-theme="day"] .product-photo{background:#f0f7f8}:root[data-theme="day"] .zone-tag{background:#e2f5ef;color:#13695e;border-color:#b5dbce}:root[data-theme="day"] .hero-panel{background:linear-gradient(125deg,#e0f9ef,#e9f4ff);border-color:#a8d7c8}:root[data-theme="day"] .eyebrow,:root[data-theme="day"] .flow-line{color:#226f83}:root[data-theme="day"] a{color:#087f78}:root[data-theme="day"] nav a{color:#a9c3d7}@media(max-width:600px){header{align-items:flex-start;flex-direction:column}.header-actions{width:100%;justify-content:space-between}.toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.form .two-col{grid-template-columns:1fr}}
@media(max-width:800px){body{display:block}aside{position:static;width:100%;padding:18px 16px;border-bottom:1px solid var(--line)}.brand{justify-content:flex-start}.brand>div{display:block}nav{display:flex;overflow-x:auto;gap:6px;margin:16px 0 0}nav button,nav .nav-link{font-size:13px;flex-shrink:0;white-space:nowrap;padding:10px 12px;justify-content:flex-start}nav span,nav .nav-link span{display:inline}main{width:100%;margin-left:0;padding:22px 16px}.login-page main{width:100%}}
.cash-shortcuts{display:grid;gap:10px}.cash-shortcuts>span{font-size:12px;color:#9cb0c7}.cash-shortcuts>div{display:flex;gap:8px;flex-wrap:wrap}.cash-shortcuts button{min-height:44px;border-color:#397563}.customer-profile{padding:13px;margin:12px 0;border:1px solid var(--line);border-radius:10px}.customer-profile small{font-size:10px;color:#9cb0c7}.customer-profile .notice{margin:9px 0}:root[data-theme="day"] .customer-profile small,:root[data-theme="day"] .cash-shortcuts>span{color:#526e80}
.demo-banner{background:#102936;border-color:#285268;color:#a9d8e8}.pill{background:#172738;border-color:#34516b;color:#a4bed3}.pill.open{background:#123b32;border-color:#32795f;color:#8cffd0}:root[data-theme="day"] .demo-banner{background:#e8f3f8;border-color:#bdd8e6;color:#315e74}:root[data-theme="day"] .pill{background:#edf3f7;border-color:#c0d1dd;color:#4a6579}:root[data-theme="day"] .pill.open{background:#e1f5ed;border-color:#a8d9c7;color:#16684f}
#client-search-status{display:block;margin:6px 0}.cart-panel>[data-action="new-customer"]{display:block;margin:6px 0 12px}
.client-combobox{position:relative;margin:15px 0}.client-combobox .field-label{margin:0 0 8px}.client-combobox>input{width:100%;padding:12px;border-radius:9px;border:1px solid #30475f;background:#0c1726;color:#dceafd}.client-suggestions{position:absolute;z-index:20;top:76px;left:0;right:0;max-height:280px;overflow:auto;background:#122337;border:1px solid #3e657c;border-radius:10px;box-shadow:0 12px 28px #0007;padding:5px}.client-suggestions button{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:12px;background:transparent;color:#e1eafa;min-height:48px}.client-suggestions button strong{font-size:12px;display:block}.client-suggestions button small{display:block;font-size:10px;color:#96b9cc;margin-top:5px}.client-suggestions button:hover,.client-suggestions button[aria-selected="true"]{background:#204b48;color:#9affe0}.client-no-results{padding:14px;font-size:12px;color:#a8bfd3}:root[data-theme="day"] .client-combobox>input{background:#f8fbfc;color:#173549;border-color:#becfd9}:root[data-theme="day"] .client-suggestions{background:#fff;border-color:#b6d4df;box-shadow:0 12px 28px #17354925}:root[data-theme="day"] .client-suggestions button{color:#173549}:root[data-theme="day"] .client-suggestions button small,:root[data-theme="day"] .client-no-results{color:#526e80}:root[data-theme="day"] .client-suggestions button:hover,:root[data-theme="day"] .client-suggestions button[aria-selected="true"]{background:#e1f5ed;color:#16684f}
.brand-logo{width:44px;height:44px;flex-shrink:0}.auth-logo{width:64px;height:64px;display:block;margin:0 auto 18px}.receipt-logo{width:45px;height:45px;display:block;margin:0 auto}.change-result{padding:18px;margin-bottom:22px;background:#143b31;border:1px solid #397764;border-radius:12px;text-align:center}.change-result span{display:block;font-size:12px;color:#b2edd6}.change-result strong{display:block;font-size:36px;color:#83ffd1;margin-top:8px}.check-field{display:flex!important;align-items:center;gap:10px;margin:8px 0}.check-field input{width:auto!important}.store-switch{font-size:12px;display:inline-flex;gap:8px;align-items:center}.store-switch select{background:#14263a;color:#dceafd;padding:10px;border:1px solid #3b566b;border-radius:8px;max-width:210px}.receipt{background:white;color:black;padding:14px;border-radius:8px}.receipt *{color:black!important}.cart-panel>[data-action="save-order"]{margin-bottom:10px}:root[data-theme="day"] .change-result{background:#e1f5ed;border-color:#a8d9c7}:root[data-theme="day"] .change-result span,:root[data-theme="day"] .change-result strong{color:#16684f}:root[data-theme="day"] .store-switch select{background:#fff;color:#173549;border-color:#becfd9}

.discount-mark{color:var(--text);font-weight:800;background:rgba(86,255,197,.15);padding:5px;border-radius:4px}.just-added{animation:ticket-added .65s ease-out}@keyframes ticket-added{0%{background:rgba(86,255,197,.4);transform:scale(1.03)}100%{background:transparent;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.just-added{animation:none;outline:2px solid #56ffc5}}

.business-logo-preview{display:block;max-width:256px;max-height:128px;background:white;padding:8px;border-radius:8px}.receipt-business-logo{display:block;max-width:32mm;max-height:16mm;object-fit:contain;margin:0 auto}.auth-panel:has(#setup){max-width:650px}.auth-panel #setup{max-height:65vh;overflow:auto;padding:12px}

/* Full NXO-RLA wordmark, with a light-surface version for day login. */
.brand-logo{width:196px;height:auto;max-width:100%;flex-shrink:1}.brand>div{display:none}.auth-logo{width:264px;height:auto;max-width:100%;margin-bottom:24px}.auth-logo+h2{display:none}:root[data-theme="day"] .auth-logo{content:url("assets/nxo-logo-dia.svg")}

/* Expandable navigation, shared by administration and checkout. */
aside{overflow-y:auto;overflow-x:hidden}nav{flex-shrink:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0 0 16px;border:1px solid #3a5466;border-radius:9px;background:#1a2b44;color:#e2e9f5;font-size:13px}.nav-icon{display:inline-block;min-width:20px;text-align:center;flex-shrink:0}.sidebar-collapsed aside{position:fixed;inset:0 auto 0 0;width:76px;padding:20px 10px}.sidebar-collapsed main{margin-left:76px;width:calc(100% - 76px)}.sidebar-collapsed nav{display:grid;gap:8px;overflow:visible;margin:16px 0 0}.sidebar-collapsed nav button,.sidebar-collapsed nav .nav-link{justify-content:center;padding:13px 8px;gap:0;min-height:46px}.sidebar-collapsed nav .nav-label,.sidebar-collapsed .store,.sidebar-collapsed .aside-bottom{display:none}.sidebar-collapsed .brand-logo{width:44px;height:44px;content:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20role%3D%22img%22%20aria-label%3D%22NXO%20RLA%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22brand-gradient%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2356ffc5%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2368ceff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%2050V14L51%2050V14%22%20fill%3D%22none%22%20stroke%3D%22url%28%23brand-gradient%29%22%20stroke-width%3D%228%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%2250%22%20r%3D%225%22%20fill%3D%22%2356ffc5%22%2F%3E%3Ccircle%20cx%3D%2251%22%20cy%3D%2214%22%20r%3D%225%22%20fill%3D%22%2368ceff%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%2214%22%20r%3D%226%22%20fill%3D%22%2356ffc5%22%20stroke%3D%22%23102037%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2251%22%20cy%3D%2250%22%20r%3D%226%22%20fill%3D%22%2356ffc5%22%20stroke%3D%22%23102037%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%225%22%20fill%3D%22%2356ffc5%22%20stroke%3D%22%23102037%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E")}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .sidebar-toggle{font-size:24px;width:100%}nav [hidden]{display:none!important}.login-page main{margin-left:0;width:100%}@media(prefers-reduced-motion:no-preference){aside,main{transition:width .18s ease,margin-left .18s ease}}

.direct-number{width:120px;padding:10px;background:#14263a;color:#e2e9f5;border:1px solid #3b566b;border-radius:8px}.direct-save{padding:18px;margin-bottom:14px;display:grid;gap:14px}.direct-save label{display:grid;gap:6px;font-size:13px}.direct-save input{padding:10px;background:#14263a;color:#e2e9f5;border:1px solid #3b566b;border-radius:8px}.direct-changed{background:#153c35}.direct-changed .direct-number{border-color:#56ffc5}:root[data-theme="day"] .direct-number,:root[data-theme="day"] .direct-save input{background:#fff;color:#173549;border-color:#becfd9}:root[data-theme="day"] .direct-changed{background:#e1f5ed}

.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:24px}.settings-card{text-align:left;padding:22px;border:1px solid var(--line);border-radius:12px;background:#14263a;color:#e2e9f5;display:grid;gap:8px;min-height:100px}.settings-card span{font-size:13px;color:#9cb0c7}:root[data-theme="day"] .settings-card{background:#fff;color:#173549}:root[data-theme="day"] .settings-card span{color:#526e80}.nav-icon svg{width:22px;height:22px;vertical-align:middle}.cedis-order-item{display:flex;gap:16px;align-items:center;margin-bottom:14px}.cedis-order-item .table-photo{width:56px;height:56px;flex-shrink:0}.employee-code{font-size:32px;font-weight:700;letter-spacing:8px;text-align:center}#modal textarea{width:100%;padding:12px}.settings-grid+ .two-col{margin-top:20px}

.supplier-recommendation{border:1px solid #397764;border-radius:10px;padding:12px;background:#123b32;font-size:13px}.supplier-recommendation p{margin:6px 0}.supplier-recommendation small{font-size:11px;color:#a9d8e8}:root[data-theme="day"] .supplier-recommendation{background:#e1f5ed;color:#173549;border-color:#a8d9c7}:root[data-theme="day"] .supplier-recommendation small{color:#526e80}
/* Center the working area and keep intrinsic table/form widths inside it. */
@media screen{
 html,body{width:100%;max-width:100%;min-width:0}
 main{min-width:0;flex-shrink:0;padding:clamp(18px,2.5vw,38px)}
 main>header,main>.demo-banner,main>#app{width:100%;max-width:1440px;margin-left:auto;margin-right:auto;min-width:0}
 main>header{margin-bottom:20px}
 .two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
 .two-col>*,.pos-layout>*,.panel,.toolbar>*,.form,.settings-grid>*{min-width:0}
 .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .form input,.form select,.form textarea{min-width:0;max-width:100%}
 .toolbar{flex-wrap:wrap;gap:12px}
 header>div:first-child{min-width:0}
 dialog{margin:auto;max-width:min(640px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;overflow-x:hidden;overflow-y:auto}
 .notice,.subtle,header p,.settings-card span{overflow-wrap:anywhere}
 body.login-page main{width:100%!important;max-width:1100px;margin-left:auto!important;margin-right:auto!important}
 @media(min-width:801px){
  body:not(.sidebar-collapsed):not(.login-page) aside{width:236px;padding:24px 20px}
  body:not(.sidebar-collapsed):not(.login-page) main{margin-left:236px;width:calc(100% - 236px)}
  body:not(.sidebar-collapsed) nav .nav-label{display:inline}
  body:not(.sidebar-collapsed) nav button,body:not(.sidebar-collapsed) nav .nav-link{justify-content:flex-start;gap:12px}
 }
 @media(max-width:1100px){.pos-layout,.two-col{grid-template-columns:minmax(0,1fr)}.cart-panel{position:static}}
 @media(max-width:800px){main{padding:20px 16px}.settings-grid{grid-template-columns:minmax(0,1fr)}.sidebar-collapsed main{padding:20px 12px}header{flex-wrap:wrap}.cedis-order-item{align-items:flex-start}}
 @media(max-width:480px){header{flex-direction:column;align-items:stretch}.header-actions{justify-content:space-between}.form .two-col{grid-template-columns:minmax(0,1fr)}dialog{padding:20px}.form-actions{flex-wrap:wrap}.settings-card{padding:18px}}
}
@media screen{dialog .form-actions{position:sticky;bottom:-20px;z-index:2;background:#112034;padding:12px 0;margin-top:18px}:root[data-theme="day"] dialog .form-actions{background:#fff}aside[hidden]{display:none!important}}

.store-inventory{border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0;font-size:12px;max-width:100%;overflow:auto}.store-inventory p{margin:0 0 8px}.store-inventory summary{cursor:pointer;color:#7cdfff}.store-inventory th,.store-inventory td{padding:8px;font-size:12px}:root[data-theme="day"] .store-inventory summary{color:#087f78}

.cedis-order-item>div{min-width:0;max-width:100%}

.section-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 22px}.customer-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.inventory-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.inventory-summary .panel{display:flex;flex-direction:column;gap:12px}.inventory-summary strong{font-size:28px}.direct-save[hidden]{display:none!important}.direct-save{position:sticky;top:8px;z-index:2;background:var(--panel);padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}@media(max-width:600px){.inventory-summary{grid-template-columns:1fr}.inventory-summary .panel{flex-direction:row;justify-content:space-between;align-items:center}}

.sidebar-submenu{position:fixed;z-index:40;width:min(292px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;background:#13263c;border:1px solid #35516a;box-shadow:0 14px 40px #0004;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:3px}.sidebar-submenu button{color:#dcebf5;text-align:left;padding:12px;border-radius:7px}.sidebar-submenu button:hover,.sidebar-submenu button:focus-visible{background:#234459;color:#76f0d4}.submenu-heading{display:flex;justify-content:space-between;align-items:center;padding:4px 10px 8px;color:#76f0d4}.submenu-heading button{font-size:22px;padding:4px 10px}:root[data-theme="day"] .sidebar-submenu{background:#fff;border-color:#bed4df}:root[data-theme="day"] .sidebar-submenu button{color:#23475b}:root[data-theme="day"] .sidebar-submenu button:hover,:root[data-theme="day"] .sidebar-submenu button:focus-visible{background:#e4f5f1;color:#06685f}:root[data-theme="day"] .submenu-heading{color:#087f78}.direct-save{background:#142b40}:root[data-theme="day"] .direct-save{background:#fff}

.inventory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-count-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.inventory-count-row label{flex:1}.inventory-count-row small{display:block;margin:6px 0}@media(max-width:600px){.inventory-summary{grid-template-columns:1fr}}

.item-comment{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 8px;color:#7391a5}

.low-stock-button{text-align:left;font-size:inherit;line-height:1.4;padding:0}.low-stock-button:hover{text-decoration:underline}

.dashboard-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:22px}.dashboard-filter label{display:flex;flex-direction:column;gap:6px;font-size:12px}.dashboard-filter input,.dashboard-filter select{padding:10px;border:1px solid var(--line);border-radius:8px;background:#142b40;color:#dcebf5}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.dashboard-metric{display:flex;flex-direction:column;gap:12px;border-top:3px solid #50b7f4}.dashboard-metric strong{font-size:clamp(19px,2vw,30px);letter-spacing:-.6px;overflow-wrap:anywhere}.dashboard-metric small{color:#829eb3;font-size:11px;line-height:1.5}.metric-1,.metric-3{border-top-color:#46d6b1}.metric-2{border-top-color:#a390f5}.metric-4,.metric-5{border-top-color:#f5c86a}.dashboard-charts{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;margin-bottom:20px}.dashboard-charts .panel{min-width:0}.dashboard-charts h2,.dashboard-actions h2{font-size:18px;margin-top:0}.sales-trend{display:block;width:100%;height:auto;margin:20px 0}.chart-grid{stroke:#7590a32a}.chart-axis{fill:#8ea9bb;font-size:10px}.chart-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.chart-legend{display:flex;gap:15px;font-size:12px}.legend-gross{color:#50b7f4}.legend-net{color:#46d6b1}.dashboard-bars{display:grid;gap:20px;margin-top:25px}.dashboard-bar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px}.dashboard-bar strong{white-space:nowrap}.bar-track{height:9px;border-radius:10px;background:#7590a31c;margin:9px 0;overflow:hidden}.bar-track span{display:block;height:100%;border-radius:10px}.dashboard-bar small{font-size:11px;color:#829eb3}.dashboard-actions{display:grid;grid-template-columns:2fr 1fr;gap:18px}.dashboard-control{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-control div,.stock-alert{display:flex;flex-direction:column;gap:12px}.dashboard-control span,.stock-alert small{font-size:12px;color:#829eb3}.dashboard-control strong,.stock-alert strong{font-size:24px}.stock-alert{text-align:left;color:inherit;border:1px solid #46d6b15a}.stock-alert:hover{border-color:#46d6b1}.cost-coverage{padding:14px;border:1px solid #f5c86a66;border-radius:10px}:root[data-theme="day"] .dashboard-filter input,:root[data-theme="day"] .dashboard-filter select{background:white;color:#173549}:root[data-theme="day"] .chart-axis{fill:#526e80}:root[data-theme="day"] .dashboard-metric small,:root[data-theme="day"] .dashboard-control span,:root[data-theme="day"] .stock-alert small{color:#526e80}@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts{grid-template-columns:1fr}}@media(max-width:650px){.dashboard-actions{grid-template-columns:1fr}.dashboard-control{grid-template-columns:1fr}.dashboard-filter label{flex:1;min-width:130px}.dashboard-metric{padding:16px}.chart-axis{font-size:11px}}

.dashboard-credit-button{text-align:left;padding:0;font-size:inherit}.dashboard-credit-button:hover{text-decoration:underline}

button.dashboard-metric{text-align:left;color:inherit;cursor:pointer}button.dashboard-metric:hover{box-shadow:0 0 0 1px #46d6b1}.dashboard-control>button{display:flex;flex-direction:column;gap:12px;text-align:left;padding:0;color:inherit}.drill-total{font-size:28px}

.dashboard-control{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.dashboard-control{grid-template-columns:1fr}}

.dashboard-control{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:650px){.dashboard-control{grid-template-columns:1fr}}

#app>.stock-alert{width:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:20px}.stock-alert>strong{margin-left:auto}.dashboard-actions{grid-template-columns:1fr}

.punctuality-bars{display:grid;gap:18px;margin-top:20px}.punctuality-track{display:flex;height:10px;overflow:hidden;border-radius:10px;margin:8px 0}.punctuality-track span{height:100%}.punctuality-bars small{color:#829eb3;font-size:11px}.attendance-charts{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:900px){.attendance-charts{grid-template-columns:1fr}}

.attendance-camera video,.attendance-camera img{display:block;max-width:100%;width:320px;border-radius:10px;margin-bottom:12px}.attendance-camera [hidden]{display:none!important}

.purchase-editor-table{min-width:900px}.purchase-editor-table td{vertical-align:top;padding:10px}.purchase-editor-table input{width:110px;min-width:90px}.purchase-editor-table select{min-width:170px;max-width:220px}.purchase-editor-table details[open]{min-width:210px}.purchase-editor-table small{display:block}.table-wrap{overflow-x:auto}dialog:has(#order-form){width:min(1200px,94vw);max-width:94vw}

.inventory-editor-table{min-width:660px}.inventory-editor-table input{width:120px}.inventory-editor-table td{vertical-align:middle}dialog:has(#inventory-form),dialog:has(#inventory-confirm-form){width:min(1000px,94vw);max-width:94vw}

.category-expand{font-size:1rem;font-weight:700;text-align:left}.category-submenu>td{padding:10px 18px}.category-submenu .panel{box-shadow:none;margin:0}.category-submenu h3{margin:0}

.pin-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(320px,100%);margin:10px auto}.pin-keypad button{min-height:64px;font-size:1.6rem;font-weight:700;touch-action:manipulation}.pin-keypad .pin-clear{font-size:1rem}.pin-unlock{min-height:58px}.auth-panel:has(#unlock-form){width:min(440px,100%)}#unlock-form input{font-size:1.5rem;letter-spacing:.5rem;text-align:center}

.language-choice{display:flex;align-items:center;gap:8px;font-size:13px}.language-choice select{min-width:110px;width:auto}.brand-logo{width:210px}.auth-logo{width:330px}

.pin-control{position:relative;display:block}.pin-control input.pin-private{color:transparent;caret-color:transparent}.pin-mask{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:22px;letter-spacing:5px;color:var(--text)}.stock-low{background:color-mix(in srgb,#ffbc48 14%,var(--panel));}.stock-empty{background:color-mix(in srgb,#ff666d 16%,var(--panel));}.inventory-low-button{text-align:left;cursor:pointer;color:inherit}.inventory-low-button:hover{border-color:var(--accent)}

.business-brand{display:flex;align-items:center;gap:12px;margin:0 0 16px;min-width:0}.business-brand img{max-width:110px;max-height:56px;object-fit:contain;background:white;border-radius:8px;padding:5px}.business-brand span{overflow-wrap:anywhere;font-weight:600}.sidebar-collapsed #sidebar .business-brand{display:none}#sidebar .business-brand{flex-direction:column;text-align:center}#app>.business-brand{justify-content:flex-start}

#app>.business-brand{min-height:100px;margin:0 0 22px;padding:16px 20px;border-radius:14px;border:1px solid var(--line);background:var(--panel)}#app>.business-brand img{width:auto;max-width:min(320px,55vw);max-height:110px;padding:8px}#app>.business-brand span{font-size:clamp(20px,2vw,30px)}@media(max-width:600px){#app>.business-brand{padding:12px;gap:12px}#app>.business-brand img{max-width:48vw;max-height:90px}}

nav.sidebar-submenu{margin:0!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:14px;padding:10px;gap:3px}nav.sidebar-submenu button,.sidebar-submenu .submenu-heading{flex-shrink:0}.sidebar-collapsed nav.sidebar-submenu{display:flex;gap:3px} .sidebar-collapsed nav.sidebar-submenu button{justify-content:flex-start;min-height:44px;padding:12px;text-align:left}

body:not(.sidebar-collapsed) #sidebar .brand{justify-content:center}body:not(.sidebar-collapsed) #sidebar .brand-logo{width:180px;height:auto;aspect-ratio:7/6;object-fit:contain}.login-page .auth-logo{width:min(220px,70vw);height:auto;aspect-ratio:7/6;object-fit:contain}
/* Keep category accents when the light panel border rule applies. */
.dashboard-metric{--metric-accent:#50b7f4}.dashboard-metric.metric-1,.dashboard-metric.metric-3{--metric-accent:#46d6b1}.dashboard-metric.metric-2{--metric-accent:#a390f5}.dashboard-metric.metric-4,.dashboard-metric.metric-5{--metric-accent:#f5c86a}
:root[data-theme="day"] .dashboard-metric{border-top:3px solid var(--metric-accent)}
:root[data-theme="day"] .stock-alert{border-color:#37bda0}
:root[data-theme="day"] .stock-alert:hover,:root[data-theme="day"] .stock-alert:focus-visible{border-color:#0c987d;box-shadow:0 0 0 1px #37bda0}
:root[data-theme="day"] .product-card:hover,:root[data-theme="day"] .product-card:focus-visible{border-color:#1bbd99;box-shadow:0 0 0 1px #1bbd9940,0 8px 22px #1bbd991a}
:root[data-theme="day"] .cart-panel{border-color:#37bda0;box-shadow:0 8px 25px #1bbd991a}
:root[data-theme="day"] .search:focus-visible{border-color:#1bbd99}
/* PIN digits remain hidden across theme overrides and iOS text rendering. */
html .pin-control input.pin-private,
html[data-theme="day"] .pin-control input.pin-private{
 color:transparent!important;
 -webkit-text-fill-color:transparent!important;
 caret-color:transparent!important;
 text-shadow:none!important;
}
.pin-control input.pin-private::selection{color:transparent;-webkit-text-fill-color:transparent;background:transparent}
.pin-control .pin-mask{color:#dceafd}
html[data-theme="day"] .pin-control .pin-mask{color:#173549}

small.refund-mark{color:#ff9eae;font-weight:700;background:#432638;border-radius:6px;padding:5px 8px;margin-top:8px;display:inline-block}html[data-theme="day"] small.refund-mark{color:#a12a49;background:#ffedf2}html[data-theme="day"] small.discount-mark{color:#88600c;background:#fff4d6}small.discount-mark{border-radius:6px;padding:5px 8px;margin-top:8px;display:inline-block}

.pin-business-logo{display:block;width:min(260px,75vw);height:130px;object-fit:contain;margin:0 auto 22px;}

.cost-trend{font-weight:700}.cost-down{color:#087f5b!important}.cost-up{color:#c92a2a!important}.cost-equal{color:var(--muted)}html[data-theme="night"] .cost-down,body.dark .cost-down{color:#63e6be!important}html[data-theme="night"] .cost-up,body.dark .cost-up{color:#ff8787!important}

dialog.cost-history-modal{width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px)}.cost-history-modal .cost-trend{white-space:normal;min-width:170px}.cost-history-modal td:first-child{min-width:150px}

dialog:has(#cedis-order-form){width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px)}.cedis-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}.cedis-catalog-grid .cedis-order-item{display:flex;flex-direction:column;align-items:stretch;margin:0;padding:16px}.cedis-catalog-grid legend{font-size:15px;font-weight:700}.cedis-catalog-grid .table-photo{width:100%;height:130px}.cedis-catalog-grid .table-photo img{width:100%;height:100%;object-fit:contain}.cedis-catalog-grid .cedis-order-item p{margin:8px 0}.cedis-catalog-grid .cedis-order-item input{width:100%}

.cedis-catalog-grid .table-photo .photo-placeholder{height:100%;margin:0}

.modal-close-bar{position:sticky;top:0;z-index:5;display:flex;justify-content:flex-end;margin:0 0 14px;padding:6px 0;background:#142031}.modal-close-button{min-width:100px;min-height:44px}:root[data-theme="day"] .modal-close-bar{background:#fff}

/* Connector links are complete button boxes, including on mobile Safari. */
.connector-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.connector-actions>a,.connector-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;white-space:normal;text-align:center;line-height:1.4;text-decoration:none;overflow-wrap:anywhere;flex:1 1 190px}.connector-actions>a.primary{color:#06231b}:root[data-theme="day"] .connector-actions>a.primary{color:#fff}@media(max-width:600px){.connector-actions{display:grid;grid-template-columns:minmax(0,1fr)}.connector-actions>a,.connector-actions>button{width:100%;min-width:0}}

/* Keep session actions outside the scrolling system menu. */
#sidebar{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
#sidebar>.brand,#sidebar>.store,#sidebar>.sidebar-toggle,#sidebar>.aside-bottom{flex-shrink:0}
#sidebar>#sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
#sidebar-nav>button,#sidebar-nav>.nav-link{flex-shrink:0}
#sidebar>.aside-bottom{margin-top:12px}
.sidebar-session{flex:0 0 auto;display:grid;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid #35516a;padding-bottom:env(safe-area-inset-bottom,0px)}
.sidebar-session button{display:flex;align-items:center;gap:12px;min-height:46px;border:1px solid #35516a;border-radius:10px;background:#14283c;color:#d8ecf6;padding:10px 12px;text-align:left}
.sidebar-session button:hover{background:#234459;color:#65efd2}
.sidebar-session svg{width:22px;height:22px;display:block}
.sidebar-collapsed .sidebar-session .nav-label{display:none}
.sidebar-collapsed .sidebar-session button{justify-content:center;padding:10px 6px}
:root[data-theme="day"] .sidebar-session button{background:#fff;color:#23475b;border-color:#b4cfdc}
@media(max-width:800px){body:not(.login-page) #sidebar{position:fixed;inset:0 auto 0 0;width:76px;padding:16px 10px}body:not(.login-page) main{margin-left:76px;width:calc(100% - 76px)}#sidebar .brand>div,#sidebar .store,#sidebar .aside-bottom,#sidebar .sidebar-session .nav-label,#sidebar-nav .nav-label{display:none}#sidebar-nav button{justify-content:center;padding:12px 8px}#sidebar .sidebar-session button{justify-content:center;padding:10px 6px}#sidebar .brand{justify-content:center}}

/* Compact business-administration identity; central control has its own design. */
body:not(.sidebar-collapsed) #sidebar .brand-logo{width:76px;height:65px;max-width:100%;object-fit:contain;aspect-ratio:auto}#sidebar .brand{min-height:0;margin-bottom:8px}#sidebar .business-brand{margin-bottom:10px}.sidebar-collapsed #sidebar .brand-logo{width:44px;height:44px}


/* Product catalogue: scoped dashboard accents, compatible with day/night. */
.product-catalog{--catalog-blue:#61baff;--catalog-green:#45e0bd;--catalog-amber:#f2c66d;--catalog-muted:#a5b9cc;--catalog-row:#102335;--catalog-head:#132c40}
.product-catalog .catalog-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.product-catalog .catalog-stat{--accent:var(--catalog-blue);position:relative;overflow:hidden;padding:18px 22px;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:16px;background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 10%,transparent),transparent 70%);display:flex;flex-direction:column;gap:7px}
.product-catalog .catalog-stat::after{content:'';position:absolute;width:70px;height:70px;border:12px solid var(--accent);opacity:.07;border-radius:50%;right:-18px;bottom:-24px;pointer-events:none}
.product-catalog .catalog-green{--accent:var(--catalog-green)}.product-catalog .catalog-amber{--accent:var(--catalog-amber)}
.product-catalog .catalog-stat>span{font-size:12px;font-weight:650}.product-catalog .catalog-stat>strong{color:var(--accent);font-size:32px;line-height:1.15;letter-spacing:-1px}.product-catalog .catalog-stat>small{color:var(--catalog-muted);font-size:12px}
.product-catalog .product-catalog-tools{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--catalog-row);gap:10px}.product-catalog-tools>.subtle{flex-basis:100%;color:var(--catalog-muted);font-size:12px}.product-catalog #product-search{flex:1;min-width:210px;border-radius:10px;border:1px solid var(--line);padding:12px}
.product-catalog .table-wrap{border:1px solid var(--line);border-radius:16px;overflow:auto;margin-top:16px}.product-catalog table{margin:0;width:100%}.product-catalog thead{background:var(--catalog-head)}.product-catalog th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--catalog-muted);padding:16px 13px}.product-catalog td{padding:15px 13px;vertical-align:middle}.product-catalog tbody tr{transition:background-color .15s,box-shadow .15s}.product-catalog tbody tr:nth-child(even){background:color-mix(in srgb,var(--catalog-blue) 3%,transparent)}.product-catalog tbody tr:hover,.product-catalog tbody tr:focus-visible{background:color-mix(in srgb,var(--catalog-green) 8%,transparent);box-shadow:inset 3px 0 var(--catalog-green)}.product-catalog tbody tr:has(input:checked){background:color-mix(in srgb,var(--catalog-blue) 11%,transparent);box-shadow:inset 3px 0 var(--catalog-blue)}
.product-catalog input[type=checkbox]{width:18px;height:18px;accent-color:var(--catalog-green);cursor:pointer}.product-catalog .catalog-product-name{display:block;font-size:14px}.product-catalog td small{color:var(--catalog-muted)}.product-catalog .catalog-price{color:var(--catalog-green);font-weight:700}.product-catalog .catalog-cost{font-variant-numeric:tabular-nums}.product-catalog .table-photo{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:color-mix(in srgb,var(--catalog-blue) 6%,transparent)}
.product-catalog .catalog-stock,.product-catalog .catalog-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:8px;font-size:11px;font-weight:650;line-height:1.4;white-space:nowrap}.product-catalog .is-ready,.product-catalog .is-active{color:#6de6c9;background:#32c7a418}.product-catalog .is-low{color:#f6cf7f;background:#e2a63018}.product-catalog .is-empty{color:#ffaca8;background:#ee6b6418}.product-catalog .is-inactive{color:#adbdcd;background:#93abc016}.product-catalog nav.toolbar{margin-top:16px;justify-content:space-between}.product-catalog nav.toolbar>span{font-size:12px;color:var(--catalog-muted)}
:root[data-theme="day"] .product-catalog{--catalog-blue:#1672ad;--catalog-green:#087c65;--catalog-amber:#956008;--catalog-muted:#526b7b;--catalog-row:#f6fafc;--catalog-head:#edf4f8}
:root[data-theme="day"] .product-catalog .is-ready,:root[data-theme="day"] .product-catalog .is-active{color:#07684f;background:#dff5eb}:root[data-theme="day"] .product-catalog .is-low{color:#805207;background:#fff0cf}:root[data-theme="day"] .product-catalog .is-empty{color:#a32924;background:#ffe6e3}:root[data-theme="day"] .product-catalog .is-inactive{color:#506274;background:#e9eef3}
@media(max-width:650px){.product-catalog .catalog-overview{gap:8px;margin-bottom:14px}.product-catalog .catalog-stat{padding:12px 10px;border-radius:12px}.product-catalog .catalog-stat>strong{font-size:25px}.product-catalog .catalog-stat>span{font-size:11px}.product-catalog .catalog-stat>small{font-size:10px}.product-catalog .product-catalog-tools{padding:12px}.product-catalog nav.toolbar{justify-content:center}.product-catalog nav.toolbar>span{order:-1;flex-basis:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.product-catalog tbody tr{transition:none}}
.product-catalog .catalog-search{flex-basis:100%;width:100%;display:flex;flex-direction:column;gap:10px;padding:16px 18px;margin:2px 0 8px;border:1px solid color-mix(in srgb,var(--catalog-blue) 48%,transparent);border-radius:14px;background:linear-gradient(115deg,color-mix(in srgb,var(--catalog-blue) 10%,transparent),color-mix(in srgb,var(--catalog-green) 4%,transparent));box-shadow:0 4px 20px #00000008}
.product-catalog .catalog-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:700}.product-catalog .catalog-search-heading small{font-size:11px;font-weight:500;color:var(--catalog-muted)}.product-catalog .catalog-search-control{display:flex;align-items:center;gap:12px}.product-catalog .catalog-search-control svg{width:24px;height:24px;flex:none;color:var(--catalog-blue)}.product-catalog #product-search{width:100%;min-width:0;min-height:48px;font-size:15px;padding:13px 15px;background:var(--catalog-row);border:1px solid color-mix(in srgb,var(--catalog-blue) 48%,transparent);box-shadow:0 1px 4px #0000000a}.product-catalog #product-search::placeholder{color:var(--catalog-muted);opacity:1}.product-catalog #product-search:focus{outline:3px solid color-mix(in srgb,var(--catalog-blue) 24%,transparent);outline-offset:2px;border-color:var(--catalog-blue)}
@media(max-width:650px){.product-catalog .catalog-search{padding:13px 12px}.product-catalog .catalog-search-heading{font-size:14px}.product-catalog .catalog-search-control{gap:8px}.product-catalog #product-search{font-size:16px}.product-catalog .catalog-search-heading small{font-size:10px}}
.product-catalog .product-catalog-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:4px 0 16px}.product-catalog-heading h2{font-size:20px;margin:0 0 6px}.product-catalog-heading p{font-size:12px;color:var(--catalog-muted);margin:0}.product-catalog .catalog-main-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.product-catalog .catalog-main-actions>button{min-height:42px;border-radius:10px}.product-catalog .catalog-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;flex-basis:100%;padding-top:8px}.product-catalog .catalog-selection-caption{font-size:11px;color:var(--catalog-muted);margin-right:5px}.product-catalog .catalog-selection-actions>button{font-size:12px;padding:9px 12px;min-height:38px;border-radius:9px}.product-catalog .catalog-selection-actions>[data-products-delete]{margin-left:auto;border-color:#dd777360;color:#ffb3ad;background:#e56f6510}.product-catalog .catalog-selection-actions>[data-products-delete]:disabled{opacity:.4;cursor:not-allowed}:root[data-theme="day"] .product-catalog .catalog-selection-actions>[data-products-delete]{color:#a73128;border-color:#d78e87;background:#fff2f0}
@media(max-width:650px){.product-catalog .product-catalog-heading{align-items:stretch}.product-catalog .catalog-main-actions{width:100%;display:grid;grid-template-columns:1fr}.product-catalog .catalog-selection-caption{flex-basis:100%}.product-catalog .catalog-selection-actions{display:grid;grid-template-columns:1fr 1fr}.product-catalog .catalog-selection-caption{grid-column:1/-1}.product-catalog .catalog-selection-actions>[data-products-delete]{grid-column:1/-1;width:100%;margin-left:0}}
.product-catalog tbody tr[data-product-open]{cursor:pointer}.product-catalog .catalog-edit-cue{display:inline-flex;align-items:center;margin-left:8px;font-size:10px;font-weight:600;color:var(--catalog-muted);white-space:nowrap;border:1px solid var(--line);padding:3px 6px;border-radius:6px;vertical-align:middle;transition:color .15s,background-color .15s,border-color .15s}
.product-catalog tbody tr[data-product-open]:hover,.product-catalog tbody tr[data-product-open]:focus-visible{background:color-mix(in srgb,var(--catalog-green) 14%,var(--catalog-row));box-shadow:inset 4px 0 var(--catalog-green),inset 0 1px color-mix(in srgb,var(--catalog-green) 40%,transparent),inset 0 -1px color-mix(in srgb,var(--catalog-green) 40%,transparent);outline:none}.product-catalog tbody tr[data-product-open]:hover .catalog-edit-cue,.product-catalog tbody tr[data-product-open]:focus-visible .catalog-edit-cue{color:var(--catalog-green);border-color:var(--catalog-green);background:color-mix(in srgb,var(--catalog-green) 12%,transparent)}.product-catalog tbody tr[data-product-open]:active{background:color-mix(in srgb,var(--catalog-green) 24%,var(--catalog-row));box-shadow:inset 5px 0 var(--catalog-green)}
/* Shared catalogue controls: Products and Available inventory only. */
.catalog-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:18px;padding:16px 4px;margin:12px 0 20px;overflow:visible;border-top:1px solid var(--line)}.catalog-pagination label{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:14px;color:inherit;margin:0}.catalog-pagination select,.catalog-pagination input{min-height:42px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:#102335;color:#e1eafa;font-size:16px}.catalog-pagination input{width:76px;text-align:center}.catalog-pagination select{min-width:85px}.catalog-pagination .catalog-page-arrows{display:flex;gap:8px}.catalog-pagination .catalog-page-arrows button{display:grid;place-items:center;min-width:42px;height:42px;font-size:28px;line-height:1;padding:0;border:1px solid var(--line)}.catalog-pagination>small{font-size:11px;color:#a5b9cc}.catalog-pagination button:disabled{opacity:.35}:root[data-theme="day"] .catalog-pagination input,:root[data-theme="day"] .catalog-pagination select{background:#fff;color:#19283e}:root[data-theme="day"] .catalog-pagination>small{color:#526b7b}@media(max-width:650px){.catalog-pagination{justify-content:center;gap:12px}.catalog-pagination>small{flex-basis:100%;text-align:center}.catalog-pagination label{font-size:12px}}

/* Discount approval notification and primary decision. */
#discount-inbox-button.discount-inbox-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 15px;border:1px solid #6ab4f0;border-radius:12px;background:#142d43;color:#b9e3ff;font-weight:700;font-size:13px;box-shadow:0 4px 14px #00000020}
#discount-inbox-button.discount-inbox-button svg{width:23px;height:23px;flex:none}#discount-inbox-button .discount-pending-count{display:grid;place-items:center;min-width:27px;min-height:27px;padding:3px 7px;border-radius:9px;background:#64baff;color:#071c2d;font-size:14px}
#discount-inbox-button.has-pending-approvals{border:2px solid #f6c66a;background:#503718;color:#fff0ce;box-shadow:0 0 0 3px #f6c66a18,0 5px 20px #00000030}#discount-inbox-button.has-pending-approvals .discount-pending-count{background:#ffd37c;color:#452c06}#discount-inbox-button:hover{filter:brightness(1.12);transform:translateY(-1px)}#discount-inbox-button:focus-visible{outline:3px solid #f6c66a;outline-offset:3px}
.discount-approve-action:not([data-approved="false"]){min-height:48px;padding:13px 20px;font-weight:750;border:1px solid #6df0c6;box-shadow:0 4px 16px #42cba32b}.discount-approve-action[data-approved="false"]{background:transparent;border:1px solid #bb8e8b;color:inherit;box-shadow:none}
:root[data-theme="day"] #discount-inbox-button.discount-inbox-button{background:#eaf5ff;color:#145580;border-color:#78aaca}:root[data-theme="day"] #discount-inbox-button.has-pending-approvals{background:#fff0cf;color:#6e4305;border-color:#bb7c17;box-shadow:0 0 0 3px #d79d2720}
@media(max-width:650px){#discount-inbox-button.discount-inbox-button{max-width:100%;font-size:12px;min-height:44px;flex-wrap:wrap}#discount-inbox-button .discount-pending-count{min-width:25px;min-height:25px}}
@media(prefers-reduced-motion:reduce){#discount-inbox-button:hover{transform:none}}
.discount-requests-entry{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:1px solid #65b9f0;border-radius:11px;background:#16354c;color:#c3e8ff;font-weight:700;margin:12px 0}:root[data-theme="day"] .discount-requests-entry{background:#e8f4ff;color:#145580;border-color:#7ca8c7}



/* Unified settings workspace: one gear, local categories, active detail. */
.settings-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start;margin-top:12px;min-width:0}.settings-category-nav{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid var(--line);border-radius:15px;background:#101e2d;overflow:visible;margin:0;position:sticky;top:18px;max-height:calc(100vh - 42px);overflow-y:auto}.settings-category-title{padding:13px 12px 17px;border-bottom:1px solid var(--line);margin-bottom:8px;display:flex;flex-direction:column;gap:8px}.settings-category-title strong{font-size:18px}.settings-category-title small{font-size:12px;color:#9eb6cb}.settings-category-nav>button{display:block;text-align:left;white-space:normal;padding:12px 13px;border-radius:9px;flex-shrink:0;font-size:13px;line-height:1.4;border:1px solid transparent;color:#adc1d2;background:transparent}.settings-category-nav>button:hover{background:#1b3446}.settings-category-nav>button.is-current{background:#173e3e;color:#68edcb;border-color:#45c6aa42;box-shadow:inset 3px 0 #56ddbc}.settings-category-nav>.settings-logout{color:#ffc0b7;margin-top:12px;border-top:1px solid var(--line);border-radius:0;padding-top:17px}.settings-detail{min-width:0}.settings-detail>.panel{margin-top:0}.settings-detail h2{font-size:21px}.settings-detail .form{max-width:none}.settings-feature-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.settings-feature-row p{font-size:13px;color:#9eb6cb;line-height:1.6;margin:7px 0 0}.settings-feature-row button{flex-shrink:0}.settings-detail h3{margin-top:26px}.settings-detail p{line-height:1.6}#app>button[data-view="settings"]{display:none}
:root[data-theme="day"] .settings-category-nav{background:#fff}:root[data-theme="day"] .settings-category-title small,:root[data-theme="day"] .settings-feature-row p{color:#526d7e}:root[data-theme="day"] .settings-category-nav>button{color:#385467}:root[data-theme="day"] .settings-category-nav>button:hover{background:#edf5f8}:root[data-theme="day"] .settings-category-nav>button.is-current{background:#e1f5ee;color:#08674e;border-color:#a6d8c7;box-shadow:inset 3px 0 #159371}:root[data-theme="day"] .settings-category-nav>.settings-logout{color:#a2392b}
@media(max-width:1000px){.settings-workspace{grid-template-columns:205px minmax(0,1fr);gap:15px}.settings-category-nav>button{padding:11px 10px;font-size:12px}.settings-detail .two-col{grid-template-columns:1fr}}@media(max-width:700px){.settings-workspace{grid-template-columns:1fr;gap:14px}.settings-category-nav{position:static;max-height:none;display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;padding:10px;gap:8px}.settings-category-title{display:none}.settings-category-nav>button{white-space:nowrap;padding:10px 12px;border:1px solid var(--line);border-radius:9px}.settings-category-nav>.settings-logout{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px}.settings-feature-row{align-items:flex-start;gap:12px}.settings-feature-row button{font-size:12px;padding:9px}.settings-detail h2{font-size:19px}}
/* Settings on phones: category selector and full-width detail. */
.settings-mobile-navigation{display:none}
@media(max-width:800px){.settings-workspace{display:flex;flex-direction:column;width:100%;gap:14px}.settings-workspace>.settings-category-nav{display:none}.settings-mobile-navigation{display:flex;flex-direction:column;width:100%;padding:14px;border:1px solid var(--line);border-radius:13px;background:#101e2d;gap:10px}.settings-mobile-navigation label{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#a9c0d4;min-width:0}.settings-mobile-navigation select{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;padding:12px;font-size:16px;border:1px solid #3c6e86;border-radius:10px;background:#173347;color:#e7f4ff}.settings-mobile-logout{align-self:flex-end;min-height:40px;color:#ffbfb4;font-size:12px;padding:8px 10px}.settings-detail{width:100%;max-width:100%;min-width:0}.settings-detail>.panel{padding:16px;border-radius:13px}.settings-detail h2,.settings-detail p,.settings-detail label{overflow-wrap:anywhere}.settings-detail .form,.settings-detail form,.settings-detail fieldset,.settings-detail .two-col{min-width:0;width:100%;max-width:100%}.settings-detail .two-col{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.settings-detail input:not([type=checkbox]):not([type=radio]),.settings-detail select,.settings-detail textarea{min-width:0;width:100%;max-width:100%;font-size:16px;min-height:44px}.settings-detail button:not(.text-btn){max-width:100%;white-space:normal;min-height:44px}.settings-detail form>button,.settings-feature-row>button{width:100%}.settings-feature-row{flex-direction:column;align-items:stretch;padding:16px 0;gap:12px}.settings-detail fieldset{margin-left:0;margin-right:0;padding:12px}.settings-detail .form-actions{flex-direction:column}.settings-detail .table-wrap{max-width:100%;overflow-x:auto}.settings-detail .panel>.secondary,.settings-detail .panel>.primary{margin-bottom:8px}.settings-detail .settings-feature-row p{margin:6px 0 0}:root[data-theme="day"] .settings-mobile-navigation{background:#fff}:root[data-theme="day"] .settings-mobile-navigation label{color:#526d7e}:root[data-theme="day"] .settings-mobile-navigation select{background:#f2f8fc;color:#173549;border-color:#86b2c6}:root[data-theme="day"] .settings-mobile-logout{color:#a2392b}}
@media(max-width:800px){.settings-detail form{margin-bottom:16px}.settings-detail form>button{margin-top:12px}}
/* Horizontal phone tabs and logout immediately below the gear. */
#sidebar-nav .sidebar-logout-button{color:#e7b4ac;margin-top:4px;border-top:1px solid var(--line)}:root[data-theme="day"] #sidebar-nav .sidebar-logout-button{color:#9a3d30}
@media(max-width:800px){.settings-workspace>.settings-category-nav{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;position:static;width:100%;max-width:100%;min-width:0;max-height:none;overflow-x:auto;overflow-y:hidden;gap:8px;padding:10px;margin:0;border-radius:12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.settings-category-nav .settings-category-title{display:none}.settings-category-nav>button{flex:0 0 auto;display:block;white-space:nowrap;min-height:44px;padding:10px 13px;margin:0;font-size:12px;border:1px solid var(--line);border-radius:9px}.settings-category-nav>button.is-current{box-shadow:inset 0 -3px #56ddbc}.settings-mobile-navigation{display:none!important}:root[data-theme="day"] .settings-category-nav>button.is-current{box-shadow:inset 0 -3px #159371}}

/* Employee form validation */
#employee-form .employee-form-error{padding:13px 15px;border:1px solid #f09c8b;border-radius:10px;background:#4a2825;color:#ffe0d8;font-size:14px;line-height:1.6;margin:0 0 12px}#employee-form button[type=submit]:disabled{cursor:wait;opacity:.7}:root[data-theme="day"] #employee-form .employee-form-error{background:#fff0eb;color:#962c1e;border-color:#d48b7c}
/* Settings navigation: isolated from the main collapsed sidebar */
@media(min-width:801px){
body .settings-workspace>.settings-category-nav{display:flex;flex-direction:column;align-items:stretch;position:sticky;top:18px;align-self:start;width:100%;min-width:0;min-height:0;max-height:calc(100dvh - 36px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;padding:10px;margin:0}
body .settings-workspace>.settings-category-nav>button{display:block;flex:0 0 auto;width:100%;min-width:0;height:auto;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:12px 13px;line-height:1.45}
body .settings-workspace>.settings-category-nav .settings-category-title{flex:0 0 auto;min-width:0}
}
@media(max-width:800px){body .settings-workspace>.settings-category-nav{display:flex;flex-direction:row;flex-wrap:nowrap;position:static;max-height:none;overflow-x:auto;overflow-y:hidden;min-width:0;width:100%;margin:0;padding:10px}body .settings-workspace>.settings-category-nav>button{flex:0 0 auto;width:auto;white-space:nowrap;padding:10px 13px}}

/* POS compact identity and square product previews, 2026-10-19 */
body[data-mode="cashier"] main>header{gap:16px;flex-wrap:wrap}
.pos-business-heading{display:flex;align-items:center;gap:12px;min-width:0;flex:1;justify-content:center}
.pos-business-heading img{width:64px;height:64px;object-fit:contain;flex:none;border-radius:10px}
.pos-business-heading strong,.pos-business-heading small{display:block;overflow-wrap:anywhere}
.pos-business-heading strong{font-size:1.15rem}.pos-business-heading small{opacity:.8;margin-top:4px}
body[data-mode="cashier"] .product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,220px));align-content:start}
body[data-mode="cashier"] .product-card{min-width:0;padding:14px;gap:8px}
body[data-mode="cashier"] .product-card .product-photo,body[data-mode="cashier"] .product-card .photo-placeholder{width:100%;height:auto;aspect-ratio:1;object-fit:contain;max-height:none;min-height:0}
.pos-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pos-cart-heading h2{margin:0}.pos-cart-heading button{padding:9px 12px;font-size:.85rem}
@media(max-width:650px){.pos-business-heading{justify-content:flex-start;flex-basis:100%}.pos-business-heading img{width:44px;height:44px}body[data-mode="cashier"] .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fixed POS shell; catalog and cart body scroll independently. */
body.pos-active{height:100dvh;min-height:0;overflow:hidden}
body.pos-active main{height:100dvh;min-height:0;display:flex;flex-direction:column;padding:18px 24px;overflow:hidden}
body.pos-active main>header{flex:none;margin-bottom:10px;gap:10px}
body.pos-active main>header h1{font-size:24px;margin:4px 0}
body.pos-active main>header #page-description{display:none}
body.pos-active .demo-banner{flex:none;margin-bottom:10px;padding:7px 12px}
body.pos-active #app{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body.pos-active #app>.toolbar{flex:none;margin-bottom:8px}
body.pos-active .pos-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(300px,36%);gap:16px;overflow:hidden}
body.pos-active .pos-layout>section:first-child{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.pos-active .pos-layout .search,body.pos-active .chips{flex:none}
body.pos-active .chips{margin:10px 0;gap:6px}
body.pos-active .product-grid{min-height:0;overflow-y:auto;padding:2px 5px 12px 1px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
body.pos-active .cart-panel{position:static;align-self:stretch;display:flex;flex-direction:column;min-height:0;max-height:100%;padding:16px;overflow:hidden}
body.pos-active .cart-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:5px;margin-top:10px}
body.pos-active .cart-footer{flex:none;max-height:72%;overflow-y:auto;padding-top:6px}
body.pos-active .cart-footer .cash-details>div{padding:8px 0}
body.pos-active .cart-total{padding:10px 0;margin:0}
body.pos-active .cart-footer button.wide{padding:10px;margin-top:6px}
body.pos-active .cart-empty{padding:18px 8px}
body.pos-active .cart-line{padding:10px 0}
body.pos-active .zone-tag{margin:8px 0;padding:8px}
@media(max-width:800px){body.pos-active main{padding:12px}body.pos-active .pos-layout{grid-template-columns:1fr;grid-template-rows:minmax(100px,0.8fr) minmax(260px,1fr);gap:10px}body.pos-active .product-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr))}body.pos-active .product-card{padding:8px}body.pos-active .product-card .product-photo,body.pos-active .product-card .photo-placeholder{max-height:110px}body.pos-active .pos-business-heading{flex-basis:auto;justify-content:flex-start}body.pos-active .pos-business-heading img{width:36px;height:36px}body.pos-active .pos-business-heading strong{font-size:.95rem}body.pos-active main>header .eyebrow{display:none}body.pos-active main>header h1{font-size:18px}body.pos-active .header-actions{gap:6px}body.pos-active .header-actions button,body.pos-active .header-actions select{padding:7px;font-size:11px}body.pos-active .demo-banner{font-size:9px}body.pos-active .cart-panel{padding:12px}body.pos-active .cart-footer{max-height:76%}body.pos-active .cart-footer .cash-details{display:flex;justify-content:space-between;gap:8px}body.pos-active .cart-footer .cash-details>div{gap:8px}body.pos-active .cart-footer .cart-total{padding:4px 0}body.pos-active .cart-footer button.wide{padding:7px;margin-top:4px}}
body.pos-active #app>.toolbar{display:none}
body.pos-active .product-grid{grid-auto-rows:max-content}
body.pos-active .product-card .product-photo,body.pos-active .product-card .photo-placeholder{flex-shrink:0}
body.pos-active .cart-footer .cash-details{margin:0;padding:0}
body.pos-active .cart-footer .cash-details>div{padding:4px 0}
@media(max-width:800px){body.pos-active main>header>div:first-child{display:none}body.pos-active .pos-business-heading{flex-basis:100%}body.pos-active .header-actions{width:100%;justify-content:space-between;flex-wrap:nowrap}body.pos-active .header-actions label{font-size:0}body.pos-active .header-actions select{font-size:11px}body.pos-active .chips{flex-wrap:nowrap;overflow-x:auto;margin:6px 0;padding-bottom:2px}body.pos-active .chips button{flex:none;padding:6px 10px}body.pos-active .pos-layout{grid-template-rows:minmax(110px,.65fr) minmax(320px,1fr)}body.pos-active .cart-body{min-height:70px}body.pos-active .cart-footer{max-height:calc(100% - 115px)}body.pos-active .cart-total strong{font-size:24px}body.pos-active .cart-footer .cart-total{margin:0;padding:5px 0}body.pos-active .cart-footer .cash-details>div{border-bottom:0}body.pos-active .product-card .product-photo,body.pos-active .product-card .photo-placeholder{height:auto;width:100%;max-height:none;aspect-ratio:1}}
@media(max-width:800px){body.pos-active main>header{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:6px}body.pos-active .pos-business-heading{min-height:36px;flex-basis:auto}body.pos-active .header-actions{min-width:0}body.pos-active .header-actions .language-choice{min-width:0;flex:1}body.pos-active .header-actions select{min-width:0;max-width:100%}}

/* Short landscape screens: keep navigation compact and each POS column scrollable. */
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
body{min-width:0}body aside,body.sidebar-collapsed aside{width:64px;padding:8px 6px;padding-left:max(6px,env(safe-area-inset-left));min-height:0;height:100dvh}
body aside .brand{justify-content:center}body aside .brand>div,body aside .store,body aside nav span,body aside .aside-bottom{display:none}
body aside .brand img{width:40px;height:36px;object-fit:contain}body aside nav{margin:6px 0;min-height:0;overflow-y:auto;flex:1}body aside nav button,body aside nav .nav-link{justify-content:center;padding:10px;min-height:40px}body aside .sidebar-session{flex-shrink:0}
body main,body.sidebar-collapsed main{margin-left:64px;width:calc(100% - 64px);min-width:0;padding:12px max(12px,env(safe-area-inset-right)) 12px 12px}
main>header{flex-wrap:wrap;gap:8px;margin-bottom:10px}main>header h1{font-size:21px}main>header .header-actions{flex-wrap:wrap;gap:6px;max-width:100%}
.settings-workspace{display:flex;flex-direction:column;gap:12px}.settings-detail{width:100%;min-width:0}
body .settings-workspace>.settings-category-nav{display:flex;flex-direction:row;flex-wrap:nowrap;position:static;max-height:none;min-width:0;width:100%;overflow-x:auto;overflow-y:hidden;padding:6px;gap:6px}
body .settings-workspace>.settings-category-nav>button{flex:0 0 auto;width:auto;white-space:nowrap;padding:10px;font-size:12px}.settings-category-title,.settings-mobile-navigation{display:none!important}
dialog{max-height:calc(100dvh - 16px);max-width:calc(100vw - 24px);margin:auto;padding:16px;overflow:auto;overscroll-behavior:contain}dialog h2{margin-bottom:12px}dialog .form{gap:12px}dialog .form-actions{flex-wrap:wrap;gap:10px}
body.pos-active main{padding:8px max(8px,env(safe-area-inset-right)) 8px 8px}
body.pos-active main>header{display:flex;flex-wrap:nowrap;gap:8px;margin-bottom:6px}body.pos-active main>header>div:first-child{display:none}
body.pos-active .pos-business-heading{flex:1;flex-basis:auto;min-height:32px;justify-content:flex-start;gap:7px}body.pos-active .pos-business-heading img{width:32px;height:32px}body.pos-active .pos-business-heading strong{font-size:13px}body.pos-active .pos-business-heading small{font-size:10px;margin-top:2px}
body.pos-active .header-actions{width:auto;flex:0 1 auto;flex-wrap:nowrap;gap:5px}body.pos-active .header-actions label{font-size:0}body.pos-active .header-actions button,body.pos-active .header-actions select{padding:7px;font-size:11px;min-height:34px}
body.pos-active .demo-banner{padding:4px 8px;margin-bottom:6px;font-size:9px}
body.pos-active .pos-layout{grid-template-columns:minmax(0,1fr) minmax(250px,43%);grid-template-rows:minmax(0,1fr);gap:8px}
body.pos-active .pos-layout>section{min-width:0;min-height:0}body.pos-active .pos-layout .search{padding:9px;font-size:13px;min-height:36px}
body.pos-active .product-grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px}body.pos-active .product-card{padding:8px;min-height:0}body.pos-active .product-card .product-photo,body.pos-active .product-card .photo-placeholder{max-height:100px;margin-bottom:5px}body.pos-active .product-footer{margin-top:6px}
body.pos-active .cart-panel{padding:10px;overflow-y:auto;overscroll-behavior:contain}body.pos-active .cart-body{flex:1 0 auto;min-height:64px;overflow:visible;margin-top:6px;padding:0}body.pos-active .cart-footer{flex:none;max-height:none;overflow:visible}body.pos-active .pos-cart-heading h2{font-size:15px}body.pos-active .pos-cart-heading button{padding:7px;font-size:11px}body.pos-active .cart-total strong{font-size:22px}
}
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
body:not(.login-page):not(.sidebar-collapsed) #sidebar,body:not(.login-page).sidebar-collapsed #sidebar{width:64px;padding:6px;height:100dvh}
body:not(.login-page):not(.sidebar-collapsed) main,body:not(.login-page).sidebar-collapsed main{margin-left:64px;width:calc(100% - 64px)}
#sidebar .brand-logo{width:40px;height:36px}#sidebar .brand span,#sidebar .brand>div,#sidebar .business-brand,#sidebar nav span,#sidebar .sidebar-toggle-label,#sidebar .aside-bottom{display:none}
#sidebar #sidebar-toggle{min-height:32px;padding:5px;font-size:0}#sidebar #sidebar-toggle::before{content:'☰';font-size:18px}
#sidebar nav{margin:4px 0;overflow-y:auto;flex:1;min-height:0}#sidebar nav button,#sidebar nav .nav-link{min-height:40px;padding:10px;justify-content:center;font-size:0}#sidebar nav svg{width:20px;height:20px;flex:none}
#sidebar .sidebar-session button{font-size:0;padding:10px;min-height:40px}#sidebar .sidebar-session svg{width:20px;height:20px}
body.pos-active .chips{flex-wrap:nowrap;overflow-x:auto}body.pos-active .chips button{flex:none}
}
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){#sidebar nav span.nav-icon{display:inline-flex;flex:none}}
/* Keep checkout visible; only the customer/items area scrolls in landscape. */
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
body.pos-active .cart-panel{overflow:hidden;display:flex;flex-direction:column;min-height:0}
body.pos-active .pos-cart-heading{flex:0 0 auto;gap:6px;flex-wrap:nowrap}body.pos-active .pos-cart-heading h2{font-size:14px;white-space:nowrap}body.pos-active .pos-cart-heading button{font-size:10px;padding:6px;min-height:30px}
body.pos-active .cart-body{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin-top:4px;padding-right:3px}
body.pos-active .cart-body .field-label{margin:4px 0;font-size:11px}body.pos-active .cart-body #client-search{padding:8px;min-height:34px;font-size:12px}body.pos-active .cart-body .zone-tag{margin:5px 0;padding:5px;font-size:10px}body.pos-active .cart-empty{padding:8px 4px}
body.pos-active .cart-footer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:4px 6px;max-height:none;overflow:visible;padding-top:4px;border-top:1px solid var(--line)}
body.pos-active .cart-footer .cash-details{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;margin:0;padding:0}body.pos-active .cart-footer .cash-details>div{font-size:11px;padding:0;border:0;gap:6px}body.pos-active .cart-footer .cash-details .text-btn{padding:2px;font-size:11px}
body.pos-active .cart-footer .cart-total{grid-column:1/-1;margin:0;padding:2px 0;font-size:12px}body.pos-active .cart-footer .cart-total strong{font-size:22px}
body.pos-active .cart-footer button.wide{width:100%;min-width:0;min-height:34px;margin:0;padding:7px 5px;font-size:11px;white-space:normal}body.pos-active .cart-footer [data-action=clear]{min-height:24px;padding:3px;grid-column:1/-1}body.pos-active .cart-footer [data-action=checkout-credit]{grid-column:1/-1}body.pos-active .cart-footer>.notice{grid-column:1/-1;margin:0;font-size:10px}
}
/* Phones: preserve content rather than clipping it into fixed-height rows. */
@media screen and (max-width:800px) and (orientation:portrait){
body.pos-active{height:auto;min-height:100dvh;overflow:auto}
body.pos-active main{height:auto;min-height:100dvh;overflow:visible;padding:10px}
body.pos-active #app{display:block;flex:none;overflow:visible;min-height:0}
body.pos-active .pos-layout{display:flex;flex-direction:column;overflow:visible;gap:12px}
body.pos-active .pos-layout>section:first-child{display:flex;overflow:visible;min-height:0}
body.pos-active .product-grid{flex:none;max-height:34dvh;min-height:150px;overflow-y:auto;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
body.pos-active .product-card{min-height:0;gap:5px;padding:8px}
body.pos-active .product-card .product-photo,body.pos-active .product-card .photo-placeholder{height:auto;max-height:110px;width:100%;object-fit:contain;aspect-ratio:1;margin-bottom:4px}
body.pos-active .product-card strong{font-size:12px;overflow-wrap:anywhere}body.pos-active .product-footer{margin-top:5px;flex-wrap:wrap}
body.pos-active .cart-panel{display:flex;flex-direction:column;max-height:none;overflow:visible;min-height:0;padding:12px}
body.pos-active .cart-body{flex:none;min-height:0;max-height:38dvh;overflow-y:auto;margin-top:8px}
body.pos-active .cart-footer{flex:none;max-height:none;overflow:visible}
body.pos-active .cart-footer .cash-details{display:flex;justify-content:space-between;gap:8px}
body.pos-active .cart-footer button.wide{min-height:40px}
body.pos-active .pos-cart-heading{gap:6px}body.pos-active .pos-cart-heading h2{font-size:16px}body.pos-active .pos-cart-heading button{font-size:11px;padding:8px}
body.pos-active main>header{gap:5px}body.pos-active .demo-banner{margin-bottom:7px;padding:5px 8px;font-size:9px}
}
/* Landscape: scroll full product cards, reserve the sale footer, and avoid squashing rows. */
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
body.pos-active .product-grid{display:grid;grid-auto-rows:max-content;align-content:start;overflow-y:auto;flex:1;min-height:0}
body.pos-active .product-card{height:auto;min-height:0;flex-shrink:0}
body.pos-active .cart-body{min-height:0;scrollbar-width:thin}
body.pos-active .cart-body .customer-profile{padding:8px;margin:5px 0}body.pos-active .cart-body .customer-profile .notice{font-size:10px;line-height:1.4}
body.pos-active .cart-line{padding:8px 0}body.pos-active .cart-line strong{font-size:12px}
}
@media screen and (max-width:800px) and (orientation:portrait){
body.pos-active .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pos-active .cart-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center;padding-top:8px}
body.pos-active .cart-footer .cash-details,body.pos-active .cart-footer .cart-total,body.pos-active .cart-footer [data-action=clear],body.pos-active .cart-footer [data-action=checkout-credit],body.pos-active .cart-footer>.notice{grid-column:1/-1}
body.pos-active .cart-footer button.wide{margin:0;padding:9px 5px;font-size:11px}
body.pos-active .cart-footer .cash-details>div{font-size:11px;gap:4px}
body.pos-active .cart-body .field-label{margin:5px 0;font-size:12px}body.pos-active .cart-body #client-search{min-height:40px;padding:9px;font-size:14px}
body.pos-active #sidebar-toggle{font-size:0;padding:8px;min-height:36px}body.pos-active #sidebar-toggle::before{content:'☰';font-size:18px}
}
/* Safari toolbars can leave less than 400px: allow page scroll instead of crushing the sale. */
@media screen and (orientation:landscape) and (max-height:400px) and (max-width:1100px){
body.pos-active{height:auto;min-height:100dvh;overflow:auto}body.pos-active main{height:auto;min-height:100dvh;overflow:visible}body.pos-active #app{flex:none;overflow:visible;display:block}
body.pos-active .pos-layout{height:380px;min-height:380px;overflow:visible}body.pos-active .cart-panel{height:380px;max-height:none}body.pos-active .product-grid{min-height:0}
}

/* Compact, centered pagination. Scoped specificity overrides generic form labels. */
nav.catalog-pagination{display:flex;justify-content:center;align-items:center;flex-direction:row;gap:10px;padding:12px 4px}
nav.catalog-pagination>label{display:inline-flex;flex-direction:row;align-items:center;width:auto;gap:6px;margin:0;white-space:nowrap}
nav.catalog-pagination input,nav.catalog-pagination select{width:auto;min-height:34px;height:34px;padding:4px 8px;font-size:14px}
nav.catalog-pagination input{width:58px}nav.catalog-pagination .catalog-page-arrows{display:inline-flex;flex-direction:row;gap:5px}
nav.catalog-pagination .catalog-page-arrows button{min-width:34px;width:34px;height:34px;min-height:34px;font-size:23px}
nav.catalog-pagination>small{flex-basis:auto;margin:0}

/* Stable utilities: settings never shares a slot or action with sign-out. */
#sidebar .sidebar-utilities{display:flex;flex-direction:column;gap:4px;flex:0 0 auto;margin:4px 0;padding:0}
#sidebar .sidebar-utilities>button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:44px;padding:10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#9cb4ce;cursor:pointer;flex:0 0 auto}
#sidebar .sidebar-utilities .nav-icon{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px}
#sidebar .sidebar-utilities svg{width:22px;height:22px;flex:none}
#sidebar .sidebar-utilities>button.selected{background:#173e47;color:#56ffc5;border-left:4px solid #56ffc5}
#sidebar .sidebar-utilities>.sidebar-logout-button{color:#e7b4ac;border-top:1px solid var(--line)}
#sidebar .sidebar-utilities>button:hover{background:#1b3446}
#sidebar.sidebar-expanded .sidebar-utilities>button{justify-content:flex-start}
:root[data-theme="day"] #sidebar .sidebar-utilities>.sidebar-logout-button{color:#9a3d30}

body:not(.sidebar-collapsed) #sidebar .sidebar-utilities>button{justify-content:flex-start}
.sidebar-collapsed #sidebar .sidebar-utilities .nav-label{display:none}
@media screen and (orientation:landscape) and (max-height:600px) and (max-width:1100px){#sidebar .sidebar-utilities .nav-label{display:none}body:not(.sidebar-collapsed) #sidebar .sidebar-utilities>button{justify-content:center}}

/* Do not expose provisional controls while authentication/menu construction is pending. */
#sidebar:not([data-navigation-ready]) #sidebar-nav,#sidebar:not([data-navigation-ready]) .sidebar-utilities,#sidebar:not([data-navigation-ready]) .sidebar-session,#sidebar:not([data-navigation-ready]) .sidebar-toggle{visibility:hidden;pointer-events:none}
#sidebar[aria-busy="true"]::after{content:"Cargando…";display:block;color:#9cb4ce;font-size:12px;text-align:center;margin:8px 0}

/* Keep settings and session actions anchored while the main workspace changes height. */
#sidebar .sidebar-utilities{position:absolute;left:10px;right:10px;bottom:76px;margin:0;z-index:2;background:inherit}
#sidebar .sidebar-session{position:absolute;left:10px;right:10px;bottom:14px;margin:0;z-index:2}
#sidebar .aside-bottom{display:none}
#sidebar #sidebar-nav{flex:1 1 0;min-height:0;margin-bottom:168px;overflow-y:auto;overscroll-behavior:contain}
body[data-mode="cashier"] #sidebar #sidebar-nav{margin-bottom:120px}
#sidebar #sidebar-settings-button,#sidebar #sidebar-signout-button{height:44px;min-height:44px;max-height:44px;box-sizing:border-box}

/* Render the stable settings shell immediately; data requests must not hide navigation. */
#sidebar:not([data-navigation-ready]) #sidebar-nav,#sidebar:not([data-navigation-ready]) .sidebar-utilities,#sidebar:not([data-navigation-ready]) .sidebar-session,#sidebar:not([data-navigation-ready]) .sidebar-toggle{visibility:visible;pointer-events:auto}
#sidebar[aria-busy="true"]::after{display:none}

/* Distinct accents for the eight dashboard indicators in both themes. */
.dashboard-metrics .dashboard-metric.metric-0{--metric-accent:#50b7f4;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-1{--metric-accent:#46d6b1;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-2{--metric-accent:#a390f5;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-3{--metric-accent:#bedb65;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-4{--metric-accent:#f5c86a;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-5{--metric-accent:#f28b7f;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-6{--metric-accent:#60cbdc;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric.metric-7{--metric-accent:#e58fc7;border-top-color:var(--metric-accent)}
.dashboard-metrics .dashboard-metric:hover,.dashboard-metrics .dashboard-metric:focus-visible{box-shadow:0 0 0 1px var(--metric-accent)}

/* Monthly input costs have their own copper accent, separate from gross sales blue. */
.dashboard-metric[data-action="monthly-product-costs"]{--metric-accent:#cf9468;border-top-color:var(--metric-accent)}
.dashboard-metric[data-action="monthly-product-costs"]:hover,.dashboard-metric[data-action="monthly-product-costs"]:focus-visible{box-shadow:0 0 0 1px var(--metric-accent)}

.inventory-search-panel{padding:16px 18px;margin:8px 0 20px;border:1px solid #4787a6;border-radius:14px;background:linear-gradient(110deg,#16374b,#102330);color:inherit}
.inventory-search-panel label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.inventory-search-panel label span{font-size:12px;color:#a6bed0}
.inventory-search-control{display:flex;align-items:center;gap:12px}.inventory-search-control svg{width:24px;height:24px;flex:none;color:#68ceff}.inventory-search-control input{flex:1;min-width:0;width:100%;min-height:48px;padding:12px 14px;font-size:16px;border:1px solid #4a7892;border-radius:10px;background:#0b1b2b;color:#edf6ff}.inventory-search-control input:focus{outline:2px solid #56ffc5;outline-offset:2px}
:root[data-theme="day"] .inventory-search-panel{background:linear-gradient(110deg,#e2f0f9,#f7fbfd);border-color:#8dbbd5}:root[data-theme="day"] .inventory-search-panel label span{color:#526e80}:root[data-theme="day"] .inventory-search-control input{background:#fff;color:#173549}:root[data-theme="day"] .inventory-search-control svg{color:#237eaf}
@media(max-width:650px){.inventory-search-panel{padding:13px}.inventory-search-panel label{align-items:flex-start;flex-direction:column;gap:5px}.inventory-search-control{gap:8px;flex-wrap:wrap}.inventory-search-control input{width:calc(100% - 36px);flex-basis:calc(100% - 36px)}.inventory-search-control button{margin-left:32px}}

.inventory-search-panel .inventory-category-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.inventory-search-panel .inventory-category-filters label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0;font-size:13px;font-weight:600;min-width:0}.inventory-category-filters select{width:100%;min-width:0;min-height:44px;padding:9px 12px;border:1px solid #4a7892;border-radius:9px;background:#0b1b2b;color:#edf6ff;font-size:16px}.inventory-category-filters select:disabled{opacity:.55}:root[data-theme="day"] .inventory-category-filters select{background:#fff;color:#173549;border-color:#8dbbd5}@media(max-width:650px){.inventory-search-panel .inventory-category-filters{grid-template-columns:minmax(0,1fr);gap:12px}}

.product-catalog .catalog-category-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;flex-basis:100%;width:100%;margin:0 0 10px}.product-catalog .catalog-category-filters label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:13px;font-weight:600;min-width:0}@media(max-width:650px){.product-catalog .catalog-category-filters{grid-template-columns:minmax(0,1fr);gap:12px}}
.product-composition{border:1px solid var(--line);border-radius:12px;padding:14px;margin:16px 0}.product-composition legend{font-weight:700;padding:0 6px}.product-composition>label{display:flex;align-items:center;gap:8px}.product-composition-row{align-items:end;margin:10px 0}.product-composition-row button{min-height:42px}.product-composition .notice{margin:8px 0}

/* Compact, color-coded cash dashboard cards */
.dashboard-cash .cash-dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dashboard-cash .cash-tile{min-width:0;border-top:4px solid var(--cash-accent);background:linear-gradient(180deg,var(--cash-wash),#fff 62%);padding:18px 17px}
.dashboard-cash .cash-tile span{color:#52647b;font-weight:600}
.dashboard-cash .cash-tile strong{color:#20344b}
.dashboard-cash .cash-tile small{display:block;margin-top:8px;color:#687b90;line-height:1.45}
.dashboard-cash .cash-total{--cash-accent:#46c7a9;--cash-wash:#c9f0e2}
.dashboard-cash .cash-start{--cash-accent:#55aee8;--cash-wash:#cceaff}
.dashboard-cash .cash-net{--cash-accent:#8d83df;--cash-wash:#ded8fa}
.dashboard-cash .cash-refunds{--cash-accent:#e58a83;--cash-wash:#ffe0dc}
.dashboard-cash .cash-close{--cash-accent:#d6a449;--cash-wash:#ffedbd}
.cash-history{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.cash-history summary{cursor:pointer;color:#456078;font-size:12px;font-weight:600}
.cash-history>label{display:block;max-width:250px;margin:14px 0}
.cash-history input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit}
:root:not([data-theme="day"]) .cash-history input{background:#0c1726;color:#f1f6ff;border-color:#536b85;color-scheme:dark}
:root:not([data-theme="day"]) .cash-history input::-webkit-calendar-picker-indicator{filter:invert(.9);opacity:.9;cursor:pointer}
@media(max-width:1100px){.dashboard-cash .cash-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.dashboard-cash .cash-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-cash .cash-total{grid-column:1/-1}}

/* Make dashboard cards visibly distinct at a glance. */
.dashboard-metrics .dashboard-metric{background:var(--metric-wash,#eaf4fb);border:1px solid color-mix(in srgb,var(--metric-accent) 45%,white);border-top:4px solid var(--metric-accent);border-radius:12px}
.dashboard-metrics .metric-0{--metric-wash:#e5f2fc}.dashboard-metrics .metric-1{--metric-wash:#e2f6ef}.dashboard-metrics .metric-2{--metric-wash:#f0eafe}.dashboard-metrics .metric-3{--metric-wash:#eff6dc}.dashboard-metrics .metric-4{--metric-wash:#fff3d8}.dashboard-metrics .metric-5{--metric-wash:#ffebe8}.dashboard-metrics .metric-6{--metric-wash:#e2f5f7}.dashboard-metrics .metric-7{--metric-wash:#fae9f3}
:root:not([data-theme="day"]) .dashboard-metrics .dashboard-metric{background:color-mix(in srgb,var(--metric-accent) 34%,#162131);border-color:color-mix(in srgb,var(--metric-accent) 58%,#26374a);color:#f4f7ff}
:root:not([data-theme="day"]) .dashboard-metrics .dashboard-metric small{color:#d5deeb}
.dashboard-cash .cash-tile,:root[data-theme="day"] .dashboard-cash .cash-dashboard-stats .stat.cash-tile,:root:not([data-theme="day"]) .dashboard-cash .cash-tile{background:#fff;border:1px solid #dfe7ed;border-top:4px solid var(--cash-accent);border-radius:12px;box-shadow:0 3px 10px rgba(24,47,66,.08)}
.dashboard-cash .cash-tile span{color:#52647b;font-weight:600}
.dashboard-cash .cash-tile strong{color:#20344b}
.dashboard-cash .cash-tile small{color:#687b90}
.cash-close-result{display:flex;align-items:center;gap:9px}
.cash-close-symbol{display:inline-grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;vertical-align:middle}
.cash-close-symbol svg{display:block;width:22px;height:22px}
.cash-close-ok{color:#117a4b;background:#e6f5ed}.cash-close-warning{color:#a35d00;background:#fff2cf}.cash-close-error{color:#b42318;background:#fde9e7}
.cash-close-badge{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.cash-close-badge .cash-close-symbol{width:24px;height:24px;flex:0 0 24px}
.cash-close-badge .cash-close-symbol svg{width:16px;height:16px}
.cash-close-badge.cash-close-ok{color:#117a4b}.cash-close-badge.cash-close-warning{color:#a35d00}.cash-close-badge.cash-close-error{color:#b42318}
:root:not([data-theme="day"]) .cash-close-ok{color:#117a4b}:root:not([data-theme="day"]) .cash-close-warning{color:#a35d00}:root:not([data-theme="day"]) .cash-close-error{color:#b42318}

.store-switcher[hidden]{display:none!important}.store-switcher{display:flex;align-items:center;gap:12px;min-width:0;margin:0 0 14px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:#14283a}.store-switcher-title{flex:none;font-size:12px;font-weight:700;color:#9cb2c6}.store-switcher-list{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px}.store-choice{--store-tone:#3184c5;display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;max-width:230px;min-height:38px;padding:6px 11px;border:1px solid color-mix(in srgb,var(--store-tone) 36%,#30455a);border-radius:10px;background:#1a3045;color:#dce8f4;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}.store-choice span{overflow:hidden;text-overflow:ellipsis}.store-choice-icon{width:17px;height:17px;flex:none;fill:none;stroke:var(--store-tone);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.store-choice.selected{background:color-mix(in srgb,var(--store-tone) 30%,#172536);border-color:var(--store-tone);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--store-tone) 35%,transparent);color:#fff}.store-choice.selected .store-choice-icon{stroke:var(--store-tone)}.store-choice:focus-visible{outline:2px solid var(--store-tone);outline-offset:2px}
:root[data-theme="day"] .store-switcher{background:#f7fafc;border-color:#d5e3e9}:root[data-theme="day"] .store-switcher-title{color:#526e80}:root[data-theme="day"] .store-choice{background:#fff;color:#234055;border-color:color-mix(in srgb,var(--store-tone) 35%,#d8e3e9)}:root[data-theme="day"] .store-choice.selected{background:color-mix(in srgb,var(--store-tone) 13%,white);border-color:var(--store-tone);color:#173549}
@media(max-width:650px){.store-switcher{align-items:flex-start;flex-direction:column;gap:5px;padding:8px}.store-switcher-list{width:100%}.store-choice{min-height:35px;padding:5px 9px}}
.hourly-sales{grid-column:1/-1}.hourly-sales-chart{display:block;width:100%;height:auto;min-height:170px;margin:12px 0}.hourly-peak{font-size:13px;color:#46d6b1;align-self:center}.hourly-sales .dashboard-filter{margin:10px 0 4px}.hourly-sales .dashboard-filter label{min-width:150px}:root[data-theme="day"] .hourly-peak{color:#087f70}

.cash-close-symbol{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:24px;vertical-align:middle}.cash-close-ok{color:#117a4b}.cash-close-warning{color:#a35d00}.cash-close-error{color:#b42318}.cash-close-badge{display:inline-flex;align-items:center;gap:5px;font-weight:700}.cash-close-badge.cash-close-ok{color:#117a4b}.cash-close-badge.cash-close-warning{color:#a35d00}.cash-close-badge.cash-close-error{color:#b42318}:root:not([data-theme="day"]) .cash-close-ok{color:#70e0a5}:root:not([data-theme="day"]) .cash-close-warning{color:#ffd278}:root:not([data-theme="day"]) .cash-close-error{color:#ff8a82}


/* Global store policy shown in the product catalog */
.product-stock-policy{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.product-stock-policy>div{display:grid;gap:4px;min-width:0}
.product-stock-policy>div strong{font-size:14px;color:var(--text)}
.product-stock-policy>div small{font-size:12px;line-height:1.45;color:var(--muted)}
.product-stock-policy-switch{position:relative;display:inline-flex!important;align-items:center;flex:0 0 50px;width:50px;height:30px;margin:0;cursor:pointer}
.product-stock-policy-switch input{position:absolute;inset:0;width:50px;height:30px;margin:0;opacity:0;cursor:pointer}
.product-stock-policy-switch>span{display:block;width:50px;height:30px;border-radius:18px;background:#aebbc7;transition:background .18s ease;pointer-events:none}
.product-stock-policy-switch>span:after{content:"";display:block;width:22px;height:22px;margin:4px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #122b4233;transition:transform .18s ease}
.product-stock-policy-switch input:checked+span{background:#0b8f7c}
.product-stock-policy-switch input:checked+span:after{transform:translateX(20px)}
.product-stock-policy-switch input:focus-visible+span{outline:3px solid var(--blue);outline-offset:3px}
.product-stock-policy-switch input:disabled+span{opacity:.55;cursor:wait}
@media(max-width:560px){.product-stock-policy{align-items:flex-start;padding:13px}.product-stock-policy>div small{max-width:34ch}}

.product-catalog .catalog-stat-link{width:100%;min-height:0;color:var(--text);font-family:inherit;font-size:inherit;text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.product-catalog .catalog-stat-link:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,42,62,.13);filter:none}
.product-catalog .catalog-stat-link:focus-visible{outline:3px solid var(--catalog-amber);outline-offset:3px}
