/* xingbake咖啡团购 · 手机端样式（四页共用） */
:root {
  --green: #00704a;
  --green-dark: #005c3d;
  --green-soft: #e6f2ed;
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #1f2a24;
  --ink-2: #55635c;
  --ink-3: #8b968f;
  --line: #e5e8e3;
  --gold: #c9a227;
  --red: #c0392b;
  --orange: #d97706;
  --blue: #2563eb;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 40, 30, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 24px;
}
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.green { color: var(--green); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* 布局 */
.page { max-width: 720px; margin: 0 auto; padding: 0 14px 90px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(247, 243, 234, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.topbar .title { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.topbar .sub { font-size: 11px; color: var(--ink-3); }
.topbar .spacer { flex: 1; }
.hero {
  background: linear-gradient(150deg, #006241 0%, #00704a 55%, #0a8a5c 100%);
  color: #fff; border-radius: 0 0 26px 26px;
  padding: 22px 20px 26px;
  margin: 0 -14px 16px;
  box-shadow: var(--shadow);
}
.hero .brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: 0.5px; }
.hero .brand .logo {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--green);
  display: grid; place-items: center; font-size: 20px; font-weight: 900;
}
.hero .sub { margin-top: 8px; font-size: 12.5px; opacity: 0.92; }
.hero .announce {
  margin-top: 12px; background: rgba(255,255,255,0.14); border-radius: 12px;
  padding: 8px 12px; font-size: 12.5px; line-height: 1.6;
}
.hero .action-links { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .action-links a, .hero .action-links button {
  background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px; padding: 6px 12px; font-size: 12.5px;
}

/* 卡片 */
.card {
  background: var(--paper); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(20, 40, 30, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head .step {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
}
.card-head h2 { font-size: 16px; }
.card-head .tip { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.card-sub { font-size: 12.5px; color: var(--ink-2); margin: -4px 0 12px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 11px; padding: 9px 14px; font-size: 14px; font-weight: 600;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-dark); }
.btn-soft { background: var(--green-soft); border-color: transparent; color: var(--green); }
.btn-danger { background: #fff; border-color: #f0c9c3; color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }
.btn-lg { padding: 13px 20px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 表单 */
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; background: #fbfbf8; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; font-size: 15px; outline: none; transition: border 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 112, 74, 0.12); }
.textarea { min-height: 70px; resize: vertical; }
.input-sm { padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 44px; }
.input-suffix .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-3); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.hint.ok { color: var(--green); }
.hint.err { color: var(--red); }

/* 标签 / 徽章 / 选项 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all 0.12s ease;
}
.chip.active { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.chip:disabled { opacity: 0.4; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--green-soft); color: var(--green);
}
.badge.gray { background: #eef0ee; color: var(--ink-3); }
.badge.orange { background: #fdf0db; color: var(--orange); }
.badge.red { background: #fbe7e4; color: var(--red); }
.badge.blue { background: #e6efff; color: var(--blue); }
.badge.gold { background: #f8f0d3; color: #8a6d0b; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); }
.dot.gray { background: var(--ink-3); }
.dot.red { background: var(--red); }
.dot.orange { background: var(--orange); }

/* 分段控件 */
.segmented { display: flex; background: #eef0ec; border-radius: 11px; padding: 3px; gap: 3px; overflow-x: auto; }
.segmented button {
  flex: 1; border: none; background: transparent; border-radius: 9px;
  padding: 8px 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap;
}
.segmented button.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* 场次卡 */
.session-list { display: grid; gap: 9px; }
.session-card {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 13px; padding: 11px 13px; background: #fff;
  transition: all 0.12s ease;
}
.session-card.active { border-color: var(--green); background: var(--green-soft); }
.session-card.disabled { opacity: 0.55; background: #fafaf8; }
.session-card .time { font-size: 19px; font-weight: 800; letter-spacing: 0.4px; color: var(--ink); min-width: 62px; }
.session-card.active .time { color: var(--green); }
.session-card .meta { flex: 1; font-size: 12.5px; color: var(--ink-2); }
.session-card .name { font-size: 14px; font-weight: 700; color: var(--ink); }
.session-card .cut { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

/* 商品列表 */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.cat-tabs button {
  flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.cat-tabs button.active { background: var(--green); border-color: var(--green); color: #fff; }
.menu-list { display: grid; gap: 9px; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff;
  transition: all 0.12s ease;
}
.menu-item:active { background: #f6faf8; border-color: var(--green); }
.menu-item .code {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none;
}
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-item .prices { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.menu-item .price-main { color: var(--green); font-weight: 800; font-size: 16px; white-space: nowrap; }
.menu-item .price-main .from { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.menu-item .add { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; border: none; font-size: 20px; line-height: 1; display: grid; place-items: center; flex: none; }

/* 购物车 & 底部行动条 */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(20, 40, 30, 0.08);
  transform: translateY(110%); transition: transform 0.22s ease;
}
.cart-bar.show { transform: translateY(0); }
.cart-bar .cart-icon { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-size: 20px; }
.cart-bar .cart-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.cart-bar .amount { flex: 1; }
.cart-bar .amount .total { font-size: 20px; font-weight: 800; color: var(--green); }
.cart-bar .amount .sub { font-size: 11px; color: var(--ink-3); }

/* 弹层 */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 20, 0.45); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-width: 720px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + var(--safe-bottom));
  transform: translateY(105%); transition: transform 0.24s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.sheet.show { transform: translateY(0); }
.sheet .grab { width: 42px; height: 4px; border-radius: 2px; background: #dfe3df; margin: 6px auto 12px; }
.sheet h3 { font-size: 18px; margin-bottom: 2px; }
.sheet .sheet-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.sheet-close { position: sticky; top: 0; float: right; border: none; background: #f1f3f0; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-2); font-size: 16px; }
.option-group { margin-bottom: 16px; }
.option-group .label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  border: 1.5px solid var(--line); background: #fff; border-radius: 11px;
  padding: 8px 13px; font-size: 13.5px; min-width: 66px; text-align: center;
}
.option small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.option.active { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 700; }
.option.active small { color: var(--green); }
.option:disabled { opacity: 0.4; }
.option.check { display: flex; align-items: center; gap: 6px; text-align: left; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; display: grid; place-items: center; }
.qty-val { font-size: 18px; font-weight: 800; min-width: 26px; text-align: center; }
.sheet-foot { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* 列表 / 订单卡 */
.order-list { display: grid; gap: 10px; }
.order-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 14px; }
.order-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.order-card .no { font-weight: 800; font-size: 14px; letter-spacing: 0.3px; }
.order-card .member { font-weight: 700; color: var(--green); font-size: 14px; }
.order-card .line { font-size: 13.5px; color: var(--ink); padding: 2px 0; }
.order-card .line .q { color: var(--green); font-weight: 700; }
.order-card .meta-line { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.order-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.order-card .total { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--green); }
.order-card.done { background: #f8faf8; opacity: 0.85; }

/* 汇总表 */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-wrap table.table { min-width: 460px; }
.admin-body table.table { min-width: 700px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.table th { background: #f4f7f3; color: var(--ink-2); font-weight: 700; text-align: left; padding: 9px 10px; white-space: nowrap; font-size: 12px; }
table.table td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.table tr.total td { font-weight: 800; background: #f7faf6; }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-table td.cups { font-weight: 800; color: var(--green); font-size: 15px; }
.summary-table { table-layout: fixed; min-width: 0 !important; }
.summary-table th:nth-child(1) { width: 33%; }
.summary-table th:nth-child(2) { width: 17%; }
.summary-table th:nth-child(3) { width: 11%; }
.summary-table th:nth-child(4) { width: 27%; }
.summary-table th:nth-child(5) { width: 12%; }
.summary-table td, .summary-table th { white-space: normal; padding: 8px 6px; font-size: 12.5px; }
.summary-table .badge { padding: 1px 6px; font-size: 10.5px; white-space: nowrap; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chips.scroll-x .chip { flex: none; }
#sessTodayList .session-card { flex-wrap: wrap; }
#sessTodayList .session-card > .row { width: 100%; justify-content: flex-end; margin-top: 4px; }
#addonsTable { min-width: 0 !important; }
#sessDefTable { min-width: 520px; }

/* 统计卡 */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 2px; letter-spacing: 0.3px; }
.stat .v small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.stat.green .v { color: var(--green); }
.stat.gold .v { color: #8a6d0b; }
.stat.red .v { color: var(--red); }
.stat.blue .v { color: var(--blue); }
.stat.wide { grid-column: span 2; }

/* 空状态 / 加载 */
.empty { padding: 26px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty .icon { font-size: 30px; display: block; margin-bottom: 6px; opacity: 0.7; }
.loading { padding: 30px; text-align: center; color: var(--ink-3); font-size: 13px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0, 112, 74, 0.2); border-top-color: var(--green);
  display: inline-block; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 提示条 */
#toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(20px);
  background: rgba(25, 35, 30, 0.92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 200; opacity: 0; pointer-events: none; transition: all 0.25s ease; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: rgba(190, 45, 30, 0.95); }

/* 拼单弹窗（学生页顶部，后台可改文案） */
.promo-popup {
  position: fixed; top: 10px; left: 0; right: 0; z-index: 90;
  width: calc(100% - 24px); max-width: 696px; margin: 0 auto;
  display: none; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #ffe0b2; border-radius: 14px;
  padding: 10px 36px 10px 12px;
  box-shadow: 0 10px 32px rgba(120, 70, 0, 0.18);
}
.promo-popup.show { display: flex; animation: promoIn 0.3s ease; }
@keyframes promoIn { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.promo-popup .promo-emoji { font-size: 24px; flex: none; animation: promoBounce 1.2s infinite alternate; }
@keyframes promoBounce { from { transform: scale(1); } to { transform: scale(1.18); } }
.promo-popup .promo-body { flex: 1; min-width: 0; }
.promo-popup .promo-text { font-size: 14px; font-weight: 800; color: #b45309; line-height: 1.4; }
.promo-popup .promo-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.promo-popup .promo-close { position: absolute; right: 8px; top: 8px; border: none; background: #f1f3f0; color: var(--ink-3); width: 22px; height: 22px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }

/* 骑手地图与最优路线 */
.map-wrap { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #d7e8dc; margin: 4px 0 10px; }
.map-wrap img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-wrap .map-line { fill: none; stroke: #e11d48; stroke-width: 0.55; stroke-dasharray: 1.2 0.9; vector-effect: non-scaling-stroke; opacity: 0.9; }
.map-marker { position: absolute; transform: translate(-50%, -50%); background: #00704a; color: #fff; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); padding: 0 5px; }
.map-marker.start { background: #b45309; border-radius: 8px; font-size: 10px; height: 18px; padding: 0 6px; }
.route-stops { display: flex; flex-direction: column; gap: 6px; }
.route-stop { display: flex; gap: 8px; align-items: flex-start; background: #f8faf7; border-radius: 10px; padding: 8px 10px; border: 1px solid #e6ebe6; }
.route-stop .seq { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #00704a; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.route-stop .body { flex: 1; min-width: 0; }
.route-stop .bname { font-weight: 700; font-size: 14px; }
.route-stop .members { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.route-stop .members b { color: #00704a; }
.route-stop.hidden-stop { opacity: 0.55; }


/* 登录页 */
.login-wrap { max-width: 420px; margin: 0 auto; padding: 16vh 22px 40px; }
.login-wrap .logo-big {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 34px; margin: 0 auto 16px; box-shadow: var(--shadow);
}
.login-wrap h1 { text-align: center; font-size: 22px; }
.login-wrap .sub { text-align: center; color: var(--ink-3); font-size: 13px; margin: 6px 0 26px; }
.login-wrap .card { padding: 22px; }

/* 管理端 */
.admin-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 30; background: var(--green); color: #fff; }
.admin-top .title { font-weight: 800; font-size: 16px; }
.admin-top .who { font-size: 11.5px; opacity: 0.85; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 29; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: none; border: none; background: transparent; border-radius: 9px; padding: 8px 13px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.admin-tabs button.active { background: var(--green-soft); color: var(--green); }
.admin-body { padding: 14px; max-width: 980px; margin: 0 auto; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; }
.toolbar label { font-size: 12px; color: var(--ink-3); }
.section-title { font-size: 15px; font-weight: 800; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; min-width: 120px; flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.form-grid .field { margin-bottom: 0; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.collapse-body { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: none; }
.order-card.expanded .collapse-body { display: block; }
.order-card .items-detail { font-size: 12.5px; color: var(--ink-2); }
.order-card .items-detail div { padding: 2px 0; }

/* 打印 */
@media print {
  body { background: #fff; }
  .no-print, .admin-tabs, .admin-top, .toolbar, .btn, #toast { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .page, .admin-body { padding: 0; max-width: none; }
  table.table th { background: #eee; }
}

@media (min-width: 560px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat.wide { grid-column: span 4; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .session-list { grid-template-columns: 1fr 1fr; }
}
