/* Warehouse screen: dark, high contrast, large type, state readable from two metres away. */
:root {
  --bg: #101418; --panel: #1a2026; --text: #f4f6f8; --muted: #aab4bf;
  --ok: #1e9e4a; --okbg: #103d20; --bad: #e03131; --badbg: #4a1212; --done: #2b8cff; --donebg: #0f2d55;
  --warn: #f5a623; --border: #2d3640;
}
* { box-sizing: border-box; }
/* Sections set their own display (flex), which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
a { color: #6cb4ff; }
a:hover, a:focus { color: #a8d3ff; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 22px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; }
button { background: #2a333d; color: var(--text); border: 2px solid var(--border); border-radius: 10px; padding: 12px 20px; min-height: 56px; cursor: pointer; }
button.primary { background: var(--done); border-color: var(--done); }
button.warn { background: #6b4a00; border-color: var(--warn); }
input, select { background: #0b0e11; color: var(--text); border: 2px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 56px; width: 100%; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 18px; }
.error { color: #ff8585; min-height: 1.4em; font-size: 20px; }
#login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.card { background: var(--panel); padding: 32px; border-radius: 16px; width: min(520px, 100%); display: flex; flex-direction: column; gap: 16px; }
.card h1 { margin: 0 0 8px; font-size: 36px; }
#main { display: flex; flex-direction: column; min-height: 100vh; }
.net { padding: 4px 12px; border-radius: 999px; font-size: 18px; }
.net.on { background: var(--okbg); color: #9be6b4; }
.net.off { background: var(--badbg); color: #ffb3b3; font-weight: 700; }
.station-actions { display: flex; gap: 10px; align-items: center; }
.station-actions button { min-height: 40px; padding: 8px 14px; }
.card .sub { color: var(--muted); margin: 0; font-size: 18px; }
.banner { padding: 22px 16px; text-align: center; font-size: 44px; font-weight: 800; letter-spacing: 0.5px; background: #22292f; min-height: 100px; }
.banner.ok { background: var(--okbg); color: #b8f5cb; }
.banner.bad { background: var(--bad); color: #fff; animation: flash 0.25s 3; }
.banner.done { background: var(--donebg); color: #cfe4ff; }
@keyframes flash { 50% { background: #7a0a0a; } }
.order-head { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; background: var(--panel); border-bottom: 2px solid var(--border); }
.order-head .firm, .order-head .big { font-size: 40px; font-weight: 800; grid-column: 1; }
.order-head .sub { color: var(--muted); grid-column: 1; font-size: 22px; }
.order-head .count { grid-column: 2; grid-row: 1 / span 2; font-size: 48px; font-weight: 800; color: #cfe4ff; }
.order-head .no-tags { grid-column: 1 / span 2; margin-top: 8px; padding: 12px 16px; border-radius: 10px; background: #5a3c00; border: 2px solid var(--warn); color: #ffe2a8; font-size: 28px; font-weight: 800; text-align: center; }
.items { flex: 1; overflow: auto; padding: 12px 16px 24px; }
.project { margin-bottom: 18px; }
.project h2 { margin: 8px 0; font-size: 26px; color: var(--warn); }
.item { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border: 3px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.item .name { font-size: 28px; font-weight: 700; }
.item .sku { color: var(--muted); font-size: 20px; }
.item-right { display: flex; align-items: center; gap: 18px; }
.item .qty { font-size: 34px; font-weight: 800; min-width: 120px; text-align: right; }
.item.full { border-color: var(--ok); background: var(--okbg); }
.item.pending { border-color: var(--warn); background: #3a2a00; }
.item.bad, .item.rejected { border-color: var(--bad); background: var(--badbg); }
.badge { padding: 6px 14px; border-radius: 999px; font-size: 20px; font-weight: 700; background: #33404d; }
.badge.metal { background: #4a4f57; } .badge.pendant { background: #5a3c7a; } .badge.none { background: #2f3b32; color: #a8e6b8; } .badge.unknown { background: var(--bad); }
.badge.flag::after { content: " ?"; color: var(--warn); }
footer { padding: 12px 16px; background: var(--panel); border-top: 2px solid var(--border); }
#scan { font-size: 30px; min-height: 72px; border-color: var(--done); }
dialog { background: var(--panel); color: var(--text); border: 2px solid var(--border); border-radius: 16px; padding: 24px; width: min(720px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,0.7); }
dialog h2 { margin-top: 0; font-size: 34px; }
.choice-list, .unit-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.choice-btn { font-size: 30px; min-height: 80px; background: var(--donebg); border-color: var(--done); }
.unit-btn { text-align: left; }
.row { margin-bottom: 12px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.buttons { display: flex; flex-direction: column; gap: 10px; }
