/* Majicland Floor Tracker demo — the mockups' CSS, plus the home tiles and the
   office page. Tokens, fonts and rules come from mockups/tablet.html and
   mockups/tv.html; no new colours, no shadows, no radius. */
@import url("brand-tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-size: 22px; line-height: 1.3; }
body.stage-route { overflow: hidden; height: 100vh; }
/* The language boxes are fixed to the viewport so they stay tappable at any
   stage scale; the pages below them reserve the strip. */
body:not(.stage-route) { padding-top: 76px; }
::selection { background: var(--ok); color: var(--fg); }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
.en { font-size: 0.62em; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
[lang="my"] { font-family: "Noto Sans Myanmar", var(--font-ui); }

/* One 1280×800 or 1920×1080 stage, scaled uniformly into the window (the deck's
   technique, deck/index.html:826). */
.stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* ------------------------------------------------------------ language boxes */
.lang { display: flex; gap: 6px; }
.lang .lb { min-width: 64px; height: 56px; padding: 0 14px; display: grid; place-items: center; border: 1.5px solid var(--line); background: transparent; color: var(--fg-muted); font-size: 19px; cursor: pointer; }
.lang .lb.on { border-color: var(--fg); color: var(--fg); font-weight: 600; }
.langbar { position: fixed; top: 12px; right: 12px; z-index: 30; background: var(--bg); }

/* ================================================================= home ==== */
.home { max-width: 1080px; margin: 0 auto; padding: 0 36px 72px; }
.home .mark { font-weight: 600; font-size: 26px; letter-spacing: 0.32em; color: var(--ok-deep); }
.home .mark small { display: block; margin-top: 8px; letter-spacing: 0.02em; font-size: 19px; font-weight: 400; color: var(--fg-muted); }
.home h1 { margin: 26px 0 0; font-size: 40px; font-weight: 600; line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tile { display: grid; place-items: center; height: 200px; border: 1.5px solid var(--fg); color: var(--fg); text-decoration: none; font-size: 34px; font-weight: 600; padding: 0 14px; text-align: center; }
.tile small { display: block; margin-top: 10px; }
.note { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: 19px; }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } .tile { height: 132px; font-size: 30px; } }

/* =============================================================== tablet ==== */
.tablet-screen { width: 1280px; height: 800px; display: grid; grid-template-rows: 250px 1fr; overflow: hidden; }

/* zone panel, the same component as the TV */
.tablet-screen .zone { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; padding: 22px 36px 18px; border-bottom: 1.5px solid var(--fg); }
.tablet-screen .zone h1 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.05; align-self: start; }
.tablet-screen .zone h1 .en { display: block; margin-top: 4px; }
.tablet-screen .picker { display: block; margin-top: 12px; }
.tablet-screen .picker .en { display: block; margin-bottom: 4px; }
.tablet-screen .picker select { height: 56px; min-width: 220px; padding: 0 12px; border: 1.5px solid var(--fg-muted); background: transparent; font-size: 22px; }
.tablet-screen .actual { display: flex; align-items: flex-end; gap: 18px; justify-self: center; }
.tablet-screen .actual .n { font-size: 132px; font-weight: 600; line-height: 0.92; letter-spacing: -0.03em; }
.tablet-screen .actual .lbl { font-size: 18px; color: var(--fg-muted); padding-bottom: 8px; line-height: 1.25; }
.tablet-screen .actual .lbl b { display: block; font-size: 22px; color: var(--fg); font-weight: 600; }
.tablet-screen .status { justify-self: end; text-align: right; }
.tablet-screen .lamp { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 24px; }
.tablet-screen .lamp i { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); }
.tablet-screen .lamp.warn i { background: var(--warn); }
.tablet-screen .lamp.bad { color: var(--bad); }
.tablet-screen .lamp.bad i { background: var(--bad); }
.tablet-screen .status .sync { margin-top: 10px; font-size: 17px; color: var(--fg-muted); }
.tablet-screen .status .lang { margin-top: 8px; justify-content: flex-end; }

