/* Sistem Gudang - gaya bersama (halaman karyawan + admin). Tanpa font/jaringan luar. */
:root {
  --bg: #f3f4f1;
  --surface: #ffffff;
  --ink: #142129;
  --ink-2: #4b5a63;
  --ink-3: #75838b;
  --line: #d8ddd8;
  --line-2: #e9ece8;
  --slate: #16323f;
  --slate-2: #1f4456;
  --out: #b94a0a;
  --out-ink: #7a2f03;
  --out-bg: #fdeee2;
  --in: #0c6a62;
  --in-ink: #07443f;
  --in-bg: #e1f3f0;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --warn: #7a5200;
  --warn-bg: #fff3cf;
  --warn-line: #e8c76a;
  --ok: #1b6b3a;
  --ok-bg: #e5f4ea;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--slate-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.num, td.num, .qty { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid #2a7fff; outline-offset: 2px; border-radius: 4px; }

/* ---------- kontrol ---------- */
.btn {
  appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: #f0f3f0; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn.primary:hover { background: var(--slate-2); }
.btn.out { background: var(--out); border-color: var(--out); color: #fff; }
.btn.out:hover { background: #a14008; }
.btn.in { background: var(--in); border-color: var(--in); color: #fff; }
.btn.in:hover { background: #09564f; }
.btn.danger { color: var(--danger); border-color: #e3b5b1; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(20, 33, 41, .07); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.lg { min-height: 54px; font-size: 17px; width: 100%; }
.btn svg, .icon { width: 20px; height: 20px; flex: none; }

label.f { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.field { margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 9px 12px; background: #fff; border: 1.5px solid #bfc7c2;
  border-radius: var(--r-sm); transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate-2); box-shadow: 0 0 0 3px rgba(31, 68, 86, .18); }
input.bad, textarea.bad, select.bad { border-color: var(--danger); background: #fff8f7; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--slate-2); }
.check { display: flex; gap: 10px; align-items: center; min-height: 38px; font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: #eceeeb; color: var(--ink-2); white-space: nowrap;
}
.chip.out { background: var(--out-bg); color: var(--out-ink); }
.chip.in { background: var(--in-bg); color: var(--in-ink); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--danger-bg); color: var(--danger); }

.notice { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; border: 1.5px solid; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5b3d00; }
.notice.bad { background: var(--danger-bg); border-color: #efb4af; color: #7d1710; }
.notice.info { background: #eaf1f5; border-color: #bcd0db; color: #163645; }
.notice.ok { background: var(--ok-bg); border-color: #a9d6b7; color: #13522c; }
.notice b { font-weight: 650; }

.toast-host { position: fixed; left: 0; right: 0; top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 100; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: var(--slate); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 520px; font-size: 15px; animation: tin .18s ease-out; }
.toast.bad { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =====================================================
   HALAMAN KARYAWAN
   ===================================================== */
.pub { max-width: 600px; margin: 0 auto; padding: 0 14px 90px; }
.pub-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 10px; }
.pub-top .brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.pub-top a { font-size: 14px; color: var(--ink-2); padding: 8px 4px; }

.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.mode button {
  appearance: none; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r-lg);
  padding: 14px 14px 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; position: relative; min-height: 84px;
  transition: background .15s, border-color .15s, color .15s;
}
.mode button .t { font-size: 17px; white-space: nowrap; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mode button .s { font-size: 13.5px; color: var(--ink-2); }
.mode button svg { width: 24px; height: 24px; }
.mode button.out[aria-selected=true] { background: var(--out); border-color: var(--out); color: #fff; }
.mode button.in[aria-selected=true] { background: var(--in); border-color: var(--in); color: #fff; }
.mode button[aria-selected=true] .s { color: rgba(255, 255, 255, .86); }
.mode button.out:not([aria-selected=true]) .t { color: var(--out-ink); }
.mode button.in:not([aria-selected=true]) .t { color: var(--in-ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; }
.panel > h2 { margin-bottom: 12px; }
.who { display: grid; grid-template-columns: 1fr; gap: 10px; }
.who.pin { grid-template-columns: 1fr 140px; }

.scanbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.scanbtn { min-width: 58px; padding: 0 16px; }
.scanbtn.out { background: var(--out); border-color: var(--out); color: #fff; }
.scanbtn.in { background: var(--in); border-color: var(--in); color: #fff; }
.scanbtn svg { width: 26px; height: 26px; }

.sugg { margin-top: 8px; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.sugg button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 0; background: #fff; border-bottom: 1px solid var(--line-2); cursor: pointer; min-height: 48px; }
.sugg button:last-child { border-bottom: 0; }
.sugg button:hover { background: #f5f7f5; }

.holding { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.holding-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.holding-row .nm { font-weight: 600; }

.lines { display: grid; gap: 12px; margin-top: 14px; }
.lines:empty { display: none; }
.empty-scan { display: grid; place-items: center; text-align: center; gap: 10px; padding: 26px 10px 14px; color: var(--ink-2); }
.empty-scan svg { width: 64px; height: 64px; color: var(--ink-3); }

.line { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #fff; border-left-width: 6px; }
.line.out { border-left-color: var(--out); }
.line.in { border-left-color: var(--in); }
.line.warn { border-left-color: #d9a21b; }
.line .hd { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.line .nm { font-weight: 650; font-size: 17px; }
.line .meta { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.line .rm { appearance: none; border: 0; background: transparent; color: var(--ink-3); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin: -6px -6px 0 0; }
.line .rm:hover { background: var(--danger-bg); color: var(--danger); }
.line .rm svg { width: 20px; height: 20px; }
.stepper { display: inline-grid; grid-template-columns: 46px minmax(64px, 96px) 46px; align-items: stretch; margin-top: 10px; }
.stepper button { appearance: none; border: 1.5px solid #bfc7c2; background: #f4f6f4; font-size: 22px; font-weight: 600; cursor: pointer; min-height: 48px; }
.stepper button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.stepper button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.stepper input { border-radius: 0; text-align: center; font-weight: 700; font-size: 19px; border-left: 0; border-right: 0; min-height: 48px; padding: 0 4px; }
.stepper.sm { grid-template-columns: 38px minmax(48px, 70px) 38px; margin-top: 4px; }
.stepper.sm button, .stepper.sm input { min-height: 42px; font-size: 17px; }
.unit { margin-left: 8px; color: var(--ink-2); font-weight: 600; align-self: center; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.trio .c > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.trio .c.rusak > span { color: var(--warn); } .trio .c.hilang > span { color: var(--danger); }
.trio .stepper.sm { display: grid; grid-template-columns: 34px 1fr 34px; width: 100%; }
.diff { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips button { appearance: none; border: 1.5px solid var(--warn-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; min-height: 36px; }
.chips button:hover { background: var(--warn-bg); }
.qty-warn { color: var(--danger); font-size: 13.5px; font-weight: 600; margin-top: 6px; }

.submitbar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(243, 244, 241, 0)); margin-top: 8px; }

.done { text-align: center; padding: 22px 16px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--ok-bg); color: var(--ok); }
.done .tick.warn { background: var(--warn-bg); color: var(--warn); }
.done .tick svg { width: 34px; height: 34px; }
.done .trx { font-family: var(--mono); font-weight: 700; font-size: 18px; margin: 6px 0 2px; }
.receipt { text-align: left; margin: 16px 0; border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px dashed var(--line); }
.receipt .row:last-child { border-bottom: 0; }
.receipt .row .r { text-align: right; font-weight: 650; white-space: nowrap; }
.receipt .sub { font-size: 13px; color: var(--ink-2); font-weight: 400; }

.recent { display: grid; gap: 0; }
.recent .it { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; align-items: baseline; }
.recent .it:last-child { border-bottom: 0; }
.recent .it .tm { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- pemindai kamera ---------- */
.scanner { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .top, .scanner .bottom { position: relative; z-index: 2; padding: 14px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent); }
.scanner .bottom { margin-top: auto; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); padding-bottom: calc(18px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }
.scanner .frame { position: absolute; left: 50%; top: 46%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.scanner .frame i { position: absolute; width: 34px; height: 34px; border: 5px solid #fff; border-radius: 6px; }
.scanner .frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scanner .frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scanner .frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scanner .frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scanner .frame.hit i { border-color: #5bf0a5; }
.scanner .msg { text-align: center; font-size: 17px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); min-height: 52px; }
.scanner .msg.bad { color: #ffb4ac; }
.scanner .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ---------- gerbang / pesan layar penuh ---------- */
.gate { max-width: 420px; margin: 12vh auto 0; padding: 0 16px; }
.gate .panel { padding: 22px; }

/* =====================================================
   ADMIN
   ===================================================== */
.adm { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--slate); color: #dbe6ec; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.side .brand { padding: 4px 10px 16px; font-weight: 700; font-size: 17px; color: #fff; line-height: 1.25; }
.side .brand small { display: block; font-weight: 500; color: #9db4c0; font-size: 12.5px; margin-top: 2px; }
.side .grp { padding: 14px 10px 4px; font-size: 12.5px; color: #8fa8b5; font-weight: 600; }
.side a.nav { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); color: #dbe6ec; text-decoration: none; font-size: 15px; min-height: 40px; }
.side a.nav svg { width: 19px; height: 19px; opacity: .85; }
.side a.nav:hover { background: rgba(255, 255, 255, .09); }
.side a.nav[aria-current=page] { background: #f3f4f1; color: var(--slate); font-weight: 650; }
.side a.nav[aria-current=page] svg { opacity: 1; }
.side .badge { margin-left: auto; background: var(--out); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.side .foot { margin-top: auto; padding: 14px 10px 4px; font-size: 13.5px; color: #9db4c0; border-top: 1px solid rgba(255, 255, 255, .12); }
.side .foot button { color: #dbe6ec; }

.main { padding: 24px 28px 60px; min-width: 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h p { color: var(--ink-2); margin-top: 4px; max-width: 70ch; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }

.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.bar .field { margin: 0; min-width: 150px; }
.bar .field.grow { flex: 1 1 220px; }
.bar input, .bar select { min-height: 42px; }

.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: auto; max-height: calc(100vh - 230px); }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; }
table.t th { position: sticky; top: 0; z-index: 1; background: #edf0ec; text-align: left; font-weight: 650; font-size: 13.5px; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.t th.num, table.t td.num { text-align: right; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tbody tr:hover { background: #f7f9f6; }
table.t tr.click { cursor: pointer; }
table.t tr.late td:first-child { box-shadow: inset 4px 0 0 var(--out); }
table.t td.wrap { white-space: normal; min-width: 200px; max-width: 380px; }
table.t td.nowrap { white-space: nowrap; }
table.t th.act, table.t td.act { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(20, 33, 41, .25); }
table.t th.act { background: #edf0ec; z-index: 2; }
table.t tbody tr:hover td.act { background: #f7f9f6; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-2); }
.tfoot { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 18px; }
.stats > div { padding: 14px 16px; border-right: 1px solid var(--line-2); }
.stats > div:last-child { border-right: 0; }
.stats .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .l { font-size: 13.5px; color: var(--ink-2); }
.stats a.l { text-decoration: none; }

.attn { display: grid; gap: 8px; margin-bottom: 18px; }
.attn a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); border: 1.5px solid var(--warn-line); background: var(--warn-bg); font-weight: 550; }
.attn a.bad { border-color: #efb4af; background: var(--danger-bg); }
.attn a:hover { filter: brightness(.97); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.card > h3 { margin-bottom: 10px; }
.rowline { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.rowline:last-child { border-bottom: 0; }

.modal-bg { position: fixed; inset: 0; background: rgba(15, 27, 34, .55); z-index: 150; display: grid; place-items: start center; overflow: auto; padding: 4vh 12px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(640px, 100%); padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal.wide { width: min(980px, 100%); }
.modal .mh { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }

.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 16px; }
.tabs button { appearance: none; border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; min-height: 44px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--slate); }

.pick { position: relative; }
.pick .list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 28px rgba(0, 0, 0, .15); max-height: 300px; overflow: auto; }
.pick .list button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: #fff; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); min-height: 44px; }
.pick .list button:hover, .pick .list button.on { background: #eef3f1; }

.loginbox { max-width: 400px; margin: 10vh auto 0; padding: 0 16px; }
.loginbox .panel { padding: 24px; }
.menu-btn { display: none; }

.preview-labels { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; background: #e9ece8; border-radius: var(--r-md); margin-top: 14px; max-height: 420px; overflow: auto; }

/* label cetak */
.lbl { width: var(--w); height: var(--h); background: #fff; border: .25mm solid #999; display: flex; gap: 1.5mm; padding: 1.8mm; overflow: hidden; color: #000; break-inside: avoid; page-break-inside: avoid; }
.lbl .q { width: var(--qr); height: var(--qr); flex: none; align-self: center; }
.lbl .q img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.lbl .tx { min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.lbl .c { font-family: var(--mono); font-weight: 700; font-size: var(--fs-code); word-break: break-all; }
.lbl .n { font-size: var(--fs-name); margin-top: .8mm; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.lbl .l { font-size: var(--fs-small); margin-top: .8mm; color: #333; }
.lbl .co { font-size: var(--fs-small); color: #555; margin-top: auto; padding-top: .6mm; }
#print-sheet { display: none; }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 120; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 14px 14px 60px; }
  .cols2, .grid2, .grid3 { grid-template-columns: 1fr; }
  .tablewrap { max-height: none; }
  .stats > div { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 380px) {
  .trio { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; }
  #app, .toast-host, .modal-bg, .scanner { display: none !important; }
  #print-sheet { display: flex; flex-wrap: wrap; align-content: flex-start; }
  #print-sheet.roll { display: block; }
  #print-sheet.roll .lbl { page-break-after: always; border: 0; }
  .lbl { border-color: #bbb; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
