/* 水气通 W&G Delivery · 经营后台设计系统 v1.0
   设计语言：深水青侧栏 + 浅雾底 + 水蓝/气橙双主色；数字等宽，状态用色克制。 */

:root {
  --ink: #0c2b33;
  --ink-2: #17434e;
  --ink-3: #2f5f6b;
  --paper: #f2f7f8;
  --card: #ffffff;
  --line: #dde9eb;
  --line-2: #edf3f4;
  --muted: #6b8790;
  --muted-2: #93aab1;
  --water: #0f9fb3;
  --water-dark: #087f92;
  --water-soft: #e4f5f7;
  --gas: #ef7127;
  --gas-soft: #fdf0e6;
  --ok: #1f9d6b;
  --ok-soft: #e6f6ef;
  --warn: #c8890d;
  --warn-soft: #fdf4e0;
  --bad: #cf3f3f;
  --bad-soft: #fceceb;
  --info: #3d6ea8;
  --shadow: 0 1px 2px rgba(12, 43, 51, .05), 0 8px 24px -16px rgba(12, 43, 51, .28);
  --shadow-lg: 0 20px 60px -24px rgba(8, 35, 42, .42);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 232px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--water-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: #bde9ef; }

/* ---------- 骨架 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #0b2830 0%, #0a2229 100%);
  color: #cfe3e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 20% -5%, rgba(15, 159, 179, .22), transparent 70%),
    radial-gradient(320px 180px at 100% 100%, rgba(239, 113, 39, .12), transparent 70%);
  pointer-events: none;
}
.brand { position: relative; display: flex; gap: 11px; align-items: center; padding: 22px 20px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
  background: linear-gradient(150deg, var(--water) 0%, #0a6d7d 55%, #07525e 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px rgba(0, 0, 0, .6);
}
.brand-text b { display: block; color: #f2fbfc; font-size: 16px; letter-spacing: .02em; }
.brand-text span { display: block; font-size: 11px; color: #7fa4ab; letter-spacing: .16em; text-transform: uppercase; }
.nav { position: relative; flex: 1; overflow-y: auto; padding: 6px 12px 18px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #1d4650; border-radius: 6px; }
.nav-group { margin: 16px 0 6px; padding: 0 10px; font-size: 11px; letter-spacing: .18em; color: #5f8891; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin: 2px 0;
  border-radius: 9px; color: #bcd6da; font-size: 13.5px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #eafafb; text-decoration: none; }
.nav-item.active { background: rgba(15, 159, 179, .18); border-color: rgba(15, 159, 179, .34); color: #fff; }
.nav-item.active .nav-dot { background: var(--water); box-shadow: 0 0 0 3px rgba(15, 159, 179, .2); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #2c5862; flex: 0 0 6px; }
.nav-badge { margin-left: auto; background: var(--gas); color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 20px; font-variant-numeric: tabular-nums; }
.sidebar-footer { position: relative; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 11.5px; color: #6f959c; }
.sidebar-footer b { color: #b9d5d9; font-weight: 600; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px; height: 64px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h2 { font-size: 17px; }
.crumb { color: var(--muted); font-size: 12.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 30px; background: #fff; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--water-soft); color: var(--water-dark); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.user-chip small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.1; }
.user-chip b { font-size: 12.5px; line-height: 1.2; }
.content { padding: 22px 26px 40px; flex: 1; }

/* ---------- 页面头 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 22px; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.page-head .toolbar { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 卡片与栅格 ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 14.5px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 6px 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); background: #fbfdfd; }

/* ---------- 指标 ---------- */
.stat { position: relative; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--water); opacity: .8; }
.stat.gas::before { background: var(--gas); }
.stat.ok::before { background: var(--ok); }
.stat.warn::before { background: var(--warn); }
.stat-label { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.stat-value { font-size: 27px; font-weight: 680; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--bad); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-weight: 550; font-size: 13px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: #f7fbfb; border-color: #cfe0e3; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--water-dark); border-color: var(--water-dark); color: #fff; }
.btn-primary:hover { background: #066b7b; border-color: #066b7b; }
.btn-gas { background: var(--gas); border-color: var(--gas); color: #fff; }
.btn-gas:hover { background: #d9601a; border-color: #d9601a; }
.btn-danger { background: #fff; border-color: #f0c7c7; color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--water-dark); }
.btn-ghost:hover { background: var(--water-soft); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; letter-spacing: .04em;
  padding: 10px 14px; background: #fafcfc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #f9fcfc; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl th.t-right { text-align: right; }
.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.strong { font-weight: 620; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.cell-sub { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }

/* ---------- 徽标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--warn-soft); color: #9a6c08; }
.badge.accepted { background: #e9f1fd; color: #3468a8; }
.badge.delivering { background: var(--water-soft); color: var(--water-dark); }
.badge.delivered { background: var(--ok-soft); color: var(--ok); }
.badge.completed { background: #eef2f2; color: #57737b; }
.badge.exception { background: var(--bad-soft); color: var(--bad); }
.badge.cancelled { background: #f1f2f3; color: #8b9499; }
.badge.on { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: #f1f2f3; color: #8b9499; }
.badge.water { background: var(--water-soft); color: var(--water-dark); }
.badge.gas { background: var(--gas-soft); color: #b85316; }
.badge.goods { background: #eef1fa; color: #4a5fa8; }
.badge.deposit { background: #f4f0fa; color: #6e4fa8; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--line-2); color: var(--ink-3); font-size: 11px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 550; }
.field > label .req { color: var(--bad); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--water); box-shadow: 0 0 0 3px rgba(15, 159, 179, .13); }
input:disabled, select:disabled { background: #f6f8f8; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span-2 { grid-column: span 2; }
.hint { color: var(--muted); font-size: 11.5px; }
.form-error { color: var(--bad); font-size: 12px; margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch i { width: 36px; height: 20px; border-radius: 20px; background: #d5e1e3; position: relative; transition: background .18s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--water); }
.switch input:checked + i::after { transform: translateX(16px); }

/* ---------- 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(9, 30, 36, .45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s ease; overflow: hidden; }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.modal-head .x:hover { background: var(--line-2); color: var(--ink); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fbfdfd; }
.drawer-mask { position: fixed; inset: 0; background: rgba(9, 30, 36, .38); z-index: 90; animation: fade .15s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 94vw); background: #fff; z-index: 91; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s cubic-bezier(.22, .8, .3, 1); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-foot { display: flex; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line-2); background: #fbfdfd; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #eefafb; font-size: 13px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.toast.ok { background: #10634a; }
.toast.err { background: #8c2b2b; }
.toast.warn { background: #7a5a0d; }
.toast b { font-weight: 600; }

/* ---------- 分段与页签 ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: #eaf1f2; border-radius: 10px; }
.tab { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; font-weight: 550; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(12, 43, 51, .12); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 13px; height: 32px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--water-soft); color: var(--water-dark); font-weight: 600; }

/* ---------- 图表 ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .lbl { fill: var(--muted); font-size: 10px; }
.chart .area { fill: url(#waterFade); }
.chart .line { fill: none; stroke: var(--water); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: #fff; stroke: var(--water); stroke-width: 2; }
.chart .bar { fill: var(--water); rx: 4; }
.chart .bar.alt { fill: var(--gas); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { flex: 0 0 132px; }
.donut-list { display: grid; gap: 7px; font-size: 12px; flex: 1; }
.donut-list .row { display: flex; align-items: center; gap: 7px; }
.donut-list .row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.donut-list i { width: 8px; height: 8px; border-radius: 2px; }

/* ---------- 列表与空态 ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #f9fcfc; }
.list-main { min-width: 0; flex: 1; }
.list-main b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { color: var(--muted); font-size: 11.5px; }
.list-side { text-align: right; font-size: 12px; }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty b { display: block; color: var(--ink-2); margin-bottom: 3px; font-size: 14px; }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px; background: var(--water-soft); display: grid; place-items: center; color: var(--water-dark); font-size: 20px; }
.pager { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding: 12px 18px; }
.pager .info { margin-right: auto; color: var(--muted); font-size: 12px; }
.pager button { border: 1px solid var(--line); background: #fff; min-width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.pager button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 进度与时间线 ---------- */
.progress { height: 6px; border-radius: 6px; background: #eaf1f2; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--water), #4cc4d3); }
.progress.warn i { background: linear-gradient(90deg, #d99a12, #efc14a); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .item { position: relative; padding: 0 0 14px 0; }
.timeline .item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--water); }
.timeline .item.todo::before { border-color: var(--line); background: #f6f9f9; }
.timeline .item b { font-size: 12.5px; }
.timeline .item span { display: block; color: var(--muted); font-size: 11.5px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 7px 10px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.note { padding: 10px 12px; border-radius: 9px; background: #f7fbfb; border: 1px dashed var(--line); color: var(--ink-3); font-size: 12px; }

/* ---------- 登录 ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.login-visual { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a2c35 0%, #0b3d47 45%, #0a5b6a 100%); color: #dff4f6; padding: 54px 54px 40px; display: flex; flex-direction: column; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 85% 15%, rgba(15, 159, 179, .35), transparent 70%), radial-gradient(400px 260px at 10% 90%, rgba(239, 113, 39, .22), transparent 70%); }
.login-visual > * { position: relative; z-index: 1; }
.login-visual h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.02em; margin-top: 60px; }
.login-visual h1 em { font-style: normal; color: #6fe0ea; }
.login-visual p { color: #9cc4ca; max-width: 400px; margin-top: 14px; }
.login-feats { margin-top: auto; display: grid; gap: 10px; }
.login-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #b6d7dc; }
.login-feat b { color: #ecfbfc; font-weight: 600; }
.login-feat .i { flex: 0 0 22px; height: 22px; border-radius: 7px; background: rgba(15, 159, 179, .22); display: grid; place-items: center; color: #7fe3ec; font-size: 11px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: min(360px, 100%); }
.login-card h2 { font-size: 24px; margin-bottom: 5px; }
.login-card .lead { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-card .field { margin-bottom: 15px; }
.login-card .btn { height: 40px; margin-top: 6px; }
.demo-accounts { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: #f7fbfb; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); }
.demo-accounts b { color: var(--ink-2); }
.demo-accounts button { margin: 4px 4px 0 0; }

/* ---------- 顶栏搜索 ---------- */
.search { position: relative; }
.search input { width: 220px; padding-left: 30px; background: #f7fbfb; }
.search::before { content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-52%); color: var(--muted-2); font-size: 15px; }

/* ---------- 配送看板 ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.board-col { background: #f7fbfb; border: 1px solid var(--line); border-radius: 13px; min-height: 300px; display: flex; flex-direction: column; }
.board-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.board-head .n { margin-left: auto; color: var(--muted); font-weight: 500; }
.board-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.task-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.task-card:hover { border-color: #bcdbe0; box-shadow: var(--shadow); }
.task-card .top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.task-card .who { font-size: 13px; font-weight: 620; margin: 4px 0 2px; }
.task-card .addr { font-size: 11.5px; color: var(--ink-3); }
.task-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.task-card .foot .amt { margin-left: auto; color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --sidebar-w: 68px; }
  .brand-text, .nav-group, .nav-item span, .sidebar-footer .full, .nav-badge { display: none; }
  .brand { justify-content: center; padding: 18px 0; }
  .nav-item { justify-content: center; padding: 10px 0; }
  .nav-dot { width: 8px; height: 8px; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar-right { gap: 6px; }
  .user-chip { padding: 4px 6px; }
  .user-chip small { display: none; }
  .user-chip b { font-size: 12px; }
  .content { overflow-x: hidden; }
  .page-head .toolbar { width: 100%; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .search input { width: 130px; }
}
@media (max-width: 560px) {
  .page-title { font-size: 19px; }
  .stat-value { font-size: 23px; }
  .topbar .crumb { display: none; }
  #today-chip { display: none; }
  .search input { width: 110px; }
}
