/* =========================================================
   warehouse.css — FMS Warehouse App
   Tablet-first, large touch targets, high contrast
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #f0f2f5;
  --c-card:      #ffffff;
  --c-header:    #1a237e;
  --c-primary:   #1565c0;
  --c-green:     #2e7d32;
  --c-amber:     #e65100;
  --c-red:       #c62828;
  --c-gray:      #607d8b;
  --c-text:      #1a2035;
  --c-sub:       #546e7a;
  --c-border:    #dde2ee;
  --radius:      10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  font-size: 15px;
}

.screen { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ──────────────────────────────────────────────── */
.wh-header {
  background: var(--c-header);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: sticky; top: 0; z-index: 10;
}
.wh-header-sub { background: #283593; }

.wh-app-name   { font-size: 18px; font-weight: 700; }
.wh-worker-info { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.wh-terminal-badge {
  background: rgba(255,255,255,.2);
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.wh-logout-btn {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.wh-back-btn {
  background: none; border: none; color: #90caf9;
  font-size: 16px; cursor: pointer; padding: 4px 0; min-width: 80px;
}
.wh-screen-title { text-align: center; flex: 1; }
.screen-title-main { font-size: 16px; font-weight: 700; }
.screen-title-sub  { font-size: 12px; opacity: .75; margin-top: 1px; }
.wh-header-date    { font-size: 12px; opacity: .75; min-width: 80px; text-align: right; }

/* ── Login ───────────────────────────────────────────────── */
.login-shell {
  min-height: 100vh; background: var(--c-header);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.login-logo {
  color: #fff; display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 700; margin-bottom: 32px;
}
.login-card {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  width: 100%; max-width: 360px; box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.login-label   { font-size: 13px; font-weight: 600; color: var(--c-sub); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.login-input   { width: 100%; padding: 14px; border: 2px solid var(--c-border); border-radius: 8px; font-size: 18px; font-weight: 600; text-align: center; letter-spacing: 4px; outline: none; }
.login-input:focus { border-color: var(--c-primary); }
.login-error   { color: var(--c-red); font-size: 13px; min-height: 20px; margin-top: 6px; text-align: center; }
.btn-login-next {
  width: 100%; padding: 14px; background: var(--c-primary); color: #fff;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 16px;
}
.login-emp-display { font-weight: 700; color: var(--c-primary); }

/* PIN dots */
.pin-dots { display: flex; justify-content: center; gap: 18px; margin: 16px 0; }
.pin-dot  { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-border); transition: all .15s; }
.pin-dot.filled { background: var(--c-primary); border-color: var(--c-primary); }

/* PIN pad */
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.pp-btn {
  padding: 18px 10px; border: 1.5px solid var(--c-border); border-radius: 8px;
  font-size: 20px; font-weight: 600; background: #f8f9fb; cursor: pointer;
  transition: background .1s;
}
.pp-btn:active { background: #e3e8f0; }
.pp-back { font-size: 16px; color: var(--c-sub); }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; padding: 24px; flex: 1;
  max-width: 640px; margin: 0 auto; width: 100%;
  align-content: start; padding-top: 32px;
}
.dash-tile {
  background: var(--c-card); border: none; border-radius: 16px;
  padding: 32px 16px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; cursor: pointer;
  font-size: 18px; font-weight: 700; color: var(--c-text);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .1s, box-shadow .1s;
  aspect-ratio: 1;
}
.dash-tile:active { transform: scale(.97); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.dash-tile-receive { color: var(--c-green); border-top: 4px solid var(--c-green); }
.dash-tile-load    { color: var(--c-primary); border-top: 4px solid var(--c-primary); }
.dash-tile-disabled { opacity: .4; cursor: not-allowed; }
.dash-tile small    { font-size: 12px; font-weight: 400; color: var(--c-sub); }

/* ── List pages ──────────────────────────────────────────── */
.list-main { flex: 1; padding: 16px; overflow-y: auto; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.list-loading { text-align: center; color: var(--c-sub); padding: 40px; font-size: 14px; }

/* Trailer card */
.trailer-card {
  background: var(--c-card); border-radius: 12px;
  padding: 16px 18px; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border-left: 4px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .1s;
}
.trailer-card:active { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.trailer-card.status-expected  { border-left-color: var(--c-gray); }
.trailer-card.status-in_progress { border-left-color: var(--c-amber); }
.trailer-card.status-complete  { border-left-color: var(--c-green); }
.tc-left .tc-trailer-no  { font-size: 18px; font-weight: 700; }
.tc-left .tc-carrier     { font-size: 13px; color: var(--c-sub); margin-top: 2px; }
.tc-left .tc-meta        { font-size: 12px; color: var(--c-sub); margin-top: 4px; }
.tc-right { text-align: right; }
.tc-status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.badge-expected    { background: #eceff1; color: var(--c-gray); }
.badge-in_progress { background: #fff3e0; color: var(--c-amber); }
.badge-complete    { background: #e8f5e9; color: var(--c-green); }
.tc-progress { font-size: 13px; color: var(--c-sub); margin-top: 6px; }

/* Trailer info bar */
.trailer-info-bar {
  background: #e8eaf6; padding: 10px 18px;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--c-primary); font-weight: 500;
}

/* Freight items table */
.freight-table { padding: 0 4px; }
.freight-header, .freight-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px 60px 60px 90px 36px;
  gap: 8px; padding: 10px 14px; font-size: 13px;
  align-items: center;
}
.freight-header {
  font-weight: 700; color: var(--c-sub); font-size: 11px;
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 2px solid var(--c-border);
  background: var(--c-card); position: sticky; top: 0;
}
.freight-row {
  background: var(--c-card); border-bottom: 1px solid var(--c-border);
}
.freight-row:last-child { border-bottom: none; border-radius: 0 0 8px 8px; }
.frow-barcode { font-family: monospace; font-size: 12px; color: var(--c-primary); }
.frow-status  { font-size: 11px; font-weight: 600; text-align: right; padding: 3px 8px; border-radius: 10px; }
.frow-status.st-expected { background: #eceff1; color: var(--c-gray); }
.frow-status.st-received { background: #e8f5e9; color: var(--c-green); }
.frow-status.st-short    { background: #ffebee; color: var(--c-red); }
.frow-status.st-over     { background: #fff3e0; color: var(--c-amber); }
.btn-bol-print {
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 2px 4px; border-radius: 4px; opacity: 0.5; transition: opacity .15s;
}
.btn-bol-print:hover { opacity: 1; }

/* Start / Finish buttons in header */
.btn-start {
  background: var(--c-green); color: #fff; border: none; border-radius: 8px;
  padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  min-width: 70px;
}
.btn-finish {
  background: var(--c-amber); color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
  min-width: 70px;
}
.btn-finish-load { background: var(--c-primary); }

/* ── Scan screen ─────────────────────────────────────────── */
.scan-bar {
  background: var(--c-card); padding: 14px 16px;
  border-bottom: 2px solid var(--c-border);
  position: sticky; top: 64px; z-index: 9;
}
.scan-progress { font-size: 16px; font-weight: 700; color: var(--c-primary); margin-bottom: 10px; }
.loaded-count  { font-size: 24px; }
.scan-input-row { display: flex; gap: 10px; }
.scan-input {
  flex: 1; padding: 12px 14px; border: 2px solid var(--c-border); border-radius: 8px;
  font-size: 16px; outline: none;
}
.scan-input:focus { border-color: var(--c-primary); }
.btn-scan-confirm {
  background: var(--c-primary); color: #fff; border: none; border-radius: 8px;
  padding: 12px 18px; font-size: 18px; cursor: pointer; font-weight: 700;
}
.scan-feedback {
  font-size: 14px; font-weight: 600; margin-top: 8px; min-height: 20px;
  transition: color .2s;
}
.scan-feedback.ok   { color: var(--c-green); }
.scan-feedback.warn { color: var(--c-amber); }
.scan-feedback.err  { color: var(--c-red); }

.scan-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.scan-item {
  background: var(--c-card); border-radius: 8px;
  padding: 12px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  border-left: 4px solid var(--c-green);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.scan-item.si-warn { border-left-color: var(--c-amber); }
.scan-item.si-err  { border-left-color: var(--c-red); }
.si-left .si-barcode { font-family: monospace; font-size: 13px; color: var(--c-primary); }
.si-left .si-desc    { font-size: 14px; font-weight: 600; margin-top: 2px; }
.si-right { text-align: right; font-size: 13px; color: var(--c-sub); white-space: nowrap; }
.si-status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: #e8f5e9; color: var(--c-green); margin-bottom: 4px;
}
.si-status-pill.sp-warn { background: #fff3e0; color: var(--c-amber); }
.si-status-pill.sp-err  { background: #ffebee; color: var(--c-red); }

/* ── Summary screen ──────────────────────────────────────── */
.summary-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 16px;
}
.stat-card {
  background: var(--c-card); border-radius: 10px;
  padding: 16px 12px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.stat-card .stat-val { font-size: 28px; font-weight: 700; }
.stat-card .stat-lbl { font-size: 11px; color: var(--c-sub); margin-top: 4px; text-transform: uppercase; }
.stat-received .stat-val { color: var(--c-green); }
.stat-short    .stat-val { color: var(--c-red); }
.stat-over     .stat-val { color: var(--c-amber); }
.stat-damaged  .stat-val { color: var(--c-gray); }

.discrepancy-list { padding: 0 16px 16px; }
.disc-header, .disc-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px 70px 70px 90px;
  gap: 8px; padding: 10px 14px; font-size: 13px; align-items: center;
}
.disc-header {
  font-weight: 700; color: var(--c-sub); font-size: 11px;
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 2px solid var(--c-border);
}
.disc-row { background: var(--c-card); border-bottom: 1px solid #f0f2f5; }
.disc-row.dr-ok   { }
.disc-row.dr-bad  { background: #fff8f8; }
.disc-var.var-neg { color: var(--c-red); font-weight: 700; }
.disc-var.var-pos { color: var(--c-amber); font-weight: 700; }

.summary-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 16px;
  position: sticky; bottom: 0; background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.sum-btn {
  padding: 16px 10px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #fff;
}
.sum-btn-save      { background: var(--c-primary); }
.sum-btn-rollback  { background: var(--c-red); }
.sum-btn-reconcile { background: var(--c-amber); }
.sum-btn-complete  { background: var(--c-green); }

/* Route card */
.route-card {
  background: var(--c-card); border-radius: 12px; padding: 16px 18px;
  cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border-left: 4px solid var(--c-primary);
  transition: box-shadow .1s;
}
.route-card:active { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-code { font-size: 18px; font-weight: 700; }
.rc-type-badge {
  background: #e3f2fd; color: var(--c-primary);
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.rc-meta { font-size: 13px; color: var(--c-sub); margin-top: 4px; }
.rc-driver { font-size: 14px; font-weight: 600; margin-top: 6px; }
.rc-bottom { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--c-sub); }

/* ══════════════════════════════════════════════════════════
   INVENTORY COUNT
══════════════════════════════════════════════════════════ */

/* Dashboard tile */
.dash-tile-inventory { background: linear-gradient(135deg, #00695c 0%, #00897b 100%); }

/* Start button */
.btn-inv-start {
  width: 100%; padding: 16px; border: none; border-radius: 10px;
  background: var(--c-primary); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* Session card */
.inv-session-card {
  background: var(--c-card); border-radius: 12px; padding: 16px 18px;
  cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border-left: 4px solid #00897b; margin-bottom: 10px;
}
.inv-sc-top    { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-sc-id     { font-size: 12px; color: var(--c-sub); font-family: monospace; }
.inv-sc-date   { font-size: 15px; font-weight: 700; }
.inv-sc-worker { font-size: 13px; color: var(--c-sub); margin-top: 4px; }
.inv-sc-stats  { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; }
.inv-sc-osd    { color: var(--c-red); font-weight: 700; }
.inv-status-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.inv-status-in-progress { background: #e3f2fd; color: var(--c-primary); }
.inv-status-completed   { background: #e8f5e9; color: var(--c-green); }

/* Progress bar */
.inv-progress-bar {
  background: #fff; border-bottom: 1px solid var(--c-border);
  padding: 10px 16px;
}
.inv-prog-stats { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.inv-osd-badge {
  background: #ffebee; color: var(--c-red);
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700;
}

/* Camera button */
.btn-cam {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #283593; color: #fff;
  border: none; border-radius: 8px; padding: 0 14px;
  min-width: 48px; height: 48px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.btn-cam-sm {
  height: 38px; padding: 0 10px; border-radius: 6px; font-size: 12px;
}
.btn-cam:active { background: #1a237e; }

/* Item panel */
.inv-item-panel {
  background: var(--c-card);
  border-top: 3px solid #00897b;
  padding: 14px 16px;
  flex-shrink: 0;
}
.inv-item-header { display: flex; justify-content: space-between; align-items: center; }
.inv-item-barcode { font-family: monospace; font-size: 14px; font-weight: 700; }
.inv-trailer-tag {
  background: #e3f2fd; color: var(--c-primary);
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.inv-item-desc { font-size: 15px; font-weight: 600; margin: 6px 0 10px; }

/* Count grid */
.inv-count-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.inv-count-cell { text-align: center; }
.inv-count-lbl  { font-size: 11px; color: var(--c-sub); text-transform: uppercase; margin-bottom: 4px; }
.inv-count-val  { font-size: 20px; font-weight: 700; }
.inv-count-input {
  width: 100%; padding: 8px 6px; border: 2px solid var(--c-border);
  border-radius: 8px; font-size: 18px; font-weight: 700;
  text-align: center; outline: none;
}
.inv-count-input:focus { border-color: var(--c-primary); }

/* Pallet section */
.inv-pallet-section { margin-bottom: 10px; }
.inv-section-lbl { font-size: 11px; color: var(--c-sub); text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px; letter-spacing: .5px; }
.inv-pallet-row { display: flex; align-items: center; gap: 8px; }
.inv-pallet-chips { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.plt-chip {
  padding: 8px 14px; border: 2px solid var(--c-border); border-radius: 20px;
  background: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.plt-chip.selected {
  background: #00897b; border-color: #00897b; color: #fff;
}
.inv-pallet-result {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: #e8f5e9; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.inv-pallet-result.low-conf { background: #fff3e0; }
.inv-pallet-conf { font-size: 11px; color: var(--c-sub); font-weight: 400; }

/* OSD note */
.inv-osd-note-row { margin-bottom: 10px; }
.inv-osd-note-input {
  width: 100%; padding: 10px 14px; border: 2px solid var(--c-border);
  border-radius: 8px; font-size: 14px; outline: none;
}
.inv-osd-note-input:focus { border-color: var(--c-amber); }

/* Confirm button */
.btn-inv-confirm {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: #00897b; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-inv-confirm:active { background: #00695c; }

/* Scanned item with OSD flag */
.scan-item.si-osd { border-left: 4px solid var(--c-red); }
.si-osd-flag {
  font-size: 11px; font-weight: 700; color: var(--c-red);
  background: #ffebee; padding: 2px 8px; border-radius: 10px;
}
.si-plt-tag {
  font-size: 11px; color: var(--c-sub);
  background: #f0f2f5; padding: 2px 8px; border-radius: 10px; margin-top: 2px;
}

/* Actions bottom sheet / overlay */
.inv-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
}
.inv-actions-sheet, .inv-reconcile-card {
  background: var(--c-card); border-radius: 16px 16px 0 0;
  padding: 20px 16px 32px; width: 100%; max-width: 540px;
}
.inv-reconcile-card { border-radius: 16px; margin: 16px; max-width: 480px; align-self: center; }
.inv-sheet-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.inv-action-btn {
  width: 100%; padding: 15px; border: none; border-radius: 10px;
  background: var(--c-primary); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.inv-action-osd      { background: var(--c-amber); }
.inv-action-complete { background: var(--c-green); }
.inv-action-cancel   { background: #eceff1; color: var(--c-text); }

/* OSD review list */
.inv-osd-list { padding: 12px; }
.inv-osd-card {
  background: var(--c-card); border-radius: 12px; padding: 14px 16px;
  border-left: 4px solid var(--c-red); margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.inv-osd-card.reconciled { border-left-color: var(--c-green); opacity: .8; }
.inv-osd-top { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-osd-barcode { font-family: monospace; font-size: 13px; color: var(--c-sub); }
.inv-osd-type-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.osd-short   { background: #ffebee; color: var(--c-red); }
.osd-over    { background: #fff3e0; color: var(--c-amber); }
.osd-damaged { background: #f3e5f5; color: #7b1fa2; }
.inv-osd-desc { font-size: 14px; font-weight: 600; margin: 4px 0; }
.inv-osd-counts {
  display: flex; gap: 16px; font-size: 13px; color: var(--c-sub); margin-top: 4px;
}
.inv-osd-var { font-weight: 700; }
.inv-osd-var.neg { color: var(--c-red); }
.inv-osd-var.pos { color: var(--c-amber); }
.btn-reconcile {
  margin-top: 10px; padding: 9px 18px; border: none; border-radius: 8px;
  background: var(--c-primary); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.reconciled-tag {
  margin-top: 8px; font-size: 12px; color: var(--c-green); font-weight: 700;
}

/* Reconcile modal */
.inv-rec-item-info {
  background: var(--c-bg); border-radius: 8px; padding: 12px; margin-bottom: 16px;
  font-size: 14px;
}
.inv-rec-actions { display: flex; flex-direction: column; gap: 8px; }
.inv-rec-btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; color: #fff;
}
.inv-rec-accept   { background: var(--c-green); }
.inv-rec-override { background: var(--c-primary); }
.inv-rec-waive    { background: var(--c-gray); }
.inv-override-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* Report */
.inv-report-main { padding: 16px; }
.inv-report-header {
  background: var(--c-card); border-radius: 12px; padding: 16px; margin-bottom: 16px;
  font-size: 14px; line-height: 1.8;
}
.inv-report-header strong { font-size: 16px; display: block; margin-bottom: 4px; }
.inv-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.inv-stat-card {
  background: var(--c-card); border-radius: 10px; padding: 14px 10px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.inv-stat-val { font-size: 26px; font-weight: 700; }
.inv-stat-lbl { font-size: 11px; color: var(--c-sub); text-transform: uppercase; margin-top: 2px; }
.inv-plt-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.inv-plt-chip {
  background: var(--c-card); border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.inv-section-title {
  font-size: 13px; font-weight: 700; color: var(--c-sub);
  text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px;
}
.inv-report-osd-card {
  background: var(--c-card); border-radius: 10px; padding: 14px 16px;
  border-left: 4px solid var(--c-red); margin-bottom: 8px;
  font-size: 13px;
}
.inv-report-osd-card.reconciled-card { border-left-color: var(--c-green); }
.inv-report-missing {
  background: var(--c-card); border-radius: 10px; padding: 14px 16px;
  border-left: 4px solid var(--c-gray); margin-bottom: 8px; font-size: 13px;
}

/* ── Toast ───────────────────────────────────────────────── */
.wh-toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a2035; color: #fff;
  padding: 12px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 999; white-space: nowrap;
}
.wh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.wh-toast.success { background: var(--c-green); }
.wh-toast.error   { background: var(--c-red); }
.wh-toast.warning { background: var(--c-amber); }
