/* ══ Inventory / Packout module — self-contained styles ══════════════════════ */

/* ── Job list ── */
.inv-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.inv-job-card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius, 10px);
  padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .05s;
}
.inv-job-card:hover { border-color: var(--blue); }
.inv-job-card:active { transform: scale(.995); }
.inv-job-top { display: flex; align-items: center; gap: 8px; }
.inv-del-btn { background: none; border: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 6px; opacity: .55; }
.inv-del-btn:hover { opacity: 1; background: rgba(220, 38, 38, .14); }
.inv-progress { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--bg-3); }
.inv-progress > div { height: 100%; }
.inv-job-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-2); }

/* ── Job detail header + stat bar ── */
.inv-job-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-job-title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.inv-job-actions { margin-left: auto; display: flex; gap: 6px; }
.inv-statbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-stat { flex: 1 1 90px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.inv-stat-n { font-size: 22px; font-weight: 800; }
.inv-stat-l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }

/* ── Sub-tabs ── */
.inv-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.inv-subtab {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-2);
  padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 44px;
}
.inv-subtab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Shared field ── */
.inv-field {
  width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-0);
}
.inv-field:focus { outline: none; border-color: var(--blue); }
.inv-lbl { display: block; font-size: 12px; color: var(--text-3); margin: 10px 0 4px; }

/* ══ Scan view (mobile-critical) ══════════════════════════════════════════════ */
.inv-scan { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.inv-scan-top { display: flex; flex-direction: column; gap: 8px; }
.inv-conn { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.inv-conn .conn-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }
.inv-mode-banner {
  color: #fff; font-weight: 800; letter-spacing: .06em; text-align: center;
  padding: 12px; border-radius: 10px; font-size: 18px;
}
.inv-mode-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.inv-mode-btn {
  min-height: 48px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-1);
  border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.inv-store-fields { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 6px; }

/* Middle — the input the crew hammers on */
.inv-scan-mid {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--bg-1); transition: background .15s, border-color .15s;
}
.inv-scan-input {
  width: 100%; box-sizing: border-box; font-size: 22px; font-weight: 700; text-align: center;
  padding: 16px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text-0);
  letter-spacing: .04em;
}
.inv-scan-input:focus { outline: none; border-color: var(--mode, var(--blue)); }
.inv-scan-btn {
  min-height: 56px; border: none; border-radius: 10px; color: #fff; font-size: 20px; font-weight: 800;
  cursor: pointer; letter-spacing: .04em;
}
.inv-scan-result { text-align: center; font-size: 15px; font-weight: 700; min-height: 22px; }
.inv-scan-result.ok  { color: var(--green); }
.inv-scan-result.err { color: var(--red); }

