/* Sales & Inventory — app-specific styles. Tokens live in app.css (GroundZero palette). Keep UI simple. */
:root{ --sidebar-w:200px; }
.page{padding:24px 28px;max-width:1280px}
.page>*,.stack>*{min-width:0}
@media (max-width:700px){.page{padding:16px}}
/* bottom nav on mobile */
.bottom-nav{display:none}
@media (max-width:860px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .sidebar{display:none}
  .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:60px;background:var(--navy-d);z-index:30;padding-bottom:env(safe-area-inset-bottom)}
  .bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:rgba(255,255,255,.65);font-size:11px;font-weight:600}
  .bottom-nav a svg{width:20px;height:20px}
  .bottom-nav a.active{color:#fff}
  .main{padding-bottom:64px}
}
.offline-banner{background:var(--warn-tint);color:var(--warn-text);font-size:12.5px;font-weight:600;padding:6px 14px;text-align:center;border-bottom:1px solid #F2E3A8}

/* ---- Sell page (sell.js) ---- */
/* Layout: product grid left + sticky cart right. ≤860px → grid full width + bottom bar/sheet. */
.sell{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start;min-width:0}
.sell-left{min-width:0;display:flex;flex-direction:column;gap:12px}

/* head: cashier chip + search + pending sync */
.sell-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.sell-cashier{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 14px 0 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-family:var(--font);text-align:left;cursor:pointer;flex:none;max-width:230px;transition:border-color .12s,background .12s}
.sell-cashier:hover{border-color:var(--navy-l)}
.sell-cashier:active{background:var(--info-tint)}
.sell-cashier .avatar{width:32px;height:32px;font-size:12px;flex:none}
.sell-cashier-name{display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.15;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-cashier-name small{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sell-search-wrap{position:relative;flex:1 1 220px;min-width:0}
.sell-search-wrap svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.sell-search{height:44px;padding-left:40px;font-size:15px;border-radius:10px}
.sell-pending{flex:none;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--warn-text);background:var(--warn-tint);border-radius:999px;padding:3px 10px;white-space:nowrap}

/* category chips: one row, scrolls horizontally, never wraps */
.sell-chips{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;padding:2px 0;min-width:0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sell-chips::-webkit-scrollbar{display:none}
.sell-chip{white-space:nowrap;flex:none;height:36px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer}
.chip.sell-chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.sell-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none;background:var(--navy)}

/* product tiles */
.sell-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;min-width:0}
.sell-tile{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:84px;min-width:0;text-align:left;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent,var(--navy));border-radius:12px;padding:12px 12px 11px;cursor:pointer;font-family:var(--font);color:var(--ink);box-shadow:0 1px 2px rgba(20,30,39,.04);transition:border-color .12s,box-shadow .12s,transform .08s}
.sell-tile:hover{border-color:var(--navy-l);border-left-color:var(--accent,var(--navy));box-shadow:var(--card-shadow)}
.sell-tile:active{transform:scale(.98)}
.sell-tile:focus-visible{outline:2px solid var(--navy-l);outline-offset:2px}
.sell-tile.out{opacity:.45;cursor:not-allowed;box-shadow:none}
.sell-tile.out:hover{border-color:var(--line);transform:none}
.sell-tile.low .sell-tile-stock{color:var(--warn-text)}
.sell-tile-name{font-weight:600;font-size:13.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sell-tile-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.sell-tile-price{font-family:var(--display);font-weight:700;font-size:16px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sell-tile-stock{font-size:11.5px;color:var(--muted);white-space:nowrap;flex:none}
.sell-tile .pill{flex:none}
.sell-empty{padding:28px 12px;text-align:center;grid-column:1/-1;font-size:13.5px}

/* cart panel */
.sell-cart{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--card-shadow);display:flex;flex-direction:column;min-width:0;position:sticky;top:calc(var(--topbar-h) + 12px);max-height:calc(100vh - var(--topbar-h) - 28px)}
.sell-cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);flex:none}
.sell-cart-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.sell-cart-title b{font-family:var(--display);font-size:16px;font-weight:700;color:var(--ink)}
.sell-cart-count{font-size:12.5px;font-weight:500;white-space:nowrap}
.sell-cart-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.sell-clear{font-size:13px;color:var(--body);font-family:var(--font);font-weight:600}
.sell-clear:hover{color:var(--danger)}
.sell-sheet-close{display:none}

