:root {
  /* 滴滴橙主色系 */
  --primary: #FF6A1F;        /* 主色·滴滴橙 */
  --primary-light: #FF9A5A;
  --primary-dark: #E8540A;
  --accent2: #FF6A1F;        /* 兼容旧引用（=主色） */
  --primary-soft: rgba(255,106,31,0.10);
  --primary-softer: rgba(255,106,31,0.05);

  /* 浅色简约底 */
  --bg: #F4F5F7;
  --panel: #FFFFFF;
  --panel-2: #FAFBFC;
  --border: #ECEEF1;
  --border-strong: #DDE1E7;

  /* 文字 */
  --text: #1F2329;
  --muted: #8A9099;

  /* 状态/辅助色 */
  --good: #1FA971;
  --warn: #F5A623;
  --danger: #F5483B;
  --blue: #3B6FE0;
  --purple: #8B5CF6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 420px at 86% -10%, rgba(255,106,31,0.07), transparent 60%),
    #F4F5F7;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
/* 跨设备格式一致性：固定设计宽度，由 index.html 的缩放脚本整页等比缩放，布局不随设备重排 */
#scaler { width: 1440px; margin: 0; transform-origin: top left; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(31,35,41,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,35,41,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1100px 700px at 50% 0%, #000 40%, transparent 95%);
}
/* 背景柔和彩色光斑（玻璃拟态衬底）：铺满 #scaler、置于内容之下。强度克制，不干扰阅读 */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 32% at 14% 10%, rgba(255,106,31,.24), transparent 70%),
    radial-gradient(34% 28% at 86% 16%, rgba(64,140,255,.18), transparent 70%),
    radial-gradient(44% 38% at 72% 92%, rgba(150,90,255,.15), transparent 70%);
  filter: blur(60px);
  /* animation: glowFloat 22s ease-in-out infinite alternate; */ /* 性能优化：光斑改静态，消除全屏模糊层持续合成 */
}

