/* module: inventory — catalog + list, item detail, unit history, Repairs board, print labels. Tokens only (docs/BRAND.md). */

/* ───── List & detail ───── */
.inv-name { font-weight: 600; }
.inv-sub { font-size: 12px; margin-top: 2px; }
.inv-sec-count { font-weight: 400; margin-left: 6px; }
.inv-tbl td.r { font-variant-numeric: tabular-nums; }
.inv-out { color: var(--graphite); font-weight: 600; }
.inv-maint { color: var(--warn); font-weight: 600; }
.inv-avail { display: inline-block; min-width: 38px; padding: 1px 8px; border-radius: var(--r-ctl); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.inv-avail.inv-ok, .inv-big.inv-ok { color: var(--graphite); }
.inv-avail.inv-low { color: #87590F; background: var(--warn-wash); }
.inv-avail.inv-zero { color: #962A23; background: var(--bad-wash); }
.inv-track { background: var(--concrete); color: var(--graphite); font-weight: 600; }
.inv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; color: var(--steel); margin-bottom: 8px; }
.inv-crumbs a { color: var(--steel); }
.inv-crumbs a:hover { color: var(--teal); }
.inv-crumb-sep { color: #A3ACB6; margin: 0 6px; }
.inv-meta { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.inv-meta:empty { display: none; }
.inv-status { display: inline-flex; align-items: center; gap: 8px; }
.inv-show { color: var(--graphite); }
.inv-show:hover { text-decoration: none; }
.inv-show:hover .tape-name, .inv-show:hover .tape-num { color: var(--teal); }
.inv-show .tape-name { font-weight: 400; }
.inv-tag-id { font-family: var(--font-display); font-variant-numeric: tabular-nums; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 0 8px; margin-right: 4px; }
.page-head .muted .badge { margin-left: 6px; vertical-align: 1px; }
.inv-desc { margin: 0 0 8px; white-space: pre-wrap; line-height: 1.45; }
.inv-plain-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.inv-sm-select { padding: 4px 8px; font-size: 12px; }
.inv-row-actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.inv-proj { font-size: 12px; margin-left: 4px; }
.inv-hint { font-size: 12px; margin: 10px 0 0; }
.inv-h { margin: 18px 0 8px; }
.inv-narrow { max-width: 760px; }
.inv-type { text-transform: capitalize; }
.inv-ticket-desc { max-width: 420px; white-space: pre-wrap; }
.inv-bulk { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.inv-bulk-figs { display: flex; gap: 28px; }
.inv-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-bulk-code svg, .inv-asset-code svg { max-width: 100%; height: auto; }
.inv-asset-code { display: flex; justify-content: center; padding: 8px 0; }
.inv-qty { width: 80px; text-align: right; }
.inv-dirty { margin-top: 10px; font-size: 13px; color: #87590F; background: var(--warn-wash); border-radius: var(--r-ctl); padding: 6px 10px; }
.inv-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 13px; }
.inv-chip input { width: 64px; padding: 2px 6px; }
.inv-chip .icon-btn { font-size: 12px; padding: 2px 6px; }

/* ───── Repairs ───── */
.qa-viewtoggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); padding: 2px; }
.qa-view-btn { border: 0; background: none; font: inherit; font-weight: 600; color: var(--steel); height: 30px; padding: 0 12px; border-radius: 4px; cursor: pointer; }
.qa-view-btn:hover { color: var(--graphite); }
.qa-view-btn.on { background: var(--teal-wash); color: var(--teal-dark); }
.qa-stage { background: var(--concrete); color: var(--graphite); }
.qa-stage-reported { background: var(--bad-wash); color: #962A23; }
.qa-stage-diagnosing, .qa-stage-awaiting_parts { background: var(--warn-wash); color: #87590F; }
.qa-stage-in_repair, .qa-stage-qa_testing, .qa-stage-sent_out { background: var(--info-wash); color: #22548A; }
.qa-stage-passed { background: var(--ok-wash); color: #17673A; }
.qa-stage-retired { background: var(--concrete); color: var(--steel); text-decoration: line-through; }
.qa-prio-urgent { background: var(--bad); color: #fff; }
.qa-prio-high { background: var(--bad-wash); color: #962A23; }
.qa-prio-normal { background: var(--concrete); color: var(--graphite); }
.qa-prio-low { background: var(--paper); color: var(--steel); box-shadow: inset 0 0 0 1px var(--rule); }

.qa-board { display: grid; grid-template-columns: repeat(7, minmax(164px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.qa-col { background: #E3E7EB; border-radius: var(--r-panel); min-height: 160px; display: flex; flex-direction: column; }
.qa-col.drop-over { background: var(--teal-wash); box-shadow: inset 0 0 0 2px var(--teal); }
.qa-col-closed { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.qa-col-head { padding: 10px 12px 6px; font-size: 13px; font-weight: 600; color: var(--graphite); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.qa-col-head .tab-count { background: var(--paper); }
.qa-col-body { padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.qa-col-empty { font-size: 13px; color: var(--steel); text-align: center; padding: 18px 0; }
.qa-card { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; color: var(--graphite); cursor: pointer; text-decoration: none !important; position: relative; }
.qa-card:hover { border-color: var(--steel); }
.qa-card.dragging { opacity: .45; }
.qa-card::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.qa-card-urgent::before { background: var(--bad); }
.qa-card-high::before { background: var(--warn); }
.qa-card-top { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 4px; }
.qa-card-title { font-weight: 600; line-height: 1.3; }
.qa-card-item { font-size: 13px; color: var(--steel); margin-top: 2px; }
.qa-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--steel); margin-top: 6px; }
.qa-card-meta .tape { font-size: 12px; }
.qa-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--rule-soft); }
.qa-card-facts { display: inline-flex; flex-wrap: wrap; gap: 0 8px; }
.qa-col-closed .qa-card { opacity: .8; }

.qa-id { font-weight: 400; font-size: 16px; color: var(--steel); }
.qa-stepper { display: flex; gap: 2px; margin-bottom: 16px; overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 4px; }
.qa-step { flex: 1; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--steel); min-height: 36px; padding: 6px 10px; border-radius: var(--r-ctl); cursor: pointer; white-space: nowrap; }
.qa-step:hover:not(:disabled) { background: var(--concrete); color: var(--graphite); }
.qa-step.done { color: var(--ok); }
.qa-step.done::before { content: '✓ '; }
.qa-step.current { background: var(--graphite); color: #fff; cursor: default; }
.qa-step.current.retired { background: var(--steel); text-align: center; }
.qa-step[data-stage="passed"]:not(.current) { color: var(--ok); }
.qa-hint { background: var(--info-wash); color: #22548A; border-radius: var(--r-ctl); padding: 9px 12px; margin-bottom: 16px; font-size: 13px; }
.qa-composer-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin: -4px 0 12px; }
.qa-composer-foot { flex-direction: row; justify-content: flex-end; }
.qa-side-form { display: grid; gap: 10px; margin-bottom: 12px; }
.qa-side-dl { border-top: 1px solid var(--rule); padding-top: 10px; }
.qa-resolution { width: 100%; }
.qa-scan { width: 100%; font-size: 18px; height: 48px; }
.qa-scan-err { margin-top: 8px; color: var(--bad); font-size: 13px; }

.qa-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.qa-timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.qa-entry { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.qa-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); display: grid; place-items: center; z-index: 1; color: var(--steel); }
.qa-entry-stage .qa-dot { border-color: var(--graphite); color: var(--graphite); }
.qa-entry-qa_test.qa-pass .qa-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.qa-entry-qa_test.qa-fail .qa-dot { border-color: var(--bad); background: var(--bad); color: #fff; }
.qa-entry-body { flex: 1; min-width: 0; padding-top: 2px; }
.qa-entry-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.qa-entry-cost { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.qa-entry-meta { display: inline-flex; gap: 10px; font-size: 12px; }
.qa-entry-text { margin-top: 3px; white-space: pre-wrap; color: var(--graphite); line-height: 1.45; }
.qa-hist { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.qa-hist:last-child { margin-bottom: 0; }
.qa-hist-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-hist-cost { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.qa-hist-from { display: flex; align-items: center; gap: 6px; }
.qa-hist-res { margin-top: 6px; font-size: 13px; background: var(--ok-wash); border-radius: var(--r-ctl); padding: 6px 8px; }
.qa-hist details { margin-top: 6px; }
.qa-hist summary { cursor: pointer; font-size: 13px; margin-bottom: 6px; }

/* ───── Labels ───── */
.inv-label-controls { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.inv-label-controls .field { min-width: 280px; }
.inv-label-groups { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.inv-sheet-wrap { background: #DDE2E7; border-radius: var(--r-panel); padding: 24px; overflow: auto; }
.label-sheet { background: #fff; margin: 0 auto; box-shadow: var(--float); display: grid; align-content: start; }
.label-sheet + .label-sheet { margin-top: 24px; }
.label-sheet.size-thermal + .label-sheet.size-thermal { margin-top: 0.15in; }
.label { overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #000; break-inside: avoid; page-break-inside: avoid; outline: 1px dashed var(--rule); }
.label-co { font-size: 7pt; font-weight: 600; color: #333; line-height: 1.1; }
.label-name { font-weight: 700; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-code { line-height: 0; max-width: 100%; }
.label-code svg { max-width: 100%; height: auto; }
.label-serial { font-family: ui-monospace, Menlo, monospace; color: #333; line-height: 1.1; }

/* Avery 5160 — letter, 3 × 10, 2.625" × 1", 0.5" top margin, 0.1875" side margin, 0.125" column gap */
.label-sheet.size-avery5160 { width: 8.5in; padding: 0.5in 0.1875in 0; grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; column-gap: 0.125in; }
.size-avery5160 .label { padding: 0.04in 0.12in; }
.size-avery5160 .label-name { font-size: 7.5pt; }
.size-avery5160 .label-serial { font-size: 6.5pt; }
.size-avery5160 .label-code svg { max-height: 0.56in; width: auto; }
/* Avery 5163 — letter, 2 × 5, 4" × 2", 0.5" top, 0.15625" side, 0.1875" gap */
.label-sheet.size-avery5163 { width: 8.5in; padding: 0.5in 0.15625in 0; grid-template-columns: repeat(2, 4in); grid-auto-rows: 2in; column-gap: 0.1875in; }
.size-avery5163 .label { padding: 0.12in 0.2in; gap: 3px; }
.size-avery5163 .label-co { font-size: 9pt; }
.size-avery5163 .label-name { font-size: 12pt; }
.size-avery5163 .label-serial { font-size: 9pt; }
.size-avery5163 .label-code svg { max-height: 1.15in; width: auto; }
/* Thermal roll — one 2.25" × 1.25" label per page */
.label-sheet.size-thermal { width: 2.25in; grid-template-columns: 2.25in; grid-auto-rows: 1.25in; background: transparent; box-shadow: none; }
.size-thermal .label { background: #fff; box-shadow: 0 1px 4px rgba(38,48,58,.18); padding: 0.05in 0.08in; }
.size-thermal .label-name { font-size: 7.5pt; }
.size-thermal .label-serial { font-size: 6.5pt; }
.size-thermal .label-code svg { max-height: 0.62in; width: auto; }

@media print {
  .inv-sheet-wrap { background: none; padding: 0; overflow: visible; }
  .label-sheet { box-shadow: none; margin: 0; }
  .label { outline: none; }
  /* one .label-sheet per physical sheet (or thermal label); no break after the last, so no blank trailing page */
  .label-sheet:not(:last-child) { break-after: page; page-break-after: always; }
  .label-sheet + .label-sheet, .label-sheet.size-thermal + .label-sheet.size-thermal { margin-top: 0; }
  .size-thermal .label { box-shadow: none; }
  /* the narrow-screen rule in app.css pads <main>; on paper that would shift every label off the die cut */
  main:has(.label-sheet) { padding: 0 !important; margin: 0 !important; }
  .page-head { display: none; }
}

.inv-assets td { white-space: nowrap; }
.inv-assets td, .inv-assets th { padding-left: 10px; padding-right: 10px; }

/* ───── Two-pane inventory (folder tree + list) ───── */
main.inv-wide { max-width: none; padding: 0; }
.inv-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.inv-split.tree-hidden { grid-template-columns: minmax(0, 1fr); }
.inv-split.tree-hidden .inv-tree-pane { display: none; }
.inv-tree-pane { position: sticky; top: 61px; height: calc(100vh - 61px); background: var(--paper); border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
.inv-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 0 16px; }
.inv-tree-head h2 { font-size: 20px; }
.inv-tree-head .icon-btn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.inv-tree-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.inv-main { padding: 22px 28px 60px; min-width: 0; }
.inv-folder-crumbs { margin-bottom: 8px; }
.inv-folder-crumbs > span:last-child { color: var(--graphite); }
.inv-title-wrap { display: flex; align-items: center; gap: 10px; }
.inv-title-ico:empty { display: none; }
.inv-title-ico .sft-ico { width: 40px; height: 40px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); opacity: 1; }
.inv-title-ico .sft-svg { width: 22px; height: 22px; }
.inv-show-tree { display: none; }
.tree-hidden .inv-show-tree { display: inline-flex; }
@media (max-width: 900px) { .inv-split { grid-template-columns: 1fr; } .inv-tree-pane { position: static; height: 360px; border-right: 0; border-bottom: 1px solid var(--rule); } .inv-main { padding: 18px 16px 48px; } }
@media (max-width: 1000px) { .qa-board { grid-template-columns: repeat(7, minmax(200px, 1fr)); } }

/* ── Photos & home location (Company agent integration) ── */
.inv-item-cell { display: flex; align-items: center; gap: 10px; }
.inv-thumb { width: 38px; height: 38px; border-radius: var(--r-ctl); object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); background: var(--concrete); }
.inv-thumb-none { display: inline-flex; align-items: center; justify-content: center; color: #A3ACB6; }
.inv-photos-host { min-height: 40px; }

/* ───── Brand fixes for my tables & toolbars ───── */
.tbl th.r { text-align: right; }
.inv-main .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.inv-main .stat-value { font-size: 24px; }
.inv-main .toolbar input[type=search], .qa-body ~ .toolbar input[type=search] { flex: 1 1 220px; min-width: 200px; }
.toolbar input[data-f="q"] { flex: 1 1 220px; min-width: 200px; max-width: 360px; }
.toolbar select { height: 36px; }
.inv-unit-code { font-weight: 600; }

/* ───── v0.5 item types, cases, bundles, consumables ───── */
.inv-kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-kind-opt, .inv-case-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 12px 14px; cursor: pointer; background: var(--paper); min-height: 44px; }
.inv-kind-opt input, .inv-case-opt input { position: absolute; opacity: 0; pointer-events: none; }
.inv-kind-opt strong, .inv-case-opt strong { display: block; font-size: 14px; }
.inv-kind-opt small, .inv-case-opt small { display: block; color: var(--steel); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.inv-kind-opt.on, .inv-case-opt.on { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.inv-kind-opt:focus-within, .inv-case-opt:focus-within { outline: 2px solid var(--gaffer); outline-offset: 1px; }
.inv-kind-ico { color: var(--graphite); padding-top: 2px; }
.inv-case-pick { border: 0; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-case-pick legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.inv-case-opt { padding: 9px 12px; }
.inv-alert { margin: 10px 0; font-size: 13px; color: #87590F; background: var(--warn-wash); border-radius: var(--r-ctl); padding: 8px 12px; }
.inv-missing { color: #87590F; }
.inv-row-missing td { background: var(--warn-wash); }
.inv-contents { list-style: none; margin: 0; padding: 0; }
.inv-contents li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.inv-contents li:last-child { border-bottom: 0; }
.inv-loadbar { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: var(--r-panel); padding: 10px 12px; margin: 0 0 16px; flex-wrap: wrap; }
.inv-loadbar.is-unload { border-left-color: var(--warn); }
.inv-load-input { flex: 1; min-width: 220px; min-height: 44px; font-family: var(--font-display); font-size: 18px; }
.inv-load-input:focus { outline: 2px solid var(--gaffer); }
.inv-load-qty { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--steel); }
.inv-load-qty input { width: 70px; min-height: 40px; }
.inv-load-mode { display: inline-flex; gap: 0; }
.inv-load-mode .btn { min-height: 40px; border-radius: 0; }
.inv-load-mode .btn:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.inv-load-mode .btn:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; margin-left: -1px; }
.inv-load-mode .btn.active { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.inv-loadbar .btn.primary { min-height: 44px; }
.inv-sub-head { margin: 16px 0 6px; font-size: 13px; color: var(--steel); }
.inv-bun-price { display: flex; gap: 16px; flex-wrap: wrap; }
.inv-bun-price .field { min-width: 240px; }
.inv-choice { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 10px 12px; margin: 8px 0; }
.inv-choice-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.inv-choice-name { flex: 1; font-weight: 600; }
.inv-choice input[type=text] { width: 100%; }
.inv-big.inv-low { color: #87590F; }
@media (max-width: 768px) { .inv-kind-pick, .inv-case-pick { grid-template-columns: 1fr; } }
.inv-nowrap { white-space: nowrap; }

/* QR labels: code on the left, text and the number on the right */
.label.label-qr { flex-direction: row; justify-content: flex-start; gap: 0.08in; text-align: left; }
.label-qrcode { line-height: 0; flex-shrink: 0; }
.label-qrcode svg { display: block; }
.label-side { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.label-num { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; line-height: 1.05; color: #000; font-variant-numeric: tabular-nums; }
.size-avery5160 .label-qrcode svg { width: 0.82in; height: 0.82in; }
.size-avery5160 .label-num { font-size: 12pt; }
.size-avery5160 .label-both .label-code svg { max-height: 0.26in; }
.size-avery5160 .label-both .label-num { font-size: 9pt; }
.size-avery5163 .label-qrcode svg { width: 1.6in; height: 1.6in; }
.size-avery5163 .label-num { font-size: 22pt; }
.size-avery5163 .label-both .label-code svg { max-height: 0.55in; }
.size-thermal .label-qrcode svg { width: 0.95in; height: 0.95in; }
.size-thermal .label-num { font-size: 12pt; }
.size-thermal .label-both .label-code svg { max-height: 0.3in; }
.size-thermal .label-both .label-num { font-size: 9pt; }
.label-bad { display: block; max-width: 1.6in; font-size: 7pt; line-height: 1.2; color: #000; border: 1px solid #000; padding: 2px 4px; white-space: normal; }

.inv-label-warn { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--gaffer, #F5C518); background: #FFF8DB; color: var(--graphite, #26303A); border-radius: 4px; font-size: 13px; }

/* ═══════════ Phones (≤ 640px): repairs board, repair ticket, report by scanning, unit page (mobile phase 1) ═══════════ */
@media screen and (max-width: 640px) {
  .qa-viewtoggle { width: 100%; }
  .qa-view-btn { flex: 1; height: 44px; }
  /* Report issue: in thumb reach, above the shell's tab bar */
  .page-actions [data-tour="qa-report"] { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(var(--m-tabbar-h, 0px) + 10px + env(safe-area-inset-bottom)); min-height: 52px; font-size: 16px; justify-content: center; box-shadow: var(--float); }
  .qa-body { padding-bottom: 72px; }
  /* the board stacks its stages top to bottom; empty stages shrink to their heading */
  .qa-board { display: flex; flex-direction: column; align-items: stretch; gap: 8px; overflow: visible; }
  .qa-col { min-height: 0; }
  .qa-col-head { font-size: 15px; padding: 10px 12px; }
  .qa-col-empty { padding: 0 0 6px; text-align: left; padding-left: 4px; }
  .qa-card { min-height: 44px; }
  .qa-scan { font-size: 18px; height: 56px; }
  /* ticket page */
  .qa-stepper { scrollbar-width: none; }
  .qa-step { min-height: 44px; flex: 0 0 auto; }
  .qa-composer-tabs { overflow-x: auto; flex-wrap: nowrap; display: flex; scrollbar-width: none; }
  .qa-composer-tabs .tab { flex-shrink: 0; min-height: 44px; }
  .qa-composer { grid-template-columns: 1fr; }
  .qa-composer .btn, .qa-resolution + .row .btn, .card-head .btn.sm { min-height: 44px; }
  .qa-resolution, .qa-side-form select, .qa-composer input, .qa-composer textarea, .qa-composer select { font-size: 16px; }
  .qa-side-form select { min-height: 44px; }
  .qa-hist-head { flex-wrap: wrap; }
  .qa-entry-head { flex-wrap: wrap; }
  /* unit and ticket headers: actions wrap into full-width rows */
  .inv-crumbs + .page-head .page-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .inv-crumbs + .page-head .page-actions .btn { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  .inv-asset-code svg { max-width: 100%; height: auto; }
  /* item page: the unit list becomes cards (SF.mobileTable hooks), so cells may wrap */
  .inv-assets.m-cards td { white-space: normal; }
}