/* work area */
.tablet-screen .work { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.tablet-screen .queue { padding: 18px 36px 0; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-height: 0; overflow: hidden; }
.tablet-screen .queue > div { min-height: 0; overflow-y: auto; }
.tablet-screen h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); padding-bottom: 8px; border-bottom: 1px solid var(--fg); display: flex; justify-content: space-between; gap: 12px; }
.tablet-screen h2 b { color: var(--fg); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 17px; }
.tablet-screen h2 span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.tablet-screen .q { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 14px; align-items: center; min-height: 56px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tablet-screen .q .push-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pin); }
.tablet-screen .q .id { font-weight: 600; font-size: 22px; }
.tablet-screen .q .id small { display: block; font-weight: 400; font-size: 18px; color: var(--fg-muted); margin-top: 1px; }
.tablet-screen .q .qty { font-weight: 600; font-size: 24px; text-align: right; }
.tablet-screen .q .qty small { display: block; font-weight: 400; font-size: 15px; color: var(--fg-muted); }
.tablet-screen .q .running-tag { color: var(--ok-deep); font-weight: 500; font-size: 17px; margin-left: 10px; vertical-align: 2px; }
.tablet-screen .q .chip-long { display: inline-block; margin-left: 10px; padding: 0 10px; height: 32px; line-height: 29px; border: 1.5px solid var(--bad); color: var(--bad); font-size: 16px; font-weight: 500; vertical-align: 2px; }
.tablet-screen .empty { padding: 18px 0; color: var(--fg-muted); font-size: 20px; }

