/* Store Inventory — one stylesheet, system fonts only (no downloads). */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5e6b78;
  --line: #d9dfe6;
  --soft: #f5f7f9;
  --brand: #24408e;
  --brand-ink: #ffffff;
  --brand-soft: #e6ebf6;
  --in: #17794a;
  --in-soft: #e3f3ea;
  --out: #b4441e;
  --out-soft: #fbeae3;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --warn: #9a6200;
  --warn-soft: #fdf1d8;
  --move: #5b4bb7;
  --move-soft: #ece9fa;
  --r: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161b; --surface: #1b2128; --ink: #e8edf2; --muted: #9aa7b4; --line: #2d3640; --soft: #212831;
    --brand: #7f9be6; --brand-ink: #0f1830; --brand-soft: #23304f;
    --in: #5fcf94; --in-soft: #17382a; --out: #f08b62; --out-soft: #3d2419; --bad: #ff8a7f; --bad-soft: #3d1c1a;
    --warn: #f2bd55; --warn-soft: #3a2f15; --move: #b2a6ff; --move-soft: #2b2650;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
body.noscroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.ic { flex: none; display: block; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.wide { grid-column: 1 / -1; }
.print-only { display: none; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--brand); color: var(--brand-ink); }
.sec-name { font-weight: 700; font-size: 16px; }
.sec-switch { display: flex; gap: 4px; background: rgba(255,255,255,.14); padding: 3px; border-radius: 10px; overflow-x: auto; }
.sec-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; opacity: .8; }
.sec-switch button.on { background: var(--surface); color: var(--brand); opacity: 1; }
.env { margin-left: auto; background: #ffd34d; color: #3b2a00; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.page { max-width: 1040px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.tabbar a.on { color: var(--brand); }
.tabbar a.main .ti { background: var(--brand); color: var(--brand-ink); border-radius: 14px; width: 48px; height: 36px; display: grid; place-items: center; margin-top: -2px; }
.tabbar a.main.on .ti { box-shadow: 0 0 0 3px var(--brand-soft); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 232px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
  .side-brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; }
  .side-brand small { display: block; color: var(--muted); font-size: 12px; }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
  .side nav a:hover { background: var(--soft); }
  .side nav a.on { background: var(--brand-soft); color: var(--brand); }
  .side nav a.main { background: var(--brand); color: var(--brand-ink); margin: 6px 0; }
  .side-user { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; font-weight: 600; font-size: 14px; }
  .side-user small { width: 100%; color: var(--muted); font-weight: 400; padding-left: 22px; }
  .tabbar { display: none; }
  .topbar { background: var(--bg); color: var(--ink); padding: 14px 24px 0; position: static; }
  .sec-switch { background: var(--surface); border: 1px solid var(--line); }
  .sec-switch button.on { background: var(--brand); color: var(--brand-ink); }
  .page { padding: 16px 24px 48px; }
}

.brand-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 9px; }

