/* Stock Hub (Stock & Aging + Shipment & Re-order) — redesign 2026-11-03.
   Ported 1:1 from mockups/stock_warehouse_redesign_mockup.html (ST-1, Result10) + live additions at the end.
   The old app.css is still copied to dist (tests pin it) but this page no longer links it. */
:root{
  --bg:#f2f1ec; --card:#fff; --ink:#1b4456; --ink2:#4f6a77; --mute:#94a3aa; --line:#ebe9e2; --soft:#f6f5f1; --zebra:#faf9f6; --hover:#f3efe6;
  --side:#2c221b; --side-ink:#e6d9c8; --thead:#33281f; --gold:#f8d35e; --gold-ink:#1b4456; --bar1:#1d4a5c;
  --order:#e5484d; --watch:#f5a524; --ok:#30a46c; --over:#3e63dd; --nov:#9aa5af; --ncfg:#64748b; --conf:#8e4ec6;
  --late:#e5484d; --in:#30a46c; --crit:#f76b15;
  --r:22px; --f-ui:'Inter',system-ui,sans-serif; --f-head:'Plus Jakarta Sans','Inter',sans-serif; --f-tbl:'IBM Plex Sans',Inter,sans-serif;
}
:root[data-theme="dark"]{
  --bg:#0f1a1f; --card:#172730; --ink:#e8eef2; --ink2:#b3c0ca; --mute:#7d8c98; --line:#24333e; --soft:#1b2933; --zebra:#1a2a33; --hover:#21323d;
  --side:#1f1813; --thead:#120e0b; --bar1:#6fb3c9;
}
*{box-sizing:border-box;margin:0}
body{background:var(--bg);color:var(--ink);font:13px/1.45 var(--f-ui);font-feature-settings:'tnum','cv11'}
button{font:inherit;color:inherit;cursor:pointer}
.app{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}

