/* 青瓷绿（Celadon）口径：主色取青瓷釉的灰绿，页面底走清新浅绿，
   强调色留给暖赭金，避免绿-绿撞色。
   小程序 app.wxss 用同一套值，两端改色只需改这两个文件。 */
:root {
  --brand: #2f6b5e;
  --brand-dark: #1b3f35;
  --brand-light: #e6f1ec;
  --ink: #1a2320;
  --ink-2: #55635d;
  --ink-3: #8a968f;
  --line: #dfe9e3;
  --bg: #f0f7f3;
  --white: #fff;
  --warn: #b4762c;
  --warn-bg: #fbf1df;
  --danger: #a8402f;
  --danger-bg: #fbeae6;
  --ok: #2e8b6f;
  --ok-bg: #e2f4ec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.login-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  text-align: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 14px;
  margin: 0;
}

.login-card h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.login-sub {
  margin: 6px 0 26px;
  font-size: 13px;
  color: var(--ink-3);
}

.field-label {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.code-input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf9;
  text-align: center;
  font-size: 26px;
  letter-spacing: 10px;
  font-family: "SF Mono", Consolas, monospace;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.code-input:focus {
  border-color: var(--brand);
  background: #fff;
}

.code-input::placeholder {
  color: #cddcd4;
  letter-spacing: 6px;
}

.login-hint {
  margin: 10px 0 18px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
  line-height: 1.6;
}

.login-error {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

/* ---------- 图标 ---------- */
/* 统一 24 栅格线性描边，颜色跟着 color 走；尺寸由调用处的 width/height 决定 */
.ic {
  flex: 0 0 auto;
  vertical-align: -2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  height: 36px;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s,
              transform .3s cubic-bezier(.34, 1.45, .64, 1);
  background: transparent;
  color: var(--ink);
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 按下缩一点点。后台一天要点几十次「通过」「查询」，
   有这一点回弹，点没点中不用看结果就知道 */
.btn:not(:disabled):active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink-2);
}

.btn-ghost:hover:not(:disabled) { border-color: #c9d9d1; color: var(--ink); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #eecac1;
}

.btn-danger:hover:not(:disabled) { background: #f8dfd9; }

.btn-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #c6e3d5;
}

.btn-ok:hover:not(:disabled) { background: #dcf0e5; }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

.btn-block { width: 100%; height: 44px; font-size: 15px; }

/* ---------- 顶栏 ---------- */
.app { height: 100%; display: flex; flex-direction: column; }

.topbar {
  height: 54px;
  flex: 0 0 54px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.topbar-left { display: flex; align-items: center; gap: 10px; }

.topbar-title { font-size: 14px; font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.who { font-size: 13px; color: var(--ink-2); }

/* ---------- 布局 ---------- */
.layout { flex: 1; display: flex; min-height: 0; }

.sidenav {
  width: 172px;
  flex: 0 0 172px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}

.nav-item .ic { opacity: .72; }

.nav-item:hover { background: #f3f8f5; color: var(--ink); }

.nav-item:hover .ic { opacity: .9; }

.nav-item.is-on .ic { opacity: 1; }

.nav-item.is-on {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 500;
}

.badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 20px 24px 40px;
}

/* ---------- 通用块 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title { margin: 0; font-size: 17px; font-weight: 500; }

.page-desc { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat-k { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }

.stat-v {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.stat-v small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }

.stat.hot { border-color: #efdcc0; background: var(--warn-bg); }

.stat.hot .stat-v { color: var(--warn); }

/* ---------- 概览：趋势 + 待办 ---------- */
.overview-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1080px) {
  .overview-cols { grid-template-columns: 1fr; }
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head strong { font-size: 13.5px; font-weight: 600; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 118px;
  padding-top: 6px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar-num { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; font-variant-numeric: tabular-nums; }

.bar {
  width: 100%;
  max-width: 34px;
  background: linear-gradient(180deg, #4a9583, var(--brand));
  border-radius: 4px 4px 2px 2px;
  min-height: 3px;
}

.bar-day { font-size: 11px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }

.todo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf3ef;
}

.todo-row:last-of-type { border-bottom: none; }

.todo-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.todo-txt strong { font-size: 13px; font-weight: 500; }

.todo-empty { padding: 14px 0 6px; }

.todo-empty strong { font-size: 13px; font-weight: 500; color: var(--ok); }

/* ---------- 概览：数据状况条 ---------- */
.data-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 20px;
}

.strip-item { display: flex; align-items: baseline; gap: 8px; }

.strip-k { font-size: 12.5px; color: var(--ink-3); }

.strip-v { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }

.strip-tail { margin-left: auto; }

/* ---------- 表格 ---------- */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  text-align: left;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink-3);
  background: #f4f9f6;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf3ef;
  vertical-align: middle;
}

table.data tr:last-child td { border-bottom: none; }

/* 行高亮加过渡：鼠标扫过一列行时不再一块块闪 */
table.data tbody tr {
  transition: background-color .12s ease;
}

table.data tbody tr:hover { background: #f7fbf9; }

/* 表格刷新后新出现的行短暂亮一下，让人知道「这一屏变了」。
   借鉴 Lucian #227 的做法：只在真正的变化处闪，不整页重绘 */
@keyframes row-flash {
  0%   { background: #EAF5EF; }
  100% { background: transparent; }
}

table.data tbody tr.is-new {
  animation: row-flash .9s ease-out;
}

table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.cell-input {
  width: 100%;
  min-width: 84px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.cell-input:focus { border-color: var(--brand); }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 18px;
  background: #e9f0eb;
  color: var(--ink-2);
}

.tag.warn { background: var(--warn-bg); color: var(--warn); }

.tag.ok { background: var(--ok-bg); color: var(--ok); }

.tag.danger { background: var(--danger-bg); color: var(--danger); }

.row-actions { display: flex; gap: 6px; white-space: nowrap; }

/* ---------- 导入 ---------- */
.dropzone {
  border: 1.5px dashed #c9d9d1;
  border-radius: 12px;
  background: #f7fbf9;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.dropzone:hover, .dropzone.is-over {
  border-color: var(--brand);
  background: var(--brand-light);
}

.dropzone-title { font-size: 14px; margin-bottom: 6px; }

.dropzone-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 14px;
}

/* ---------- 台账标签页 ---------- */
.tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: none;
  background: none;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--ink); }

.tab.is-on {
  color: var(--brand-dark);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.tabs-main {
  margin: 16px 0 0;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.tabs-main .tab {
  font-size: 14.5px;
  padding: 10px 18px;
}

.tabs-sub {
  margin: 10px 0 4px;
  border-bottom: 1px dashed var(--line);
}

.tabs-sub .tab { font-size: 13px; padding: 7px 14px; }

.detail-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.detail-bar .field-input { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }

.detail-label { font-size: 12.5px; color: var(--ink-2); }

.tab-n {
  font-size: 11px;
  background: #EAF2EE;
  color: var(--brand-dark);
  border-radius: 9px;
  padding: 1px 7px;
  font-weight: 400;
}

/* ---------- 注册审核：行驶证 ---------- */
.lic-thumb {
  width: 76px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  display: block;
}

.cell-input.is-conflict {
  border-color: var(--danger) !important;
  background: #FDF2EF;
  color: var(--danger);
  font-weight: 600;
}

.plate-warn {
  color: var(--danger) !important;
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- 换车审批 ---------- */
.trans-card { padding: 16px 18px; }

.trans-card.is-done { opacity: .86; }

.trans-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tn-col {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fbfdfc;
}

.tn-h { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: var(--brand-dark); }

.tn-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  padding: 3px 0;
  color: var(--ink-2);
}

.tn-row b { font-variant-numeric: tabular-nums; color: var(--ink); }

.tn-sum { border-top: 1px dashed var(--line); margin-top: 5px; padding-top: 6px; font-weight: 600; }

.tn-sum b { color: var(--brand-dark); }

.tn-warn { margin-top: 8px; font-size: 11.5px; color: var(--danger); }

.trans-reason { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 定期复检 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 20px;
  margin-top: 12px;
}

.form-row { display: flex; flex-direction: column; gap: 5px; }

.form-row .field-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}

.form-row .field-label { font-size: 12px; color: var(--ink-2); }

.rc-item { border-top: 1px solid var(--line); padding: 12px 0; }
.rc-item:first-child { border-top: none; }

.rc-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }

.rc-item-body { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }

.rc-item-body figure { margin: 0; flex: 0 0 150px; }

.rc-item-body img {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  display: block;
}

.rc-item-body figcaption { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 4px; }

.rc-item-reason { flex: 1; font-size: 12.5px; color: var(--danger); line-height: 1.65; }

/* ---------- 存疑审核 ---------- */
.risk-card { padding: 16px 18px; border-left: 3px solid var(--danger); }

.risk-card.is-done { border-left-color: var(--ok); opacity: .82; }

.risk-flags { display: flex; flex-direction: column; gap: 6px; }

.risk-flag {
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 6px;
  padding: 7px 11px;
  line-height: 1.5;
}

.risk-card.is-done .risk-flag { color: var(--ink-2); background: #f1f5f2; }

.risk-body:not(:empty) { margin-top: 14px; }

.cmp-row { display: flex; flex-direction: column; gap: 14px; }

.cmp-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfdfc;
}

.cmp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; }

.cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cmp-pair figure { margin: 0; }

.cmp-pair img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: block;
  cursor: zoom-in;
}

.cmp-pair figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; text-align: center; }

.cmp-score {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 7px;
  display: inline-block;
}

.cmp-score.ok { background: var(--ok-bg); color: var(--ok); }
.cmp-score.warn { background: var(--warn-bg); color: var(--warn); }
.cmp-score.bad { background: var(--danger-bg); color: var(--danger); }

.cmp-mile { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }

.cmp-mile b { color: var(--brand-dark); }

.ai-box:not(:empty) { margin-top: 10px; }

.ai-result {
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
}

.ai-title { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.ai-point { font-size: 13px; line-height: 1.7; display: flex; gap: 8px; }

.ai-point i {
  font-style: normal;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.ai-recapture {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.6;
}

.ai-recapture small { font-size: 11.5px; opacity: .85; }

.ai-note { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 打卡明细 ---------- */
.trip-card { padding: 16px 18px; }

.trip-card.is-flagged { border-left: 3px solid var(--danger); }

.trip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.trip-title { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }

.trip-title strong { font-size: 13.5px; font-weight: 600; }

.trip-tail { display: flex; align-items: center; gap: 10px; }

.trip-km { font-size: 15px; font-weight: 600; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

.trip-km small { font-size: 11px; font-weight: 400; color: var(--ink-3); }

.stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) { .stage-row { grid-template-columns: 1fr; } }

.stage-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdfc;
}

.stage-box.is-empty { background: #f7faf8; border-style: dashed; display: flex; flex-direction: column; }

.stage-empty-txt { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

.stage-name { font-size: 12.5px; font-weight: 500; }

.stage-time { font-size: 11.5px; color: var(--ink-3); }

.stage-photo {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--bg);
  display: block;
  cursor: zoom-in;
}

.stage-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-3);
  cursor: default;
}

.stage-mile { margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }

.stage-mile strong { font-size: 16px; font-weight: 600; color: var(--brand-dark); }

.stage-mile small { font-size: 11px; color: var(--ink-3); margin-left: 2px; }

.stage-place { margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

.trip-risk {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 7px;
  padding: 8px 12px;
  line-height: 1.6;
}

.trip-sales { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* 表格里的缩略图（车辆标准照）：固定尺寸裁切，点开看大图 */
.thumb {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
  cursor: zoom-in;
  background: var(--bg);
  transition: border-color .15s;
}

.thumb:hover { border-color: var(--brand); }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }

table.data td small { font-size: 11px; }

/* 放大看图的遮罩 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 38, 32, .84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.lightbox .lb-cap {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

/* 内联统计块：比概览的 .stat 更轻，四个数字并排也不抢戏 */
.stat-cell { min-width: 96px; }

.stat-cell-k { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }

.stat-cell-v {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.stat-cell-v small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }

.stat-cell-v.is-warn { color: var(--danger); }

/* 规则表这类窄表：列不多，铺满 1000px 会把输入框拉成一条长杠 */
.narrow-table { max-width: 640px; }

.col-hint {
  font-size: 12.5px;
  color: var(--ink-2);
  background: #f4f9f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.8;
  margin-top: 14px;
}

/* ---------- 月份条 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.field-input {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field-input:focus { border-color: var(--brand); }

.spacer { flex: 1; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 32, .40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 12px;
  padding: 22px 22px 18px;
}

.modal-card h2 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }

.modal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: #22303c;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  z-index: 60;
  max-width: 80vw;
}

.toast.bad { background: var(--danger); }

/* ---------- 页脚（备案号，工信部要求网站展示） ---------- */
.site-footer {
  padding: 18px 24px 26px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.12); }
.site-footer a:hover { color: var(--ink-1); }

.mono { font-family: "SF Mono", Consolas, monospace; }

.muted { color: var(--ink-3); }

.nowrap { white-space: nowrap; }

.loading { padding: 40px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 动销判定：台账里的标红与覆盖标签（2026-11-17） ---------- */

/* 未计入的行淡红底 + 左侧红竖条。
   文字不全变红 —— 一整行红字读起来太累，只把「说明」那一格标红。 */
table.data tbody tr.row-bad { background: var(--danger-bg); }
table.data tbody tr.row-bad:hover { background: #f8dfd9; }
table.data tbody tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
table.data tbody tr.row-bad td.note-cell { color: var(--danger); }
table.data tbody tr.row-bad td .cov-bad { color: var(--danger); }

/* 当日覆盖乡镇 x/y */
.cov {
  display: inline-block;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  background: #edf3ef;
  color: var(--ink-2);
  font-size: 12px;
}
.cov-ok { background: var(--ok-bg); color: var(--ok); }
/* 红底行里如果标签也用 --danger-bg，就和行底色一样看不见了，
   所以这里单独加深一档，并用内描边勾出形状。 */
.cov-bad {
  background: #f7d8d1;
  color: var(--danger);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(168, 64, 47, .3);
}

/* 按人汇总里「无动销天数」那个小红点 */
.tag-bad {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

/* 口径说明条：让看报表的人先知道规则，再看数字 */
.note-info {
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
}
.note-warn {
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
}
.note-info strong, .note-warn strong { font-size: 13px; }

/* 台账分节标题 */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sec-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 明细里的说明列，别让它把整张表撑爆 */
table.data td.note-cell {
  max-width: 260px;
  color: var(--ink-2);
  font-size: 12px;
}
