/* 客户管理 → 客户对照。
   2026-12-02 第四版（负责人：「看着的确不错，但是前端不好看……要大气简约漂亮。」）：白底、大留白、字号放大，不用灰底表头和满格的线；
   每家客户一张对照表——店名是这一栏的题目，下面区域、地址、电话、近况、依据逐项对齐；金蝶和高德之间只留一道细线；
   两边一样的字在字底下垫一道淡金色（取 logo 的金），不再整块涂黄。颜色只留给两处：品牌蓝的「通过」和 AI 建议，绿色的「已通过」。
   2026-12-03 第五版（负责人：「把金蝶和高德门店再区分开」）：金蝶那一栏铺一层很浅的蓝底，表头是蓝色账本图标加「金蝶客户」；
   高德那几栏白底，表头是金色定位图标加「高德门店」。顶上加一条新客户提醒（浅金边、白底，不用大色块）。 */
.cl-page { --cl-line: #e9ecf1; --cl-ink: #14151c; --cl-label: #4e5969; --cl-gold: rgba(245, 184, 65, .45); --cl-kd: #f5f8fc; --cl-kd-chip: #e2eef7; }
.cl-spark { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.cl-check { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 按钮 */
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; height: 36px; padding: 0 18px; border: 1px solid #d8dde5; border-radius: 10px; color: var(--text); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.cl-btn:hover:not(:disabled) { border-color: #c2c8d2; background: #f7f8fa; }
.cl-btn.primary { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 1px 2px rgba(18, 116, 165, .18); }
.cl-btn.primary:hover:not(:disabled) { border-color: var(--blue-hover); background: var(--blue-hover); box-shadow: 0 3px 10px rgba(18, 116, 165, .22); }
.cl-btn:disabled { opacity: .45; cursor: not-allowed; }
.cl-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cl-page .crm-head .cl-btn { height: 40px; padding: 0 20px; border-radius: 11px; }

/* ---------- 页签、筛选、一行说明 ---------- */
.cl-board { padding: 4px 32px 30px; border: 1px solid var(--cl-line); border-radius: 18px; background: #fff; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--cl-line); }
.cl-tabs { flex: none; display: flex; gap: 38px; }
.cl-tabs button { position: relative; padding: 20px 0 18px; border: 0; color: var(--cl-label); background: none; font-size: 16px; white-space: nowrap; transition: color .15s ease; }
.cl-tabs button span { margin-left: 8px; color: #86909c; font-size: 14px; font-weight: 500; }
.cl-tabs button:hover { color: var(--cl-ink); }
.cl-tabs button.on { color: var(--cl-ink); font-weight: 600; }
.cl-tabs button.on span { color: var(--blue); }
.cl-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--blue); }
.cl-bar .pv-filter { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; background: none; }
.cl-bar .pv-filter { min-width: 0; }
.cl-bar .pv-filter .pv-search { flex: 0 1 340px; min-width: 220px; }
.cl-bar .xs-trigger { flex: none; width: 184px; height: 40px; }
/* 屏幕窄一点（1440 上下）时，页签挨近一点、两个下拉收窄一点，带上「筛选」「清空筛选」也排得下一行，页签不折成两行。 */
@media (max-width: 1599px) {
  .cl-tabs { gap: 28px; }
  .cl-bar .xs-trigger { width: 170px; }
}
.cl-bar .pv-reset { flex: none; white-space: nowrap; }
.cl-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding-top: 6px; }
.cl-count { display: flex; align-items: center; gap: 4px; margin: 0; color: #1d2129; font-size: 14px; }
.cl-count b { margin: 0 2px; color: var(--cl-ink); font-weight: 600; }
.cl-count .cpc-tip { margin-left: 4px; }
.cl-run { display: flex; align-items: center; gap: 14px; }
.cl-run i { display: block; width: 180px; height: 4px; overflow: hidden; border-radius: 4px; background: #eef0f3; }
.cl-run em { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .6s ease; }
.cl-run-text { color: var(--cl-ink); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- 对照表 ----------
   2026-12-03 第六版（负责人：「这个客户对照，我觉得前端不对，每个块儿太大了。」）：一张卡片从 350–450px 高压到 220px 上下。
   撤掉最左一栏行名（区域、地址、电话看内容就认得）；「通过」「不是」挪到高德那一栏表头的右边，底下不再单占一行；
   AI 的把握和依据并成高德那一栏的最后一行，金蝶那一栏最后一行放「另找一家门店」「地图上没有这家」；格子上下留白收紧，字号不变（14px 起、深色字）。
   一栏七格（表头、名称、区域、地址、电话、近况、最后一行），按「一栏一栏」的顺序写（grid-auto-flow: column），
   几栏的同一格自然落在一条线上；手机上一栏一栏往下叠。 */
.cl-list { display: grid; gap: 14px; }
.cl-card { min-width: 0; overflow: hidden; border: 1px solid var(--cl-line); border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.cl-card:hover { border-color: #d6dbe4; box-shadow: 0 6px 22px rgba(20, 32, 52, .06); }
.cl-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cl-grid.n2 { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1fr); }
.cl-grid.next { border-top: 1px solid var(--cl-line); }
/* 每一栏的表头：左边金蝶客户 / 高德门店，右边是按钮（高德）或已对上几家（金蝶） */
/* 窄的时候按钮折到第二行：从上往下排（align-content），同一行别的栏的表头还和第一行对齐 */
.cl-h { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 14px 20px 6px; }
.cl-side { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.cl-h .cl-btn { min-width: 56px; height: 32px; padding: 0 12px; border-radius: 9px; }
.cl-v { min-width: 0; padding: 1px 20px; color: #1d2129; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
/* 店名一格：店名在左边折行，后面的小标签（华方、已不在地图上）跟在店名第一行的右边，不会单独掉到下一行 */
.cl-v.first { display: flex; align-items: flex-start; gap: 8px; padding-top: 2px; padding-bottom: 5px; }
.cl-v.last { padding-top: 7px; padding-bottom: 16px; }
/* 金蝶这一栏：整栏一层浅蓝底，从表头一直铺到最后一行，和白底的高德候选分开 */
.cl-h.kd, .cl-v.kd { background: var(--cl-kd); }
/* 两边的身份：图标块加名字，金蝶蓝、高德金 */
/* 和高德表头里 32px 高的按钮一样高，几栏的「金蝶客户」「高德门店」落在一条线上 */
.cl-src { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--cl-ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.cl-src i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; }
.cl-src svg, .cl-pin svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-src.kd i { color: var(--blue); background: var(--cl-kd-chip); }
.cl-src.gd i { color: var(--accent-deep); background: var(--accent-soft); }
/* 金蝶和高德之间、两家候选之间：一道细线，从上到下连着 */
.cl-h:not(.kd), .cl-v:not(.kd) { border-left: 1px solid #eef1f5; }
.cl-name { color: var(--cl-ink); font-size: 16px; font-weight: 600; line-height: 24px; }
.cl-v.first .cl-tag { flex: none; margin-top: 2px; }
.cl-seg { white-space: nowrap; }
.cl-hit { margin: 0 -1px; padding: 0 1px; border-radius: 2px; color: inherit; background: linear-gradient(transparent 58%, var(--cl-gold) 58%); }
.cl-none { color: #1d2129; }
.cl-v.off { color: #86909c; }
.cl-v.off .cl-name { color: #4e5969; font-weight: 500; }
.cl-v.off .cl-hit { background: none; }
.cl-tag { padding: 0 8px; border-radius: 6px; color: var(--accent-deep); background: var(--accent-soft); font-style: normal; font-size: 12px; font-weight: 500; line-height: 20px; letter-spacing: 0; white-space: nowrap; }
.cl-tag.warn { color: var(--cl-label); background: var(--fill); }
.cl-tag.new { color: var(--blue); background: var(--cl-kd-chip); }
/* 这家店已经对上了别的开单客户：依据下面另起一行，用金棕色提一句（可以照样通过，只是让人心里有数） */
.cl-also { display: block; margin-top: 4px; color: var(--accent-deep); font-size: 14px; font-style: normal; line-height: 22px; }
/* 状态：金蝶表头右边的「已对上几家」；高德最后一行开头的 AI 选的、把握几成、已通过、已否掉，后面跟依据 */
.cl-state { display: inline-flex; align-items: center; gap: 4px; color: #1d2129; font-size: 14px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.cl-v .cl-state { display: inline; margin-right: 8px; }
.cl-v .cl-state svg { margin-right: 3px; vertical-align: -2px; }
.cl-state.ai { color: var(--blue); }
.cl-state.ok { color: var(--success); }
/* 金蝶那一栏最后一行的两个次要入口：深色字，前面一个蓝色小图标 */
.cl-quiet { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: #1d2129; background: none; font-size: 14px; line-height: 22px; white-space: nowrap; transition: color .12s ease; }
.cl-quiet svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cl-quiet + .cl-quiet { margin-left: 18px; }
.cl-quiet:hover { color: var(--blue); }
/* 另找一家：卡片底下展开一条搜索 */
.cl-find { padding: 14px 20px 16px; border-top: 1px solid var(--cl-line); background: #fafbfc; }
.cl-find input { width: 100%; max-width: 420px; height: 36px; padding: 0 12px; border: 1px solid #d8dde5; border-radius: 9px; background: #fff; font-size: 14px; }
.cl-find input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 116, 165, .1); }
.cl-found-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) 128px auto; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--cl-line); color: #1d2129; font-size: 14px; }
.cl-found-row .cl-btn { height: 32px; padding: 0 14px; border-radius: 9px; }
.cl-found-row .cl-name { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; }
.cl-pin { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; color: var(--accent-deep); background: var(--accent-soft); }
.cl-found-row .cl-also { margin-top: 2px; }
.cl-found-row .cl-state { margin-left: 0; }
.cl-found-row:first-child { margin-top: 6px; }
.cl-found-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-found .cl-none { margin: 12px 0 0; }
.cl-empty { margin: 0; padding: 72px 0; color: var(--cl-label); font-size: 15px; text-align: center; }
.cl-board .tpager { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--cl-line); }

/* ---------- 新客户提醒（页面顶上一条） ---------- */
.cl-fresh { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 22px; border: 1px solid var(--accent-line); border-radius: 14px; background: #fff; }
.cl-fresh > i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.cl-fresh > i svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.cl-fresh p { flex: 1; min-width: 0; margin: 0; color: var(--cl-ink, #14151c); font-size: 15px; line-height: 24px; }
.cl-fresh b { margin: 0 2px; font-weight: 600; }
.cl-link { flex: none; padding: 0; border: 0; color: var(--blue); background: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cl-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 开始分析前的确认框 ---------- */
.cl-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 21, 28, .36); }
.cl-dialog { width: min(460px, 100%); padding: 28px 28px 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.cl-dialog h2 { margin: 0 0 12px; color: var(--cl-ink, #14151c); font-size: 19px; font-weight: 650; }
.cl-wait, .cl-warn, .cl-note { margin: 0 0 18px; color: var(--text-regular); font-size: 13.5px; line-height: 1.8; }
.cl-warn b { color: var(--accent-deep); }
.cl-note { color: var(--text-muted); font-size: 12.5px; }
.cl-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 18px; padding: 3px; border-radius: 10px; background: var(--fill); }
.cl-scope button { height: 34px; border: 0; border-radius: 8px; color: var(--text-muted); background: none; font-size: 13px; }
.cl-scope button.on { color: var(--text); background: #fff; box-shadow: 0 1px 3px rgba(20, 21, 28, .12); font-weight: 600; }
.cl-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; padding: 16px 0; border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; }
.cl-plan dt { color: var(--text-muted); font-size: 12px; }
.cl-plan dd { margin: 4px 0 0; color: #14151c; font-size: 15px; font-weight: 600; }
.cl-dialog-acts { display: flex; justify-content: flex-end; gap: 10px; }
.cl-dialog-acts .cl-btn { height: 38px; padding: 0 18px; }

@media (max-width: 1100px) {
  .cl-bar { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .cl-meta { flex-wrap: wrap; }
}
@media (max-width: 1439px) {
  .cl-board { padding: 4px 24px 26px; }
  .cl-h { padding-left: 18px; padding-right: 18px; }
  .cl-v { padding-left: 18px; padding-right: 18px; }
  .cl-find { padding-left: 18px; padding-right: 18px; }
}
/* 窄屏（手机）：对照表一栏一栏往下叠，金蝶一块、每家高德门店一块。 */
@media (max-width: 860px) {
  .cl-board { padding: 4px 14px 20px; border-radius: 14px; }
  .cl-fresh { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .cl-fresh p { flex-basis: calc(100% - 44px); }
  .cl-fresh .cl-link { margin-left: 44px; }
  .cl-bar .pv-filter { flex-wrap: wrap; }
  .cl-bar .pv-filter .pv-search { flex: 1 1 100%; min-width: 0; }
  .cl-bar .xs-trigger { width: auto; flex: 1 1 150px; }
  .cl-tabs { gap: 24px; }
  .cl-tabs button { font-size: 15px; }
  .cl-grid, .cl-grid.n2 { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
  .cl-grid .cl-v.pad, .cl-grid .cl-h.pad { display: none; }
  .cl-grid .cl-h, .cl-grid .cl-v { border-left: 0; }
  .cl-grid .cl-h { min-height: 0; padding: 12px 16px 6px; }
  .cl-grid .cl-h:not(.kd) { border-top: 1px solid var(--cl-line); }
  .cl-grid .cl-v { padding: 1px 16px; }
  .cl-grid .cl-v.first { padding: 2px 16px 5px; }
  .cl-grid .cl-v:empty { display: none; }
  .cl-grid .cl-v.last { padding: 7px 16px 14px; }
  .cl-grid .cl-v.last:empty { display: block; padding: 0 0 8px; }
  .cl-find { padding: 14px 16px 16px; }
  .cl-found-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .cl-found-row span { grid-column: 1; }
  .cl-found-row .cl-btn { grid-column: 2; grid-row: 1 / span 3; }
}
