/* 店家后台 /dian/（2026-11-13）：手机优先，电脑有侧边栏 */
:root {
  --accent: #8f1418;
  --ink: #1f1a16;
  --muted: #6d645b;
  --faint: #9a9087;
  --line: #ece4da;
  --bg: #f8f4ee;
  --card: #fff;
  --soft: color-mix(in srgb, var(--accent) 8%, #fff);
  --chart: #b8323a;
  --r: 16px;
  --s-check-bg: #fdf1dc; --s-check: #8a5a00;
  --s-make-bg: #e4f3e7; --s-make: #24663a;
  --s-ready-bg: #e3edf8; --s-ready: #234f7d;
  --s-done-bg: #efedea; --s-done: #5c5650;
  --s-cancel-bg: #f6e6e6; --s-cancel: #8b2b2b;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.ow-boot { padding: 40px 20px; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.ow-app { min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid transparent; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; }
.top__titles { min-width: 0; flex: 1; }
.top__site { font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__act { flex: none; }
.main { padding: 8px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 1120px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); text-decoration: none; color: var(--faint); font-size: .72rem; font-weight: 700; }
.nav a svg { width: 24px; height: 24px; }
.nav a.is-on { color: var(--accent); }
.nav .dot { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }
.side { display: none; }
.nav .is-wide { display: none; }

@media (min-width: 960px) {
  .ow-app { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .nav { display: none; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: var(--card); border-right: 1px solid var(--line); }
  .side__brand { font-weight: 800; font-size: 1.05rem; padding: 4px 10px 2px; }
  .side__sub { color: var(--muted); font-size: .8rem; padding: 0 10px 14px; }
  .side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 650; }
  .side a svg { width: 20px; height: 20px; color: var(--muted); }
  .side a.is-on { background: var(--soft); color: var(--accent); }
  .side a.is-on svg { color: var(--accent); }
  .side .dot { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: .75rem; line-height: 22px; text-align: center; padding: 0 6px; }
  .side__foot { margin-top: auto; display: grid; gap: 2px; font-size: .9rem; }
  .side__foot a { font-weight: 500; color: var(--muted); }
  .top { padding: 18px 28px 12px; }
  .main { padding: 6px 28px 40px; }
}

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; }
.card--soft { background: var(--soft); border-color: transparent; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.card__h h2 { font-size: 1.02rem; }
.card__h a, .link { font-size: .88rem; font-weight: 700; text-decoration: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; } }
@media (max-width: 719px) { .grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stat { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-size: clamp(1.15rem, 5.4vw, 1.6rem); overflow-wrap: break-word; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat--warn { background: var(--s-check-bg); border-color: transparent; }
.stat--warn b { color: var(--s-check); }
.stat--go { background: var(--s-make-bg); border-color: transparent; }
.stat--go b { color: var(--s-make); }
.stat--ready { background: var(--s-ready-bg); border-color: transparent; }
.stat--ready b { color: var(--s-ready); }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn--ghost { background: var(--card); color: var(--accent); }
.btn--plain { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--danger { background: var(--card); color: #a12626; border-color: #e7c4c4; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: .88rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; }
.pill i { font-style: normal; font-size: .78rem; color: var(--muted); font-weight: 700; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.is-on i { color: rgba(255, 255, 255, .7); }
@media (min-width: 960px) { .pills { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.b-check { background: var(--s-check-bg); color: var(--s-check); }
.b-pending { background: var(--s-check-bg); color: var(--s-check); }
.b-make { background: var(--s-make-bg); color: var(--s-make); }
.b-ready { background: var(--s-ready-bg); color: var(--s-ready); }
.b-done { background: var(--s-done-bg); color: var(--s-done); }
.b-cancelled { background: var(--s-cancel-bg); color: var(--s-cancel); }
.b-soft { background: var(--soft); color: var(--accent); }
.b-grey { background: #f0ece7; color: var(--muted); }

.search { position: relative; display: block; margin: 0 0 10px; }
.search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 14px 0 42px; }
.search svg { position: absolute; left: 13px; top: 13px; width: 20px; height: 20px; color: var(--faint); }

/* order list */
.olist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ocard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); }
.ocard:active { transform: scale(.995); }
.ocard__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ocard__no { font-weight: 800; }
.ocard__name { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard__items { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ocard__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.ocard__foot b { color: var(--ink); margin-left: auto; font-size: .98rem; }
.when { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); }
.when svg { width: 15px; height: 15px; color: var(--muted); }

/* order detail */
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.lines tr:last-child td { border-bottom: 0; }
.lines small { color: var(--muted); display: block; }
.lines .tot td { font-weight: 800; font-size: 1.02rem; border-top: 2px solid var(--ink); border-bottom: 0; }
.actbar { position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 10; display: flex; gap: 8px; padding: 10px; margin: 14px 0; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(40, 20, 10, .08); }
.actbar .btn { flex: 1; }
@media (min-width: 960px) { .actbar { bottom: 14px; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { position: relative; padding-left: 18px; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.timeline li.is-cust::before { background: var(--accent); }
.timeline time { display: block; color: var(--faint); font-size: .76rem; }
.receipt img { border-radius: 12px; border: 1px solid var(--line); max-height: 420px; object-fit: contain; background: #fafafa; }

/* production */
.make { width: 100%; border-collapse: collapse; }
.make th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 0 0 6px; }
.make td { padding: 10px 0; border-top: 1px solid var(--line); }
.make .n { text-align: right; font-variant-numeric: tabular-nums; width: 70px; }
.make .n b { font-size: 1.2rem; }
.slot-h { font-weight: 800; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.slot-h svg, .row > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* products */
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--ink); }
.pcard__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #f2ece5; }
.pcard__name { font-weight: 750; line-height: 1.3; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: .86rem; }
.pcard__price { font-weight: 800; }
.bar { height: 6px; border-radius: 3px; background: #f0ebe4; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .86rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .8rem; }
.slotrow input, .field input[type=text], .field input[type=number], .field input[type=date], .field input[type=time], .field input[type=tel], .field input[type=email], .field input[type=url], .field select, .field textarea, .ow-form input[type=text], .ow-form input[type=password] {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .ow-form input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 1px; border-color: var(--accent); }
.fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.switch span { font-weight: 650; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: #ddd5cc; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }
.slots { display: grid; gap: 8px; }
.slotrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px 40px; gap: 6px; align-items: center; }
.slotrow input { min-height: 42px !important; padding: 8px !important; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.iconbtn svg { width: 18px; height: 18px; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3eee8; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.photo--add { display: grid; place-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; cursor: pointer; border-style: dashed; text-align: center; padding: 6px; }
.photo--main::after { content: attr(data-l); position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; text-align: center; padding: 2px; }
.vars { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vars th { text-align: left; font-size: .78rem; color: var(--muted); padding: 0 4px 6px 0; }
.vars td { padding: 4px 4px 4px 0; vertical-align: middle; }
.vars input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.vars td:first-child { font-weight: 650; min-width: 90px; }

/* sheet, toast */
.scrim { position: fixed; inset: 0; background: rgba(20, 12, 8, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sheet p { margin: 0 0 14px; color: var(--muted); }
@media (min-width: 720px) { .scrim { align-items: center; } .sheet { border-radius: 22px; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 650; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px); }
.toast--err { background: #8b2020; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* chart (reports): single series, one hue */
.chart { position: relative; }
.chart svg { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .grid line { stroke: #ece6de; stroke-width: 1; }
.chart .axis text { fill: var(--faint); font-size: 10px; }
.chart rect.b { fill: var(--chart); }
.chart rect.hit { fill: transparent; cursor: pointer; }
.chart rect.b.is-on { fill: var(--accent); }
.chart .lbl { fill: var(--ink); font-size: 11px; font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.share { display: grid; gap: 8px; }
.share__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .9rem; }
.share__row .bar { grid-column: 1 / -1; margin-top: 0; }
.share__row .bar i { background: var(--chart); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-size: .78rem; font-weight: 700; padding: 0 0 6px; white-space: nowrap; }
.tbl td + td, .tbl th + th { padding-left: 12px; }
.tbl td { border-top: 1px solid var(--line); padding: 9px 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }

/* login */
.ow-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, var(--soft), transparent), var(--bg); }
.ow-login__card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; box-shadow: 0 20px 60px rgba(60, 30, 10, .08); }
.ow-login__brand { margin: 0 0 4px; color: var(--accent); font-weight: 800; letter-spacing: .02em; }
.ow-login h1 { font-size: 1.6rem; margin-bottom: 18px; }
.ow-form { display: grid; gap: 14px; }
.ow-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.ow-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.ow-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.ow-alert { background: var(--s-cancel-bg); color: var(--s-cancel); border-radius: 12px; padding: 10px 12px; font-weight: 650; }
.ow-note { color: var(--muted); }
.ow-login__small { text-align: center; margin: 16px 0 0; font-size: .88rem; }

/* print: production list only */
@media print {
  .nav, .side, .top__act, .top__back, .pills, .noprint, .actbar { display: none !important; }
  body { background: #fff; }
  .ow-app { display: block; }
  .card { border: 0; padding: 0; break-inside: avoid; }
  .main { padding: 0; }
}

/* 2026-11-13 第 2 批：多选订单、取货清单、打印 */
.ocard.is-picking { position: relative; padding-left: 50px; cursor: pointer; }
.ocard.is-picking::before { content: ""; position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #d6ccc1; background: #fff; }
.ocard.is-picked { border-color: var(--accent); background: var(--soft); }
.ocard.is-picked::before { content: "✓"; color: #fff; font-weight: 900; font-size: 14px; line-height: 18px; text-align: center; background: var(--accent); border-color: var(--accent); }
.actbar .small { align-self: center; white-space: nowrap; }
.checklist td { vertical-align: top; }
.checklist .box { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 5px; margin-top: 2px; }
.top__act .btns { flex-wrap: nowrap; }
@media print {
  .top { position: static; padding: 0 0 10px; }
  .top__title { font-size: 18pt; }
  .card { margin-bottom: 10px; }
  .btn, .btns { display: none !important; }
  .receipt img { max-height: 240px; }
  a { color: inherit; text-decoration: none; }
}

.oline select, .oline input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px; }
.oline input { width: 76px; flex: none; text-align: center; }
.actbar--bulk { flex-wrap: wrap; }
.actbar--bulk .small { flex: 1 0 100%; }
.actbar--bulk .btn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; padding: 6px 8px; }

/* 2026-11-15 桌上扫码点单：厨房、桌子、桌上 QR */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.kt { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kt--late { border-color: var(--s-check); }
.kt__hd { display: flex; align-items: baseline; gap: 8px; }
.kt__table { font-size: 1.5rem; line-height: 1.1; }
.kt__no { color: var(--muted); font-weight: 700; }
.kt__age { margin-left: auto; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.kt--late .kt__age { color: var(--s-check); }
.kt__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kt__items li { display: flex; gap: 10px; font-size: 1.12rem; line-height: 1.3; }
.kt__items li > b { flex: none; min-width: 2.2em; }
.kt__items small, .kt__items em { display: block; font-size: .9rem; color: var(--muted); }
.kt__items em { font-style: normal; font-weight: 800; color: var(--s-check); }
.kt__note { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--s-check-bg); color: var(--s-check); font-weight: 700; }
.kt__done { width: 100%; min-height: 52px; font-size: 1.05rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tcard { display: flex; flex-direction: column; gap: 2px; min-height: 112px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--ink); }
.tcard__n { font-size: 1.6rem; line-height: 1.1; }
.tcard__sum { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tcard__meta, .tcard__st { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tcard--busy { background: var(--s-make-bg); border-color: transparent; }
.tcard--busy .tcard__st { color: var(--s-make); }
.tcard--ready { background: var(--s-ready-bg); border-color: transparent; }
.tcard--ready .tcard__st { color: var(--s-ready); }
.tdue { display: flex; flex-direction: column; justify-content: center; margin-right: 12px; }
.tdue span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.tdue b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.sheet .btns { flex-wrap: wrap; }
.sheet .btns .btn { min-width: 40%; }
.qrsheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qrcard { background: #fff; border: 1px dashed #bbb; border-radius: 14px; padding: 14px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.qrcard__site { font-size: .85rem; color: #555; font-weight: 700; }
.qrcard__t { font-size: 1.7rem; font-weight: 900; margin: 2px 0 6px; color: #111; }
.qrcard__code svg { width: 100%; max-width: 180px; height: auto; display: block; margin: 0 auto; }
.qrcard__scan { font-weight: 900; font-size: 1.05rem; margin-top: 6px; color: #111; }
.qrcard__pay { font-size: .82rem; color: #555; }
@media print {
  .qrsheet { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qrcard { border: 1px dashed #999; }
  body:has(.qrsheet) .top { display: none; }
}

/* 2026-11-16 今日结算 close the day */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.daynav b { font-size: 1rem; text-align: center; }
.closecard { text-align: center; }
.closecard__lbl { margin: 8px 0 0; font-weight: 800; color: var(--muted); font-size: .9rem; }
.closecard__sum { display: block; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.tbl__total td { border-top: 2px solid var(--line); }
@media print { .daynav { display: none; } }
