/* Stock module extras. Tokens only (dark mode follows). */
.stk-scan{display:flex;gap:8px;align-items:stretch;max-width:560px;margin:14px auto 0}
.stk-scan .input{height:56px;font-size:18px;flex:1;min-width:0}
.stk-scan .btn{height:56px}
.stk-big{height:60px!important;font-size:24px!important;font-weight:700;text-align:center}
.stk-qty{display:flex;align-items:stretch;border:1.5px solid var(--line2);border-radius:14px;overflow:hidden;height:64px}
.stk-qty button{width:72px;border:0;background:var(--surface);font-size:28px;cursor:pointer;color:var(--ink)}
.stk-qty input{flex:1;min-width:0;border:0;background:var(--card);text-align:center;font:700 26px var(--fd);outline:none}
.stk-reasons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stk-reasons button{min-height:50px;border-radius:12px;border:1.5px solid var(--line2);background:var(--card);font-weight:650;cursor:pointer;padding:6px 8px}
.stk-reasons button.on{background:var(--hi);border-color:var(--hi);color:#fff}
.stk-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;margin-bottom:8px;cursor:pointer;min-height:56px;background:var(--card)}
.stk-opt.on{border-color:var(--thunder);box-shadow:0 0 0 1px var(--thunder)}
.stk-opt input[type=radio],.stk-opt input[type=checkbox]{width:22px;height:22px;accent-color:var(--ctl);flex:none}
.stk-opt .grow{flex:1;min-width:0}
.stk-bar{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}
.stk-bar > .btn{flex:1}
.stk-now{display:flex;justify-content:space-between;gap:10px;align-items:center;background:var(--surface);border-radius:12px;padding:10px 14px;margin-top:10px;font-weight:600}
.stk-now b{font:700 20px var(--fd)}
.stk-cline{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);flex-wrap:wrap}
.stk-cline:first-child{border-top:0}
.stk-cline .grow{flex:1;min-width:150px}
.stk-cline .cin{width:110px;height:56px;font-size:22px;text-align:center;font-weight:700}
.stk-cline.done{background:var(--hover)}
.stk-loc{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.stk-loc a{text-decoration:none;color:inherit;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--card);box-shadow:var(--sh-1);min-height:44px}
.stk-loc a.q{border-color:var(--stop)} .stk-loc a.m{border-color:var(--bolt)}
.stk-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:8px}
.stk-filters .input,.stk-filters .select{height:44px}
.stk-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.stk-form .full{grid-column:1/-1}
.stk-form .chk{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600}
.stk-form .chk input{width:22px;height:22px;accent-color:var(--ctl)}
.stk-lbl{border:1.5px dashed var(--line2);border-radius:12px;padding:14px;max-width:360px;margin:auto;background:var(--label-paper);color:#1f1f23;display:flex;gap:12px;align-items:center}
.stk-lbl .qr{width:72px;height:72px;flex:none;background:repeating-conic-gradient(#1f1f23 0 25%,#fff 0 50%) 0 0/12px 12px;border-radius:4px}
.stk-sel{width:22px;height:22px;accent-color:var(--ctl)}
.stk-cam video{width:100%;border-radius:14px;background:#000;max-height:60vh}
@media (max-width:720px){
  .stk-reasons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stk-bar.fix{position:fixed;left:0;right:0;bottom:calc(var(--tab) + env(safe-area-inset-bottom));margin:0;padding:10px 14px;background:var(--glass);backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:45}
  .stk-bar.fix{flex-wrap:nowrap}
  .stk-bar.fix > .btn{min-width:0;padding:0 12px;overflow:hidden;text-overflow:ellipsis}
  .stk-padbar{padding-bottom:84px}
  .stk-filters{grid-template-columns:1fr 1fr}
  .stk-filters > :first-child{grid-column:1/-1}
  .stk-form{grid-template-columns:minmax(0,1fr)}
  .stk-cline .cin{flex:1;width:auto}
  .stk-scan .btn span.l{display:none}
}

/* QA pass 13 Nov: touch targets on phone and tablet. Every button, chip and toggle on these screens (and the drawers and
   pop-ups they open) is at least 44px tall. Scoped to this module's screens through the .stk-scr wrapper. */
@media (max-width:1180px){
  body:has(.stk-scr) :is(.p-main,#modal,#drawer) :is(.chip,.seg>button,.tabs a,.tabs button){min-height:44px;height:auto}
  body:has(.stk-scr) :is(.p-main,#modal,#drawer) :is(.input,.select){min-height:44px}
  body:has(.stk-scr) :is(.p-main,#modal,#drawer) .seg{min-height:44px}
  body:has(.stk-scr) .p-main .tabs a{display:inline-flex;align-items:center}
}
.stk-lotlinks{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.stk-lotlinks a{display:inline-flex;align-items:center;gap:4px;min-height:32px}
@media (max-width:1180px){.stk-lotlinks a{min-height:44px}}
/* Phone: every tab visible (wrap) instead of hidden off the right edge of a scroll strip */
@media (max-width:720px){ body:has(.stk-scr) .p-main .tabs{flex-wrap:wrap;overflow-x:visible} }
.stk-hl{outline:2px solid var(--bolt);outline-offset:6px;border-radius:12px}
/* Phone: inside a running count or the shelf walk, the tab strip is hidden so the list gets the screen (Back link stays) */
@media (max-width:720px){ .stk-focus{display:none} }

/* 18 Nov 2026 (Dylan): expiry tiles, risk, free locations, expired banner */
.stk-tilehead{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.stk-tilehead:first-child{margin-top:0}
.stk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stk-tiles.stk-t4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.stk-tiles.stk-t4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi.stk-tile{cursor:pointer;text-align:left;font:inherit;min-height:44px;border-width:2px}
.kpi.stk-tile:not(.dark){color:var(--ink)} .kpi.stk-tile.dark{color:#fff}
.stk-dlog .timeline{max-height:420px;overflow:auto}
.kpi.stk-tile.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--bolt)}
.kpi.stk-tile.red{background:var(--stop-bg);border-color:var(--stop-line)} .kpi.stk-tile.red .n{color:var(--stop)}
.kpi.stk-tile.red2 .n{color:var(--stop)} .kpi.stk-tile.wait .n,.kpi.stk-tile.wait2 .n{color:var(--wait)}
.kpi.stk-tile.wait{background:var(--wait-bg);border-color:var(--wait-bg)}
.kpi.stk-tile.red.on,.kpi.stk-tile.wait.on{border-color:var(--ink)}
a.card.stk-red{display:flex;gap:14px;align-items:center;padding:14px 16px;margin-bottom:16px;background:var(--stop-bg);border-color:var(--stop-line);color:var(--stop);text-decoration:none}
a.card.stk-red .ttl{color:var(--stop);font-weight:800} a.card.stk-red .sub2{color:var(--ink)}
.stk-explain{max-width:420px;margin-top:4px;line-height:1.35}
.stk-free{border-color:var(--ok-line)}
.stk-freechips .chip{min-height:40px}
@media (max-width:720px){
  .stk-tiles{gap:8px}
  .kpi.stk-tile{padding:10px 10px}
  .kpi.stk-tile .n{font-size:24px}
  .kpi.stk-tile .l{font-size:12px} .kpi.stk-tile .s{font-size:11px}
  a.card.stk-red{flex-wrap:wrap}
  .stk-explain{max-width:none}
}

/* 18 Nov 2026 (Dylan): locations by letter */
.stk-zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
.stk-zone{position:relative;text-align:left;font:inherit;color:var(--ink);background:var(--card);border:2px solid var(--line);border-radius:14px;padding:10px 12px;min-height:84px;cursor:pointer;box-shadow:var(--sh-1)}
.stk-zone .z{font:800 26px var(--fd);line-height:1.1;margin-bottom:4px;overflow-wrap:anywhere}
.stk-zone.sp .z{font-size:17px}
.stk-zone.sp{background:var(--surface)}
.stk-zone.q{border-color:var(--stop-line)}
.stk-zone.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--bolt)}
.stk-zone .fr{position:absolute;top:8px;right:8px;font-size:11px;font-weight:700;color:var(--ok);background:var(--ok-bg);border-radius:999px;padding:1px 7px}
.stk-zlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 14px;padding:4px 16px 12px}
.stk-zrow{display:flex;align-items:center;gap:14px;padding:10px 4px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;min-height:52px}
.stk-zrow .grow{flex:1;min-width:0} .stk-zrow .r{text-align:right;min-width:44px}
.stk-zrow.free .ttl{color:var(--ok)}
.stk-th2{display:flex;justify-content:space-between;align-items:center;gap:8px}
.stk-th2 .btn{text-transform:none;letter-spacing:0}
/* short-dated sales: panel, results, product settings */
.stk-pcts{display:flex;gap:6px;flex-wrap:wrap;align-items:stretch}
.stk-pcts .btn{min-width:58px;min-height:44px}
.stk-pcts .input{width:90px;min-height:44px;font-weight:700;text-align:center}
.stk-saletbl{margin-top:10px} .stk-saletbl td,.stk-saletbl th{padding:8px 10px}
.stk-saletbl tr.stk-red-row td,.stk-red-row td{color:var(--stop);background:var(--stop-bg)}
.stk-below{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--stop-bg);border:1px solid var(--stop-line);color:var(--ink)}
.stk-below b{color:var(--stop)}
.stk-sug{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--wait-bg);margin-bottom:10px}
.stk-sug .grow{flex:1;min-width:0}
.stk-salehead{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.stk-saleres{margin-top:6px}
.stk-saledf{align-items:center;gap:12px}
.stk-saledf .grow{flex:1;min-width:0}
.stk-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-weight:800;font-size:17px;min-height:48px;flex:none}
.stk-switch input{position:absolute;opacity:0;width:1px;height:1px}
.stk-switch .tr{width:58px;height:32px;border-radius:999px;background:var(--line2);position:relative;transition:background .15s}
.stk-switch .kn{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:var(--card);box-shadow:var(--sh-1);transition:left .15s}
.stk-switch input:checked + .tr{background:var(--ok)}
.stk-switch input:checked + .tr .kn{left:29px}
.stk-switch input:focus-visible + .tr{outline:2px solid var(--bolt);outline-offset:2px}
.stk-switch input:disabled + .tr{opacity:.5}
.stk-srbox{border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;margin:4px 0 12px;background:var(--surface)}
.stk-srhead{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.stk-srhead .small{flex-basis:100%}
.stk-srow{display:grid;grid-template-columns:150px minmax(0,300px) minmax(0,1fr);gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.stk-srow .lbl{font-weight:700}
.stk-srow .ctl{display:flex;gap:8px;align-items:center}
.stk-srow .ctl .select{flex:1;min-width:0}
.stk-srow .pctw{display:inline-flex;align-items:center;gap:4px}
.stk-srow .pctw .input{width:72px;text-align:center;font-weight:700}
.stk-neg{color:var(--stop)}
@media (max-width:720px){
  .stk-zones{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .stk-zone{min-height:76px;padding:8px 10px}
  .stk-zone .z{font-size:22px} .stk-zone.sp .z{font-size:14px}
  .stk-zlist{grid-template-columns:minmax(0,1fr);padding:4px 12px 10px}
  .stk-srow{grid-template-columns:minmax(0,1fr)}
  .stk-pcts .btn{flex:1;min-width:0;padding:0 6px}
  .stk-pcts .input{flex-basis:100%;width:auto}
  .stk-saledf{flex-wrap:wrap}
}
@media (max-width:360px){ .stk-zones{grid-template-columns:repeat(2,minmax(0,1fr))} }
.kpi.stk-tile.ok .n{color:var(--ok)} .kpi.stk-tile.ok{border-color:var(--ok-line)}
.btn.stk-onsale{background:var(--ok-bg);color:var(--ok);border-color:var(--ok-line)}
#drawer .stk-saleres .kpi{padding:10px 12px}
#drawer .stk-saleres .kpi .n{font-size:20px}
#drawer .stk-saleres .kpi .s{font-size:11px}

/* 18 Nov 2026 (Dylan): Seb's approval page (#/stock/sale-approve) — cards, sticky PIN bar */
.stk-aplist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(420px,100%),1fr));gap:14px;padding-bottom:90px}
.stk-appr .hd{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.stk-appills{display:flex;gap:6px;flex-wrap:wrap}
.stk-apbtns{display:flex;gap:8px;margin-top:12px}
.stk-apbtns .btn{min-height:48px}
.stk-apbtns .btn.primary{flex:1}
.stk-apnote{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--info-bg, var(--wait-bg));margin-bottom:12px}
.stk-apbar{position:sticky;bottom:0;z-index:5;display:flex;gap:10px;align-items:flex-end;margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 -4px 18px rgba(0,0,0,.08)}
.stk-apbar .input{font-size:22px;letter-spacing:.4em;max-width:180px;min-height:48px}
.stk-apbar .btn{min-height:48px}
.stk-apbar .grow{flex:1}
@media (max-width:720px){
  .stk-aplist{grid-template-columns:minmax(0,1fr)}
  .stk-appr{min-width:0}
  .stk-apbtns .btn{flex:1}
  .stk-apbar{position:fixed;left:0;right:0;bottom:0;border-radius:0;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:45;border-width:1px 0 0}
  body:has(.p-tabbar) .stk-apbar{bottom:calc(var(--tab) + env(safe-area-inset-bottom));padding-bottom:10px}
  .stk-aplist{padding-bottom:110px}
  .stk-apbar .field{flex:1}
  .stk-apbar .input{max-width:none;width:100%}
}

/* Give it a lot: scan several lots (25 Nov 2026, Dylan) */
.lg-seg{display:flex;margin-bottom:12px}.lg-seg button{flex:1;min-height:44px}
.lg-scan{display:grid;gap:8px;margin-bottom:12px}.lg-scan .input{height:52px;font-size:17px}
.lg-l{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lg-l .field{margin-bottom:8px}.lg-l .input{min-width:0;width:100%}
.lg-q{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lg-q .stepper input{width:64px;height:100%;border:0;background:var(--card);color:var(--ink);text-align:center;font-weight:700;font-size:17px;outline:none}
.lg-tick{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer}.lg-tick input[type=checkbox]{width:22px;height:22px;accent-color:var(--ctl)}
.lg-row{border:1.5px solid var(--line);border-radius:14px;padding:12px;margin-top:10px}.lg-row.bad{border-color:var(--wait-line,var(--line2))}
.lg-msg{margin-top:12px;padding:10px 12px;border-radius:12px;font-weight:700;font-size:14px;background:var(--ok-bg);color:var(--ok)}.lg-msg.stop{background:var(--stop-bg);color:var(--stop)}
.lg-lab{margin-top:16px}
#lg-go:disabled{opacity:.45;cursor:not-allowed}
