/* ============================================================
   配送助手 · 原型设计系统
   作者：为美团外卖代理商配送管理场景定制（内部管理工具原型）
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #1a1400; }

:root {
  --ink: #15171C;
  --ink2: #4C5566;
  --ink3: #858E9E;
  --ink4: #AEB6C2;
  --line: #E6EAF1;
  --line2: #F0F3F8;
  --bg: #F3F5F9;
  --card: #FFFFFF;

  --brand: #FFC400;
  --brand-2: #FFE066;
  --brand-bg: #FFF8E0;
  --brand-ink: #6B4E00;

  --red: #E1352B;   --red-bg: #FDECEA;
  --orange: #EE8614; --orange-bg: #FFF3E2;
  --green: #10A05A; --green-bg: #E7F7EF;
  --blue: #2A6BF2;  --blue-bg: #EBF1FE;
  --purple: #7A5AF8; --purple-bg: #F1EEFE;
  --slate: #64748B; --slate-bg: #F1F5F9;

  --r: 14px; --r-sm: 10px; --r-lg: 20px;
  --sh: 0 1px 2px rgba(16,24,40,.04), 0 10px 26px -16px rgba(16,24,40,.18);
  --sh-lg: 0 30px 70px -30px rgba(16,24,40,.35);
  --sidebar: 232px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ---------- 骨架 ---------- */
.app { display: flex; min-height: 100vh; }

/* 侧栏收起 / 展开 */
.sidebar { transition: width .22s ease, flex-basis .22s ease; }
.app.sb-min .sidebar { width: 64px; flex: 0 0 64px; overflow-x: hidden; }
.app.sb-min .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.sb-min .brand > div:not(.brand-mark) { display: none; }
.app.sb-min .nav-label { display: none; }
.app.sb-min .nav-group { padding: 8px 8px 2px; }
.app.sb-min .nav-item { justify-content: center; padding: 10px 0; gap: 0; }
.app.sb-min .nav-item > span:not(.nav-ico):not(.nav-badge) { display: none; }
.app.sb-min .nav-badge { position: absolute; transform: translate(16px, -12px); }
.app.sb-min .nav-item { position: relative; }
.app.sb-min .sidebar-foot { display: none; }
.app.sb-min .sidebar::-webkit-scrollbar { width: 0; }

