/* 全局样式：少而重要，颜色仅用于 正常/预警/异常 */
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6fa; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

.layout { min-height: 100vh; }
.layout .el-aside { background: #1f2d3d; }
.layout .el-main { padding: 20px 24px; }

.brand { color: #fff; font-size: 16px; font-weight: 700; padding: 18px 16px; line-height: 1.4; }
.brand small { display: block; font-weight: 400; color: #9aa7b4; font-size: 12px; margin-top: 4px; }

.el-menu { border-right: none; }

.mock-banner { margin-bottom: 12px; }

.page-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #303133; }
.section-title { font-size: 15px; font-weight: 700; margin: 22px 0 12px; color: #1f2329;
  padding-left: 10px; border-left: 3px solid #2c4a6b; line-height: 1.25; }

/* 概览卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card .sub { font-size: 11px; line-height: 1.5; }
.stat-card { background: #fff; border-radius: 10px; padding: 16px 18px; border: 1px solid #edf0f4;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stat-card .label { color: #909399; font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 6px; color: #1f2329;
  font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.stat-card .sub { font-size: 12px; color: #909399; margin-top: 4px; }

/* 赤兔「延」未定稿徽标：只在率值卡片/当月累计出现，鼠标悬停看说明 */
.dly-flag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  font-size: 11px; line-height: 17px; vertical-align: 1px; cursor: help; font-weight: 500; }
.dly-flag.warn { background: #fff4e6; color: #d97706; border: 1px solid #ffd8a8; }
.dly-flag.idle { background: #f4f5f7; color: #8a9099; border: 1px solid #e4e7ed; }

/* 周度等级：W1→W4 字母序列（悬浮看分数/接待/满意率） */
.wk-seq { display: inline-flex; gap: 4px; justify-content: center; }
.wk-g { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; text-align: center; border-radius: 4px;
  font-size: 12px; font-weight: 700; cursor: help; }
.wk-g.g-S { background: #fff4e6; color: #d97706; border: 1px solid #ffd8a8; }
.wk-g.g-A { background: #ebfbee; color: #2f9e44; border: 1px solid #b2f2bb; }
.wk-g.g-B { background: #e7f1ff; color: #1971c2; border: 1px solid #a5d8ff; }
.wk-g.g-C { background: #fff0f0; color: #e03131; border: 1px solid #ffc9c9; }
.wk-g.g-none { background: #f4f5f7; color: #a8adb5; border: 1px solid #e4e7ed; }

/* 三色状态 */
.ok { color: #2f9e44; }
.warn { color: #e8890c; }
.bad { color: #e03131; }
.muted { color: #909399; }

.target-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-radius: 10px;
  margin-bottom: 8px; border: 1px solid #edf0f4; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.target-row .name { width: 90px; font-weight: 600; }
.target-row .nums { flex: 1; color: #606266; font-size: 13px; }
.target-row .flag { font-weight: 700; font-size: 13px; }

/* 督导重点 */
.focus-item { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); border: 1px solid #edf0f4; border-left: 4px solid #e8890c; }
.focus-item.critical { border-left-color: #e03131; }
.focus-item .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.focus-item .rank-badge { width: 24px; height: 24px; border-radius: 50%; background: #e03131; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.focus-item .rank-badge.n4, .focus-item .rank-badge.n5 { background: #e8890c; }
.focus-item .cs-name { font-size: 15px; font-weight: 700; cursor: pointer; }
.focus-item .cs-name:hover { color: #409eff; }
.focus-item .anomaly-line { font-size: 13px; color: #606266; margin: 3px 0; }
.focus-item .suggestion { font-size: 13px; color: #303133; background: #fdf6ec; border-radius: 6px; padding: 8px 10px; margin-top: 6px; }

.rank-change { font-weight: 700; font-size: 12px; }
.rank-up { color: #2f9e44; }
.rank-down { color: #e03131; }
.rank-flat { color: #909399; }

.card-panel { background: #fff; border-radius: 10px; padding: 16px 18px; border: 1px solid #edf0f4;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

.quad-table .gap-cell { font-weight: 700; }
.trend-chart { width: 100%; height: 320px; }
.detail-header { display: flex; gap: 16px; align-items: center; }
.detail-header .big-name { font-size: 22px; font-weight: 700; }

.clickable-row { cursor: pointer; }
/* 时段接待表格：上时段、下人数，便于查阅与复制 */
.hour-table-wrap { margin-top: 10px; }
.hour-table-wrap .ht-title { display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:12.5px; color:#7a828e; margin-bottom:6px; }
.hour-scroll { overflow-x:auto; border:1px solid #ebeef5; border-radius:8px; background:#fff; }
.hour-table { border-collapse:collapse; width:100%; min-width:960px; font-size:12.5px; }
.hour-table th, .hour-table td { border:1px solid #eef1f5; padding:7px 10px; text-align:center;
  white-space:nowrap; font-variant-numeric:tabular-nums; color:#1f2329; }
.hour-table .ht-head th { background:#f7f9fc; color:#414855; font-weight:600; }
.hour-table .ht-corner { position:sticky; left:0; background:#f7f9fc; color:#7a828e; text-align:left;
  font-weight:600; z-index:1; }
.hour-table .ht-sub td { color:#98a0ab; font-size:12px; }
.day-strip { display:flex; flex-wrap:wrap; gap:10px 26px; padding:12px 18px; background:#fff; border:1px solid #edf0f4;
  border-radius:10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); font-size:13px; color:#606266; }
.day-strip .ds-item b { color:#303133; margin-left:4px; font-size:15px; }
.footer-note { color: #909399; font-size: 12px; margin-top: 18px; text-align: center; }
/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2d3d 0%, #2c4a6b 100%); }
.login-card { width: 400px; }
.login-title { text-align: center; font-size: 20px; font-weight: 600; margin-bottom: 6px; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid #ebeef5; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px; }

/* 报告正文 */
.md-body { font-size: 13px; line-height: 1.7; max-height: 60vh; overflow: auto; }
.advice-item { padding: 8px 4px; border-bottom: 1px dashed #eee; }
.advice-item:last-child { border-bottom: none; }
.advice-text { margin-top: 4px; color: #555; font-size: 13px; line-height: 1.6; }
.row-selected td { background: #ecf5ff !important; }

/* 当月累计达成 */
.month-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 12px; margin-bottom: 10px; }
.month-tile { background: #fff; border-radius: 10px; padding: 14px 18px; border: 1px solid #edf0f4;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.month-tile .label { color: #909399; font-size: 13px; }
.month-tile .value { font-size: 26px; font-weight: 700; margin-top: 4px; color: #1f2329; font-variant-numeric: tabular-nums; }
.month-tile .target-line { font-size: 12px; color: #606266; margin-top: 4px; }
.month-tile .achieve { font-size: 15px; font-weight: 700; margin-top: 4px; }
.week-strip { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 10px;
  padding: 10px 18px; border: 1px solid #edf0f4; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  font-size: 13px; color: #606266; margin-bottom: 6px; }
.week-strip b { color: #303133; }
.week-strip .ws-title { font-weight: 700; color: #303133; }

/* 满意能力排名 */
.cs-link { cursor: pointer; font-weight: 600; }
.cs-link:hover { color: #409eff; }

/* ---- 赤兔自动采集：登录告警条 + 今日实时面板 ---- */
.chitu-alert{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:10px;margin-bottom:14px;border:1px solid transparent}
.chitu-alert.bad{background:#fff1f0;border-color:#ffa39e}
.chitu-alert.warn{background:#fffbe6;border-color:#ffe58f}
.chitu-alert .ca-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:#fff;flex:none}
.chitu-alert.bad .ca-icon{background:#e03131}
.chitu-alert.warn .ca-icon{background:#e8890c}
.chitu-alert .ca-body{flex:1;min-width:0}
.chitu-alert .ca-title{font-size:16px;font-weight:700;color:#1f2329}
.chitu-alert .ca-desc{font-size:12.5px;color:#5c6470;margin-top:3px;line-height:1.6}
.chitu-alert .ca-actions{display:flex;gap:8px;align-items:center;flex:none}
.live-panel{background:#fff;border:1px solid #edf0f4;border-radius:10px;padding:14px 16px;margin-bottom:14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04)}
.live-panel .lp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.live-panel .lp-title{font-size:14px;font-weight:700;color:#1f2329}
.live-panel .lp-meta{font-size:12px}
.live-panel .lp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px}
.live-panel .lp-tile{background:#f8fafc;border:1px solid #eef1f5;border-radius:8px;padding:9px 10px}
.live-panel .lp-tile .label{font-size:12px;color:#7a828e}
.live-panel .lp-tile .value{font-size:20px;font-weight:700;color:#1f2329;margin:3px 0 2px;line-height:1.2}
.live-panel .lp-tile .sub{font-size:11px;color:#98a0ab}
.live-panel .lp-note{font-size:11.5px;margin-top:9px}
@media (max-width:900px){.live-panel .lp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 满意能力跟踪矩阵：等级配色 */
.track-matrix .ht-corner { min-width: 76px; }
/* 新人/离职不评分明细表：窄表，取消 hour-table 的 960px 最小宽度 */
.low-table { min-width: 0; max-width: 760px; }
.low-table .ht-corner { position: static; text-align: center; background: #fff; color: #303133; }
.track-matrix td { min-width: 86px; }
.g-S { color: #e8890c; font-weight: 700; }
.g-A { color: #2f9e44; font-weight: 600; }
.g-B { color: #409eff; font-weight: 600; }
.g-C { color: #e03131; font-weight: 700; }

/* 排行榜：公式拆解与参考项 */
.fx-formula { font-size: 12.5px; line-height: 2.05; color: #414855; }
.fx-formula > div { display: flex; align-items: baseline; gap: 6px; }
.fx-tag { flex: 0 0 62px; display: inline-block; font-size: 11px; color: #6b7280;
  background: #f4f6fa; border: 1px solid #e8ecf3; border-radius: 4px; padding: 0 6px; text-align: center; }
.fx-note { font-size: 12px; color: #909399; line-height: 1.9; }
.fx-box { padding: 10px 14px 12px; background: #fbfcfe; border-top: 1px solid #eef1f5; }
.fx-line { font-size: 12.5px; color: #414855; line-height: 2; }
.fx-line.mono { font-variant-numeric: tabular-nums; color: #6b7280; }
.fx-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.fx-item { background: #fff; border: 1px solid #eef1f5; border-radius: 6px; padding: 6px 8px; }
.fx-item span { display: block; font-size: 11px; color: #909399; }
.fx-item b { font-size: 13px; font-variant-numeric: tabular-nums; color: #1f2329; }
@media (max-width: 1400px) { .fx-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); } }

/* 异常中心：分组处置卡片 */
.anom-card { padding: 12px 16px; margin-bottom: 12px; }
.anom-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #ebeef5; }
.anom-head .cs-name { font-size: 15px; font-weight: 600; cursor: pointer; color: #409eff; }
.anom-head .spacer, .anom-line1 .spacer { flex: 1; }
.anom-row { padding: 8px 0 6px; border-bottom: 1px dashed #ebeef5; }
.anom-row:last-child { border-bottom: none; }
.anom-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.anom-act { margin: 6px 0 0 2px; font-size: 12.5px; color: #8a6d3b; background: #fdf6ec; border-radius: 4px; padding: 6px 10px; }
.anom-btns { margin-top: 4px; }

.pre-line { white-space: pre-line; }

.delta-line { font-size: 12px; color: #606266; margin-top: 2px; }
.tag-label { display: inline-block; background: #ecf5ff; color: #409eff; border-radius: 3px; padding: 0 4px; margin-right: 4px; font-size: 11px; }

/* 指标取值口径角标：当日未定稿、回退近7天时的显式标注 */
.basis {
  margin-left: 2px;
  font-size: 10px;
  line-height: 1;
  color: #909399;
  transform: scale(0.92);
  display: inline-block;
}

/* 等级与分数速览 */
.grade-band { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.grade-pill { flex: 0 0 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 16px; }
.gp-S { background: #e8890c; } .gp-A { background: #2f9e44; } .gp-B { background: #409eff; } .gp-C { background: #e03131; }
.grade-num { flex: 0 0 46px; color: #909399; font-size: 12px; line-height: 34px; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grade-chip { cursor: pointer; background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 6px; padding: 4px 8px; font-size: 12px; color: #303133; }
.grade-chip i { font-style: normal; color: #909399; margin-right: 4px; }
.grade-chip b { margin-left: 6px; color: #1f2329; }
.grade-chip em { font-style: normal; color: #e8890c; margin-left: 2px; }
.grade-chip:hover { border-color: #409eff; color: #409eff; }
.chip-excl { opacity: .55; }

/* 雷达弹窗明细表 */
.radar-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.radar-tbl th, .radar-tbl td { border: 1px solid #e8ecf3; padding: 6px 10px; text-align: center; }
.radar-tbl th { background: #f7f9fc; color: #6b7280; font-weight: 600; }
.radar-tbl td:first-child, .radar-tbl th:first-child { text-align: left; color: #414855; }
.radar-tbl td b { color: #1f2d3d; }

/* 公式面板标签不换行（避免「状态升降档」折行） */
.fx-tag { flex: 0 0 auto; min-width: 62px; white-space: nowrap; }

/* 督导重点页签 */
.focus-tabs .el-tabs__item { font-size: 14px; }
.focus-tabs .el-tabs__content { padding: 14px 4px 4px; }

/* 首页外网地址条 */
.tunnel-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #eef6ff; border: 1px solid #cfe3ff; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; color: #414855; }
.tunnel-bar .tb-url { color: #1664c9; font-family: Consolas, monospace; word-break: break-all; }
.tunnel-bar .tb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.tunnel-bar .tb-row + .tb-row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #cfe3ff; }

/* 首页按店分开考核：每个店铺一个独立区块 */
.shop-block { border-top: 2px solid #e6ebf2; margin-top: 20px; padding-top: 2px; }
.shop-block:first-of-type { border-top: none; margin-top: 0; }
.shop-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 12px 0 10px; }

/* ---- 客服档案表紧凑化（2026-09-23）：标签更小、行高更紧、整体 13px ---- */
.clickable-row { font-size: 13px; }
.clickable-row .el-tag { height: 20px; padding: 0 6px; font-size: 12px; line-height: 18px; border-radius: 4px; }
.clickable-row .el-table__row > td.el-table__cell { padding-top: 5px; padding-bottom: 5px; }
.clickable-row .wk-g { width: 20px; height: 20px; }

/* 环同比涨跌配色：上涨=绿、下降=红（督导口径，一眼区分方向） */
.d-up { color: #16a34a; font-weight: 600; }
.d-down { color: #dc2626; font-weight: 600; }
.d-flat { color: #909399; }