/* Auto-increment toggle */
.inv-autoinc { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); align-self: flex-start; cursor: pointer; }
.inv-switch { position: relative; display: inline-flex; }
.inv-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.inv-switch-track { position: relative; width: 38px; height: 22px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border); transition: background .15s, border-color .15s; }
.inv-switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.inv-switch input:checked + .inv-switch-track { background: #16a34a; border-color: #16a34a; }
.inv-switch input:checked + .inv-switch-track .inv-switch-thumb { transform: translateX(16px); }

/* Hint + bulk "All Remaining" button */
.inv-hint { font-size: 12px; color: var(--text-3); text-align: center; }
.inv-all-btn { min-height: 48px; border: 1.5px dashed #d97706; background: transparent; color: #d97706; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.inv-all-btn:hover { background: rgba(217,119,6,.08); }
.inv-all-btn:disabled { opacity: .5; cursor: default; }

/* Flash feedback */
.flash-ok     { animation: invFlashOk .4s ease; }
.flash-err    { animation: invFlashErr .45s ease; }
.flash-queued { animation: invFlashQ .4s ease; }
@keyframes invFlashOk  { 0% { background: rgba(22,163,74,.35); border-color: #16a34a; } 100% { background: var(--bg-1); } }
@keyframes invFlashErr { 0%,50% { background: rgba(220,38,38,.35); border-color: #dc2626; } 100% { background: var(--bg-1); } }
@keyframes invFlashQ   { 0% { background: rgba(217,119,6,.35); border-color: #d97706; } 100% { background: var(--bg-1); } }

/* Bottom — tally + recent */
.inv-tally { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 0 2px; }
.inv-tally strong { font-size: 20px; }
.inv-recent { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.inv-recent-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.inv-recent-row:last-child { border-bottom: none; }
.inv-recent-row.err { background: rgba(220,38,38,.08); }
.inv-recent-num { font-weight: 800; font-size: 15px; min-width: 54px; }

/* ── All boxes ── */
.inv-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.inv-toolbar .inv-field { max-width: 260px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-table th, .inv-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.inv-table th { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.inv-pager { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }

/* ── Warehouse accordion ── */
.inv-accordion { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.inv-acc-head { background: var(--bg-2); padding: 10px 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.inv-acc-vault { padding: 8px 14px; border-top: 1px solid var(--border); }
.inv-acc-vhead { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.inv-acc-level { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.inv-chip { display: inline-block; background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; }

/* ── Activity ── */
.inv-activity { display: flex; flex-direction: column; }
.inv-act-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.inv-act-ico { font-size: 18px; width: 24px; text-align: center; }

/* ── Stats ── */
.inv-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.inv-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.inv-card h3 { margin: 0 0 10px; font-size: 14px; }
.inv-sbar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; }
.inv-sbar-lbl { width: 80px; color: var(--text-2); }
.inv-sbar { flex: 1; height: 10px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.inv-sbar > div { height: 100%; }
.inv-sbar-n { width: 44px; text-align: right; font-weight: 700; }
.inv-timechart { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin: 6px 0; }
.inv-tc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.inv-tc-bar { width: 70%; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; }
.inv-tc-lbl { font-size: 9px; color: var(--text-3); margin-top: 3px; }

/* ── Modal ── */
.inv-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 3000; padding: 16px; }
.inv-modal { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 20px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }
.inv-modal h3 { margin: 0 0 10px; }
.inv-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.inv-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 12px; cursor: pointer; }
.inv-check input { width: 18px; height: 18px; }

/* Custom item-type picker (native <option> can't render the rug SVG) */
.inv-type-picker { position: relative; }
.inv-type-field { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; font-size: 16px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-0); cursor: pointer; }
.inv-type-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; max-height: 260px; overflow-y: auto; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.inv-type-opt { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: none; border: none; color: var(--text-1); font-size: 14px; cursor: pointer; text-align: left; }
.inv-type-opt:hover { background: var(--bg-2); }

/* Small / Medium / Large size selector */
.inv-size-btns { display: flex; gap: 8px; }
.inv-size-btn { flex: 1; min-height: 46px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-1); border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; }
.inv-size-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══ Warehouse vault management ══════════════════════════════════════════════ */

.inv-root-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.inv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Store-mode sticky vault selector */
.inv-store-vault { display: flex; flex-direction: column; gap: 6px; }
.inv-store-loc { font-size: 14px; padding: 6px 2px; }

/* Key/value blocks (vault details) */
.inv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 6px; }
.inv-kv-row { display: flex; flex-direction: column; padding: 4px 0; border-bottom: 1px solid var(--border); }
.inv-kv-k { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.inv-kv-v { font-size: 14px; color: var(--text-1); }

/* Cascading location picker */
.inv-locpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inv-loc-preview { margin-top: 8px; font-size: 13px; color: var(--text-2); }

/* ── Vault map ── */
.inv-vm-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.inv-vm-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.inv-vaultmap { display: flex; flex-direction: column; gap: 18px; }
.inv-vm-aisle { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg-1); }
.inv-vm-aisle h3 { margin: 0 0 10px; font-size: 15px; }
.inv-vm-meta { font-weight: 400; font-size: 12px; color: var(--text-3); }
.inv-vm-row { margin-bottom: 12px; }
.inv-vm-rowlbl { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.inv-vm-grid { overflow-x: auto; padding-bottom: 4px; }
.inv-vm-lvlrow { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.inv-vm-lvl { font-size: 10px; color: var(--text-3); width: 22px; flex-shrink: 0; }
.inv-vm-cells { display: flex; gap: 3px; }
.inv-vm-cell {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 4px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid transparent;
}
.inv-vm-cell.empty    { background: var(--bg-3); border-color: var(--border); color: var(--text-3); }
.inv-vm-cell.open     { background: #16a34a; cursor: pointer; }
.inv-vm-cell.occupied { background: #d97706; cursor: pointer; }
.inv-vm-cell.open:hover, .inv-vm-cell.occupied:hover { outline: 2px solid var(--text-0); }

/* ── Scan / Link ── */
.inv-vscan { margin-bottom: 10px; }
.inv-vscan-input { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-vscan-input .inv-field { flex: 1; min-width: 200px; }
.inv-vscan-h { margin: 18px 0 8px; font-size: 15px; }
.inv-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 10px; }
.inv-vcard-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inv-vcard-num { font-size: 22px; font-weight: 800; }
.inv-vcard-others { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.inv-vcard-actions { margin-top: 12px; }
.inv-confirm { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--red); border-radius: 8px; background: rgba(220, 38, 38, .08); }
.inv-confirm-txt { font-size: 13px; font-weight: 700; color: var(--red); }
.inv-confirm-btns { display: flex; gap: 8px; }
.inv-row-click { cursor: pointer; }
.inv-row-click:hover td { background: var(--bg-2); }

/* ── QR codes ── */
.inv-qr-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-qr-filters { display: flex; gap: 6px; }
.inv-filter-btn { min-height: 36px; padding: 0 14px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-1); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.inv-filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.inv-qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.inv-qr-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; background: #fff; color: #111; }
.inv-qr-img { width: 116px; height: 116px; margin: 0 auto 8px; }
.inv-qr-img img, .inv-qr-img canvas { width: 100% !important; height: 100% !important; }
.inv-qr-num { font-size: 24px; font-weight: 800; }
.inv-qr-loc { font-size: 14px; color: #333; margin-bottom: 6px; }
.inv-qr-job { font-size: 11px; color: #444 !important; margin-top: 4px; }

/* ══ Pack-Out / Pack-Back wizards ════════════════════════════════════════════ */
.inv-wiz { max-width: 640px; margin: 0 auto; }
.inv-wiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inv-wiz-title { font-size: 20px; margin: 0; }
.inv-wiz-stepper { display: flex; align-items: center; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.inv-wiz-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.inv-wiz-dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border);
}
.inv-wiz-step.active .inv-wiz-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.inv-wiz-step.done .inv-wiz-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.inv-wiz-slbl { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.inv-wiz-step.active .inv-wiz-slbl { color: var(--text-0); font-weight: 700; }
.inv-wiz-sep { width: 18px; height: 1px; background: var(--border); flex-shrink: 0; margin: 0 6px; }
.inv-wiz-body { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 18px; min-height: 200px; }
.inv-wiz-lead { font-size: 14px; color: var(--text-1); margin: 0 0 14px; }
.inv-wiz-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.inv-wiz-vault { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--bg-2); }
.inv-wiz-vault-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.inv-sop { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-1); }
.inv-check-list { list-style: none; padding-left: 0; }
.inv-check-list .inv-check { margin-top: 0; }

/* Vault label preview cards (review step) */
.inv-label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.inv-label-card { background: #fff; color: #111; border: 2px solid #111; border-radius: 10px; padding: 14px; }
.inv-label-num { font-size: 30px; font-weight: 900; }
.inv-label-loc { font-size: 18px; margin-bottom: 8px; }
.inv-label-kv { font-size: 13px; margin: 2px 0; }
.inv-label-kv.text-muted { color: #666 !important; }

/* ══ SOP wizard steps — reminders vs required checklists ═════════════════════ */

/* Reminder info card (muted, clearly NOT an action item) */
.inv-reminders { border: 1px solid var(--border); border-left: 3px solid var(--blue); background: var(--bg-2); border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 13px; color: var(--text-2); }
.inv-reminders.warn { border-left-color: #d97706; }
.inv-reminders-h { font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.inv-reminders ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Required checklist — large tap targets (≥44px) */
.inv-checklist { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.inv-chk { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-1); cursor: pointer; font-size: 14px; color: var(--text-1); }
.inv-chk input { width: 24px; height: 24px; min-width: 24px; flex-shrink: 0; cursor: pointer; }
.inv-chk:has(input:checked) { border-color: var(--green); background: rgba(22, 163, 74, .1); }

/* Hard blocker message (cannot proceed) */
.inv-blocker { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--red); border-radius: 8px; background: rgba(220, 38, 38, .1); color: var(--red); font-weight: 600; font-size: 13px; }

/* Step 1 reserve result cards */
.inv-vault-ok { border-color: var(--green) !important; display: flex; align-items: center; gap: 10px; }
.inv-vault-bad { border-color: var(--amber) !important; }

/* Pack-Out step 4 — live loading */
.po-load-count { font-size: 18px; font-weight: 700; margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.po-load-count strong { font-size: 26px; color: var(--blue); }
.po-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.po-add .inv-field { flex: 1; min-width: 140px; }
.po-add #po-item-type { max-width: 180px; flex: 0 0 auto; }
.po-add .inv-size-btns { flex: 0 0 auto; }

/* Pack-Out step 5 — seal head */
.po-seal-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.po-seal-vault { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.po-seal-total { font-size: 15px; font-weight: 700; }

/* Extra vaults (step 2) */
.po-extra { margin-top: 12px; }
.po-extra-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }

/* Vault lines (pack-back locate / release) */
.po-vault-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.po-vault-line { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); font-size: 13px; }

/* Count reference + issue toggle (pack-back) */
.po-count-ref { font-size: 15px; margin: 10px 0; }
.po-count-ref strong { font-size: 22px; color: var(--blue); }
.po-toggle { display: flex; gap: 8px; margin: 8px 0; }
.po-toggle button { min-height: 44px; padding: 0 22px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-1); border-radius: 8px; font-weight: 700; cursor: pointer; }
.po-toggle button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.po-toggle button.active.danger { background: var(--red); border-color: var(--red); }

/* ── Mobile ── */
@media (max-width: 767px) {
  .inv-jobs-grid { grid-template-columns: 1fr; }
  .po-add { flex-direction: column; align-items: stretch; }
  .po-add #po-item-type { max-width: none; }
  .po-add .inv-size-btns { width: 100%; }
  .inv-job-actions { margin-left: 0; width: 100%; }
  .inv-scan-input { font-size: 24px; }              /* ≥18px avoids iOS zoom */
  .inv-mode-btn { min-height: 52px; }
  .inv-scan-btn { min-height: 60px; }
  .inv-toolbar { flex-direction: column; }
  .inv-toolbar .inv-field { max-width: none; }
  .table-wrap { overflow-x: auto; }
  .inv-root-actions { margin-left: 0; width: 100%; }
  .inv-kv { grid-template-columns: 1fr; }
  .inv-locpick { grid-template-columns: repeat(2, 1fr); }
  .inv-wiz-slbl { display: none; }                  /* stepper collapses to dots */
  .inv-wiz-sep { width: 10px; margin: 0 3px; }
}