/* ---------- typography & blocks ---------- */
.page-title { font-size: 24px; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head .page-title { margin: 0; }
.page > div > .page-title, .home > .page-title { margin-bottom: 14px; }
.block { margin-top: 26px; }
.block > h2, .block h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.link-sm { margin-left: auto; font-size: 13px; font-weight: 600; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 2px 4px; }
.count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.count.warn { background: var(--warn-soft); color: var(--warn); }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.alert { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-weight: 500; }
.warn-text { color: var(--warn); font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.loading { display: flex; gap: 6px; justify-content: center; padding: 40px; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btn-row.end { justify-content: flex-end; }
.icon-btn { border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 650; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 40px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card.form-grid { grid-template-columns: repeat(3, 1fr); } }
.checks { display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.presets { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--surface); min-height: 42px; font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--brand); color: var(--brand-ink); }

.search { position: relative; flex: 1 1 220px; }
.search .ic { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.search input { padding-left: 38px !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input[type=date] { width: auto; flex: 0 1 auto; }
@media (max-width: 640px) { .filters select, .filters input[type=date] { flex: 1 1 140px; } }

/* ---------- rows (lists) ---------- */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; width: 100%; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.row:hover { background: var(--soft); text-decoration: none; }
.row b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small.per-loc { color: var(--ink); font-variant-numeric: tabular-nums; white-space: pre; }
.row.cancelled { opacity: .55; }
.row.cancelled b { text-decoration: line-through; }
.qty { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.qty.big { font-size: 19px; }
.qty.in { color: var(--in); } .qty.out { color: var(--out); } .qty.bad { color: var(--bad); } .qty.warn { color: var(--warn); } .qty.move { color: var(--move); }

.thumb { border-radius: 9px; object-fit: cover; flex: none; background: var(--soft); border: 1px solid var(--line); }
.thumb.ph { display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 0; }

.tdot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.tdot.in { background: var(--in-soft); color: var(--in); }
.tdot.out { background: var(--out-soft); color: var(--out); }
.tdot.bad { background: var(--bad-soft); color: var(--bad); }
.tdot.move { background: var(--move-soft); color: var(--move); }

/* ---------- home ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.qa:hover { text-decoration: none; border-color: currentColor; }
.qa.in { background: var(--in-soft); color: var(--in); }
.qa.out { background: var(--out-soft); color: var(--out); }
.qa.bad { background: var(--bad-soft); color: var(--bad); }
.qa.move { background: var(--move-soft); color: var(--move); }
.loc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.loc-tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); text-decoration: none; }
.loc-tile:hover { border-color: var(--brand); text-decoration: none; }
.loc-tile span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.loc-tile strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loc-tile small { color: var(--muted); margin-left: 6px; }
.today-line { margin: 10px 2px 0; color: var(--muted); font-size: 14px; }
.today-line b { color: var(--ink); }

/* ---------- stock & item ---------- */
.sum-line { display: flex; gap: 12px; align-items: baseline; padding: 0 4px 8px; color: var(--muted); font-size: 14px; }
.sum-line strong { color: var(--ink); margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; }
.item-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.item-head .thumb { border-radius: 14px; }
.item-total { text-align: right; }
.item-total strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.item-total small { color: var(--muted); }
.attrs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
.attrs dt { font-size: 12px; color: var(--muted); }
.attrs dd { margin: 0; font-weight: 600; }
h3.sub { font-size: 14px; font-weight: 700; margin: 14px 0 6px; display: flex; justify-content: space-between; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 650; background: var(--soft); white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 750; background: var(--soft); border-bottom: 0; }
.tbl tr.grp td { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }
.tbl tr.sub td { font-weight: 650; color: var(--muted); }
.tbl tr.lowrow td:nth-child(2) { color: var(--warn); }
.tbl td.in { color: var(--in); } .tbl td.out { color: var(--out); } .tbl td.strong { font-weight: 750; }
.tbl.compact input, .tbl.compact select { min-height: 36px; padding: 5px 8px; }
.tbl tbody tr:last-child td { border-bottom-color: var(--line); }

/* ---------- entry form ---------- */
.type-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.type-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.type-card:hover { border-color: var(--brand); text-decoration: none; }
.type-card b { display: block; } .type-card small { color: var(--muted); }
.entry { border-top: 4px solid var(--brand); margin-top: -16px; padding-top: 16px; }
.entry.in { border-top-color: var(--in); } .entry.out { border-top-color: var(--out); } .entry.bad { border-top-color: var(--bad); } .entry.move { border-top-color: var(--move); }
.entry > .muted { margin: 4px 0 12px; }
.lines-h { font-size: 16px; margin: 20px 0 8px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line-top { display: flex; align-items: center; gap: 10px; }
.ln { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.line-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.qty-in { font-size: 20px !important; font-weight: 750; font-variant-numeric: tabular-nums; }
.qty-in.over { border-color: var(--warn) !important; background: var(--warn-soft) !important; }
.add-line { margin-top: 10px; border-style: dashed; }
.save-bar { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 10; display: flex; gap: 8px; align-items: center; margin: 16px -16px 0; padding: 10px 16px;
  background: var(--surface); border-top: 1px solid var(--line); }
.save-total { margin-right: auto; } .save-total small { display: block; font-size: 12px; color: var(--muted); }
.save-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .save-bar { bottom: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--r); } }
@media (max-width: 420px) { .save-bar .btn:not(.primary) { display: none; } }

.picker-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.picker-btn.placeholder { color: var(--muted); border-style: dashed; font-weight: 600; }
.pk-name { flex: 1; min-width: 0; font-weight: 650; }
.pk-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list { list-style: none; padding: 0; margin: 10px 0 0; }
.pick-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pick-list button:hover, .pick-list button:focus-visible { background: var(--soft); }
.pk-stock { font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; } .pk-stock small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.pk-stock.zero { color: var(--muted); }
.pad { padding: 16px 6px; }

/* ---------- voucher ---------- */
.v-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.v-no { font-weight: 700; color: var(--muted); margin: 2px 0 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.stamp { border: 2.5px solid var(--bad); color: var(--bad); font-weight: 800; padding: 4px 10px; border-radius: 8px; transform: rotate(-4deg); }
.v-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.v-meta dt { font-size: 12px; color: var(--muted); } .v-meta dd { margin: 0; font-weight: 650; }
.log { list-style: none; padding: 0; margin: 0; font-size: 14px; } .log li { padding: 4px 0; }

/* ---------- reports ---------- */
.rep-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.rep-head .btn-row { margin: 0; }
.report .card { margin-bottom: 14px; }

/* ---------- admin ---------- */
.chips-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 12px; font-weight: 600; font-size: 14px; }
.chips-list li.off { opacity: .5; text-decoration: line-through; }
.chips-list .link-sm { margin: 0; font-size: 12px; }
.inline-add { display: flex; gap: 8px; max-width: 420px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.pill.on { background: var(--in-soft); color: var(--in); }
.photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 30, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: up .18s ease-out; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px 16px; }
.modal h2 { font-size: 17px; }
.modal-body { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { max-width: 520px; border-radius: 16px; } .modal.wide { max-width: 760px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } .loading span { animation: none; opacity: .6; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--surface);
  padding: 11px 18px; border-radius: 12px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.err { background: var(--bad); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: grid; gap: 12px; }
.login h1 { font-size: 22px; margin-top: 6px; } .login p { margin: -8px 0 6px; }

/* ---------- print: A4, black & white ---------- */
@media print {
  @page { size: A4; margin: 12mm 10mm; }
  :root { --ink: #000; --muted: #333; --line: #999; --surface: #fff; --bg: #fff; --soft: #fff; --brand: #000; --brand-soft: #eee; }
  body { background: #fff; font-size: 11pt; }
  .side, .tabbar, .topbar, .no-print, .back, .btn-row, .toast, .filters, .save-bar { display: none !important; }
  .print-only { display: block; }
  .shell { display: block; } .page { padding: 0; max-width: none; }
  .table-wrap, .v-meta, .card, .rows { border: 0; border-radius: 0; overflow: visible; }
  .tbl { font-size: 9.5pt; } .tbl th, .tbl td { padding: 3px 5px; border-bottom: 1px solid #bbb; }
  .tbl th { background: #fff; border-bottom: 1.5px solid #000; color: #000; }
  .tbl tr.grp td { background: #fff; color: #000; border-bottom: 1px solid #000; padding-top: 8px; }
  .tbl tfoot td { border-top: 1.5px solid #000; background: #fff; }
  .tbl a { color: #000; }
  .page-title { font-size: 15pt; } .rep-head { margin-bottom: 6px; } .rep-co { font-weight: 700; margin: 0; }
  .print-head { display: flex; justify-content: space-between; border-bottom: 1.5px solid #000; padding-bottom: 4px; margin-bottom: 8px; }
  .v-meta { padding: 0; grid-template-columns: repeat(3, 1fr); }
  .stamp { border-color: #000; color: #000; }
  .sign-row { display: flex !important; justify-content: space-between; margin-top: 50px; }
  .sign-row span { border-top: 1px solid #000; padding-top: 4px; width: 28%; text-align: center; }
  .tdot { display: none; }
  thead { display: table-header-group; } tr { break-inside: avoid; }
}
.batch-line { margin-top: 3px; }
sup { font-size: .62em; line-height: 0; vertical-align: super; }
.tbl.rep { min-width: 620px; } .tbl.rep td:first-child { white-space: nowrap; } @media print { .tbl.rep { min-width: 0; } }
