/* DOM POS — ສີກາເຟອົບອຸ່ນ · ຈໍແທັບເລັດກ່ອນ ແລ້ວໂທລະສັບ */
:root {
  --bg: #f6efe6; --panel: #fffaf4; --ink: #2a1a10; --muted: #7c6a5c; --line: #e6d9c9;
  --brand: #3b2618; --brand2: #6b3f22; --accent: #c8862e; --accent-ink: #fff;
  --ok: #2f7d4a; --err: #b3372a; --warn: #c27a00; --chip: #f0e4d4;
  --r: 12px; --shadow: 0 2px 10px rgba(59, 38, 24, .08);
  font-family: "Noto Sans Lao", "Lao UI", "Phetsarath OT", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 15px; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--brand2); }
input[type=color] { padding: 4px; }
h1, h2, h3 { margin: 0 0 12px; } h2 { font-size: 22px; } h3 { font-size: 17px; margin-top: 20px; }
small { font-size: 12.5px; }
.err { color: var(--err); } .ok { color: var(--ok); } .muted-t { color: var(--muted); }
.hint { color: var(--muted); display: block; margin: 6px 0; font-size: 13px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row.gap { justify-content: flex-start; gap: 10px; } .row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }

/* ປຸ່ມ */
.btn { border: 0; border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; background: var(--chip); font-weight: 600; }
.btn.primary { background: var(--brand2); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: var(--err); color: #fff; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pay { width: 100%; background: var(--accent); color: var(--accent-ink); font-size: 19px; min-height: 58px; margin-top: 10px; }
.icon-btn { border: 0; background: transparent; font-size: 18px; min-width: 40px; min-height: 40px; border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: var(--chip); }
.link { border: 0; background: none; color: var(--brand2); cursor: pointer; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand2); color: #fff; font-size: 12px; text-align: center; margin-left: 4px; }
.badge.warn { background: var(--warn); }
.tag { display: inline-block; background: var(--chip); border-radius: 6px; padding: 0 6px; font-size: 12px; color: var(--brand2); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }

/* ຊິບ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 42px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.chip small { color: var(--muted); }
.chip.on { background: var(--brand2); color: #fff; border-color: var(--brand2); }
.chip.on small { color: #f3dcc2; }
.chip.big { min-height: 52px; padding: 10px 18px; font-weight: 600; border-radius: 12px; }
.chip:disabled { opacity: .5; }

/* ໂຄງ */
.shell { display: flex; height: 100vh; height: 100dvh; }
.nav { width: 96px; background: var(--brand); color: #f3e6d6; display: flex; flex-direction: column; align-items: stretch; padding: 8px 6px; gap: 2px; overflow-y: auto; flex-shrink: 0; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 6px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand b { font-size: 12px; } .brand small { font-size: 11px; opacity: .75; display: block; }
.nav-i { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; color: inherit; text-decoration: none; position: relative; }
.nav-i .ni { font-size: 22px; } .nav-i .nn { font-size: 12.5px; }
.nav-i.on { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-i .badge { position: absolute; top: 4px; right: 10px; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.user { border: 0; background: rgba(255, 255, 255, .08); color: inherit; border-radius: 10px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; font-size: 12px; }
.user small { opacity: .7; font-size: 11px; }
.sync { display: flex; align-items: center; gap: 6px; font-size: 11px; color: inherit; text-decoration: none; justify-content: center; text-align: center; }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: #aaa; flex-shrink: 0; }
.sync.ok i { background: #4cc070; } .sync.busy i { background: #e8b73a; } .sync.off i { background: #e07b39; } .sync.err i { background: #e0453a; } .sync.local i { background: #9a8f86; }
.main { flex: 1; overflow: auto; min-width: 0; }
.page { padding: 18px 20px 40px; max-width: 1200px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.form, .form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.sub-card { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin: 8px 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.empty.small { padding: 14px; }

/* ຟອມ */
.field { display: flex; flex-direction: column; gap: 4px; }
.field-l { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.mini { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); width: 130px; }
.opt-t { font-weight: 700; margin-top: 12px; color: var(--brand2); }
.money { text-align: right; font-variant-numeric: tabular-nums; }
.qty-in { width: 100px; } .unit { width: 50px; color: var(--muted); }
.recipe { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.filters { margin-bottom: 12px; } .filters input, .filters select { width: auto; min-width: 150px; }

/* ແຖບ */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs.inline { margin: 0; border: 0; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; color: var(--muted); }
.tabs button.on { color: var(--brand2); border-color: var(--accent); }

/* ຕາຕະລາງ */
.tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fbf5ed; position: sticky; top: 0; }
.tbl .r, .r { text-align: right; }
.tbl.click tbody tr { cursor: pointer; } .tbl.click tbody tr:hover { background: #fbf3e8; }
.tbl tr.muted { opacity: .55; } .tbl tr.refund td { color: var(--err); } .tbl tr.low { background: #fff3df; }
.bar-h { width: 22%; } .bar-c { width: 22%; } .bar { display: block; height: 10px; border-radius: 5px; background: var(--accent); min-width: 2px; margin-top: 5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; }
.stats b { font-size: 21px; font-variant-numeric: tabular-nums; } .stats small { color: var(--muted); }
.stats .warn { border-color: var(--warn); background: #fff3df; }

/* ໜ້າຂາຍ */
.sell { display: grid; grid-template-columns: 1fr 380px; height: 100vh; height: 100dvh; }
.catalog { display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 0; }
.cat-bar { display: flex; gap: 10px; align-items: center; }
.low-pill { white-space: nowrap; background: #fff3df; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 8px 12px; text-decoration: none; font-weight: 600; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; flex-shrink: 0; scrollbar-width: thin; }
.cat-tabs button { border: 0; background: #fff; border-radius: 999px; padding: 9px 16px; white-space: nowrap; cursor: pointer; border-left: 5px solid var(--cc, var(--brand2)); font-weight: 600; min-height: 42px; }
.cat-tabs button.on { background: var(--brand2); color: #fff; }
.shift-warn { background: #fff3df; border: 1px solid var(--warn); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; overflow-y: auto; padding-bottom: 90px; align-content: start; }
.tile { border: 0; background: #fff; border-radius: 12px; min-height: 96px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; cursor: pointer; box-shadow: var(--shadow); border-top: 5px solid var(--cc, var(--brand2)); }
.tile:active { transform: scale(.97); }
.tile-n { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.tile-p { color: var(--brand2); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px; border-bottom: 1px solid var(--line); gap: 8px; }
.cart-h > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.cart-acts { display: flex; align-items: center; gap: 4px; }
.lines { flex: 1; overflow-y: auto; padding: 4px 12px; }
.line { display: grid; grid-template-columns: 1fr auto 82px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line-n { font-weight: 600; } .line-o { font-size: 12.5px; color: var(--muted); } .line-o.disc { color: var(--ok); }
.line-t { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.qty.big button { width: 46px; height: 46px; } .qty.big span { min-width: 34px; font-size: 18px; }
.cart-f { padding: 12px; border-top: 1px solid var(--line); }
.cart-f .row { padding: 3px 0; font-variant-numeric: tabular-nums; }
.cart-f .row.disc { color: var(--ok); }
.cart-f .row.total { font-size: 20px; font-weight: 700; }
.cart-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cart-fab { display: none; }
.only-phone { display: none; }

/* ປັອບອັບ */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 18, 10, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: 16px; width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; }
.modal-b { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.modal-f { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.confirm-msg { font-size: 17px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pick { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.pick.row { flex-direction: row; padding: 4px 4px 4px 12px; }
.pick.on { border-color: var(--brand2); background: #f7ebdc; }
.pick small { color: var(--muted); }
.ticket-open { border: 0; background: none; text-align: left; display: flex; flex-direction: column; cursor: pointer; padding: 6px 0; }
.line-disc { padding: 4px 0; border-bottom: 1px dashed var(--line); } .line-disc .money { width: 130px; }
.pay-methods { display: flex; gap: 8px; } .pay-methods .chip { flex: 1; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.change { font-size: 22px; font-weight: 700; color: var(--ok); margin: 8px 0; } .change.short { color: var(--warn); font-size: 16px; }
.pay-list { background: #fff; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.qr { text-align: center; } .qr img { max-width: 260px; width: 100%; border-radius: 10px; }
.nowrap { white-space: nowrap; }
.warn-t { color: var(--warn); }
.archive-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #eef4fc; border: 1px solid #b7d3f6; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
/* ຮູບເມນູ */
.tile.has-img { padding: 0 0 8px; overflow: hidden; justify-content: flex-start; gap: 4px; }
.tile.has-img .tile-n, .tile.has-img .tile-p { padding: 0 10px; }
.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--chip); }
.prod-head { display: flex; gap: 14px; align-items: flex-start; }
.prod-head .grow { display: flex; flex-direction: column; gap: 10px; }
.img-pick { width: 120px; height: 120px; flex-shrink: 0; border: 2px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); cursor: pointer; overflow: hidden; background: #fff; }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick input { display: none; }
.thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.empty-thumb { background: var(--chip); display: inline-block; }
.pick-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
/* ຕິດຕໍ່ສາຂາ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.contact { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.contact.mine { border-color: var(--accent); box-shadow: 0 0 0 2px #f3dcb8 inset; }
.c-line { display: flex; flex-direction: column; font-size: 14px; word-break: break-word; }
.c-line .muted-t { font-size: 12px; }
/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dash-grid .card { margin: 0; } .dash-grid .wide { grid-column: 1 / -1; }
.dash-grid h3 { margin: 0 0 10px; font-size: 15px; }
.chart { position: relative; }
.svgc { width: 100%; height: auto; display: block; overflow: visible; }
.svgc .grid { stroke: #e1e0d9; stroke-width: 1; } .svgc .cross { stroke: #898781; stroke-width: 1; stroke-dasharray: 3 3; }
.svgc .ax { fill: #898781; font-size: 11px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 13px; color: #52514e; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hb-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; align-items: center; cursor: default; padding: 2px 0; }
.hb-l { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.hb-track { height: 14px; } .hb-bar { display: block; height: 14px; border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-v { font-size: 13px; color: #52514e; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: #2a1a10; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow); transform: translateY(-100%); }
.tip div:first-child { font-weight: 700; }
.total-row td { font-weight: 700; background: #fbf5ed; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.designer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.preview-wrap { position: sticky; top: 10px; }
.receipt-frame { height: 640px; border: 1px solid var(--line); background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.switch input { width: 22px; height: 22px; }
.order-bar { padding: 8px 12px 4px; border-bottom: 1px solid var(--line); }
.order-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.otype { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 2px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-height: 48px; justify-content: center; }
.otype span { font-size: 17px; }
.otype.on { background: var(--brand2); color: #fff; border-color: var(--brand2); }
.order-info { font-size: 13px; margin-top: 4px; }
@media (max-width: 820px) { .designer { grid-template-columns: 1fr; } .preview-wrap { position: static; } }
.waste-btn { white-space: nowrap; min-height: 44px; }
.receipt-preview { width: 100%; max-width: 384px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.qr-thumb { width: 90px; border-radius: 8px; border: 1px solid var(--line); }
.done { text-align: center; padding: 10px 0; }
.done-no { color: var(--muted); } .done-total { font-size: 34px; font-weight: 700; margin: 6px 0; }
.done-change { font-size: 24px; color: var(--ok); } .done-change b { font-size: 34px; }
.redeem { margin-top: 8px; }

/* ໜ້າ PIN / ຕັ້ງຄ່າ */
.lock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 30% 20%, #6b3f22, #2a1a10); }
.lock-card { background: var(--panel); border-radius: 20px; padding: 24px; width: 100%; max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.lock-card.wide { max-width: 620px; text-align: left; }
.lock-card .logo { width: 80px; height: 80px; border-radius: 50%; align-self: center; object-fit: cover; }
.lock-card .sync { color: var(--muted); }
.staff-grid, .setup-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.setup-choice { grid-template-columns: 1fr 1fr; }
.staff-b { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 80px; justify-content: center; }
.staff-b small { color: var(--muted); }
.pinpad { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0; }
.pin-dots { display: flex; gap: 14px; } .pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand2); } .pin-dots span.on { background: var(--brand2); }
.pin-err { color: var(--err); font-weight: 600; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.pin-keys button { height: 64px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 24px; cursor: pointer; }
.pin-keys button.muted { font-size: 15px; color: var(--muted); }

/* ແຈ້ງເຕືອນ */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: #2a1a10; color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.toast.err { background: var(--err); }

/* ໂທລະສັບ */
@media (max-width: 820px) {
  .shell { flex-direction: column-reverse; }
  .nav { width: 100%; flex-direction: row; padding: 4px; overflow-x: auto; height: auto; flex-shrink: 0; }
  .brand, .nav-foot .user small { display: none; }
  .nav-i { min-width: 62px; padding: 6px 2px; } .nav-i .ni { font-size: 20px; } .nav-i .nn { font-size: 11.5px; }
  .nav-foot { margin: 0 0 0 auto; flex-direction: row; padding: 0; align-items: center; }
  .sync span { display: none; }
  .user { font-size: 11px; max-width: 72px; }
  .user span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .toasts { bottom: 140px; width: max-content; max-width: 90vw; }
  .sell { grid-template-columns: 1fr; height: calc(100dvh - 64px); position: relative; }
  .cart { display: none; position: fixed; inset: 0; z-index: 40; border: 0; }
  .sell.show-cart .cart { display: flex; }
  .only-phone { display: inline-flex; }
  .cart-fab { display: block; position: fixed; left: 16px; right: 16px; bottom: 76px; z-index: 30; border: 0; border-radius: 14px; min-height: 54px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); padding-bottom: 140px; }
  .page { padding: 14px 16px 40px; }
  .grid2, .setup-choice { grid-template-columns: 1fr; }
  .filters input, .filters select { min-width: 0; flex: 1 1 140px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
}
@media print { body > *:not(#print-frame) { display: none; } }

/* ເລືອກລາຍການເພື່ອພິມ (v1.6.0) */
.sel-col { width: 40px; padding-right: 0 !important; }
.sel-chk { width: 22px; height: 22px; accent-color: var(--brand2); cursor: pointer; }
.tbl tr.off td:not(.sel-col) { opacity: .45; }
.qty-in { width: 5.5em; text-align: right; }
.pick.row .grow { flex: 1; padding: 6px 0; }
.pick.row .sel-chk { margin-right: 8px; }