/**
 * 摩天小助手 · 统一界面（浅色专业风，无日夜切换）
 */
:root {
  --bg: #eef0f4;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --border: #e2e5eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-secondary: #4b5563;
  --muted: #6b7280;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.shell { display: flex; min-height: 100vh; }

/* —— 侧栏 —— */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}
.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.userbox {
  padding: 0.9rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}
.user-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.user-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 0.35rem; }
.user-meta.mtl-nick { color: var(--accent); }

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
/* 導航下方：上方為開關與三個分類，下方黑框拉滿 */
.sidebar-panel {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  width: 100%;
}
.sidebar-panel-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-panel .admin-log-console {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
}
.nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.12s, color 0.12s;
}
.nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.btn-ghost {
  display: block;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 1rem;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

/* —— 主区 —— */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.main-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.main-topbar .main-logout {
  margin-top: 0;
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}
.main-inner {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem;
  overflow: auto;
}

/* —— 卡片 —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.card h1 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.muted { color: var(--muted); font-size: 0.9rem; }

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
/* 跟價開關用原生 checkbox 僅作狀態，不可套用表單 input 的 focus 邊框，否則會露出藍方塊 */
input.mtl-switch-input[type="checkbox"]:focus,
input.mtl-switch-input[type="checkbox"]:focus-visible {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--danger);
}
.alert-ok {
  background: var(--ok-bg);
  border: 1px solid #bbf7d0;
  color: var(--ok);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.data th,
table.data td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-off { background: #f3f4f6; color: var(--muted); }

/* —— 登录（全屏随机背景图） —— */
.login-page {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #1e293b;
}
.login-bg-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: none;
}
.login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.login-card .sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.login-captcha-row .login-captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.login-captcha-img {
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.login-captcha-refresh {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.login-captcha-refresh:hover {
  background: #eef0f4;
  color: var(--text);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section-title:first-of-type { margin-top: 0.5rem; }

.quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.quota-item {
  padding: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.quota-item .q-label { font-size: 0.75rem; color: var(--muted); }
.quota-item .q-val { font-size: 1.125rem; font-weight: 700; color: var(--text); }

/* —— 售票 / 订单表格 —— */
.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* 在售項目外層（海報僅在展開的詳情區 .mtl-detail-inner--poster，不在整表鋪滿） */
.mtl-shows-section {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem 0.75rem;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.table-wrap .mtl-table {
  font-size: 0.8125rem;
  min-width: 720px;
}
.table-wrap .mtl-table thead th {
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap .mtl-table tbody tr.mtl-show-row:hover {
  background: #fafbfc;
}
.table-wrap .mtl-table tbody tr.mtl-show-row td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-wrap .mtl-table th,
.table-wrap .mtl-table td { white-space: nowrap; }

/* 主表項目行：跟價狀態占位（與截圖「开」一致，非滑塊） */
.mtl-main-follow {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

/* 跟价开关：對齊 tlbs-switch（active #13ce66 / inactive #ff4949），扁平膠囊滑塊 */
.mtl-col-switch {
  text-align: center !important;
  vertical-align: middle;
  width: 1%;
}
.mtl-switch {
  --mtl-sw-active: #13ce66;
  --mtl-sw-inactive: #ff4949;
  --mtl-sw-w: 48px;
  --mtl-sw-h: 26px;
  --mtl-sw-knob: 20px;
  --mtl-sw-pad: 3px;
  --mtl-sw-travel: calc(var(--mtl-sw-w) - var(--mtl-sw-knob) - var(--mtl-sw-pad) * 2);
  position: relative;
  display: inline-block;
  width: var(--mtl-sw-w);
  height: var(--mtl-sw-h);
  vertical-align: middle;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
/*
 * 原生 checkbox 僅保留語義與鍵盤操作，必須「螢幕外裁切」。
 * 用 opacity:0 鋪滿軌道時，Chrome/Edge 仍會畫出藍底方塊（你截圖那種）。
 */
label.mtl-switch input.mtl-switch-input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: transparent !important;
  cursor: pointer !important;
  z-index: 2;
}
.mtl-switch-slider {
  display: block;
  width: var(--mtl-sw-w);
  height: var(--mtl-sw-h);
  border-radius: 999px;
  position: relative;
  z-index: 1;
  background: var(--mtl-sw-inactive);
  box-shadow: none;
  transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.mtl-switch-slider::after {
  content: "";
  position: absolute;
  width: var(--mtl-sw-knob);
  height: var(--mtl-sw-knob);
  left: var(--mtl-sw-pad);
  top: calc((var(--mtl-sw-h) - var(--mtl-sw-knob)) / 2);
  background: #fff;
  border-radius: 50%;
  box-shadow: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.mtl-switch-input:checked + .mtl-switch-slider {
  background: var(--mtl-sw-active);
}
.mtl-switch-input:checked + .mtl-switch-slider::after {
  transform: translateX(var(--mtl-sw-travel));
}
.mtl-switch-input:focus-visible + .mtl-switch-slider {
  box-shadow: 0 0 0 3px rgba(255, 73, 73, 0.45);
}
.mtl-switch-input:checked:focus-visible + .mtl-switch-slider {
  box-shadow: 0 0 0 3px rgba(19, 206, 102, 0.5);
}
.mtl-switch-input:disabled + .mtl-switch-slider {
  opacity: 0.45;
  cursor: not-allowed;
}
.mtl-switch-input:disabled {
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .mtl-switch-slider,
  .mtl-switch-slider::after {
    transition-duration: 0.01ms;
  }
}

code {
  font-size: 0.85em;
  background: var(--surface-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.mtl-hidden { display: none !important; }
.table-wrap tr.mtl-show-detail[hidden],
.table-wrap tr.mtl-show-detail.mtl-hidden {
  display: none !important;
}

.mtl-name-cell { white-space: normal !important; max-width: 300px; }
.mtl-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.7rem;
  cursor: pointer;
  vertical-align: middle;
}
.mtl-expand:hover { background: var(--surface-muted); border-color: var(--border-strong); }
.mtl-show-title { font-weight: 600; font-size: 0.9rem; }
.mtl-show-oid {
  font-size: 0.72rem;
  margin-top: 0.2rem;
  font-family: ui-monospace, monospace;
  color: var(--muted);
}

.mtl-detail-cell {
  padding: 0 !important;
  background: #f9fafb !important;
  border-bottom: 1px solid var(--border) !important;
}
.mtl-detail-inner {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}
/* 僅展開區內顯示海報：contain 不裁切溢出整頁，疊層較透以便看清圖 */
.mtl-detail-inner.mtl-detail-inner--poster {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.28);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.32) 100%),
    var(--mtl-poster);
  background-size: 100% 100%, contain;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 1px solid rgba(226, 229, 235, 0.85);
}
.mtl-detail-inner.mtl-detail-inner--poster .mtl-nested-wrap {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(226, 229, 235, 0.75);
  backdrop-filter: blur(4px);
}
.mtl-detail-inner.mtl-detail-inner--poster .mtl-nested thead th {
  background: rgba(247, 248, 250, 0.55);
}
.mtl-detail-inner.mtl-detail-inner--poster .mtl-nested tbody tr:hover {
  background: rgba(250, 251, 252, 0.72);
}

.mtl-nested-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.mtl-nested {
  min-width: 960px;
  font-size: 0.8125rem;
  width: 100%;
  border-collapse: collapse;
}
.mtl-nested thead th {
  background: var(--surface-muted);
  padding: 0.6rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mtl-nested tbody tr:hover { background: #fafbfc; }
.mtl-nested tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.mtl-nested tbody tr:last-child td { border-bottom: none; }
.mtl-nested th,
.mtl-nested td { text-align: center; }
.mtl-nested th:first-child,
.mtl-nested td:first-child,
.mtl-nested th:nth-child(2),
.mtl-nested td:nth-child(2) { text-align: left; }
.mtl-nested th.mtl-col-switch,
.mtl-nested td.mtl-col-switch { text-align: center !important; }

.col-min { color: #15803d; font-variant-numeric: tabular-nums; }
.mtl-min-price-cell {
  min-width: 6.5rem;
  vertical-align: middle;
}
.mtl-min-price-display {
  cursor: default;
  user-select: none;
}
.mtl-min-price-cell .mtl-min-price-input {
  width: 100%;
  max-width: 9rem;
  padding: 0.25rem 0.45rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}
.col-quote { color: #c2410c; font-weight: 600; font-variant-numeric: tabular-nums; }
.col-platform { color: #1d4ed8; font-variant-numeric: tabular-nums; }

.badge-stop {
  background: #f3f4f6;
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-limit {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.badge-above-market {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.mtl-detail-empty { margin: 0.5rem 0; }

.card--mtl h1 { margin-bottom: 1rem; }
.card--mtl .section-title:first-of-type { margin-top: 0.5rem; }
.btn-sm {
  padding: 0.28rem 0.6rem;
  font-size: 0.8125rem;
}
.card--mtl .mtl-bound-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
}
.card--mtl .mtl-unbind-form {
  margin: 0;
  display: inline-flex;
}

/* —— 側欄內：控制台 + 暗色日誌 —— */
.admin-panel-card {
  background: #252830;
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.85rem;
  border: 1px solid #3d4454;
}
.admin-panel-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #c5cad6;
}
.admin-panel-row:last-of-type {
  margin-bottom: 0.65rem;
}
.admin-panel-label {
  flex: 1 1 auto;
  min-width: 6rem;
}
.admin-panel-num {
  width: 3.25rem;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  border: 1px solid #3d4454;
  background: #1a1d24;
  color: #e8eaef;
  font-size: 0.8rem;
  text-align: center;
}
.admin-panel-unit {
  color: #9ca3b0;
  font-size: 0.78rem;
}
.admin-panel-switch {
  margin-left: auto;
}
.admin-panel-switch--solo {
  margin-left: auto;
}
.admin-panel-refresh {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: #13ce66;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-panel-refresh:hover {
  background: #0fb85c;
}
.admin-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-log-tab {
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #3d4454;
  background: #2a2f3a;
  color: #b8bec9;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.admin-log-tab:hover {
  background: #323846;
  color: #e8eaef;
}
.admin-log-tab.is-active {
  background: #1a1d24;
  color: #f3f4f6;
  border-color: #4b5568;
}
.admin-log-console {
  background: #0c0d10;
  border: 1px solid #2a2f3a;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
}
.admin-log-muted {
  color: #6b7280;
}
.admin-log-line {
  margin-bottom: 0.35rem;
  word-break: break-word;
}
.admin-log-ts {
  color: #22d3ee;
  margin-right: 0.25rem;
}
.admin-log-text {
  color: #e5e7eb;
}
.admin-log-tag {
  font-weight: 600;
  margin-right: 0.15rem;
}
.admin-log-tag--order { color: #c4b5fd; }
.admin-log-tag--price { color: #d946ef; }
.admin-log-tag--operation { color: #38bdf8; }
.admin-log-tag--error { color: #f87171; }
.admin-log-tag--warn { color: #fbbf24; }
.admin-log-tag--info { color: #9ca3af; }

/* —— 控制台 · 订单管理 —— */
.dash-orders-card { margin-top: 1rem; }
.dash-orders-title {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.dash-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.dash-order-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dash-order-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.dash-order-table {
  min-width: 1180px;
  font-size: 0.8125rem;
  width: 100%;
  border-collapse: collapse;
}
.dash-order-table thead th {
  background: var(--surface-muted);
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dash-order-table tbody td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dash-order-table tbody tr:nth-child(even) { background: #f9fafb; }
.dash-order-table tbody tr:hover { background: #f3f4f6; }
.dash-order-table .num { text-align: right; }
.dash-order-table th.num { text-align: right; }
.dash-order-cell-wide {
  max-width: 320px;
  white-space: normal;
}
.dash-order-show { font-weight: 600; font-size: 0.85rem; line-height: 1.35; }
.dash-order-rule {
  color: #2563eb;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.dash-order-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.dash-pill {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  font-weight: 500;
}
.dash-order-total { font-weight: 600; margin-top: 0.25rem; }
.dash-tag-overdue {
  display: inline-block;
  font-size: 0.72rem;
  color: #c2410c;
  border: 1px solid #fdba74;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}
.dash-order-tags { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.dash-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.dash-page-info { font-size: 0.875rem; color: var(--muted); }
.small { font-size: 0.8rem; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
