/* ============================================================
 * style.css —— 悠饭销售CRM 3.0 一期原型（v2 · 模块化）
 * 浅色主题，与 Element UI theme-chalk 一致
 * ============================================================ */

[v-cloak] { display: none; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f0f2f5;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #303133;
  font-size: 14px;
}

#app { min-height: 100vh; }

/* ===================== 顶栏 ===================== */
.topbar {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  padding: 0 20px;
}
.topbar .brand {
  font-size: 18px;
  font-weight: 700;
  color: #303133;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.topbar .brand small {
  font-size: 11px;
  font-weight: 400;
  color: #909399;
  margin-top: 2px;
}
.topbar .nav {
  display: flex;
  align-items: center;
  margin-left: 40px;
  gap: 4px;
}
.topbar .navitem {
  padding: 0 18px;
  height: 60px;
  line-height: 60px;
  cursor: pointer;
  font-size: 15px;
  color: #606266;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.topbar .navitem:hover { color: #409eff; }
.topbar .navitem.active {
  color: #409eff;
  border-bottom-color: #409eff;
  font-weight: 600;
}
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===================== 主体 ===================== */
.main { padding: 18px 20px; background: #f0f2f5; }

/* 统计条 */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.stat {
  flex: 1 1 180px;
  min-width: 160px;
  background: linear-gradient(135deg, #409eff, #66b1ff);
  color: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(64, 158, 255, .18);
}
.stat.green { background: linear-gradient(135deg, #67c23a, #85ce61); box-shadow: 0 2px 8px rgba(103, 194, 58, .18); }
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat .lbl { font-size: 13px; opacity: .92; margin-top: 6px; }
.stat .sub { font-size: 12px; opacity: .82; margin-top: 2px; }

/* 卡片 */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  border-left: 4px solid #409eff;
  padding-left: 10px;
}

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* ===================== 等级 / 阶段标签 ===================== */
.level-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.lv-SS { color: #f56c6c; background: #fef0f0; }
.lv-S  { color: #e6a23c; background: #fdf6ec; }
.lv-A  { color: #409eff; background: #ecf5ff; }
.lv-B  { color: #67c23a; background: #f0f9eb; }
.lv-C  { color: #909399; background: #f4f4f5; }
.lv-D  { color: #909399; background: #f4f4f5; }
.lv-U  { color: #909399; background: #f4f4f5; }

/* ===================== 详情页 ===================== */
.detail-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.detail-top .cname { font-size: 17px; font-weight: 700; }
.detail-top .meta { font-size: 13px; color: #909399; }

.detail-tabs { background: #fff; border-radius: 10px; padding: 8px 16px 16px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.detail-tabs .el-tabs__header { margin-bottom: 14px; }

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin: 4px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ebeef5;
}

/* 键值网格 */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.kv {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  padding: 2px 0;
}
.kv .k {
  flex: 0 0 130px;
  color: #909399;
  text-align: right;
}
.kv .v {
  flex: 1;
  color: #303133;
  word-break: break-all;
}

/* 标记 */
em.sys { font-style: normal; font-size: 11px; color: #909399; background: #f4f4f5; padding: 0 5px; border-radius: 3px; margin-left: 4px; }
em.req { font-style: normal; color: #f56c6c; font-weight: 700; margin-left: 2px; }
.tag-soft {
  display: inline-block;
  font-size: 11px;
  color: #909399;
  background: #f4f4f5;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 8px;
}
.grp-progress { font-size: 12px; color: #909399; font-weight: 400; margin-left: 8px; }

.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===================== 漏斗表 ===================== */
table.funnel {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.funnel th, table.funnel td {
  border: 1px solid #ebeef5;
  padding: 8px 10px;
  text-align: left;
}
table.funnel th { background: #fafafa; color: #606266; font-weight: 600; }
.loss-bar {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fef0f0;
  border-radius: 6px;
  font-size: 13px;
  color: #606266;
}
.loss-bar b { color: #f56c6c; }
.loss-item { color: #f56c6c; }

/* ===================== 移动端 ===================== */
.mobile { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f0f2f5; display: flex; flex-direction: column; }
.m-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 12px 16px; font-size: 16px;
  border-bottom: 1px solid #ebeef5;
}
.m-body { flex: 1; padding: 12px; overflow-y: auto; }
.m-stat { font-size: 13px; color: #606266; margin-bottom: 12px; }
.m-card {
  background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05); cursor: pointer;
}
.m-cust div:first-child { font-size: 15px; }
.m-sub { font-size: 12px; color: #909399; margin-top: 4px; }
.m-detail { padding-bottom: 12px; }
.m-tabbar {
  display: flex; background: #fff; border-top: 1px solid #ebeef5;
}
.m-tabbar div {
  flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: #909399; cursor: pointer;
}
.m-tabbar div.active { color: #409eff; font-weight: 600; }

/* ===================== 拜访详情 ===================== */
.visit-detail .kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.visit-detail .kv .k { flex: 0 0 90px; color: #909399; }
.visit-detail .kv .v { flex: 1; color: #303133; }

/* 让详情页 / 编辑页的 el-form 在窄屏不下溢 */
@media (max-width: 768px) {
  .kv-grid { grid-template-columns: 1fr; }
  .topbar .nav { margin-left: 16px; }
  .topbar .navitem { padding: 0 10px; }
}

/* ===================== 全站左侧导航 ===================== */
.pc-layout { min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #1e2f52, #16233f);
  color: #aeb9cd;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  box-shadow: 2px 0 12px rgba(24, 44, 80, .12);
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 10px; }
.sidebar .logo {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  background: #fff; color: #1e2f52; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.sidebar .brand-text { display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand-name { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
.sidebar .brand-tag { font-size: 10.5px; color: #9fb0cc; border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 2px 8px; width: max-content; }
.sidebar .side-label { font-size: 11px; color: #6c7c9a; padding: 14px 12px 8px; letter-spacing: 1px; }
.sidebar .side-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar .side-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; color: #aeb9cd; cursor: pointer; transition: .18s; user-select: none;
}
.sidebar .side-item i { font-size: 16px; }
.sidebar .side-item:hover { background: rgba(255, 255, 255, .06); color: #dfe7f4; }
.sidebar .side-item.active { background: #27395e; color: #fff; font-weight: 500; box-shadow: inset 3px 0 0 #2f7bf6; }
.sidebar .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar .sf-user { font-size: 12.5px; color: #cdd6e6; margin-bottom: 10px; }
.sidebar .sf-user span { color: #8b97a9; }
.sidebar .sf-btn { width: 100%; }
.sidebar .sf-note { margin-top: 10px; font-size: 10.5px; color: #6c7c9a; line-height: 1.6; }

/* ===================== 页面通用头 ===================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .page-title { margin: 0; font-size: 20px; font-weight: 700; color: #1f2d3d; }
.page-head .page-sub { margin: 6px 0 0; font-size: 12.5px; color: #6b7a90; line-height: 1.6; }
.head-actions { display: flex; align-items: center; gap: 8px; }

/* ===================== 列表：汇总条 + 双模块筛选 ===================== */
.sum-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.sum-item {
  flex: 1 1 200px; background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05);
  border-left: 4px solid #2f7bf6;
}
.sum-item:nth-child(2) { border-left-color: #1fb574; }
.sum-item:nth-child(3) { border-left-color: #f5a623; }
.sum-item:nth-child(4) { border-left-color: #7a6ff0; }
.sum-item > span { font-size: 12.5px; color: #6b7a90; font-weight: 600; }
.sum-val { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.sum-val b { font-size: 28px; font-weight: 700; color: #1f2d3d; font-variant-numeric: tabular-nums; }
.sum-val i { font-size: 13px; color: #9aa6b8; font-style: normal; }

.filter-panel { padding: 6px 2px 2px; }
.fp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fp-row:last-child { margin-bottom: 4px; }
.fp-label { font-size: 12.5px; color: #42506b; font-weight: 600; margin-right: 4px; }
.fp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px;
  background: #f1f4f9; color: #5b6980; font-size: 12.5px; cursor: pointer; transition: .15s; user-select: none;
}
.fp-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.fp-chip:hover { background: #e6ecf5; color: #2f7bf6; }
.fp-chip.on { background: #2f7bf6; color: #fff; box-shadow: 0 2px 8px rgba(47, 123, 246, .3); }

.pager { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ===================== 数据看板（对齐参考样式） ===================== */
.db-banner {
  background: linear-gradient(90deg, #fff7e6, #fff); border: 1px solid #f3e2bd; border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; color: #9a6b1f; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; line-height: 1.6;
}
.db-banner i { font-size: 15px; }
.db-city { display: flex; align-items: center; gap: 8px; }
.db-city-label { font-size: 12.5px; color: #42506b; font-weight: 600; }
.db-sec { margin-bottom: 20px; }
.db-sec .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.db-sec .sec-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: #1f2d3d; }
.db-sec .sec-title .bar { width: 4px; height: 16px; border-radius: 3px; background: #2f7bf6; }
.db-sec .sec-note { font-size: 12px; color: #9aa6b8; }
.db-sec .sec-desc { font-size: 12px; color: #6b7a90; margin: -8px 0 16px; line-height: 1.6; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.kbox { background: #fff; border-radius: 12px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05); border-left: 4px solid #2f7bf6; }
.kbox.gmv { border-left-color: #f5a623; }
.kbox .kh { font-size: 13px; color: #6b7a90; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kbox .kh .dot { width: 10px; height: 10px; border-radius: 3px; background: #2f7bf6; }
.kbox.gmv .kh .dot { background: #f5a623; }
.kbox .kpairs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.kpair .kl { font-size: 12px; color: #9aa6b8; }
.kpair .kv { font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: #1f2d3d; }
.kpair .kv small { font-size: 13px; font-weight: 600; color: #9aa6b8; margin-left: 2px; }
.kpair.big .kv { color: #2f7bf6; }
.kpair.big .kl { color: #2f7bf6; }

.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05); border-top: 3px solid #2f7bf6; }
.hero.b { border-top-color: #f5a623; }
.hero.c { border-top-color: #7a6ff0; }
.hero h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; color: #1f2d3d; margin: 0; }
.hero .tag { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; background: #e8f1fe; color: #2f7bf6; font-weight: 500; }
.hero.b .tag { background: #fdf1dd; color: #c47f12; }
.hero.c .tag { background: #efeefc; color: #5b50d8; }
.hero .tbl { display: grid; grid-template-columns: 1fr auto auto auto; margin-top: 12px; border: 1px solid #e4e9f1; border-radius: 9px; overflow: hidden; }
.hero .tbl .h { font-size: 11px; color: #6b7a90; font-weight: 600; padding: 8px 10px; background: #f7f9fc; }
.hero .tbl .h.r { text-align: right; border-left: 1px solid #e4e9f1; }
.hero .tbl .r { font-size: 12.5px; padding: 9px 10px; border-top: 1px solid #e4e9f1; color: #1f2d3d; }
.hero .tbl .c { font-size: 12.5px; padding: 9px 10px; text-align: right; border-top: 1px solid #e4e9f1; border-left: 1px solid #e4e9f1; font-variant-numeric: tabular-nums; color: #1f2d3d; }
.hero .tbl .big { color: #2f7bf6; font-weight: 600; }
.hero .cap { font-size: 11.5px; color: #9aa6b8; margin-top: 12px; line-height: 1.6; }

/* 漏斗条 */
.funnel { display: flex; flex-direction: column; gap: 11px; }
.funnel .row { display: flex; align-items: center; gap: 14px; position: relative; }
.funnel .row-label { flex: 0 0 210px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: #5b6980; white-space: nowrap; }
.funnel .idx { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: #9aa6b8; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.funnel .sname { color: #1f2d3d; font-weight: 500; }
.funnel .spct { color: #a7b2c2; }
.funnel .row-body { flex: 1; min-width: 60px; display: flex; align-items: center; gap: 14px; }
.funnel .track { position: relative; flex: 1; min-width: 60px; height: 26px; background: #eef2f9; border-radius: 13px; overflow: hidden; }
.funnel .fill { position: absolute; inset: 0 auto 0 0; height: 100%; background: linear-gradient(90deg, #69a8f8, #2f7bf6); border-radius: 13px; display: flex; align-items: center; justify-content: flex-end; transition: width .4s ease; }
.funnel .fill span { color: #fff; font-size: 13px; font-weight: 600; padding-right: 11px; }
/* 看板「客户数」可点：点条形 / 数字弹出该口径的客户清单（2026-10-19） */
.funnel .fill.clickable { cursor: pointer; }
.funnel .fill.clickable:hover { box-shadow: 0 0 0 2px rgba(47, 123, 246, .28) inset; filter: brightness(1.04); }
.funnel .fill span { pointer-events: none; }
.funnel .zero { cursor: pointer; }
.num-link { color: #2f7bf6; cursor: pointer; border-bottom: 1px dashed rgba(47, 123, 246, .55); }
.num-link:hover { color: #1b62d4; border-bottom-style: solid; }
.funnel .zero { position: absolute; top: 0; right: 11px; height: 100%; display: flex; align-items: center; color: #a7b2c2; font-size: 13px; font-weight: 600; }
.funnel .cv { font-size: 11.5px; color: #1fb574; flex: 0 0 64px; text-align: right; font-variant-numeric: tabular-nums; }
.funnel .cv.low { color: #f5a623; }
.funnel .cv.na { color: #c5cedb; }
.funnel .ftip { position: absolute; top: -34px; right: 0; background: #1f2d3d; color: #fff; font-size: 11px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; visibility: hidden; transition: .12s; z-index: 6; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.funnel .ftip::after { content: ""; position: absolute; right: 16px; top: 100%; border: 6px solid transparent; border-top-color: #1f2d3d; }
.funnel .row:hover .ftip { opacity: 1; visibility: visible; }
.funnel .lost-note { font-size: 11.5px; color: #ef6461; margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

/* 数据口径 */
.caliber { display: flex; flex-direction: column; gap: 9px; }
.caliber .ci { font-size: 12.5px; color: #6b7a90; line-height: 1.6; padding-left: 14px; position: relative; }
.caliber .ci::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #2f7bf6; }
.caliber .ci b { color: #1f2d3d; }

@media (max-width: 1300px) { .sum-bar .sum-item { flex-basis: 160px; } }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } .funnel .row-label { flex-basis: 150px; } }

/* ============================================================
 * 视觉优化（第二轮）—— 统一圆角/阴影、提升可读性、紧凑表格
 * ============================================================ */

/* 主区留白更舒展 */
.main { padding: 22px 24px 40px; }

/* 卡片统一圆角与更柔和的阴影 */
.card,
.detail-top,
.detail-tabs { border-radius: 12px; }
.card { box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05); }

/* —— 小字号 / 次要文字：整体上调一档并加深对比，提升可读性 —— */
.page-head .page-title { font-size: 21px; letter-spacing: .2px; }
.page-head .page-sub { font-size: 13px; color: #64748b; }
.db-sec .sec-note { font-size: 12.5px; color: #6b7a90; }
.db-sec .sec-desc { font-size: 12.5px; color: #64748b; }
.caliber .ci { font-size: 13px; color: #64748b; }
.sum-item > span { font-size: 13px; color: #64748b; }
.sum-val b { font-size: 30px; letter-spacing: .3px; }
.sum-val i { font-size: 13.5px; color: #8290a6; }
.fp-label { font-size: 13px; color: #3f4d66; }
.fp-chip { font-size: 13px; color: #4a5a73; }
.hero .cap { font-size: 12px; color: #8290a6; }
.sidebar .sf-user { font-size: 13px; }
.sidebar .sf-note { font-size: 11px; color: #8592aa; }

/* —— 拜访统计卡：与列表汇总卡统一为白底细边 + 彩色左条 —— */
.stat {
  flex: 1 1 180px; min-width: 150px; background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05);
  border-left: 4px solid #2f7bf6;
}
.stat.green { border-left-color: #1fb574; }
.stat.amber { border-left-color: #f5a623; }
.stat .num { font-size: 28px; font-weight: 700; color: #1f2d3d; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 13px; color: #64748b; margin-top: 6px; }
.stat .sub { font-size: 12px; color: #9aa6b8; margin-top: 2px; }

/* —— 筛选：两个模块之间加分隔，层次更清晰 —— */
.filter-bar { border-bottom: 1px dashed #edf0f5; padding-bottom: 14px; }
.filter-panel { padding-top: 12px; }

/* —— 表格：紧凑行高、清晰表头、操作列不换行 —— */
.card .el-table th { background: #f7f9fc; }
.card .el-table th .cell { color: #5b6980; font-weight: 600; font-size: 12.5px; }
.card .el-table td { padding: 8px 0; }
.card .el-table td .cell { font-size: 13px; color: #1f2d3d; }
.card .el-table .el-table__empty-text { color: #9aa6b8; }
.row-actions { flex-wrap: nowrap; gap: 6px; }
.row-actions .el-button--mini { padding: 6px 9px; }
.row-actions .el-button + .el-button { margin-left: 0; }

/* 阶段标签：按阶段渐进配色 */
.stg-tag { border: none !important; font-weight: 600; }
.stg-pct { font-size: 11.5px; color: #9aa6b8; margin-left: 4px; }
.stg-tag.stg-0 { background: #f1f3f7; color: #7a8699; }
.stg-tag.stg-1 { background: #eef3fb; color: #5a7bb0; }
.stg-tag.stg-2 { background: #e8f1fe; color: #2f7bf6; }
.stg-tag.stg-3 { background: #e6f7f2; color: #159e6f; }
.stg-tag.stg-4 { background: #fdf3e3; color: #c58a1a; }
.stg-tag.stg-5 { background: #fdeee4; color: #d97a2c; }
.stg-tag.stg-6 { background: #efeefc; color: #5b50d8; }
.stg-tag.stg-7 { background: #e9f8ec; color: #2f9e44; }
.stg-tag.stg-8 { background: #fdeaea; color: #d9534f; }

/* —— 漏斗：4 档转化率配色 + 更舒展的条 —— */
.funnel .track { height: 24px; }
.funnel .row-label { flex-basis: 205px; }
.funnel .fill span { font-size: 12.5px; }
.funnel .cv.good { color: #1fb574; }
.funnel .cv.warn { color: #d9a11b; }
.funnel .cv.low  { color: #f08c2e; }
.funnel .cv.bad  { color: #ef6461; }
.funnel .cv.na   { color: #c5cedb; }

/* —— 侧栏微调：导航项更清晰 —— */
.sidebar .side-item { font-size: 14px; }
.sidebar .side-item.active { background: #2a3f68; }

/* ============================================================
 * 第三轮需求新增样式
 * ============================================================ */

/* —— 列表：客户名称可点 + 简称跟随 —— */
.cust-link { color: #2f7bf6; font-weight: 600; cursor: pointer; }
.cust-link:hover { text-decoration: underline; }
.cust-sub { font-size: 11.5px; color: #9aa6b8; margin-top: 1px; }
.tag-ineff { background: #f4f4f5 !important; color: #909399 !important; border-color: #e9e9eb !important; }

/* —— 赢单要素：横向 5 张 logo 卡片 —— */
.win-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.win-card {
  border: 1px solid #eaeef5; border-radius: 12px; padding: 16px 12px 13px;
  text-align: center; cursor: pointer; background: #fff;
  transition: all .18s ease; position: relative;
}
.win-card:hover { border-color: #c9d8f5; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(47, 123, 246, .10); }
.win-card.on { border-color: #2f7bf6; background: #f6f9ff; box-shadow: 0 6px 18px rgba(47, 123, 246, .16); }
.win-card.on::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px;
  background: #f6f9ff; border-right: 1px solid #2f7bf6; border-bottom: 1px solid #2f7bf6;
  transform: translateX(-50%) rotate(45deg);
}
.win-ic {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.win-ic.sm { width: 24px; height: 24px; font-size: 13px; margin: 0; }
.win-nm { font-size: 14px; font-weight: 600; color: #1f2d3d; }
.win-prog {
  display: inline-block; margin-top: 7px; font-size: 11.5px; color: #9aa6b8;
  background: #f4f6fa; border-radius: 10px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
.win-prog.ok { color: #1fb574; background: #e9f8f1; }
.win-arrow { text-align: center; font-size: 12.5px; color: #b3bccb; padding: 16px 0 4px; }
.win-panel { margin-top: 16px; padding-top: 4px; border-top: 1px dashed #edf0f5; animation: wfade .22s ease; }
@keyframes wfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.win-panel-h { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
.win-panel-h b { font-size: 14px; color: #1f2d3d; }
.win-panel-note { font-size: 12px; color: #9aa6b8; }
.win-panel .kv-grid { padding-top: 0; }

/* —— 编辑页：① 必填信息卡片 —— */
.sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sec-hd b { font-size: 15px; color: #1f2d3d; }
.sec-note { font-size: 12px; color: #9aa6b8; }
.sec-prog {
  margin-left: auto; font-size: 12.5px; color: #d98a1a; font-weight: 600;
  background: #fdf6e9; border-radius: 20px; padding: 3px 12px; font-variant-numeric: tabular-nums;
}
.sec-prog em { font-style: normal; }
.sec-prog.ok { color: #1fb574; background: #e9f8f1; }
.req-card { border-top: 3px solid #2f7bf6; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 20px; margin-top: 14px; }
.req-item { min-width: 0; }
.req-lb { font-size: 12.5px; color: #5b6980; margin-bottom: 5px; }
.req-none { font-size: 13px; color: #9aa6b8; padding: 16px 0 4px; }
.req-none.ok { color: #1fb574; }
.req-none.ok i { margin-right: 5px; }

/* 小节标题：左侧留 18px，与上方卡片内的文字起点对齐（否则会贴到内容区最左边） */
.sec-title-mid { font-size: 15px; font-weight: 700; color: #1f2d3d; margin: 22px 0 10px; padding-left: 18px; display: flex; align-items: center; gap: 10px; }
.grp-prog { font-size: 12px; color: #909399; font-weight: 400; margin-left: 8px; }

/* —— ② 完整档案：折叠面板做成卡片，并补左右内边距 ——
   Element 的 el-collapse 默认没有水平内边距，组标题会紧贴白底左边缘；
   这里让其与上方「① 待补必填信息」卡片内的文字对齐（同为 18px）。 */
.collapse-card {
  background: #fff; border-radius: 10px;
  padding: 2px 18px 0;
  border-top: none; border-bottom: none;
  box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05);
}
.collapse-card .el-collapse-item__header { padding-left: 0; padding-right: 0; }
.collapse-card .el-collapse-item__content { padding: 2px 0 20px; }
.collapse-card .el-collapse-item:last-child .el-collapse-item__header,
.collapse-card .el-collapse-item:last-child .el-collapse-item__wrap { border-bottom: none; }

/* —— 客户详情·分模块就地编辑（每个模块各自的「编辑 / 取消 / 保存」）—— */
/* 页签顶部的编辑工具条 */
.mod-bar {
  display: flex; align-items: center; gap: 10px;
  background: #f3f8ff; border: 1px solid #d9e8ff; border-radius: 10px;
  padding: 8px 14px; margin-bottom: 14px;
}
.mod-bar-t { font-size: 13px; font-weight: 600; color: #2f7bf6; }
.mod-bar-t i { margin-right: 4px; }
.mod-bar-t em { font-style: normal; font-weight: 400; color: #7d8fa8; margin-left: 2px; }
/* 模块标题右侧的按钮组（总览卡片 / 赢单要素展开区共用） */
.mod-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mod-acts .el-button + .el-button { margin-left: 0; }
.mod-prog { font-size: 12.5px; color: #e6a23c; font-weight: 600; }
.mod-prog em { font-style: normal; font-weight: 400; }
.mod-prog.ok { color: #1fb574; }
.mod-prog.ok em { display: none; }
/* 编辑态字段栅格：标签在上、控件在下（与①待补必填卡一致） */
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 2px 0 6px; }
.ov-item { min-width: 0; }
.ov-lb { font-size: 12.5px; color: #5b6980; margin-bottom: 5px; }
/* 栅格内控件统一撑满单元格：fld-input 的默认宽度是按字段类型给的
   （文本 320 / 下拉 220 / 数字 200），在等宽栅格里会被 max-width:100% 夹成
   200 / 215 / 235 三种宽度，两列看起来参差，这里统一拉满。 */
.ov-grid .fld-wrap { display: block; }
.ov-grid .fld-wrap > .el-input,
.ov-grid .fld-wrap > .el-select,
.ov-grid .fld-wrap > .el-input-number,
.ov-grid .fld-wrap > .el-date-editor { width: 100% !important; }
/* 经纬度这一格是「只读框 + 获取定位按钮」，只让输入框吃掉剩余宽度 */
.ov-grid .geo-box { display: flex; gap: 8px; max-width: 100%; }
.ov-grid .geo-box .geo-inp { flex: 1 1 auto; min-width: 0; max-width: none; width: auto !important; }
/* 数字框在宽单元格里默认居中，和左对齐的文本框不一致，统一改成左对齐 */
.ov-grid .fld-wrap > .el-input-number .el-input__inner { text-align: left; }
.sec-title-row { display: flex; align-items: center; }
.sec-title-row .el-button { margin-left: auto; }
.grp-prog em { font-style: normal; color: #e6a23c; }
.grp-prog.ok em { display: none; }
.grp-prog.ok { color: #1fb574; }

/* —— 底部悬浮操作栏 —— */
.p-actions {
  position: sticky; bottom: 0; z-index: 20; margin-top: 18px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-top: 1px solid #ebeef5; box-shadow: 0 -4px 16px rgba(24, 44, 80, .06);
  border-radius: 0 0 12px 12px; padding: 12px 20px;
}
.pa-inner { display: flex; align-items: center; gap: 12px; }
.pa-prog { margin-right: auto; font-size: 13px; color: #d98a1a; font-weight: 600; }
.pa-prog em { font-style: normal; }
.pa-prog.ok { color: #1fb574; }
.pa-prog i { margin-right: 4px; }

/* —— 抽屉：联系记录 / 联系人 —— */
.visit-detail { padding: 4px 20px 24px; }
.vd-hd { display: flex; align-items: center; gap: 8px; padding: 4px 0 10px; flex-wrap: wrap; }
.vd-hd b { font-size: 17px; color: #1f2d3d; }
.vd-stg { font-size: 12px; color: #6b7a90; background: #f2f5fa; border-radius: 4px; padding: 1px 8px; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #7d8a9e; padding-bottom: 14px; border-bottom: 1px solid #f1f3f7; }
.vd-meta i { color: #a9b3c2; margin-right: 3px; }
.vd-block { margin-top: 18px; }
.vd-t { font-size: 13.5px; font-weight: 700; color: #1f2d3d; margin-bottom: 8px; }
.vd-t i { color: #2f7bf6; margin-right: 5px; }
.vd-sum { font-size: 13.5px; line-height: 1.75; color: #303133; background: #f7f9fc; border-left: 3px solid #2f7bf6; border-radius: 0 8px 8px 0; padding: 10px 14px; }
.vd-trans {
  font-size: 13px; line-height: 1.95; color: #3b4657; white-space: pre-line;
  background: #fbfcfe; border: 1px solid #eef2f8; border-radius: 10px; padding: 14px 16px; max-height: 340px; overflow: auto;
}
.vd-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-img {
  width: 68px; height: 68px; border-radius: 8px; background: #f4f7fb; border: 1px solid #eaeef5;
  display: flex; align-items: center; justify-content: center; color: #b8c2d2; font-size: 22px;
}
.vd-none { font-size: 12.5px; color: #b3bccb; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 16px; }
.cd-grid .kv { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f4f6fa; }
.cd-grid .kv .k { flex: 0 0 84px; font-size: 12.5px; color: #909399; }
.cd-grid .kv .v { flex: 1; font-size: 13px; color: #303133; word-break: break-all; }
.cd-grid .kv.wide { grid-column: 1 / -1; }
.cd-lock { margin-top: 18px; font-size: 12px; color: #909399; background: #fafbfd; border: 1px dashed #e8ecf3; border-radius: 8px; padding: 10px 12px; }
.cd-lock i { color: #c0c4cc; margin-right: 4px; }

/* ============================================================
 * 移动端手机模型
 * ============================================================ */
.phone-wrap { display: flex; justify-content: center; padding: 8px 0 32px; }
.phone {
  width: 375px; height: 780px; border: 10px solid #1f2d3d; border-radius: 40px;
  background: #fff; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(24, 44, 80, .22); overflow: hidden;
}
.p-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 148px; height: 22px; background: #1f2d3d; border-radius: 0 0 14px 14px; z-index: 5;
}
.p-status {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 26px 20px 6px; font-size: 11.5px; color: #1f2d3d; font-weight: 600; flex: 0 0 auto;
}
.p-status span:last-child { font-weight: 400; color: #7d8a9e; }
.p-body { flex: 1; overflow-y: auto; padding: 4px 14px 14px; background: #f5f7fa; }
.p-body::-webkit-scrollbar { width: 0; }
.p-nav {
  flex: 0 0 auto; display: flex; border-top: 1px solid #ebeef5; background: #fff;
}
.p-nav > div {
  flex: 1; text-align: center; font-size: 10.5px; color: #98a3b3; padding: 7px 0 8px; cursor: pointer;
}
.p-nav > div i { display: block; font-size: 18px; margin-bottom: 2px; }
.p-nav > div.on { color: #2f7bf6; }

.p-title { font-size: 17px; font-weight: 700; color: #1f2d3d; margin: 10px 2px 10px; }
.p-title-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px 0; }
.p-title-row .p-title { margin: 0; }
.p-add { font-size: 12.5px; color: #2f7bf6; cursor: pointer; }
.p-back { font-size: 12.5px; color: #2f7bf6; padding: 8px 2px 4px; cursor: pointer; }

.p-hero { display: flex; gap: 10px; margin-bottom: 12px; }
.p-hero-a, .p-hero-b {
  flex: 1; border-radius: 12px; padding: 13px 14px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2f7bf6, #5b9dff);
}
.p-hero-b { background: linear-gradient(135deg, #1fb574, #46cfa0); }
.p-hero .l { font-size: 11.5px; opacity: .92; }
.p-hero .n { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.p-hero .n small { font-size: 11px; font-weight: 500; margin-left: 3px; opacity: .9; }

.p-card { background: #fff; border-radius: 12px; padding: 12px 13px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(24, 44, 80, .05); }
.p-card-h { font-size: 13px; font-weight: 700; color: #1f2d3d; margin-bottom: 10px; }
.p-funnel-row { margin-bottom: 9px; }
.p-funnel-top { display: flex; justify-content: space-between; font-size: 11.5px; color: #6b7a90; margin-bottom: 3px; }
.p-funnel-top b { color: #1f2d3d; font-variant-numeric: tabular-nums; }
.p-funnel-track { height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.p-funnel-fill { height: 100%; background: linear-gradient(90deg, #2f7bf6, #7fb2ff); border-radius: 4px; }

.p-quick { display: flex; gap: 8px; margin-top: 4px; }
.p-chip {
  flex: 1; text-align: center; font-size: 12px; color: #2f7bf6; background: #eef4ff;
  border-radius: 9px; padding: 9px 4px; cursor: pointer;
}
.p-chip i { margin-right: 3px; }

.p-cust { cursor: pointer; }
.p-cust-l1 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.p-cust-l1 b { font-size: 14px; color: #1f2d3d; }
.p-sub { font-size: 12px; color: #7d8a9e; line-height: 1.6; }
.p-tag { font-size: 11px; color: #6b7a90; background: #f2f5fa; border-radius: 4px; padding: 1px 6px; }
.p-empty { text-align: center; font-size: 12.5px; color: #b3bccb; padding: 30px 0; }

.p-tabs { margin-top: 4px; }
.p-tabs .el-tabs__header { margin-bottom: 8px; }
.p-tabs .el-tabs__item { font-size: 13px; padding: 0 12px; height: 34px; line-height: 34px; }
.p-tabs .el-tabs__nav-wrap::after { height: 1px; }
.p-kv { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f5f7fa; }
.p-k { flex: 0 0 88px; font-size: 12px; color: #909399; }
.p-fv { flex: 1; font-size: 12.5px; color: #303133; word-break: break-all; }

.p-sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.p-sec-hd b { font-size: 13.5px; color: #1f2d3d; }
.p-sec-hd span { margin-left: auto; font-size: 11.5px; color: #d98a1a; font-weight: 600; }
.p-sec-hd span.ok { color: #1fb574; }
.p-field { margin-bottom: 10px; }
.p-fl { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #5b6980; margin-bottom: 4px; }
.p-fl .star { color: #f56c6c; font-weight: 700; margin-left: 1px; }
.p-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
/* 按钮下方的说明文字必须独占一行：否则它会把同行的按钮挤成一条竖排窄条
   （「补充客户档案」按钮曾因此被压成 20px 宽、文字竖着排） */
.p-actions .p-note { flex: 1 0 100%; margin-top: 0; }
.p-btn {
  flex: 1; min-width: 0; text-align: center; font-size: 14px; color: #fff; background: #2f7bf6;
  border-radius: 10px; padding: 11px 0; cursor: pointer;
}
.p-btn.plain { background: #f2f5fa; color: #606266; }

/* ============================================================
 * 第四轮：待补必填分组 / 移动端拜访闭环 / 待补录提醒
 * ============================================================ */

/* 通用字段输入组件包装 */
.fld-wrap { display: inline-block; vertical-align: middle; max-width: 100%; }

/* —— ① 待补必填：按模块分组 —— */
.req-groups { margin-top: 14px; }
.req-group + .req-group { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #eef1f6; }
.req-group-h { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.req-group-h b { font-size: 13.5px; color: #1f2d3d; }
.req-group-h b::before { content: ''; display: inline-block; width: 3px; height: 13px; background: #2f7bf6; border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.req-group-prog { font-size: 12px; color: #d98a1a; font-weight: 600; font-variant-numeric: tabular-nums; }
.req-group-prog.ok { color: #1fb574; }
.req-grid { margin-top: 10px; }
.req-ok { color: #1fb574; font-style: normal; margin-left: 4px; font-size: 13px; }

/* —— 联系记录：摘要 + 转写同字段 —— */
.vd-content { border: 1px solid #eef2f8; border-radius: 10px; background: #fbfcfe; overflow: hidden; }
.vd-content .vd-sum { border-radius: 0; background: #fff; border-left: none; padding: 12px 14px; }
.vd-sum.empty { color: #b3bccb; font-style: normal; }
.vd-split { height: 1px; background: #eef2f8; }
.vd-content .vd-trans { border: none; border-radius: 0; background: #fbfcfe; max-height: none; padding: 13px 15px; }

/* —— 移动端：待补录提醒卡 —— */
.p-alert { border-left: 3px solid #ef6461; }
.p-alert .p-card-h { display: flex; align-items: center; gap: 5px; }
.p-alert .p-card-h i { color: #ef6461; }
.p-alert.ok { border-left-color: #1fb574; }
.p-alert.ok .p-card-h i { color: #1fb574; }
.p-alert-item { padding: 7px 0; border-bottom: 1px dashed #f3f5f9; }
.p-alert-item:last-of-type { border-bottom: none; }
.p-alert-tip { font-size: 11.5px; color: #9aa6b8; margin: 6px 0 9px; }
.p-alert-ok { font-size: 12.5px; color: #1fb574; padding: 2px 0 2px; }

.p-tag.danger { background: #fdeaea; color: #d9534f; }
.p-tag.ok { background: #e9f8f1; color: #1fb574; }
.p-cust.danger { border-left: 3px solid #ef6461; }

/* —— 移动端：签到 —— */
.p-sign { text-align: center; padding: 22px 13px 16px; }
.p-sign-circle {
  width: 108px; height: 108px; border: 2px dashed #2f7bf6; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; color: #2f7bf6; font-size: 15px;
  cursor: pointer; transition: all .18s;
}
.p-sign-circle:active { background: #f0f6ff; transform: scale(.97); }
.p-sign-ok { font-size: 46px; color: #1fb574; line-height: 1.1; }
.p-sign-time { font-size: 14px; font-weight: 700; color: #1fb574; margin-top: 6px; }
.p-sign-loc { font-size: 12px; color: #7d8a9e; margin-top: 4px; }
.p-sign-note { font-size: 11.5px; color: #9aa6b8; margin-top: 12px; line-height: 1.6; }
.p-btn.disabled { background: #c8d6ea; cursor: not-allowed; }
/* 手机内的操作栏吸在手机模型底部 */
.phone .p-actions {
  position: sticky; bottom: -14px; z-index: 6;
  margin: 14px -14px -14px; padding: 10px 14px 14px;
  background: rgba(255, 255, 255, .97); border-top: 1px solid #eef1f6;
  box-shadow: 0 -4px 14px rgba(24, 44, 80, .06); border-radius: 0;
}

/* —— 移动端：提交完成页 —— */
.p-done { text-align: center; padding: 120px 20px 0; }
.p-done-ic { font-size: 56px; color: #1fb574; line-height: 1; }
.p-done-t { font-size: 18px; font-weight: 700; color: #1f2d3d; margin-top: 14px; }
.p-done-s { font-size: 13px; color: #7d8a9e; margin-top: 8px; line-height: 1.6; }

/* —— 移动端：客户表单（待补必填分组 + 完整档案折叠） —— */
.p-req { border-top: 3px solid #2f7bf6; }
.p-req-grp + .p-req-grp { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #eef1f6; }
.p-req-grp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.p-req-grp-h b { font-size: 12.5px; color: #1f2d3d; }
.p-req-grp-h b::before { content: ''; display: inline-block; width: 3px; height: 12px; background: #2f7bf6; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }
.p-req-grp-h span { margin-left: auto; font-size: 11px; color: #d98a1a; font-weight: 600; }
.p-req-grp-h span.ok { color: #1fb574; }
.p-ok { color: #1fb574; font-style: normal; margin-left: 4px; }
.p-sec-title { font-size: 13.5px; font-weight: 700; color: #1f2d3d; margin: 16px 2px 9px; }
.p-collapse { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(24, 44, 80, .05); }
.p-collapse .el-collapse-item__header { padding: 0 12px; font-size: 13px; }
.p-collapse .el-collapse-item__content { padding: 4px 12px 14px; }
.p-collapse-t { font-weight: 600; color: #1f2d3d; }
.p-collapse .grp-prog { margin-left: auto; margin-right: 8px; }

/* 窄屏适配 */
@media (max-width: 900px) {
  .main { padding: 16px; }
  .page-head { align-items: flex-start; }
}

/* ============================================================
 * 第六轮（2026-10-15）：统计卡去色 / 看板去数据口径 / 保存栏贴底 / 联系人 19 项
 * ============================================================ */

/* 1) 拜访记录顶部「拜访客户数」卡不再带颜色：
      保留 4px 左条宽度（否则会和另两张卡错位），但改成中性灰、无彩色。 */
.stat.plain { border-left-color: #e6eaf2; }

/* 2) 编辑页底部保存栏真正贴在窗口底部：
      .el-main 默认 overflow:auto，会让 position:sticky 以它为参照物，
      而 el-main 自身高度=内容高度、并不滚动 → 保存栏沉到视口下方看不见。
      把整页滚动交还给 window，sticky 才会贴着浏览器窗口底部。 */
.el-main { overflow: visible; }

/* 3) 新增联系人弹窗（19 项，两列排布，超高时内部滚动） */
.c-note { font-size: 12px; color: #909399; margin: 0 0 14px; }
.c-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px; max-height: 64vh; overflow-y: auto; padding-right: 4px;
}
.c-item { min-width: 0; }
.c-item.wide { grid-column: 1 / -1; }
.c-lb { font-size: 12.5px; color: #5b6980; margin-bottom: 5px; }
.c-item .fld-wrap { width: 100%; }

/* 4) 联系人抽屉：字段名加宽，长标签（是否关键决策人）不再被截断 */
.cd-grid .kv .k { flex: 0 0 96px; }

/* ============================================================
 * 第七轮：数据看板按《悠饭团餐-销售数据看板-第一期》文档重做
 * 新增：KPI 大客户占比 / 三视角 4 列 + 卡内筛选 / 漏斗查看客户 + 独立丢单条
 *      / 大客户进度条 + 占位符
 * ============================================================ */

/* 1) KPI 双大框底部「大客户占比」 */
.kratio {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e4e9f1;
  font-size: 11.5px; color: #6b7a90; display: flex; align-items: center; gap: 6px;
}
.kratio b { font-size: 15px; color: #2f7bf6; font-variant-numeric: tabular-nums; }
.kbox.gmv .kratio b { color: #f5a623; }

/* 2) 业绩三视角：卡内筛选 + 等高占位 + 提示条 */
.hero .hfilter { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.hero .hfilter-label { font-size: 11.5px; color: #6b7a90; font-weight: 500; }
.hero .hfilter-spacer { margin-top: 11px; height: 30px; }
.hero .qmark {
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
  background: #e8f1fe; color: #2f7bf6; border: 1px solid #2f7bf6;
  font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
}
.hero .hnote {
  margin-top: 8px; font-size: 11px; color: #c47f12; background: #fdf6ea;
  padding: 5px 9px; border-radius: 6px; line-height: 1.5;
}

/* 3) 漏斗：查看客户入口 + 独立丢单红条 */
.funnel .view-link { flex: 0 0 auto; font-size: 12.5px; color: #2f7bf6; cursor: pointer; }
.funnel .view-link:hover { text-decoration: underline; }
.funnel .fill.lost { background: linear-gradient(90deg, #f3a3a1, #ef6461); }
.funnel .idx.lost { background: #ef6461; }

/* 4) 大客户进度：进度条 + 占位符 */
.pcell { display: flex; align-items: center; gap: 8px; }
.pbar { height: 7px; width: 90px; background: #eef2f9; border-radius: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #69a8f8, #2f7bf6); }
.pn { font-size: 12px; color: #1f2d3d; font-variant-numeric: tabular-nums; }
.dim { color: #c5cedb; }

/* ============================================================
 * 第九轮（2026-10-16）
 *  ① 办公地址的经纬度「获取定位」控件
 *  ② 移动端签到：当前定位 / 距客户距离 / 300 米规则提示
 *  ③ 拜访内容合并为一个字段（注释说明）
 * ============================================================ */

/* ① 经纬度定位控件 */
.geo-box { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.geo-box .geo-inp { flex: 1 1 auto; min-width: 0; max-width: 240px; }
.geo-box .geo-inp .el-input__inner { color: #5b6980; background: #f7f9fc; }
.geo-box .el-button { flex: 0 0 auto; }

/* ② 签到页：定位信息 + 规则提示 */
.p-geo { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.p-geo-row { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #5b6980; line-height: 1.7; }
.p-geo-row i { color: #2f7bf6; margin-top: 3px; }
.p-geo-row b { color: #1f2d3d; font-variant-numeric: tabular-nums; }
.p-geo-ok { font-style: normal; color: #1fb574; margin-left: 4px; }
.p-geo-bad { font-style: normal; color: #ef6461; margin-left: 4px; }
.p-sign-note b { color: #ef6461; }

/* ③ 拜访内容：填写页注释 / 详情抽屉注释 */
.p-note { font-size: 11.5px; color: #909399; line-height: 1.6; margin-bottom: 6px; }
.p-note b { color: #5b6980; }
.vd-note { font-size: 11.5px; color: #9aa6b8; margin: 2px 0 6px; }

/* ============================================================
 * 第十一轮（2026-10-16）：PRD 文档页
 * ============================================================ */
.sidebar .side-nav + .side-label { padding-top: 16px; }
.prd-doc {
  max-width: 1000px; background: #fff; border-radius: 12px; padding: 32px 42px 40px;
  box-shadow: 0 1px 2px rgba(24, 44, 80, .04), 0 6px 22px rgba(24, 44, 80, .05);
  color: #33425a; font-size: 13.5px; line-height: 1.85;
}
.prd-doc h1 { font-size: 23px; color: #1f2d3d; margin: 0 0 8px; }
.prd-doc h1 .ver { font-size: 12.5px; font-weight: 600; color: #2f7bf6; background: #eaf2ff; border-radius: 20px; padding: 2px 10px; vertical-align: 3px; margin-left: 8px; }
.prd-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: #8290a6; padding-bottom: 16px; border-bottom: 1px solid #eef2f9; margin-bottom: 8px; }
.prd-doc h2 { font-size: 17px; color: #1f2d3d; margin: 30px 0 10px; padding-left: 11px; border-left: 4px solid #2f7bf6; line-height: 1.35; }
.prd-doc h3 { font-size: 14.5px; color: #29384f; margin: 20px 0 8px; }
.prd-doc h4 { font-size: 13px; color: #42506b; margin: 16px 0 6px; }
.prd-point { background: #f6f9ff; border: 1px solid #e2ecfd; border-radius: 8px; padding: 9px 13px; font-size: 13px; color: #3d5680; margin: 0 0 10px; line-height: 1.7; }
.prd-notes { margin: 0 0 8px; padding-left: 21px; }
.prd-notes li { margin: 5px 0; }
.prd-notes li b { color: #1f2d3d; }
.prd-doc b { color: #1f2d3d; }
.prd-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 6px; }
.prd-tbl th, .prd-tbl td { border: 1px solid #e8edf5; padding: 6px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.prd-tbl th { background: #f7f9fc; color: #42506b; font-weight: 600; }
.prd-tbl td.opts { color: #6b7a90; }

/* 打印 / 存 PDF：只留文档正文 */
@media print {
  .sidebar, .no-print { display: none !important; }
  .el-main { padding: 0 !important; overflow: visible !important; }
  .prd-doc { max-width: none; box-shadow: none; border-radius: 0; padding: 0; }
  .prd-doc h2 { break-after: avoid; }
  .prd-tbl table { break-inside: auto; }
  .prd-tbl tr { break-inside: avoid; }
}

/* ============================================================
 * 战况看板：点「客户数」→ 右侧客户清单抽屉（2026-10-19）
 * ============================================================ */
.dd-wrap { padding: 2px 18px 18px; }
.dd-tip {
  display: flex; align-items: center; gap: 6px;
  background: #f3f8ff; border: 1px solid #d9e8ff; border-radius: 8px;
  padding: 7px 11px; margin-bottom: 12px;
  font-size: 12.5px; color: #3d5680; line-height: 1.6;
}
.dd-tip i { color: #2f7bf6; }
.dd-empty { padding: 26px 0; text-align: center; color: #9aa6b8; font-size: 13px; }

/* ============================================================
 * 4.0 评审调整：餐段明细 / 逐字段标红 / 长表单
 * ============================================================ */
.kv-wide { grid-column: 1 / -1; }
.kv-wide .v { white-space: normal; }

/* 餐段明细表（PC） */
.meal-box { width: 100%; }
.meal-empty {
  background: #f7f9fc; border: 1px dashed #d6dde8; border-radius: 8px;
  padding: 10px 12px; color: #8a94a6; font-size: 12.5px;
}
.meal-tb { width: 100%; border-collapse: collapse; }
.meal-tb th, .meal-tb td {
  border: 1px solid #e6ebf2; padding: 6px 8px; font-size: 12.5px;
}
.meal-tb th { background: #f7f9fc; color: #5b6675; font-weight: 500; text-align: left; }
.meal-tb td.meal-p { width: 90px; text-align: center; color: #2c3e50; font-weight: 600; }
.meal-tb td.cell-err { background: #fef0f0; box-shadow: inset 0 0 0 1px #f56c6c; }
.meal-sum {
  margin-top: 8px; padding: 7px 10px; background: #f5f9ff;
  border: 1px solid #dbe8fb; border-radius: 6px;
  font-size: 12.5px; color: #40536e;
}
.meal-sum b { color: #2f7bf6; }

/* 保存校验：逐字段标红 */
.el-form-item.fld-err .el-form-item__label { color: #f56c6c; }
.el-form-item.fld-err .el-input__inner,
.el-form-item.fld-err .el-textarea__inner,
.el-form-item.fld-err .el-select .el-input__inner {
  border-color: #f56c6c;
}
.fld-err .fld-wrap > .el-input > .el-input__inner { border-color: #f56c6c; }
.err-tip { margin-left: 8px; color: #f56c6c; font-size: 12px; }
.len-hint { color: #b6bfcc; font-style: normal; font-size: 11.5px; font-weight: 400; margin-left: 8px; white-space: nowrap; }

/* 移动端：餐段明细 / 标红 */
.p-field-err .p-fl { color: #f56c6c; }
.p-err { color: #f56c6c; font-size: 11.5px; margin-top: 3px; }
.p-len { color: #b6bfcc; font-style: normal; font-size: 10.5px; font-weight: 400; }
.p-meal-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-end; }
.p-meal-p { flex: 0 0 34px; font-size: 12px; color: #2c3e50; font-weight: 600; padding-bottom: 6px; }
.p-meal-f { flex: 1 1 0; min-width: 0; }
.p-meal-lb { display: block; font-size: 10.5px; color: #98a3b3; margin-bottom: 3px; }
.p-meal-f.p-cell-err .p-meal-lb { color: #f56c6c; }
.p-cell-err .el-input__inner { border-color: #f56c6c; }
.p-btn.warn { background: #e6902f; }

/* ============================================================
 * 第十七轮（2026-10-20）：移动端「补充客户档案 / 编辑客户」表单重排
 *  1) 控件统一撑满卡片（原来 inline-block 收窄，输入框 ~190、下拉 ~250，右边缘参差）
 *  2) 多选下拉不再塌缩成内容宽（「盒饭配送 ×」原来只有一小截）
 *  3) 字数提示移到字段标题右侧，不再单独占一行、也不再和下一个字段的标题黏在一起
 *  4) 字段间距、分节标题加重，长表单不糊成一片
 * ============================================================ */
.p-req-bar {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #b5761c; background: #fdf6ec;
  border: 1px solid #fbe6c8; border-radius: 10px;
  padding: 8px 11px; margin-bottom: 10px;
}
.p-req-bar i { font-size: 14px; }
.p-req-bar b { font-size: 13px; }
.p-req-bar.ok { color: #1a9e66; background: #eefaf3; border-color: #cdf0dd; }

.p-form .p-card { padding: 14px 14px 6px; margin-bottom: 12px; }
.p-form .p-sec-hd { margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid #f2f5fa; }
.p-form .p-sec-hd b { font-size: 13.5px; }
.p-form .p-sec-hd b::before {
  content: ''; display: inline-block; width: 3px; height: 12px;
  background: #2f7bf6; border-radius: 2px; margin-right: 7px; vertical-align: -1px;
}
.p-form .p-field { margin-bottom: 14px; }
.p-form .p-fl { margin-bottom: 6px; font-size: 12px; }
.p-form .p-len { margin-left: auto; padding-left: 8px; }

/* 控件统一占满一行：.fld-wrap 原为 inline-block（收缩到内容宽），换成 block 才能真正 100% */
.p-form .fld-wrap { display: block; }
.p-form .fld-wrap > .el-input,
.p-form .fld-wrap > .el-textarea,
.p-form .fld-wrap > .el-select,
.p-form .fld-wrap > .el-input-number,
.p-form .fld-wrap > .el-date-editor { width: 100% !important; max-width: 100%; }
/* 多选下拉：标签在框内换行，不要横向溢出被裁掉 */
.p-form .el-select .el-select__tags { white-space: normal; }
.p-form .el-select .el-select__tags .el-tag { max-width: 100%; }
/* 经纬度那行：输入框吃剩余宽度，按钮固定宽 */
.p-form .geo-box { display: flex; align-items: center; gap: 8px; }
.p-form .geo-box .geo-inp { flex: 1 1 auto; min-width: 0; max-width: none; width: auto !important; }
.p-form .geo-box .el-button { flex: 0 0 auto; }
/* 数字框文字左对齐，和输入框观感一致 */
.p-form .fld-wrap > .el-input-number .el-input__inner { text-align: left; }

/* 拜访内容页（移动端）逐项标红 */
.p-ipt-err .el-input__inner,
.p-ipt-err .el-textarea__inner { border-color: #f56c6c; }
.p-field-err .fld-wrap > .el-input > .el-input__inner,
.p-field-err .fld-wrap > .el-select .el-input__inner,
.p-field-err .fld-wrap > .el-input-number .el-input__inner,
.p-field-err .fld-wrap > .el-date-editor .el-input__inner,
.p-field-err .fld-wrap > .el-textarea .el-textarea__inner { border-color: #f56c6c; }
