:root {
  --navy: #1e3a8a;
  --navy-d: #16305f;
  --gold: #c9a25e;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e8ecf3;
  --text: #1c2333;
  /* 第 36 轮：全局灰字加黑（用户反馈灰色 / 黑灰文字偏浅） */
  --text-2: #3f4859;
  --text-3: #67718a;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(30, 58, 138, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #24418f 0%, #16305f 55%, #0f2347 100%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 44px 40px 38px;
  box-shadow: 0 20px 60px rgba(8, 18, 40, 0.28);
  text-align: center;
}
/* 登录页 LOGO：透明 PNG（山形标志 + 吾跃森源字样），白卡上直接展示 */
.login-logo {
  display: block;
  width: 92px;
  height: 96px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.login-card h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.login-sub { margin: 8px 0 32px; font-size: 13px; color: var(--text-3); }
.login-form { text-align: left; }
.login-form label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  background: #f8f9fc;
  outline: none;
  transition: border-color 0.2s;
}
.login-form input:focus { border-color: var(--navy); background: #fff; }
.login-error {
  color: #d33b3b;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}
.login-tip {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ---------------- 按钮 ---------------- */
.btn {
  border: none;
  border-radius: 9px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-d); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid #cfd9f0; }
.btn-ghost:hover { background: #f4f7ff; }
.btn-danger { background: #fff; color: #d33b3b; border: 1px solid #f4cfcf; }
.btn-danger:hover { background: #fdf3f3; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; margin-top: 4px; }

/* ---------------- 布局 ---------------- */
.app-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: #16233f;
  color: #c8d2e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* 侧边栏 LOGO：深色底上垫白色小圆角片，保证深蓝山形部分可辨识 */
.brand-logo {
  width: 42px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { margin-left: 12px; }
.brand-name { font-size: 15px; font-weight: 600; color: #fff; }
.brand-sub { font-size: 11px; color: #7d8ba8; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.nav-group {
  padding: 16px 20px 8px;
  font-size: 11px;
  color: #6b7997;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.on {
  background: rgba(63, 99, 200, 0.2);
  color: #fff;
  border-left-color: var(--gold);
  font-weight: 500;
}
.nav-icon { width: 20px; margin-right: 10px; font-size: 14px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: #d33b3b;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-foot { padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.me { display: flex; align-items: center; margin-bottom: 12px; }
.me-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 34px;
  flex-shrink: 0;
}
.me-info { margin-left: 10px; overflow: hidden; }
.me-name { font-size: 13px; color: #fff; }
.me-role { font-size: 11px; color: #7d8ba8; margin-top: 2px; }
.logout {
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 8px;
  color: #c8d2e6;
  cursor: pointer;
  font-size: 12.5px;
}
.logout:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.crumb { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topsearch {
  width: 240px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9fc;
  outline: none;
}
.topsearch:focus { border-color: var(--navy); background: #fff; }
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 15px;
}
.icon-btn:hover { background: #f5f7fc; color: var(--navy); }

.content { padding: 24px 26px 60px; }

/* ---------------- 卡片 / 统计 ---------------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 12.5px; color: var(--text-3); }
.stat-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.stat-value.navy { color: var(--navy); }
.stat-value.gold { color: #a17c2e; }
.stat-value.green { color: #12805c; }
.stat-value.red { color: #d33b3b; }
.stat-foot { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.stat-delta.up { color: #12805c; }
.stat-delta.down { color: #d33b3b; }

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 15px; font-weight: 600; }
.panel-title small { font-weight: 400; color: var(--text-3); margin-left: 8px; font-size: 12px; }
.panel-actions { display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 20px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  padding: 12px 16px;
  background: #fafbfe;
  color: var(--text-2);
  /* 第 38 轮：列表表头稍微加粗 */
  font-weight: 700;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #f2f4f8;
  color: var(--text);
  vertical-align: middle;
}
tbody tr:hover { background: #fafbfe; }
tbody tr:last-child td { border-bottom: none; }
.td-actions { display: flex; gap: 6px; white-space: nowrap; }
/* 第 38 轮：线索列表操作列分两行（仅线索表，避免影响其他模块） */
#ld-table .td-actions { flex-direction: column; gap: 6px; }
.ta-row { display: flex; gap: 6px; }
.td-muted { color: var(--text-3); font-size: 12.5px; }
.td-strong { font-weight: 500; }
.td-money { color: #d33b3b; font-weight: 600; }

.thumb {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef1f7;
  display: block;
}
.thumb-lg { width: 100%; height: 150px; }

/* ---------------- 徽章 ---------------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.tag.gray { background: #eef0f5; color: #5a6377; }
.tag.blue { background: #e8eefc; color: var(--navy); }
.tag.green { background: #e3f6ec; color: #12805c; }
.tag.orange { background: #fdf1e2; color: #b26205; }
.tag.red { background: #fdebec; color: #d33b3b; }
.tag.gold { background: #f9f0dd; color: #8a6d1f; }
/* R66 #6：账号管理「角色」列标签样式统一 —— 新增同族浅底深字色（与 red/gold/blue 同款观感），
   运营主管 / 市场总监 / 市场主管 / 合作伙伴 不再使用「透明底 + 边框」内联样式 */
.tag.purple { background: #f1e9fd; color: #7c3aed; }
.tag.indigo { background: #e7ecfd; color: #4338ca; }
.tag.teal { background: #e0f5f2; color: #0f766e; }

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  background: #f2f4f9;
  color: var(--text-2);
  cursor: pointer;
  border: 1px solid transparent;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- 表单 ---------------- */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.form-row label .req { color: #d33b3b; margin-left: 3px; }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfe;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--navy);
  background: #fff;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.form-hint { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* 🔴 R90 #5：英语水平 —— 选「其他情况」时在**同一框体内**切换为输入模式。
   .eng-sel 与 .eng-edit 互斥显示（同一位置、同为 .input 外观），故视觉上就是「同一个框变成了输入框」。 */
.eng-box { position: relative; }
.eng-edit { position: relative; }
.eng-edit .eng-in { width: 100%; padding-right: 30px; }
.eng-caret {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 26px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 12px; line-height: 1; border-radius: 6px;
}
.eng-caret:hover { background: var(--bg); color: var(--text-2); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d6dbe6;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch.on { background: var(--navy); }
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.switch.on::after { transform: translateX(20px); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1; }
.search-box { position: relative; }
.search-box input {
  width: 260px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  outline: none;
}
.search-box input:focus { border-color: var(--navy); }

/* ---------------- 评论 / 会话 ---------------- */
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f2f4f8;
}
.comment-item:last-child { border-bottom: none; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 38px;
  flex-shrink: 0;
}
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.comment-name { color: var(--text); font-weight: 500; font-size: 13.5px; }
.comment-text { margin-top: 7px; line-height: 1.7; color: var(--text-2); }

/* 聊天 */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 170px); }
/* 左列：搜索框 + 会话列表（搜索框不随列表滚动） */
.chat-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-side .search-box { padding: 10px 12px 0; }
.chat-side .search-box input { width: 100%; }
.chat-list { border-right: none; overflow-y: auto; flex: 1; min-height: 0; }
.chat-list-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f8;
  cursor: pointer;
}
.chat-list-item:hover { background: #fafbfe; }
.chat-list-item.on { background: #eef3ff; border-left: 3px solid var(--navy); }
.cli-top { display: flex; justify-content: space-between; align-items: center; }
.cli-name { font-size: 13.5px; font-weight: 500; }
.cli-time { font-size: 11.5px; color: var(--text-3); }
.cli-msg {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 第 30 轮：客服会话列表「负责顾问」（仅管理员 / 主管可见） */
.cli-assignee {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 第 31 轮：客服会话列表「微信号」（跟在手机号后） */
.cli-wechat { color: var(--text-3); }
/* 第 30 轮：账号管理「工号」自动生成行 */
.code-row { display: flex; align-items: center; gap: 10px; }
.code-val {
  flex: 1;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: 0.4px;
}
.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: #fafbfe; }
.chat-msg { display: flex; margin-bottom: 18px; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 60%;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 13.5px;
}
.chat-bubble.other { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.chat-bubble.mine { background: var(--navy); color: #fff; border-top-right-radius: 4px; }
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-align: center;
  line-height: 34px;
  flex-shrink: 0;
}
.chat-msg.mine .chat-avatar { background: #7a879e; }
.chat-msg .chat-bubble { margin: 0 10px; }
.chat-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fafbfe;
}
.chat-input:focus { border-color: var(--navy); background: #fff; }

/* ---------------- 客服会话 · 自动回复 ---------------- */

/* 智能建议回复（按最后一条用户消息命中规则） */
.chat-suggest {
  padding: 12px 20px 4px;
  border-top: 1px dashed var(--line);
  background: #fbfcff;
}
.chat-suggest .cs-head {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.chat-suggest .cs-item {
  border: 1px solid #e3e9f6;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.chat-suggest .cs-item:last-child { margin-bottom: 6px; }
.chat-suggest .cs-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.chat-suggest .cs-text {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.chat-suggest .td-actions { justify-content: flex-end; }
.chat-panel .chat-suggest { flex-shrink: 0; max-height: 300px; overflow-y: auto; }
.chat-panel .chat-phrases { flex-shrink: 0; max-height: 96px; overflow-y: auto; }
.chat-panel .chat-body { min-height: 180px; }

/* 常用语快捷条 */
.chat-phrases {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px dashed var(--line);
}
.chat-phrases .cp-label {
  font-size: 12.5px;
  color: var(--text-3);
  margin-right: 2px;
  flex-shrink: 0;
}
.chat-phrases .cp-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f2f4f9;
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.chat-phrases .cp-chip:hover { background: #e8eefc; color: var(--navy); border-color: #cdd9f5; }

/* 规则说明条 */
.ar-note {
  background: #f6f8fd;
  border: 1px solid #e3e9f6;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.8px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 14px;
}
.ar-note b { color: var(--navy); }
.ar-tip {
  background: #f9fafc;
  border-left: 3px solid var(--navy);
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-3);
  margin-top: 4px;
  white-space: pre-line;
}

/* 规则表格 */
.ar-off td { opacity: 0.5; }
.ar-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-1);
}
.ar-reply {
  max-width: 320px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.kw-wrap { display: flex; flex-wrap: wrap; gap: 5px; max-width: 240px; }
.kw-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: #eef3ff;
  color: var(--navy);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------------- 抽屉 ---------------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 36, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  z-index: 100;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 92vw;
  background: #fff;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(12, 18, 36, 0.14);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-title { font-size: 16px; font-weight: 600; }
.drawer-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px 8px;
}
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------------- 其他 ---------------- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
.empty-state .title { font-size: 14px; color: var(--text-2); }
.empty-state .desc { font-size: 12.5px; margin-top: 6px; }

.loading-state { text-align: center; padding: 48px; color: var(--text-3); font-size: 13px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 32, 56, 0.9);
  color: #fff;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #3f63c8, #24418f);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
  transition: height 0.4s ease;
}
.bar-label { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.bar-value { font-size: 12px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }

.progress { height: 8px; background: #eef1f7; border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }

.code-box {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #f5f6fa;
  border: 1px dashed #c9d4f2;
  border-radius: 9px;
  padding: 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 4px;
}

.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.material-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.material-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eef1f7; }
.material-info { padding: 12px; }
.material-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-meta { font-size: 11.5px; color: var(--text-3); margin-top: 5px; display: flex; justify-content: space-between; }
.material-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ===== 评估配置编辑器 ===== */
.as-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr 1.6fr 44px 44px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafbfe;
}
.as-row.as-row-intent { grid-template-columns: 1.6fr 1.6fr 44px; }
.as-row .input, .as-row .select { width: 100%; }
.as-cell-btn { display: flex; justify-content: center; }
.desc-list { padding: 8px 0; }
.desc-item {
  padding: 8px 12px;
  border-left: 3px solid var(--navy);
  background: #f6f8fc;
  border-radius: 0 8px 8px 0;
  margin: 8px 12px;
  font-size: 13px;
  color: var(--text-2);
}

/* ==========================================================================
   追加：素材选择器 / 上传控件 / 可点击统计卡 / 加宽抽屉 / 宣传图生成
   ========================================================================== */

/* 可点击的统计卡 */
.stat-card.clickable { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.stat-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,30,60,.10); border-color: #c9d4ea; }
.stat-card.clickable:active { transform: translateY(0); }
.stat-card .stat-go { margin-top: 6px; font-size: 12px; color: var(--navy); opacity: .0; transition: opacity .18s ease; }
.stat-card.clickable:hover .stat-go { opacity: .9; }

/* 加宽抽屉（评估配置等长表单） */
.drawer.wide { width: 760px; max-width: 96vw; }
/* 中等宽度抽屉：新建项目 / 新增项目分类 / 新建 Banner 等表单 */
.drawer.mid { width: 660px; max-width: 95vw; }
.drawer.mid .form-2col { grid-template-columns: 1fr 1fr; }

/* 评估配置编辑器：字段列宽
   第一列（字段名称）收窄，第二列（类型下拉）加宽到能完整显示「多行文本」等 4 个字，
   意向映射只在 wide 抽屉里出现，第二列为分类下拉，给到更大宽度 */
/* 第 46 轮修复：右侧 置顶/上移/下移/删除 按钮组溢出框体 ——
   收窄左侧五列宽度并取消 select 的 min-width 强制，让网格整体收缩到抽屉内 */
.drawer.wide .as-row { grid-template-columns: 1.15fr 1.15fr 0.85fr 1.05fr 1.55fr 40px auto; }
.drawer.wide .as-row .select { min-width: 0; }
.drawer.wide .as-row.as-row-intent { grid-template-columns: 1.2fr 2.6fr auto; }
.drawer.wide .as-row.as-row-intent .select { min-width: 0; }
.as-ops { flex-wrap: nowrap; }
.as-ops .as-op { flex: 0 0 auto; }

/* 模块内页签（项目列表 / 项目分类） */
.seg-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef1f7;
  border-radius: 10px;
  margin-bottom: 16px;
}
.seg-tab {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
.seg-tab:hover { color: var(--navy); }
.seg-tab.on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(20, 30, 60, .10);
}

/* 可搜索下拉（原生 select 无法输入筛选） */
.ss-wrap { position: relative; min-width: 190px; }
.ss-field { position: relative; display: flex; align-items: center; }
.ss-input {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.ss-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 138, .08); }
.ss-clear {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
}
.ss-clear:hover { background: #eef1f7; color: var(--text); }
/* 下拉列表用 fixed 定位：工具栏容器带 overflow-x:auto，absolute 会被裁掉导致「点了没反应」 */
.ss-list {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 240px;
  max-height: 268px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 48, .14);
  padding: 4px;
  display: none;
}
.ss-list.show { display: block; }
.ss-item {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-item:hover { background: #f2f5fb; }
.ss-item.on { background: #e8eefb; color: var(--navy); font-weight: 600; }
.ss-empty { padding: 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* 素材槽「自动生成」标记 */
.asset-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(30, 58, 138, .88);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .3px;
}

/* 通用弹层 */
.pk-mask {
  position: fixed; inset: 0; background: rgba(14,20,36,.42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 200;
}
.pk-mask.show { opacity: 1; pointer-events: auto; }
.pk-box {
  width: 640px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(12,18,36,.28); transform: translateY(8px); transition: transform .2s ease;
}
.pk-mask.show .pk-box { transform: translateY(0); }
.pk-box.wide { width: 940px; max-width: 96vw; }
.pk-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pk-title { font-size: 15px; font-weight: 600; }
.pk-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.pk-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* 第 44 轮：二次确认独立框体（替代原生 window.confirm）
   ⚠️ 独立一层遮罩（z-index 400 > pk-mask 200）：确认按钮常位于 pk 编辑弹窗内部，
      不能复用 pk-box，否则会把正在填写的表单冲掉 */
.cfm-mask {
  position: fixed; inset: 0; background: rgba(14,20,36,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 400;
}
.cfm-mask.show { opacity: 1; pointer-events: auto; }
.cfm-box {
  width: 460px; max-width: 92vw; background: #fff; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(12,18,36,.30);
  transform: translateY(8px); transition: transform .18s ease;
}
.cfm-mask.show .cfm-box { transform: translateY(0); }
.btn-danger-solid { background: #d33b3b; color: #fff; }
.btn-danger-solid:hover:not(:disabled) { background: #b93030; }
.cfm-msg { font-size: 14px; line-height: 1.75; color: #2c3550; word-break: break-word; }

/* 弹层内搜索条（第 29 轮）：素材库 / 简章库选择器共用 */
.pk-search {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 12px;
  background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px;
}
.pk-search-ico { font-size: 13px; opacity: .6; }
.pk-search-input {
  flex: 1; height: 30px; border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--text-1);
}
.pk-search-input::placeholder { color: var(--text-3); }
.pk-search-clear {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--text-3); padding: 0 2px;
}
.pk-search-clear:hover { color: var(--text-1); }

.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-top: 14px; }
.pk-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; position: relative; }
.pk-card:hover { border-color: #b8c6e4; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,30,60,.08); }
.pk-card.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(30,58,138,.16); }
.pk-thumb { position: relative; width: 100%; height: 86px; background: #eef1f7; }
.pk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-badge {
  position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--navy); color: #fff; border-radius: 10px; font-size: 11.5px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.pk-name { padding: 7px 9px 3px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tag { padding: 0 9px 8px; font-size: 11px; color: var(--text-3); }
.pk-tag.lib { color: #1e7a52; }

/* 上传控件 */
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-pick-tip { font-size: 12px; color: var(--text-3); }

/* 已选图片预览条 */
.asset-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.asset-item { position: relative; width: 96px; }
.asset-item img { width: 96px; height: 66px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; background: #eef1f7; }
/* R68 #3：宣传图「背景照片」槽位 —— 成品画布是 1080×1440（3:4 竖版）且居中裁切，
   槽位此前固定 96×66 横版，导致「小图」与「实际大图」画面内容不一致。
   这里按 3:4 展示（object-fit: cover 默认居中），与成品画面 1:1 对齐。 */
.asset-item.poster img { width: 96px; height: 128px; }
.asset-item.poster .asset-empty { width: 96px; height: 128px; }
.asset-item .asset-tip { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-item .asset-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: #e5484d; color: #fff; border: none; font-size: 12px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.asset-item.cover img { border: 2px solid var(--navy); }
.asset-item .cover-flag {
  position: absolute; left: 4px; top: 4px; background: var(--navy); color: #fff;
  font-size: 10.5px; padding: 1px 6px; border-radius: 6px;
}

/* 宣传图生成 */
.poster-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.poster-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poster-tpl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.poster-tpl.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(30,58,138,.16); }
.poster-tpl img { width: 100%; height: 108px; object-fit: cover; display: block; }
.poster-tpl .pt-name { padding: 7px 9px; font-size: 12.5px; }
.poster-swatch { position: relative; height: 96px; overflow: hidden; }
.poster-swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-swatch .ps-bar { position: absolute; z-index: 2; left: 10px; bottom: 10px; width: 34px; height: 4px; border-radius: 2px; }
.poster-stage { display: flex; justify-content: center; background: #f3f5fa; border-radius: 14px; padding: 18px; }
.poster-canvas { border-radius: 14px; box-shadow: 0 14px 40px rgba(12,18,36,.16); }
@media (max-width: 1180px) { .poster-layout { grid-template-columns: 1fr; } }
.asset-item .asset-empty {
  display: flex; align-items: center; justify-content: center; width: 96px; height: 66px;
  border: 1px dashed var(--line); border-radius: 9px; background: #f7f8fc;
  font-size: 11.5px; color: var(--text-3); text-align: center; padding: 4px;
}

/* 登录页验证码行 */
.login-code-row { display: flex; gap: 10px; align-items: center; }
.login-code-row input { flex: 1; }
.login-code-row .btn { flex-shrink: 0; white-space: nowrap; }

/* 紧凑工具条：筛选项与搜索框排在同一行且整体缩小 */
.toolbar-tight { gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
.toolbar-tight .select { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; max-width: 132px; }
.toolbar-tight .search-box.sm input { width: 190px; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.toolbar-tight .btn-sm { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }

/* ==========================================================================
   账号管理 · 微信小程序绑定
   ========================================================================== */
.panel-foot-note {
  padding: 11px 16px 13px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3); line-height: 1.75;
}
.panel-foot-note b { color: var(--text-2); font-weight: 600; }

.bind-tail { margin-left: 6px; font-size: 11.5px; color: var(--text-3); font-family: monospace; }

.bind-box {
  border: 1px solid var(--line); border-radius: 11px; background: #f8f9fd;
  padding: 12px 13px;
}
.bind-state { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bind-meta { font-size: 12.5px; color: var(--text-3); }
.bind-actions { display: flex; gap: 8px; margin-top: 10px; }
.bind-code-box {
  margin-top: 11px; padding: 13px 12px; border-radius: 10px;
  background: #fff; border: 1px dashed var(--navy); text-align: center;
}
.bind-code {
  font-family: monospace; font-size: 30px; font-weight: 700; letter-spacing: 8px;
  color: var(--navy); line-height: 1.2; padding-left: 8px;
}
.bind-exp { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   项目管理列表：置顶标签 / 顺序表头
   ========================================================================== */
.cover-cell { position: relative; display: inline-block; line-height: 0; }
.cover-cell .thumb { display: block; }
/* 置顶标记：跟在封面缩略图右侧、垂直居中（位置不变）
   样式 = 浅金色底 + 白字小标签（用户第 22 轮确认：「字体和样式改为之前的摸样，位置不变」） */
.cover-pin {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
}
.pin-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #dcbe74, #c6a04a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(120, 90, 20, .35);
  box-shadow: 0 1px 2px rgba(160, 128, 52, .28);
}
/* 分销管理：开通分销的用户候选行 */
.dist-u {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #f2f4f8; cursor: pointer;
}
.dist-u:last-child { border-bottom: none; }
.dist-u:hover { background: #f6f8fd; }
.dist-u b { font-size: 13px; }
.dist-u .td-muted { flex: 1; }
.dist-u .btn { flex-shrink: 0; }
th.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.th-sort:hover { color: var(--navy); }
th.th-sort .sort-arrow { font-size: 11px; color: var(--text-3); }
th.th-sort.on { color: var(--navy); }
th.th-sort.on .sort-arrow { color: var(--navy); font-weight: 700; }
tr.row-click { cursor: pointer; }
tr.row-click:hover { background: #f7f9fd; }

/* ==========================================================================
   批量上传：弹窗内的可编辑文件名列表
   ========================================================================== */
.batch-list {
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfe;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.batch-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 9px; background: #fff;
  border: 1px solid #eef1f7; margin-bottom: 7px;
}
.batch-row:last-child { margin-bottom: 0; }
.batch-ico { font-size: 16px; flex-shrink: 0; }
.batch-row .batch-name {
  flex: 1; height: 32px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; min-width: 0;
}
.batch-row .batch-name:focus, .batch-row .batch-type:focus { border-color: var(--navy); outline: none; }
.batch-row .batch-type { width: 88px; flex-shrink: 0; height: 32px; font-size: 12.5px; padding: 0 6px; }
.batch-size { font-size: 11.5px; color: var(--text-3); width: 62px; text-align: right; flex-shrink: 0; }
.batch-del {
  border: none; background: transparent; color: var(--text-3);
  cursor: pointer; font-size: 13px; padding: 3px 6px; border-radius: 6px; flex-shrink: 0;
}
.batch-del:hover { background: #fdeceb; color: #c5342a; }

/* 招生简章选择器（弹窗内文件卡片） */
.pk-card.pk-file .pk-thumb.pk-file-ico {
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: #f4f6fb;
}

/* 素材卡片：非图片占位 */
.material-ph {
  height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: #eef1f7; color: #8a94a6;
}
.material-ph span { font-size: 28px; }
.material-ph em { font-style: normal; font-size: 12px; }

/* 信息弹窗内的表格 */
.modal-count { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.modal-table { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.modal-table table { min-width: 720px; }

/* 项目编辑：已选招生简章回显 */
.broc-chip {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 10px; padding: 9px 11px;
  background: #f4f7fd; border: 1px solid #dde5f5; border-radius: 10px;
  font-size: 13px; color: var(--text);
}
.broc-chip .broc-ico { font-size: 16px; }
.broc-chip .broc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broc-chip .broc-ok { font-size: 11.5px; color: #12855a; flex-shrink: 0; }

/* ===== 线索管理：勾选列与批量操作 ===== */
.th-ck, .td-ck { width: 34px; text-align: center; padding-right: 0; }
.th-ck input, .td-ck input { width: 15px; height: 15px; accent-color: var(--brand, #1e3a8a); cursor: pointer; vertical-align: middle; }
.sel-info { font-size: 12.5px; color: #1e3a8a; font-weight: 600; margin-right: 10px; white-space: nowrap; }

/* ==========================================================================
   第 34 轮新增：线索管理（9 排表单 / 跟进记录）/ 公海客户 / 系统设置 / 业绩统计
   ========================================================================== */

/* ---------- 表格单元格辅助 ---------- */
.td-nowrap { white-space: nowrap; }
.td-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.td-status { font-size: 12px; color: var(--text-2); line-height: 1.75; white-space: pre-line; min-width: 180px; }
.tb-wide { min-width: 1560px; }
.ld-ck { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; vertical-align: middle; }

/* 超期未跟进：整行红字 */
tr.tr-warn > td { background: #fff6f6; color: #c0392b; }
tr.tr-warn:hover > td { background: #ffefef; }
tr.tr-warn > td .td-muted, tr.tr-warn > td .td-sub, tr.tr-warn > td .td-status { color: #d98880; }
tr.tr-warn > td .tag { filter: saturate(0.75); }

/* ---------- 提示条 ---------- */
.hint-bar {
  padding: 10px 14px;
  background: #eef3ff;
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.75;
}
.hint-inline { font-size: 12px; color: var(--text-3); margin-left: 6px; }

/* 顶部超期提醒条 */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  margin-bottom: 14px;
  background: #fff4f2;
  border: 1px solid #f7cdc7;
  border-radius: 10px;
  font-size: 13px;
  color: #c0392b;
  line-height: 1.6;
}
.alert-banner .ab-ico { font-size: 15px; }
.alert-banner .ab-close { margin-left: auto; cursor: pointer; color: #d98080; font-size: 15px; padding: 0 4px; }

/* ---------- 多选（关联项目，可搜索） ---------- */
.ms-box { position: relative; }
.ms-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  transition: border-color .15s;
}
.ms-chips:hover { border-color: #c3cee6; }
.ms-chip { display: inline-block; padding: 2px 9px; border-radius: 14px; background: #e8eefc; color: var(--navy); font-size: 12px; }
.ms-x { margin-left: auto; color: var(--text-3); font-size: 12px; }
.ms-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(30, 58, 138, .14);
  max-height: 264px; overflow: auto; padding: 8px;
}
.ms-kw { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; outline: none; }
.ms-kw:focus { border-color: var(--navy); }
.ms-opt { padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ms-opt:hover { background: #f4f6fa; }
.ms-opt.on { background: #e8eefc; color: var(--navy); font-weight: 600; }
.ms-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 12.5px; }

/* ---------- 二级联动 ---------- */
.casc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 状态流补充区（日期 / 上午下午 / 金额 / 二级） ---------- */
.sf-extra {
  margin-top: 10px; padding: 12px;
  background: #f8fafd; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.sf-extra > .form-row { margin-bottom: 0; flex: 1 1 160px; }

/* ---------- 跟进记录 ---------- */
.fu-list { display: flex; flex-direction: column; gap: 10px; }
.fu-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.fu-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
/* 第 46 轮：展示模块命名按钮 —— 表头标题栏正中间（两端同步居中）；删除跟进记录按钮仅超管可见 */
.fu-head { position: relative; }
.fu-pname {
  position: absolute; left: 50%; transform: translateX(-50%);
  border: 1px dashed var(--line); background: #fff; border-radius: 999px;
  color: var(--text-2); font-size: 12px; padding: 2px 14px; cursor: pointer; max-width: 40%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fu-pname:hover { border-color: var(--navy); color: var(--navy); }
/* R53：命名改为原位内联编辑（不弹层、不关闭「跟进 / 详情」页） */
/* R62 #3：编辑框出现在「跟进记录」标题的**原位**（替换标题的文档流位置，不再绝对定位居中到行中），
   避免看起来「弹到面板中间」；确认 / 取消后整行还原。 */
.fu-pname-edit {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 8px; padding: 2px 4px;
}
.fu-pname-edit .fu-pname-in { width: 180px; height: 28px; font-size: 12.5px; padding: 0 8px; }
.fu-del {
  margin-left: auto; width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text-3);
  font-size: 11px; line-height: 1; cursor: pointer; flex: 0 0 auto; padding: 0;
}
.fu-del:hover { border-color: #d33b3b; color: #d33b3b; background: #fdf1f1; }
.fu-seq { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.5px; line-height: 22px; text-align: center; flex: 0 0 auto; }
.fu-title { font-size: 13px; font-weight: 600; }
.fu-meta { margin-left: auto; font-size: 12px; color: var(--text-3); }
.fu-line { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.fu-text { font-size: 13px; color: var(--text); line-height: 1.7; white-space: pre-line; }
.fu-note { color: var(--text-3); }
.fu-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 12.5px; }

/* ---------- 筛选 chips 行 / 面板工具栏 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.panel-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- 只读输入（详情抽屉） ---------- */
.input.ro, .textarea.ro {
  background: #f6f8fc; color: var(--text-2); cursor: default; border-color: var(--line);
}

/* ---------- 业绩统计：意向方向行 ---------- */
.intent-row:hover { background: #f7f9fd; }

/* ---------- 会话列表：手机号 ---------- */
.cli-phone { font-size: 12px; color: var(--text-3); }

/* ---------- 日期段筛选（线索管理：提交日期 / 跟进日期） ---------- */
.dr {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 9px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.dr input[type="date"] {
  border: 0; outline: none; background: transparent;
  font-size: 12.5px; color: var(--text-2); width: 116px;
}
.dr-sep { color: var(--text-3); font-size: 12px; }

/* ---------- 第 36 轮：单日历区间日期选择 ---------- */
.rcal { position: relative; display: inline-block; }
.rcal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; min-width: 132px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left;
}
.rcal-btn:hover { border-color: var(--navy); }
.rcal-arrow { color: #9aa3b4; font-size: 10px; }
.rcal-pop {
  display: none; position: absolute; top: 38px; left: 0; z-index: 90;
  /* R76 #14：日历选择组件整体缩小（252→208px，格高 28→23px） */
  width: 208px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .14); padding: 8px;
}
.rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rc-title { font-size: 12px; font-weight: 600; color: var(--text); }
.rc-nav { border: 0; background: none; font-size: 14px; color: var(--text-2); cursor: pointer; padding: 1px 6px; border-radius: 6px; }
.rc-nav:hover { background: #f3f5fa; color: var(--navy); }
.rc-week { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 10px; color: var(--text-3); text-align: center; margin-bottom: 2px; }
.rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.rc-d {
  border: 0; background: none; height: 23px; border-radius: 5px;
  font-size: 11px; color: var(--text); cursor: pointer; padding: 0;
}
.rc-d:hover { background: #eef2fb; }
.rc-d.empty { visibility: hidden; }
.rc-d.on { background: var(--navy); color: #fff; font-weight: 600; }
.rc-d.after { background: #e8eefc; color: var(--navy); }
.rc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.rc-clear { border: 0; background: none; color: #d33b3b; font-size: 11px; cursor: pointer; padding: 0; }
.rc-tip { font-size: 10px; color: var(--text-3); }

/* ==========================================================================
   第 35 轮新增样式
   ========================================================================== */

/* ---- 检索行（第 36 轮：去标题文字，控件自带说明；高度加高防截断）
        第 38 轮：下拉宽度自适应内容，修复「全部获取人」等文字显示不全 ---- */
.ld-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.lf-item { display: flex; flex-direction: column; }
.lf-item .select, .lf-item .search-box input { height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
/* 第 41 轮修复：上下 padding 挤掉内容区导致下拉文字被裁切（只露半截），改为 0 上下内边距由高度撑起 */
.lf-item .select { width: auto; min-width: 104px; max-width: 240px; }
.ld-filters .btn { height: 34px; }
/* R53：同排右侧按钮组（批量分配 / 转公海 / 批量删除 / 列表设置 / 导入导出）靠右放置 */
.ld-filters .ld-right { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* 🔴 R78 #1：R77 的「批量操作行 / 全选勾选框」已整体移除 —— 批量按钮回到线索列表标题行右侧。 */

/* ---- 悬浮二级联动 ---- */
.cf { position: relative; display: inline-block; width: 100%; }
.cf-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; }
.cf-btn.ph { color: #9aa3b4; }
.cf-arrow { font-style: normal; color: #9aa3b4; font-size: 11px; }
.cf-pop { display: none; position: absolute; top: 42px; left: 0; z-index: 60; width: 240px; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 32px rgba(15,23,42,.14); padding: 6px; }
.cf-pop.show { display: block; }
.cf-pop-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); padding: 4px 6px 8px; border-bottom: 1px solid #f2f4f8; margin-bottom: 4px; }
.cf-back { border: 0; background: none; color: var(--navy); font-size: 12.5px; cursor: pointer; padding: 0; }
.cf-pop-list { display: flex; flex-direction: column; }
.cf-opt { padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.cf-opt:hover { background: #f3f5fa; }
.cf-opt.on { color: var(--navy); font-weight: 600; }
.cf-opt .cf-has { font-style: normal; color: #b9c0cf; }
.cf-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.cf-pop-input { display: flex; gap: 8px; padding: 6px; }
.cf-pop-input .input { flex: 1; }

/* ---- 意向多选胶囊 ---- */
.ic-box { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; min-height: 46px; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; background: #fff; transition: all .15s; }
.ic-chip:hover { border-color: var(--navy); color: var(--navy); }
.ic-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---- 关联项目联动下拉 ---- */
.pd { position: relative; width: 100%; }
.pd-btn { width: 100%; min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left; }
.pd-btn.ph { color: #9aa3b4; }
.pd-btn .cf-arrow { margin-left: auto; }
.pd-chip { padding: 3px 9px; border-radius: 999px; background: #eef2fb; color: var(--navy); font-size: 12px; white-space: nowrap; }
.pd-pop { display: none; position: absolute; top: 42px; left: 0; z-index: 60; width: 320px; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 32px rgba(15,23,42,.14); padding: 6px; }
.pd-pop.show { display: block; }
.pd-group { margin-bottom: 4px; }
.pd-cat { font-size: 11.5px; color: var(--text-3); padding: 6px 8px 2px; }
/* R77 #5：关联项目下拉**列表内**的搜索框（非按钮/输入框内搜索） */
.pd-search { position: sticky; top: -6px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 6px 8px; margin: -6px -6px 4px; background: #fff; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.pd-search-input { flex: 1; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--text); outline: none; }
.pd-search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 138, .08); }
.pd-search-clear { flex-shrink: 0; border: none; background: transparent; color: var(--text-3); font-size: 12px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.pd-search-clear:hover { background: #eef1f7; color: var(--text); }
.pd-sub { margin-left: 6px; font-size: 11.5px; color: var(--text-3); }
.pd-hint { padding: 6px 8px 2px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--line); margin-top: 4px; }

/* ---- 跟进记录版面（第 35 轮重做）---- */
.fu-scroll { max-height: 320px; overflow-y: auto; border-top: 1px solid #f2f4f8; }
/* 第 39 轮：每条跟进记录之间用明显的虚化分隔符隔开 */
.fu-item { padding: 12px 8px; border-bottom: 1px dashed #dbe2ee; }
.fu-item:last-child { border-bottom: 0; }
.fu-r1 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.fu-staff { font-size: 13px; font-weight: 600; color: var(--text); }
/* 第 45 轮：C 端重复电话自动生成的记录，「跟进人 = 用户登记」红色标识 */
.fu-user { color: #d33b3b; font-weight: 700; }
.fu-time { font-size: 12px; color: var(--text-3); }
.fu-note2 { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 4px; white-space: pre-line; }
.fu-lines { font-size: 12.5px; color: var(--text-2); line-height: 1.9; white-space: pre-line; }
.fu-form { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fafbfd; }
.fu-form-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.fu-title small { font-weight: 400; color: var(--text-3); margin-left: 6px; }

/* ---- 跟进状态附加项（紧凑双列）---- */
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 10px 12px; background: #f8f9fc; border-radius: 8px; margin-bottom: 10px; }
.sf-cell { display: flex; flex-direction: column; gap: 5px; }
/* 🔴 R88 #2：label 显式给定行高 / 最小高度 —— 修复「退费目标展示模块 *」文字被裁切（显示不全） */
.sf-cell > label { font-size: 12px; line-height: 18px; min-height: 18px; color: var(--text-2); }
.sf-cell .input, .sf-cell .select { height: 36px; }
/* 🔴 R88 #2：退费状态下栅格扩为三列 —— 退费日期 | 退费金额（元） | 退费目标展示模块。
   原实现（R86、R87 #8）把「退费目标展示模块」作为 .sf-extra 的 flex 子项、flex:1 1 100%
   独占**下一行**；用户要求它排在「退费金额（元）」**右侧**，且该块在 flex 行里被拉伸，
   标签顶部被裁切、文字显示不全。现改为同一栅格内的第三个 cell（第三列加宽，
   保证 select 选项文字「跟进记录（剩余可退 10,000.00）」完整可见）。 */
/* 🔴 R92：「退费目标展示模块 *」独立选择器**已移除** —— 功能并入下方「跟进记录 / 跟进记录N」面板标签。
   状态区只保留一行说明（.sf-rp-hint）；退费状态下下方 Tab 加琥珀色外框，提示「点标签即选退费模块」。
   原 R88 #2 的 .sf-grid-rf 三列 / R89 #3 + R91 #2 的 .sf-rp-tabs/.sf-rp-tab/.sf-rp-remain 一并删除。 */
.sf-rp-hint { display: block; margin-top: 6px; }
.fu-tabs.rp-mode .fu-tab { border-color: #f0c36d; }
.fu-tabs.rp-mode .fu-tab:hover { background: #fffbeb; }

/* ---- 跟进状态列（第 36 轮：日期 / 状态文字两排）
        第 38 轮：已缴齐字号恢复原大（保留红色加粗），日期《换行》已缴齐：金额 ---- */
.st-line { font-size: 12px; line-height: 1.7; color: var(--text-2); }
.td-status .st-line { word-break: keep-all; }
.st-line .st-date, .st-paid .st-date { display: block; color: var(--text-3); font-size: 11.5px; line-height: 1.5; }
.st-line .st-txt, .st-paid .st-txt { display: block; }
/* 已缴齐（尾款补齐 / 已缴全款）：红色加粗（字号与普通状态行一致） */
.st-paid { color: #d33b3b; font-size: 12px; font-weight: 800; line-height: 1.7; }

/* ---- 列表行背景色（第 36 轮；R53 #25 改口径：已到访=浅绿 / 已报名=浅蓝 / 已成交=浅红 / 退费灰） ---- */
tr.tr-visit > td { background: #e8f7ec; }
tr.tr-enrolled > td { background: #e8f2fd; }
tr.tr-refund-part > td { background: #f1f2f4; }
tr.tr-refund-full > td { background: #dfe2e6; }
tr.tr-fullpaid > td { background: #fdecec; }
tr.tr-visit:hover > td, tr.tr-enrolled:hover > td, tr.tr-fullpaid:hover > td,
tr.tr-refund-part:hover > td, tr.tr-refund-full:hover > td { filter: brightness(0.985); }
/* R76 #9（用户修订）：收入明细行底色 ——
   部分退费=浅灰 / 全额退费=深灰 / 已报名=浅蓝 / 已成交=浅红 */
tr.fir-refund-part > td { background: #f1f2f4; }
tr.fir-refund-full > td { background: #dfe2e6; }
tr.fir-signup > td { background: #e8f2fd; }
tr.fir-deal > td { background: #fdecec; }
tr.fir-refund-part:hover > td, tr.fir-refund-full:hover > td,
tr.fir-signup:hover > td, tr.fir-deal:hover > td { filter: brightness(0.985); }
/* 🔴 R86b：冻结列跟随行底色 —— `.fz46-wrap td.fz46-cN { background:#fff }`（2 类 1 元素）
   优先级高于 `tr.fir-* > td`（1 类 2 元素）→ 横向滚动时左侧冻结区始终白底，
   与右侧着色区断裂（用户截图「前面被固定的几列没有正确着色」）。 */
.fz46-wrap tr.fir-refund-part > td.fz46-c1, .fz46-wrap tr.fir-refund-part > td.fz46-c2, .fz46-wrap tr.fir-refund-part > td.fz46-c3, .fz46-wrap tr.fir-refund-part > td.fz46-c4, .fz46-wrap tr.fir-refund-part > td.fz46-c4b, .fz46-wrap tr.fir-refund-part > td.fz46-c5, .fz46-wrap tr.fir-refund-part > td.fz46-c6 { background: #f1f2f4; }
.fz46-wrap tr.fir-refund-full > td.fz46-c1, .fz46-wrap tr.fir-refund-full > td.fz46-c2, .fz46-wrap tr.fir-refund-full > td.fz46-c3, .fz46-wrap tr.fir-refund-full > td.fz46-c4, .fz46-wrap tr.fir-refund-full > td.fz46-c4b, .fz46-wrap tr.fir-refund-full > td.fz46-c5, .fz46-wrap tr.fir-refund-full > td.fz46-c6 { background: #dfe2e6; }
.fz46-wrap tr.fir-signup > td.fz46-c1, .fz46-wrap tr.fir-signup > td.fz46-c2, .fz46-wrap tr.fir-signup > td.fz46-c3, .fz46-wrap tr.fir-signup > td.fz46-c4, .fz46-wrap tr.fir-signup > td.fz46-c4b, .fz46-wrap tr.fir-signup > td.fz46-c5, .fz46-wrap tr.fir-signup > td.fz46-c6 { background: #e8f2fd; }
.fz46-wrap tr.fir-deal > td.fz46-c1, .fz46-wrap tr.fir-deal > td.fz46-c2, .fz46-wrap tr.fir-deal > td.fz46-c3, .fz46-wrap tr.fir-deal > td.fz46-c4, .fz46-wrap tr.fir-deal > td.fz46-c4b, .fz46-wrap tr.fir-deal > td.fz46-c5, .fz46-wrap tr.fir-deal > td.fz46-c6 { background: #fdecec; }
/* R76 #34：统一列表宽度收缩（table-layout:fixed + 列内文字折行，避免收缩时两行被遮挡/重叠） */
.tb-wide { table-layout: fixed; }
/* R76 #10：账号头像缩略图 */
.ac-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; }
.ac-avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: #e5e9f2; color: #64748b; font-size: 12px; font-weight: 600; }
.tb-wide > thead > tr > th, .tb-wide > tbody > tr > td { overflow: hidden; text-overflow: ellipsis; }
.tb-wide > tbody > tr > td { word-break: break-word; white-space: normal; vertical-align: top; }
.tb-wide > tbody > tr > td.td-nowrap, .tb-wide > thead > tr > th.td-nowrap { white-space: nowrap; }

/* ---- 推广员标签（第 38 轮：名称上方居中、金色、模块缩小） ---- */
.promo-tag {
  display: block;
  width: fit-content;
  padding: 1px 8px;
  margin: 0 auto 3px;
  border-radius: 5px;
  background: linear-gradient(135deg, #dcbe74, #c6a04a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(122, 92, 22, .35);
  box-shadow: 0 1px 3px rgba(198, 160, 74, .35);
}

/* ---- 关联项目列：一个项目一行 ---- */
.td-proj .proj-name { font-size: 12.5px; line-height: 1.65; }

/* ---- 线索编辑：意向 / 关联项目联动卡 ---- */
.link-group {
  border: 1px solid #dbe4f6;
  border-left: 3px solid var(--navy);
  background: #f8faff;
  border-radius: 10px;
  padding: 12px 14px 4px;
  margin: 4px 0 14px;
}
.link-group .lg-head { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.link-group .lg-head small { font-weight: 400; color: var(--text-3); margin-left: 8px; font-size: 12px; }

/* ---- 跟进记录金额汇总行（第 36 轮） ---- */
.fu-sum { font-size: 13.5px; font-weight: 800; line-height: 1.6; padding: 6px 8px; border-radius: 6px; margin: 2px 0 8px; }
.fu-sum-dep { color: #b26205; background: #fdf1e2; }
.fu-sum-full { color: #d33b3b; background: #fdebec; }
/* 🔴 R87 #9：本模块有退费时的汇总行（部分退费：金额，剩余费用：金额 / 全额退费）—— 灰色系 */
.fu-sum-refund { color: #4b5563; background: #f3f4f6; }
/* 第 40 轮：跟进详情超长文本强制换行（word-break），配合 250 字上限 */
.fu-note2 { word-break: break-all; overflow-wrap: anywhere; }
.fu-lines { word-break: break-all; overflow-wrap: anywhere; }

/* ---- 第 40 轮：线索「等级」列（A 红 / B 蓝 / C 绿，加粗，字号与标题一致） ---- */
.grade-tag { font-size: 14px; font-weight: 800; }
.grade-tag.gd-a { color: #d93025; }
.grade-tag.gd-b { color: #1a56db; }
.grade-tag.gd-c { color: #188038; }
/* 第 43 轮：等级选择器（弹层标题**左侧**的三态胶囊，A 红 / B 蓝 / C 绿，选中加粗着色）
   替换原「标题后等级下拉」——原生 select 在标题里高度与文字显示不全，且无法给选项着色 */
.grade-pick { display: flex; align-items: center; gap: 4px; margin-right: 12px; flex-shrink: 0; }
.grade-pick .gp-label { font-size: 12.5px; color: var(--text-2); margin-right: 2px; }
.grade-pick .gp-chip {
  min-width: 30px; height: 28px; padding: 0 8px; line-height: 26px; text-align: center;
  border: 1px solid #e2e6ef; background: #fff; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #9aa3b4; font-family: inherit;
}
.grade-pick .gp-chip:hover { border-color: #c8d0e0; }
.grade-pick .gp-chip.gd-a.on { color: #fff; background: #d93025; border-color: #d93025; font-weight: 800; }
.grade-pick .gp-chip.gd-b.on { color: #fff; background: #1a56db; border-color: #1a56db; font-weight: 800; }
.grade-pick .gp-chip.gd-c.on { color: #fff; background: #188038; border-color: #188038; font-weight: 800; }
.grade-pick .gp-chip.gd-a.on, .grade-pick .gp-chip.gd-a:not(.on) { color: #d93025; }
.grade-pick .gp-chip.gd-b:not(.on) { color: #1a56db; }
.grade-pick .gp-chip.gd-c:not(.on) { color: #188038; }
.grade-pick .gp-chip.on { color: #fff !important; }

/* 第 43 轮：单日日期组件（替换原生 type="date"） */
.dcal { display: block; }
/* R61 #4：编辑页日历组件整体缩小一号 */
.dcal-btn { width: 100%; height: 30px; justify-content: space-between; font-size: 12px; background: #fff; padding: 0 8px; }
.dcal-btn .rcal-arrow { font-size: 11px; }
.dcal-btn.ph { color: #9aa3b4; }

/* 第 43 轮：线索列表「跟进人」列长姓名换行（.tag 默认 nowrap 会溢出） */
#ld-table td.td-assg .tag { white-space: normal; word-break: break-word; line-height: 1.45; text-align: center; }

/* 第 43 轮：成交明细「状态」列（已缴定金 / 已缴齐）—— 已缴齐红色加粗 */
.deal-st-dep { color: #b8860b; font-weight: 700; font-size: 12px; }
.deal-st-full { color: #d33b3b; font-weight: 800; font-size: 12px; }
/* R55 #3：部分退费的成交行 —— 上「部分退费：金额」下「余款：金额」 */
.deal-st-ref { color: #d33b3b; font-weight: 700; font-size: 12px; }
.deal-st-sub { color: var(--text-2, #7a7f87); font-weight: 600; }
.pk-head { display: flex; align-items: center; gap: 4px; }
.pk-head .pk-title { flex: 1; }
.pk-head .drawer-close { flex-shrink: 0; }

/* ---- 表头拖宽 ---- */
.th-in { display: flex; align-items: center; justify-content: space-between; gap: 4px; position: relative; }
.th-rz { position: absolute; right: -6px; top: 0; width: 10px; height: 100%; cursor: col-resize; z-index: 5; }
.th-rz::after { content: ''; position: absolute; right: 4px; top: 20%; height: 60%; width: 2px; background: transparent; border-radius: 2px; }
.th-rz:hover::after { background: var(--navy); }

/* ---- 列表设置 ---- */
.ls-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f2f4f8; }
.ls-row.off .ls-name { color: #b9c0cf; }
.ls-name { flex: 1; font-size: 13px; }
.ls-btns { display: flex; gap: 4px; }
.ls-btns .btn { padding: 0 8px; height: 26px; }

/* ---- 导入 / 导出弹窗 ---- */
.io-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
/* R64 #2：卡片数量不是 3 的整数倍时，最后一张平铺拉满整行，不留右侧空白
   R73 #15：「同步线索」卡片改为**标题在上、说明文字框在中间、按钮在下**（竖排）
   —— 原为 row + align-items:flex-end（按钮挤在右侧），与用户截图不符。
   🔴 R89 #4：「同步线索」标题与「立即同步线索」按钮**居中**（原按钮 align-self:flex-start 左对齐，
   整块内容随文字左对齐 → 用户截图要求居中）。title / 说明 / 按钮三行统一水平居中。 */
.io-card.span-all { grid-column: 1 / -1; align-items: center; text-align: center; }
.io-card.span-all .io-d { flex: 0 1 auto; text-align: center; }
.io-card.span-all .btn { align-self: center; }
.io-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.io-t { font-size: 13.5px; font-weight: 600; }
.io-d { font-size: 12px; color: var(--text-3); line-height: 1.7; flex: 1; }
.io-report { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.io-line { font-size: 13px; }
.io-line b { font-size: 15px; margin: 0 2px; }
.io-line.ok b { color: #178a50; }
.io-line.warn b { color: #b7791f; }
.io-line.err b { color: #c0392b; }

/* ---- 评估配置行：紧凑图标操作组 ---- */
.as-ops { display: flex; gap: 4px; align-items: center; }
.as-op { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 13px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.as-op:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.as-op:disabled { opacity: .35; cursor: default; }
.as-op.danger:hover:not(:disabled) { border-color: #c0392b; color: #c0392b; background: #fdf3f2; }

/* ---- 悬浮弹层在弹窗内也要置顶 ---- */
.pk-box .cf-pop, .pk-box .pd-pop { z-index: 80; }

/* ==========================================================================
   第 38 轮新增样式
   ========================================================================== */

/* ---- 线索 / 公海列表：淡淡虚化的行列分割线 ---- */
#ld-table th, #ld-table td, #pool-table th, #pool-table td {
  border-right: 1px dashed #e9edf4;
  border-bottom: 1px dashed #e9edf4;
}
#ld-table th:last-child, #ld-table td:last-child,
#pool-table th:last-child, #pool-table td:last-child { border-right: none; }
#ld-table tbody tr:last-child td, #pool-table tbody tr:last-child td { border-bottom: none; }

/* ---- 关联项目已选 chip 的 × ---- */
.pd-chip { display: inline-flex; align-items: center; gap: 4px; }
.pd-chip .pd-x { font-style: normal; cursor: pointer; color: #8a94a6; font-size: 11px; padding: 0 1px; border-radius: 50%; }
.pd-chip .pd-x:hover { color: #d33b3b; }

/* ---- 第 39 轮：线索「跟进大板块」（意向 + 关联项目 / 线索状态 / 跟进详情 / 跟进记录） ----
   原「强制关联项目独立弹窗」（.pk-mask 那一套的专用浮层）已按用户要求删除 */
.lead-block {
  border: 1px solid #dbe4f6;
  border-left: 3px solid var(--navy);
  background: #f8faff;
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 6px 0 4px;
}
.lead-block .lb-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.lead-block .lb-title { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.lead-block .lb-head small { font-weight: 400; color: var(--text-3); font-size: 12px; }

/* 展示模块 Tab 分页符 */
.fu-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.fu-tab {
  border: 1px solid #dbe4f6; background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; line-height: 1.6;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.fu-tab:hover { border-color: var(--navy); color: var(--navy); }
.fu-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.fu-tab.locked { border-style: dashed; color: #98a2b6; background: #f4f6fa; }
.fu-tab.locked.on { background: #8a94a6; border-color: #8a94a6; color: #fff; }
.fu-tab-lock { font-style: normal; margin-left: 4px; font-size: 10.5px; }
.fu-tab-add { border-style: dashed; border-color: #b9c8ea; color: var(--navy); }
.fu-tab-add:hover { background: #eef3ff; }

/* 锁死提示条 */
.fu-lock-bar {
  margin: 8px 0; padding: 8px 10px; border-radius: 8px;
  background: #fdf1e2; border: 1px solid #f3d8ae; color: #a35c06;
  font-size: 12.5px; line-height: 1.6;
}

/* 每条记录里的「意向方向 / 关联项目」上下文行 */
.fu-ctx { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 4px; }
.fu-ctx .fc-k {
  display: inline-block; font-size: 11px; color: var(--navy);
  background: #eef3ff; border-radius: 4px; padding: 0 5px; margin-right: 4px;
}
.fu-ctx .fc-sep { color: #c8cfdd; margin: 0 6px; }

.fu-empty-new { border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
.fu-form-btns .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   第 41 轮：线索列表冻结列（复选框 + 「来源」及其左侧）+ 日期两行
   ========================================================================== */
#ld-table th.ld-fz, #ld-table td.ld-fz { position: sticky; z-index: 5; }
#ld-table th.ld-fz { z-index: 6; }
#ld-table td.ld-fz { background: #fff; }
/* R53 修复：行底色映射到冻结列时，规则必须**同带 #ld-table 前缀**：
   `#ld-table td.ld-fz` 含 id 选择器，其特异性(1,1,1)高于原先仅用 class 的
   `tr.tr-xxx > td.ld-fz`(0,2,2)，会把整列刷白 —— 线上表现为
   「前半部分冻结列不着色」「已成交行看着没颜色」。同时置于 hover 规则之后，
   保证同特异性下后者胜出。 */
#ld-table tbody tr:hover > td.ld-fz { background: #fafbfe; }
#ld-table tbody tr.tr-warn > td.ld-fz { background: #fff6f6; }
#ld-table tbody tr.tr-warn:hover > td.ld-fz { background: #ffefef; }
#ld-table tbody tr.tr-visit > td.ld-fz { background: #e8f7ec; }
#ld-table tbody tr.tr-enrolled > td.ld-fz { background: #e8f2fd; }
#ld-table tbody tr.tr-refund-part > td.ld-fz { background: #f1f2f4; }
#ld-table tbody tr.tr-refund-full > td.ld-fz { background: #dfe2e6; }
#ld-table tbody tr.tr-fullpaid > td.ld-fz { background: #fdecec; }
#ld-table .ld-fz-end { box-shadow: 4px 0 8px -2px rgba(15, 23, 42, 0.12); }
.dt-year { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.dt-md { font-weight: 600; line-height: 1.35; }
/* 🔴 R77 #3：收入明细「是否退费」列 —— 年月日一行 + 部分/全额退费一行 */
.fi-rf-date { font-size: 12px; color: var(--text-2, #4b5563); line-height: 1.4; }
.fi-rf-kind { font-size: 12px; font-weight: 700; line-height: 1.4; }
.fi-rf-kind.part { color: #c2681a; }
.fi-rf-kind.full { color: #d33b3b; }
/* 第 46 轮：① 表头行冻结（上下滚动时标题行固定）——冻结列表头 z-index 更高；
   ② 已缴全款行冻结列也保留底色（原先丢失着色） */
#ld-table thead th { position: sticky; top: 0; z-index: 4; background: #fff; box-shadow: 0 1px 0 var(--line); }
#ld-table thead th.ld-fz { z-index: 7; }
tr.tr-fullpaid > td { background: #fdecec; }
#ld-table tbody tr.tr-fullpaid > td.ld-fz { background: #fdecec; }
/* 第 46 轮：联系电话两行（家长电话在上、学生电话在下） */
.ld-phones { line-height: 1.45; }
.ld-phones .ph-p { display: block; font-weight: 600; }
.ld-phones .ph-s { display: block; color: var(--text-2); font-size: 12px; }
.ld-phones .ph-k { display: inline-block; font-size: 10.5px; color: var(--text-3); margin-right: 3px; }

/* ==========================================================================
   第 46 轮：合作伙伴 / 财务三模块 —— 通用冻结（表头行 + 前 4 列）
   ========================================================================== */
.fz46-wrap table { border-collapse: separate; border-spacing: 0; }
.fz46-wrap thead th { position: sticky; top: 0; z-index: 4; background: #fff; box-shadow: 0 1px 0 var(--line); }
.fz46-wrap td.fz46-c1, .fz46-wrap td.fz46-c2, .fz46-wrap td.fz46-c3, .fz46-wrap td.fz46-c4,
.fz46-wrap th.fz46-c1, .fz46-wrap th.fz46-c2, .fz46-wrap th.fz46-c3, .fz46-wrap th.fz46-c4 {
  position: sticky; z-index: 5; background: #fff;
}
.fz46-wrap td.fz46-c1 { left: 0; }
.fz46-wrap td.fz46-c2 { left: 110px; }
.fz46-wrap td.fz46-c3 { left: 230px; }
.fz46-wrap td.fz46-c4 { left: 350px; }
.fz46-wrap thead th.fz46-c1 { left: 0; z-index: 7; }
.fz46-wrap thead th.fz46-c2 { left: 110px; z-index: 7; }
.fz46-wrap thead th.fz46-c3 { left: 230px; z-index: 7; }
.fz46-wrap thead th.fz46-c4 { left: 350px; z-index: 7; }
.fz46-c1, .fz46-c2, .fz46-c3, .fz46-c4 { box-shadow: 4px 0 8px -2px rgba(15, 23, 42, 0.10); }
/* R58 #6：成本明细专用冻结列（首列复选框 36px → 各列 left 顺延），不影响收入明细的 fz46-* */
.fz46-wrap td.fcz-1, .fz46-wrap td.fcz-2, .fz46-wrap td.fcz-3, .fz46-wrap td.fcz-4,
.fz46-wrap th.fcz-1, .fz46-wrap th.fcz-2, .fz46-wrap th.fcz-3, .fz46-wrap th.fcz-4 {
  position: sticky; z-index: 5; background: #fff;
}
.fz46-wrap td.fcz-1 { left: 36px; }
.fz46-wrap td.fcz-2 { left: 146px; }
.fz46-wrap td.fcz-3 { left: 266px; }
.fz46-wrap td.fcz-4 { left: 386px; }
.fz46-wrap thead th.fcz-1 { left: 36px; z-index: 7; }
.fz46-wrap thead th.fcz-2 { left: 146px; z-index: 7; }
.fz46-wrap thead th.fcz-3 { left: 266px; z-index: 7; }
.fz46-wrap thead th.fcz-4 { left: 386px; z-index: 7; }
.fcz-1, .fcz-2, .fcz-3, .fcz-4 { box-shadow: 4px 0 8px -2px rgba(15, 23, 42, 0.10); }
tr.fin-total td.fcz-1, tr.fin-total td.fcz-2, tr.fin-total td.fcz-3, tr.fin-total td.fcz-4 {
  z-index: 6; background: #f4f6fb;
}
.pt-name46 {
  display: inline-block; border-radius: 999px; padding: 1px 9px; margin: 2px 4px 2px 0;
  font-size: 12.5px; cursor: pointer; font-weight: 600; color: var(--text);
}
.pt-name46:hover { filter: brightness(0.95); }
/* R60 #5：四计数与表头「已到访 / 已报名 / 已成交 / 已退费」上下对齐 ——
   表头与数据行同构（去「/」分隔，space-between 四等分），同一列宽下逐项对齐 */
.pt-stats46 { font-size: 13px; margin-bottom: 2px; display: flex; align-items: stretch; justify-content: space-between; padding: 0; gap: 4px; }
/* 🔴 R78 #4：四个数字的点击热区扩大 —— 每个数字独占 1/4 宽度、上下留白，
   避免点数字弹窗时误触到整行（进而打开合作方详情页）。 */
.pt-stats46 .pt-num46 {
  flex: 1 1 0; min-width: 0; text-align: center; cursor: pointer;
  font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px;
  padding: 8px 4px; margin: -4px 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px;
  transition: background .12s;
}
.pt-stats46 .pt-num46:hover { opacity: .75; background: rgba(15,23,42,.06); }
/* 表头四标签同宽对齐（不可点击，无 hover 底色） */
.pt-stats46 .pt-hd46 { cursor: default; text-decoration: none; font-weight: 600; color: var(--text-2, #4b5563); }
.pt-stats46 .pt-hd46:hover { background: none; opacity: 1; }
.pt-names46 { max-width: 420px; line-height: 1.5; }

/* ===== 第 42 轮：权限管理矩阵 ===== */
.perm-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.perm-seg .chip { cursor: pointer; opacity: .55; }
.perm-seg .chip.on { opacity: 1; }
#ld-table tr.perm-sub > td:first-child { padding-left: 26px; }
tr.perm-sub > td { background: #fbfbfd; color: var(--text-3, #909399); }
.pwd-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pwd-row .input { flex: 1; min-width: 0; }
.mono-note { font-size: 12.5px; color: var(--text-3, #909399); }

/* ==========================================================================
   第 47 轮：通用列表能力 —— 表头冻结 / 分页器 / 状态按钮 / 顺序内联编辑
   ========================================================================== */
/* 表头行冻结（上下滚动时标题行固定） */
/* R59：列表高度自适应视口（原先写死 560px，高分辨率屏下方大片留白） */
.tb-freeze { max-height: calc(100vh - 320px); overflow: auto; }
.tb-freeze > table { border-collapse: separate; border-spacing: 0; }
.tb-freeze thead th { position: sticky; top: 0; z-index: 4; background: #fafbfe; box-shadow: 0 1px 0 var(--line); }

/* 分页器 */
.pager {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2); background: #fff;
}
.pager .pg-total { margin-right: auto; color: var(--text-3); }
.pg-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 12.5px; cursor: pointer; color: var(--text-2);
  font-family: inherit; line-height: 1.5;
}
.pg-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-num { min-width: 30px; text-align: center; padding: 4px 6px; }
.pg-num.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pg-dots { color: var(--text-3); padding: 0 2px; }
.pg-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--text-3); }
.pg-input {
  width: 56px; padding: 3px 6px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12.5px; text-align: center; font-family: inherit;
}

/* 状态切换按钮（点击直接改状态，无需进编辑页） */
.st-toggle {
  border: 1px solid transparent; border-radius: 6px; padding: 3px 10px;
  font-size: 12px; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s;
}
.st-toggle.on { background: #e3f6ec; color: #12805c; }
.st-toggle.on:hover { background: #d4f0e1; }
.st-toggle.off { background: #eef0f5; color: #5a6377; }
.st-toggle.off:hover { background: #e4e7ee; }
.st-toggle[disabled] { opacity: .5; cursor: not-allowed; }

/* 顺序列内联编辑 */
.td-sort { cursor: pointer; }
.td-sort:hover { background: #eef3ff; }
.sort-w { color: var(--text-3); font-size: 11px; margin-left: 4px; }
.sort-input {
  width: 62px; padding: 3px 6px; border: 1px solid var(--navy);
  border-radius: 6px; font-size: 12.5px; text-align: center; font-family: inherit;
}

/* ==========================================================================
   第 47 轮：财务模块 —— 年/月切换 Tab + 月度/年度合计面板
   ========================================================================== */
.fin-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff;
}
.fin-tab {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer;
  font-family: inherit; line-height: 1.6; white-space: nowrap;
}
.fin-tab em { font-style: normal; margin-left: 5px; color: var(--text-3); font-size: 11px; }
.fin-tab:hover { border-color: var(--navy); color: var(--navy); }
.fin-tab.cur { border-style: dashed; border-color: #b9c8ea; }
.fin-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.fin-tab.on em { color: rgba(255, 255, 255, 0.82); }

.fin-summary { border-top: 1px solid var(--line); padding: 14px 16px 18px; background: #fbfcff; }
.fs-head { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.fs-head b { color: #d33b3b; margin-left: 6px; }
.fs-block { margin-bottom: 10px; }
.fs-title {
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  padding-left: 8px; border-left: 3px solid var(--navy); margin-bottom: 6px;
}
.fs-title b { color: #d33b3b; margin-left: 8px; }
.fs-items { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-item {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid #e6ebf4; border-radius: 8px;
  padding: 3px 10px; font-size: 12.5px; color: #d33b3b; font-weight: 600;
}
.fs-item i { font-style: normal; color: var(--text-2); font-weight: 400; }

/* ---------------------------- 第 48 轮：财务明细改版 ---------------------------- */
/* 检索栏左组（搜索框 + 下拉）：置于面板头最左；下拉宽度自适应避免文字截断 */
/* R51 修复：检索下拉文字被截断 / 垂直位置偏移 ——
   与左侧 34px 搜索框等高，宽度按文字自适应（不再压到 88~170px 区间） */
.pt-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.pt-left .select {
  width: auto; min-width: 0; max-width: none;
  height: 34px; padding: 0 26px 0 10px;
  font-size: 12.5px; line-height: 34px;
}
/* 年下拉与月 Tab 同排、置于最左 */
.fin-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0; }

/* R61 #11：财务看板 —— 周期分段开关 + 年/月/季连体下拉（合并为一条检索栏） */
/* R65 #3：财务看板检索栏文字看不全 —— .fb-picks .select 之前只给了 height:30px，
   但基础 .select 带 padding:10px 13px（全局 border-box），内容区只剩 8px → 文字被裁掉。
   现与 .pt-left .select / .fin-bar .select 同口径：34px 高 + 去掉上下内边距 + line-height 撑开文字。 */
.fb-switch { display: inline-flex; align-items: center; height: 34px; background: #eef1f7; border-radius: 8px; padding: 3px; gap: 2px; }
.fb-switch .fb-seg { padding: 5px 14px; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: #5b6472; border: none; background: transparent; line-height: 1.4; }
.fb-switch .fb-seg:hover { color: var(--navy); }
.fb-switch .fb-seg.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14); }
.fb-picks { display: inline-flex; align-items: center; margin-left: 8px; }
/* R66 #2：月度分页「年」下拉文字显示不全 —— 基础 .select 的 width:100% 在 .fb-picks（inline-flex）
   容器里循环解析被压窄；与 .fin-bar .select（成本 / 收入明细检索栏）同口径：width:auto + min-width:96px。 */
.fb-picks .select { height: 34px; padding: 0 26px 0 10px; font-size: 12.5px; line-height: 34px; border-radius: 0; margin-left: -1px; position: relative; width: auto; min-width: 96px; }
.fb-picks .select:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.fb-picks .select:last-child { border-radius: 0 6px 6px 0; }/* R52 #2：「2026 年」文字被截断 —— 年下拉同 .pt-left .select 口径（固定 34px 高、去掉上下 10px 内边距） */
.fin-bar .select {
  height: 34px; padding: 0 26px 0 10px;
  font-size: 12.5px; line-height: 34px; width: auto; min-width: 96px;
}
.fin-bar .fin-tabs { flex: 1; min-width: 0; padding: 6px 0; border-bottom: none; background: transparent; }
/* 列表底部固定「合计行」（冻结、不可编辑、可点击看详情） */
tr.fin-total td {
  position: sticky; bottom: 0; z-index: 2;
  background: #f4f6fb; border-top: 2px solid var(--line);
  font-weight: 700; color: #1e3a8a; cursor: pointer; white-space: nowrap;
}
/* 行详情 / 合计详情弹窗内的键值行 */
.dt-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.dt-k { width: 110px; color: var(--text-3); flex: none; }
.dt-v { flex: 1; white-space: pre-wrap; word-break: break-all; }

/* ===== R52 #11：表头拖拽调宽热区 ===== */
.colrz { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 6; }
.colrz::after { content: ''; display: block; width: 2px; height: 56%; margin: 22% auto 0; border-radius: 1px; background: transparent; }
thead th:hover > .colrz::after { background: #94a3b8; }

/* ==================== R56 ==================== */
/* #1 线索列表状态列顶部的「展示模块名」小字 */
.st-panel { font-size: 11px; color: var(--text-3, #8a90a0); margin-bottom: 2px; }
.st-panel::before { content: '『'; }
.st-panel::after { content: '』'; }
/* #2 重命名入口移到「跟进记录」标题本身 */
.fu-title { cursor: pointer; }
.fu-title:hover { color: var(--navy, #1e3a8a); }
.fu-title:hover small { text-decoration: underline; }
/* #4 展示模块「删除」按钮（标题右侧小字右边） */
.fu-pdel {
  margin-left: 10px; padding: 1px 9px; font-size: 11.5px; border-radius: 999px;
  border: 1px solid #f3c1c1; background: #fff5f5; color: #d33b3b; cursor: pointer;
}
.fu-pdel:hover { background: #fde3e3; }
/* #12 面板内记录翻页 */
.fu-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0 2px; }
.fu-pager-info { font-size: 12px; color: var(--text-2, #7a7f87); }
/* #10 收入明细：学生姓名 / 联系电话 冻结列（c5 / c6） */
/* R58 #4：「收款项目」列冻结（c4b）；学生姓名 / 电话（c5 / c6）顺延。
   R65 #1：偏移按**现值**校正为 450 / 600 / 710（原 470/620/730 是按旧列宽写死的，
   与现行声明列宽 90+120+120+120+150+110 不符 → 未跑 JS 校正前会出现叠压）。 */
.fz46-wrap td.fz46-c4b, .fz46-wrap th.fz46-c4b { position: sticky; z-index: 5; background: #fff; }
.fz46-wrap td.fz46-c4b { left: 450px; }
.fz46-wrap thead th.fz46-c4b { left: 450px; z-index: 7; }
.fz46-c4b { box-shadow: 4px 0 8px -2px rgba(15, 23, 42, 0.10); }
.fz46-wrap td.fz46-c5, .fz46-wrap td.fz46-c6,
.fz46-wrap th.fz46-c5, .fz46-wrap th.fz46-c6 {
  position: sticky; z-index: 5; background: #fff;
}
.fz46-wrap td.fz46-c5 { left: 600px; }
.fz46-wrap td.fz46-c6 { left: 710px; }
.fz46-wrap thead th.fz46-c5 { left: 600px; z-index: 7; }
.fz46-wrap thead th.fz46-c6 { left: 710px; z-index: 7; }
.fz46-c5, .fz46-c6 { box-shadow: 4px 0 8px -2px rgba(15, 23, 42, 0.10); }
/* R65 #1：收入明细（.fi-wrap）与合作伙伴共用 .fz46-c1~c4 类名但声明列宽不同
   （收入明细 90/120/120/120，合作伙伴 110/120/120/120）—— 用更具体的选择器为收入明细单独定偏移，
   保证 JS 校正前的那一帧也不会出现冻结列与相邻列叠压。 */
.fz46-wrap.fi-wrap td.fz46-c1, .fz46-wrap.fi-wrap th.fz46-c1 { left: 0; }
.fz46-wrap.fi-wrap td.fz46-c2, .fz46-wrap.fi-wrap th.fz46-c2 { left: 90px; }
.fz46-wrap.fi-wrap td.fz46-c3, .fz46-wrap.fi-wrap th.fz46-c3 { left: 210px; }
.fz46-wrap.fi-wrap td.fz46-c4, .fz46-wrap.fi-wrap th.fz46-c4 { left: 330px; }
/* R58 #4：收入明细「成交记录」两行一行组（日期一行、金额一行；无加粗无着色） */
.fi-deal-line { line-height: 1.5; margin-bottom: 4px; font-size: 12px; }
.fi-deal-line:last-child { margin-bottom: 0; }
/* #11 合计行冻结单元格：背景 + 层级盖过正文（原 c1..c4 规则的白底会顶掉合计底色） */
tr.fin-total td.fz46-c1, tr.fin-total td.fz46-c2, tr.fin-total td.fz46-c3,
tr.fin-total td.fz46-c4, tr.fin-total td.fz46-c4b, tr.fin-total td.fz46-c5, tr.fin-total td.fz46-c6 {
  z-index: 6; background: #f4f6fb;
}
/* #13 批量操作组：贴在「线索列表 + 小字」右侧（列表设置 / 导入导出随「＋ 新建线索」） */
.panel-head .ld-head-ops { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; vertical-align: middle; }
/* 左侧目录栏收放（收起后只留图标） */
.sidebar { position: sticky; }
.side-toggle {
  position: absolute; top: 50%; transform: translateY(-50%); right: -12px; z-index: 40;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line, #e5e8f0); background: #fff; color: var(--text-2, #7a7f87);
  cursor: pointer; font-size: 13px; line-height: 22px; padding: 0; text-align: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.side-toggle:hover { color: var(--navy, #1e3a8a); }
body.side-min .sidebar { width: 58px; }
body.side-min .brand { padding: 18px 7px; justify-content: center; }
body.side-min .brand-text, body.side-min .nav-group, body.side-min .me-info { display: none; }
body.side-min .nav-item { padding: 10px 0; justify-content: center; }
body.side-min .nav-item span:not(.nav-icon) { display: none; }
body.side-min .nav-icon { margin-right: 0; }
body.side-min .nav-badge { display: none; }
body.side-min .sidebar-foot { padding: 12px 6px; }
body.side-min .me { justify-content: center; margin-bottom: 10px; }
/* 收起态：退出登录分「退出 / 登录」两行（避免「退出登 / 录」乱断行） */
body.side-min .logout { font-size: 11px; padding: 6px 2px; line-height: 1.7; }
/* R58 #2：收放按钮展开 / 收起两态都垂直居中（用户 1019 追加指正） */

/* R57 #21 头像：侧栏圆框（点框即可更换自己的头像，收起目录后依然可见） */
.me-avatar { cursor: pointer; overflow: hidden; transition: box-shadow .15s; }
.me-avatar:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.me-avatar-img { width: 34px; height: 34px; display: block; border-radius: 50%; object-fit: cover; background: #fff; }

/* R57 #21 头像编辑控件（员工 / 推广员）：圆形预览 + 上传 / 清除，无「素材库」入口 */
.av-edit { display: flex; align-items: center; }
.av-preview {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f7;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.12);
}
.av-preview img { width: 72px; height: 72px; display: block; border-radius: 50%; object-fit: cover; }
.av-empty {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  font-size: 12px; color: #9aa3b4;
  border: 1px dashed #d7dced; border-radius: 50%; box-sizing: border-box;
}
.av-btns { flex: 1; min-width: 0; margin-left: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-btns .form-hint { flex-basis: 100%; margin: 0; }


/* ==========================================================================
   R70 #6：全站列表「收窄 / 拉窄后文字压到相邻列」统一治理
   ① 所有列表单元格裁切水平溢出 —— 长文本不再溢出到相邻列上（根治「重叠」）；
   ② 单行单元格（.td-nowrap）加省略号，配合 initClipGuard 自动补 title（悬浮看全文）；
   ③ 多行单元格（含 <br> / .md-status）保持换行，只裁切不省略；
   ④ 冻结列强制不透明底 + 正确层级，横向滚动时不透出下层内容。
   ========================================================================== */
.table-wrap td,
.table-wrap th,
.tb-freeze > table td,
.tb-freeze > table th,
.modal-table td,
.modal-table th { overflow: hidden; }

.table-wrap td.td-nowrap,
.table-wrap th.td-nowrap,
.tb-freeze > table td.td-nowrap,
.modal-table td.td-nowrap { white-space: nowrap; text-overflow: ellipsis; }

/* 允许换行的单元格：保留多行（状态金额明细 / 日期两行 / 四数字统计位） */
.tb-wide td.td-wrap,
.tb-wide .md-status,
.fz46-wrap td.td-wrap { white-space: normal; text-overflow: clip; }

/* 冻结列：不透明底 + 层级，避免滚动时透出下层文字 */
.fz46-wrap td.fz46-c1, .fz46-wrap td.fz46-c2, .fz46-wrap td.fz46-c3, .fz46-wrap td.fz46-c4,
.fz46-wrap td.fz46-c4b, .fz46-wrap td.fz46-c5, .fz46-wrap td.fz46-c6,
.fz46-wrap td.fcz-1, .fz46-wrap td.fcz-2, .fz46-wrap td.fcz-3, .fz46-wrap td.fcz-4,
.tb-freeze td.ld-fz { background: #fff; }
.fz46-wrap tr.pt-row-alt td.fz46-c1, .fz46-wrap tr.pt-row-alt td.fz46-c2,
.fz46-wrap tr.pt-row-alt td.fz46-c3, .fz46-wrap tr.pt-row-alt td.fz46-c4 { background: #fafbfe; }

/* 金额 / 数字列：右对齐更易读，且收窄时优先裁切左侧长文本 */
.td-money, .td-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   R71 #2：列表伸缩 / 重叠治理（续）
   ① **金额列不省略** —— 财务表的金额是核心信息，被裁成「¥32…」不可接受；
   ② **操作列 / 详情列永不裁切** —— 删除 / 编辑 / 详情按钮必须完整可见；
   ③ **列表高度按屏幕自适应** —— 由 JS 写入 --tbl-h，底部不再留大片空白。
   ========================================================================== */
/* 金额与冻结列内的数字：允许内容撑开，不做省略号 */
.fz46-wrap td.td-strong,
.fz46-wrap td[class*="td-nowrap"]:not(.td-muted) { text-overflow: clip; }

/* 操作列 / 详情列：强制不裁切（含按钮）
   由 chart-ops / fi-ops / fc-ops / ld-ops 等类或最后一列自动识别 */
.table-wrap td:last-child,
.table-wrap th:last-child,
.tb-freeze > table td:last-child { overflow: visible; text-overflow: clip; }
.table-wrap td:last-child .btn,
.table-wrap td:last-child button { white-space: nowrap; }

/* ==========================================================================
   R76 #2：合作伙伴 新增 / 编辑 弹窗两列、三列栅格
   ① 合作方名称 + 简称 同排；② 合作方对接人 + 签约对接人 同排；
   ③ 电话 + 微信号 同排；④ 是否签约 + 合作意向 + 佣金级别 同排。
   ========================================================================== */
.pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
.pf-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; align-items: start; }
.pf-row2 .pf-cell, .pf-row3 .pf-cell { min-width: 0; }
.pf-row2 .field, .pf-row3 .field { margin-bottom: 0; }
@media (max-width: 720px) {
  .pf-row2, .pf-row3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   R76 #30：公海线索详情弹窗（基础信息 + 完整跟进记录）
   ========================================================================== */
.dt-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 2px 0 6px; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 720px) { .dt-grid { grid-template-columns: 1fr; } }