/* ── Sidebar — maps to: masthead page-switch, Data updates panel, mobile bottom-nav ── */
.side{background:linear-gradient(180deg,#33271f 0%,#241b15 100%);border-right:1px solid rgba(214,180,120,.14);color:var(--side-ink);padding:22px 14px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh}
.logo{display:block;padding:6px 8px 16px;color:#fff;font:700 16px var(--f-head)}
.logo .brand-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.logo .mark{width:36px;height:auto;flex:0 0 auto}
.logo .bt{font:700 15px var(--f-head);letter-spacing:-.015em;white-space:nowrap}
.logo .bs{color:#14b8a6;font:700 9.5px var(--f-head);letter-spacing:.1em;text-transform:uppercase;margin-top:3px;white-space:nowrap}
.logo .side-data{margin-top:12px;font-size:11px;line-height:1.35;display:flex;flex-direction:column;gap:3px;padding:8px 10px;border-radius:12px;background:rgba(232,205,160,.06);border:1px solid rgba(232,205,160,.12)}
.logo .side-data .row{display:flex;justify-content:space-between;gap:8px}
.logo .side-data b{color:#fff;font-weight:600;font-variant-numeric:tabular-nums}
.nav-cap{font:700 10px var(--f-ui);letter-spacing:.14em;text-transform:uppercase;color:#9a8470;padding:14px 10px 6px}
.nav{display:flex;align-items:center;gap:12px;padding:11px 16px;border-radius:99px;border:0;background:none;text-align:left;width:100%;color:var(--side-ink);font-weight:500;position:relative}
.nav svg{width:18px;height:18px;flex:none}
.nav:hover{background:rgba(232,205,160,.08);color:#fff}
.nav.on{background:var(--gold);color:var(--gold-ink);font-weight:600}
.nav .badge{margin-left:auto;background:var(--order);color:#fff;font:700 10.5px var(--f-ui);border-radius:99px;padding:1px 7px}
.fresh{display:inline-flex;align-items:center;gap:6px}
.fresh::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ok)}

/* ── Main ── */
main{padding:22px 28px 60px;min-width:0}
.top{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.top h1{font:500 24px var(--f-head);letter-spacing:-.015em}
.top .sub{color:var(--mute);font-size:12.5px}
.top .grow{flex:1}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);display:grid;place-items:center}
.icon-btn svg{width:17px}
.card{background:var(--card);border-radius:var(--r);border:1px solid var(--line)}
.ch{display:flex;align-items:center;gap:10px;padding:16px 18px 12px;flex-wrap:wrap}
.ch h2{font:700 15px var(--f-head);letter-spacing:-.01em}
.ch .hint{color:var(--mute);font-size:12px}
.ch .sp{flex:1}
.pill{font:600 11px var(--f-ui);padding:3px 9px;border-radius:99px;background:var(--soft);color:var(--ink2);white-space:nowrap}
.pill.late{background:color-mix(in srgb,var(--late) 14%,transparent);color:var(--late)}
.ghost{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:6px 14px;font-size:12px;font-weight:600}
.ghost:hover{border-color:#c9a24a}
.view[hidden]{display:none}
.grid{display:grid;gap:16px}
.foot{padding:10px 18px 14px;color:var(--mute);font-size:11.5px}
.tw{padding:0 14px 14px}

/* ── Sticky filter bars — maps to: .filter-bar (position:sticky) / reorder toolbar ── */
.sticky{position:sticky;top:0;z-index:10;box-shadow:0 6px 18px -10px rgba(44,34,27,.25)}
.fbar{padding:12px 16px;margin-bottom:16px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.fbar .lab{font:700 10px var(--f-ui);text-transform:uppercase;letter-spacing:.06em;color:var(--mute);margin-right:-4px}
.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--soft);border-radius:99px;padding:6px 14px;flex:1;min-width:200px}
.search input{border:0;background:none;outline:0;font:inherit;color:var(--ink);width:100%}
.search svg{width:15px;color:var(--mute);flex:none}
.seg{display:inline-flex;background:var(--soft);border-radius:10px;padding:3px}
.seg button{border:0;background:none;padding:5px 12px;border-radius:8px;font-size:12px;font-weight:600;color:var(--ink2)}
.seg button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
select.sel{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:9px;padding:6px 10px;font:inherit;font-size:12.5px}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%}
.chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;border:1px solid var(--line);background:var(--card);font-size:12.5px;font-weight:500}
.chip i{width:8px;height:8px;border-radius:50%;background:var(--c)}
.chip b{font-weight:700}
.chip[aria-pressed="true"]{background:var(--side);color:#fff;border-color:var(--side)}
.chip.zero{opacity:.45}

/* ── KPI cards ── */
.kpi{padding:16px 18px;display:flex;flex-direction:column;gap:4px;position:relative;cursor:default}
.kpi .k-top{display:flex;align-items:center;gap:10px;color:var(--ink2);font-weight:600;font-size:12.5px;margin-bottom:4px}
.kpi .ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c)}
.kpi .ico svg{width:18px}
.kpi .n{font:700 28px var(--f-head);letter-spacing:-.02em}
.kpi .n small{font:600 12px var(--f-ui);color:var(--mute);margin-left:5px}
.kpi .n em{font:500 12px var(--f-ui);font-style:normal;color:var(--mute);margin-left:4px}
.kpi .s{color:var(--ink2);font-size:12px}
.kpi .s b{font-weight:600}
.kpi .s .late,.kpi .s .oos{color:var(--late);font-weight:600}
.kpi .bar{height:5px;border-radius:99px;background:var(--soft);overflow:hidden;margin:4px 0 2px}
.kpi .bar i{display:block;height:100%;background:var(--ok);border-radius:99px}
.kpi .gl{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11.5px;color:var(--ink2);border-top:1px dashed var(--line);padding-top:6px;margin-top:4px}
.kpi .gl span{display:inline-flex;align-items:center;gap:5px}
.kpi .gl i{width:7px;height:7px;border-radius:2px}
.pop{display:none;position:absolute;left:12px;right:12px;top:100%;margin-top:6px;z-index:20;background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:0 12px 32px rgba(44,34,27,.16);border-radius:14px;padding:10px 12px;max-height:300px;overflow:auto;line-height:1.4;font-size:12px}
.kpi:hover .pop,.kpi:focus .pop,.mini:hover .pop,.mini:focus .pop{display:block}
.kpi:hover,.kpi:focus,.mini:hover,.mini:focus{z-index:21}
.pop .ph{font:700 10px var(--f-ui);text-transform:uppercase;letter-spacing:.08em;color:var(--mute);margin:8px 0 4px}
.pop .ph:first-child{margin-top:0}
.pop .pr{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:3px 0}
.pop .pr.dim{opacity:.55}
.a-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}

.dash{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,.8fr);margin-bottom:16px}
.dash .ch{padding:12px 16px 8px}
.dash .kpi.hero{padding:14px 18px}
.kpi.hero{min-height:0;background:radial-gradient(120% 90% at 85% 100%,#f8d35e 0,#dfe9c8 38%,#d7e4d0 60%,#e6ece0 100%);border-color:transparent}
.kpi.hero,.kpi.hero .n,.kpi.hero .s,.kpi.hero small{color:#1b4456}
.kpi.hero .n{font-size:34px;line-height:1.1}
.hero-pills{position:absolute;right:16px;top:16px;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.hero-pills span{border:1px solid rgba(27,68,86,.25);border-radius:99px;padding:4px 12px;font-size:12px;background:rgba(255,255,255,.35)}
.hero .tag{align-self:flex-start;background:var(--side);color:#fff;border-radius:99px;padding:3px 10px;font-size:11.5px;font-weight:600}
.ovw{padding:0 12px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mini{border:1px solid var(--line);border-radius:14px;padding:9px 12px;position:relative;cursor:default;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}
.mini .ic{grid-row:span 2}
.mini .ic{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center}
.mini .ic svg{width:16px}
.mini .tr{position:absolute;right:10px;top:9px;font-size:11px;font-weight:600}
.mini .n{font:600 17px var(--f-head);line-height:1.2}
.mini .l{color:var(--mute);font-size:11.5px}
.gauge{display:flex;flex-direction:column;align-items:center;padding:0 12px 12px}
.gauge svg{width:100%;max-width:210px}
.gauge .gv{margin-top:-48px;text-align:center}
.gauge .gv b{font:700 22px var(--f-head);display:block}
.gauge .gv span{color:var(--mute);font-size:12px}

/* ── Solid tables (all tables, both pages) ── */
.tbox{border:1px solid var(--line);border-radius:14px;overflow:auto;max-height:560px;background:var(--card)}
table.t{width:100%;border-collapse:separate;border-spacing:0;font:12.5px/1.4 var(--f-tbl)}
.t thead th{position:sticky;top:0;z-index:2;background:var(--thead);color:#f3eadc;font:600 10.5px var(--f-tbl);letter-spacing:.05em;text-transform:uppercase;text-align:left;padding:9px 14px;white-space:nowrap;cursor:pointer;user-select:text}
.t thead th.num{text-align:right}
.t thead th .si{opacity:.45;margin-left:5px;user-select:none}
.t thead th.sorted{color:var(--gold)} .t thead th.sorted .si{opacity:1}
.t thead th.nosort{cursor:default}
.t td{padding:7px 14px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.t td.num{text-align:right}
.t.zebra tbody tr:nth-child(even) td{background:var(--zebra)}
.t tbody tr:hover td{background:var(--hover)}
.t tbody tr:last-child td{border-bottom:0}
.t tr.sub td{background:var(--soft);font-size:12px;color:var(--ink2)}
.t tr.sub td:first-child{padding-left:42px}
.t tr.open td{background:var(--hover);font-weight:500}
.t tr.inact td{opacity:.55}
.t tr.r-expired td:first-child{box-shadow:inset 3px 0 var(--order)}
.idx,.code{color:var(--mute);font-size:11.5px}
.nm{display:inline-block;white-space:nowrap;vertical-align:middle}
.no-data{text-align:center;color:var(--mute);padding:24px!important}
.chev{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;border:1px solid var(--line);background:var(--card);margin-right:8px;font-size:11px;transition:transform .15s;vertical-align:middle}
tr.open .chev{transform:rotate(90deg)}
.co{display:inline-block;font:600 10.5px var(--f-tbl);padding:2px 8px;border-radius:99px}
.co.vcan{background:rgba(201,151,51,.15);color:#8c6418}
.co.moola{background:rgba(155,109,214,.14);color:#8a55d0}
.uom{display:inline-block;font:600 10.5px var(--f-tbl);padding:2px 7px;border-radius:6px}
.u-ctn{background:rgba(201,151,51,.15);color:#8c6418} .u-pcs{background:rgba(19,153,184,.13);color:#0e7e98}
.u-pack{background:rgba(47,158,111,.13);color:#268059} .u-box{background:rgba(155,109,214,.13);color:#8a55d0}
.blogo{display:inline-grid;place-items:center;min-width:24px;height:18px;padding:0 4px;border-radius:5px;background:var(--c);color:#fff;font:700 9px var(--f-ui);margin-right:6px;vertical-align:middle}
.qcell{display:inline-flex;align-items:center;gap:8px;justify-content:flex-end;min-width:110px}
.qcell .qb{height:6px;border-radius:99px;background:color-mix(in srgb,var(--bar1) 35%,transparent);flex:none}
.d-exp{color:var(--order);font-weight:600} .d-crit{color:var(--crit);font-weight:600} .d-warn{color:#c27c00;font-weight:600} .d-safe{color:color-mix(in srgb,var(--ok) 55%,var(--ink2));font-weight:500} .d-unk{color:var(--mute)}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%}
.badge-st{display:inline-flex;align-items:center;gap:6px;font:600 11px var(--f-tbl);padding:2px 9px;border-radius:99px;background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c)}
.badge-st::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c)}
.st{font:600 11px var(--f-tbl);padding:2px 9px;border-radius:99px;white-space:nowrap}
.pob-late{background:color-mix(in srgb,var(--late) 14%,transparent);color:var(--late)}
.pob-eta{background:color-mix(in srgb,var(--watch) 18%,transparent);color:#a86b00}
.pob-in{background:color-mix(in srgb,var(--in) 14%,transparent);color:var(--in)}
.pob-other{background:var(--soft);color:var(--ink2)}
.pob-issue{background:var(--late);color:#fff}
.prog{display:flex;align-items:center;gap:8px;min-width:150px;width:150px}
.prog .pb{flex:none;width:84px;height:6px;border-radius:99px;background:var(--soft);overflow:hidden}
.prog .pb i{display:block;height:100%;border-radius:99px;background:#c9a24a}
.prog.late .pb i{background:var(--late)} .prog.in .pb i{background:var(--in)}
.prog small{font-size:11px;color:var(--mute);min-width:52px;text-align:right}
.prog.late small{color:var(--late);font-weight:600}
.ow .o{color:var(--order);font-weight:600} .ow .w{color:#b97a00;font-weight:600} .ow .z{color:var(--mute)}
.sugg{font-weight:700;color:var(--order)}
.cv{display:inline-flex;align-items:center;gap:8px}
.cv .cb{width:70px;height:6px;border-radius:99px;background:var(--soft);position:relative;overflow:hidden}
.cv .cb i{position:absolute;inset:0 auto 0 0;border-radius:99px}
.inact-tag{font:600 9.5px var(--f-ui);background:var(--soft);color:var(--mute);border-radius:5px;padding:1px 5px;margin-left:4px}
.lead{position:relative;height:16px;width:120px;display:inline-block;vertical-align:middle;margin-right:8px}
.lead .ax{position:absolute;left:0;right:0;top:7px;height:2px;background:var(--soft)}
.lead .rng{position:absolute;top:4px;height:8px;border-radius:99px;background:color-mix(in srgb,var(--over) 30%,transparent)}
.lead .avg{position:absolute;top:2px;width:3px;height:12px;border-radius:2px;background:var(--over)}
.lead .plan{position:absolute;top:0;height:16px;border-left:2px dashed #c9a24a}
.gap-late{color:var(--late);font-weight:600} .gap-ok{color:var(--ok);font-weight:600}
.legend{display:flex;gap:16px;flex-wrap:wrap;padding:10px 18px 14px;color:var(--mute);font-size:11.5px;align-items:center}
.legend span{display:inline-flex;gap:6px;align-items:center}

.split{grid-template-columns:minmax(0,1fr);margin-bottom:16px}
.sup-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 14px 10px}
.sk{border:1px solid var(--line);border-radius:14px;padding:10px 14px}
.sk .l{font-size:11.5px;color:var(--mute);font-weight:500}
.sk .v{font:700 20px var(--f-head);letter-spacing:-.01em}
.sk .v small{font:500 12px var(--f-ui);color:var(--mute);margin-left:4px}
.sk .d{font-size:11.5px;color:var(--ink2)}
.sk.bad .v{color:var(--late)}
.lg-rng{width:18px;height:8px;border-radius:99px;background:color-mix(in srgb,var(--bar1) 22%,transparent)}
.lg-avg{width:9px;height:9px;border-radius:50%;background:var(--bar1);box-shadow:0 0 0 2px var(--card)}
.lg-plan{width:0;height:13px;border-left:2px solid #c9a24a}
.t thead tr.grp th{background:#4a3b2f;color:#e6d9c8;text-align:center;font-size:10px;letter-spacing:.1em;padding:6px 10px;border-left:1px solid rgba(255,255,255,.08);cursor:default}
.t thead tr.grp th:first-child{border-left:0}
.t.has-grp thead tr:not(.grp) th{top:27px}
.t td.gs,.t th.gs{border-left:1px solid var(--line)}
.t thead th.gs{border-left-color:rgba(255,255,255,.08)}
.lt{position:relative;width:200px;height:22px;display:inline-block;vertical-align:middle}
.lt .ax{position:absolute;left:0;right:0;top:10px;height:2px;background:var(--soft);border-radius:2px}
.lt .rng{position:absolute;top:6px;height:10px;border-radius:99px;background:color-mix(in srgb,var(--bar1) 22%,transparent)}
.lt .plan{position:absolute;top:1px;height:20px;border-left:2px solid #c9a24a}
.lt .avg{position:absolute;top:5px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--bar1);box-shadow:0 0 0 2px var(--card)}
.lt.late .avg{background:var(--late)}
.gp{display:inline-block;font:600 11px var(--f-tbl);padding:2px 8px;border-radius:99px}
.gp.late{background:color-mix(in srgb,var(--late) 13%,transparent);color:var(--late)}
.gp.ok{background:color-mix(in srgb,var(--ok) 13%,transparent);color:var(--ok)}
.rel{display:block;font-size:11px;color:var(--mute);font-weight:400}
.rel.late{color:var(--late);font-weight:600}
@media (max-width:900px){.sup-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.leadchart{display:flex;gap:14px;align-items:flex-end;height:150px;padding:0 18px}
.lc{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.lc .bars{display:flex;gap:4px;align-items:flex-end;height:100%}
.lc .bars i{width:14px;border-radius:7px 7px 3px 3px;display:block}
.lc small{font-size:10.5px;color:var(--mute);white-space:nowrap}

/* Aging */
.a-split{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);margin-bottom:16px}
.grade{padding:4px 18px 18px;display:flex;gap:22px;align-items:center}
.donut{width:150px;height:150px;flex:none;border-radius:50%;display:grid;place-items:center}
.donut>div{width:104px;height:104px;border-radius:50%;background:var(--card);display:grid;place-items:center;text-align:center}
.g-list{flex:1;display:flex;flex-direction:column;gap:9px}
.g-row{display:grid;grid-template-columns:72px minmax(0,1fr) 50px;gap:10px;align-items:center;font-size:12.5px}
.hbar{height:8px;border-radius:99px;background:var(--soft)} .hbar i{display:block;height:100%;border-radius:99px}
.g-sep{border-top:1px dashed var(--line)}
.exp{padding:0 18px 14px}
.tl{position:relative;height:42px;margin:4px 0 14px;border-radius:10px;background:linear-gradient(90deg,color-mix(in srgb,var(--order) 10%,transparent),color-mix(in srgb,var(--watch) 10%,transparent) 60%,var(--soft))}
.tl i{position:absolute;top:8px;width:8px;height:26px;border-radius:4px;transform:translateX(-50%)}
.tl-ax{display:flex;justify-content:space-between;font-size:10.5px;color:var(--mute);margin-top:-10px;margin-bottom:10px}
.exp-list{max-height:220px;overflow:auto}
.exp-row{display:grid;grid-template-columns:10px minmax(0,1fr) 84px 64px;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);font-size:12px}
.exp-row .x{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs{display:flex;gap:4px;padding:6px 14px 0;align-items:center}
.tabs button.tb{border:0;background:none;padding:10px 12px;font-weight:600;color:var(--mute);border-bottom:2px solid transparent}
.tabs button.tb.on{color:var(--ink);border-bottom-color:#c9a24a}
.xl{display:inline-flex;gap:6px;align-items:center}
.xl svg{width:13px}

@media (max-width:1280px){.dash{grid-template-columns:1fr 1fr}.dash .hero{grid-column:1/-1}.split{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;bottom:0;top:auto;left:0;right:0;height:auto;flex-direction:row;padding:6px 10px;z-index:30;justify-content:space-around}
  .side .logo,.side .nav-cap{display:none}
  .nav{flex-direction:column;gap:2px;font-size:11px;padding:6px 14px;width:auto}
  .nav .badge{position:absolute;top:0;right:4px;margin:0}
  main{padding:16px 16px 90px}
  .a-kpis,.dash{grid-template-columns:repeat(2,minmax(0,1fr))}
  .a-split{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){.a-kpis,.dash{grid-template-columns:minmax(0,1fr)}.grade{flex-direction:column}.top h1{font-size:22px}}

/* ═══ Live-dashboard additions (not in the mockup) ═══ */
/* Real brand logos over the initials badge (logo files in /assets/logos, same map as app.js RO_BRAND_STYLES) */
.blogo{position:relative;overflow:hidden;min-width:32px;height:20px;border-radius:4px}
.blogo.has-img{background:#fff;color:transparent;border:1px solid var(--line)}
.blogo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:1px 2px}
.u-pkt{background:rgba(214,120,60,.13);color:#bd6a2e} .u-set{background:rgba(59,130,246,.13);color:#1d4ed8} .u-bag{background:rgba(236,72,153,.13);color:#be185d}
.co.unknown{background:var(--soft);color:var(--ink2)}
.fresh.stale::before{background:var(--watch)} .fresh.old::before{background:var(--late)}
.xl[disabled]{opacity:.6;cursor:wait}
.empty-note{padding:18px;color:var(--mute);text-align:center}
.cov-mismatch{color:var(--late);font-weight:600}
.tl i.over{opacity:.55}
/* Unlock dialog (crypto.js unlockDashboardV2 — ids pw-modal / pw-input / pw-btn are a contract) */
dialog.pw-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);border:none;border-radius:22px;padding:0;background:transparent;max-width:380px;width:90%}
dialog.pw-modal::backdrop{background:rgba(36,27,21,.88);backdrop-filter:blur(6px)}
.pw-box{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
.pw-brand{display:flex;gap:10px;align-items:center;font:700 20px var(--f-head);color:var(--ink);margin-bottom:4px}
.pw-brand i{width:32px;height:32px;border-radius:9px;background:var(--gold);display:grid;place-items:center;font-style:normal;color:var(--gold-ink)}
.pw-sub{font-size:11px;color:var(--mute);letter-spacing:.08em;text-transform:uppercase;margin:0 0 22px}
.pw-box input{width:100%;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--soft);color:var(--ink);font:13px var(--f-ui);outline:none;margin-bottom:10px}
.pw-box input:focus{border-color:#c9a24a}
.pw-err{color:var(--late);font-size:11px;min-height:1.3em;margin-bottom:8px}
.pw-box button{width:100%;padding:11px;border-radius:99px;border:none;background:var(--gold);color:var(--gold-ink);font:700 13px var(--f-ui);cursor:pointer}
.pw-box button:disabled{opacity:.5;cursor:not-allowed}
@media print{.side,.sticky,.icon-btn,.xl{display:none!important}.app{grid-template-columns:1fr}.tbox{max-height:none!important;overflow:visible}}
/* Same VCAN mark as every other dashboard (/assets/vc-logo.svg) */
.logo img,.pw-brand img{width:32px;height:32px;flex:none;object-fit:contain}
/* Multi-select filters (engine setupMultiSelect markup: .cbdd.ms > .ms-btn + .cbdd-panel) */
.cbdd{position:relative}
.ms-btn{display:inline-flex;align-items:center;gap:7px;min-width:120px;max-width:220px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:9px;padding:6px 10px;font-size:12.5px;text-align:left;white-space:nowrap}
.ms-btn .ms-txt{overflow:hidden;text-overflow:ellipsis;flex:1 1 auto}
.ms-btn .ms-chev{font-size:10px;color:var(--mute)}
.ms-btn .ms-ico:empty{display:none} .ms-btn .ms-ico{display:inline-flex}
.ms-btn.on{border-color:#c9a24a;background:color-mix(in srgb,var(--gold) 22%,var(--card));font-weight:600}
.cbdd-panel{display:none;position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:240px;max-height:360px;overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(44,34,27,.18);padding:8px}
.cbdd.open .cbdd-panel{display:block}
.ms-find{width:100%;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:9px;padding:6px 10px;font:inherit;font-size:12.5px;margin-bottom:6px;outline:0}
.ms-find:focus{border-color:#c9a24a}
.cbdd-actions{display:flex;gap:6px;padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.cbdd-actions button{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:3px 10px;font-size:11.5px;font-weight:600;color:var(--ink2)}
.cbdd-actions button:hover{border-color:#c9a24a;color:var(--ink)}
.cbdd-item{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:8px;cursor:pointer;font-size:12.5px;white-space:nowrap}
.cbdd-item:hover{background:var(--hover)}
.cbdd-item input{accent-color:#c9a24a;cursor:pointer}
.cbdd-item.ms-na{display:none!important}
.cbdd-item .ms-lbl{flex:1 1 auto}
.cbdd-item .ms-cnt{margin-left:10px;font:500 11px var(--f-tbl);color:var(--mute)}
.ms-logo{width:28px;height:18px;object-fit:contain;border-radius:4px;flex:0 0 auto;background:#fff;border:1px solid var(--line);padding:1px}
.ms-logo.nolg{width:18px;border-radius:50%;background:var(--soft)}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.sd-expired{background:var(--order)} .sd-critical{background:var(--crit)} .sd-warning{background:var(--watch)} .sd-safe{background:var(--ok)} .sd-oos{background:var(--nov)} .sd-damage{background:#c9a24a}
@media (max-width:560px){.cbdd,.ms-btn{width:100%;max-width:none}.cbdd-panel{width:100%}}
/* Sidebar nav: both items one line, same height (user 2026-11-03) */
.app{grid-template-columns:248px minmax(0,1fr)}
.nav{height:44px;padding:0 12px;gap:8px;font-size:12.5px;white-space:nowrap}
.nav .badge{padding:1px 6px}
.nav .lbl{overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px){.app{grid-template-columns:minmax(0,1fr)}.nav{height:auto;padding:6px 14px;white-space:normal}}
/* Mobile audit + version badge 2026-11-03 */
@media(max-width:560px){.tabs{flex-wrap:wrap}}


@media(max-width:900px){.nav{font-size:11px;gap:2px}}
@media(max-width:560px){.ovw{grid-template-columns:minmax(0,1fr)} .hero-pills{position:static;flex-direction:row;flex-wrap:wrap;align-items:flex-start;margin-bottom:6px}}
.pob-issue{background:color-mix(in srgb,var(--late) 80%,#000)}
@media(max-width:900px){.seg button,.ghost,.cbdd-actions button,.cbdd-item{min-height:32px}}
@media(max-width:900px){.blogo,.inact-tag{font-size:10px}}
.vbadge{font:600 11px var(--f-tbl,inherit);padding:2px 9px;border-radius:99px;border:1px solid var(--watch);background:transparent;color:inherit;cursor:pointer}
.vbadge-m{display:none}
@media(max-width:900px){.vbadge-m{display:inline-flex;align-items:center;min-height:32px}}
dialog.ver-dlg{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);border:none;border-radius:22px;padding:0;background:transparent;max-width:420px;width:92%}
dialog.ver-dlg::backdrop{background:rgba(36,27,21,.88);backdrop-filter:blur(6px)}
.ver-box{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:16px;color:var(--ink)}
.ver-stamps .row{display:flex;justify-content:space-between;font-size:12px;padding:3px 0}
.ver-e{padding:10px 0;border-top:1px solid var(--line)}
.ver-d{color:var(--mute);font-size:11px}
.ver-e ul{margin:6px 0 0 18px;padding:0;font-size:12.5px}
/* Mobile cards + 2-line frozen filter bar 2026-11-03 */
.fscroll{display:contents}
@media(max-width:700px){
.sticky{position:sticky;top:0}
.fbar{padding:8px 10px;gap:6px 8px;margin-bottom:12px;flex-wrap:wrap}
.fbar .search{order:1;flex:1 1 0;min-width:0;padding:4px 12px}
.fbar #reset{order:1;flex:none}
.fscroll{display:flex;order:2;flex:1 0 100%;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.fscroll::-webkit-scrollbar{display:none}
.fscroll>*{flex:0 0 auto}
.fscroll .chips{flex-wrap:nowrap;width:auto;gap:6px}
.fscroll .cbdd,.fscroll .ms-btn{width:auto;max-width:none}
.fscroll .cbdd-panel{position:fixed;left:8px;right:8px;top:112px;width:auto;min-width:0;max-height:calc(100vh - 210px);z-index:60}
.fscroll .lab{margin:0 -2px 0 2px}
.tw{padding:0 10px 10px}
.tbox{max-height:none!important;overflow:visible;border:0;background:transparent;border-radius:0}
.t,.t tbody,.t tr,.t td{display:block}
.t{width:100%;min-width:0!important}
.t thead{display:block;margin-bottom:8px}
.t thead tr{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.t thead tr.grp{display:none}
.t thead th{position:static;flex:0 0 auto;border-radius:99px;padding:6px 12px;min-height:32px;display:inline-flex;align-items:center;gap:4px}
.t tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.t tbody tr.sub{background:var(--soft);margin:-4px 0 8px 12px;padding:8px 10px;font-size:12px}
.t tbody td{position:static!important;padding:0;border:0;text-align:left;min-width:0;white-space:normal;background:none}
.t tbody td.num{text-align:left}
.t tbody td:first-child,.t tbody td[colspan],.t tbody td[data-label="Progress"]{grid-column:1/-1}
.t tbody td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font:700 9.5px var(--f-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin-bottom:2px}
.t tbody td.no-data{text-align:center}.t tbody tr,.t.zebra tbody tr:nth-child(even){background:var(--card)!important}.t tbody tr.sub{background:var(--soft)!important}.t tbody tr td,.t.zebra tbody tr td{background:transparent!important;box-shadow:none}.t td[data-empty]{display:none}.t td .nm,.t td .nm *{white-space:normal!important;overflow:visible;text-overflow:clip;max-width:100%;overflow-wrap:anywhere}
}
/* Aging tables: wrap long product names so the table fits without sideways scroll (desktop) */
#a-box .nm{white-space:normal;overflow-wrap:anywhere;max-width:240px;min-width:130px}
@media(min-width:701px){#a-box .t th,#a-box .t td{padding-left:8px;padding-right:8px}#a-box .t td.code{white-space:normal;overflow-wrap:anywhere;max-width:130px}#a-box .t td:nth-child(3){white-space:normal;max-width:130px}#a-box .nm{max-width:210px;min-width:120px}#a-box .t thead th{letter-spacing:.02em}}
@media(min-width:701px){#a-box .t{font-size:12px}#a-box .t th,#a-box .t td{padding-left:6px;padding-right:6px}#a-box .t td.code{max-width:104px}#a-box .t td:nth-child(3){max-width:112px}#a-box .nm{max-width:190px;min-width:110px}#a-box .t thead th{font-size:10px}}
/* Aging tables, desktop: compact columns, long text cut with … (full text on hover) so every column fits without sideways scroll */
@media(min-width:701px){
#a-box .bc{display:inline-block;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
#a-box .t td:nth-child(3){max-width:106px;white-space:nowrap}
#a-box .nm{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;min-width:0;vertical-align:middle}
#a-box .t td.code{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:96px}
#a-box .t td:nth-child(2){padding-left:4px;padding-right:4px}
}
/* Aging tables, desktop: FIXED column widths (% of the card) so every column shows without sideways scroll; names/batch wrap, brand is cut with … */
@media(min-width:701px){
#a-box .t{table-layout:fixed;width:100%;min-width:0}
#a-box .t th,#a-box .t td{padding-left:5px;padding-right:5px;overflow:hidden}
#a-box .t thead th{white-space:normal;line-height:1.15;font-size:9.5px;letter-spacing:.02em}
#a-box .t td.code,#a-box .nm,#a-box .t td:nth-child(3){white-space:normal;overflow-wrap:anywhere;max-width:none;text-overflow:clip}
#a-box .nm{display:block;min-width:0}
#a-box .t td:nth-child(3){white-space:nowrap}
#a-box .bc{max-width:calc(100% - 34px)}
#a-box .qcell{min-width:0;gap:5px}
#a-box .qcell .qb{width:28px!important;max-width:28px}
#a-box[data-tab=lots] th:nth-child(1){width:3%}#a-box[data-tab=lots] th:nth-child(2){width:5.5%}#a-box[data-tab=lots] th:nth-child(3){width:7.5%}#a-box[data-tab=lots] th:nth-child(4){width:9%}
#a-box[data-tab=lots] th:nth-child(5){width:13%}#a-box[data-tab=lots] th:nth-child(6){width:5.5%}#a-box[data-tab=lots] th:nth-child(7){width:8.5%}#a-box[data-tab=lots] th:nth-child(8){width:8%}
#a-box[data-tab=lots] th:nth-child(9){width:6.5%}#a-box[data-tab=lots] th:nth-child(10){width:5.5%}#a-box[data-tab=lots] th:nth-child(11){width:4%}#a-box[data-tab=lots] th:nth-child(12){width:4%}
#a-box[data-tab=lots] th:nth-child(13){width:4%}#a-box[data-tab=lots] th:nth-child(14){width:4%}#a-box[data-tab=lots] th:nth-child(15){width:4.5%}#a-box[data-tab=lots] th:nth-child(16){width:7%}
#a-box[data-tab=qty] th:nth-child(1){width:3%}#a-box[data-tab=qty] th:nth-child(2){width:5.5%}#a-box[data-tab=qty] th:nth-child(3){width:8%}#a-box[data-tab=qty] th:nth-child(4){width:11%}
#a-box[data-tab=qty] th:nth-child(5){width:30.5%}#a-box[data-tab=qty] th:nth-child(6){width:8%}#a-box[data-tab=qty] th:nth-child(7){width:5%}#a-box[data-tab=qty] th:nth-child(8){width:5%}
#a-box[data-tab=qty] th:nth-child(9){width:5%}#a-box[data-tab=qty] th:nth-child(10){width:5%}#a-box[data-tab=qty] th:nth-child(11){width:8%}#a-box[data-tab=qty] th:nth-child(12){width:6%}
}
/* Aging cards, phone: no bar in Total, number left-aligned like the other values */
@media(max-width:700px){.qcell .qb{display:none}.qcell{min-width:0;justify-content:flex-start}}
/* Aging tables desktop: bigger product name, slimmer brand */
@media(min-width:701px){
#a-box .nm{font-size:12.5px;font-weight:500;line-height:1.3}
#a-box[data-tab=qty] .t td{font-size:12.5px}
#a-box[data-tab=qty] .nm{font-size:13.5px}
#a-box .bc{max-width:calc(100% - 32px)}
}
@media(min-width:701px){#a-box .t td:nth-child(2) .co,#a-box .t td:nth-child(2) span{padding-left:6px;padding-right:6px;font-size:10px}}
/* Phone: one combined Products + lots list, two Excel buttons */
.xl-m,.xl-m2{display:none}
.qrow{cursor:pointer}
.qrow .chev{display:inline-block;transition:transform .15s;margin-right:6px;color:var(--mute)}
.qrow.open .chev{transform:rotate(90deg)}
.lotl{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:center;padding:7px 0;border-top:1px solid var(--line);font-size:12px}
.lotl:first-child{border-top:0}
.lotl .lq{margin-left:auto}
@media(max-width:700px){
.tabs .tb{display:none}
.tabs::before{content:"Products & lots";font:700 14px var(--f-ui);color:var(--ink);margin-right:auto}
.tabs>span[style]{display:none}
.xl-d{display:none}.xl-m{display:inline}.xl-m2{display:inline-flex}
.tabs{gap:6px}
}
.qrow .chev{border:0;background:none;width:auto;height:auto;box-shadow:none;padding:0}
/* Phone: the Shipment page shows ONLY Inbound Shipments (filter bar is hidden too: it filters SKUs, not POs) */
@media(max-width:700px){
#v-reorder>.grid.dash,#v-reorder>.fbar,#v-reorder>section.card{display:none}
#v-reorder .grid.split{margin-bottom:0!important}
}
/* Phone card polish: Good beside Total; the lots panel is the bottom half of its product card (no indent) */
@media(max-width:700px){
#a-box td[data-label="Pcs/Su"]{order:7}
#a-box td[data-label="Cover Days"]{order:8}
#a-box td[data-label="Good"]{order:9}
#a-box td[data-label="Total"]{order:10}
#a-box td[data-label="Damage"]{order:11}
#a-box td:first-child{order:-1}
.t tbody tr.qrow.open{margin-bottom:0;border-bottom:0;border-radius:12px 12px 0 0;padding-bottom:6px}
.t tbody tr.sub.lots{margin:0 0 8px;padding:2px 12px 8px;border-radius:0 0 12px 12px;border-top:1px dashed var(--line);background:var(--card)!important}
.lotl{gap:2px 10px;padding:8px 0}
.lotl .lq{margin-left:0;flex-basis:100%}
}
@media(max-width:700px){
#a-box td[data-label="Type"],#a-box td[data-label="Pcs/Su"],#a-box td[data-label="Good"],#a-box td[data-label="Damage"]{grid-column:1}
#a-box td[data-label="UOM"],#a-box td[data-label="Cover Days"],#a-box td[data-label="Total"]{grid-column:2}
}
/* Phone: no Excel export (user request); desktop keeps its Excel button */
@media(max-width:700px){.tabs .xl,.tabs .xl-m2{display:none!important}}
/* Phone card: Good | Total | Damage on ONE line (6-col grid: pairs span 3, the three numbers span 2) */
@media(max-width:700px){
.t tbody tr.qrow{grid-template-columns:repeat(6,minmax(0,1fr))}
#a-box td[data-label]{grid-column:span 3}
#a-box td[data-label="Good"],#a-box td[data-label="Total"],#a-box td[data-label="Damage"]{grid-column:span 2}
#a-box td:first-child{grid-column:1/-1}
}
/* Phone: Good | Total | Damage always on one line (explicit columns, so an empty Cover Days cannot push Total down) */
@media(max-width:700px){
#a-box td[data-label="Good"]{grid-column:1/span 2}
#a-box td[data-label="Total"]{grid-column:3/span 2}
#a-box td[data-label="Damage"]{grid-column:5/span 2}
/* Product Grade card: donut left, list right, tighter spacing */
.grade{flex-direction:row!important;gap:12px;padding:0 14px 12px;align-items:center}
.donut{width:108px;height:108px}
.donut>div{width:76px;height:76px}
.donut>div>div>div:first-child{font-size:17px!important}
.donut .code{font-size:9px;line-height:1.15}
.g-list{flex:1;min-width:0}
.g-row{padding:2px 0;gap:8px;font-size:12px}
.g-sep{margin:3px 0}
}
/* Lot rows inside the expanded product card: header line + Good | Damage | Total (with UOM), flush left */
.t tbody tr.sub.lots td{padding:0!important}
.lotl{display:block;padding:8px 0}
.lotl .lh{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center}
.lq3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:5px}
.lq3 i{display:block;font:700 9.5px var(--f-ui);font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.lq3 small{font-size:10px;color:var(--mute);font-weight:600}
/* Company filter uses the same colours as the Company chips in the table (VCAN gold, Moola purple) */
#a-co button[data-v="VCAN"]{color:#8c6418}
#a-co button[data-v="Moola"]{color:#8a55d0}
#a-co button[data-v="VCAN"].on{background:rgba(201,151,51,.18);color:#8c6418;box-shadow:none}
#a-co button[data-v="Moola"].on{background:rgba(155,109,214,.16);color:#8a55d0;box-shadow:none}
/* Phone: Total value bold; the expanded lots section has its own (slightly darker) tint */
@media(max-width:700px){
#a-box td[data-label="Total"],#a-box td[data-label="Total"] *{font-weight:700}
.t tbody tr.sub.lots{background:var(--soft)!important;border-top:1px dashed var(--line)}
.t tbody tr.qrow.open{background:var(--card)!important}
}
/* Phone: an opened shipment / brand / supplier card and its sub-lines form ONE card (no indent, tinted lower part) */
@media(max-width:700px){
.t tbody tr.prow.open,.t tbody tr.brow.open,.t tbody tr.srow.open{margin-bottom:0;border-bottom:0;border-radius:12px 12px 0 0;padding-bottom:6px;background:var(--card)!important}
.t tbody tr.sub:not(.lots){margin:0;padding:8px 12px;border-radius:0;border:1px solid var(--line);border-top:1px dashed var(--line);border-bottom:0;background:var(--soft)!important}
.t tbody tr.sub:not(.lots):has(+ tr:not(.sub)),.t tbody tr.sub:not(.lots):last-child{border-radius:0 0 12px 12px;border-bottom:1px solid var(--line);margin-bottom:8px}
}
/* Phone: sub-line cells are flush left (the desktop 42px indent on tr.sub td:first-child must not apply) */
@media(max-width:700px){.t tbody tr.sub td,.t tbody tr.sub td:first-child{padding:0!important}}
/* Aging tables (desktop): Brand = logo only (name on hover); Batch/Lot cut with … (full value on hover) so Product Name gets the space; Code on one line; Type breaks only between words; laptop widths keep Exp/Days/Remaining/UOM un-clipped, >=1600px gives Name more */
@media(min-width:701px){#a-box .bc{display:none}#a-box .bcw{display:inline-flex;align-items:center}}
#a-box .t td.bl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#a-box .t td.code{font-size:11px}#a-box[data-tab=lots] td:nth-child(4){white-space:nowrap}#a-box[data-tab=lots] td:nth-child(6){overflow-wrap:normal;word-break:normal}
@media(min-width:701px){#a-box[data-tab=lots] th:nth-child(1){width:2.3%}#a-box[data-tab=lots] th:nth-child(2){width:5.6%}#a-box[data-tab=lots] th:nth-child(3){width:4.2%}#a-box[data-tab=lots] th:nth-child(4){width:10.4%}#a-box[data-tab=lots] th:nth-child(5){width:15.0%}#a-box[data-tab=lots] th:nth-child(6){width:6%}#a-box[data-tab=lots] th:nth-child(7){width:6.5%}#a-box[data-tab=lots] th:nth-child(8){width:8%}#a-box[data-tab=lots] th:nth-child(9){width:6.5%}#a-box[data-tab=lots] th:nth-child(10){width:6.2%}#a-box[data-tab=lots] th:nth-child(11){width:4.5%}#a-box[data-tab=lots] th:nth-child(12){width:4.8%}#a-box[data-tab=lots] th:nth-child(13){width:3.9%}#a-box[data-tab=lots] th:nth-child(14){width:3.9%}#a-box[data-tab=lots] th:nth-child(15){width:4.9%}#a-box[data-tab=lots] th:nth-child(16){width:7.3%}#a-box[data-tab=qty] th:nth-child(2){width:5.6%}#a-box[data-tab=qty] th:nth-child(3){width:4.5%}#a-box[data-tab=qty] th:nth-child(5){width:33.9%}}
@media(min-width:1600px){#a-box[data-tab=lots] th:nth-child(1){width:2.3%}#a-box[data-tab=lots] th:nth-child(2){width:5.6%}#a-box[data-tab=lots] th:nth-child(3){width:4.2%}#a-box[data-tab=lots] th:nth-child(4){width:10.4%}#a-box[data-tab=lots] th:nth-child(5){width:18.8%}#a-box[data-tab=lots] th:nth-child(6){width:6%}#a-box[data-tab=lots] th:nth-child(7){width:6.5%}#a-box[data-tab=lots] th:nth-child(8){width:6.8%}#a-box[data-tab=lots] th:nth-child(9){width:5.3%}#a-box[data-tab=lots] th:nth-child(10){width:5%}#a-box[data-tab=lots] th:nth-child(11){width:4.5%}#a-box[data-tab=lots] th:nth-child(12){width:4.6%}#a-box[data-tab=lots] th:nth-child(13){width:3.9%}#a-box[data-tab=lots] th:nth-child(14){width:3.9%}#a-box[data-tab=lots] th:nth-child(15){width:4.9%}#a-box[data-tab=lots] th:nth-child(16){width:7.3%}}
/* narrower desktops: smaller header text and no sort arrow on unsorted columns, so headers are not cut */
@media(min-width:701px) and (max-width:1500px){#a-box .t thead th{font-size:9px;letter-spacing:0;padding-left:4px;padding-right:4px}#a-box .t th:not(.sorted) .si{display:none}}
/* Aging tables (desktop): FIXED px widths for every small column, Product Name = all the remaining width (laptop set, then a roomier set >=1600px) */
@media(min-width:701px){#a-box[data-tab=lots] th:nth-child(1){width:24px}#a-box[data-tab=lots] th:nth-child(2){width:50px}#a-box[data-tab=lots] th:nth-child(3){width:40px}#a-box[data-tab=lots] th:nth-child(4){width:92px}#a-box[data-tab=lots] th:nth-child(5){width:auto}#a-box[data-tab=lots] th:nth-child(6){width:50px}#a-box[data-tab=lots] th:nth-child(7){width:62px}#a-box[data-tab=lots] th:nth-child(8){width:72px}#a-box[data-tab=lots] th:nth-child(9){width:56px}#a-box[data-tab=lots] th:nth-child(10){width:54px}#a-box[data-tab=lots] th:nth-child(11){width:40px}#a-box[data-tab=lots] th:nth-child(12){width:44px}#a-box[data-tab=lots] th:nth-child(13){width:42px}#a-box[data-tab=lots] th:nth-child(14){width:42px}#a-box[data-tab=lots] th:nth-child(15){width:48px}#a-box[data-tab=lots] th:nth-child(16){width:74px}#a-box[data-tab=qty] th:nth-child(1){width:26px}#a-box[data-tab=qty] th:nth-child(2){width:52px}#a-box[data-tab=qty] th:nth-child(3){width:40px}#a-box[data-tab=qty] th:nth-child(4){width:108px}#a-box[data-tab=qty] th:nth-child(5){width:auto}#a-box[data-tab=qty] th:nth-child(6){width:76px}#a-box[data-tab=qty] th:nth-child(7){width:46px}#a-box[data-tab=qty] th:nth-child(8){width:50px}#a-box[data-tab=qty] th:nth-child(9){width:52px}#a-box[data-tab=qty] th:nth-child(10){width:52px}#a-box[data-tab=qty] th:nth-child(11){width:84px}#a-box[data-tab=qty] th:nth-child(12){width:70px}}
@media(min-width:1600px){#a-box[data-tab=lots] th:nth-child(1){width:28px}#a-box[data-tab=lots] th:nth-child(2){width:60px}#a-box[data-tab=lots] th:nth-child(3){width:44px}#a-box[data-tab=lots] th:nth-child(4){width:100px}#a-box[data-tab=lots] th:nth-child(5){width:auto}#a-box[data-tab=lots] th:nth-child(6){width:70px}#a-box[data-tab=lots] th:nth-child(7){width:96px}#a-box[data-tab=lots] th:nth-child(8){width:82px}#a-box[data-tab=lots] th:nth-child(9){width:64px}#a-box[data-tab=lots] th:nth-child(10){width:62px}#a-box[data-tab=lots] th:nth-child(11){width:46px}#a-box[data-tab=lots] th:nth-child(12){width:50px}#a-box[data-tab=lots] th:nth-child(13){width:50px}#a-box[data-tab=lots] th:nth-child(14){width:50px}#a-box[data-tab=lots] th:nth-child(15){width:56px}#a-box[data-tab=lots] th:nth-child(16){width:86px}#a-box[data-tab=qty] th:nth-child(1){width:30px}#a-box[data-tab=qty] th:nth-child(2){width:60px}#a-box[data-tab=qty] th:nth-child(3){width:44px}#a-box[data-tab=qty] th:nth-child(4){width:120px}#a-box[data-tab=qty] th:nth-child(5){width:auto}#a-box[data-tab=qty] th:nth-child(6){width:90px}#a-box[data-tab=qty] th:nth-child(7){width:52px}#a-box[data-tab=qty] th:nth-child(8){width:56px}#a-box[data-tab=qty] th:nth-child(9){width:60px}#a-box[data-tab=qty] th:nth-child(10){width:60px}#a-box[data-tab=qty] th:nth-child(11){width:96px}#a-box[data-tab=qty] th:nth-child(12){width:80px}}
/* wide screens: a little more room for the narrow columns so their headers are not cut */
@media(min-width:1600px){#a-box[data-tab=lots] th:nth-child(2){width:72px}#a-box[data-tab=lots] th:nth-child(3){width:52px}#a-box[data-tab=lots] th:nth-child(10){width:74px}#a-box[data-tab=lots] th:nth-child(11){width:56px}#a-box[data-tab=lots] th:nth-child(13){width:58px}#a-box[data-tab=lots] th:nth-child(14){width:56px}#a-box[data-tab=lots] th:nth-child(15){width:64px}#a-box[data-tab=qty] th:nth-child(2){width:72px}#a-box[data-tab=qty] th:nth-child(3){width:52px}#a-box[data-tab=qty] th:nth-child(8){width:64px}#a-box[data-tab=qty] th:nth-child(10){width:68px}}
@media(min-width:1501px) and (max-width:1599px){#a-box .t thead th{font-size:9px;letter-spacing:0;padding-left:4px;padding-right:4px}#a-box .t th:not(.sorted) .si{display:none}}
@media(min-width:1600px){#a-box[data-tab=lots] th:nth-child(3){width:62px}#a-box[data-tab=lots] th:nth-child(11){width:66px}#a-box[data-tab=qty] th:nth-child(3){width:62px}}
/* laptop widths (701-1599px): enough pixels for Code / Type / Exp. Date / Days / Remaining % (no clipping at 1354px) */
@media(min-width:701px) and (max-width:1599px){#a-box[data-tab=lots] th:nth-child(4){width:106px}#a-box[data-tab=lots] th:nth-child(6){width:58px}#a-box[data-tab=lots] th:nth-child(8){width:80px}#a-box[data-tab=lots] th:nth-child(9){width:66px}#a-box[data-tab=lots] th:nth-child(10){width:62px}}
/* very wide screens (>=1850px): cap Product Name so it does not leave a huge gap before Type; spare width is shared by the other columns */
@media(min-width:1850px){#a-box[data-tab=lots] th:nth-child(5){width:460px}#a-box[data-tab=qty] th:nth-child(5){width:520px}}
/* wide screens: Type on one line ("Dish Washing", "Adult Diaper"); at >=1850px a tighter Product Name cap so it sits closer to Type */
@media(min-width:1600px){#a-box[data-tab=lots] th:nth-child(6){width:104px}#a-box[data-tab=qty] th:nth-child(6){width:104px}}
@media(min-width:1850px){#a-box[data-tab=lots] th:nth-child(5){width:400px}#a-box[data-tab=qty] th:nth-child(5){width:480px}}
