* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --primary: #2f6bff;
  --primary-dark: #1f52d6;
  --text: #1f2430;
  --muted: #7a8296;
  --border: #e4e8f0;
  --danger: #e5484d;
  --ok: #18a058;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; font-weight: normal; }

/* ---------- 登录 / 注册 ---------- */
.auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
  text-align: center;
}
.auth-logo { font-size: 44px; }
.auth-card h1 { font-size: 22px; margin: 8px 0 4px; }
.auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.auth-tip { color: var(--muted); font-size: 12px; margin-top: 14px; text-align: left; }
.auth-error { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; text-align: left; }

.form-row { margin-bottom: 14px; text-align: left; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.form-row input, .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fafbfd;
  outline: none;
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); background: #fff; }
.form-row input[readonly] { background: #f0f2f6; color: var(--muted); }
/* 司机登记：团队 / 合作性质按注册信息锁定后的样式提示 */
.form-row select:disabled {
  background: #f0f4fa;
  color: #334155;
  border-style: dashed;
  border-color: #c9d7ea;
  cursor: not-allowed;
  opacity: 1;
  font-weight: 600;
}
.field-error { color: var(--danger); font-size: 12px; min-height: 16px; margin-top: 3px; }

.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-big { font-size: 18px; padding: 16px; }
.btn-ghost {
  padding: 10px 14px;
  background: #eef3ff;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger {
  width: 100%;
  padding: 12px;
  background: #fdeced;
  color: var(--danger);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  margin-top: 14px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}
.btn-wechat {
  width: 100%;
  padding: 12px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.divider { display: flex; align-items: center; margin: 18px 0 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 10px; }

/* 注册入口选择与分页 */
#reg-choose .btn-primary { margin-bottom: 12px; }
.btn-clerk { background: var(--ok); }
.btn-clerk:active { background: #0e7c43; }
.form-title { font-size: 18px; text-align: center; margin-bottom: 4px; }
.btn-back-choose { width: 100%; margin-top: 6px; }

/* ---------- 主布局 ---------- */
#view-app { display: flex; min-height: 100vh; }
.sidebar {
  width: 200px;
  background: #1c2333;
  color: #cfd6e4;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 20;
}
.side-logo { padding: 20px 16px; font-size: 17px; font-weight: bold; color: #fff; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: none;
  border: none;
  color: #cfd6e4;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.nav-item.active { background: var(--primary); color: #fff; }
.side-user { padding: 14px 16px; font-size: 13px; color: #8b93a7; border-top: 1px solid #2a3145; }
.side-user-role { color: #cbb37f; font-size: 12px; letter-spacing: .04em; }
.side-user-name { margin-top: 3px; color: #e6e9f2; font-size: 14px; font-weight: 600; }

.main { flex: 1; margin-left: 200px; padding: 20px 24px 28px; }
.page h2 { font-size: 20px; margin-bottom: 14px; }

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.05);
}
.card-title { font-weight: bold; margin-bottom: 10px; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 14px;
}
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.loc-text { font-size: 16px; font-weight: bold; margin-bottom: 6px; }

.manage-row { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.manage-row input { flex: 1; min-width: 220px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.manage-row select { font-size: 15px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.manage-row .btn-ghost { width: auto; font-size: 15px; height: 44px; padding: 0 22px; border-radius: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3ff;
  color: var(--primary);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
}
.tag button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14.5px; font-weight: 600; }

.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-row input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.filter-row .btn-ghost { width: auto; }

/* 司机登记：日期速查按钮（点击日期只看当天记录） */
.veh-date-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0 14px; align-items: center; }
.veh-date-chips .chip-label { font-size: 14.5px; font-weight: 600; color: #31405c; }
.veh-date-chips .chip {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.veh-date-chips .chip:hover { border-color: var(--primary); color: var(--primary); }
.veh-date-chips .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  flex-wrap: wrap;
}
.record-item .rec-actions { display: flex; gap: 8px; }
.rec-btn { border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.rec-btn.ok { background: #e7f7ee; color: var(--ok); }
.rec-btn.no { background: #fdeced; color: var(--danger); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { background: #f4f6fa; color: var(--muted); font-weight: 500; position: sticky; top: 0; }
tbody tr:hover { background: #fafbff; }
td .link-del { color: var(--danger); cursor: pointer; background: none; border: none; font-size: 13px; }
td .link-edit { color: var(--primary, #2563eb); cursor: pointer; background: none; border: none; font-size: 13px; margin-right: 4px; }

.kv-list { display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.kv span { color: var(--muted); white-space: nowrap; }
.kv b { font-weight: 500; text-align: right; }

.sub-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sub-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.sub-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(28, 35, 51, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99;
  max-width: 86vw;
}

/* ---------- 手机端 ---------- */
@media (max-width: 767px) {
  .sidebar {
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .side-logo, .side-user { display: none; }
  .side-nav { flex-direction: row; padding: 4px; gap: 0; }
  .nav-item { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; text-align: center; }
  .nav-item span { font-size: 11px; }
  .main { margin-left: 0; padding: 14px 12px 90px; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 100px; }
}
@media (max-width: 379px) {
  .grid-form { grid-template-columns: 1fr; }
  .nav-item span { font-size: 10px; }
}

/* ===== 当日实时看板 ===== */
.rt-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.rt-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.rt-num { font-size: 22px; font-weight: bold; color: #f97316; }
.rt-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.rt-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-top: 14px;
}
.rt-chart-box { min-width: 0; }
.rt-rank-card {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
@media (max-width: 767px) {
  .rt-tiles { grid-template-columns: repeat(3, 1fr); }
  .rt-grid { grid-template-columns: 1fr; }
}

/* ===== 登录链接二维码 ===== */
.login-qr-wrap { max-width: 220px; margin: 14px auto 0; }
.login-qr-wrap img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

/* ===== 导出数据勾选区 ===== */
.export-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-bottom: 10px; }
.export-checks label { font-size: 14px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 767px) { .export-checks { grid-template-columns: 1fr; } }

/* ===== 团队类别角标 ===== */
.tag-cat { font-style: normal; font-size: 10px; color: #f97316; margin-left: 3px; border: 1px solid #fdba74; border-radius: 4px; padding: 0 3px; }

/* ===== 签到打卡（页面升级版） ===== */
.ck-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #5b8cff 58%, #7fa9ff 100%);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.24);
}
.ck-hero::before {
  content: "";
  position: absolute;
  right: -50px; top: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.ck-hero::after {
  content: "";
  position: absolute;
  right: 60px; bottom: -80px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.ck-hero-main { position: relative; z-index: 1; }
.ck-hero-date { font-size: 23px; font-weight: bold; letter-spacing: 0.5px; }
.ck-hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.94;
}
.ck-hero-sub b { font-weight: bold; letter-spacing: 0.3px; }
.ck-ring {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 78px; height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.ck-ring-num { font-size: 19px; font-weight: bold; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ck-ring-label { font-size: 11px; opacity: 0.9; }

.ck-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ck-stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 14px 12px 16px;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.04);
}
.ck-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c);
}
.ck-stat-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--bgc);
}
.ck-stat-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 9px;
  font-size: 25px;
  font-weight: bold;
  line-height: 1.1;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.ck-stat-num i { font-style: normal; font-size: 12px; font-weight: normal; color: var(--muted); }
.ck-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.ck-card { padding: 18px; }
.ck-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ck-card-title { font-size: 16px; font-weight: bold; }
.ck-chip {
  font-size: 12px;
  color: #b45309;
  background: #fff4e6;
  border: 1px solid #fde3bf;
  border-radius: 999px;
  padding: 2px 10px;
}
.ck-sub-title {
  font-size: 14px;
  font-weight: bold;
  color: #445068;
  margin: 16px 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
  line-height: 1.3;
}

.ck-att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-att {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 15px 14px;
  text-align: center;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fe 100%);
}
.ck-att.am { border-color: #ffe6c7; background: linear-gradient(180deg, #fffcf7 0%, #fff5e8 100%); }
.ck-att.pm { border-color: #dbe6ff; background: linear-gradient(180deg, #fafcff 0%, #eef4ff 100%); }
.ck-att-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 13px;
}
.ck-att-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 36, 48, 0.08);
}
.ck-att-title { font-size: 15px; font-weight: bold; color: #34405a; }

.ck-seg {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #e9edf6;
}
.ck-seg .att-btn {
  flex: 1;
  border: none;
  border-radius: 9px;
  background: transparent;
  padding: 11px 0;
  font-size: 15px;
  color: #5b6579;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.ck-seg .att-btn:hover { background: rgba(255, 255, 255, 0.75); }
.ck-seg .att-btn.active[data-kind="work"] {
  background: #12a150;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(18, 161, 80, 0.28);
}
.ck-seg .att-btn.active[data-kind="rest"] {
  background: #f59e0b;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28);
}

.att-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #7a8296;
  background: #eef1f7;
}
.att-state i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.att-state.st-work { background: #e7f7ee; color: #12a150; font-weight: bold; }
.att-state.st-rest { background: #fff4e6; color: #b45309; font-weight: bold; }

/* 团队出勤明细：状态标签 */
.ck-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ck-st-work { background: #e7f7ee; color: #12a150; }
.ck-st-rest { background: #fff4e6; color: #b45309; }
.ck-st-leave { background: #eef2ff; color: #4f46e5; }
.ck-st-none { background: #f4f6fa; color: #8a94a6; }
#ck-team-table th, #ck-team-table td { white-space: nowrap; }
#ck-team-table td:first-child { font-variant-numeric: tabular-nums; }
#ck-team-table td.ck-month-days { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: #1f7ae0; }
#ck-team-table td.ck-month-days span.muted { font-weight: normal; }

/* 团队出勤明细：筛选区（更精致的控件 + 大号按钮） */
.filter-row.ck-filter {
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border: 1px solid #e3ebf7;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(31, 122, 224, 0.05);
}
.filter-row.ck-filter input[type="date"],
.filter-row.ck-filter select {
  padding: 10px 13px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1f2a37;
  background: #fff;
  min-height: 42px;
  transition: border-color .18s, box-shadow .18s;
}
.filter-row.ck-filter select { min-width: 132px; cursor: pointer; }
.filter-row.ck-filter input[type="date"]:focus,
.filter-row.ck-filter select:focus {
  outline: none;
  border-color: #4a94ff;
  box-shadow: 0 0 0 4px rgba(74, 148, 255, 0.14);
}
.ck-filter-sep { font-size: 15px; color: #8a94a6; }

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.ck-btn:active { transform: translateY(1px) scale(.99); }
.ck-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f7bf6 0%, #57a2ff 100%);
  box-shadow: 0 6px 16px rgba(47, 123, 246, 0.28);
}
.ck-btn-primary:hover { box-shadow: 0 9px 22px rgba(47, 123, 246, 0.36); transform: translateY(-1px); }
.ck-btn-ghost {
  color: #2f7bf6;
  background: #fff;
  border: 1px solid #cddffb;
  box-shadow: 0 2px 8px rgba(47, 123, 246, 0.08);
}
.ck-btn-ghost:hover { background: #f2f7ff; border-color: #a9caf7; transform: translateY(-1px); }

/* 团队出勤明细：主管名下文员名单 */
.ck-leader-members { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ck-lm-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafd;
  border: 1px solid #e8eef8;
  border-left: 3px solid #7aa9f0;
  border-radius: 10px;
  font-size: 14px;
}
.ck-lm-label { font-weight: 700; color: #1f2a37; font-size: 14.5px; }
.ck-lm-team { font-size: 12.5px; color: #2f7bf6; background: #eaf2ff; padding: 2px 8px; border-radius: 999px; }
.ck-lm-count { font-size: 12.5px; color: #64748b; }
.ck-lm-names { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-lm-name { background: #fff; border: 1px solid #dbe4f0; color: #334155; padding: 3px 10px; border-radius: 999px; font-size: 13px; }

@media (max-width: 640px) {
  .filter-row.ck-filter { padding: 12px; }
  .ck-btn { flex: 1 1 40%; padding: 11px 14px; }
}

.ck-lines { display: flex; flex-direction: column; gap: 8px; }
.ck-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8f9fc;
  font-size: 14px;
}
.ck-line-dot {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}
.ck-line.work .ck-line-dot { background: #e7f7ee; color: #12a150; }
.ck-line.rest .ck-line-dot { background: #fff4e6; color: #b45309; }
.ck-line-main { flex: 1; color: #34405a; }
.ck-line-main b { font-weight: bold; }
.ck-line-time {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ck-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 10px;
}
.ck-empty span { display: block; font-size: 22px; margin-bottom: 4px; opacity: 0.6; }

.lv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f9fc;
  font-size: 14px;
}
.lv-badge {
  font-size: 12px;
  font-weight: bold;
  border-radius: 999px;
  padding: 2px 10px;
  flex: 0 0 auto;
}
.lv-badge.pending { background: #fff4e6; color: #b45309; }
.lv-badge.approved { background: #e7f7ee; color: #12a150; }
.lv-badge.rejected { background: #fdeced; color: #e5484d; }
.lv-main { flex: 1; min-width: 0; color: #34405a; }
.lv-days { font-size: 12.5px; color: var(--muted); flex: 0 0 auto; }

.ck-leave-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ck-leave-form .ck-span2 { grid-column: 1 / -1; }
.ck-leave-form .form-row input { background: #fafbfd; }
.ck-tip {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 0 2px 6px;
}

@media (max-width: 767px) {
  .ck-hero { padding: 16px; border-radius: 14px; }
  .ck-hero-date { font-size: 19px; }
  .ck-ring { width: 68px; height: 68px; }
  .ck-ring-num { font-size: 17px; }
  .ck-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ck-att-grid { grid-template-columns: 1fr; }
  .ck-leave-form { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
  .ck-hero-sub { font-size: 12px; gap: 3px 10px; }
  .ck-stat-num { font-size: 22px; }
}

/* ===== 登录页扫码 + 讲解 ===== */
.login-qr-box { margin-top: 6px; text-align: center; }
.login-qr-box img {
  width: 200px; height: 200px; margin: 4px auto 8px; display: block;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
}
/* 手机上看不到扫码区（自己扫自己无意义） */
@media (max-width: 767px) { .login-qr-box { display: none; } }
.help-box {
  margin-top: 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #f8fafc; padding: 10px 14px; text-align: left;
}
.help-box summary { cursor: pointer; font-weight: bold; font-size: 14px; color: #334155; }
.help-steps { margin: 10px 0 4px; padding-left: 20px; font-size: 13.5px; color: #475569; line-height: 1.8; }
.help-steps b { color: #c2410c; }

/* ===== 注册人员明细（设置页，仅高管可见） ===== */
.mem-count {
  font-size: 12px;
  color: #55607a;
  background: #f1f4fa;
  border-radius: 999px;
  padding: 3px 10px;
  flex: 0 0 auto;
}
.mem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
}
.mem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.mem-item.off { background: #fbfbfd; border-color: #eceff5; }
.mem-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: bold; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6ea0ff);
}
.mem-item.off .mem-avatar { background: linear-gradient(135deg, #a7b0c2, #c9cfdb); }
.mem-main { flex: 1; min-width: 0; }
.mem-name {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 15px; font-weight: bold; color: #34405a;
}
.mem-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mem-tag {
  font-size: 11px; font-weight: normal;
  padding: 1px 7px; border-radius: 999px; border: 1px solid;
}
.mem-tag.exec { color: #b45309; border-color: #fde3bf; background: #fff4e6; }
.mem-tag.clerk { color: #1f52d6; border-color: #cfe0ff; background: #eef3ff; }
.mem-tag.pending { color: #7a8296; border-color: #e2e6ee; background: #f4f6fa; }
.mem-tag.off { color: #e5484d; border-color: #f8d3d4; background: #fdeced; }
.mem-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
}
.mem-btn:disabled { opacity: .5; cursor: not-allowed; }
.mem-btn.off { background: #fdeced; color: #e5484d; }
.mem-btn.on { background: #e7f7ee; color: #12a150; font-weight: bold; }
.mem-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 0; }
@media (max-width: 767px) {
  .mem-item { flex-wrap: wrap; }
  .mem-btn { width: 100%; }
}

/* ===== 注册人员明细：权限操作区 ===== */
.mem-actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.mem-btn.perm-grant { background: #eef3ff; color: #1f52d6; }
.mem-btn.perm-revoke { background: #f4f6fa; color: #55607a; }
.mem-btn.edit { background: #fff7e6; color: #b45309; }
.mem-btn.save { background: #e7f7ee; color: #12a150; font-weight: bold; }
.mem-btn.cancel { background: #f1f5f9; color: #55607a; }
.mem-btn.danger { background: #fdeced; color: #d3242c; }
@media (max-width: 767px) {
  .mem-actions { width: 100%; }
  .mem-actions .mem-btn { flex: 1; width: auto; }
}

/* 注册人员明细：行内修改信息表单（主管 / 高管） */
.mem-edit {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mem-edit-row { display: flex; flex-direction: column; gap: 4px; }
.mem-edit-row label { font-size: 12.5px; color: #64748b; }
.mem-edit-row input, .mem-edit-row select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.mem-edit-tip { grid-column: 1 / -1; font-size: 12px; color: #94a3b8; }
.mem-edit .mem-btn { width: auto; }
.mem-edit .mem-btn.save { grid-column: auto; }
@media (max-width: 767px) { .mem-edit { grid-template-columns: 1fr; } }

/* 修改信息弹窗（高管 / 主管） */
.mem-modal-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mem-modal {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .25);
  max-height: 86vh; overflow-y: auto;
}
.mem-modal-title { font-size: 16px; font-weight: bold; color: #34405a; margin-bottom: 12px; }
.mem-modal-title .muted { font-weight: normal; font-size: 14px; }
.mem-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mem-modal-row { display: flex; flex-direction: column; gap: 4px; }
.mem-modal-row label { font-size: 12.5px; color: #64748b; }
.mem-modal-row input, .mem-modal-row select {
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: #fff;
}
.mem-modal-row input[readonly] { background: #f1f5f9; color: #64748b; }
.mem-modal-btns { display: flex; gap: 10px; margin-top: 14px; }
.mem-modal-btns .mem-btn { flex: 1; padding: 10px 0; font-size: 14px; border-radius: 10px; }
@media (max-width: 480px) { .mem-modal-grid { grid-template-columns: 1fr; } }

/* ============================================================
   进度看板 · 视觉升级（深靛蓝 + 香槟金，仅作用于 #page-board）
   ============================================================ */
#page-board {
  --bd-ink: #14181f;
  --bd-text: #2a3040;
  --bd-sub: #7c8496;
  --bd-line: #e7e9f1;
  --bd-indigo: #312e81;
  --bd-indigo-2: #4f46e5;
  --bd-gold: #b4833e;
  --bd-teal: #0f766e;
  --bd-rose: #9f1239;
  --bd-num: "DIN Alternate", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

/* —— 页头 —— */
#page-board .bd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}
#page-board .bd-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--bd-ink);
  margin: 0 0 6px;
  padding-bottom: 8px;
  position: relative;
}
#page-board .bd-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bd-gold), #e2c79a);
}
#page-board .bd-sub {
  font-size: 13px;
  color: var(--bd-sub);
  letter-spacing: .04em;
}
#page-board .bd-sub #board-scope { color: var(--bd-indigo-2); }
#page-board .bd-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #5b6478;
  background: #fff;
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(20, 24, 31, .04);
}
#page-board .bd-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12a150;
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .14);
  animation: bdPulse 2s infinite;
}
@keyframes bdPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(18, 161, 80, .14); }
  50% { box-shadow: 0 0 0 6px rgba(18, 161, 80, .06); }
}

/* —— 筛选工具条 —— */
#page-board .bd-toolbar {
  background: #fff;
  border: 1px solid var(--bd-line);
  border-radius: 16px;
  padding: 16px 18px 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(20, 24, 31, .05);
}
#page-board .bd-toolbar-main {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
#page-board .bd-field { display: flex; flex-direction: column; gap: 6px; }
#page-board .bd-field > label {
  font-size: 11px;
  letter-spacing: .14em;
  color: #98a0b3;
  text-transform: uppercase;
}
#page-board .bd-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#page-board .bd-range select,
#page-board .bd-range input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e3e6ef;
  border-radius: 10px;
  background: #fbfbfd;
  font-size: 13.5px;
  color: var(--bd-text);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: inherit;
}
#page-board .bd-range select { min-width: 132px; cursor: pointer; }
#page-board .bd-range select:focus,
#page-board .bd-range input:focus {
  border-color: #b3b9d8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}
#page-board .bd-tilde { color: #b9bfcd; font-size: 13px; }
/* 日期快捷区间：今天 / 最近7天 / 近一月（进度看板 + 数据统计推送通用） */
.bd-quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bd-qbtn {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #e3e6ef;
  border-radius: 999px;
  background: #fff;
  color: #5b6376;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .16s;
}
.bd-qbtn:hover { border-color: #c3c8e6; color: #4f46e5; }
.bd-qbtn.active {
  background: #eef0ff;
  border-color: #c3c8e6;
  color: #4f46e5;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .12);
}
#page-board .bd-actions { display: flex; gap: 8px; margin-left: auto; padding-bottom: 1px; }
#page-board .bd-btn {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  letter-spacing: .03em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3b3585, #4f46e5);
  box-shadow: 0 6px 14px rgba(79, 70, 229, .22);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  font-family: inherit;
}
#page-board .bd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(79, 70, 229, .28); }
#page-board .bd-btn-ghost {
  background: #fff;
  color: #4b5165;
  border: 1px solid #e3e6ef;
  box-shadow: none;
}
#page-board .bd-btn-ghost:hover { border-color: #c9cee0; box-shadow: 0 4px 12px rgba(20, 24, 31, .06); }
#page-board .bd-scope-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed #ecedf4;
}
#page-board .bd-scope-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: #98a0b3;
  text-transform: uppercase;
}
#page-board .bd-scope {
  font-size: 12.5px;
  color: var(--bd-indigo);
  background: #f2f1fc;
  border: 1px solid #e3e0f8;
  border-radius: 999px;
  padding: 3px 12px;
}

/* —— KPI 概览卡（推送总数 / 提车数 / 提车率 三张，加大版） —— */
#page-board .bd-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
#page-board .bd-kpi {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 4px 16px rgba(20, 24, 31, .045);
  transition: transform .18s, box-shadow .18s;
}
#page-board .bd-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--k, #312e81);
}
#page-board .bd-kpi::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--kbg, rgba(49, 46, 129, .07));
}
#page-board .bd-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 24, 31, .08); }
#page-board .k-push { --k: #312e81; --kbg: rgba(49, 46, 129, .06); }
#page-board .k-picked { --k: #0f766e; --kbg: rgba(15, 118, 110, .07); }
#page-board .k-rate { --k: #b4833e; --kbg: rgba(180, 131, 62, .08); }

/* KPI 卡点击筛选：可点的三张卡给手势提示，选中卡描边高亮 */
#page-board .bd-kpi.bd-kpi-clickable { cursor: pointer; user-select: none; }
#page-board .bd-kpi.bd-kpi-clickable:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 24, 31, .12); }
#page-board .bd-kpi.active {
  box-shadow: 0 0 0 2px var(--k, #312e81), 0 10px 24px rgba(20, 24, 31, .10);
}
#page-board .bd-kpi.active .bd-kpi-name::after {
  content: "· 已筛选";
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--k, #312e81);
}
#page-board .k-net { --k: #1d4ed8; --kbg: rgba(29, 78, 216, .07); }
#page-board .bd-kpi-name {
  font-size: 13.5px;
  letter-spacing: .1em;
  color: #8a91a3;
  position: relative;
  z-index: 1;
}
#page-board .bd-kpi-val {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  position: relative;
  z-index: 1;
}
#page-board .bd-kpi-val b {
  font-family: var(--bd-num);
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--k);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
#page-board .bd-kpi-val i { font-style: normal; font-size: 14px; color: #a3a9b8; }
#page-board .bd-kpi-foot { margin-top: 4px; font-size: 12.5px; color: #a8aebc; position: relative; z-index: 1; }

/* —— 卡片头 —— */
#page-board .bd-card { border-radius: 16px; box-shadow: 0 6px 22px rgba(20, 24, 31, .045); }
#page-board .bd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
#page-board .bd-card-title {
  position: relative;
  padding-left: 11px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1a1f2b;
}
#page-board .bd-card-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d8b374, var(--bd-gold));
}
#page-board .bd-card-tag {
  font-size: 12px;
  color: #6b7280;
  background: #f5f6fa;
  border: 1px solid #ebedf3;
  border-radius: 999px;
  padding: 2px 10px;
}
#page-board .bd-card-tag.accent {
  color: var(--bd-indigo);
  background: #f2f1fc;
  border-color: #e5e2f8;
}
#page-board .bd-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 6px; }
#page-board .bd-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; }
#page-board .bd-legend-item i { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
#page-board .bd-metric { display: flex; align-items: center; gap: 8px; }
#page-board .bd-metric label { font-size: 11px; letter-spacing: .12em; color: #98a0b3; text-transform: uppercase; }
#page-board .bd-metric select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e3e6ef;
  border-radius: 9px;
  background: #fbfbfd;
  font-size: 13px;
  color: var(--bd-text);
  outline: none;
  font-family: inherit;
}

/* —— 表格 —— */
#page-board .bd-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  margin-top: 4px;
}
#page-board .bd-table-wrap table { font-size: 13.5px; }
#page-board .bd-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8f9fd, #f2f4fa);
  color: #6d7488;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 11px 12px;
  border-bottom: 1px solid #e7e9f1;
  white-space: nowrap;
}
#page-board .bd-table-wrap td {
  padding: 10px 12px;
  color: #3a4152;
  border-bottom: 1px solid #f2f3f8;
}
#page-board .bd-table-wrap tbody tr:nth-child(even) { background: #fbfcff; }
#page-board .bd-table-wrap tbody tr:hover { background: #f5f4fd; }
#page-board .bd-table-wrap tbody tr:last-child td { border-bottom: none; }
#page-board .bd-table-wrap tr.bd-total-row td {
  background: #faf9ff;
  border-top: 1px solid #e8e5f8;
  color: #2b2f45;
  font-variant-numeric: tabular-nums;
}
#page-board .bd-table-wrap td { font-variant-numeric: tabular-nums; }

/* —— 实时 5 格 —— */
#page-board .rt-tiles { gap: 12px; margin-bottom: 16px; }
#page-board .rt-tile {
  background: #fbfbfe;
  border: 1px solid #eef0f6;
  border-radius: 13px;
  padding: 14px 8px 12px;
  transition: background .18s, transform .18s;
}
#page-board .rt-tile:hover { background: #f6f5fe; transform: translateY(-1px); }
#page-board .rt-num {
  font-family: var(--bd-num);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bd-indigo);
}
#page-board .rt-tiles .rt-tile:nth-child(2) .rt-num { color: var(--bd-teal); }
#page-board .rt-tiles .rt-tile:nth-child(3) .rt-num { color: var(--bd-rose); }
#page-board .rt-tiles .rt-tile:nth-child(4) .rt-num { color: var(--bd-gold); }
#page-board .rt-tiles .rt-tile:nth-child(5) .rt-num { color: #1d4ed8; }
#page-board .rt-label { font-size: 12px; color: #8a91a3; letter-spacing: .03em; }
#page-board .rt-chart-box {
  background: #fff;
  border: 1px solid #f0f1f7;
  border-radius: 13px;
  padding: 12px 14px 6px;
}
#page-board .rt-chart-box .card-title { font-size: 14px; color: #2a3040; font-weight: 600; }
#page-board .rt-rank-card { border-top: 1px dashed #ecebf6; }

@media (max-width: 1100px) {
  #page-board .bd-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  #page-board .bd-title { font-size: 21px; }
  #page-board .bd-kpis { grid-template-columns: repeat(2, 1fr); }
  #page-board .bd-actions { margin-left: 0; width: 100%; }
  #page-board .bd-btn { flex: 1; }
  #page-board .bd-range select { min-width: 0; flex: 1; }
}

/* —— 文员排行榜：排序 / 筛选控件与榜单表 —— */
#page-board .bd-rank-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
#page-board .bd-rank-ctl select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e3e6ef;
  border-radius: 9px;
  background: #fbfbfd;
  font-size: 12.5px;
  color: var(--bd-text, #2a3040);
  outline: none;
  font-family: inherit;
  cursor: pointer;
}
#page-board .bd-rank-ctl select:focus { border-color: #b3b9d8; background: #fff; }
#page-board .bd-rank-wrap {
  margin-top: 12px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid #eef0f6;
  border-radius: 12px;
}
#page-board .bd-rank-wrap table { font-size: 13px; }
#page-board .bd-rank-wrap thead th {
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #f8f9fd, #f2f4fa);
  color: #6d7488; font-weight: 600; font-size: 12px; letter-spacing: .04em;
}
#page-board .bd-rank-wrap tbody tr:nth-child(even) { background: #fbfcff; }
#page-board .bd-rank-wrap tbody tr:hover { background: #f5f4fd; }
@media (max-width: 767px) {
  #page-board .bd-rank-ctl { width: 100%; }
  #page-board .bd-rank-ctl select { flex: 1; min-width: 0; }
}

/* ===== 资源费管理：行内编辑 + 当日花费图轴 ===== */
#sub-fee .fee-input {
  width: 100%; min-width: 92px; height: 32px; padding: 0 8px;
  border: 1px solid #e3e6ef; border-radius: 8px; background: #fbfbfd;
  font-size: 13px; color: #1f2740; outline: none; font-family: inherit;
}
#sub-fee .fee-input:focus { border-color: #b4833e; background: #fff; box-shadow: 0 0 0 3px rgba(180, 131, 62, .14); }
#sub-fee .fee-cost { min-width: 190px; }
#sub-fee tr.fee-row-dirty td { background: #fffaf0; }
#sub-fee tr.fee-row-dirty td:first-child { box-shadow: inset 3px 0 0 #b4833e; }
#sub-fee #btn-fee-save:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
#sub-fee #btn-fee-save { white-space: nowrap; }
.fee-chart-head { margin: 26px 0 4px; padding-top: 20px; border-top: 1px solid #eef0f6; }
.fee-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 8px; }
.fee-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4b5563; }
.fee-lg i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.fee-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 6px; }
.fee-chart-box { background: #fbfbfd; border: 1px solid #eef0f6; border-radius: 12px; padding: 14px 14px 10px; }
.fee-chart-t { font-size: 13px; font-weight: 600; color: #312e81; margin-bottom: 8px; letter-spacing: .02em; }

/* ===== 系统说明书（设置页底部，仅创建者可见） ===== */
#settings-manual-card { scroll-margin-top: 20px; }
.manual-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #eef0f6;
}
.manual-ver {
  font-size: 12.5px; font-weight: 600; color: #7c4a12; background: #fdf6e9;
  border: 1px solid #f0dfc4; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.manual-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.manual-toc a {
  font-size: 12.5px; color: #3f4a63; background: #f6f7fb; border: 1px solid #e6e9f2;
  padding: 6px 12px; border-radius: 999px; text-decoration: none; transition: all .15s;
}
.manual-toc a:hover { background: #eef0f9; border-color: #ccd3e6; color: #1f2740; }
.manual-sec { margin-top: 24px; scroll-margin-top: 16px; }
.manual-sec-t {
  font-size: 15px; font-weight: 700; color: #1f2740; margin-bottom: 10px;
  padding-left: 10px; border-left: 3px solid #b4833e; line-height: 1.25;
}
.manual-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.manual-table th {
  background: #f6f7fb; color: #3f4a63; font-weight: 600; text-align: left;
  padding: 9px 10px; border-bottom: 1px solid #e6e9f2; white-space: nowrap;
}
.manual-table td { padding: 10px; border-bottom: 1px solid #f0f2f7; vertical-align: top; line-height: 1.7; color: #374151; }
.manual-table tbody tr:hover { background: #fbfbfe; }
.manual-item { background: #fbfbfd; border: 1px solid #eef0f6; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.manual-item-t { font-size: 13.5px; font-weight: 600; color: #312e81; margin-bottom: 6px; }
.manual-item ul, .manual-list { margin: 6px 0 0; padding-left: 20px; }
.manual-item li, .manual-list li { font-size: 13px; color: #374151; line-height: 1.85; margin-bottom: 4px; }
.manual-faq { display: grid; gap: 8px; }
.manual-q {
  background: #fbfbfd; border: 1px solid #eef0f6; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: #4b5563; line-height: 1.8;
}
.manual-q b { color: #1f2740; display: block; margin-bottom: 2px; }
.manual-timeline { position: relative; margin-top: 10px; padding-left: 20px; border-left: 2px solid #eae6dc; }
.manual-ver-item { position: relative; padding: 0 0 16px 6px; }
.manual-ver-item::before {
  content: ''; position: absolute; left: -25px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid #cbd3e3;
}
.manual-ver-item.latest::before { background: #b4833e; border-color: #b4833e; box-shadow: 0 0 0 3px rgba(180, 131, 62, .16); }
.manual-ver-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manual-ver-no { font-size: 13.5px; font-weight: 700; color: #312e81; }
.manual-ver-date { font-size: 12px; color: #98a0b3; }
.manual-ver-tag {
  font-size: 11px; color: #7c4a12; background: #fdf6e9; border: 1px solid #f0dfc4;
  padding: 1px 8px; border-radius: 999px;
}
.manual-ver-item ul { margin: 6px 0 0; padding-left: 18px; }
.manual-ver-item li { font-size: 12.8px; color: #4b5563; line-height: 1.8; }
@media (max-width: 767px) {
  .manual-table { font-size: 12px; }
  .manual-table th, .manual-table td { padding: 7px 6px; }
  .manual-item, .manual-q { padding: 10px; }
}

/* ===== 设置页：英雄卡 + 宫格导航模版 ===== */
.set-page-sub { margin: -6px 0 14px; font-size: 13px; color: #8b93a7; }
.set-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.set-hero-ava {
  width: 58px; height: 58px; border-radius: 18px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f6ef7, #312e81);
  box-shadow: 0 6px 16px rgba(49, 46, 129, .25);
}
.set-hero-main { flex: 1; min-width: 200px; }
.set-hero-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 700; color: #1f2740; }
.set-role-badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: #f1f3f9; color: #5b6478; border: 1px solid #e3e6ef; letter-spacing: .04em;
}
.set-role-badge.role-creator { color: #7c4a12; background: #fdf6e9; border-color: #f0dfc4; }
.set-role-badge.role-exec { color: #312e81; background: #edeafc; border-color: #ddd8f8; }
.set-role-badge.role-hr { color: #0f766e; background: #e8f7f4; border-color: #c8ebe4; }
.set-role-badge.role-leader { color: #1d4ed8; background: #eaf1fe; border-color: #d0e2fc; }
.set-hero-sub { margin-top: 4px; font-size: 12.5px; color: #8b93a7; line-height: 1.6; }
.set-hero-out { margin-left: auto; }
.set-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px; margin-top: 14px;
}
.set-entry {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1px solid #e9ecf4; border-radius: 14px;
  padding: 14px 16px; cursor: pointer; font-family: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.set-entry:hover { border-color: #d9def0; box-shadow: 0 8px 20px rgba(49, 46, 129, .08); transform: translateY(-1px); }
.set-entry.hidden { display: none; }
.set-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.set-entry-main { flex: 1; min-width: 0; }
.set-entry-main b { display: block; font-size: 14px; color: #1f2740; font-weight: 600; }
.set-entry-main i { display: block; font-style: normal; font-size: 12px; color: #98a0b3; margin-top: 3px; line-height: 1.5; }
.set-arrow { flex: none; font-size: 20px; color: #c3c9d9; font-weight: 600; }
#set-detail { margin-top: 14px; }
.set-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 13px; color: #3f4a63; background: #fff; border: 1px solid #e3e6ef;
  border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.set-back:hover { background: #f6f7fb; }
#set-detail > .card.hidden { display: none; }
@media (max-width: 640px) {
  .set-hero { gap: 12px; }
  .set-hero-out { margin-left: 0; width: 100%; }
  .set-grid { grid-template-columns: 1fr; }
}

/* ===== 数据统计页：深靛蓝模版 + 大字号 ===== */
#page-stats .st-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(120deg, #2d2a75 0%, #43398c 52%, #6b4a86 100%);
  box-shadow: 0 12px 28px rgba(45, 42, 117, .22);
}
#page-stats .st-hero::after {
  content: ''; position: absolute; right: -50px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 131, 62, .38), transparent 68%);
  pointer-events: none;
}
#page-stats .st-hero-txt { position: relative; z-index: 1; }
#page-stats .st-hero-title {
  font-size: 23px; font-weight: 700; color: #fff;
  letter-spacing: .04em; line-height: 1.2;
}
#page-stats .st-hero-sub {
  margin-top: 7px; font-size: 13.5px; color: rgba(255, 255, 255, .74); letter-spacing: .02em;
}
#page-stats .st-hero-tag {
  position: relative; z-index: 1;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: #f7e6c4; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(247, 230, 196, .34);
  padding: 7px 15px; border-radius: 999px; white-space: nowrap;
}

/* 标签页：白色胶囊容器 + 深靛蓝选中 */
#page-stats .st-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  padding: 6px; margin-bottom: 16px;
  background: #fff; border: 1px solid #e9ecf4; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31, 36, 48, .05);
}
#page-stats .st-tabs .stat-tab,
#page-stats .st-tabs .res-tab {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 500; color: #5b6478;
  padding: 9px 18px; border-radius: 10px; letter-spacing: .01em;
  transition: background .16s, color .16s, box-shadow .16s;
}
#page-stats .st-tabs .stat-tab:hover,
#page-stats .st-tabs .res-tab:hover { background: #f4f5fa; color: #2d2a75; }
#page-stats .st-tabs .stat-tab.active,
#page-stats .st-tabs .res-tab.active {
  background: linear-gradient(135deg, #3b3793, #2d2a75);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 14px rgba(45, 42, 117, .26);
}
#page-stats .st-tabs-sm { margin-top: 2px; padding: 5px; }
#page-stats .st-tabs-sm .res-tab { font-size: 13.5px; padding: 7px 15px; }

/* 卡片 */
#page-stats .st-card {
  border-radius: 16px; padding: 22px 22px 18px;
  border: 1px solid #eef0f6; box-shadow: 0 6px 20px rgba(31, 36, 48, .06);
}
#page-stats .st-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
#page-stats .st-card-title {
  font-size: 17.5px; font-weight: 700; color: #22284a;
  letter-spacing: .02em; padding-left: 11px; position: relative; line-height: 1.3;
}
#page-stats .st-card-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, #b4833e, #d9ac6a);
}
#page-stats .st-card-tag {
  font-size: 12.5px; font-weight: 500; color: #5b6478;
  background: #f5f6fb; border: 1px solid #e9ecf4;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

/* 概览数据卡 */
#page-stats .st-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px; margin: 4px 0 18px;
}
#page-stats .st-kpi {
  position: relative; overflow: hidden;
  background: #fbfbfd; border: 1px solid #eef0f6; border-radius: 14px;
  padding: 14px 16px 13px 18px;
}
#page-stats .st-kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #d7dae8;
}
#page-stats .st-kpi:nth-child(1)::before { background: linear-gradient(180deg, #4b47a8, #2d2a75); }
#page-stats .st-kpi:nth-child(2)::before { background: linear-gradient(180deg, #ef6b6b, #dc2626); }
#page-stats .st-kpi:nth-child(3)::before { background: linear-gradient(180deg, #4ade80, #16a34a); }
#page-stats .st-kpi:nth-child(4)::before { background: linear-gradient(180deg, #d9ac6a, #b4833e); }
#page-stats .st-kpi-label { font-size: 13px; color: #7d859b; letter-spacing: .03em; }
#page-stats .st-kpi-num {
  font-size: 27px; font-weight: 700; color: #22284a;
  line-height: 1.15; margin: 5px 0 2px; letter-spacing: -.01em;
}
#page-stats .st-kpi-num.up { color: #dc2626; }
#page-stats .st-kpi-num.down { color: #16a34a; }
#page-stats .st-kpi-sub { font-size: 12px; color: #a3aabc; }

/* 筛选行 */
#page-stats .st-filter { gap: 9px; margin-bottom: 10px; }
#page-stats .st-filter .st-fl { font-size: 13.5px; color: #5b6478; font-weight: 500; }
#page-stats .st-filter .st-fl-sep { font-size: 13.5px; color: #a3aabc; }
#page-stats .st-filter input[type="date"],
#page-stats .st-filter select {
  height: 39px; padding: 0 12px; font-size: 14.5px; font-family: inherit;
  color: #22284a; background: #fbfbfd;
  border: 1px solid #e3e6ef; border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#page-stats .st-filter input[type="date"]:focus,
#page-stats .st-filter select:focus {
  border-color: #b4833e; background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 131, 62, .13);
}
#page-stats .st-filter .btn-ghost,
#page-stats .st-filter .btn-primary {
  width: auto; margin-top: 0; white-space: nowrap;
  height: 39px; padding: 0 20px; font-size: 14.5px; font-weight: 600;
  border-radius: 10px; letter-spacing: .02em;
}
#page-stats .st-filter .btn-ghost {
  color: #2d2a75; background: #fff; border: 1px solid #d8dcee;
}
#page-stats .st-filter .btn-ghost:hover { background: #f4f5fb; border-color: #c3c9e0; }
#page-stats .st-filter .btn-primary {
  color: #fff; border: none;
  background: linear-gradient(135deg, #3b3793, #2d2a75);
  box-shadow: 0 6px 14px rgba(45, 42, 117, .22);
}
#page-stats .st-filter .btn-primary:hover { filter: brightness(1.08); }
#page-stats .hint { font-size: 13.5px; color: #8b93a7; line-height: 1.75; margin: 4px 0 14px; }

/* 表格：字号加大 + 深靛蓝表头 */
#page-stats .st-table-wrap {
  border: 1px solid #eef0f6; border-radius: 12px; overflow: auto; max-height: 620px;
}
#page-stats table { font-size: 14px; }
#page-stats thead th {
  background: linear-gradient(180deg, #f7f8fd, #eef0f9); color: #3d4670; font-weight: 600; font-size: 13.5px;
  padding: 12px 12px; letter-spacing: .02em; white-space: nowrap;
  border-bottom: 1px solid #dfe3ef;
}
#page-stats thead th.st-sorted { background: #e9edfb; color: #3b5bdb; }
#page-stats tbody td {
  padding: 11px 12px; color: #374151; font-size: 14px;
  border-bottom: 1px solid #f2f4f9;
}
#page-stats tbody tr:hover td { background: #f8f9fe; }
#page-stats tbody tr:last-child td { border-bottom: none; }
#page-stats tr.st-sumrow td {
  background: #f7f7fd; color: #2d2a75; font-weight: 600; font-size: 13.5px;
  border-bottom: 1px solid #e6e9f2; letter-spacing: .02em;
}
#page-stats td.muted { color: #98a0b3; font-size: 14px; }
/* 数据统计推送记录：表头可点击排序 */
#page-stats th.st-sort { cursor: pointer; user-select: none; }
#page-stats th.st-sort:hover { background: #eceefb; }
#page-stats th.st-sort .st-arr {
  display: inline-block; margin-left: 3px; font-size: 11px;
  color: #aab1c4; vertical-align: 1px;
}
#page-stats th.st-sort.st-sorted .st-arr { color: #3b5bdb; }
/* 数据统计推送记录：表头筛选漏斗与筛选弹层 */
#page-stats th .st-flt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: 5px; border-radius: 6px;
  font-size: 15px; font-weight: 400; line-height: 1;
  color: #9aa2b6; cursor: pointer; vertical-align: middle;
  transition: background .15s, color .15s;
}
#page-stats th .st-flt:hover { background: #dfe5fa; color: #3b5bdb; }
#page-stats th .st-flt.st-flted {
  background: #3b5bdb; color: #fff; font-weight: 700;
  box-shadow: 0 1px 4px rgba(59, 91, 219, .35);
}
.st-flt-pop {
  position: absolute; z-index: 9999; display: none; min-width: 190px; max-width: 280px;
  background: #fff; border: 1px solid #e2e6f0; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18); padding: 12px 14px;
}
.st-flt-pop.show { display: block; }
.st-flt-pop .st-flt-title {
  font-weight: 600; font-size: 13px; color: #2b3350; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid #eef1f8;
}
.st-flt-pop .st-flt-list { max-height: 210px; overflow: auto; }
.st-flt-pop .st-flt-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #374151; padding: 5px 4px; cursor: pointer; white-space: nowrap;
  border-radius: 6px;
}
.st-flt-pop .st-flt-item:hover { background: #f3f5fd; }
.st-flt-pop .st-flt-item input { accent-color: #3b5bdb; width: 15px; height: 15px; cursor: pointer; }
.st-flt-pop .st-flt-btns { display: flex; gap: 8px; margin-top: 10px; }
.st-flt-pop .st-flt-btns button {
  flex: 1; border: none; border-radius: 8px; padding: 7px 0;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.st-flt-pop .st-flt-ok { background: #3b5bdb; color: #fff; }
.st-flt-pop .st-flt-ok:hover { background: #3450c4; }
.st-flt-pop .st-flt-clear { background: #eef1f8; color: #46506b; }
.st-flt-pop .st-flt-clear:hover { background: #e2e7f3; }

@media (max-width: 767px) {
  #page-stats .st-hero { padding: 18px; }
  #page-stats .st-hero-title { font-size: 20px; }
  #page-stats .st-tabs { width: 100%; }
  #page-stats .st-tabs .stat-tab,
  #page-stats .st-tabs .res-tab { font-size: 13.5px; padding: 8px 13px; }
  #page-stats .st-card { padding: 16px 14px; }
  #page-stats .st-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #page-stats .st-kpi-num { font-size: 23px; }
  #page-stats .st-filter input[type="date"],
  #page-stats .st-filter select,
  #page-stats .st-filter .btn-ghost,
  #page-stats .st-filter .btn-primary { height: 36px; font-size: 13.5px; }
}

/* 休息申请待审批状态 */
.att-state.st-wait { background: #fdf6e9; color: #7c4a12; font-weight: bold; }
.ck-line-wait .ck-line-dot { background: #fdf6e9; color: #7c4a12; }
.ck-line-wait .ck-line-time { color: #b45309; }

/* 出勤区块状态底色：上班绿 / 休息橙 / 待审批黄 */
.ck-att.is-work { border-color: #bfe8cf !important; background: linear-gradient(180deg, #f8fdfa 0%, #e8f9ef 100%) !important; box-shadow: 0 8px 20px rgba(18, 161, 80, .10); }
.ck-att.is-rest { border-color: #ffdcae !important; background: linear-gradient(180deg, #fffdf8 0%, #fff1dd 100%) !important; box-shadow: 0 8px 20px rgba(245, 158, 11, .10); }
.ck-att.is-wait { border-color: #f2e0bc !important; background: linear-gradient(180deg, #fffdf7 0%, #fdf5e5 100%) !important; box-shadow: 0 8px 20px rgba(180, 131, 62, .10); }
.ck-seg .att-btn.active[data-kind="work"] {
  background: linear-gradient(135deg, #16b95c, #0f9b48) !important;
  box-shadow: 0 6px 14px rgba(18, 161, 80, .30) !important;
}
.ck-att.is-work .ck-att-title { color: #0f9b48; }

/* 未提车原因：默认只显示前 5 字，点击展开/收起（数据统计 + 司机登记两个表通用） */
td.st-reason { max-width: 180px; }
.st-reason-txt {
  cursor: pointer;
  user-select: none;
  color: var(--primary);
  border-bottom: 1px dashed rgba(47, 107, 255, .45);
}
.st-reason-txt[data-open="1"] {
  color: inherit;
  border-bottom: none;
  white-space: normal;
  word-break: break-all;
}

/* 进度看板 · 当日排行榜（推送/提车 × 团队/个人，各前 5 名） */
#page-board .rank-grid {
  display: grid;
  /* 三个模块并排：当日推送榜 / 当日提车榜 / 当月提车英雄榜 */
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
  align-items: start;
}
/* 中屏以下改为上下堆叠 */
@media (max-width: 960px) {
  #page-board .rank-grid { grid-template-columns: 1fr; }
}
#page-board .rank-sub { font-size: 13.5px; font-weight: 700; color: #1f2740; margin-bottom: 4px; }
/* 模块内「团队 / 文员」两张表左右并排（窄屏上下堆叠） */
#page-board .rank-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 640px) {
  #page-board .rank-pair { grid-template-columns: 1fr; }
}
#page-board .rank-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 14px;
  background: #fbfcfe;
}
#page-board .rank-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
#page-board .rank-title.t-push { color: #312e81; }
#page-board .rank-title.t-picked { color: #0f766e; }
#page-board .rank-title.t-month { color: #b45309; }
#page-board .rank-block td, #page-board .rank-block th { padding: 6px 8px; font-size: 12.5px; }
#page-board .rank-block .rk-cell { width: 36px; text-align: center; }
#page-board .rank-block .rk-plain { color: #8a91a3; font-weight: 700; font-size: 12.5px; }

/* 前三名：金银铜奖牌（红绶带 + 金属圆牌，样式仿 🏅） */
#page-board .rank-block .rk-medal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 8px; /* 给上方绶带留位置 */
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.2px;
  vertical-align: middle;
}
/* 绶带：燕尾形小红带，压在圆牌后面（z-index:-1） */
#page-board .rank-block .rk-medal::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  z-index: -1;
  background: linear-gradient(180deg, #ff7b7b 0%, #ef4444 45%, #c62f2f 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
  border-radius: 2.5px 2.5px 0 0;
  filter: drop-shadow(0 1px 1.5px rgba(120, 20, 20, .3));
}
/* 圆牌外圈的金属环 */
#page-board .rank-block .rk-medal::after {
  content: '';
  position: absolute;
  inset: -2.5px;
  z-index: -2;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(120, 100, 60, .28) 55%, rgba(255, 255, 255, .6));
}
#page-board .rank-block .rk-medal.rk-1 {
  color: #6b4306;
  background: radial-gradient(circle at 32% 26%, #fff3c4 0%, #ffdf85 26%, #f2bd3c 62%, #c98a12 100%);
  box-shadow: inset 0 -2px 0 rgba(120, 74, 0, .26), inset 0 2px 3px rgba(255, 255, 255, .65), 0 2px 7px rgba(201, 138, 18, .45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
#page-board .rank-block .rk-medal.rk-2 {
  color: #3f4c5c;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #eef1f6 26%, #cdd6e2 62%, #97a3b4 100%);
  box-shadow: inset 0 -2px 0 rgba(63, 76, 92, .22), inset 0 2px 3px rgba(255, 255, 255, .8), 0 2px 7px rgba(151, 163, 180, .42);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
#page-board .rank-block .rk-medal.rk-3 {
  color: #5c3116;
  background: radial-gradient(circle at 32% 26%, #ffe3c7 0%, #ecbf98 26%, #cf8e5b 62%, #a3643a 100%);
  box-shadow: inset 0 -2px 0 rgba(92, 49, 22, .24), inset 0 2px 3px rgba(255, 255, 255, .55), 0 2px 7px rgba(163, 100, 58, .4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
/* 前三名整行淡淡底色，一眼看出名次 */
#page-board .rank-block tr.rk-1-row td { background: rgba(245, 194, 67, .13); }
#page-board .rank-block tr.rk-2-row td { background: rgba(160, 174, 192, .15); }
#page-board .rank-block tr.rk-3-row td { background: rgba(190, 122, 76, .13); }

/* ===== 资源费管理 v2：筛选区升级 + 大字体表格 ===== */
#sub-fee { padding: 18px 20px 22px; }
#sub-fee .card-title { font-size: 17px; margin-bottom: 12px; }
#sub-fee .fee-filter { gap: 10px; padding: 12px 14px; background: #f8fafd; border: 1px solid var(--border); border-radius: 12px; }
#sub-fee .fee-filter label { font-size: 15px; font-weight: 600; color: #31405c; }
#sub-fee .fee-filter input,
#sub-fee .fee-filter select {
  font-size: 15px; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #1f2740;
}
#sub-fee .fee-filter input:focus,
#sub-fee .fee-filter select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
#sub-fee .fee-filter .btn-ghost,
#sub-fee .fee-filter .btn-primary { font-size: 15px; height: 42px; padding: 0 22px; border-radius: 10px; }
#fee-table { font-size: 14.5px; }
#fee-table th {
  background: #f1f4fb; font-size: 13.5px; font-weight: 700; color: #31405c;
  padding: 11px 12px; position: sticky; top: 0; z-index: 1;
}
#fee-table td { padding: 10px 12px; }
#fee-table tbody tr:nth-child(even) { background: #fafbfe; }
#fee-table tbody tr:hover { background: #f0f5ff; }

/* ===== 司机登记 · 推送记录表：大字体 + 斑马纹 + 状态标签 ===== */
#veh-table { font-size: 14.5px; }
#veh-table thead th {
  background: linear-gradient(180deg, #f3f6fd, #e9effb);
  color: #31405c;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 12px;
  border-bottom: 1px solid #e1e7f4;
  position: sticky;
  top: 0;
  z-index: 1;
}
#veh-table tbody td {
  padding: 11px 12px;
  color: #25304a;
  border-bottom: 1px solid #eef1f8;
  vertical-align: middle;
}
#veh-table tbody tr:nth-child(even) { background: #fafbfe; }
#veh-table tbody tr:hover { background: #f1f5ff; }
#veh-table tbody tr:last-child td { border-bottom: none; }
#veh-table tbody td:first-child { font-variant-numeric: tabular-nums; color: #4a5568; }
#veh-table .veh-name { font-size: 15px; font-weight: 600; color: #1b2540; }
#veh-table .veh-phone { font-variant-numeric: tabular-nums; }
#veh-table .veh-sign { text-align: center; font-weight: 600; color: #334155; }
#veh-table .veh-tag {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#veh-table .veh-tag.yes { background: #e7f6ef; color: #0f766e; }
#veh-table .veh-tag.no { background: #f3f4f7; color: #8a91a3; }
#veh-table .veh-tag.ret { background: #fdecef; color: #9f1239; }
/* 是否提车 / 提车时间合并列：标签在上，时间在下 */
#veh-table .veh-picked-cell { white-space: nowrap; }
#veh-table .veh-picked-cell .veh-tag { margin-bottom: 3px; }
#veh-table .veh-picked-cell .veh-picked-time {
  display: block;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  letter-spacing: .01em;
}
#veh-table td .link-edit,
#veh-table td .link-del { font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  #veh-table { font-size: 13.5px; }
  #veh-table thead th, #veh-table tbody td { padding: 9px 10px; }
}

/* ===== 司机登记 · 推送记录筛选区：放大美化 ===== */
#page-vehicle .card > .filter-row {
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 12px;
}
#page-vehicle .filter-row input,
#page-vehicle .filter-row select {
  font-size: 15px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #1f2740;
  cursor: pointer;
}
#page-vehicle .filter-row input[type="text"] { cursor: text; }
#page-vehicle .filter-row input:focus,
#page-vehicle .filter-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
#page-vehicle .filter-row .btn-ghost { font-size: 15px; height: 42px; padding: 0 24px; border-radius: 10px; }
#page-vehicle .veh-date-chips { gap: 9px; }
#page-vehicle .veh-date-chips .chip { font-size: 14.5px; padding: 7px 16px; }

/* 司机登记 · 公司管理名单（推送记录上方，仅高管可见；搜索公司 / 面试点后删除或恢复） */
#page-vehicle .veh-names-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
#page-vehicle .veh-names-bar input[type="text"] {
  flex: 1 1 240px; min-width: 200px; font-size: 15px; height: 42px; padding: 0 14px;
  border: 1px solid #e7b8ae; border-radius: 10px; background: #fff; color: #1f2740;
}
#page-vehicle .veh-names-bar .vn-mini {
  flex: none; font-size: 14.5px; font-weight: 600; height: 42px; padding: 0 18px;
  border: 1px solid; border-radius: 10px; background: #fff; cursor: pointer;
}
#page-vehicle .veh-names-bar .vn-mini.add { color: #1d4ed8; border-color: #9ec3f5; }
#page-vehicle .veh-names-bar .vn-mini.add:hover { background: #eef4ff; }
#page-vehicle .veh-names-bar .vn-mini.del { color: #b42318; border-color: #eeb1a6; }
#page-vehicle .veh-names-bar .vn-mini.del:hover { background: #ffe9e4; }
#page-vehicle .veh-names-bar .vn-mini.res { color: #15803d; border-color: #a7d9b9; }
#page-vehicle .veh-names-bar .vn-mini.res:hover { background: #edfaf1; }
@media (max-width: 640px) {
  #page-vehicle .veh-names-bar .vn-mini { flex: 1 1 30%; padding: 0 8px; }
}
#page-vehicle .veh-names-bar input[type="text"] {
  width: 100%; max-width: 520px; font-size: 15px; height: 42px; padding: 0 14px;
  border: 1px solid #e7b8ae; border-radius: 10px; background: #fff; color: #1f2740;
}
/* 输入卡顿根治：固定高度 + 内部滚动 + 布局隔离。
   结果区高度不再随搜索结果条数变化，下方上千行「推送记录」大表格不会被拖着重排；
   contain 让结果区内部的重排 / 重绘不外溢到页面其它部分。 */
#page-vehicle .veh-names-results {
  display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px;
  height: 138px; overflow-y: auto; overflow-x: hidden;
  contain: layout paint style; scrollbar-width: thin;
}
/* 大表格布局隔离：内部布局自成一块，上方高度变化不会重新扫描全部行算列宽；
   屏幕外的行跳过渲染，进页面 / 切页不再发沉（不改变数据与可见内容）。 */
#page-vehicle .table-wrap { contain: layout style; }
#veh-table tbody tr { content-visibility: auto; contain-intrinsic-size: auto 46px; }
#page-vehicle .veh-names-results .vn-empty { font-size: 13.5px; color: #9c6b60; padding: 6px 2px; }
#page-vehicle .veh-names-results .vn-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 8px 12px; background: #fff8f6; border: 1px solid #f3cec5; border-radius: 10px;
}
#page-vehicle .veh-names-results .vn-row.off { background: #f6f6f7; border-color: #dcdce2; opacity: .85; }
#page-vehicle .veh-names-results .vn-row.add { background: #f6f9ff; border-color: #c7d7f7; }
#page-vehicle .veh-names-results .vn-kind {
  flex: none; font-size: 12px; font-weight: 700; color: #a33a2b;
  border: 1px solid #eeb1a6; border-radius: 6px; padding: 1px 7px; background: #fff;
}
#page-vehicle .veh-names-results .vn-row.off .vn-kind { color: #7a7a85; border-color: #c9c9d2; }
#page-vehicle .veh-names-results .vn-name { font-size: 14.5px; font-weight: 600; color: #1f2740; }
#page-vehicle .veh-names-results .vn-co { font-size: 12.5px; color: #7c3aed; border: 1px solid #c4b5fd; border-radius: 6px; padding: 1px 7px; background: #fff; }
#page-vehicle .veh-names-results .vn-row.off .vn-co { color: #9a8fc0; border-color: #d8d3ea; }
#page-vehicle .veh-names-results .vn-st { font-size: 12.5px; color: #8a8a95; }
#page-vehicle .veh-names-results .vn-row .btn-ghost { font-size: 13.5px; height: 34px; padding: 0 14px; border-radius: 8px; margin-left: auto; }
#page-vehicle .veh-names-results .vn-row.add .btn-ghost { margin-left: 0; }
#page-vehicle .veh-names-results .btn-danger { color: #b42318; border-color: #eeb1a6; background: #fff; }
#page-vehicle .veh-names-results .btn-danger:hover { background: #ffe9e4; }
#page-vehicle .veh-names-results select {
  font-size: 13.5px; height: 34px; padding: 0 8px;
  border: 1px solid #c7d7f7; border-radius: 8px; background: #fff; color: #1f2740; cursor: pointer;
}
#page-vehicle .veh-names-hint { margin: 0; font-size: 12.5px; color: #9c6b60; line-height: 1.6; }
@media (max-width: 640px) {
  #page-vehicle .veh-names-bar input[type="text"] { max-width: 100%; }
  #page-vehicle .veh-names-results .vn-row .btn-ghost { margin-left: 0; }
}

/* 签期必填高亮：选了「提车」但没填签期时标红 + 轻微脉动，填上后自动恢复 */
#page-vehicle .form-row select.veh-need,
select.veh-need {
  border-color: #e5484d !important;
  background: #fff5f5;
  color: #c62a30;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .15);
  animation: vehNeedPulse 1.2s ease-in-out infinite;
}
@keyframes vehNeedPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
  50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, .05); }
}
.veh-sign-tip {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #c62a30;
}
.veh-sign-tip.show { display: block; }

