/* Inventory OS — same clean look as the employee/owner portals. Loaded after the page's own styles. */
:root { --bg:#000; --bg2:#121212; --bg3:#181818; --bg4:#262626; --bg5:#333; --r:9px; --red3:rgba(232,0,28,.14); --red4:rgba(232,0,28,.07); --green:#2ECC71; --gold:#F5A623; }

/* One typeface, sentence case, no tracked-out capitals. Numbers use Bebas below. */
body, body * { font-family: 'Barlow', system-ui, sans-serif !important; text-transform: none !important; letter-spacing: normal !important; }
.stat-val, .rank-val, .rank-num, .aging-count, .sku-mini-val, .op-banner-v, .op-banner-tags b, .op-count-n, .sum-row.big b, .num { font-family: 'Bebas Neue', sans-serif !important; letter-spacing: .5px !important; }
/* Barcode labels keep their print font and spacing. */
.lbl, .lbl * { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif !important; }
.lbl-size span { letter-spacing: .04em !important; }
.lbl-num { letter-spacing: .06em !important; }
body { background: #000; font-size: 15px; }

/* Shell */
.app-shell { grid-template-rows: 64px 1fr; grid-template-columns: 248px 1fr; }
.topbar { background: rgba(0,0,0,.92); border-bottom: 1px solid var(--bg4); padding: 0 22px; }
.topbar::after { display: none; }
.logo { gap: 11px; }
.logo-mark { width: 38px; height: 38px; }
.logo-name { font-size: 17px !important; font-weight: 700; line-height: 1.2; }
.logo-name em { color: inherit; }
.main-site-link { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 13px; border: 1px solid var(--bg5); border-radius: 8px; background: var(--bg3); font-size: 14px !important; font-weight: 600; text-decoration: none; color: #fff; }
.main-site-link:hover { border-color: #555; }
.sidebar { background: var(--bg2); border-right: 1px solid var(--bg4); padding: 14px 12px 24px; }
.nav-section-label { font-size: 13px !important; font-weight: 700; padding: 18px 12px 6px; margin: 0; color: #fff; }
button.nav-section-label { background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.nav-item { gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 9px; border-left: 0 !important; font-size: 15px !important; font-weight: 500; color: #fff; }
.nav-item:hover { background: var(--bg3); }
.nav-item.active { background: #1f0a0d; box-shadow: inset 3px 0 0 var(--red); }
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-badge { font-size: 11px !important; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.content { padding: 34px 40px 80px; background: #000; }
@media (max-width: 900px) {
  .app-shell { grid-template-rows: auto 1fr; grid-template-columns: 1fr; }
  .topbar { padding: 10px 14px; }
  .content { padding: 20px 14px 70px; }
  .sidebar { padding-top: 18px; }
}

/* Page headings */
.page-header { margin-bottom: 22px; }
.page-title { font-size: 28px !important; font-weight: 800; line-height: 1.15; margin-bottom: 4px; }
.page-title em, .modal-title em, .section-title em, .drawer-head h2 em { color: inherit; font-style: normal; }
.page-sub { font-size: 15px !important; color: #fff; }
.section-title { font-size: 17px !important; font-weight: 700; color: #fff; }
@media (max-width: 900px) { .page-title { font-size: 24px !important; } }

/* Stat tiles */
.stats-grid { gap: 12px; }
.stat-card { background: var(--bg2); border: 1px solid var(--bg4); border-radius: 12px; padding: 16px 18px; }
.stat-card::before { display: none; }
.stat-label { font-size: 13px !important; font-weight: 600; color: #fff; margin-bottom: 6px; }
.stat-val { font-size: 34px; }
.stat-sub { font-size: 12px !important; color: #fff; }

/* Panels */
.card, .sku-panel, .op-banner, .ticker { background: var(--bg2); border: 1px solid var(--bg4); border-radius: 12px; }
.sku-panel { border-top: 1px solid var(--bg4); }
.op-banner { border-left-width: 4px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--bg4); }
.card-title { font-size: 17px !important; font-weight: 700; color: #fff; }
.divider { background: var(--bg4); }

/* Tables */
thead th { background: transparent; font-size: 13px !important; font-weight: 600; color: #fff; padding: 11px 12px; border-bottom: 1px solid var(--bg5); }
tbody tr { border-bottom: 1px solid var(--bg4); }
tbody tr:hover { background: #161616; }
tbody td { padding: 12px; font-size: 14px; color: #fff; }
.td-mono { font-size: 13px !important; color: #fff; }
.td-brand { font-size: 13px !important; font-weight: 600; color: #fff; }

/* Badges & pills */
.badge { font-size: 12px !important; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.filter-chip, .chip { font-size: 14px !important; font-weight: 600; border-radius: 20px; padding: 7px 14px; }
.filter-chip.active { background: #2a0a0f; border-color: var(--red); }

/* Inputs */
.inp, .search-inp, .scan-field { background: #000; border: 1px solid var(--bg5); border-radius: 9px; font-size: 15px; color-scheme: dark; }
.inp { min-height: 40px; padding: 9px 12px; }
.inp:focus, .search-inp:focus, .scan-field:focus { border-color: #777; }
.inp-sm { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.inp-lg { font-size: 17px; }
.scan-field { font-size: 20px !important; font-weight: 600; border-width: 1px; padding: 13px 16px; }
.scan-field:focus { animation: none; box-shadow: 0 0 0 3px rgba(232,0,28,.25); border-color: var(--red); }
.field-group label, .gate-label { font-size: 13px !important; font-weight: 600; color: #fff; margin-bottom: 6px; }
input[type=checkbox] { width: 17px; height: 17px; border-radius: 4px; border-color: #555; }

/* Buttons */
.btn { padding: 9px 16px; min-height: 40px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--bg5); font-size: 14px !important; font-weight: 600; color: #fff; }
.btn:hover { border-color: #666; }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { filter: brightness(1.1); background: var(--red); border-color: var(--red); }
.btn-outline-red { background: none; border-color: #4a1219; color: #ff6b7d; }
.btn-outline-red:hover { background: #2a0a0f; color: #ff6b7d; border-color: var(--red); }
.btn-ghost { background: none; border-color: transparent; }
.btn-ghost:hover { border-color: var(--bg5); }
.btn-sm { padding: 6px 11px; min-height: 32px; font-size: 13px !important; border-radius: 7px; }
.btn-big { padding: 12px 22px; min-height: 46px; font-size: 15px !important; }
.btn-bulk { border-radius: 7px; font-size: 13px !important; font-weight: 600; }
.bulk-bar { border-radius: 12px; }
.seg { border-radius: 9px; padding: 3px; gap: 2px; background: #000; border-color: var(--bg5); }
.seg button { border-radius: 7px; background: none; font-size: 14px !important; font-weight: 600; color: #fff; }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--bg3); box-shadow: 0 0 0 1px var(--bg5); color: #fff; }

/* Drawer, modal, toast, sign-in */
.drawer { border-left: 1px solid var(--bg4); background: var(--bg2); }
.drawer-head { background: var(--bg2); border-bottom: 1px solid var(--bg4); }
.drawer-head h2 { font-size: 19px !important; font-weight: 700; }
.modal { background: var(--bg2); border: 1px solid var(--bg5); border-top: 1px solid var(--bg5); border-radius: 14px; padding: 24px; }
.modal-title { font-size: 20px !important; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 14px !important; color: #fff; }
.modal-footer { border-top: 1px solid var(--bg4); }
.toast { border-radius: 10px; font-size: 14px !important; font-weight: 600; }
.owner-gate { background: #000; }
.gate-box { border-radius: 14px; border: 1px solid var(--bg4); padding: 30px 26px; }
.gate-sub { font-size: 14px !important; color: #fff; }
.gate-box .logo-name { font-size: 22px !important; }

/* Smaller bits */
.rank-item, .alert-item, .aging-cell, .sku-mini-stat, .scan-result-box, .pf-item, .pf-manual, .pf-selected, .print-help, .done-card, .scan-confirm-msg, .scan-error-msg { border-radius: 10px; }
.empty-title { font-size: 20px !important; font-weight: 700; color: #fff; }
.empty-sub, .alert-sub, .rank-sub, .reject, .pf-status, .seg-help, .sum-hint, .gate-msg { color: #fff; }
.tick-label, .aging-range, .sku-mini-label, .op-banner-k, .op-count-l, .detail-label { font-size: 12px !important; font-weight: 600; color: #fff; }
.save-state { font-size: 14px !important; }
details.more summary { font-size: 14px !important; font-weight: 600; }

/* Database: size buttons and multi-barcode tools */
.db-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.db-sz { min-width: 44px; min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--bg5); background: #000; color: #fff; font-size: 14px !important; font-weight: 700; cursor: pointer; }
.db-sz:hover { border-color: #777; }
.db-sz.on { background: #2a0a0f; border-color: var(--red); }
.db-kids { width: 100%; margin: 0 0 8px; }
.db-kids .db-sizes { margin-top: 8px; }
.db-keep { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0 4px; cursor: pointer; }

.db-szrow { display: flex; gap: 10px; align-items: flex-start; }
.db-szrow > span { flex: none; width: 64px; padding-top: 8px; font-size: 13px; font-weight: 600; }
.db-szrow .db-sizes { flex: 1; }
@media (max-width: 560px) { .db-szrow { flex-direction: column; gap: 4px; } .db-szrow > span { padding-top: 0; } }

/* ── A little red so the screens are easier to read at a glance ── */
.content { background: radial-gradient(900px 520px at 100% -8%, rgba(232,0,28,.11), transparent 62%), radial-gradient(700px 420px at -10% 110%, rgba(232,0,28,.06), transparent 60%), #000; background-attachment: local; }
.topbar::after { display: block; content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--red), transparent 55%); }
.nav-section-label { color: #ff5468 !important; }
.nav-item.active { background: rgba(232,0,28,.15); }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: var(--red); }
.page-title::after { content: ''; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--red); margin-top: 10px; }
.stat-card { box-shadow: inset 0 3px 0 var(--red); background: linear-gradient(180deg, rgba(232,0,28,.07), transparent 55%), var(--bg2); }
.card-header { background: linear-gradient(90deg, rgba(232,0,28,.10), transparent 55%); border-radius: 12px 12px 0 0; }
thead th { background: #141414; }
tbody tr:hover { background: rgba(232,0,28,.06); }
.badge-red, .badge-hot { background: rgba(232,0,28,.16); }
.vis-btn.off { opacity: .55; }

/* "Show on live inventory page" switch on intake */
.pub-toggle { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--bg4); border-radius: 10px; background: #0b0b0b; cursor: pointer; }
.pub-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pt-track { flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #3a3a3a; transition: background .2s; margin-top: 1px; }
.pt-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pub-toggle input:checked + .pt-track { background: var(--red); }
.pub-toggle input:checked + .pt-track::after { transform: translateX(18px); }
.pub-toggle input:focus-visible + .pt-track { outline: 2px solid var(--red); outline-offset: 2px; }
.pt-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pt-text b { font-size: 15px; font-weight: 700; }

/* Reports page */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.report-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--bg4); background: linear-gradient(180deg, rgba(232,0,28,.07), transparent 60%), var(--bg2); box-shadow: inset 0 3px 0 var(--red); color: #fff; cursor: pointer; }
.report-card b { font-size: 17px !important; font-weight: 700; }
.report-card span { font-size: 13px !important; line-height: 1.45; }
.report-card:hover { border-color: rgba(232,0,28,.55); }
.report-card.busy { opacity: .6; cursor: wait; }
.report-card.buyer { box-shadow: inset 0 3px 0 #fff; }
/* Expenses */
.ex-group, .ex-person { border: 1px solid var(--bg4); border-radius: 10px; margin-top: 10px; background: #0d0d0d; }
.ex-person { margin: 8px 12px; background: #121212; }
.ex-group > summary, .ex-person > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.ex-group > summary::-webkit-details-marker, .ex-person > summary::-webkit-details-marker { display: none; }
.ex-group > summary::before, .ex-person > summary::before { content: '▸'; color: var(--red); }
.ex-group[open] > summary::before, .ex-person[open] > summary::before { content: '▾'; }
.ex-group > summary span, .ex-person > summary span { font-size: 13px; }
.ex-amt { margin-left: auto; font-family: 'Bebas Neue', sans-serif !important; font-size: 22px; letter-spacing: .5px !important; font-weight: 400; }
.ex-group .tbl-wrap { padding: 0 12px 12px; }
.ex-total { display: flex; align-items: center; padding: 14px 16px; margin-top: 12px; border-radius: 10px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.35); }

/* ── B2B: buyers, addresses, outtake, invoices ── */
.flow-bar { margin-bottom: 14px; }
.addr-wrap { position: relative; }
.addr-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--bg2); border: 1px solid var(--bg5); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); overflow: hidden; margin-top: 4px; }
.addr-sug button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--bg4); color: #fff; text-align: left; cursor: pointer; }
.addr-sug button:last-child { border-bottom: 0; }
.addr-sug button:hover { background: var(--bg3); }
.addr-sug span { font-size: 12px; color: var(--w3); }
.addr-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 640px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.b2b-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--w2); cursor: pointer; }
.b2b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.b2b-card { background: var(--bg2); border: 1px solid var(--bg4); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.b2b-card.on { box-shadow: inset 0 3px 0 var(--red); }
.b2b-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.b2b-card-body { font-size: 14px; line-height: 1.5; color: var(--w2); }
.b2b-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.by-group > summary { align-items: center; }
.by-group > summary .badge { margin-left: 6px; }
.by-body { padding: 4px 16px 16px; }
.by-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 14px; line-height: 1.5; color: var(--w2); }
@media (max-width: 760px) { .by-info { grid-template-columns: 1fr; } }
.by-k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--w4); margin-bottom: 3px; }
.by-info a { color: #fff; }
.inv-acts { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; min-width: 220px; }
.bx-gp { display: flex; align-items: center; gap: 4px; }
.bx-addr { font-size: 13px; color: var(--w3); line-height: 1.5; margin-top: 6px; }
.bx-g td { border-top: 1px solid var(--bg5); }
.sum-sep { padding: 10px 18px 4px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--w4); border-top: 1px dashed var(--bg5); margin-top: 6px; }
.seg-sm button { padding: 5px 10px !important; font-size: 12px !important; }
.b2b-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; border: 1px solid rgba(232,0,28,.45); background: linear-gradient(90deg, rgba(232,0,28,.14), rgba(232,0,28,.03)); }
.b2b-alert b { display: block; font-size: 15px; }
.b2b-alert span { font-size: 13px; color: var(--w3); }
.pair-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.pair-step { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--bg5); font-size: 14px; color: var(--w3); }
.pair-step.on { border-color: var(--green); color: #fff; box-shadow: 0 0 0 3px rgba(0,212,106,.18); }
.pair-step.done { color: var(--green); }
.pair-arrow { color: var(--w4); }
#bx-inv td:first-child b, .by-body td:first-child b { white-space: nowrap; }
#bx-inv td:nth-child(2), .by-body td:nth-child(2) { white-space: nowrap; }
tr.inv-row { cursor: pointer; }
tr.inv-row:hover td { background: rgba(255,255,255,.03); }
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.inv-bal { text-align: right; }
.inv-bal span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--w4); }
.inv-bal b { font-size: 24px; }
.inv-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--bg4); font-size: 14px; }
/* Sold Items by SKU */
tr.ss-row { cursor: pointer; }
tr.ss-row:hover td { background: rgba(255,255,255,.03); }
.ss-rank { font-weight: 800; font-size: 18px; color: var(--red); width: 34px; }
.ss-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 4px; background: var(--bg4); margin-right: 8px; overflow: hidden; }
.ss-bar span { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.ss-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.ss-hero .pthumb { border-radius: 14px; }
.ss-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.ss-tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bg5); font-size: 13px; color: var(--w3); }
.ss-tags b { color: #fff; }
.ss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 980px) { .ss-grid { grid-template-columns: 1fr; } }
.ss-card { margin: 0; }
.ss-split { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bg4); font-size: 14px; }
.ss-months { display: flex; align-items: flex-end; gap: 6px; padding: 14px 16px; height: 170px; overflow-x: auto; }
.ss-m { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 34px; font-size: 11px; color: var(--w3); }
.ss-m b { color: #fff; font-size: 12px; }
.ss-mbar { height: 100px; width: 18px; display: flex; align-items: flex-end; background: var(--bg4); border-radius: 5px; overflow: hidden; }
.ss-mbar span { display: block; width: 100%; background: var(--red); border-radius: 5px; }
/* B2C Outtake: two scans */
.out2 { display: grid; gap: 14px; margin-bottom: 16px; }
.out2-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--bg4); background: var(--bg2); opacity: .55; transition: opacity .15s, border-color .15s, box-shadow .15s; }
.out2-step.on { opacity: 1; border-color: rgba(232,0,28,.55); box-shadow: 0 0 0 3px rgba(232,0,28,.12); }
.out2-n { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--bg4); color: #fff; }
.out2-step.on .out2-n { background: var(--red); }
.out2-body { flex: 1; min-width: 0; }
.out2-body > label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.out2-body .scan-field-wrap { margin-bottom: 8px; }
/* Dashboard time filter */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dash-range-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.dash-custom { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--w3); }
.dash-custom .inp { width: 150px; }
@media (max-width: 640px) { .dash-range-wrap { align-items: stretch; width: 100%; } .dash-range-wrap .seg { overflow-x: auto; } }
/* Small photo next to the name in Top SKUs lists */
.rank-info-img { display: flex; align-items: center; gap: 12px; }
.rank-info-img .rank-text { min-width: 0; }
.rank-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.rank-thumb img { width: 100%; height: 100%; object-fit: contain; }
/* TikTok Report */
.tt-card { padding: 14px 16px; margin-bottom: 12px; }
.tt-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tt-head .pthumb { border-radius: 10px; }
.tt-title { font-weight: 700; font-size: 15px; }
.tt-tot { text-align: center; min-width: 70px; }
.tt-tot b { display: block; font-size: 20px; }
.tt-tot span { font-size: 11px; color: var(--w4); text-transform: uppercase; letter-spacing: 1px; }
.tt-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tt-size { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--bg5); background: var(--bg3); }
.tt-size span { font-size: 12px; color: var(--w3); }
.tt-size b { font-size: 18px; }
.tt-size i { font-style: normal; font-size: 11px; color: var(--w4); }
.tt-size.off { border-color: rgba(232,0,28,.6); }
.tt-size.off i { color: #ff6b6b; }
.tt-size.zero b { color: var(--w4); }
/* Outtake: Live Show | Store Orders */
.bo-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bg4); background: var(--bg2); }
.bm-show { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.bm-show select { min-width: 240px; max-width: 100%; }
.bo-prev { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--gold, #d4a017); background: var(--bg2); }
.bo-prev.bad { border-color: #ff4d4d; background: rgba(255,77,77,.08); }
.bo-prev .review-table td:first-child { color: var(--w3, #999); width: 130px; white-space: nowrap; }
.bo-prev-load { font-weight: 700; padding: 6px 0; }
@keyframes boPulse { 50% { opacity: .45; } }
.bo-prev-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-weight: 700; }
.bo-prev-go .btn-red { margin-left: auto; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--bg4); background: var(--bg3, #222); font: 600 12px/1.6 ui-monospace, monospace; }
/* Outtake: full-screen red when sizes don't match */
#bo-red { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: #d90000; color: #fff; cursor: pointer; text-align: center; padding: 24px; }
#bo-red.open { display: flex; }
@keyframes boRedFlash { 50% { background: #ff2a2a; } }
.bo-red-x { font-size: 120px; line-height: 1; font-weight: 900; }
.bo-red-h { font-size: clamp(36px, 7vw, 80px); font-weight: 900; letter-spacing: .02em; margin: 8px 0 18px; }
.bo-red-row { font-size: clamp(20px, 3vw, 32px); margin: 4px 0; }
.bo-red-row b { font-size: 1.25em; }
.bo-red-note { margin-top: 22px; font-size: 18px; opacity: .9; }
/* Outtake: live show order list (from TikTok), checked off as pairs are packed */
.tks-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tks-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--bg4); border-radius: 12px; cursor: pointer; }
.tks-item:has(input:checked) { border-color: var(--red, #e50914); background: rgba(229,9,20,.08); }
.tks-item > span { display: flex; flex-direction: column; gap: 2px; }
.bl-card { margin: -4px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bg4); background: var(--bg2); }
.bl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bl-head > div:first-child { flex: 1; min-width: 160px; }
.bl-title { font-weight: 800; font-size: 16px; }
.bl-left { font-size: 18px; font-weight: 700; color: var(--gold, #d4a017); }
.bl-left b { font-size: 30px; }
.bl-left.zero { color: #2ecc71; }
.bl-bar { height: 6px; border-radius: 6px; background: var(--bg4); margin: 10px 0; overflow: hidden; }
.bl-bar i { display: block; height: 100%; background: #2ecc71; transition: width .3s; }
.bl-rows { max-height: 320px; overflow: auto; display: flex; flex-direction: column; }
.bl-row { display: grid; grid-template-columns: 22px 64px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--bg4); font-size: 14px; }
.bl-ck { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--w4, #666); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.bl-size { font-weight: 800; font-size: 16px; }
.bl-buyer, .bl-id { color: var(--w3, #999); font-size: 12px; }
.bl-row.done { opacity: .45; }
.bl-row.done .bl-name { text-decoration: line-through; }
.bl-row.done .bl-ck { background: #2ecc71; border-color: #2ecc71; color: #000; }
@media (max-width: 640px) { .bl-row { grid-template-columns: 22px 50px 1fr; } .bl-buyer, .bl-id { display: none; } }
/* Show list: To pack (left) | Cancelled (right, red) — pull # · order # · product */
.bl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bl-col { border: 1px solid var(--bg4); border-radius: 12px; overflow: hidden; min-width: 0; }
.bl-colh { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; font-weight: 900; font-size: 18px; letter-spacing: .04em; background: var(--bg3, #1a1a1a); }
.bl-colh span { font-size: 14px; color: var(--w3, #999); }
.bl-colx { border-color: #b30000; }
.bl-colx .bl-colh { background: #b30000; color: #fff; font-size: 22px; }
.bl-colx .bl-colh span { color: #ffd6d6; }
.bl-col .bl-rows { max-height: 420px; }
.bl-row { grid-template-columns: 22px 56px minmax(0, 170px) 1fr; padding: 7px 10px; }
.bl-pull { font-weight: 900; font-size: 18px; }
.bl-row .bl-id { color: var(--w3, #999); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.bl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-cx { grid-template-columns: 56px minmax(0, 170px) 1fr auto; background: rgba(255,40,40,.10); color: #ff6b6b; }
.bl-cx .bl-id { color: #ff9b9b; }
.bl-cxtag { font-weight: 900; font-size: 13px; color: #fff; background: #d90000; padding: 3px 8px; border-radius: 6px; letter-spacing: .05em; }
@media (max-width: 900px) { .bl-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bl-row, .bl-cx { grid-template-columns: 22px 50px 1fr; } .bl-row .bl-id { display: none; } .bl-cx { grid-template-columns: 50px 1fr auto; } }
.gls-qty.qty-zero { border-color: #ff4d4d; background: rgba(255,77,77,.12); }
/* Outtake: Live Show | Store Orders toggle at its natural size (one line each) */
#bm-seg { flex: 0 0 auto; display: inline-flex; width: auto; }
#bm-seg button { white-space: nowrap; padding: 10px 18px; min-width: 0; flex: 0 0 auto; line-height: 1.2; }
.bs-row { grid-template-columns: 70px minmax(0, 180px) 1fr; }

.bs-row { grid-template-columns: 70px minmax(0, 180px) 1fr auto; }
.bs-tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--bg4); color: var(--w3, #999); white-space: nowrap; }
.bs-tag.col { background: rgba(46,204,113,.15); color: #2ecc71; }

.bl-hl { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; flex-wrap: wrap; }
.bs-row { grid-template-columns: 70px minmax(0, 180px) 70px 1fr auto; }
.bs-sire { font-weight: 700; color: var(--gold, #d4a017); }
