/* Warehouse / scanning — scoped with .wh- prefixes. Rules: docs/BRAND.md.
   Mode colors: picking (out) = teal, returning (in) = info blue. Tape (--tape) fills the station header. */
.wh-ico { flex-shrink: 0; }
.wh-gap { margin-left: 10px; }
.wh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wh-nowrap { flex-wrap: nowrap; justify-content: flex-end; }
.wh-date { white-space: nowrap; }
.tbl td.r .wh-nowrap { font-family: var(--font-ui); font-size: 14px; }
.wh-recent-side .card-body { max-height: 640px; overflow: auto; }
.wh-right { justify-content: flex-end; }
.wh-prog-cell { display: flex; flex-direction: column; gap: 4px; min-width: 140px; margin-top: 4px; }
.wh-bar.tone-blue > span { background: var(--teal); }
.wh-bar.tone-green > span { background: var(--ok); }
.wh-ok-txt { color: var(--ok); font-weight: 600; }
.wh-warn-txt { color: var(--warn); font-weight: 600; }
.wh-err-txt { color: var(--bad); font-weight: 600; }
.btn .wh-ico { margin-left: -2px; }
.btn.wh-btn-warn { background: var(--warn-wash); border-color: #E3C27E; color: #6B4A0E; }
.btn.wh-btn-warn:hover { border-color: var(--warn); }
.wh-chip { display: inline-block; background: var(--concrete); border-radius: var(--r-ctl); padding: 3px 8px; margin: 4px 4px 0 0; font-size: 13px; }
.wh-card-sub { margin: 2px 0 0; font-size: 13px; }
.wh-queue .card-head { align-items: flex-start; }
.wh-ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wh-ident .tape { min-width: 88px; }
.wh-ident-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wh-ident-name a { color: var(--graphite); }
.wh-overdue { list-style: none; margin: 0 -16px; padding: 0; }
.wh-overdue li { padding: 10px 16px 12px 20px; border-bottom: 1px solid var(--rule-soft); }
.wh-overdue li:last-child { border-bottom: 0; }
.wh-overdue-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wh-overdue-head > a { color: var(--graphite); }
.wh-overdue-items { margin-top: 4px; }
.wh-warn-list { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Scan list */
.wh-scans { list-style: none; margin: 0; padding: 0; }
.wh-scans li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.wh-scans li:last-child { border-bottom: 0; }
.wh-scan-dir { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; border-radius: var(--r-ctl); padding: 4px 8px 4px 6px; min-width: 52px; flex-shrink: 0; }
.wh-scan-out .wh-scan-dir { background: var(--teal-wash); color: var(--teal-dark); }
.wh-scan-in .wh-scan-dir { background: var(--info-wash); color: #22548A; }
.wh-scan-main { flex: 1; min-width: 0; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.wh-scan-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }
.wh-scan-meta .tape { font-size: 12px; }
.wh-undo { flex-shrink: 0; min-height: 40px; }

/* ═══════════ Scan station ═══════════ */
.wh-station { --mode: var(--teal); --mode-wash: var(--teal-wash); --tape: var(--rule); display: flex; flex-direction: column; gap: 12px; }
.wh-station.mode-in { --mode: var(--info); --mode-wash: var(--info-wash); }
/* header filled with the show's tape: the big field techs match against case tape */
.wh-head { position: relative; background: var(--tape); border-radius: 14px; padding: 12px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.wh-station:not(.has-show) .wh-head { background: repeating-linear-gradient(135deg, var(--rule) 0 10px, var(--rule-soft) 10px 20px); }
.wh-head-tape { display: none; }
.wh-top { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.wh-picker { position: relative; flex: 1 1 340px; min-width: 260px; }
.wh-show-btn { width: 100%; height: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 16px; color: var(--graphite);
  background: var(--paper); border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.wh-show-btn:hover { background: #FAFBFC; }
.wh-show-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.wh-show-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wh-show-txt { display: flex; flex-direction: column; min-width: 0; }
.wh-show-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-show-txt small { color: var(--steel); font-size: 13px; }
.wh-caret { color: var(--steel); display: inline-flex; }
.wh-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel);
  box-shadow: var(--float); padding: 10px; }
.wh-pop-q { width: 100%; font-size: 16px; height: 48px; padding: 0 12px; }
.wh-pop-list { max-height: 55vh; overflow: auto; margin-top: 8px; }
.wh-pop-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--graphite); background: none; border: 0;
  border-bottom: 1px solid var(--rule-soft); padding: 10px 10px 10px 16px; cursor: pointer; min-height: 60px; }
.wh-pop-item:hover, .wh-pop-item.current { background: var(--concrete); }
.wh-pop-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wh-pop-main .tape { min-width: 84px; }
.wh-pop-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.wh-mode { display: flex; border-radius: 10px; overflow: hidden; background: var(--paper); padding: 4px; gap: 4px; }
.wh-mode-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 7px; padding: 0 20px; min-height: 56px; cursor: pointer; background: transparent; color: var(--steel); }
.wh-mode-btn small { font-weight: 600; font-size: 14px; opacity: .8; }
.wh-mode-btn:hover { color: var(--graphite); background: var(--concrete); }
.wh-mode-btn.out.active { background: var(--teal); color: #fff; }
.wh-mode-btn.in.active { background: var(--info); color: #fff; }
.wh-top-tools { display: flex; gap: 6px; background: var(--paper); border-radius: 10px; padding: 4px; }
.wh-tool { display: inline-grid; place-items: center; min-width: 56px; min-height: 56px; border: 0; border-radius: 7px; background: transparent; color: var(--steel); cursor: pointer; }
.wh-tool:hover { background: var(--concrete); color: var(--graphite); text-decoration: none; }
.wh-tool.on { color: var(--graphite); background: var(--concrete); }
.wh-tool[hidden] { display: none; }

.wh-scanbar { display: flex; gap: 10px; align-items: stretch; background: var(--mode-wash); border: 3px solid var(--mode); border-radius: 14px; padding: 10px; flex-wrap: wrap; }
.wh-scan-input { flex: 1 1 320px; font-size: 28px; font-family: var(--font-mono); letter-spacing: .02em; font-weight: 600;
  padding: 14px 18px; min-height: 72px; border: 2px solid transparent; border-radius: 10px; background: var(--paper); }
.wh-scan-input:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px var(--gaffer); }
.wh-scan-input::placeholder { color: #9AA3AD; font-weight: 400; font-family: var(--font-ui); font-size: 22px; letter-spacing: 0; }
.wh-qty { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--steel); }
.wh-qty input { width: 96px; font-size: 22px; min-height: 52px; text-align: center; font-family: var(--font-display); }
.wh-go, .wh-cam-btn { min-height: 72px; height: auto; font-size: 17px; font-weight: 700; padding: 0 22px; }
.wh-go { background: var(--mode); border-color: var(--mode); color: #fff; }
.wh-go:hover { filter: brightness(.92); }

.wh-in-opts { display: none; gap: 10px; align-items: center; flex-wrap: wrap; }
.mode-in .wh-in-opts { display: flex; }
.wh-in-label { font-weight: 600; font-size: 14px; color: var(--steel); }
.wh-conds { display: flex; gap: 6px; flex-wrap: wrap; }
.wh-cond { font: inherit; font-weight: 700; font-size: 16px; min-height: 52px; min-width: 110px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--rule); background: var(--paper); color: var(--graphite); cursor: pointer; }
.wh-cond:hover { border-color: var(--steel); }
.wh-cond[data-cond="good"].active { background: var(--ok); border-color: var(--ok); color: #fff; }
.wh-cond[data-cond="fair"].active { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.wh-cond[data-cond="damaged"].active { background: var(--warn); border-color: var(--warn); color: #fff; }
.wh-cond[data-cond="missing"].active { background: var(--bad); border-color: var(--bad); color: #fff; }
.wh-note { flex: 1 1 240px; min-height: 52px; font-size: 16px; }
.wh-station[data-cond="damaged"] .wh-scanbar { border-color: var(--warn); }
.wh-station[data-cond="missing"] .wh-scanbar { border-color: var(--bad); }

.wh-camera { position: relative; background: #111; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wh-camera[hidden] { display: none; }
.wh-video { width: 100%; max-width: 640px; max-height: 46vh; border-radius: 8px; background: #111; object-fit: cover; }
.wh-cam-aim { position: absolute; top: 30%; left: 50%; width: min(60%, 380px); height: 22%; transform: translateX(-50%); border: 3px solid var(--gaffer); border-radius: 10px; pointer-events: none; }
.wh-cam-msg { color: #E8ECF0; font-size: 15px; text-align: center; max-width: 640px; }

/* Result card — gaffer-yellow when ready; one flash per scan (the single motion moment) */
.wh-result { display: flex; gap: 18px; align-items: center; border-radius: 14px; padding: 16px 20px; min-height: 104px; background: var(--paper); border: 3px solid var(--rule); }
.wh-result-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--concrete); color: var(--steel); }
.wh-result-body { flex: 1; min-width: 0; }
.wh-result-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.wh-result-msg { font-size: 17px; margin-top: 4px; }
.wh-result-warn { margin-top: 6px; font-weight: 700; color: #6B4A0E; }
.wh-result-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 16px; flex-wrap: wrap; }
.wh-result-line .progress { flex: 0 0 220px; height: 12px; }
.wh-result.idle { background: var(--gaffer-wash); border-color: var(--gaffer); }
.wh-result.idle .wh-result-icon { background: var(--gaffer); color: var(--graphite); }
.wh-result.ok { background: var(--ok-wash); border-color: var(--ok); }
.wh-result.ok .wh-result-icon { background: var(--ok); color: #fff; }
.wh-result.warn { background: var(--warn-wash); border-color: var(--warn); }
.wh-result.warn .wh-result-icon { background: var(--warn); color: #fff; }
.wh-result.err { background: var(--bad-wash); border-color: var(--bad); }
.wh-result.err .wh-result-icon { background: var(--bad); color: #fff; }
.wh-result.err .wh-result-title { color: #962A23; }
.wh-result.info { background: var(--paper); border-color: var(--graphite); }
.wh-result.info .wh-result-icon { background: var(--graphite); color: #fff; }
.wh-result.flash { animation: wh-flash .6s ease-out; }
.wh-result.flash.ok { --flash: #8FD3A9; } .wh-result.flash.warn { --flash: #F2CE85; } .wh-result.flash.err { --flash: #F0A39C; } .wh-result.flash.info { --flash: var(--gaffer-wash); }
@keyframes wh-flash { from { background: var(--flash); } }

.wh-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.wh-banner[hidden] { display: none; }
.wh-banner.missing { background: var(--paper); border: 2px dashed var(--teal); }
.wh-banner.out_of_date { background: var(--warn-wash); border: 2px dashed var(--warn); }
.wh-banner > span { flex: 1; }
.btn.wh-big { min-height: 52px; font-size: 16px; font-weight: 700; }

.wh-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1200px) { .wh-grid { grid-template-columns: 1fr; } }
.wh-totals { padding: 0 16px 6px; }
.wh-totals .progress { height: 12px; margin: 6px 0 2px; }
.wh-total-line { display: flex; gap: 14px; align-items: baseline; font-size: 16px; flex-wrap: wrap; }
.wh-pct { font-family: var(--font-display); font-size: 22px; }
.wh-open-only { font-size: 14px; padding: 0; min-height: 40px; }
.wh-open-only input { width: 18px; height: 18px; }
.wh-mtable td { font-size: 15px; vertical-align: middle; }
.wh-mtable td.r { font-variant-numeric: tabular-nums; }
.wh-mtable .wh-key { font-size: 20px; font-weight: 700; color: var(--mode); }
.wh-mtable .wh-key.zero { color: #AEB6BF; font-weight: 600; }
.wh-mtable tr.done td { background: #F3FAF6; }
.wh-mtable tr.done td:first-child strong { color: #17673A; }
.wh-mtable tr.extra td { background: var(--warn-wash); }
.wh-mtable tr.last td { background: var(--gaffer-wash); }
.wh-mtable tr.last td:first-child { box-shadow: inset 5px 0 0 var(--gaffer); }
.wh-mtable .section-row td { font-family: var(--font-display); font-size: 15px; }
.wh-assets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wh-assets span { font-size: 11px; background: var(--concrete); border-radius: 4px; padding: 1px 5px; color: var(--graphite); }
.wh-recent { max-height: 70vh; overflow: auto; }
.wh-station kbd { background: var(--paper); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 13px; font-family: var(--font-mono); }
@media (pointer: coarse) { .wh-undo { min-height: 44px; min-width: 80px; } .wh-mtable td { padding-top: 12px; padding-bottom: 12px; } }
.wh-qty-facts { display: flex; gap: 20px; margin: 0 0 12px; }
.wh-qty-facts div { display: flex; flex-direction: column; }
.wh-qty-facts dt { font-size: 12px; color: var(--steel); font-weight: 600; } .wh-qty-facts dd { margin: 0; font-family: var(--font-display); font-size: 22px; }
.wh-qty-prompt { font-size: 28px; width: 160px; height: 56px; text-align: center; font-family: var(--font-display); }

/* tablet: 1024px and 768px */
@media (max-width: 1100px) {
  .wh-picker { flex-basis: 100%; }
  .wh-mode { flex: 1 1 auto; }
  .wh-mode-btn { flex: 1; justify-content: center; }
}
@media (max-width: 820px) {
  .wh-top { gap: 8px; }
  .wh-mode { flex: 1 1 280px; }
  .wh-mode-btn { font-size: 15px; padding: 0 8px; gap: 6px; min-height: 52px; }
  .wh-mode-btn .wh-ico { display: none; }
  .wh-top-tools { flex: 0 0 auto; }
  .wh-tool { min-width: 48px; min-height: 52px; }
  .wh-scan-input { flex-basis: 100%; font-size: 24px; }
  .wh-scanbar .wh-qty { flex-direction: row; align-items: center; gap: 8px; }
  .wh-go, .wh-cam-btn { flex: 1; min-height: 60px; justify-content: center; }
  .wh-result-title { font-size: 22px; }
  .wh-show-num { font-size: 24px; }
  .wh-conds { flex: 1 1 100%; }
  .wh-cond { flex: 1; min-width: 0; padding: 0 6px; font-size: 15px; }
  .wh-mtable th:last-child, .wh-mtable td:last-child:not([colspan]) { display: none; }
}

/* Show tab (Prep) */
.wh-tab-actions { margin-bottom: 14px; }
.wh-tab-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 14px; }

/* ═══════════ Printable pick list ═══════════ */
.wh-pull { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 0 32px 28px; max-width: 1000px; color: var(--graphite); overflow: hidden; }
.wh-pull-band { margin: 0 -32px 20px; height: 28px; background: var(--tape); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wh-pull .sfdoc-title { letter-spacing: 0; color: var(--graphite); font-family: var(--font-display); }
.wh-pull .sfdoc-head { border-bottom-color: var(--graphite); }
.wh-pull-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--graphite); padding-bottom: 14px; }
.wh-pull-coname { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.wh-pull-title { text-align: right; }
.wh-pull-kind { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.wh-pull-bc svg { max-width: 320px; height: auto; }
.wh-pull-ident { display: flex; align-items: center; gap: 20px; margin: 18px 0 6px; }
.wh-pull-num { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; padding-left: 14px; border-left: 10px solid var(--tape);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; white-space: nowrap; }
.wh-pull-ident > div:nth-child(2) { flex: 1; min-width: 0; }
.wh-pull-show { font-size: 22px; margin: 0; }
.wh-pull-src { font-size: 13px; color: var(--steel); margin-top: 4px; }
.wh-pull-info { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 12px 0 8px; }
.wh-pull-kpis { display: flex; gap: 18px; }
.wh-pull-kpis div { display: flex; flex-direction: column; }
.wh-pull-kpis b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wh-pull-kpis span { font-size: 12px; color: var(--steel); }
.wh-pull-note { margin-top: 8px; font-size: 13px; }
.wh-pull-notes { background: var(--concrete); border-left: 4px solid var(--graphite); padding: 8px 12px; margin: 10px 0; font-size: 13px; }
.wh-pull-sec { margin-top: 18px; break-inside: auto; }
.wh-pull-sec h3 { display: flex; align-items: baseline; gap: 10px; font-size: 16px; border-bottom: 2px solid var(--graphite); padding-bottom: 4px; margin-bottom: 0; }
.wh-pull-sec h3 small { font-family: var(--font-ui); font-weight: 400; font-size: 12px; color: var(--steel); }
.wh-pull-tbl td { vertical-align: top; }
.wh-pull-tbl tr { break-inside: avoid; }
.wh-pull-qty { font-family: var(--font-display); font-size: 20px; }
.wh-ck { width: 40px; text-align: center; }
.wh-box { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--graphite); border-radius: 3px; position: relative; }
.wh-box.checked { background: var(--graphite); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wh-box.checked::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wh-pull-linenote { font-size: 12px; font-style: italic; margin-top: 2px; }
.wh-small { font-size: 12px; margin-top: 2px; }
.wh-pull-bcs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; }
.wh-pull-asset svg, .wh-pull-bcs > svg { height: 40px; width: auto; }
.wh-bc-text { font-size: 12px; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; }
.wh-blank-line { display: inline-block; width: 100%; border-bottom: 1px solid #9AA3AD; height: 20px; }
.wh-pull-foot { display: flex; gap: 30px; margin-top: 32px; font-size: 14px; }
.wh-pull-foot > div { flex: 1; display: flex; gap: 8px; align-items: flex-end; }
.wh-sign { flex: 1; border-bottom: 1px solid var(--graphite); height: 22px; }
.wh-sign.short { max-width: 140px; }
.wh-pull-printed { font-size: 11px; margin-top: 14px; }
@media print {
  .wh-pull { border: 0; border-radius: 0; padding: 0; max-width: none; }
  .wh-pull-band { margin: 0 0 16px; padding: 0 12px; }
  .wh-pull .badge { border: 1px solid #999; }
  .wh-pull-tbl th, .wh-pull-tbl td { padding: 5px 6px; height: auto; }
  @page { margin: 12mm; }
}
@media (max-width: 800px) { .wh-pull-info { grid-template-columns: 1fr; } .wh-pull { padding: 0 16px 16px; } .wh-pull-band { margin: 0 -16px 16px; padding: 0 16px; } .wh-pull-num { font-size: 36px; } }

/* ───── v0.5 cases, packing, nested pick list ───── */
.wh-packing { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: 0 0 12px;
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--gaffer); border-radius: var(--r-panel); font-size: 15px; }
.wh-packing .btn { min-height: 40px; }
.wh-miss { color: #87590F; font-size: 12px; }
.wh-result-sub { font-size: 13px; margin-top: 4px; }
.wh-unit-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; }
.wh-unit-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); cursor: pointer; text-align: left; }
.wh-unit-btn:hover, .wh-unit-btn:focus { border-color: var(--teal); }
.wh-unit-btn small { color: var(--steel); font-size: 11px; }
.wh-flag-tbl select { min-height: 40px; }
.wh-pull-bundle td { background: var(--concrete); }
.wh-pull-child td { font-size: 13px; }
.wh-pull-tick { color: var(--steel); margin-right: 4px; }
.wh-assets small { color: var(--steel); }
@media print { .wh-pull-bundle td { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.wh-packing[hidden] { display: none; }

/* ═══════════ Phones (≤ 640px): scan station, phone pick list, warehouse board (mobile phase 1) ═══════════ */
.wh-scanner-hint { display: flex; gap: 8px; align-items: flex-start; margin: -4px 2px 0; font-size: 13px; color: var(--steel); }
.wh-scanner-hint[hidden] { display: none; }
.wh-scanner-hint .wh-ico { margin-top: 2px; }
/* the checklist (phones only; the table stays on wider screens) */
.wh-check-sec + .wh-check-sec { margin-top: 10px; }
.wh-check-sec h4 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 8px 2px 6px; font-family: var(--font-display); font-size: 16px; border-bottom: 2px solid var(--graphite); }
.wh-check-sec h4 small { font-family: var(--font-ui); font-weight: 400; font-size: 12px; color: var(--steel); }
.wh-check-sec ul { list-style: none; margin: 0; padding: 0; }
.wh-check-line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 4px; text-align: left; font: inherit; color: var(--graphite);
  background: none; border: 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; }
.wh-check-line:active { background: var(--concrete); }
.wh-check-box { flex-shrink: 0; width: 30px; height: 30px; border: 2px solid var(--rule); border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--paper); }
.wh-check-line.part .wh-check-box { border-color: var(--mode, var(--teal)); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 15px var(--mode-wash, var(--teal-wash)); }
.wh-check-line.done .wh-check-box { background: var(--ok); border-color: var(--ok); }
.wh-check-line.done .wh-check-main strong { color: #17673A; }
.wh-check-line.extra { background: var(--warn-wash); }
.wh-check-line.last { background: var(--gaffer-wash); box-shadow: inset 5px 0 0 var(--gaffer); }
.wh-check-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.wh-check-main strong { font-size: 15px; overflow-wrap: anywhere; }
.wh-check-main small { font-size: 13px; color: var(--steel); }
.wh-check-main .wh-assets { margin-top: 2px; }
.wh-check-key { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; min-width: 56px; }
.wh-check-key b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--mode, var(--teal)); font-variant-numeric: tabular-nums; }
.wh-check-key small { font-size: 11px; color: var(--steel); }
.wh-check-key.zero b { color: #AEB6BF; }
.wh-line-facts { flex-wrap: wrap; gap: 12px 20px; }
.wh-line-p { margin: 6px 0; }
.wh-line-h { margin: 12px 0 4px; font-size: 14px; }
.wh-line-units { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
/* phone pick list page */
.wh-mpick { --mode: var(--teal); --mode-wash: var(--teal-wash); }
.wh-mpick.mode-in { --mode: var(--info); --mode-wash: var(--info-wash); }
.wh-mpick .card-head { flex-wrap: wrap; gap: 8px; }
.wh-mpick-mode { flex: 1 1 100%; background: var(--concrete); }
.wh-mpick-mode .wh-mode-btn { flex: 1; justify-content: center; min-height: 44px; font-size: 15px; }
.wh-mpick .wh-totals { padding: 0 16px 8px; }
.wh-mpick-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.wh-mpick-band { height: 14px; border-radius: 7px; background: var(--tape); }
.wh-mpick-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.wh-mpick-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; white-space: nowrap; padding-left: 10px; border-left: 8px solid var(--tape); }
.wh-mpick-id h1 { flex: 1 1 12em; min-width: 0; font-size: 20px; overflow-wrap: anywhere; } /* a long show name wraps under the number, not into a narrow column */
.wh-mpick-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wh-mpick-acts .btn { min-width: 0; min-height: 48px; justify-content: center; font-size: 15px; white-space: normal; text-align: center; }
.wh-mpick-acts .btn.primary { grid-column: 1 / -1; min-height: 56px; font-size: 17px; font-weight: 700; }
.wh-mpick-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--steel); }
.wh-mpick .wh-pull-notes { margin: 8px 0; }
/* board cards on phones */
.wh-mcards { list-style: none; margin: 0 -16px; padding: 0; }
.wh-mcard { padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 6px; }
.wh-mcard:last-child { border-bottom: 0; }
.wh-mcard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wh-mcard-top a { color: var(--graphite); font-weight: 600; overflow-wrap: anywhere; }
.wh-mcard-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--steel); }
.wh-mcard-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-mcard-acts .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
.wh-only-phone { display: none; }

@media screen and (max-width: 640px) {
  .wh-only-phone { display: block; }
  .wh-only-wide { display: none; }
  .wh-station { gap: 10px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wh-head { padding: 8px; border-radius: 12px; }
  .wh-top { gap: 6px; }
  .wh-picker { flex: 1 1 100%; min-width: 0; }
  .wh-show-btn { min-height: 56px; padding: 6px 10px; gap: 8px; }
  .wh-show-label { gap: 10px; }
  .wh-show-num { font-size: 22px; }
  .wh-show-txt strong { font-size: 15px; }
  .wh-show-txt small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wh-pop { position: fixed; left: 8px; right: 8px; top: 8px; min-width: 0; max-height: calc(100vh - 16px); z-index: 60; display: flex; flex-direction: column; }
  .wh-pop[hidden] { display: none; }
  .wh-pop-list { max-height: none; flex: 1; }
  .wh-top-tools { flex: 1 1 100%; padding: 2px; gap: 2px; }
  .wh-tool { flex: 1; min-width: 44px; min-height: 44px; }
  /* one-handed out / in switch: pinned at the bottom, in thumb reach (above the shell's tab bar when there is one) */
  .wh-station .wh-mode { position: fixed; z-index: 40; left: 0; right: 0; bottom: var(--m-tabbar-h, 0px); border-radius: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -4px 14px rgba(38, 48, 58, .08); }
  .wh-station .wh-mode-btn { flex: 1; justify-content: center; min-height: 56px; font-size: 17px; padding: 0 6px; }
  .wh-station .wh-mode-btn .wh-ico { display: inline; }
  .wh-scanbar { padding: 8px; gap: 8px; border-radius: 12px; }
  .wh-scan-input { flex-basis: 100%; font-size: 24px; min-height: 64px; padding: 10px 14px; }
  .wh-scan-input::placeholder { font-size: 17px; }
  .wh-scanbar .wh-qty { flex: 0 0 auto; }
  .wh-qty input { width: 76px; min-height: 52px; }
  .wh-scanbar .wh-qty > span { font-size: 12px; }
  .wh-go, .wh-cam-btn { flex: 1 1 0; min-height: 56px; padding: 0 10px; min-width: 0; }
  .wh-cam-btn { flex: 0 0 64px; }
  .wh-cam-btn .wh-cam-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wh-in-opts { gap: 8px; }
  .wh-conds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1 1 100%; }
  .wh-cond { min-height: 52px; }
  .wh-note { flex-basis: 100%; }
  .wh-result { gap: 12px; padding: 12px; min-height: 84px; border-radius: 12px; }
  .wh-result-icon { width: 48px; height: 48px; }
  .wh-result-icon svg { width: 26px; height: 26px; }
  .wh-result-title { font-size: 21px; }
  .wh-result-msg { font-size: 15px; overflow-wrap: anywhere; }
  .wh-result-line .progress { flex-basis: 100%; }
  .wh-banner { padding: 10px 12px; font-size: 15px; }
  .wh-banner .btn { width: 100%; justify-content: center; }
  .wh-packing { flex-wrap: wrap; }
  .wh-manifest-card .card-head { flex-wrap: wrap; gap: 4px; }
  .wh-open-only { min-height: 44px; }
  .wh-camera { padding: 8px; }
  .wh-camera .btn { min-height: 48px; }
  .wh-scans li { flex-wrap: wrap; }
  .wh-undo { min-height: 44px; }
  .wh-unit-pick { grid-template-columns: 1fr 1fr; }
  .wh-unit-btn { min-height: 52px; }
  .wh-qty-prompt { width: 100%; }
  /* board */
  .wh-overdue-head .btn { min-height: 44px; }
  .wh-overdue-head > .spacer { display: none; }
  .wh-recent-side .card-body { max-height: none; }
  /* phone pick list page keeps the printout one tap away; the printout itself stays printable */
  .wh-pull-tbl { min-width: 0; }
  .wh-pull .sfdoc-head { flex-direction: column; gap: 12px; }
}