/* ── 顶栏 ── */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px 32px 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  font-size: 26px; color: var(--primary);
  line-height: 1;
  /* animation: logoPulse 2.4s ease-in-out infinite; */ /* 性能优化：改静态 */
}
.brand h1 {
  font-size: 21px; font-weight: 800; letter-spacing: 0.5px; color: var(--text);
  position: relative; padding-bottom: 5px;
}
.brand h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #ffb07a, transparent);
  background-size: 200% 100%;
  /* animation: lineFlow 3.2s linear infinite; */ /* 性能优化：改静态 */
}
.brand p { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-top: 3px; }
/* 时间框贴到最右侧，紧邻「刷新数据」按钮左边 */
.clock { text-align: right; margin-left: auto; margin-right: 22px; }
#clock-time {
  font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--primary); letter-spacing: 1px;
}
#clock-date { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── 刷新控件 ── */
.refresh-box { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: 18px; }
.refresh-box .updated { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.refresh-btn {
  font-size: 14px; font-weight: 800; letter-spacing: 0.5px;
  padding: 9px 18px; border-radius: 10px; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(255,106,31,0.30);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, opacity .15s, background .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.refresh-btn .ico { display: inline-block; }
.refresh-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,106,31,0.40); }
.refresh-btn:active { transform: scale(0.94); box-shadow: 0 2px 8px rgba(255,106,31,0.30); }
.refresh-btn:disabled,
.refresh-btn.loading { opacity: .85; cursor: progress; pointer-events: none; }
.refresh-btn.loading .ico { animation: spin 0.8s linear infinite; }
.refresh-btn.done { background: linear-gradient(135deg, var(--good), #18A05F); box-shadow: 0 4px 14px rgba(31,169,113,0.35); }

/* ── 一键折叠 / 展开 按钮组（顶栏右侧）── */
.ctrl-btn-group { display: inline-flex; gap: 6px; }
.ctrl-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 6px 11px;
  border-radius: 7px; cursor: pointer;
  background: #fff; color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  transition: background .15s, color .15s, transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.ctrl-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }
.ctrl-btn:active { transform: scale(0.96); }
.ctrl-btn .ico { font-size: 13px; line-height: 1; }
/* 退出登录按钮（header 顶部右侧） */
.logout-btn {
  margin-left: 8px;
  background: linear-gradient(135deg, #ff5a4e, #ff7a1f);
  color: #fff;
  border: none;
  font-weight: 700;
  transition: background .18s, transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.logout-btn:hover { background: linear-gradient(135deg, #ff3d2e, #ff6a1f); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,61,46,.35); }
.logout-btn:active { transform: scale(.95); }

/* 顶栏右侧按钮统一尺寸与间距（精简版：去掉一键折叠/展开后） */
.topbar .ctrl-btn-group { gap: 10px; }
.topbar .refresh-box { margin: 0 8px; }
.topbar .logout-btn { margin-left: 8px; }
.topbar .ctrl-btn,
.topbar .refresh-btn {
  padding: 6px 12px; font-size: 12.5px; border-radius: 8px; gap: 5px;
}
.topbar .ctrl-btn .ico,
.topbar .refresh-btn .ico { font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
/* 品牌 logo 橙光呼吸 */
@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 6px rgba(255,106,31,.25), 0 0 18px rgba(255,106,31,.10); }
  50% { text-shadow: 0 0 10px rgba(255,106,31,.55), 0 0 26px rgba(255,106,31,.30); }
}
/* 标题渐变下划线流动 */
@keyframes lineFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
/* KPI 数字淡入上移 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* 勾选圆点弹入 */
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* 背景光斑极慢漂浮 */
@keyframes glowFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2%, 1.5%, 0); }
  100% { transform: translate3d(2%, -1.5%, 0); }
}

/* ── 主体 ── */
.board {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 12px;   /* 方案A：19→12，面板间更紧凑 */
  padding: 18px 32px 8px;
  margin: 0;
}
.panel {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;                       /* 方案A：16→12 */
  padding: 14px 16px 16px;                   /* 方案A：18/20/20→14/16/16 */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 3px rgba(31,35,41,0.04), 0 8px 24px rgba(31,35,41,0.05);
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }  /* 方案A：16→10 */
.panel-head .bar {
  width: 5px; height: 18px; border-radius: 3px;   /* 方案A：20→18 */
  background: linear-gradient(var(--primary), var(--primary-light));
}
.panel-head .bar.accent2 { background: linear-gradient(var(--primary-dark), var(--primary-light)); }
.panel-head .bar.accent3 { background: linear-gradient(var(--primary-light), #FFC59E); }
.panel-head h2 { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }  /* 方案A：18→16 */
.panel-head .panel-sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.panel-toggle {
  margin-left: 14px; cursor: pointer; user-select: none;
  font-size: 13px; line-height: 1; color: var(--muted);
  min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid var(--border); background: #fff;
  transition: transform .2s ease, color .15s, border-color .15s, background .15s;
}
.panel-toggle:hover { color: var(--primary); border-color: var(--primary-light); background: var(--primary-soft); }
.panel.collapsed .panel-toggle { transform: rotate(-90deg); }
.panel.collapsed > *:not(.panel-head) { display: none; }

/* ── 板块1：城市卡 ── */
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.city-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  min-height: 262px;
}
.city-card:hover { transform: translateY(-3px); border-color: var(--primary-light); box-shadow: 0 10px 26px rgba(255,106,31,0.18); }
/* 未开城 → 暗淡显示（标灰） */
.city-card.dim {
  opacity: 0.42; filter: grayscale(0.85);
  background: #F2F3F5; border-style: dashed;
}
.city-card.dim:hover { transform: none; box-shadow: none; border-color: var(--border); }
.city-card.dim .focus-text, .city-card.dim .btn { opacity: 0.85; }
.locked-ribbon {
  position: absolute; top: 10px; right: -34px;
  transform: rotate(38deg);
  background: var(--muted); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 36px; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.city-card { position: relative; overflow: hidden; }
.city-top { display: flex; align-items: center; justify-content: space-between; }
.city-name { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.badge {
  font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 700;
  border: 1px solid currentColor; background: #fff;
}
.city-manager { font-size: 12px; color: var(--muted); }
.focus-label { font-size: 11px; color: var(--primary); letter-spacing: 1px; margin-top: 2px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.focus-label.muted { color: var(--muted); margin-top: 0; font-weight: 600; }
.focus-tag {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
  color: var(--primary-dark); border: 1px solid var(--primary-light); background: var(--primary-soft);
}
.focus-src { font-size: 10.5px; color: var(--muted); margin-top: -4px; }
.focus-text {
  font-size: 12.5px; line-height: 1.55; color: var(--text);
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; flex: 1;
  white-space: pre-wrap;        /* 保留腾讯文档中的换行（\n → 换行）+ 长文本自动折行 */
  word-break: break-word;
}
.focus-text.sm { font-size: 12px; color: var(--muted); }
.focus-text.placeholder { color: var(--muted); font-style: italic; }
.btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; border: 1px solid var(--primary);
  background: var(--primary); color: #fff;
  text-decoration: none; transition: background .15s, transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,106,31,.25); }
.btn:active { transform: scale(.95); }
.panel-head .jump-link.btn { margin-top: 0; margin-left: 12px; padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled, .btn.disabled {
  border-color: var(--border); background: #fff;
  color: var(--muted); cursor: not-allowed;
}

/* ── 板块2：履约 KPI + 图 ── */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 12px; }  /* 方案A：gap14→12，mb16→12 */
.kpi {
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 10px;   /* 方案A：12→10 */
  padding: 11px 14px; position: relative; overflow: hidden;       /* 方案A：14/16→11/14 */
  animation: fadeUp .5s ease both;
}
.kpi-row .kpi:nth-child(2) { animation-delay: .05s; }
.kpi-row .kpi:nth-child(3) { animation-delay: .1s; }
.kpi-row .kpi:nth-child(4) { animation-delay: .15s; }
.kpi-row .kpi:nth-child(5) { animation-delay: .2s; }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--kbd, var(--kcol, var(--primary)));
}
.kpi .k-label { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.kpi .k-value {
  font-size: 24px; font-weight: 800; margin-top: 4px;   /* 方案A：30→24，mt6→4 */
  color: var(--kcol, var(--primary)); font-variant-numeric: tabular-nums;
}
.kpi .k-unit { font-size: 13px; color: var(--muted); margin-left: 4px; font-weight: 600; }

/* 待核对数字框醒目强化：红色底纹 + 加粗 + 左边条加宽 */
.kpi-urgent {
  background: rgba(245,72,59,0.10);
  border-color: rgba(245,72,59,0.28);
}
.kpi-urgent::before {
  width: 5px;
  box-shadow: 0 0 8px rgba(245,72,59,0.4);
}
.kpi-urgent .k-value {
  font-weight: 900;
}

/* 司导排期 · 名称数字框（横向=司导姓名，名下=已接团数/已接天数/待接团数） */
.ds-stat { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ds-stat-name { font-size: 15px; font-weight: 700; color: var(--text); border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.ds-stat-name .ds-age { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.ds-rowhead .ds-age { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.ds-stat-tip { font-size: 11.5px; line-height: 1.55; color: var(--muted); background: var(--primary-softer); border-radius: 8px; padding: 7px 9px; border-left: 3px solid var(--primary); }
.ds-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ds-stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--primary-softer); border-radius: 8px; padding: 8px 4px; }
.ds-stat-item .v { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.ds-stat-item .l { font-size: 11px; color: var(--muted); }
.ds-stat-item.pend { background: #fff7ed; }
.ds-stat-item.pend .v { color: var(--warn); }
.ds-stat-empty { color: var(--muted); font-size: 13px; padding: 12px; }

.fulfill-tables { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; margin-top: 12px; }  /* 方案A：gap14→12，mt14→12 */
.card {
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.65); border-radius: 10px;   /* 方案A：12→10 */
  padding: 12px 14px 8px;                                          /* 方案A：14/16/10→12/14/8 */
}
.card-title { font-size: 13px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }  /* 方案A：8→6 */
/* 可折叠区块（每日服务动作明细：APP 端默认折叠，PC 端始终展开） */
.collapse-head { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.collapse-head .caret { display: inline-block; font-size: 12px; color: var(--primary); transition: transform .2s ease; }
.collapse-card.collapsed .collapse-head .caret { transform: rotate(-90deg); }
.chart { width: 100%; height: 230px; }

/* 每日服务动作明细：默认最多显示约 5 行，超出纵向滚动/滑动浏览（表头固定） */
#dayDetailWrap { max-height: 210px; overflow-y: auto; }
#dayDetailWrap .precheck-table thead th { position: sticky; top: 0; z-index: 2; }

/* 履约交付看板 · 等级标签 */
.lv-tag {
  display: inline-block; font-size: 11px; line-height: 1.4; padding: 2px 9px;
  border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.lv-perfect, .lv-ok { color: #15803d; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.lv-mild { color: #b45309; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); }
.lv-danger { color: #b91c1c; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); }
.lv-na { color: var(--muted); background: var(--panel); border: 1px dashed var(--border); }
/* 履约明细表：固定列宽防重叠（7列：团期/线路/司导/服务天数/完成率/缺失/等级；每日服务动作明细结构相同共用此规则） */
.fulfill-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
/* 团期履约明细：首列加宽，完整显示日期区间 */
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(1),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(1) { width: 38%; }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(2),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(2) { width: 8%;  }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(3),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(3) { width: 11%; }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(4),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(4) { width: 8%;  }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(5),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(5) { width: 11%; }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(6),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(6) { width: 8%;  }
.fulfill-tables > .card:nth-child(1) .fulfill-table th:nth-child(7),
.fulfill-tables > .card:nth-child(1) .fulfill-table td:nth-child(7) { width: 16%; }
/* 每日服务动作明细：天次列无需太宽 */
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(1),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(1) { width: 18%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(2),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(2) { width: 10%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(3),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(3) { width: 13%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(4),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(4) { width: 10%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(5),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(5) { width: 13%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(6),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(6) { width: 10%; }
.fulfill-tables > .card:nth-child(2) .fulfill-table th:nth-child(7),
.fulfill-tables > .card:nth-child(2) .fulfill-table td:nth-child(7) { width: 26%; }
.fulfill-table .days { font-weight: 700; font-variant-numeric: tabular-nums; }
.fulfill-table .route {
  font-size: 12px; font-weight: 700;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: default; color: var(--primary-dark);
}

/* 团期履约明细 · 可点击联动行 */
.tg-row { cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.tg-row:hover { background: rgba(255,106,31,.06); transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--primary), 0 4px 14px rgba(255,106,31,.12); }
.tg-row.tg-selected { background: rgba(255,106,31,.12); box-shadow: inset 3px 0 0 var(--primary); }

/* 每日明细筛选提示 */
.df-hint { display: inline-block; font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; line-height: 1.6; }
.df-hint b { color: var(--primary-dark); font-weight: 700; }
.df-reset { color: var(--primary); cursor: pointer; text-decoration: underline; margin-left: 4px; }
.df-reset:hover { color: var(--primary-dark); }

/* ── 板块0：文旅行业资讯（可折叠，默认折叠）── */
.news-panel .news-head { cursor: pointer; user-select: none; }
.news-panel .news-head:hover h2 { color: var(--primary-dark); }
.news-toggle {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,106,31,0.08); border: 1px solid var(--primary-light);
  border-radius: 999px; padding: 3px 12px;
}
.news-toggle .caret { display: inline-block; transition: transform .18s; }
.news-panel:not(.collapsed) .news-toggle .caret { transform: rotate(180deg); }
.news-body { overflow: hidden; transition: max-height .25s ease, opacity .2s, margin .2s; }
.news-panel.collapsed .news-body { max-height: 0; opacity: 0; margin: 0; }
.news-panel:not(.collapsed) .news-body { max-height: 3000px; opacity: 1; }
/* 资讯分类 tab（玻璃拟态，位于 news-body 上方，折叠时一并隐藏） */
.news-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px;
  background: rgba(255,255,255,.5); padding: 4px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(0,0,0,.06);
}
.news-panel.collapsed .news-tabs { display: none; }
.news-tab {
  border: none; background: transparent; padding: 6px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color .18s, transform .18s cubic-bezier(.34,1.56,.64,1), background .18s;
}
.news-tab:hover { color: var(--primary); transform: translateY(-1px); background: rgba(255,106,31,.08); }
.news-tab.active {
  background: linear-gradient(135deg, var(--primary), #ff8a47);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255,106,31,.35);
}
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }

/* 文旅资讯独立刷新按钮 */
.news-refresh-btn {
  margin-left: 12px; font-size: 12px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--primary);
  border-radius: 999px; padding: 3px 12px; cursor: pointer;
  transition: background .15s, color .15s;
}
.news-refresh-btn:hover { background: var(--primary); color: #fff; }
.news-refresh-btn.loading { opacity: .55; pointer-events: none; }

/* 全局轻量提示层 */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999;
  max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #16a34a; }
.toast.info { background: #3b82f6; }
.toast.warn { background: #f59e0b; }
.news-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.news-item:hover { border-color: var(--primary-light); box-shadow: 0 4px 14px rgba(255,106,31,0.08); }
.news-rank {
  flex: 0 0 22px; height: 22px; border-radius: 6px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  background: #fff; border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.news-rank.hot { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; }
.news-main { min-width: 0; flex: 1; }
.news-line1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.news-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.5; text-decoration: none; }
a.news-title:hover { color: var(--primary-dark); text-decoration: underline; }
.news-tag {
  font-size: 10.5px; font-weight: 700; color: var(--primary-dark);
  background: rgba(255,106,31,0.10); border: 1px solid var(--primary-light);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.news-date { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-digest { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 4px; }
.news-impact {
  font-size: 11.5px; color: var(--text); line-height: 1.6; margin-top: 6px;
  background: #fff; border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0;
  padding: 5px 9px;
}
.news-impact b { color: var(--primary-dark); font-weight: 800; margin-right: 6px; }
.news-empty { font-size: 12px; color: var(--muted); padding: 10px 2px; }

/* ── 板块3：七库维护管理（Cooper 协同表可视化）──
   注：旧 lib-grid 五库卡片布局已被七库看板取代；lib-grid 现为七库内嵌块容器。 */
.lib-grid { display: block; }
.lib-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 12px;
  padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px;  /* 方案A：16/16/14→14/14/12 */
  position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  min-height: 200px;
}
.lib-card:hover { transform: translateY(-3px); border-color: var(--primary-light); box-shadow: 0 10px 26px rgba(255,106,31,0.18); }
.lib-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255,106,31,0.10), transparent 70%);
}
.lib-name { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.lib-note { font-size: 11px; color: var(--muted); margin-top: -4px; }
.lib-metrics { display: flex; gap: 8px; margin: 2px 0 4px; flex: 1; align-items: stretch; }
.lib-metric {
  flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 4px; text-align: center;
}
/* 数字框：橙色字与黑色字统一字号，仅颜色区分 */
.lib-metric-val { font-size: 23px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lib-metric.sm .lib-metric-val { font-size: 23px; color: var(--text); }
.lib-metric-label { font-size: 10.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.lib-card > a:last-child,
.lib-card > button:last-child {
  margin-top: auto;
}

/* 司导分布详情 + 饼图 */
.lib-detail {
  margin-top: 14px; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; background: var(--panel-2);
}  /* 方案A：16px→14px,16/18→14/16 */
.lib-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lib-detail-head .bar { width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(var(--primary), var(--primary-light)); }
.lib-detail-head h3 { font-size: 15px; font-weight: 800; color: var(--text); }
.lib-detail-sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.pie-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pie-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px 4px; }
.pie-title { text-align: center; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.pie { width: 100%; height: 240px; }

/* ── 板块四：行前资源检核 ── */
/* 关键：table-layout:fixed + 百分比列宽 → 永不横向溢出，自动适配单屏 */
.precheck-wrap {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 2px; overflow: auto; max-height: 46vh;
}
.precheck-table {
  width: 100%; border-collapse: collapse; font-size: 11px;
  table-layout: fixed; min-width: 0;
}
.precheck-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 5px 5px; border-bottom: 2px solid var(--border-strong);
  white-space: normal; line-height: 1.25; position: sticky; top: 0; z-index: 2;
  background: var(--panel-2);
}
.precheck-table tbody td {
  padding: 5px 6px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle; white-space: normal;
  word-break: break-word; overflow-wrap: anywhere;
}
.precheck-table tbody tr:last-child td { border-bottom: none; }
.precheck-table tbody tr { transition: background .15s, transform .15s, box-shadow .15s; }
.precheck-table tbody tr:hover { background: var(--primary-softer); transform: translateY(-1px); }
.precheck-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
/* 履约交付两表第1列（团期/天次）短日期不换行，避免拆成多行；同时不裁剪，显示完整文字 */
.fulfill-table tbody td:first-child,
.fulfill-table tbody td.c-seq {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.fulfill-table tbody td:first-child { font-variant-numeric: tabular-nums; }
.fulfill-table tbody td {
  white-space: nowrap;           /* 单元格内不换行（避免文本撑高行高） */
  overflow: hidden;              /* 超长文本裁剪，避免溢出到邻列造成视觉重叠 */
  text-overflow: ellipsis;       /* 裁剪处显示 … */
}
/* 团期/天次/线路列显示完整（线路已用 .route 单独截断，其余列保持不换行但可完整显示） */
.fulfill-table tbody td:first-child,
.fulfill-table tbody td.c-seq,
.fulfill-table tbody td.c-num {
  overflow: visible;
  text-overflow: clip;
}
/* 百分比列宽（13 列，合计 100%，chip 列更宽以便换行） */
.precheck-table th:nth-child(1), .precheck-table td:nth-child(1) { width: 8%; }    /* 订单号 */
.precheck-table th:nth-child(2), .precheck-table td:nth-child(2) { width: 8%; }    /* 线路 */
.precheck-table th:nth-child(3), .precheck-table td:nth-child(3) { width: 8%; }    /* 出行区间 */
.precheck-table th:nth-child(4), .precheck-table td:nth-child(4) { width: 4%; }    /* 人数 */
.precheck-table th:nth-child(5), .precheck-table td:nth-child(5) { width: 5%; }    /* 距发团 */
.precheck-table th:nth-child(6), .precheck-table td:nth-child(6) { width: 8%; }    /* 司导 */
.precheck-table th:nth-child(7), .precheck-table td:nth-child(7) { width: 9%; }    /* 酒店 */
.precheck-table th:nth-child(8), .precheck-table td:nth-child(8) { width: 11%; }   /* 玩乐 */
.precheck-table th:nth-child(9), .precheck-table td:nth-child(9) { width: 9%; }    /* 票务 */
.precheck-table th:nth-child(10), .precheck-table td:nth-child(10) { width: 9%; }  /* 租车 */
.precheck-table th:nth-child(11), .precheck-table td:nth-child(11) { width: 10%; } /* 接机/站 */
.precheck-table th:nth-child(12), .precheck-table td:nth-child(12) { width: 6%; }  /* 状态 */
.precheck-table th:nth-child(13), .precheck-table td:nth-child(13) { width: 5%; }  /* 操作 */
/* 主表格外层：保证不溢出屏幕；窄屏时横向滚动 */
.pc-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.pc-table-wrap .precheck-table { margin-bottom: 0; }
/* 紧凑内边距：14 列也能在常见笔记本一屏内显示完整 */
.precheck-table th, .precheck-table td { padding: 8px 6px; font-size: 12.5px; line-height: 1.45; }
.precheck-table thead th { padding: 10px 6px; font-size: 12px; }
/* chip列：芯片在列内自动换行 */
.precheck-table .c-chips { white-space: normal; }
.precheck-table .c-num { text-align: center; }
.precheck-table .c-days { text-align: center; }
.precheck-table .route { font-weight: 700; white-space: normal; }
.precheck-table .order-no { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: normal; word-break: break-all; }
.precheck-table .days { font-weight: 700; font-variant-numeric: tabular-nums; }
.precheck-table .days.soon { color: var(--danger); }
.precheck-table .days.near { color: var(--warn); }
.precheck-table .days.gone { color: var(--muted); font-weight: 600; }
/* chip 列允许换行（chip 自身保持单行，多枚在列内折行） */
.precheck-table .c-chips { white-space: normal; }

/* 核对单元格徽标 */
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.chk .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chk.ok .dot { background: var(--good); }
.chk.no .dot { background: var(--danger); }
.chk.part .dot { background: var(--warn); }
.chk.ok { color: var(--good); font-weight: 700; }
.chk.no { color: var(--danger); }
.chk.part { color: var(--warn); font-weight: 700; }
.chk .name { color: var(--text); font-weight: 600; }

/* 行前检核：酒店/玩乐 逐项 chip */
.c-chips { vertical-align: top; }
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; line-height: 1.3; padding: 1px 5px; border-radius: 9px;
  margin: 1px 3px 1px 0; white-space: nowrap; border: 1px solid transparent;
}
.chip.on { color: var(--good); background: rgba(31,169,113,0.10); border-color: rgba(31,169,113,0.28); }
.chip.off { color: var(--danger); background: rgba(229,72,77,0.08); border-color: rgba(229,72,77,0.22); }

.chk-badge {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  border: 1px solid currentColor;
}
.chk-badge.done { color: var(--good); background: rgba(31,169,113,0.08); }
.chk-badge.doing { color: var(--warn); background: rgba(245,166,35,0.10); }
.chk-badge.todo { color: var(--muted); background: #F2F3F5; }
.chk-badge.urgent { color: #fff; background: var(--danger); border-color: var(--danger); }

/* ── 手动录入：工具栏 / 表单 / 操作 ── */
.pc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-toolbar .btn { padding: 7px 14px; font-size: 13px; }
.btn.ghost {
  background: #fff; color: var(--primary-dark); border: 1px solid var(--primary-light);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--primary-soft); }
.pc-hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.pc-form {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.pc-form-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.pc-form-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pc-form-grid label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted); font-weight: 700;
}
.pc-form-grid input, .pc-form-grid select {
  font-size: 13px; color: var(--text); padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff;
  font-family: inherit;
}
.pc-form-grid input:focus, .pc-form-grid select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.pc-form-actions { display: flex; gap: 10px; margin-top: 12px; }
.pc-form-actions .btn { padding: 8px 18px; font-size: 13px; }

.precheck-table .c-act { white-space: nowrap; }
.pc-act {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border-strong); background: #fff; color: var(--muted); margin-right: 4px;
  transition: .15s;
}
.pc-act:hover { border-color: var(--primary-light); color: var(--primary-dark); }
.pc-act.del:hover { border-color: var(--danger); color: var(--danger); }
.pc-act.rev:hover { border-color: var(--good); color: var(--good); }

/* 线路标识色 */
.precheck-table .route.line-a { color: var(--primary-dark); }
.precheck-table .route.line-b { color: var(--blue); }

/* 检核 chip 双态：待核对(amber ○) / 已核对(green ✓) */
.chip.ck { cursor: pointer; user-select: none; transition: .12s; }
.chip.ck:hover { border-color: var(--primary-light); }
.chip.ck.pending { color: var(--warn); background: rgba(245,166,35,0.10); border-color: rgba(245,166,35,0.30); }
.chip.ck.done { color: var(--good); background: rgba(31,169,113,0.10); border-color: rgba(31,169,113,0.28); }
.chip.ck.overdue { color: var(--danger); background: rgba(229,72,77,0.12); border-color: rgba(229,72,77,0.45); font-weight: 700; }
.od-tag { font-size: 8px; line-height: 1; padding: 1px 3px; border-radius: 6px; background: var(--danger); color: #fff; margin-left: 2px; font-weight: 800; letter-spacing: .2px; }

/* ── 复核弹窗 ── */
.pc-review-mask { position: fixed; inset: 0; background: rgba(20,20,30,0.45); z-index: 60; }
.pc-review-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 92vw); max-height: 80vh; overflow: auto; z-index: 61;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25); padding: 16px 18px;
}
.pc-review-head { display: flex; align-items: center; justify-content: space-between; }
.pc-review-title { font-size: 15px; font-weight: 800; color: var(--text); }
.pc-review-x { border: none; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 8px; }
.pc-review-x:hover { background: var(--panel-2); color: var(--text); }
.pc-review-sub { font-size: 12px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.pc-review-list { display: flex; flex-direction: column; gap: 6px; }
.rv-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); font-size: 12.5px; }
.rv-row.overdue { border-color: rgba(229,72,77,0.45); background: rgba(229,72,77,0.08); }
.rv-row.pending { opacity: 0.7; }
.rv-name { font-weight: 700; color: var(--text); flex: 0 0 auto; min-width: 96px; }
.rv-state { flex: 1; }
.rv-state.bad { color: var(--danger); font-weight: 700; }
.rv-state.good { color: var(--good); font-weight: 700; }
.rv-state.muted { color: var(--muted); }
.rv-btn { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--good); background: var(--good); color: #fff; border-radius: 8px; cursor: pointer; transition: .15s; }
.rv-btn:hover { box-shadow: 0 2px 8px rgba(31,169,113,0.3); }
.pc-review-foot { margin-top: 14px; text-align: right; }
.pc-review-foot .btn { padding: 7px 16px; font-size: 13px; }

/* ── 板块五：司导排期管理（矩阵：司导行 × 日期列）── */
.ds-wrap {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 6px 4px; overflow-x: auto;
  scrollbar-color: var(--primary) rgba(255,106,31,.08);
  scrollbar-width: thin;
}
.ds-wrap::-webkit-scrollbar { height: 10px; }
.ds-wrap::-webkit-scrollbar-track { background: rgba(255,106,31,.06); border-radius: 5px; }
.ds-wrap::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
.ds-wrap::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.ds-wrap {
  /* 鼠标悬停时，wheel 事件被劫持为横向滚动（让用户用滚轮 / 触控板左右滑即可看后续日期） */
  overscroll-behavior-x: contain;
}
.ds-matrix {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 12px; table-layout: fixed; min-width: 920px;
}
.ds-matrix th, .ds-matrix td {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 0; height: 36px;
}  /* 方案A：40→36 */
.ds-matrix thead th {
  background: var(--panel); color: var(--muted); font-weight: 700;
  border-top: 1px solid var(--border); position: sticky; top: 0; z-index: 3;
}
.ds-matrix .ds-corner {
  position: sticky; left: 0; z-index: 5; background: var(--panel);
  width: 88px; min-width: 88px; font-size: 12px; color: var(--text);
  border-right: 2px solid var(--border-strong);
}
.ds-matrix .ds-rowhead {
  position: sticky; left: 0; z-index: 2; background: var(--panel);
  width: 88px; min-width: 88px; text-align: left; padding: 0 10px;
  font-weight: 700; color: var(--text); border-right: 2px solid var(--border-strong);
}
.ds-matrix .ds-col { line-height: 1.1; min-width: 40px; }
.ds-matrix .ds-col .d { display: block; font-size: 11px; font-variant-numeric: tabular-nums; }
.ds-matrix .ds-col .w { display: block; font-size: 10px; color: var(--muted); }
.ds-matrix tbody tr { transition: background .15s; }
.ds-matrix tbody tr:hover td,
.ds-matrix tbody tr:hover .ds-rowhead { background: var(--primary-softer); }
.ds-matrix tbody tr:hover td[data-driver] { box-shadow: inset 0 -1px 0 rgba(255,106,31,.3); }
.ds-matrix .ds-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
  animation: popIn .28s cubic-bezier(.34,1.56,.64,1);
}
/* 今日列高亮 */
.ds-matrix .today-col { background: var(--primary-soft); }
.ds-matrix thead th.today-col { color: var(--primary-dark); }
/* 已过期日期列弱化 */
.ds-matrix tbody td.past-col { background: #F4F5F7; }
.ds-matrix tbody td.past-col .ds-mark { background: var(--primary-light); opacity: .6; }
/* 图例 */
.ds-legend {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-size: 11.5px; color: var(--muted); padding: 8px 6px 2px;
}
.ds-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.ds-legend .lg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); display: inline-block; }
.ds-legend .lg-band { width: 11px; height: 11px; border-radius: 3px; background: var(--primary-soft); border: 1px solid var(--primary-light); display: inline-block; }
.ds-legend .lg-sq { width: 11px; height: 11px; border-radius: 3px; background: #F4F5F7; border: 1px solid var(--border); display: inline-block; }
.ds-legend .lg-dash-o { width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--primary); background: #fff; display: inline-block; }
.ds-legend .lg-dash-r { width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--danger); background: #fff; display: inline-block; }

/* 司导排期工具栏 */
.ds-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 2px 10px; }  /* 方案A：12/14→10/10 */
.ds-hint { font-size: 12px; color: var(--muted); }
/* 司导排期 · 年份 Tab 条（2026-09-23 上线：年份分组） */
.ds-ytabs-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 2px 6px; }
.ds-ytab { font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; }
.ds-ytab:hover { border-color: var(--primary-light); color: var(--primary); }
.ds-ytab.on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(255,106,31,.22); }
/* 司导排期 · 月份 Tab 条（方案A：分月平铺，2026-09-22 全区域上线） */
.ds-mtabs-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 2px 10px; }
.ds-mtab { font-size: 12.5px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; }
.ds-mtab .ds-mtab-n { opacity: .55; font-size: 11px; margin-left: 4px; }
.ds-mtab:hover { border-color: var(--primary-light); color: var(--primary); }
.ds-mtab.on { background: #1f2328; color: #fff; border-color: #1f2328; font-weight: 700; }
.ds-mtab.on .ds-mtab-n { opacity: .8; }
.ds-mtab.today { box-shadow: inset 0 0 0 1.5px var(--primary-light); }
.ds-mtab.mute { opacity: .4; }
/* 城市绩效考核 · 年份/月份 Tab（2026-09-23 与司导排期同款式） */
.mkpi-ytabs-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 2px 6px; }
.mkpi-ytab { font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; }
.mkpi-ytab:hover { border-color: var(--primary-light); color: var(--primary); }
.mkpi-ytab.on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(255,106,31,.22); }
.mkpi-mtabs-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 2px 10px; }
.mkpi-mtab { font-size: 12.5px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; }
.mkpi-mtab .mkpi-mtab-n { opacity: .55; font-size: 11px; margin-left: 4px; }
.mkpi-mtab:hover { border-color: var(--primary-light); color: var(--primary); }
.mkpi-mtab.on { background: #1f2328; color: #fff; border-color: #1f2328; font-weight: 700; }
.mkpi-mtab.on .mkpi-mtab-n { opacity: .8; }
.mkpi-mtab.today { box-shadow: inset 0 0 0 1.5px var(--primary-light); }
.ds-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-actions.head-actions { margin-left: 12px; }
.ds-select { font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.btn-mini { font-size: 13px; font-weight: 700; padding: 6px 14px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 9px; cursor: pointer; transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, background .15s; }
.btn-mini:hover { box-shadow: 0 2px 8px rgba(255,106,31,.25); transform: translateY(-1px); }
.btn-mini:active { transform: scale(.95); }
.btn-mini.ghost { background: var(--panel-2); color: var(--primary-dark); border-color: var(--border); }
.btn-mini.ghost:hover { border-color: var(--primary-light); }
/* 单元格可点击勾选 + 未勾选态 */
.ds-matrix tbody td[data-driver] { cursor: pointer; transition: background .12s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.ds-matrix tbody td[data-driver]:hover { background: var(--primary-softer); transform: scale(1.04); }
.ds-matrix .ds-empty { color: var(--border-strong); font-size: 15px; line-height: 1; opacity: .45; }
.ds-matrix tbody td.past-col .ds-empty { opacity: .3; }
/* 待确认草稿（点选先入草稿，底部「确认全部生效」后才写入） */
.ds-matrix td.ds-pa { background: #FFF7EF; }
.ds-matrix td.ds-pd { background: #FDEFEF; }
.ds-matrix .ds-p-ring { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; background: #fff; line-height: 1; }
.ds-matrix .ds-p-ring.o { border: 1.5px dashed var(--primary); color: var(--primary); }
.ds-matrix .ds-p-ring.r { border: 1.5px dashed var(--danger); color: var(--danger); }
/* 待确认提交条（表格下方固定区，横向滚动日期不遮挡） */
.ds-tray { margin: 10px 2px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--primary-softer); border: 1px dashed var(--primary-light); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--primary-dark); }
.ds-tray[hidden] { display: none; }
.ds-tray .ds-tray-label { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.ds-chip { background: #fff; border: .5px solid #FFD3B0; border-radius: 14px; padding: 2px 4px 2px 10px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #8A4B1D; }
.ds-chip.del { border-color: #F3B8B2; color: #9C2E26; }
.ds-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; padding: 0 4px; border-radius: 50%; line-height: 1; }
.ds-chip button:hover { background: rgba(0,0,0,.07); }
.ds-tray .sp { margin-left: auto; display: inline-flex; gap: 8px; }
.ds-tray .btn-commit { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 5px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ds-tray .btn-commit:disabled { opacity: .55; cursor: wait; }
.ds-tray .btn-reset { background: #fff; color: var(--muted); border: .5px solid var(--border); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.ds-tray .btn-reset:hover { color: var(--danger); border-color: var(--danger); }
/* 司导行首：名称 + 删除按钮 */
.ds-rowhead .ds-name { display: inline-block; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ds-del { margin-left: 4px; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 2px 3px; border-radius: 6px; vertical-align: middle; }
.ds-del:hover { color: var(--danger); background: rgba(239,68,68,.1); }

.foot {
  position: relative; z-index: 2; text-align: center;
  font-size: 11px; color: var(--muted); padding: 14px; letter-spacing: 0.5px;
}
.foot-main { margin-bottom: 6px; }
/* 备案号白色玻璃徽章（方案C） */
.foot-beian {
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.beian-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,106,31,.55);
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 12.5px; font-weight: 600; color: #4A5568;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 12px rgba(31,35,41,.08);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, border-color .18s, color .18s;
}
.beian-badge:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(255,106,31,.22);
}
.beian-badge .beian-icon {
  width: 18px; height: 18px; display: inline-block;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.beian-badge:hover .beian-icon { transform: scale(1.12); }

/* ── 板块六：城市绩效考核 ── */
.mkpi-framework { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 12px; }  /* 方案A：14px→12px */
.mk-card { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7); border-radius: 12px; padding: 12px 14px; }
.mk-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.mk-card-name { font-size: 14px; font-weight: 800; color: var(--text); }
.mk-card-weight { font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid var(--primary-light); border-radius: 8px; padding: 2px 8px; }
.mk-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mk-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12.5px; }
.mk-Item { font-weight: 600; color: var(--text); }
.mk-W { font-size: 11px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.mk-cal { flex-basis: 100%; font-size: 11px; color: var(--muted); line-height: 1.3; }
.mk-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.mk-tag.auto { color: var(--good); background: rgba(31,169,113,0.10); border: 1px solid var(--good); }
.mk-tag.manual { color: var(--warn); background: rgba(245,166,35,0.10); border: 1px solid var(--warn); }
.mk-bonus { grid-column: 1 / -1; margin-top: 12px; font-size: 12px; color: var(--muted); background: var(--panel); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 8px 12px; }

.mkpi-wrap { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; overflow-x: auto; }
.mkpi-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; min-width: 1100px; }
.mkpi-table thead th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border-strong); white-space: nowrap; }  /* 方案A：10/12→8/10 */
.mkpi-table thead th small { color: var(--primary); font-weight: 800; margin-left: 4px; }
.mkpi-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }  /* 方案A：11/12→8/10 */
.mkpi-table tbody tr:last-child td { border-bottom: none; }
.mkpi-table tbody tr { transition: background .15s, transform .15s, box-shadow .15s; }
.mkpi-table tbody tr:hover { background: var(--primary-softer); transform: translateY(-1px); }
.mkpi-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.mkpi-table .c-city { font-weight: 800; }
.mkpi-table .c-mgr { font-weight: 600; }
.mkpi-table .c-dim, .mkpi-table .c-bonus, .mkpi-table .c-rank, .mkpi-table .c-coeff { text-align: center; }
.mkpi-table .c-total { font-weight: 800; text-align: center; }
.mk-tbd { color: var(--muted); font-size: 12px; background: var(--panel); border: 1px dashed var(--border); border-radius: 8px; padding: 2px 12px; display: inline-block; }
.mk-empty { text-align: center; color: var(--muted); padding: 20px; }
.mkpi-note { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.mk-rank-lg { font-weight: 700; }

/* 工作执行力打分框（日报自动+复核 / 计划人工） */
.mk-exec { font-size: 12px; line-height: 1.5; }
.mk-exec-row { display: flex; align-items: center; gap: 5px; margin: 3px 0; }
.mk-exec-lab { font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.mk-exec-auto { color: var(--primary); font-weight: 700; cursor: help; }
.mk-exec-sep { color: var(--muted); font-size: 11px; }
.mk-in { width: 54px; font-size: 12px; padding: 3px 5px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--panel); color: var(--text); text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mk-in-sm { width: 46px; }
.mk-in:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); transform: scale(1.04); }
.mk-exec-hint { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 1px 0 4px; padding-left: 0; text-align: left; }
.mk-exec-total { margin-top: 4px; color: var(--muted); font-size: 11px; padding-left: 0; text-align: left; }
.mk-exec-total b { color: var(--primary); font-size: 14px; }
.mk-coeff-v { font-size: 14px; }
.mk-total-v { color: var(--primary); font-weight: 800; font-size: 14px; }

/* ── 跨设备适配已统一由 #scaler 整页缩放处理：所有设备均渲染 1440 设计稿并等比缩放，布局不再随屏宽重排 ── */

/* ===== 登录 / 权限隔离 ===== */
.login-mask {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,106,31,.14), rgba(20,30,50,.45));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-mask.hidden { display: none; }
.login-card {
  width: 360px; max-width: 92vw;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 28px 26px; text-align: center;
  font-family: inherit;
}
.login-logo { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
.login-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.login-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-form label { font-size: 13px; color: #444; display: flex; flex-direction: column; gap: 5px; }
.login-form input {
  height: 38px; border: 1px solid #e3e3e8; border-radius: 8px; padding: 0 12px;
  font-size: 14px; outline: none; transition: border-color .15s;
}
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,106,31,.12); }
.login-err { color: #e23b3b; font-size: 12px; min-height: 16px; }
.login-submit {
  height: 42px; border: none; border-radius: 9px; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 4px; margin-top: 4px;
}
.login-submit:hover { filter: brightness(1.05); }

/* 头部用户徽标 */
.user-badge {
  display: flex; align-items: center; gap: 8px; margin-right: 4px;
  font-size: 13px; color: #fff;
}
.user-badge .ub-name {
  background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.user-badge .ub-role { font-size: 11px; opacity: .85; }
.user-badge .ub-logout {
  background: rgba(255,255,255,.2); border: none; color: #fff; cursor: pointer;
  padding: 4px 10px; border-radius: 20px; font-size: 12px;
}
.user-badge .ub-logout:hover { background: rgba(255,255,255,.32); }

/* 无权限禁用态 */
.perm-disabled, button:disabled, input:disabled {
  cursor: not-allowed !important;
}
body.role-demo .perm-disabled,
body.role-demo button:disabled,
body.role-demo input:disabled,
body.role-readonly-mkpi #mkpiBody .mk-in {
  opacity: .45; filter: grayscale(1);
}
body.role-demo #precheckBody .pc-chip,
body.role-demo #driverScheduleTable .ds-cell { pointer-events: none; }
.perm-disabled[title]:hover::after { content: attr(title); }

/* ===== 全局大区切换栏（2026-09-23 凡哥指定：所有看板共用一套，放到页面最上方）====== */
.region-global-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 32px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.region-global-bar .region-tabs-wrap {
  margin-left: 0;   /* 全局栏内不再需要 panel-head 里的缩进 */
  background: rgba(0,0,0,.05);
  box-shadow: 0 4px 18px rgba(31,35,41,.08);
}
.region-global-bar .region-group-tab { padding: 7px 18px; }
.region-global-bar .region-tabs-wrap .region-pop {
  /* 浮层仍相对各“大区按钮”定位，向下展开到看板区之上（z-index 由 .region-pop 保持） */
  left: 50%; transform: translateX(-50%);
}
@media (prefers-color-scheme: dark) {
  .region-global-bar { background: rgba(24,25,30,.9); }
  .region-global-bar .region-tabs-wrap { background: rgba(255,255,255,.05); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
}

/* ===== 大区切换 tabs（方案A：单行大区 + 城市悬停浮层，2026-09-23 凡哥选定）====== */
/* 单行容器：只占一行，城市 tab 不再常驻（悬浮于对应大区按钮下方，hover/点击显示） */
.region-tabs-wrap {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 14px;
  background: rgba(0,0,0,.04); padding: 4px 5px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.region-pop-wrap { position: relative; }
.region-group-tab {
  position: relative; z-index: 1;
  border: none; background: transparent; padding: 6px 16px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; letter-spacing: .5px;
  transition: color .2s, transform .2s;
}
.region-group-tab:hover { color: var(--primary); transform: translateY(-1px); }
.region-group-tab.active {
  background: linear-gradient(135deg, var(--primary), #ff8a47);
  color: #fff; font-weight: 800;
  box-shadow: 0 4px 14px rgba(255,106,31,.28);
}
/* 城市浮层：悬停/点击大区按钮时浮现，移开即收起；不占布局高度。
   top:100% 让浮层盒子紧贴大区 tab 底部（无 8px 间隙），padding-top:16px 作为
   「hover 桥接带」：视觉上仍是 tab→浮层有间距，但鼠标从 tab 滑向城市按钮的
   全程都命中浮层（它是 .region-pop-wrap 的子元素），:hover 不会断 → 选得中城市 */
.region-pop {
  position: absolute; top: 100%; left: 0;
  display: none; gap: 6px; flex-wrap: wrap;
  min-width: max-content; padding: 12px 8px 8px;  /* 方案A：16→12 */
  background: rgba(255,255,255,.96);
  /* padding-top 区域与内容区同底色，作为连接带 */
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 20;
  box-sizing: border-box;
  /* 过渡轻微缓入，避免闪跳 */
  transition: opacity .08s;
}
.region-pop-wrap:hover .region-pop { display: flex; }
.region-pop::before {
  /* 箭头浮在桥接带内（大区 tab 正下方约 10px 处），指示归属 */
  content: ""; position: absolute; top: 10px; left: 18px;
  width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(255,255,255,.96);
  z-index: 1;
}
.region-pop .region-tab {
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.5);
  padding: 6px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .2s, transform .2s, background .2s;
}
.region-pop .region-tab:hover {
  color: var(--primary); transform: translateY(-1px);
  background: rgba(255,106,31,.08);
}
.region-pop .region-tab.active {
  background: linear-gradient(135deg, var(--primary), #ff8a47);
  color: #fff; font-weight: 800; border-color: transparent;
}

/* ===== 权限管理（仅管理员）====== */
.admin-body { padding: 14px 16px 16px; }  /* 方案A：16/20/20→14/16/16 */
.admin-tabs { display: inline-flex; gap: 4px; margin-bottom: 10px; background: #f4f4f7; padding: 3px; border-radius: 10px; }  /* 方案A：14→10 */
.admin-tab {
  border: none; background: transparent; padding: 6px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.admin-tab.active { background: var(--primary); color: #fff; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-tip { font-size: 12px; color: var(--muted); }
.admin-table { min-width: 720px; }
.admin-table td, .admin-table th { padding: 9px 10px; }
.admin-table tbody tr { transition: background .15s, transform .15s; }
.admin-table tbody tr:hover { background: var(--primary-softer); transform: translateY(-1px); }
.admin-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.admin-ops { white-space: nowrap; }
.admin-ops .btn-mini { margin: 1px 0; }
.admin-log-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.admin-log-title + .admin-log { margin-bottom: 4px; }
.admin-sec .admin-log-title + .admin-log + .admin-log-title { margin-top: 14px; }
.admin-log { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.admin-log li {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 4px;
  border-bottom: 1px dashed #eee; font-size: 13px; color: #555;
}
.admin-log li b { color: #999; font-weight: 600; white-space: nowrap; font-size: 12px; }
.admin-log .op-tag {
  background: #fff3ea; color: var(--primary); border-radius: 6px;
  padding: 1px 8px; font-size: 12px; white-space: nowrap;
}
.admin-log-empty { color: var(--muted); font-size: 13px; padding: 12px 4px; border: none; }

/* 绩效打分确认保存栏 */
.mkpi-savebar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 4px 4px;
}
.mkpi-savebar .btn { font-weight: 700; }
.mkpi-save-hint { font-size: 12px; color: var(--muted); }

/* cache-bust 2026-08-25a：登录记录多端统计版 */


/* ── 板块3辅助：数据源标注 ── */
.panel-sub-right { margin-left: auto; padding-right: 6px; min-width: 0; }
.panel-head .panel-sub-right,
.panel-sub-right .lib-source { font-size: 11px; color: var(--muted); word-break: break-all; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
/* 七库数据源链接：Cooper 底表文档跳转 */
.panel-sub-right .lib-source .sv-src-link { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--primary-light); cursor: pointer; }
.panel-sub-right .lib-source .sv-src-link:hover { color: var(--primary-dark); border-bottom-style: solid; }

/* ── 板块3：七库维护管理 · Cooper 协同表可视化（方案B）── */
.seven-wrap { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }  /* 方案A：14/16→12/14 */
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sv-chip {
  font-size: 12.5px; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: #555; cursor: pointer; transition: .15s;
}
.sv-chip:hover { border-color: var(--primary-light); color: var(--primary); }
.sv-chip.on { background: #1f2328; color: #fff; border-color: #1f2328; font-weight: 600; }
.sv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sv-tab {
  font-size: 13px; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: #555; cursor: pointer; transition: .15s;
}
.sv-tab:hover { border-color: var(--primary-light); }
.sv-tab.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.sv-cnt { opacity: .65; font-size: 11px; }
.sv-kpis { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sv-kpi {
  flex: 1; min-width: 110px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; text-align: center;
}  /* 方案A：10→8 */
.sv-kpi-v { font-size: 20px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.15; }  /* 方案A：22→20 */
.sv-kpi-l { font-size: 11px; color: var(--muted); margin-top: 2px; }  /* 方案A：3→2 */
.sv-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sv-scroll { overflow-x: auto; max-height: 480px; overflow-y: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sv-table th {
  position: sticky; top: 0; background: #f7f8fa; color: #666; font-weight: 600;
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
  z-index: 1; white-space: nowrap;
}
.sv-table td { padding: 7px 10px; border-bottom: 1px solid #f0f1f3; color: var(--text); }
.sv-table tr:hover td { background: #fafafb; }
.sv-hotel-group td { border-top: 2px solid var(--border); padding-top: 10px; background: #fffdf8; font-weight: 700; }
.sv-hotel-name { white-space: nowrap; min-width: 180px; }
.sv-hotel-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sv-null { color: #bbb; }
.sv-p { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-p-mini { color: #666; font-size: 11.5px; }
.sv-empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* 深色适配（浏览器深色模式时保持可读） */
@media (prefers-color-scheme: dark) {
  .sv-chip, .sv-tab, .sv-kpi, .sv-card, .sv-table tbody { background: #1d1e22; border-color: #333; }
  .sv-chip, .sv-tab { color: #bbb; }
  .sv-tab.on { background: var(--primary); color: #fff; }
  .sv-table th { background: #26282e; color: #aaa; }
  .sv-table td { border-bottom-color: #2a2c31; color: #ddd; }
  .sv-hotel-group td { background: #26262b; }
  .sv-null { color: #555; }
  .ds-ytab { background: #26282e; border-color: #3a3d44; color: #bbb; }
  .ds-ytab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .ds-mtab { background: #26282e; border-color: #3a3d44; color: #bbb; }
  .ds-mtab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .ds-mtab.mute { opacity: .35; }
  .mkpi-ytab { background: #26282e; border-color: #3a3d44; color: #bbb; }
  .mkpi-ytab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .mkpi-mtab { background: #26282e; border-color: #3a3d44; color: #bbb; }
  .mkpi-mtab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .region-tabs-wrap { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
  .region-group-tab { color: #999; }
  .region-group-tab:hover { color: var(--primary); }
  .region-group-tab.active { background: linear-gradient(135deg, var(--primary), #ff8a47); color: #fff; }
  .region-pop { background: rgba(32,33,38,.97); border-color: rgba(255,255,255,.1); }
  .region-pop::before { border-bottom-color: rgba(32,33,38,.97); }
  .region-pop .region-tab { color: #bbb; border-color: #3a3d44; background: rgba(255,255,255,.05); }
  .region-pop .region-tab:hover { color: var(--primary); background: rgba(255,106,31,.12); }
  .region-pop .region-tab.active { background: linear-gradient(135deg, var(--primary), #ff8a47); color: #fff; border-color: transparent; }
}