.sell-lines{overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:72px;padding:2px 16px}
.sell-line{display:flex;align-items:center;gap:10px;width:100%;min-width:0;text-align:left;padding:10px 0;border-bottom:1px solid var(--line);background:none;font-family:var(--font);color:var(--ink);cursor:pointer;border-radius:0}
.sell-line:last-child{border-bottom:0}
.sell-line:hover{background:var(--paper)}
.sell-line:active{background:var(--info-tint)}
.sell-line-main{flex:1 1 auto;min-width:0}
.sell-line-name{font-weight:700;font-size:13.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sell-line-detail{font-size:12px;line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sell-line-right{display:flex;align-items:center;gap:10px;flex:none}
.sell-qty-pill{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:28px;padding:0 9px;border-radius:999px;background:var(--info-tint);color:var(--navy);font-family:var(--display);font-weight:700;font-size:13px;font-variant-numeric:tabular-nums;flex:none}
.sell-line-amts{display:grid;grid-template-columns:auto auto;justify-content:end;align-items:center;gap:2px 6px;text-align:right}
.sell-line-amts s{font-size:11.5px;font-weight:600}
.sell-line-amts b{grid-column:1/-1;justify-self:end}
.sell-line-total{font-family:var(--display);font-weight:700;font-size:14.5px;white-space:nowrap}
.sell-disc-chip{display:inline-flex;align-items:center;justify-content:center;background:var(--ok-tint);color:var(--ok);font-family:var(--display);font-weight:700;font-size:11px;line-height:1.6;padding:1px 7px;border-radius:999px;white-space:nowrap}

/* cart footer: tabs · panel · totals · complete */
.sell-cart-foot{border-top:1px solid var(--line);padding:0 16px 16px;display:flex;flex-direction:column;gap:10px;flex:none;min-width:0}
.sell-tabs{display:flex;align-items:stretch;gap:0;margin:0 -16px 2px;padding:0 8px;border-bottom:1px solid var(--line);background:#FCFAF8;border-radius:0}
.sell-tab{position:relative;flex:1 1 0;min-width:0;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 4px;font-family:var(--display);font-weight:600;font-size:13.5px;color:var(--body);background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;transition:color .12s,border-color .12s;white-space:nowrap}
.sell-tab:hover{color:var(--navy)}
.sell-tab.on{color:var(--navy);border-bottom-color:var(--orange)}
.sell-tab-mark{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);flex:none}

.sell-panel{display:flex;flex-direction:column;gap:10px;min-width:0}
.sell-seg{display:flex;width:100%;min-width:0;font-size:13px;border-radius:10px}
.sell-seg button{flex:1 1 0;min-width:0;height:40px;padding:0 4px;border:0;background:transparent;font-family:var(--display);font-weight:600;text-align:center;color:var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:background .12s,color .12s}
.sell-seg button + button{border-left:1px solid var(--line)}
.sell-seg button:hover:not(.on){background:var(--info-tint);color:var(--navy)}
.sell-seg .on{background:var(--navy);color:#fff}
.sell-methods button{font-size:13.5px}
.sell-row{display:flex;align-items:center;gap:10px;min-width:0}
.sell-row label{flex:none;width:64px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
.sell-row .input,.sell-row .input-group{flex:1 1 auto;min-width:0}
.sell-money{text-align:right;font-family:var(--display);font-weight:700;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.sell-money::-webkit-outer-spin-button,.sell-money::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sell-tendered{font-size:16px}
.sell-tendered-wrap{flex:1 1 auto;min-width:0}
.sell-val{width:100%;min-width:0}
.sell-quick{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.sell-quick .chip{height:40px;min-width:52px;padding:0 12px;justify-content:center;border-radius:10px;font-family:var(--display);font-weight:600;font-size:13.5px;color:var(--ink);cursor:pointer}
.sell-quick .chip:hover{border-color:var(--navy-l);color:var(--navy)}
.sell-quick .chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.sell-exact{background:var(--info-tint);border-color:#D9E2EE;color:var(--navy);font-weight:700}
.sell-clear-chip{width:40px;min-width:40px;padding:0;color:var(--muted);font-size:14px}
.sell-clear-chip:hover{border-color:var(--danger);color:var(--danger)}
.sell-hint{font-size:12.5px;line-height:1.45}

.sell-totals{display:flex;flex-direction:column;min-width:0;border-top:1px solid var(--line);padding-top:2px}
.sell-trow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 0;font-size:13.5px;color:var(--body);min-width:0}
.sell-trow > span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-trow b{flex:none;font-family:var(--display);font-weight:700;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.sell-trow.disc,.sell-trow.disc b{color:var(--ok)}
.sell-trow.muted,.sell-trow.muted b{color:var(--muted)}
.sell-trow.short,.sell-trow.short b{color:var(--danger)}
.sell-trow.change,.sell-trow.change b{color:var(--ok)}
.sell-trow.change b,.sell-trow.short b{font-size:17px}
.sell-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0 4px;margin-top:2px;border-top:1px solid var(--line);min-width:0}
.sell-total-lbl{flex:none;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sell-total-val{font-family:var(--display);font-weight:800;font-size:32px;letter-spacing:-.02em;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;text-align:right}
.sell-complete{width:100%;height:54px;font-size:17px;font-family:var(--display);font-weight:700;border-radius:12px;margin-top:2px}
.sell-complete:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}

.sell-backdrop,.sell-bar{display:none}

/* sheets (modal on desktop, bottom sheet ≤860px) */
.sell-handle{display:none}
.sell-sheet .modal-body{padding-bottom:16px}

/* option picker */
.sell-options{display:flex;flex-direction:column;gap:10px;min-width:0}
.sell-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;font-family:var(--font);color:var(--ink);cursor:pointer;transition:border-color .12s,background .12s}
.sell-option:hover{border-color:var(--navy-l)}
.sell-option:active{background:var(--info-tint)}
.sell-option-name{flex:1 1 auto;min-width:0;font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-option-price{flex:none;font-family:var(--display);font-weight:700;font-size:17px;color:var(--navy);white-space:nowrap}

/* cart-line sheet */
.sell-line-sheet{display:flex;flex-direction:column;gap:14px;min-width:0}
.sell-line-sheet-sub{font-size:12.5px;margin-top:-2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.sell-field > label{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
.sell-qty{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;flex:none}
.sell-qty button{width:44px;height:44px;flex:none;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--navy);font-family:var(--display);font-weight:600;font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.sell-qty button:hover{border-color:var(--navy-l);background:var(--info-tint)}
.sell-qty button:active{background:var(--line)}
.sell-qty-in{width:76px;height:44px;flex:none;text-align:center;border:1px solid var(--line);border-radius:10px;background:var(--field);font-family:var(--display);font-weight:700;font-size:16px;color:var(--ink);outline:0;padding:0;-moz-appearance:textfield}
.sell-qty-in::-webkit-outer-spin-button,.sell-qty-in::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sell-line-preview{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:10px;background:var(--field);border:1px solid var(--line);font-size:13px;min-width:0}
.sell-line-preview b{margin-left:auto;font-family:var(--display);font-weight:800;font-size:20px;color:var(--ink);white-space:nowrap}

/* cashier picker + PIN pad */
.sell-users{display:flex;flex-direction:column;gap:8px;min-width:0}
.sell-user{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;font-family:var(--font);color:var(--ink);cursor:pointer;transition:border-color .12s,background .12s}
.sell-user:hover{border-color:var(--navy-l)}
.sell-user.on{border-color:var(--navy);background:var(--info-tint)}
.sell-user-name{flex:1 1 auto;min-width:0;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-user .pill{flex:none}
.sell-user > svg{flex:none;color:var(--muted)}
.sell-pin-back{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.sell-pin{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0 2px;outline:0}
.sell-pin-dots{display:flex;align-items:center;gap:10px;height:14px}
.sell-pin-dots i{width:12px;height:12px;border-radius:50%;border:2px solid var(--navy-l);background:transparent;flex:none}
.sell-pin-dots i.on{background:var(--navy);border-color:var(--navy)}
.sell-pin-msg{font-size:12.5px;color:var(--muted);min-height:18px;text-align:center}
.sell-pin-msg.err{color:var(--danger);font-weight:600}
.sell-pinpad{display:grid;grid-template-columns:repeat(3,56px);gap:10px;justify-content:center}
.sell-pinkey{width:56px;height:56px;border-radius:14px;border:1px solid var(--line);background:#fff;font-family:var(--display);font-weight:600;font-size:20px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.sell-pinkey:hover{border-color:var(--navy-l)}
.sell-pinkey:active{background:var(--info-tint)}
.sell-pinkey.del{font-size:18px;color:var(--body)}
.sell-pinkey.ok{background:var(--ok);border-color:var(--ok);color:#fff}
.sell-pinkey.ok:hover{background:#178A5D}
.sell-pinkey.ok svg{width:22px;height:22px}

/* done sheet */
.sell-done{display:flex;flex-direction:column;gap:6px;text-align:center}
.sell-done-ref{font-family:var(--display);font-weight:800;font-size:26px;color:var(--navy);word-break:break-word;margin-bottom:4px}
.sell-done-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--body);padding:8px 0;border-top:1px solid var(--line)}
.sell-done-row b{font-family:var(--display);font-size:18px;color:var(--ink);white-space:nowrap}
.sell-done-change{color:var(--ok)}

/* mobile ≤860px: full-width grid + bottom bar + bottom-sheet cart */
@keyframes sell-sheet-up{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:860px){
  .sell{grid-template-columns:minmax(0,1fr);gap:12px}
  .sell-left{padding-bottom:76px}
  .sell-cashier{max-width:calc(100% - 8px);flex:0 1 auto}
  .sell-search-wrap{flex:1 1 100%}
  .sell-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
  .sell-cart{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:88vh;width:auto;border-radius:18px 18px 0 0;border-bottom:0;z-index:41;transform:translateY(105%);transition:transform .22s ease;box-shadow:0 -12px 40px rgba(15,39,57,.22);padding-bottom:env(safe-area-inset-bottom)}
  .sell.sheet-open .sell-cart{transform:translateY(0)}
  .sell-cart::before{content:"";display:block;width:40px;height:4px;border-radius:999px;background:var(--line);margin:8px auto 2px;flex:none}
  .sell-sheet-close{display:inline-flex}
  .sell-backdrop{display:block;position:fixed;inset:0;background:rgba(15,39,57,.45);z-index:40;opacity:0;pointer-events:none;transition:opacity .22s}
  .sell.sheet-open .sell-backdrop{opacity:1;pointer-events:auto}
  .sell-bar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(68px + env(safe-area-inset-bottom));height:52px;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;background:var(--navy);color:#fff;border:0;border-radius:14px;font-family:var(--font);font-size:15px;font-weight:600;box-shadow:0 8px 24px rgba(15,39,57,.3);z-index:35;cursor:pointer}
  .sell-bar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .sell-bar b{flex:none;color:#FFC9B5;font-family:var(--display)}
  .sell-bar.hidden{display:none}
  .sell.sheet-open .sell-bar{display:none}
  .sell-cart-foot{padding-bottom:20px}
  /* modal() sheets become bottom sheets */
  .sell-sheet-bd{align-items:flex-end;justify-content:stretch;padding:0}
  .sell-sheet{width:100%;max-width:none;max-height:92vh;border-radius:18px 18px 0 0;animation:sell-sheet-up .22s ease}
  .sell-handle{display:block;width:40px;height:4px;border-radius:999px;background:var(--line);margin:8px auto 0;flex:none}
  .sell-sheet .modal-head{padding-top:10px}
  .sell-sheet .modal-body{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .sell-sheet .modal-body:not(:last-child){padding-bottom:16px}
  .sell-sheet .modal-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .sell-pinpad{grid-template-columns:repeat(3,64px);gap:12px}
  .sell-pinkey{width:64px;height:64px;font-size:22px}
}
@media (max-width:420px){
  .sell-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .sell-tile-price{font-size:15px}
  .sell-tile-stock{font-size:11px}
  .sell-seg button{font-size:12px;padding:0 2px}
}

/* ---- Reports page (.rep-) ---- */
.rep-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.rep-seg button{white-space:nowrap}
.rep-custom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rep-custom .input{width:150px}
.rep-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}
.rep-grid-main{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-bottom:16px;min-width:0}
.rep-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;min-width:0}
.rep-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-width:0}
.rep-chartwrap{overflow-x:auto;overflow-y:hidden;min-width:0;-webkit-overflow-scrolling:touch}
.rep-chartwrap>div{min-width:0}
.rep-tblwrap{max-height:none;overflow:hidden}
.rep-tbl td,.rep-tbl th{padding:8px 10px;white-space:nowrap}
.rep-tbl td:first-child,.rep-tbl th:first-child{width:100%}
.rep-tbl td.right,.rep-tbl th.right{font-variant-numeric:tabular-nums}
.rep-ell{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rep-tbl td.rep-ell{display:table-cell;max-width:0}
.rep-donut{display:flex;justify-content:center}
.rep-cats{display:flex;flex-direction:column;gap:10px}
.rep-cat-row{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;min-width:0}
.rep-cat-row b{white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-bar{height:8px;background:var(--field);border-radius:999px;overflow:hidden;margin-top:4px}
.rep-bar i{display:block;height:100%;background:var(--navy);border-radius:999px}
.rep-stocklist{min-width:0}
.rep-list-title{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:700;font-size:13.5px;margin-bottom:6px}
.rep-list{display:flex;flex-direction:column}
.rep-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px;color:var(--ink);min-width:0}
.rep-item:last-child{border-bottom:0}
.rep-item:hover{color:var(--navy)}
.rep-item-meta{white-space:nowrap;color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.rep-exports{display:flex;gap:10px;flex-wrap:wrap}
.rep-export{text-decoration:none}
@media (max-width:1100px){.rep-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.rep-grid-main{grid-template-columns:1fr}}
@media (max-width:700px){
  .rep-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rep-grid-2,.rep-grid-3{grid-template-columns:1fr}
  .rep-custom .input{width:calc(50% - 20px)}
  .rep-exports .btn{flex:1 1 100%}
  .rep-kpis .kpi-value{font-size:22px}
}

/* ---- sales page ---- */
.sales-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.sales-filters{display:flex;flex-direction:column;gap:10px}
.sales-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.sales-range{display:flex;align-items:center;gap:6px}
.sales-date{width:150px}
.sales-quick button{height:38px;padding:0 12px;background:#fff;border:0;font-family:var(--display)}
.sales-quick button.on{background:var(--navy);color:#fff}
.sales-search{flex:1;min-width:200px}
.sales-search .input{width:100%}
.sales-sel{flex:0 1 180px;min-width:140px}
.sales-methods{display:flex;flex-wrap:wrap;gap:8px}
.sales-method{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12.5px;color:var(--body);white-space:nowrap}
.sales-method b{font-family:var(--display);color:var(--ink)}
.sales-method.info{border-color:#C9D8E8;background:var(--info-tint)}
.sales-method.info b{color:var(--navy)}
.sales-method.warn{background:var(--warn-tint);border-color:#F2E3A8}
.sales-cashier{display:inline-block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.sales-ref{font-weight:700;white-space:nowrap}
.sales-page .table td,.sales-page .table th{white-space:nowrap}
.sales-detail{max-width:760px}
.sales-meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.sales-meta-l{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.sales-meta-v{font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-item-name{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sales-totals{margin-left:auto;width:100%;max-width:320px;display:flex;flex-direction:column;gap:4px}
.sales-total-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--body)}
.sales-total-row.grand{border-top:2px solid var(--navy);margin-top:4px;padding-top:8px;font-family:var(--display);font-weight:800;font-size:20px;color:var(--ink)}
.sales-note{font-size:13.5px;color:var(--body);background:var(--paper);border-radius:8px;padding:10px 12px;word-break:break-word}
.sales-void-banner{display:flex;align-items:flex-start;gap:10px;background:var(--danger-tint);color:var(--danger);border:1px solid var(--danger);border-radius:10px;padding:10px 14px;font-size:13.5px;line-height:1.4}
.sales-void-banner svg{flex:none;margin-top:1px}
.sales-total-row.danger{color:var(--danger)}
.sales-total-row.net{font-weight:700;color:var(--ink)}
/* detail items: option / discount detail under the name */
.sales-items td{vertical-align:top}
.sales-item-cell{max-width:340px}
.sales-item-detail{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:3px;font-size:12px;color:var(--muted);line-height:1.3}
.sales-item-opt{color:var(--body);font-weight:600}
.sales-item-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sales-item-sub.danger{color:var(--danger)}
.sales-disc-chip{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;background:var(--ok-tint);color:var(--ok);font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.sales-line-tot{white-space:nowrap}
.sales-line-tot s,.sales-items s{font-weight:400;color:var(--muted)}
.sales-item-refunded .sales-item-name{text-decoration:line-through;color:var(--muted)}
/* refunds list */
.sales-refunds{display:flex;flex-direction:column;gap:10px}
.sales-refund{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;min-width:0}
.sales-refund-top{display:flex;align-items:center;gap:10px;min-width:0}
.sales-refund-top .muted{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-refund-amt{color:var(--danger);white-space:nowrap;font-family:var(--display)}
.sales-refund-items{font-size:13px;color:var(--ink);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-refund-meta{font-size:12.5px;color:var(--body);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* refund sheet */
.sales-rf-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.sales-rf-line{display:flex;align-items:center;gap:10px;padding:8px 10px 8px 12px;border-bottom:1px solid var(--line);min-height:56px}
.sales-rf-line:last-child{border-bottom:0}
.sales-rf-info{flex:1;min-width:0}
.sales-rf-name{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-rf-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.sales-rf-step{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--field);flex:none}
.sales-rf-btn{width:44px;height:44px;border:0;background:transparent;font-size:20px;color:var(--navy);cursor:pointer;font-family:var(--font)}
.sales-rf-btn:disabled{color:var(--muted);opacity:.5;cursor:default}
.sales-rf-btn:not(:disabled):active{background:var(--line)}
.sales-rf-val{width:40px;text-align:center;font-weight:700;font-size:15px;background:#fff;height:44px;line-height:44px;border-left:1px solid var(--line);border-right:1px solid var(--line);color:var(--muted)}
.sales-rf-val.on{color:var(--ink)}
.sales-sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;margin-top:4px;border-top:1px solid var(--line)}
.sales-sheet-total{display:flex;flex-direction:column;min-width:0}
.sales-sheet-total b{font-family:var(--display);font-size:22px;font-weight:800;white-space:nowrap;line-height:1.1}
.sales-sheet-btns{display:flex;gap:8px;flex:none}
.sales-sheet-go{height:48px;padding:0 20px;font-size:15px}
.sales-sheet-go:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
/* PIN pad */
.sales-pin{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0 4px;border-top:1px solid var(--line)}
.sales-pin-title{font-size:13px;font-weight:600;color:var(--ink);align-self:stretch}
.sales-pin-dots{display:flex;gap:10px;height:16px}
.sales-pin-dot{width:12px;height:12px;border-radius:50%;border:2px solid var(--navy);background:transparent}
.sales-pin-dot.on{background:var(--navy)}
.sales-pin-grid{display:grid;grid-template-columns:repeat(3,56px);gap:8px}
.sales-pin-key{width:56px;height:56px;border-radius:12px;border:1px solid var(--line);background:#fff;font-family:var(--display);font-weight:600;font-size:20px;color:var(--ink);cursor:pointer}
.sales-pin-key:active{background:var(--info-tint)}
.sales-pin-key.alt{font-size:16px;color:var(--body)}
.sales-pin .field-error{align-self:stretch;text-align:center}
/* print views (?print=receipt|slip) — DESIGN rule 11 */
body.si-print .sidebar,body.si-print .bottom-nav,body.si-print .offline-banner,body.si-print .topbar{display:none!important}
body.si-print .shell{grid-template-columns:minmax(0,1fr)}
body.si-print .main{padding-bottom:0}
.sales-print-page{max-width:none;display:flex;flex-direction:column;align-items:center;gap:16px;background:#fff;min-height:100vh}
.sales-print-bar{display:flex;gap:8px;width:100%;max-width:420px}
.sales-print{width:80mm;max-width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:#000;background:#fff;line-height:1.4;padding:8px 0 24px;word-break:break-word}
.sales-print .sp-store{text-align:center;margin-bottom:6px}
.sales-print .sp-store b{font-size:14px;display:block}
.sales-print .sp-notice{text-align:center;font-weight:700;border-top:1px dashed #000;border-bottom:1px dashed #000;padding:4px 0;margin:6px 0;font-size:11px}
.sales-print .sp-dash{border-top:1px dashed #000;margin:6px 0}
.sales-print .sp-row{display:flex;justify-content:space-between;gap:8px}
.sales-print .sp-row span:first-child{min-width:0;white-space:pre-wrap}
.sales-print .sp-row span:last-child{flex:none;white-space:nowrap}
.sales-print .sp-row.grand{font-weight:800;font-size:14px;margin-top:4px}
.sales-print .sp-item{margin:3px 0}
.sales-print .sp-item-name{font-weight:700}
.sales-print .sp-void{text-align:center;font-weight:800;font-size:14px;margin:6px 0}
.sales-print .sp-note{margin:4px 0;font-style:italic}
.sales-print .sp-foot{text-align:center;margin:6px 0}
.sales-print .sp-slip-title{text-align:center;font-weight:800;letter-spacing:.14em;font-size:13px}
.sales-print .sp-slip-note{font-size:20px;font-weight:800;text-align:center;margin:6px 0 10px;line-height:1.2;font-family:var(--display),sans-serif}
.sales-print .sp-slip-item{display:flex;gap:10px;align-items:flex-start;margin:6px 0;font-size:14px}
.sales-print .sp-slip-qty{flex:none;min-width:34px;font-size:16px}
.sales-print .sp-slip-name{font-weight:700;min-width:0}
.sales-print .sp-slip-opt{font-weight:400;font-size:12px}
@media (max-width:860px){
  .sales-sheet.modal{position:fixed;left:0;right:0;bottom:0;width:100%;max-width:none;max-height:92vh;border-radius:18px 18px 0 0;animation:sales-up .22s ease;padding-bottom:env(safe-area-inset-bottom)}
  .sales-sheet.modal::before{content:"";display:block;width:40px;height:4px;border-radius:999px;background:var(--line);margin:10px auto 0}
  .sales-sheet .modal-head{padding-top:8px}
}
@keyframes sales-up{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:700px){
  .sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-date{width:135px}
  .sales-sel{flex:1 1 calc(50% - 5px);min-width:0}
  .sales-search{flex:1 1 100%}
  .sales-totals{max-width:none}
  .sales-item-cell{max-width:200px}
  .sales-cashier{max-width:90px}
  .sales-sheet-foot{flex-direction:column;align-items:stretch}
  .sales-sheet-total{flex-direction:row;justify-content:space-between;align-items:baseline}
  .sales-sheet-btns .btn{flex:1}
  .sales-detail .page-actions{width:100%}
}
@media print{
  body.si-print *{visibility:hidden}
  body.si-print .sales-print,body.si-print .sales-print *{visibility:visible}
  body.si-print .sales-print{position:absolute;left:0;top:0;width:72mm;padding:0}
  body.si-print .sales-print-bar,body.si-print .page-header{display:none!important}
  @page{margin:4mm}
}

/* ---- Stock page (.stock-*) ---- */
.stock-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}
.table td .stock-name{max-width:260px}
.table td .stock-note{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stock-qty.pos{color:var(--ok)}
.stock-qty.neg{color:var(--danger)}
.stock-pill-initial{background:var(--navy);color:#fff}
.stock-low-list{display:flex;flex-direction:column;gap:6px}
.stock-low-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.stock-low-info{min-width:0}
.stock-low-row .btn{white-space:nowrap}
.stock-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.stock-filter{display:flex;flex-direction:column;gap:4px;min-width:140px;flex:1 1 140px}
.stock-filter label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.stock-filter .select,.stock-filter .input{width:100%}
.stock-in-top{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stock-search-wrap{position:relative}
.stock-results{position:absolute;left:0;right:0;top:100%;z-index:5;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(15,39,57,.14);overflow:hidden;max-height:300px;overflow-y:auto}
.stock-result{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;padding:8px 12px;border:0;border-bottom:1px solid var(--line);background:#fff;cursor:pointer;font:inherit}
.stock-result:last-child{border-bottom:0}
.stock-result.on,.stock-result:hover{background:var(--info-tint)}
.stock-result .stock-name{max-width:100%}
.stock-lines{display:flex;flex-direction:column;gap:8px}
.stock-line{display:grid;grid-template-columns:minmax(0,1fr) 90px 130px 120px 36px;gap:10px;align-items:end;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.stock-line-name{min-width:0;align-self:center}
.stock-line-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.stock-line-f label{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.stock-line-f .input{width:100%}
.stock-line-tot{align-items:flex-end;text-align:right}
.stock-line-total{height:34px;display:flex;align-items:center;white-space:nowrap}
.stock-line-x{align-self:center;justify-self:end}
.stock-total{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 0;border-top:1px solid var(--line);font-weight:600}
.stock-total-val{font-size:22px;color:var(--navy);white-space:nowrap}
.stock-kvs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stock-kv{display:flex;flex-direction:column;gap:2px;min-width:0}
.stock-kv span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink)}
@media (max-width:700px){
  .stock-in-top{grid-template-columns:1fr}
  .stock-line{grid-template-columns:1fr 1fr 1fr 36px;grid-template-areas:"name name name x" "qty cost tot tot"}
  .stock-line-name{grid-area:name}
  .stock-line-f:nth-child(2){grid-area:qty}
  .stock-line-f:nth-child(3){grid-area:cost}
  .stock-line-tot{grid-area:tot}
  .stock-line-x{grid-area:x}
  .stock-kvs{grid-template-columns:1fr 1fr}
  .table td .stock-name{max-width:160px}
  .table td .stock-note{max-width:120px}
  .stock-low-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"info pill" "info btn"}
  .stock-low-info{grid-area:info}
  .stock-low-row .pill{grid-area:pill;justify-self:end}
  .stock-low-row .btn{grid-area:btn;justify-self:end}
}

/* ===== settings.js (.set-) ===== */
.set-wrap{max-width:720px;width:100%;margin:0 auto;gap:16px}
.set-head{padding:4px 0 2px}
.set-card .form-actions{margin-top:4px}
.set-card .table td,.set-card .table th{white-space:nowrap}
.set-user-name{display:inline-flex;align-items:baseline;gap:4px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.set-actions{display:inline-flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
.set-backup-btn{align-self:flex-start;max-width:100%}
.set-danger{border-color:#F3C6C6}
.set-danger .card-title{color:var(--danger)}
.set-about-head{display:flex;align-items:center;gap:14px}
.set-role{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center}
/* Selling card */
.set-selling{display:flex;flex-direction:column;gap:18px}
.set-section{display:flex;flex-direction:column;gap:8px;min-width:0}
.set-lbl label{display:block;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.set-lbl .field-hint{margin-top:2px}
.set-seg{display:flex;width:100%;max-width:360px;font-size:13.5px}
.set-seg button{flex:1;padding:0;height:44px;border:0;background:transparent;font-family:var(--font);font-weight:600;text-align:center}
.set-toggle-row .toggle{height:44px}
.set-toggle-row .field-hint{margin-top:0}
.set-pin{max-width:240px}
.set-chip-editor{display:flex;flex-direction:column;gap:10px}
.set-chips{display:flex;flex-wrap:wrap;gap:8px}
.set-chips:empty{display:none}
.set-chip{display:inline-flex;align-items:center;height:40px;padding:0 2px 0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:600;color:var(--ink);max-width:100%;min-width:0}
.set-chip.locked{padding-right:12px;gap:6px;background:var(--paper);color:var(--body)}
.set-chip-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px;margin-right:4px}
.set-chip-btn{width:34px;height:36px;border:0;background:transparent;border-radius:999px;color:var(--muted);font-size:11px;display:inline-grid;place-items:center;cursor:pointer;flex:none}
.set-chip-btn:hover{background:var(--paper);color:var(--navy)}
.set-chip-btn:disabled{opacity:.3;cursor:default;background:transparent}
.set-chip-x{color:var(--danger)}
.set-chip-add{display:flex;gap:8px;max-width:420px}
.set-chip-add .input{flex:1;min-width:0;height:44px}
.set-add{height:44px;flex:none}
@media (max-width:700px){
  .set-hide-sm{display:none}
  .set-card .table th:nth-child(4),.set-card .table td:nth-child(4){display:none}
  .set-actions .btn{padding:0 8px}
  .set-backup-btn{width:100%}
  .set-seg{max-width:none}
  .set-chip-add{max-width:none}
  .set-pin{max-width:none}
  .set-chip-txt{max-width:120px}
}

/* ---- Products page (.prod-) ---- */
.prod-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.prod-filters .prod-search{flex:1 1 240px;min-width:0}
.prod-filters .prod-search input{width:100%;min-width:0}
.prod-filters .select{flex:0 1 200px;min-width:140px}
.prod-toggle{height:36px;font-size:13px;font-weight:500;white-space:nowrap}
.prod-name-cell{max-width:320px;min-width:180px}
.prod-name{display:flex;flex-direction:column;gap:1px;min-width:0}
.prod-name-main{display:flex;align-items:center;gap:8px;min-width:0}
.prod-name-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.prod-sku{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}
.prod-stock{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.prod-warn{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;font-weight:600;color:var(--warn-text);background:var(--warn-tint);padding:5px 9px;border-radius:8px}
.prod-warn.hidden{display:none}
.prod-seg{display:flex;width:100%}
.prod-seg button{flex:1;text-align:center;padding:8px 10px;background:none;border:0;font:inherit;font-weight:600;font-size:12.5px}
.prod-adj-preview{margin-top:4px;font-family:var(--display);font-weight:600;font-variant-numeric:tabular-nums}
.prod-manage{display:flex;flex-direction:column;gap:12px}
.prod-manage-add{display:flex;gap:8px}
.prod-manage-add .input{flex:1;min-width:0}
.prod-manage-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.prod-manage-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 14px;border-bottom:1px solid var(--line);min-height:48px}
.prod-manage-row:last-child{border-bottom:0}
.prod-manage-main{display:flex;flex-direction:column;min-width:0;flex:1}
.prod-manage-name{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prod-manage-actions{display:flex;gap:4px;flex:none}
.prod-manage-edit{display:flex;gap:6px;width:100%;align-items:center}
.prod-manage-edit .input{flex:1;min-width:0}
.prod-detail-title{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.prod-detail-pills{display:inline-flex;gap:6px}
.prod-note{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:700px){
  .prod-filters .select{flex:1 1 100%}
  .prod-name-cell{min-width:160px;max-width:220px}
  .prod-kpis.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-header .page-actions{width:100%}
  .page-header .page-actions .btn{flex:1}
}

/* ===== reports.js v2 (.rep-) ===== */
.rep-kpis-7{grid-template-columns:repeat(4,minmax(0,1fr))}
.rep-grid-3-cards{margin-bottom:16px}
.rep-disc{display:flex;flex-direction:column}
.rep-disc-row{display:grid;grid-template-columns:minmax(0,1fr) 48px auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;min-width:0}
.rep-disc-row:last-child{border-bottom:0}
.rep-disc-lbl{min-width:0}
.rep-disc-pct{text-align:right;font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.rep-disc-row b{white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-disc-total{border-top:1px solid var(--line);margin-top:2px;padding-top:10px}
@media (max-width:1100px){.rep-kpis-7{grid-template-columns:repeat(3,minmax(0,1fr))}.rep-grid-3-cards{grid-template-columns:1fr 1fr}}
@media (max-width:860px){.rep-kpis-7{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-grid-3-cards{grid-template-columns:1fr}}

/* ===== drawer.js (.drawer- / .eod-) ===== */
.drawer-day{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.drawer-day-btn{width:44px;height:44px;padding:0;flex:none}
.drawer-day-input{width:170px;height:44px;flex:none}
.drawer-day-today{height:44px;flex:none}
.drawer-hero{padding:20px 22px}
.drawer-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.drawer-hero-label{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.drawer-hero-value{font-family:var(--display);font-size:32px;font-weight:800;line-height:1.15;color:var(--ink);white-space:nowrap;margin:2px 0}
.drawer-eod-btn{min-height:52px;flex:none}
.drawer-ledger{border-top:1px solid var(--line)}
.drawer-line{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;border-bottom:1px dashed var(--line);font-size:14px;color:var(--body)}
.drawer-line:last-child{border-bottom:0}
.drawer-sign{width:18px;flex:none;text-align:center;font-family:var(--display);font-weight:700;color:var(--muted)}
.drawer-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-amt{flex:none;text-align:right;color:var(--ink);font-size:15px;white-space:nowrap}
.drawer-line-total{border-top:2px solid var(--ink);font-weight:700;color:var(--ink)}
.drawer-line-total .drawer-amt{font-size:17px}
.drawer-start{display:flex;align-items:center;gap:8px;flex:none}
.drawer-start .input-group{width:150px}
.drawer-start .input-group .prefix{height:36px;padding:0 9px}
.drawer-start-in{height:36px;text-align:right;font-family:var(--display);font-weight:600;font-variant-numeric:tabular-nums}
.drawer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.drawer-list{display:flex;flex-direction:column}
.drawer-row{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 0;border-bottom:1px dashed var(--line);font-size:14px}
.drawer-row:last-child{border-bottom:0}
.drawer-row-main{flex:1;min-width:0}
.drawer-row-name{font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-row-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-row-amt{flex:none;white-space:nowrap;color:var(--ink);font-size:15px}
.drawer-row-total{border-top:1px solid var(--line);color:var(--body);font-size:13px}
.drawer-row-total .drawer-row-amt{font-size:14px}
.drawer-x{width:34px;height:34px;padding:0;flex:none;color:var(--muted)}
.drawer-seg{display:flex;width:100%}
.drawer-seg button{flex:1;min-height:44px;font-size:14px;background:transparent;border:0}
.drawer .empty{padding:18px 8px}
@media (max-width:1200px){.drawer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .drawer-grid{grid-template-columns:1fr}
  .drawer-day-input{flex:1;width:auto;min-width:0}
  .drawer-hero{padding:16px}
  .drawer-hero-top>div{min-width:0}
  .drawer-eod-btn{width:100%}
  .drawer-line-start{flex-wrap:wrap}
  .drawer-line-start .drawer-start{width:100%;padding-left:28px}
  .drawer-start .input-group{flex:1;width:auto}
}
/* --- EOD (Z-reading) --- */
.eod-wrap{display:flex;justify-content:center}
.eod-paper{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#000;line-height:1.45}
.eod-notice{text-align:center;font-weight:700;border-top:1px dashed #000;border-bottom:1px dashed #000;padding:4px 0;margin:0 0 8px}
.eod-paper>.eod-notice:last-child{margin:8px 0 0}
.eod-store{text-align:center;margin-bottom:6px}
.eod-store b{font-size:14px;display:block}
.eod-title{text-align:center;font-weight:800;font-size:14px;letter-spacing:.08em;margin:6px 0 8px}
.eod-row{display:flex;justify-content:space-between;gap:10px}
.eod-k{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eod-v{flex:none;text-align:right;font-variant-numeric:tabular-nums}
.eod-row.bold{font-weight:700}
.eod-row.grand{font-weight:800;font-size:14px}
.eod-sep{border-top:1px dashed #000;margin:6px 0}
.eod-h{font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.eod-none{color:#666}
.eod-sec{margin:2px 0}
@media print{
  body.drawer-printing *{visibility:hidden}
  body.drawer-printing .eod-paper,body.drawer-printing .eod-paper *{visibility:visible}
  body.drawer-printing .eod-paper{position:absolute;left:0;top:0;width:76mm;max-width:100%;border:0;border-radius:0;padding:0;font-size:12px;color:#000;background:#fff;line-height:1.35}
  body.drawer-printing .sidebar,body.drawer-printing .bottom-nav,body.drawer-printing .offline-banner,body.drawer-printing .page-header{display:none!important}
}

/* ===== staff.js (.staff-) ===== */
.staff-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;min-width:0}
.staff-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:14px;min-width:0;border-left:4px solid var(--line)}
.staff-card.in{border-left-color:var(--ok)}
.staff-card.break{border-left-color:var(--warn)}
.staff-card-top{display:flex;align-items:center;gap:12px;min-width:0}
.staff-who{flex:1;min-width:0}
.staff-name{font-family:var(--display);font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-role{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.staff-card-top .pill{flex:none;font-size:12px;padding:3px 10px}
.staff-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.staff-stat{min-width:0}
.staff-stat-l{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.staff-stat-v{font-family:var(--display);font-weight:600;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.staff-thumbs{display:flex;gap:8px;align-items:center}
.staff-thumb{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid var(--line);padding:0;background:var(--field);cursor:pointer;flex:none}
.staff-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.staff-photo-view img{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:var(--navy-d)}
.staff-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.staff-actions .btn{height:44px;padding:0 6px;font-size:13px;min-width:0}
.staff-actions .btn:disabled{opacity:.35;box-shadow:none}
/* PIN sheet */
.staff-sheet-body{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0 6px}
.staff-pin-hint{font-size:13.5px;color:var(--body);text-align:center}
.staff-pin{display:flex;flex-direction:column;align-items:center;gap:12px;outline:0;width:100%}
.staff-dots{display:flex;gap:14px;height:20px;align-items:center;justify-content:center}
.staff-dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--navy);background:transparent;transition:background .1s}
.staff-dot.on{background:var(--navy)}
.staff-pin-err{font-size:12.5px;color:var(--danger);font-weight:600;min-height:18px;text-align:center}
.staff-pad{display:grid;grid-template-columns:repeat(3,56px);grid-auto-rows:56px;gap:12px;justify-content:center}
.staff-key{width:56px;height:56px;border-radius:14px;border:1px solid var(--line);background:#fff;font-family:var(--display);font-weight:600;font-size:20px;color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:background .1s}
.staff-key:active{background:var(--navy);color:#fff}
.staff-key-alt{background:var(--field);color:var(--body);font-size:16px}
.staff-pin-ok{width:100%;max-width:216px;height:52px;font-size:16px;border-radius:12px;margin-top:4px}
/* selfie */
.staff-selfie{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.staff-cam-frame{width:100%;max-width:320px;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:var(--navy-d);display:grid;place-items:center}
.staff-cam{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:block}
img.staff-cam{transform:none}
.staff-cam-note{font-size:13px;color:var(--body)}
.staff-cam-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;width:100%}
.staff-cam-actions .btn{height:48px;flex:1 1 auto;min-width:110px}
/* history */
.staff-history{display:flex;flex-direction:column;gap:16px}
.staff-sum{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.staff-sum-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;min-width:0}
.staff-sum-name{flex:1;min-width:0}
.staff-sum-name b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-sum-hours{font-size:16px;white-space:nowrap;flex:none}
.staff-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.staff-filter{display:flex;flex-direction:column;gap:4px}
.staff-filter label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.staff-filter .input{width:150px;height:34px}
.staff-filters .btn{height:34px}
@media (max-width:860px){
  .staff-board{grid-template-columns:1fr}
  .modal.staff-sheet{margin:auto -24px -24px;width:calc(100% + 48px);max-width:none;border-radius:18px 18px 0 0;max-height:92vh;padding-bottom:env(safe-area-inset-bottom)}
  .modal.staff-sheet::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:10px auto -6px}
}
@media (max-width:420px){
  .staff-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .staff-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .staff-filter .input{width:130px}
}

/* ---- Products v2 (.prod-) options / colors / import-export ---- */
.prod-name{border-left:4px solid var(--navy);padding-left:10px}
.prod-from{white-space:nowrap}
.prod-dot{display:inline-block;border-radius:50%;flex:none;vertical-align:middle}
.prod-swatches{display:flex;gap:8px;flex-wrap:wrap}
.prod-swatch{width:36px;height:36px;border-radius:10px;border:2px solid transparent;display:inline-flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.prod-swatch svg{opacity:0;width:16px;height:16px}
.prod-swatch.on{border-color:var(--ink);box-shadow:0 0 0 2px #fff inset}
.prod-swatch.on svg{opacity:1}
.prod-swatch.none{background:#fff;border:1px dashed var(--line);color:var(--muted)}
.prod-swatch.none.on{border:2px solid var(--ink)}
.prod-opts-toggle .toggle{height:auto;min-height:40px;font-weight:600;color:var(--ink)}
.prod-opts{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--paper)}
.prod-opts.invalid{border-color:var(--danger)}
.prod-opts-list{display:flex;flex-direction:column;gap:6px}
.prod-opt-row{display:grid;grid-template-columns:minmax(0,1fr) 112px 112px 34px;gap:6px;align-items:center;min-width:0}
.prod-opt-head{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0 2px}
.prod-opt-name{min-width:0}
.prod-opt-name .input{width:100%}
.prod-opt-money{min-width:0;height:34px}
.prod-opt-money .input{height:32px;font-size:13px;padding:0 8px;border:0;background:transparent;min-width:0;width:100%}
.prod-opt-money .prefix{padding:0 0 0 8px;font-size:13px}
.prod-opt-x{width:34px;height:34px;padding:0;justify-content:center}
.prod-opts-add{align-self:flex-start}
.prod-opts .field-error{margin-top:0}
.prod-swatch-btn{width:32px;height:32px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none;border-radius:8px;padding:0}
.prod-swatch-btn:hover{background:var(--field)}
.prod-manage-row{padding-left:6px}
.prod-sort-btns{display:inline-flex;gap:2px}
.prod-sort-btns .btn{width:30px;padding:0;font-size:11px}
.prod-sort-btns .btn:disabled{opacity:.3}
.prod-ie{display:flex;flex-direction:column;gap:12px}
.prod-ie-text{font-size:13.5px;color:var(--body);line-height:1.5;margin:0}
.prod-ie-actions{display:flex;gap:10px;flex-wrap:wrap}
.prod-ie-dl{text-decoration:none}
.prod-file{display:none}
.prod-ie-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.prod-ie-stat{background:var(--paper);border-radius:10px;padding:10px 6px;text-align:center;border-top:3px solid var(--line)}
.prod-ie-stat.ok{border-top-color:var(--ok)}
.prod-ie-stat.info{border-top-color:var(--navy)}
.prod-ie-stat.danger{border-top-color:var(--danger)}
.prod-ie-num{font-family:var(--display);font-weight:800;font-size:22px;color:var(--ink)}
.prod-ie-lbl{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.prod-ie-err{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prod-opt-cell{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:700px){
  .prod-opt-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;grid-template-areas:"name name x" "price cost x"}
  .prod-opt-head{display:none}
  .prod-opt-name{grid-area:name}
  .prod-opt-money:nth-child(2){grid-area:price}
  .prod-opt-money:nth-child(3){grid-area:cost}
  .prod-opt-x{grid-area:x;align-self:center}
  .prod-opt-row+.prod-opt-row{border-top:1px dashed var(--line);padding-top:6px}
  .prod-ie-actions .btn{flex:1 1 100%}
  .prod-ie-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== v3 gap fills — undefined classes + Drawer page layout =====
   Owned by the CSS-gap pass. Pages: sales / products / staff / settings /
   reports / stock / drawer. No Sell rules belong in here. */

/* ---- Drawer page layout fix -------------------------------------------------
   drawer.js builds its page root as `<div class="stack drawer">`, which collided
   with the app.css overlay side-panel component `.drawer{width:480px;height:100vh}`.
   The whole page was therefore pinned to 480px on a 1080px canvas, and the 3-up
   card grid inside it collapsed to ~150px columns (wrapped titles, overlapping
   amounts, delete buttons spilling outside the cards). Reset the page root back
   to a normal full-width block; the overlay component (always rendered inside
   `.modal-backdrop.drawer-bd` and never given `.stack`) is untouched. */
.drawer.stack{width:100%;max-width:none;height:auto;min-height:0;background:transparent;box-shadow:none;animation:none;overflow:visible}
/* the three lower cards: comfortable responsive grid, nothing clipped or overlapping */
.drawer-grid>.card{min-width:0}
.drawer-grid .card-head{gap:10px;min-width:0}
.drawer-grid .card-head>*{min-width:0}
.drawer-grid .card-head>.actions{flex:none}
.drawer-grid .card-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* tighter chrome inside the 3-up cards buys the entry name ~24px of room */
.drawer-grid .card-head{padding-left:16px;padding-right:16px}
.drawer-grid .card-body{padding-left:16px;padding-right:16px}
.drawer-grid .drawer-row{gap:8px}
.drawer-grid .drawer-x{width:30px;height:30px}
/* rows wrap instead of colliding when a card gets narrow */
.drawer-row{flex-wrap:wrap;row-gap:2px}
.drawer-row-main{overflow:hidden}
.drawer-row-amt{flex:0 1 auto;min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis}
.drawer-row-total .drawer-row-main{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- sales.js gaps ---------------------------------------------------------- */
.sales-meta{min-width:0}
.sales-method-l{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sales-rf{min-width:0}
.sales-rf-hint{margin:-2px 0 2px;line-height:1.4}

/* ---- sales.js print views (?print=receipt|slip) — DESIGN rule 11 -------------
   72-80mm, monospace 12px, black on white, dashed separators. The shared frame
   lives on `.sales-print` above; these are the section wrappers. */
.sales-print.sp-receipt,.sales-print.sp-slip{width:80mm;max-width:100%}
.sales-print .sp-meta{margin:4px 0 2px}
.sales-print .sp-meta .sp-row span:last-child{font-weight:700}
.sales-print .sp-items{margin:2px 0}
.sales-print .sp-items .sp-item + .sp-item{margin-top:5px}
.sales-print .sp-totals{margin:2px 0}
.sales-print .sp-totals .sp-row.grand{border-top:1px dashed #000;padding-top:4px}
.sales-print .sp-slip{padding-top:4px}
.sales-print .sp-slip-items{display:flex;flex-direction:column;gap:2px;margin:2px 0}

/* ---- products.js gaps -------------------------------------------------------- */
.prod-page{min-width:0;width:100%}
.prod-opts-field{min-width:0;margin-bottom:12px}
.prod-opts-field>.field-hint{margin-top:6px}
.prod-ie-card{margin-top:4px;border-left:4px solid var(--navy)}

/* ---- staff.js gaps ----------------------------------------------------------- */
/* selfie step primary action — DESIGN rule 1 (orange, >=52px on touch) */
.staff-cam-btn{min-height:52px;flex:1 1 auto;min-width:130px;font-size:15px;border-radius:12px}

/* ---- settings.js gaps -------------------------------------------------------- */
.set-toggle{gap:12px;min-width:0;font-size:13.5px;font-weight:500;color:var(--ink)}
.set-toggle>span:last-child{min-width:0}

/* ---- reports.js gaps --------------------------------------------------------- */
.rep-range{white-space:nowrap;flex:none}
.rep-cat{min-width:0}
/* DESIGN rule 12: at 390px the stock-value tiles were clipping "P10,663.00" */
@media (max-width:700px){
  .rep-kpis .kpi{padding:14px 12px 12px}
  .rep-kpis .kpi-value{font-size:20px;letter-spacing:-.03em}
}

/* ---- stock.js gaps ----------------------------------------------------------- */
.stock-in{min-width:0}
.stock-lines-empty{padding:16px 12px;text-align:center;border:1px dashed var(--line);border-radius:10px;background:var(--paper)}
.stock-low-card{min-width:0}
.stock-low-card .empty{padding:24px 16px}
.stock-qty-in{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:700px){
  .staff-cam-btn{flex:1 1 100%}
  .drawer-grid .card-title{white-space:normal}
}

/* ===== settings.js · demo preset picker ===== */
.set-demo-seg{display:inline-flex;flex-wrap:wrap}
.set-demo-seg button{min-height:38px;padding:0 14px}
.set-demo-desc{margin-top:-4px}
@media (max-width:700px){.set-demo-seg{display:flex;width:100%}.set-demo-seg button{flex:1}}

/* Login: let the page scroll when the card is taller than the viewport (mobile keyboard open).
   flex align-items:center clips overflow above the fold; margin:auto centers AND stays scrollable. */
.login-bg,.login{align-items:flex-start;min-height:100vh;min-height:100svh}
.login-card{margin:auto}

/* ===== option groups (sell combo sheet + products group editor) ===== */
/* sell.js: variant chips reuse .sell-option; selected state */
.sell-option.on{border-color:var(--navy);background:var(--info-tint);box-shadow:inset 0 0 0 1px var(--navy)}
.sell-combo{display:flex;flex-direction:column;gap:14px;min-width:0}
.sell-combo .sell-field>label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-addons{display:flex;flex-direction:column;gap:6px;min-width:0}
.sell-addon{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;min-width:0}
.sell-addon:has(input:checked){border-color:var(--navy);background:var(--info-tint)}
.sell-addon input{flex:none;width:18px;height:18px;accent-color:var(--navy)}
.sell-addon-name{flex:1 1 auto;min-width:0;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sell-addon-price{flex:none;font-family:var(--display);font-weight:700;color:var(--navy);white-space:nowrap}
.sell-combo-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed var(--line);padding-top:10px}
.sell-combo-price{font-family:var(--display);font-size:20px;color:var(--navy);white-space:nowrap}
/* products.js: group cards */
.prod-groups{display:flex;flex-direction:column;gap:10px;min-width:0}
.prod-groups-list{display:flex;flex-direction:column;gap:10px;min-width:0}
.prod-group{border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}
.prod-group-head{display:grid;grid-template-columns:minmax(0,1fr) 150px 34px;gap:6px;align-items:center;min-width:0}
.prod-group-name{min-width:0}
.prod-group-kind{height:34px;font-size:13px;min-width:0}
.prod-groups-add{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:560px){
  .prod-group-head{grid-template-columns:minmax(0,1fr) 34px;grid-template-areas:"name x" "kind x"}
  .prod-group-name{grid-area:name}.prod-group-kind{grid-area:kind}.prod-group-head .btn{grid-area:x}
}
.prod-opt-group{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.prod-opt-group>.pill{flex:none}

/* ---- recipe editor (product modal) ---------------------------------------- */
.prod-rcp{display:flex;flex-direction:column;gap:6px;min-width:0}
.prod-rcp-list{display:flex;flex-direction:column;gap:6px;min-width:0}
.prod-rcp-row{display:grid;grid-template-columns:minmax(0,1fr) 96px 48px 34px;gap:6px;align-items:center;min-width:0}
.prod-rcp-row.opt{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 96px 48px 34px}
.prod-rcp-row .select,.prod-rcp-row .input{width:100%;min-width:0}
.prod-rcp-unit{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.prod-rcp-sub{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:6px 0 0}
.prod-rcp-add{align-self:flex-start}
@media (max-width:560px){
  .prod-rcp-row.opt{grid-template-columns:minmax(0,1fr) 96px 48px 34px}
  .prod-rcp-row.opt>.prod-rcp-opt{grid-column:1 / -1}
}

/* ---- stock: levels + ingredients tabs ------------------------------------- */
.stock-makes{display:block;font-size:11px;color:var(--muted);white-space:nowrap}
.stock-neg{color:var(--danger)}
.stock-lvl-foot{display:flex;gap:14px;flex-wrap:wrap;margin-left:auto;align-items:center}
.stock-lvl-foot .num{white-space:nowrap}
.stock-ing-head{display:flex;justify-content:flex-end;margin-bottom:8px}