.sb-toggle {
  width: 34px; height: 34px; margin-right: 6px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; flex: 0 0 34px;
}
.sb-toggle svg { width: 16px; height: 16px; display: block; }
.sb-toggle:hover { background: var(--line2); color: var(--ink); border-color: var(--line3, #d7dbe3); }

.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  background: #14161B; color: #E9ECF2;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #333842; border-radius: 3px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: var(--brand); color: #1a1400;
  display: grid; place-items: center;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: #8B94A3; margin-top: 1px; }

.nav-group { padding: 8px 10px 2px; }
.nav-label {
  font-size: 11px; color: #6C7686; padding: 10px 8px 6px; letter-spacing: .6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; color: #C6CCD8; cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #1E222A; color: #fff; }
.nav-item.active { background: #262B34; color: #fff; font-weight: 600; }
.nav-item.active .nav-ico { color: var(--brand); }
.nav-ico { width: 17px; height: 17px; flex: 0 0 17px; color: #8B94A3; }
.nav-ico svg { width: 100%; height: 100%; display: block; }
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px; display: grid; place-items: center;
}
.nav-item.active .nav-badge { background: var(--brand); color: #1a1400; }
.sidebar-foot { margin-top: auto; padding: 14px 16px 18px; font-size: 11px; color: #6C7686; line-height: 1.7; border-top: 1px solid #22262E; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 60px; flex: 0 0 60px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.crumb { font-size: 13px; color: var(--ink3); }
.crumb b { color: var(--ink); font-weight: 650; }
.topbar-spacer { flex: 1; }

.city-switch {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
  background: #fff; font-size: 13px; cursor: pointer;
}
.city-switch:hover { border-color: var(--ink4); }
.city-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.page { padding: 20px 22px 70px; max-width: 1620px; width: 100%; }

/* ---------- 标题区 ---------- */
.page-hd { display: flex; align-items: flex-end; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-hd h1 { margin: 0; font-size: 23px; letter-spacing: -.2px; }
.page-hd .sub { color: var(--ink3); font-size: 13px; padding-bottom: 3px; }
.page-hd .spacer { flex: 1; }
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: 1px; height: 8px;
  background: var(--brand); z-index: -1; border-radius: 2px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh);
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line2);
}
.card-hd h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.card-hd .sub { font-size: 12px; color: var(--ink3); }
.card-hd .spacer { flex: 1; }
.card-bd { padding: 16px; }
.card-bd.tight { padding: 8px 4px; }
.card-bd.flush { padding: 0; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line2); background: #FCFDFE; border-radius: 0 0 var(--r) var(--r); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- KPI ---------- */
.kpi { padding: 15px 16px; }
.kpi .l { font-size: 12.5px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 27px; font-weight: 700; letter-spacing: -.6px; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--ink3); margin-left: 2px; }
.kpi .d { font-size: 12px; margin-top: 6px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.kpi.accent { background: linear-gradient(180deg, #FFFDF4, #fff); border-color: #F3E6BB; }
.kpi.warn { background: linear-gradient(180deg, #FFF7F6, #fff); border-color: #F7DAD6; }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--slate-bg); color: var(--slate); white-space: nowrap;
}
.b-red { background: var(--red-bg); color: var(--red); }
.b-orange { background: var(--orange-bg); color: var(--orange); }
.b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-purple { background: var(--purple-bg); color: var(--purple); }
.b-yellow { background: var(--brand-bg); color: var(--brand-ink); }
.b-dark { background: #1B1E24; color: #fff; }
.b-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; color: var(--ink2); cursor: pointer;
}
.chip:hover { border-color: var(--ink4); }
.chip.on { background: #1B1E24; color: #fff; border-color: #1B1E24; }
.chip .n { font-variant-numeric: tabular-nums; color: var(--ink3); }
.chip.on .n { color: #B9C0CC; }

.tag-lv { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 550; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink4); background: #FCFDFF; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #1a1400; font-weight: 700; }
.btn.primary:hover { background: #FFD233; }
.btn.dark { background: #1B1E24; border-color: #1B1E24; color: #fff; }
.btn.dark:hover { background: #2A2F38; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--line2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--red); border-color: #F3C9C4; background: #FFF8F7; }
.btn.danger:hover { background: #FFEDEA; border-color: var(--red); color: var(--red); }
.btn.icon { width: 34px; padding: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 分段控件：带分隔线的方角样式（参照飞书筛选条） */
.seg {
  display: inline-flex; align-items: stretch; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.seg button {
  border: 0; background: transparent; padding: 7px 14px;
  font-size: 13px; color: var(--ink2); cursor: pointer;
  white-space: nowrap; flex: none;
  border-right: 1px solid var(--line2);
  transition: background .12s, color .12s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: #FAFBFD; color: var(--ink); }
.seg button.on {
  background: #FFFBF0; color: #B26A00; font-weight: 650;
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* ---------- 表格 ---------- */
.chip { white-space: nowrap; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--ink3);
  padding: 10px 14px; background: #FAFBFD; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:hover { background: #FCFDFF; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl .mono { font-family: var(--mono); font-size: 12px; color: var(--ink2); white-space: nowrap; }
.tbl .strong { font-weight: 650; }
/* 中文按词换行：避免"压单预/警"这种一字一行 */
.tbl th, .tbl td { word-break: keep-all; }
.tbl.mini th, .tbl.mini td { padding: 8px 12px; }
.tbl.clickable tbody tr { cursor: pointer; }
.tbl .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--line2); display: grid; place-items: center; font-size: 12px; color: var(--ink2); font-weight: 600; }

/* ---------- 进度 / 条 ---------- */
.bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--ink); min-width: 4px; }
/* 值为 0 时不要因为最小宽度而出现一小段填充 */
.bar > i[style*="width:0%"], .bar > i[style*="width:0.0%"] { min-width: 0; }
.bar.thin { height: 4px; }
.bar > i.g { background: var(--green); }
.bar > i.y { background: var(--brand); }
.bar > i.r { background: var(--red); }
.bar > i.o { background: var(--orange); }
.bar > i.b { background: var(--blue); }

.meter { display: flex; align-items: center; gap: 10px; }
.meter .bar { flex: 1; }
.meter .n { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink2); min-width: 42px; text-align: right; }

/* ---------- SVG 图表 ---------- */
.chart { width: 100%; display: block; }
.chart text { font-size: 11px; fill: var(--ink3); font-family: inherit; }
.chart .grid-l { stroke: var(--line2); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }

.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar { display: grid; grid-template-columns: 136px 1fr 76px; align-items: center; gap: 10px; font-size: 12.5px; }
.hbar .k { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); }

/* ---------- 六档阶梯 ---------- */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.step {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px;
  background: #fff; position: relative; overflow: hidden;
}
.step .h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.step .cond { font-size: 11.5px; color: var(--ink3); margin-top: 7px; line-height: 1.6; }
.step .act { font-size: 11.5px; color: var(--ink2); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.step .lv { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.step.hot { border-color: #F5CFC9; background: linear-gradient(180deg,#FFF7F6,#fff); }
.step .fire { position: absolute; right: 8px; top: 8px; font-size: 10.5px; color: var(--red); font-weight: 700; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 15px 4px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -17px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink4);
}
.tl-item.ok::before { border-color: var(--green); }
.tl-item.warn::before { border-color: var(--orange); }
.tl-item.bad::before { border-color: var(--red); }
.tl-item .t { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tl-item .m { font-size: 13px; margin-top: 1px; }
.tl-item .m b { font-weight: 650; }

/* ---------- 黑底结论条（沿用视频里的表达） ---------- */
.takeaway {
  background: #15171C; color: #fff; border-radius: 12px;
  padding: 13px 18px; font-size: 14.5px; font-weight: 650; text-align: center;
  letter-spacing: .2px;
}
.takeaway em { font-style: normal; color: var(--brand); }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: #15171C; color: #fff;
}
.login-left { padding: 54px 58px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-left::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,196,0,.30), transparent 68%);
}
.login-eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--brand); font-weight: 700; }
.login h1 { font-size: 42px; line-height: 1.2; margin: 16px 0 12px; letter-spacing: -1px; }
.login h1 em { font-style: normal; color: var(--brand); }
.login .lead { color: #A9B1BF; font-size: 14.5px; max-width: 460px; line-height: 1.85; }
.login-points { margin-top: auto; display: grid; gap: 12px; }
.login-point { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #D5DAE3; }
.login-point i { color: var(--brand); font-style: normal; font-weight: 800; }
.login-right { background: #F3F5F9; color: var(--ink); padding: 54px 58px; display: flex; flex-direction: column; justify-content: center; }
.role-grid { display: grid; gap: 10px; margin: 18px 0 22px; }
.role {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: .15s;
}
.role:hover { border-color: var(--ink4); transform: translateY(-1px); }
.role.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,196,0,.22); }
.role .rico { width: 34px; height: 34px; border-radius: 10px; background: var(--line2); display: grid; place-items: center; flex: 0 0 34px; }
.role.on .rico { background: var(--brand-bg); }
.role .rt { font-weight: 650; font-size: 13.5px; }
.role .rd { font-size: 12px; color: var(--ink3); }
.role .rk { margin-left: auto; font-size: 11.5px; color: var(--ink3); }

/* ---------- 手机壳（骑手端） ---------- */
.phone-stage { display: grid; place-items: center; padding: 26px 10px 40px; }
.phone {
  width: 375px; height: 760px; background: #fff; border-radius: 46px;
  border: 11px solid #17191E; box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 8px;
  width: 108px; height: 26px; background: #17191E; border-radius: 14px; z-index: 5;
}
.phone-scr { position: absolute; inset: 0; overflow-y: auto; padding: 46px 0 18px; background: #F5F6F9; }
.phone-scr::-webkit-scrollbar { width: 0; }
.pui-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 62px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 4; }
.pui-nav div { flex: 1; display: grid; place-items: center; font-size: 10.5px; color: var(--ink3); gap: 3px; }
.pui-nav div.on { color: var(--ink); font-weight: 650; }
.pui-nav div.on .pico { color: var(--brand-ink); }
.pui-nav .pico { width: 20px; height: 20px; }
.p-card { background: #fff; border-radius: 14px; margin: 10px 12px; padding: 14px; }
.p-hero { background: linear-gradient(150deg,#FFD84D,#FFC400); margin: 0; border-radius: 0 0 22px 22px; padding: 16px 16px 20px; }
.p-title { font-size: 12px; color: #6B4E00; opacity: .8; }
.p-big { font-size: 34px; font-weight: 750; letter-spacing: -1px; color: #241C00; font-variant-numeric: tabular-nums; }
.p-btn { height: 46px; border-radius: 12px; background: #1B1E24; color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 15px; }
.p-btn.y { background: var(--brand); color: #1a1400; }
.p-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.p-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.p-row:last-child { border-bottom: 0; }
.p-kv { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; }
.p-kv .k { color: var(--ink3); }
.p-kv .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.p-sec { font-size: 12px; color: var(--ink3); margin: 14px 14px 6px; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15,17,21,.42); backdrop-filter: blur(2px); z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: min(720px, 100%); max-height: 86vh; overflow: auto; }
.modal-hd { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: #fff; }
.modal-hd h3 { margin: 0; font-size: 16px; }
.modal-bd { padding: 20px; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.kv-list { display: grid; grid-template-columns: 92px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv-list .k { color: var(--ink3); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(10px);
  background: #1B1E24; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--sh-lg); opacity: 0; transition: .22s; z-index: 90; pointer-events: none;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 空态 / 提示 ---------- */
.empty { padding: 46px 20px; text-align: center; color: var(--ink3); font-size: 13.5px; }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .5; }
.note {
  background: var(--brand-bg); border: 1px solid #F3E6BB; color: #5C4708;
  border-radius: var(--r-sm); padding: 10px 13px; font-size: 12.5px; line-height: 1.7;
}
.note.blue { background: var(--blue-bg); border-color: #D6E2FD; color: #1D4BB8; }
.note.red { background: var(--red-bg); border-color: #F7DAD6; color: #9E2A22; }

.muted { color: var(--ink3); }
.small { font-size: 12px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; } .mb14 { margin-bottom: 14px; }
.pad { padding: 16px; }
.hr { height: 1px; background: var(--line2); margin: 14px 0; }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }
.file-drop {
  border: 1.5px dashed #D3DAE6; border-radius: var(--r); padding: 26px; text-align: center;
  background: #FCFDFF; color: var(--ink2);
}
.file-drop b { color: var(--ink); }

/* 打印/窄屏 */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .g2, .g4, .g5, .g3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-left, .login-right { padding: 32px 24px; }
  .page { padding: 14px 14px 60px; }
}

.inp.sm { height: 28px; padding: 0 6px; font-size: 12.5px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }

/* 恶劣天气录入表单 */
.wx-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wx-field { display: flex; flex-direction: column; min-width: 0; }
.wx-full { width: 100%; }
.wx-label { font-size: 12px; color: var(--ink3); margin-bottom: 6px; letter-spacing: .2px; }
.wx-inp { width: 100%; height: 38px; }
.wx-time { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wx-time-grp { display: flex; align-items: center; gap: 6px; background: var(--line2); border-radius: 10px; padding: 5px 10px; }
.wx-time-grp select { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 4px; font-size: 13.5px; font-family: var(--mono); color: var(--ink); }
.wx-time-cap { font-size: 11.5px; color: var(--ink3); }
.wx-colon { color: var(--ink3); font-family: var(--mono); }
.wx-dash { color: var(--ink3); font-size: 15px; }
@media (max-width: 900px) { .wx-form { grid-template-columns: 1fr; } }

/* 二级菜单 */
.nav-parent { position: relative; }
.nav-caret { margin-left: auto; font-size: 10px; color: #6C7686; transition: transform .18s; }
.nav-parent.collapsed .nav-caret { transform: rotate(-90deg); }
.nav-sub { padding: 2px 0 2px 0; margin-left: 18px; border-left: 1px solid #262B34; overflow: hidden; }
.nav-sub.collapsed { display: none; }
.nav-subitem { font-size: 12.8px; padding: 7px 10px 7px 12px; color: #A8B0BE; }
.nav-subitem:hover { color: #fff; }
.nav-subitem.active { color: var(--brand); font-weight: 600; }
.app.sb-min .nav-sub { display: none; }

/* 左对齐表格（四城对比这类以名称为主的表） */
.tbl.tbl-left th, .tbl.tbl-left td { text-align: left; }

/* 宽表：横向滚动时冻结「城市站点」首列，表头也固定在顶部 */
.tbl-freeze thead th { position: sticky; top: 0; z-index: 3; background: #F6F7F9; }
.tbl-freeze th:first-child, .tbl-freeze td:first-child {
  position: sticky; left: 0; z-index: 2; background: #fff;
  box-shadow: 1px 0 0 var(--line, #E6E8EC);
}
.tbl-freeze thead th:first-child { z-index: 4; background: #F6F7F9; }
.tbl-freeze tr.row-city td { background: #FCFDFF; }
.tbl-freeze tr.row-city td:first-child { background: #FCFDFF; }
.tbl-freeze tr.row-total td { background: #F7F9FC; }
.tbl-freeze tr.row-total td:first-child { background: #F7F9FC; }

/* 表格单元格高亮：异常/优秀 */
.cell-bad { background: #FFF1F0 !important; color: #C0392B !important; font-weight: 600; }
.cell-warn { background: #FFF8E6 !important; color: #B7791F !important; }
.cell-good { background: #F0FBF3 !important; color: #1E8449 !important; }
.cell-max { background: #FFE4E1 !important; color: #A93226 !important; font-weight: 700; }

/* ===== 骑手画像大表：前 6 列冻结 + 紧凑列宽 ===== */
.tbl-rider { table-layout: fixed; width: 1180px; font-size: 12.5px; }
.tbl-rider th, .tbl-rider td { padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-rider thead th { font-size: 11.5px; font-weight: 600; color: var(--ink3);
  white-space: normal; line-height: 1.2; text-overflow: clip; }
/* 每列固定宽度（同时决定 sticky 的 left 偏移） */
.tbl-rider th:nth-child(1),   .tbl-rider td:nth-child(1)   { width: 36px;  }
.tbl-rider th:nth-child(2),   .tbl-rider td:nth-child(2)   { width: 70px;  }
.tbl-rider th:nth-child(3),   .tbl-rider td:nth-child(3)   { width: 86px;  }
.tbl-rider th:nth-child(4),   .tbl-rider td:nth-child(4)   { width: 50px;  }
.tbl-rider th:nth-child(5),   .tbl-rider td:nth-child(5)   { width: 152px; }
.tbl-rider th:nth-child(6),   .tbl-rider td:nth-child(6)   { width: 68px;  }
.tbl-rider th:nth-child(7),   .tbl-rider td:nth-child(7)   { width: 80px;  }
.tbl-rider th:nth-child(8),   .tbl-rider td:nth-child(8)   { width: 70px;  }
.tbl-rider th:nth-child(9),   .tbl-rider td:nth-child(9)   { width: 92px;  }
.tbl-rider th:nth-child(n+10), .tbl-rider td:nth-child(n+10) { width: 74px; }
.tbl-rider th:last-child,     .tbl-rider td:last-child     { width: 66px;  }
/* 冻结前 6 列 */
.tbl-rider tbody td:nth-child(-n+6) { position: sticky; z-index: 2; background: #fff; }
.tbl-rider thead th:nth-child(-n+6) { position: sticky; z-index: 4; background: #F6F7F9; }
.tbl-rider tbody td:nth-child(1), .tbl-rider thead th:nth-child(1) { left: 0;    }
.tbl-rider tbody td:nth-child(2), .tbl-rider thead th:nth-child(2) { left: 36px;  }
.tbl-rider tbody td:nth-child(3), .tbl-rider thead th:nth-child(3) { left: 106px; }
.tbl-rider tbody td:nth-child(4), .tbl-rider thead th:nth-child(4) { left: 192px; }
.tbl-rider tbody td:nth-child(5), .tbl-rider thead th:nth-child(5) { left: 242px; }
.tbl-rider tbody td:nth-child(6), .tbl-rider thead th:nth-child(6) { left: 394px; box-shadow: 2px 0 0 var(--line, #E6E8EC); }

/* ===== 低效骑手清单：紧凑行高 + 大展示区 ===== */
.tbl-low td, .tbl-low th { padding: 8px 10px; font-size: 13px; vertical-align: middle; }
.tbl-low .badge-sm { font-size: 11px; padding: 1px 6px; line-height: 1.5; margin: 1px 3px 1px 0; display: inline-block; }
.tbl-low .tags-cell { min-width: 150px; max-width: 220px; }
.tbl-low .advice-cell { max-width: 260px; white-space: normal; line-height: 1.5; }