/* ===== 人事管理：页面美化 ===== */
#page-hr > h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
#page-hr > h2::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4f7dff, #2f5fe0);
}
#page-hr .sub-tabs { gap: 10px; margin-bottom: 16px; }
#page-hr .sub-tab {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 999px;
  transition: all .16s;
}
#page-hr .sub-tab:hover { border-color: #b9c6f5; color: var(--primary); background: #f4f7ff; }
#page-hr .sub-tab.active {
  background: linear-gradient(135deg, #4f7dff, #2f5fe0);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(47, 95, 224, .28);
  font-weight: 600;
}
#sub-emp .card-title { font-size: 17px; }
#sub-emp .hint {
  background: #f6f9ff;
  border: 1px solid #e3ecff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}
#sub-emp .filter-row {
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}
#sub-emp .filter-row > span:first-child { font-size: 15px; font-weight: 600; color: #31405c; }
#sub-emp .filter-row input,
#sub-emp .filter-row select {
  font-size: 15px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #1f2740;
  cursor: pointer;
}
#sub-emp .filter-row input[type="text"] { cursor: text; }
#sub-emp .filter-row input:focus,
#sub-emp .filter-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
#sub-emp .filter-row .btn-ghost { font-size: 15px; height: 42px; padding: 0 22px; border-radius: 10px; }
#emp-count { font-size: 14.5px !important; color: #31405c; }
#emp-table { font-size: 14.5px; }
#emp-table thead th {
  background: linear-gradient(180deg, #f3f6fd, #e9effb);
  color: #31405c;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 12px;
  border-bottom: 1px solid #e1e7f4;
  position: sticky;
  top: 0;
  z-index: 1;
}
#emp-table tbody td {
  padding: 11px 12px;
  color: #25304a;
  border-bottom: 1px solid #eef1f8;
  vertical-align: middle;
}
#emp-table tbody tr:nth-child(even) { background: #fafbfe; }
#emp-table tbody tr:hover { background: #f1f5ff; }
#emp-table tbody tr:last-child td { border-bottom: none; }
#emp-table tbody td:first-child,
#emp-table tbody td:nth-child(2) { font-variant-numeric: tabular-nums; color: #4a5568; }
#emp-table .emp-inline {
  font-size: 14px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dfe4ef;
  border-radius: 9px;
  background: #fff;
}
#emp-table .emp-inline:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .10);
  outline: none;
}
@media (max-width: 640px) {
  #emp-table { font-size: 13.5px; }
  #emp-table thead th, #emp-table tbody td { padding: 9px 10px; }
}
#sub-fee .fee-input {
  height: 38px; padding: 0 10px; font-size: 14px; border-radius: 9px;
  border: 1px solid #dfe4ef; background: #fff; min-width: 110px;
}
#sub-fee .fee-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .10); }
#sub-fee .fee-cost { min-width: 200px; }