/* idle: camera frame */
.tablet-screen .scan { padding: 18px 36px 0; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.tablet-screen .frame { position: relative; min-height: 56px; margin: 14px 0; border: 1.5px solid var(--fg-muted); background: #dcd6cd; display: grid; place-items: center; color: var(--fg); font-size: 20px; cursor: pointer; }
.tablet-screen .frame::before, .tablet-screen .frame::after, .tablet-screen .frame i::before, .tablet-screen .frame i::after { content: ""; position: absolute; width: 44px; height: 44px; border: 3px solid var(--ok-deep); }
.tablet-screen .frame::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.tablet-screen .frame::after { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.tablet-screen .frame i::before { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.tablet-screen .frame i::after { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.tablet-screen .hint { text-align: center; font-size: 20px; color: var(--fg-muted); padding-bottom: 18px; }
.tablet-screen .hint b { display: block; color: var(--fg); font-weight: 600; font-size: 26px; }

/* scanned: one action */
.tablet-screen .action { padding: 14px 36px 12px; display: grid; grid-template-rows: auto 1fr auto; row-gap: 8px; min-height: 0; }
.tablet-screen .card { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tablet-screen .card .id { font-weight: 600; font-size: 30px; grid-column: 1 / -1; }
.tablet-screen .card .name { font-size: 24px; }
.tablet-screen .card .meta { color: var(--fg-muted); font-size: 18px; grid-column: 1 / -1; }
.tablet-screen .card .qty { font-weight: 600; font-size: 34px; text-align: right; }
.tablet-screen .card .qty small { font-weight: 400; font-size: 16px; color: var(--fg-muted); display: block; }
.tablet-screen .card.slim { padding: 8px 0; }
.tablet-screen .card.slim .id { font-size: 26px; }
.tablet-screen .card.slim .name { font-size: 22px; }
.tablet-screen .card.slim .qty { font-size: 30px; }
.tablet-screen .fact { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 22px; }
.tablet-screen .fact b { font-weight: 600; font-size: 28px; }
.tablet-screen .who { display: flex; align-items: center; gap: 14px; font-size: 19px; color: var(--fg-muted); margin-top: 6px; }
.tablet-screen .who b { color: var(--fg); font-weight: 600; }
.tablet-screen .btn { width: 100%; height: 84px; border: 0; background: var(--ok-deep); color: #fff; font-weight: 700; font-size: 52px; letter-spacing: 0.02em; display: grid; place-items: center; line-height: 1; cursor: pointer; }
.tablet-screen .btn .en { color: #fff; font-size: 17px; margin-top: 6px; }
.tablet-screen .btn[disabled] { background: var(--line); color: var(--fg-muted); cursor: default; }
.tablet-screen .btn.bad { background: var(--bad); }
.tablet-screen .row2 { display: flex; gap: 12px; margin-top: 10px; }
.tablet-screen .cancel, .tablet-screen .report { height: 56px; border: 1.5px solid var(--fg-muted); background: transparent; color: var(--fg); font-size: 20px; font-weight: 500; flex: 1; cursor: pointer; }
.tablet-screen .report { border-color: var(--bad); color: var(--bad); font-weight: 600; }
.tablet-screen .cutnote { margin-top: 10px; font-size: 19px; color: var(--fg-muted); text-align: center; }

/* finish and damage: the work area gives way to two columns */
.tablet-screen .full { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.tablet-screen .full > div { padding: 14px 36px 22px; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.tablet-screen .full > div:first-child { border-right: 1px solid var(--line); }
.tablet-screen .counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tablet-screen .ct { min-height: 56px; border: 1.5px solid var(--line); padding: 8px 14px 6px; display: grid; grid-template-rows: auto auto; cursor: pointer; }
.tablet-screen .ct .l { font-size: 17px; color: var(--fg-muted); }
.tablet-screen .ct .n { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.tablet-screen .ct.on { border: 2px solid var(--fg); }
.tablet-screen .ct.good .n { color: var(--ok-deep); }
.tablet-screen .ct.bad .n { color: var(--bad); }
.tablet-screen .ct .n small { font-size: 16px; font-weight: 400; color: var(--fg-muted); margin-left: 6px; letter-spacing: 0; }
.tablet-screen .lbl2 { font-size: 17px; color: var(--fg-muted); }
.tablet-screen .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tablet-screen .chip { min-height: 56px; padding: 0 16px; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: 22px; color: var(--fg); background: transparent; cursor: pointer; }
.tablet-screen .chip.on { border: 2px solid var(--bad); background: var(--bad-tint); font-weight: 600; }
.tablet-screen .origin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.tablet-screen .origin button { height: 56px; display: grid; place-items: center; border: 1.5px solid var(--line); background: transparent; font-size: 22px; cursor: pointer; }
.tablet-screen .origin button.on { border: 2px solid var(--fg); font-weight: 600; }
.tablet-screen .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.tablet-screen .pad button { height: 56px; display: grid; place-items: center; border: 1.5px solid var(--fg-muted); background: transparent; font-size: 34px; font-weight: 600; cursor: pointer; }
.tablet-screen .pad button.mute { color: var(--fg-muted); font-weight: 500; font-size: 22px; }
.tablet-screen .side { display: grid; grid-template-rows: auto 1fr auto; row-gap: 10px; }
.tablet-screen .side .btn { height: 92px; font-size: 44px; }
.tablet-screen .photo { height: 56px; border: 1.5px solid var(--fg-muted); background: transparent; color: var(--fg); font-size: 20px; font-weight: 500; width: 100%; margin-bottom: 10px; cursor: pointer; }
.tablet-screen .photo.on { border-color: var(--ok-deep); color: var(--ok-deep); font-weight: 600; }
.tablet-screen .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 22px; color: var(--fg-muted); }
.tablet-screen .sum b { color: var(--fg); font-weight: 600; font-size: 22px; text-align: right; }
.tablet-screen .sum.err b { color: var(--bad); }

/* =================================================================== tv ==== */
.tv-screen { width: 1920px; height: 1080px; display: grid; grid-template-rows: 56px 470px 1fr 48px; overflow: hidden; }
/* The right padding keeps the clock clear of the fixed language boxes. */
.tv-screen .rail { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 250px 0 40px; border-bottom: 1.5px solid var(--fg); }
.tv-screen .wordmark { font-weight: 600; font-size: 22px; letter-spacing: 0.32em; color: var(--ok-deep); }
.tv-screen .wordmark small { display: inline-block; margin-left: 14px; letter-spacing: 0.04em; font-size: 16px; font-weight: 500; color: var(--fg-muted); text-transform: none; }
.tv-screen .round { text-align: center; font-weight: 600; font-size: 24px; }
.tv-screen .round span { font-weight: 400; color: var(--fg-muted); margin-left: 16px; }
.tv-screen .clock { text-align: right; font-weight: 600; font-size: 26px; }
.tv-screen .clock small { font-weight: 400; font-size: 18px; color: var(--fg-muted); margin-right: 14px; }

.tv-screen .zones { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1.5px solid var(--fg); }
.tv-screen .zone { padding: 18px 34px 16px; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr auto auto; border-top: 8px solid transparent; }
.tv-screen .zone.warn { border-top-color: var(--warn); }
.tv-screen .zone.late { border-top-color: var(--bad); }
.tv-screen .zone:last-child { border-right: 0; }
.tv-screen .zone h2 { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.1; }
.tv-screen .zone h2 .en { display: block; margin-top: 2px; }
.tv-screen .plan { margin-top: 10px; font-size: 22px; color: var(--fg-muted); display: flex; justify-content: space-between; align-items: baseline; }
.tv-screen .plan b { font-weight: 600; color: var(--fg); font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.tv-screen .actual { display: flex; align-items: flex-end; justify-content: space-between; }
.tv-screen .actual .n { font-size: 120px; font-weight: 600; line-height: 0.92; letter-spacing: -0.03em; }
.tv-screen .actual .lbl { font-size: 20px; color: var(--fg-muted); text-align: right; padding-bottom: 8px; line-height: 1.1; white-space: nowrap; flex: none; margin-left: 8px; }
.tv-screen .actual .lbl b { display: block; font-size: 44px; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
.tv-screen .zone.late .actual .lbl b { color: var(--bad); }
.tv-screen .lamp { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-weight: 600; font-size: 40px; line-height: 1; white-space: nowrap; }
.tv-screen .lamp i { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); flex: none; }
.tv-screen .lamp.warn i { background: var(--warn); }
.tv-screen .lamp.bad { color: var(--bad); }
.tv-screen .lamp.bad i { background: var(--bad); }
.tv-screen .lamp .en { margin-left: 4px; font-size: 16px; align-self: flex-end; padding-bottom: 4px; }
.tv-screen .now { margin-top: 10px; font-size: 18px; color: var(--fg-muted); border-top: 1px solid var(--line); padding-top: 8px; line-height: 1.35; }
.tv-screen .now b { color: var(--fg); font-weight: 600; }

/* order rows */
.tv-screen .orders { padding: 10px 40px 0; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.tv-screen .head, .tv-screen .order { display: grid; grid-template-columns: 130px 330px repeat(5, 1fr) 190px; column-gap: 18px; align-items: center; }
.tv-screen .head { height: 36px; padding-bottom: 6px; font-size: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 1px solid var(--fg); }
.tv-screen .list { display: grid; grid-auto-rows: 1fr; min-height: 0; }
.tv-screen .order { border-bottom: 1px solid var(--line); min-height: 0; padding: 4px 0; }
.tv-screen .order:last-child { border-bottom: 0; }
.tv-screen .order .no { font-weight: 600; font-size: 22px; }
.tv-screen .order .model { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-screen .order .model small { color: var(--fg-muted); font-size: 17px; margin-left: 8px; }
.tv-screen .order.complete .no, .tv-screen .order.complete .model { color: var(--fg-muted); }
.tv-screen .order.complete .sets { color: var(--ok-deep); }

/* stage cell — shared with the office table */
.cell { position: relative; height: 26px; border: 1.5px solid var(--fg-muted); border-radius: 2px; overflow: hidden; }
.cell .fill { position: absolute; inset: 0; width: var(--p, 0%); background: var(--ok); }
.cell .v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 16px; font-weight: 600; }
.cell.done { border-color: var(--ok-deep); }
.cell.late { border-color: var(--bad); }
.cell.late .fill { background: var(--bad-tint); }
.cell.late .v { color: var(--bad); }
.cell.late .v::before { content: "ล่าช้า"; font-weight: 500; margin-right: 8px; }
.cell.idle { border-style: dashed; border-color: var(--line); }
.cell.idle .v { color: var(--fg-muted); font-weight: 400; }
.sets { text-align: right; font-size: 22px; font-weight: 600; }
.sets small { font-weight: 400; color: var(--fg-muted); font-size: 17px; }

/* alert rail */
.tv-screen .alerts { display: flex; align-items: center; gap: 48px; padding: 0 40px; border-top: 1.5px solid var(--fg); font-size: 20px; }
.tv-screen .alerts .a { display: flex; align-items: center; gap: 10px; }
.tv-screen .alerts i { width: 14px; height: 14px; border-radius: 50%; background: var(--fg-muted); flex: none; }
.tv-screen .alerts .warn i { background: var(--warn); }
.tv-screen .alerts .bad i { background: var(--bad); }
.tv-screen .alerts b { font-weight: 600; }
.tv-screen .alerts .spacer { flex: 1; }
.tv-screen .alerts .live { color: var(--fg-muted); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.tv-screen .alerts .live i { background: var(--ok); }

/* signature moment: a landed scan rolls the numeral and grows its cell, once */
.roll { display: block; height: 0.92em; overflow: hidden; }
.roll span { display: block; animation: roll 900ms var(--ease-out) 1 both; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-0.92em); } }
.cell .fill.grow { animation: grow 900ms var(--ease-out) 1 both; }
@keyframes grow { from { width: var(--p-from, 0%); } to { width: var(--p); } }
.tablet-screen .btn { animation: land 700ms var(--ease-out) 1 both; }
@keyframes land { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .roll span, .cell .fill.grow, .tablet-screen .btn { animation: none; }
  .roll span { transform: translateY(-0.92em); }
}

/* =============================================================== office ==== */
.office { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 76px); }
.office .nav { border-right: 1.5px solid var(--fg); padding: 22px 0; }
.office .nav .mark { padding: 0 24px 18px; font-weight: 600; font-size: 19px; letter-spacing: 0.3em; color: var(--ok-deep); border-bottom: 1px solid var(--line); }
.office .nav button { display: block; width: 100%; min-height: 56px; padding: 0 24px; text-align: left; border: 0; background: transparent; font-size: 21px; cursor: pointer; border-bottom: 1px solid var(--line); }
.office .nav button.on { font-weight: 600; border-left: 6px solid var(--ok-deep); padding-left: 18px; }
.office main { padding: 26px 36px 64px; min-width: 0; }
.office h1 { margin: 0 0 6px; font-size: 34px; font-weight: 600; }
.office h2 { margin: 26px 0 10px; font-size: 17px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 1.5px solid var(--fg); padding-bottom: 8px; }
.office .sample { color: var(--fg-muted); font-size: 17px; }
.office .head, .office .order { display: grid; grid-template-columns: 120px 280px repeat(5, 1fr) 130px; column-gap: 14px; align-items: center; }
.office .head { height: 36px; font-size: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 1px solid var(--fg); }
.office .order { padding: 8px 0; border-bottom: 1px solid var(--line); }
.office .order .no { font-weight: 600; font-size: 20px; }
.office .order .model { font-size: 19px; }
.office .order .model small { display: block; color: var(--fg-muted); font-size: 16px; }
.office .order.complete .no, .office .order.complete .model { color: var(--fg-muted); }
.office .order.complete .sets { color: var(--ok-deep); }
.office .order .sets { font-size: 20px; }
.office .row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 20px; }
.office .row .k { color: var(--fg-muted); font-size: 17px; }
.office form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.office label.f { display: grid; gap: 4px; font-size: 16px; color: var(--fg-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.office label.f input, .office label.f select { height: 56px; min-width: 160px; padding: 0 12px; border: 1.5px solid var(--fg-muted); background: transparent; font-size: 21px; color: var(--fg); letter-spacing: 0; text-transform: none; font-weight: 400; }
.office .act { height: 56px; padding: 0 22px; border: 1.5px solid var(--fg); background: transparent; font-size: 21px; font-weight: 600; cursor: pointer; }
.office .act.primary { background: var(--ok-deep); border-color: var(--ok-deep); color: #fff; }
.office .pcard { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.office .qr { width: 56px; height: 56px; border: 1.5px solid var(--fg); position: relative; }
.office .qr::before, .office .qr::after { content: ""; position: absolute; width: 16px; height: 16px; border: 3px solid var(--fg); }
.office .qr::before { top: 6px; left: 6px; }
.office .qr::after { bottom: 6px; right: 6px; }
.office .pcard b { font-size: 21px; }
.office .pcard small { display: block; color: var(--fg-muted); font-size: 17px; }
.office .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.office .tabs button { height: 56px; padding: 0 18px; border: 1.5px solid var(--line); background: transparent; font-size: 20px; cursor: pointer; }
.office .tabs button.on { border-color: var(--fg); font-weight: 600; }
.office .drow { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr auto; gap: 14px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.office .drow .nm { font-weight: 600; font-size: 21px; }
.office .drow input[type="text"] { height: 56px; padding: 0 12px; border: 1.5px solid var(--fg-muted); background: transparent; font-size: 20px; width: 100%; }
.office .chk { display: flex; align-items: center; gap: 10px; font-size: 19px; min-height: 56px; }
.office .chk input { width: 28px; height: 28px; }
.office .empty { padding: 18px 0; color: var(--fg-muted); font-size: 20px; max-width: 62ch; }
.office .num { display: flex; align-items: center; gap: 14px; min-height: 68px; border-bottom: 1px solid var(--line); }
.office .num label { font-size: 21px; }
.office .num input { height: 56px; width: 140px; padding: 0 12px; border: 1.5px solid var(--fg-muted); background: transparent; font-size: 24px; font-weight: 600; }
@media (max-width: 760px) {
  .office { grid-template-columns: 1fr; }
  .office .nav { border-right: 0; border-bottom: 1.5px solid var(--fg); padding: 12px 0 0; display: flex; overflow-x: auto; }
  .office .nav .mark { display: none; }
  .office .nav button { width: auto; white-space: nowrap; border-bottom: 0; border-right: 1px solid var(--line); min-height: 56px; }
  .office .nav button.on { border-left: 0; border-bottom: 4px solid var(--ok-deep); padding-left: 24px; }
  .office main { padding: 20px 18px 56px; }
  .office .head { display: none; }
  .office .order { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .office .drow { grid-template-columns: 1fr; padding: 12px 0; }
}

/* panel drawing on the scanned card, and the full-screen view */
.tablet-screen { position: relative; }
.tablet-screen .dwg { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 6px; padding: 6px 0 0; border-top: 1px solid var(--line); min-height: 56px; cursor: pointer; }
.tablet-screen .dwg svg { height: 56px; width: auto; display: block; }
.tablet-screen .dwgcap { font-size: 19px; color: var(--fg-muted); line-height: 1.3; }
.tablet-screen .dwgcap b { display: block; color: var(--fg); font-weight: 600; font-size: 22px; }
.tablet-screen .dwgfull { position: absolute; inset: 0; background: var(--bg); z-index: 5; padding: 28px 36px 24px; display: grid; grid-template-rows: auto 1fr auto; row-gap: 14px; }
.tablet-screen .dwghead b { display: block; font-size: 30px; font-weight: 600; }
.tablet-screen .dwghead span { font-size: 20px; color: var(--fg-muted); }
.tablet-screen .dwgbody { min-height: 0; display: grid; place-items: center; }
.tablet-screen .dwgbody svg { max-height: 100%; max-width: 100%; height: 100%; width: auto; }
.tablet-screen .dwgclose { height: 64px; border: 1.5px solid var(--fg); background: transparent; font-size: 24px; font-weight: 600; cursor: pointer; }
