:root {
  --bg: #f4f6f9;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --line: rgba(16, 24, 40, .09);
  --line2: rgba(16, 24, 40, .05);
  --text: #131a26;
  --muted: #5b6577;
  --dim: #8a93a3;
  --gold: #a8843c;
  --gold-hi: #8a6d2f;
  --red: #c8102e;
  --green: #159a55;
  --orange: #d9741d;
  --yellow: #b8860b;
  --blue: #2563eb;
  --shadow: 0 1px 2px rgba(16,24,40,.040), 0 8px 24px rgba(16,24,40,.040);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(168,132,60,.07), transparent 60%),
    radial-gradient(700px 380px at 100% -6%, rgba(200,16,46,.045), transparent 58%),
    var(--bg);
  color: var(--text);
  font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(16,24,40,.160); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,132,60,.45); }

/* ---------- 登录 ---------- */
.login-wrap { display: grid; place-items: center; height: 100vh; padding: 24px; }
.login-card {
  width: 380px; padding: 36px 32px; border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,24,40,.080), 0 24px 60px rgba(16,24,40,.080);
}
.login-card .crest {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(211,177,115,.5); color: var(--gold); font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, rgba(211,177,115,.14), transparent); margin-bottom: 20px;
}
.login-card h1 { font-size: 20px; letter-spacing: 1px; font-weight: 600; }
.login-card .sub { color: var(--dim); font-size: 12px; letter-spacing: 2px; margin: 6px 0 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 1.2px; color: var(--dim); margin-bottom: 7px; }
.input {
  width: 100%; padding: 11px 13px; border-radius: 9px; background: #fff;
  border: 1px solid rgba(16,24,40,.140); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: rgba(168,132,60,.6); box-shadow: 0 0 0 3px rgba(168,132,60,.10); }
.btn {
  border: 1px solid var(--line); background: transparent; border-radius: 9px;
  padding: 9px 18px; cursor: pointer; color: var(--text); transition: .15s; font-size: 13.5px;
}
.btn:hover { border-color: rgba(211,177,115,.4); color: var(--gold-hi); }
.btn-primary {
  width: 100%; padding: 12px; border-radius: 10px; cursor: pointer; font-size: 14px;
  background: linear-gradient(135deg, rgba(211,177,115,.28), rgba(211,177,115,.12));
  border: 1px solid rgba(211,177,115,.55); color: var(--gold-hi); font-weight: 500;
  box-shadow: 0 4px 14px rgba(168,132,60,.15), inset 0 1px 0 rgba(16,24,40,.130);
}
.btn-primary:hover { background: linear-gradient(135deg, rgba(211,177,115,.38), rgba(211,177,115,.18)); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
.btn-danger { border-color: rgba(200,16,46,.45); color: #f87171; }
.err { color: #f87171; font-size: 12.5px; margin-top: 10px; min-height: 18px; }

/* ---------- 布局 ---------- */
.layout { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #141a24 0%, #0d1218 100%);
  border-right: 1px solid rgba(0,0,0,.4);
  display: flex; flex-direction: column; padding-top: 18px;
}
.brand { padding: 6px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brand .logo { width: 104px; height: auto; }
.brand .btext { display: flex; flex-direction: column; }
.brand .crest {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(168,132,60,.35); color: var(--gold); font-weight: 700; font-size: 17px;
  background: linear-gradient(135deg, rgba(168,132,60,.10), transparent);
}
.brand h1 { font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #f2ece0; white-space: nowrap; }
.brand p { font-size: 9.5px; color: #c9a86a; letter-spacing: 1.6px; margin-top: 2px; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 26px; cursor: pointer;
  color: #9aa4b5; font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--text); background: rgba(16,24,40,.130); }
.nav-item.active {
  color: var(--gold-hi); border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(211,177,115,.1), transparent);
}
.nav-item .idx { font-size: 10.5px; color: #9aa3b2; font-variant-numeric: tabular-nums; }
.nav-item.active .idx { color: rgba(211,177,115,.75); }
.sidebar .foot { margin-top: auto; padding: 16px 22px; font-size: 11.5px;
  color: #8b95a5; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar .foot b { color: #d8dde6; }
.sidebar .foot b { color: var(--muted); font-weight: 500; }

.main { display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 14px; border-bottom: 1px solid rgba(16,24,40,.130);
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
}
.topbar h2 { font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.topbar .sub { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.topright { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--dim); }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.user-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 26px; border-bottom: 1px solid rgba(16,24,40,.07);
  background: rgba(255,255,255,.9);
}
.fb-l { font-size: 10.5px; letter-spacing: 2px; color: #7a8496; margin-right: 2px; }
.chip {
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer;
  font-size: 12px; color: var(--muted); background: transparent; white-space: nowrap;
}
.chip:hover { border-color: rgba(211,177,115,.35); color: var(--gold-hi); }
.chip.on { border-color: rgba(211,177,115,.6); color: var(--gold-hi); background: rgba(211,177,115,.1); }
.fb-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.fb-sum { margin-left: auto; font-size: 11.5px; color: var(--dim); }

.content { flex: 1; overflow: auto; padding: 18px 26px 40px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g23 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g23, .g2, .g3 { grid-template-columns: 1fr; } }

.card {
  background: #ffffff;
  border: 1px solid rgba(16,24,40,.08); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05);
}
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.card-h h3 { font-size: 14px; font-weight: 600; letter-spacing: .6px; }
.card-h .hint { font-size: 13px; color: #6b7486; }

.kpi .label { font-size: 13px; letter-spacing: 1.2px; color: #5b6577; font-weight: 500; }
.kpi .val { font-size: 32px; font-weight: 300; letter-spacing: -1.2px; line-height: 1.1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 11.5px; color: var(--dim); }

table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th {
  text-align: left; font-size: 13.5px; letter-spacing: .8px; color: #3d4757; font-weight: 700;
  padding: 10px 10px; border-bottom: 1px solid rgba(16,24,40,.10); white-space: nowrap;
}
td { padding: 11px 10px; border-bottom: 1px solid rgba(16,24,40,.09); }
tbody tr:hover { background: rgba(211,177,115,.045); }
tbody tr { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #8b94a6; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  border: 1px solid currentColor; letter-spacing: .4px;
}
.t-H, .t-O { color: var(--red); border-color: rgba(200,16,46,.45); background: rgba(200,16,46,.1); }
.t-A { color: var(--gold); border-color: rgba(211,177,115,.45); background: rgba(211,177,115,.1); }
.t-B { color: #eab308; border-color: rgba(234,179,8,.4); background: rgba(234,179,8,.08); }
.t-C { color: #3b82f6; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.08); }
.t-D { color: #6b7280; border-color: rgba(107,114,128,.4); background: rgba(107,114,128,.08); }
.h-RED { color: #c8102e; }
.h-ORANGE { color: #f97316; }
.h-YELLOW { color: #eab308; }
.h-GREEN { color: #6b7280; }
.empty { text-align: center; color: #5b6478; padding: 40px 0; font-size: 13px; }

/* ---------- 待办 ---------- */
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(16,24,40,.130); cursor: pointer; }
.todo:last-child { border-bottom: none; }
.todo:hover { background: rgba(211,177,115,.05); }
.todo.over { background: linear-gradient(90deg, rgba(200,16,46,.06), transparent); }
.todo .who { width: 86px; font-size: 13.5px; }
.todo .sum { flex: 1; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .next { width: 100px; text-align: right; font-size: 12px; }
.todo .act { width: 76px; text-align: right; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(3,5,8,.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px;
}
.mask.on { display: flex; }
.modal {
  width: 620px; max-width: 100%; max-height: 88vh; overflow: auto; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid rgba(16,24,40,.130);
  box-shadow: 0 24px 70px rgba(16,24,40,.140), inset 0 1px 0 rgba(16,24,40,.140);
}
.modal.wide { width: 820px; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 14px; border-bottom: 1px solid var(--line2); }
.m-head .nm { font-size: 18px; font-weight: 600; letter-spacing: .3px; }
.m-head .ph { font-size: 12px; color: var(--dim); margin-top: 3px; }
.m-close { cursor: pointer; color: var(--dim); font-size: 16px; padding: 2px 6px; }
.m-close:hover { color: var(--text); }
.m-body { padding: 18px 24px 24px; }
.m-sec { margin-bottom: 18px; }
.m-sec h4 { font-size: 10.5px; letter-spacing: 2.2px; color: #6b7486; margin-bottom: 10px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.frow:last-child { border-bottom: none; }
.frow .k { font-size: 14.5px; color: #3d4757; }
.frow .k small { display: block; font-size: 12px; color: #7a8496; margin-top: 2px; }
.sel, .ta {
  background: #ffffff; border: 1px solid rgba(16,24,40,.055); border-radius: 7px;
  padding: 8px 10px; outline: none; font-size: 13px;
}
.ta { width: 100%; resize: vertical; min-height: 60px; }
.sel:focus, .ta:focus { border-color: rgba(211,177,115,.55); box-shadow: 0 0 0 3px rgba(211,177,115,.08); }
.st-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-btn {
  padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-size: 12.5px; color: var(--muted);
}
.st-btn:hover { border-color: rgba(211,177,115,.5); color: var(--gold-hi); }
.st-btn.on { border-color: rgba(211,177,115,.7); color: var(--gold-hi); background: rgba(211,177,115,.12); }

.hist { max-height: 240px; overflow: auto; padding-right: 6px; }
.h-item { position: relative; padding: 0 0 16px 18px; border-left: 2px solid rgba(16,24,40,.14); margin-left: 4px; }
.h-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.h-dot { position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b2; }
.h-dot.eff { background: var(--gold); box-shadow: 0 0 0 3px rgba(211,177,115,.18); }
/* 历史跟进：加粗加深，一眼能看清 */
.h-top { font-size: 13.5px; color: #2b3546; font-weight: 600; letter-spacing: .2px; }
.h-top .h-way { color: #8a6d2f; }
.h-note { font-size: 14px; color: #1f2937; margin-top: 5px; line-height: 1.75; }
.h-note b { font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: #1a1f2a; border: 1px solid rgba(211,177,115,.35); color: var(--gold-hi);
  padding: 10px 20px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: .22s; z-index: 100; max-width: 80vw;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-act {
  background: rgba(211,177,115,.16); border: 1px solid rgba(211,177,115,.5);
  color: var(--gold-hi); border-radius: 6px; padding: 3px 12px; font-size: 12px; cursor: pointer;
}

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 14px; }
.bar-row .nm { width: 96px; color: #3d4757; font-weight: 500; }
.bar-row .track { display: block; flex: 1; height: 8px; background: rgba(16,24,40,.130); border-radius: 4px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: linear-gradient(90deg, rgba(211,177,115,.9), rgba(211,177,115,.45)); border-radius: 4px; }
.bar-row .v { width: 54px; text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line2); font-size: 15.5px; }
.rank-row:last-child { border-bottom: none; }
.rank-row .no { width: 24px; color: #9aa3b2; font-size: 11px; }
.rank-row .nm { flex: 1; color: var(--text); }
.rank-row .v { color: var(--gold); font-variant-numeric: tabular-nums; }


/* ---------- 展厅大屏 ---------- */
.screen-mode .sidebar,
.screen-mode .topbar,
.screen-mode #filters { display: none !important; }
.screen-mode .layout { grid-template-columns: 1fr; }
.screen-mode .content { padding: 10px 40px 30px; background:
  radial-gradient(1200px 600px at 50% -10%, rgba(211,177,115,.06), transparent 60%); }
.screen-mode .card { background: #ffffff; }

/* ---------- 可重命名标题 ---------- */
[data-ek]{cursor:text;border-radius:4px;transition:background .15s,box-shadow .15s}
[data-ek]:hover{background:rgba(211,177,115,.10);box-shadow:0 0 0 1px rgba(211,177,115,.22)}
[data-ek].editing{background:rgba(211,177,115,.14);box-shadow:0 0 0 1px rgba(211,177,115,.6);padding:1px 4px;margin:-1px -4px}

/* ---------- 渠道效果卡片 ---------- */
.ch-card { padding: 20px 22px; }
.ch-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.ch-name { font-size: 15px; color: #131a26; letter-spacing: .4px; }
.ch-sub { font-size: 11.5px; color: #7a8496; margin-top: 3px; }
.ch-pct { display: flex; align-items: baseline; gap: 3px; }
.ch-bars { display: flex; flex-direction: column; gap: 9px; }
.ch-bar { display: flex; align-items: center; gap: 10px; }
.ch-bar-k { width: 30px; font-size: 11px; color: #6b7486; }
.ch-bar-track { flex: 1; height: 6px; background: rgba(16,24,40,.130); border-radius: 3px; overflow: hidden; }
.ch-bar-fill { display: block; height: 100%; border-radius: 3px; }
.ch-bar-v { width: 46px; text-align: right; font-size: 11.5px; color: #5b6577; font-variant-numeric: tabular-nums; }

/* ---------- 车型标签 ---------- */
.model-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid rgba(16,24,40,.130); border-radius: 9px;
  background: rgba(16,24,40,.055); font-size: 13px; color: #1f2937;
}
.model-chip.off { opacity: .45; }
.model-chip .mx { cursor: pointer; font-size: 11px; color: #7a8496; transition: color .15s; }
.model-chip .mx:hover { color: #d3b173; }
.model-chip .mx.del:hover { color: #f87171; }

/* ---------- 渠道卡片增强 ---------- */
.ch-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.ch-ring {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  position: relative; flex: 0 0 auto;
}
.ch-ring::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #ffffff;
}
.ch-ring-in { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 1px; }
.ch-ring-in span { font-size: 14px; color: #131a26; font-variant-numeric: tabular-nums; }
.ch-ring-in small { font-size: 9px; color: #7a8496; }
.ch-mini { display: flex; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(16,24,40,.130); }
.ch-mini > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ch-mini span { font-size: 10.5px; color: #7a8496; letter-spacing: .5px; }
.ch-mini b { font-size: 15px; font-weight: 400; color: #1f2937; font-variant-numeric: tabular-nums; }
.ch-lead { padding: 10px 0; border-bottom: 1px solid rgba(16,24,40,.130); }
.ch-lead:last-of-type { border-bottom: none; }
.ch-lead-t { font-size: 10.5px; letter-spacing: 1.4px; color: #7a8496; }
.ch-lead-v { font-size: 22px; font-weight: 300; color: #d3b173; margin: 4px 0 2px; letter-spacing: .5px; }
.ch-lead-s { font-size: 12px; color: #5b6577; }

/* ---------- 迷你标签 ---------- */
.mini-tag {
  font-size: 11.5px !important; padding: 2px 7px !important;
  display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10px;
  line-height: 16px; color: #c9a35f; border: 1px solid rgba(211,177,115,.35);
  background: rgba(211,177,115,.08); cursor: pointer; white-space: nowrap;
}
.mini-tag.more { color: #6b7486; border-color: rgba(16,24,40,.130); background: transparent; }
.mini-tag.add { color: #9aa3b2; border-style: dashed; border-color: rgba(16,24,40,.130); background: transparent; }
.mini-tag:hover { border-color: rgba(211,177,115,.7); }
.grade-sel { appearance: none; -webkit-appearance: none; text-align: center; cursor: pointer; }

/* ---------- 人员归属 ---------- */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp label { display: block; font-size: 11px; color: #6b7486; margin-bottom: 5px; letter-spacing: .5px; }
.pp label small { color: #9aa3b2; margin-left: 6px; letter-spacing: 0; }
.pp .sel { width: 100%; }

/* ---------- 可排序表头 ---------- */
th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
th.sortable:hover { color: #d3b173; }
th.sortable::after { content: ' ⇅'; font-size: 9px; color: #9aa3b2; }
th.sortable:hover::after { color: rgba(211,177,115,.6); }

/* ---------- 人员筛选（折叠） ---------- */
.pf { border: 1px solid rgba(16,24,40,.130); border-radius: 10px; margin: 0 0 12px; overflow: hidden; }
.pf-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; background: rgba(16,24,40,.130); }
.pf-head:hover { background: rgba(211,177,115,.05); }
.pf-t { font-size: 11px; letter-spacing: 1.4px; color: #6b7486; }
.pf-sum { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-arrow { font-size: 10px; color: #7a8496; transition: transform .18s; }
.pf-arrow.open { transform: rotate(180deg); }
.pf-clear { font-size: 11.5px; color: #5b6577; }
.pf-clear:hover { color: #f87171; }
.pf-body { padding: 6px 14px 12px; border-top: 1px solid rgba(16,24,40,.130); }
.pf-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.pf-l { width: 52px; font-size: 10.5px; letter-spacing: 1px; color: #7a8496; }

/* ---------- 清除筛选 ---------- */
.clear-filters {
  margin-left: auto; font-size: 11.5px; color: #5b6577; cursor: pointer;
  padding: 4px 10px; border-radius: 14px; border: 1px solid rgba(16,24,40,.130);
  transition: .15s;
}
.clear-filters:hover { color: #f87171; border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.06); }

/* ---------- 自动标签 ---------- */
.mini-tag.auto { color: #7c8598; border-color: rgba(16,24,40,.130); background: rgba(16,24,40,.130); }
.auto-chip {
  color: #9aa4b6; border-color: rgba(16,24,40,.130); background: rgba(16,24,40,.130);
  display: inline-flex; align-items: center; gap: 6px;
}
.auto-chip .x { font-style: normal; font-size: 10px; color: #7a8496; cursor: pointer; }
.auto-chip .x:hover { color: #f87171; }

/* ---------- 权限编辑 ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.perm-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1px solid rgba(16,24,40,.14); border-radius: 8px;
  font-size: 13px; color: #3d4757; cursor: pointer; background: #fff;
  transition: .14s;
}
.perm-item:hover { border-color: rgba(168,132,60,.5); background: #fdfaf4; }
.perm-item:has(input:checked) {
  border-color: #c9a86a; background: #fdf8ef; color: #8a6d2f; font-weight: 600;
}
.perm-item input { accent-color: #c9a86a; width: 15px; height: 15px; cursor: pointer; }
.perm-item.changed { border-color: rgba(200,16,46,.45); background: #fdf2f3; }
.perm-item .tagn { margin-left: auto; font-size: 10px; color: #a8843c; font-weight: 500; }

/* 台账：状态与时间列不折行 */
td .sel.sm, td .sel { white-space: nowrap; }
table td { white-space: nowrap; }
table td .nm-wrap { white-space: normal; }

/* ---------- 导航分组 / 置顶 ---------- */
.nav-group { margin-bottom: 2px; }
.nav-gh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 8px; font-size: 14.5px; letter-spacing: 1.2px; font-weight: 700;
  color: #b9c2d0; cursor: pointer; user-select: none;
}
.nav-gh:hover { color: #5b6577; }
.nav-gh .chev { font-size: 9px; }
.nav-item { position: relative; border-radius: 0 8px 8px 0; margin-right: 10px; }
.nav-item:hover { background: rgba(201,168,106,.10); color: #f2ece0; }
.nav-item.active {
  color: #f7f2e7; font-weight: 600;
  background: linear-gradient(90deg, rgba(201,168,106,.22), rgba(201,168,106,.04));
  border-left-color: #c9a86a;
}
.nav-item .pin {
  margin-left: auto; font-size: 11px; color: #46505f; padding-right: 4px;
  opacity: 0; transition: .15s;
}
.nav-item:hover .pin { opacity: 1; }
.nav-item .pin.on { opacity: 1; color: #d3b173; }
.nav-item .pin:hover { color: #ebd5a6; }

/* ---------- 站内消息 ---------- */
.notice-btn { position: relative; cursor: pointer; font-size: 15px; opacity: .7; margin-right: 4px; }
.notice-btn:hover { opacity: 1; }
.notice-btn b {
  position: absolute; top: -5px; right: -7px; background: #c8102e; color: #fff;
  font-size: 9px; font-weight: 600; border-radius: 8px; padding: 1px 5px; line-height: 1.3;
}
.notice-item {
  padding: 13px 2px; border-bottom: 1px solid rgba(16,24,40,.130);
}
.notice-item.unread { background: rgba(211,177,115,.04); }

/* ---------- 浅色主题补充对比度 ---------- */
.ch-lead-v { color: #8a6d2f !important; }
.ch-lead-t { color: #7a8496; }
.ch-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.screen-mode { background: #f4f6f9; }

/* ---------- 表格：操作列固定在右侧，横向滚动也不丢 ---------- */
table.sticky-x thead th:last-child,
table.sticky-x tbody td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 12px -8px rgba(16,24,40,.18);
  z-index: 1;
}
table.sticky-x thead th:last-child { z-index: 2; background: #fafbfc; }
tr:hover td:last-child { background: #fbfcfe; }

/* 客户列固定在左侧 */
table.sticky-x thead th:first-child,
table.sticky-x tbody td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
table.sticky-x thead th:first-child { z-index: 2; background: #fafbfc; }

/* ---------- 子表格 / 明细文字加粗放大 ---------- */
table td { font-size: 15.5px; color: #1f2937; }
table td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: #131a26; }
table tr:hover td { background: #f6f9fd; }
.card-h h3 { font-size: 15px; }

/* ---------- 颜色更鲜艳 ---------- */
:root {
  --green: #12b76a;
  --orange: #f97316;
  --red: #e11d48;
  --blue: #2563eb;
  --gold: #b8860b;
  --gold-hi: #96690a;
}
.chip.on { color: #8a6d2f; border-color: rgba(184,134,11,.55); background: rgba(184,134,11,.10); font-weight: 600; }
.tag { font-size: 12px; }
.h-item { font-size: 14px; }
.notice-item { font-size: 14px; }
.empty { font-size: 14px; color: #6b7486; }

/* 明细条数值不换行 */
.bar-row .v { min-width: 74px; text-align: right; white-space: nowrap;
  color: #131a26; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row .fill { background: linear-gradient(90deg, #c9a35f, #b8860b); }

/* 目标页进度条 */
.tg-bar { height: 8px; border-radius: 5px; background: rgba(16,24,40,.10); overflow: hidden; margin-top: 6px; }
.tg-bar > i { display: block; height: 100%; border-radius: 4px; }
.tg-meta { font-size: 13px; margin-top: 5px; font-variant-numeric: tabular-nums; font-weight: 600; }

/* 目标输入框更像可填写的格子 */
td input[data-tg] { background: #f7f9fc; border-color: rgba(16,24,40,.16); }
td input[data-tg]:focus { background: #fff; }

/* 侧栏导航可滚动（页面多时能看到最后几项） */
#nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 8px; }
#nav::-webkit-scrollbar { width: 5px; }
#nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
#nav::-webkit-scrollbar-thumb:hover { background: rgba(201,168,106,.5); }
.sidebar .foot { flex: none; }

/* ---------- 大屏标题 ---------- */
.big-title {
  font-size: 42px; letter-spacing: 16px; font-weight: 800; line-height: 1.25;
  background: linear-gradient(100deg, #c8102e 0%, #e11d48 22%, #b8860b 58%, #d4a63c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(200,16,46,.18));
}
.big-sub { font-size: 13px; letter-spacing: 7px; color: #8a6d2f; margin-top: 10px; font-weight: 600; }

/* ---------- 大屏排行：序号悬停明显感知 ---------- */
.big-rank {
  font-size: 19px; padding: 13px 10px; border-radius: 10px;
  transition: background .16s, transform .16s, box-shadow .16s;
  cursor: default;
}
.big-rank .no {
  width: 34px; font-size: 15px; font-weight: 700; color: #b9c2d0;
  font-variant-numeric: tabular-nums;
  transition: color .16s, transform .16s, background .16s;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; padding: 3px 0;
}
.big-rank .no.top3 { color: #e11d48; background: rgba(225,29,72,.08); }
.big-rank .nm { flex: 1; font-size: 19px; }
.big-rank .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.big-rank .val small { font-size: 13px; font-weight: 400; color: #8b95a5; margin-left: 2px; }

.big-rank:hover, .big-rank.force-hover {
  background: linear-gradient(90deg, rgba(200,16,46,.06), rgba(184,134,11,.05));
  transform: translateX(3px);
  box-shadow: -3px 0 0 0 #c8102e;
}
.big-rank:hover .no, .big-rank.force-hover .no {
  color: #fff; background: #c8102e; transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(200,16,46,.35);
}
.big-rank:hover .nm, .big-rank.force-hover .nm { color: #131a26; font-weight: 600; }

/* ---------- 作战室：浅色背景 ---------- */
body.screen-mode {
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(184,134,11,.10), transparent 62%),
    radial-gradient(900px 480px at 100% -6%, rgba(200,16,46,.07), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(37,99,235,.05), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f5f9 100%);
}
body.screen-mode .topbar,
body.screen-mode #filters { display: none !important; }
body.screen-mode .layout { grid-template-columns: 1fr; }
body.screen-mode .sidebar { display: none; }

/* 标题：红金渐变 + 两侧装饰线 */
.big-title {
  font-size: 44px; letter-spacing: 18px; font-weight: 800; line-height: 1.3;
  background: linear-gradient(96deg, #c8102e 0%, #e11d48 20%, #b8860b 62%, #d9a942 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(200,16,46,.16));
  display: inline-flex; align-items: center; gap: 22px;
}
.big-title::before, .big-title::after {
  content: ''; display: block; height: 2px; width: 90px;
  background: linear-gradient(90deg, transparent, #d9a942);
  border-radius: 2px;
}
.big-title::after { background: linear-gradient(270deg, transparent, #d9a942); }
.big-sub {
  font-size: 13px; letter-spacing: 8px; color: #8a6d2f;
  margin-top: 12px; font-weight: 600;
}

/* 皇冠 */
.big-rank .crown {
  display: inline-block; margin-right: 7px; font-size: 17px; line-height: 1;
  color: #d9a942; filter: drop-shadow(0 2px 4px rgba(184,134,11,.45));
  animation: crownPulse 2.4s ease-in-out infinite;
}
@keyframes crownPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}

/* 入场动画（逐个滑入） */
@keyframes rankIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.big-rank { animation: rankIn .42s cubic-bezier(.22,.68,.38,1) both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body.screen-mode .card { animation: cardIn .5s ease both; }

/* ---------- 侧栏导航：悬停明显感知（与大屏排行一致） ---------- */
.nav-item { transition: background .16s, color .16s, transform .16s, box-shadow .16s, border-color .16s; }
.nav-item .idx {
  font-size: 11px; color: #6f7889; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; padding: 2px 0; border-radius: 6px;
  transition: color .16s, background .16s, transform .16s, box-shadow .16s;
}
.nav-item:hover {
  background: linear-gradient(90deg, rgba(201,168,106,.20), rgba(201,168,106,.04));
  color: #fff8ea;
  border-left-color: #c9a86a;
  transform: translateX(4px);
  box-shadow: -3px 0 0 0 #c9a86a;
}
.nav-item:hover .idx {
  color: #1b1305; background: #c9a86a; font-weight: 700;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(201,168,106,.45);
}
.nav-item.active .idx { color: #f7f2e7; background: rgba(201,168,106,.85); font-weight: 700; }
.nav-item.active:hover .idx { background: #d9b872; }

/* ---------- 侧栏分组标题：悬停同样有感知 ---------- */
.nav-gh {
  border-radius: 0 8px 8px 0; margin-right: 10px;
  transition: background .16s, color .16s, box-shadow .16s, transform .16s;
}
.nav-gh .chev {
  font-size: 11px; color: #6f7889;
  transition: color .16s, transform .18s;
}
.nav-gh:hover {
  background: linear-gradient(90deg, rgba(201,168,106,.16), rgba(201,168,106,.02));
  color: #f7f2e7;
  box-shadow: inset 3px 0 0 0 #c9a86a;
  transform: translateX(3px);
}
.nav-gh:hover .chev { color: #d9b872; transform: scale(1.25); }

/* 分组标题悬停加强 */
.nav-gh { border-left: 3px solid transparent; padding-left: 17px; }
.nav-gh:hover {
  background: linear-gradient(90deg, rgba(201,168,106,.26), rgba(201,168,106,.03)) !important;
  color: #fff8ea !important;
  border-left-color: #c9a86a !important;
  box-shadow: none !important;
}

/* 筛选条并入卡片 */
#filters.in-card { padding: 0; }
#filters.in-card .filters {
  border: 0; border-bottom: 1px solid rgba(16,24,40,.07);
  background: transparent; box-shadow: none;
  padding: 8px 0 10px; margin: 0 0 10px; border-radius: 0;
  min-height: 0;
}
#filters.in-card .chip { padding: 4px 10px; font-size: 12px; }
#filters.in-card .fb-l { font-size: 10px; }
#filters.in-card .input { padding: 4px 9px; font-size: 12px; }
#filters.in-card .fb-sum { margin-left: auto; font-size: 11.5px; color: #7a8496; }

/* 台账表单筛选 */
.lf { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:2px 0 12px; }
.lf-btn {
  display:inline-flex; align-items:center; gap:7px; padding:7px 12px; cursor:pointer;
  background:#fff; border:1px solid rgba(16,24,40,.12); border-radius:9px;
  font-size:12.5px; color:#3d4757; transition:.15s;
}
.lf-btn:hover { border-color:rgba(168,132,60,.5); color:#8a6d2f; }
.lf-btn.on { border-color:#c9a86a; background:#fdf8ef; color:#8a6d2f; font-weight:600; }
.lf-l { color:#9aa3b2; font-size:11.5px; }
.lf-btn.on .lf-l { color:#b08a4a; }
.lf-v { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lf-a { color:#c4cbd6; font-size:10px; }
.lf-kw { width:210px; padding:6px 11px; font-size:12.5px; }
.lf-reset { background:none; border:0; color:#c8102e; font-size:12px; cursor:pointer; padding:4px 6px; }
.lf-sum { margin-left:auto; font-size:12px; color:#8a94a6; }

.ms-row {
  display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:7px;
  cursor:pointer; font-size:13px; color:#3d4757;
}
.ms-row:hover { background:#f7f5ef; }
.ms-row input { accent-color:#c9a86a; width:14px; height:14px; }

/* 规则编辑器里的多选块 */
.pick {
  display:inline-flex; align-items:center; gap:7px; padding:6px 12px;
  border:1px solid rgba(16,24,40,.13); border-radius:8px; cursor:pointer;
  font-size:12.5px; color:#3d4757; background:#fff; margin:0 8px 8px 0;
  transition:.14s;
}
.pick:hover { border-color:rgba(168,132,60,.5); }
.pick:has(input:checked) {
  border-color:#c9a86a; background:#fdf8ef; color:#8a6d2f; font-weight:600;
}
.pick input { accent-color:#c9a86a; width:14px; height:14px; margin:0; }

/* 大屏月份切换 */
.scr-month {
  position:absolute; left:0; top:6px;
  display:flex; align-items:center; gap:6px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  border:1px solid rgba(168,132,60,.28); border-radius:10px; padding:4px;
}
.scr-nav {
  width:30px; height:30px; border-radius:7px; cursor:pointer;
  border:1px solid transparent; background:transparent; color:#8a6d2f;
  font-size:16px; line-height:1; display:flex; align-items:center; justify-content:center;
}
.scr-nav:hover { background:#fdf8ef; border-color:rgba(168,132,60,.4); }
.scr-input {
  border:0; background:transparent; color:#5a4326; font-size:13px;
  font-weight:600; padding:4px 6px; outline:none; cursor:pointer;
  font-variant-numeric: tabular-nums;
}

/* 下拉菜单（删除等聚合操作） */
.dd { position: relative; display: inline-block; }
.dd-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 244px; background: #fff; border: 1px solid rgba(16,24,40,.12);
  border-radius: 10px; box-shadow: 0 14px 38px rgba(16,24,40,.16);
  padding: 6px; z-index: 60;
}
.dd-panel.open { display: block; }
.dd-item {
  padding: 9px 12px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: #3d4757; display: flex; align-items: center; gap: 8px;
}
.dd-item small { margin-left: auto; font-size: 11px; color: #9aa3b2; white-space: nowrap; }
.dd-item:hover { background: #fdf6f6; color: #c8102e; }
.dd-item:hover small { color: #c98a8a; }
.dd-sep { height: 1px; background: rgba(16,24,40,.08); margin: 5px 4px; }

/* 侧栏拖拽排序 */
.nav-item[draggable="true"] { cursor: grab; }
.nav-item.dragging { opacity: .45; cursor: grabbing; }
.nav-item.drop-hint { box-shadow: inset 0 2px 0 0 #c9a86a; }
.nav-gb.drop-into { background: rgba(201,168,106,.10); border-radius: 6px; outline: 1px dashed rgba(201,168,106,.55); }

.grade-btn.on { border-color:#c9a86a; background:#fdf8ef; color:#8a6d2f; font-weight:700; }

/* 表头吸顶 */
.content table thead th {
  position: sticky; top: 0; z-index: 3;
  background: #fbfcfd;
  box-shadow: inset 0 -1px 0 rgba(16,24,40,.10);
}
.content table thead th:last-child { background: #fbfcfd; }

/* 列宽拖拽手柄 */
th { position: relative; }
.col-rs {
  position: absolute; right: -3px; top: 0; width: 7px; height: 100%;
  cursor: col-resize; z-index: 4;
}
.col-rs::after {
  content: ''; position: absolute; left: 3px; top: 22%; height: 56%;
  width: 1px; background: transparent;
}
th:hover .col-rs::after { background: rgba(168,132,60,.65); }

/* 拨动开关 */
.sw { display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.sw input { position:absolute; opacity:0; width:0; height:0; }
.sw-track {
  width:46px; height:24px; border-radius:999px; background:#d6dbe4;
  position:relative; transition:background .18s ease; flex:0 0 auto;
}
.sw-knob {
  position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%;
  background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.28);
  transition:transform .18s ease;
}
.sw input:checked + .sw-track { background:#b8860b; }
.sw input:checked + .sw-track .sw-knob { transform:translateX(22px); }
.sw-text { font-size:12.5px; color:#5b6577; }
.sw input:checked ~ .sw-text { color:#8a6d2f; font-weight:600; }

/* 序号 / 标题：悬停不显示文字光标，只有进入编辑态才变文本光标 */
.nav-item, .nav-item .idx, [data-ek] { cursor: pointer; user-select: none; }
.nav-item .idx { cursor: pointer; }
[data-ek][contenteditable="true"] { cursor: text; user-select: text; }

/* 台账阶段标签页 */
.stage-tab {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px; border-radius: 10px; cursor: pointer;
  background: #f6f7f9; border: 1px solid rgba(16,24,40,.08);
  font-size: 13px; color: #4b5563; transition: all .15s;
}
.stage-tab:hover { background: #eef0f4; }
.stage-tab .st-name { font-weight: 600; }
.stage-tab .st-num { font-size: 16px; font-weight: 700; color: #3d4757; font-variant-numeric: tabular-nums; }
.stage-tab .st-hint { font-size: 10.5px; color: #98a1b0; }
.stage-tab.on {
  background: #8a6d2f; border-color: #8a6d2f; color: #fff;
}
.stage-tab.on .st-num { color: #fff; }
.stage-tab.on .st-hint { color: rgba(255,255,255,.75); }

/* 登录页：记住账号/密码 */
.lg-remember { display:flex; gap:18px; align-items:center; margin:4px 0 10px; font-size:13px; color:#5b6577; }
.lg-chk { display:inline-flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }
.lg-chk input { accent-color:#b8860b; width:15px; height:15px; cursor:pointer; }
.lg-chk:hover { color:#8a6d2f; }

/* 只读人员值 */
.ro-val {
  padding: 8px 12px; border-radius: 8px; background: #f6f7f9;
  border: 1px solid rgba(16,24,40,.06); font-size: 13px; color: #3d4757;
}
.ro-val.empty { color: #b8c0cc; }

/* 客户名可编辑提示 */
.name-edit { cursor: pointer; border-bottom: 1px dashed transparent; }
.name-edit:hover { border-bottom-color: rgba(168,132,60,.6); color: #8a6d2f; }
.name-edit .pen { font-size: 11px; color: #c0c6d0; margin-left: 4px; }
.name-edit:hover .pen { color: #a8843c; }

/* 未定级标签 */
.tag.t-none { background:#f2f4f7; color:#98a1b0; border:1px dashed rgba(16,24,40,.18); }

/* 5 项意向评估：置顶醒目 */
.score-sec {
  background: linear-gradient(180deg, rgba(184,134,11,.06), rgba(184,134,11,0));
  border: 1px solid rgba(184,134,11,.22);
  border-radius: 12px;
  padding: 14px 16px !important;
}
.score-sec h4 { color: #8a6d2f !important; }
.score-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.score-num b { font-size: 34px; font-weight: 300; color: #a8843c; }
.score-num span { color: #5b6478; font-size: 13px; margin-left: 4px; }
.score-grade { margin-left: auto; }
.score-parts { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.score-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
  border-top: 1px solid rgba(184,134,11,.18); padding-top: 12px;
}
.score-form .frow { display: flex; align-items: center; gap: 10px; }
.score-form .frow .k { width: 96px; flex: none; font-size: 12.5px; color: #5b6478; }

/* 可点开详情的人名 */
.link-name { cursor: pointer; color: #2f3640; border-bottom: 1px dashed rgba(168,132,60,.5); }
.link-name:hover { color: #8a6d2f; border-bottom-color: #8a6d2f; }

/* 页面显示设置按钮（仅管理员可见） */
#__layoutBtn:hover { background:#fff; border-color:#a8843c; color:#8a6d2f; }

/* 成交率口径选择器 */
.rate-dim {
  border: 1px solid rgba(16,24,40,.12); background: #fff; color: #5b6577;
  border-radius: 6px; font-size: 11px; padding: 1px 4px; cursor: pointer; max-width: 126px;
}
.rate-dim:hover { border-color: #a8843c; color: #8a6d2f; }

/* 数据来源徽章：DOSS 导入 / 系统内 */
.src-tag {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px; line-height: 1.6;
}
.src-tag.doss { background: #f1f5f9; color: #64748b; border: 1px solid rgba(100,116,139,.28); }
.src-tag.sys  { background: #effaf3; color: #12a150; border: 1px solid rgba(18,161,80,.28); }

/* 公海线索只读预览提示条 */
.ro-banner {
  display: flex; align-items: center; gap: 12px;
  background: #fff8ef; border: 1px solid rgba(184,134,11,.28);
  color: #8a6d2f; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px;
}
.ro-banner span { flex: 1; }

/* 台账筛选条：两行布局 */
.lead-lf { display: flex; flex-direction: column; gap: 8px; }
.lead-lf .lf-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead-lf .lf-kw { width: 260px; }
.lf-chip {
  border: 1px solid rgba(16,24,40,.12); background: #fff; color: #5b6577;
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer;
  transition: all .12s ease;
}
.lf-chip:hover { border-color: rgba(184,134,11,.45); color: #8a6d2f; }
.lf-chip.on { background: rgba(184,134,11,.12); border-color: rgba(184,134,11,.55); color: #8a6d2f; font-weight: 600; }
.lf-range { display: inline-flex; align-items: center; gap: 6px; }
.lf-range input { width: 132px; padding: 4px 8px; font-size: 12px; }

/* 选中后浮在底部的操作条 */
.sel-bar {
  display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
  z-index: 800; align-items: center; gap: 10px;
  background: #fff; border: 1px solid rgba(16,24,40,.14);
  box-shadow: 0 12px 34px rgba(16,24,40,.18); border-radius: 12px; padding: 10px 16px;
}
.sel-bar .sb-n { font-size: 13px; color: #5b6577; }
.sel-bar .sb-n b { color: #a8843c; font-size: 15px; }

/* ============ 台账排版美化 ============ */
/* 工具条：分组 + 统一高度 */
.tb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb .tb-sep { width: 1px; height: 18px; background: rgba(16,24,40,.10); margin: 0 4px; }
.tb .btn { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.btn-add { border-color: rgba(184,134,11,.4); color: #8a6d2f; background: #fdfbf6; }
.btn.btn-add:hover { background: #faf5ea; border-color: rgba(184,134,11,.6); }

/* 下拉里的分组小标题 */
.dd-title {
  padding: 6px 10px 7px; font-size: 11px; letter-spacing: 1.2px; color: #8a94a6;
  border-bottom: 1px solid rgba(16,24,40,.06); margin-bottom: 4px;
}

/* 筛选区：浅底卡片，两行分明 */
.lead-lf {
  background: #fafbfc; border: 1px solid rgba(16,24,40,.07);
  border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px;
}
.lead-lf .lf-row + .lf-row {
  border-top: 1px dashed rgba(16,24,40,.07); padding-top: 9px;
}
.lead-lf .lf-kw {
  width: 240px; height: 30px; font-size: 12.5px;
  background: #fff; border-color: rgba(16,24,40,.12);
}
.lead-lf .lf-btn {
  height: 30px; border-radius: 8px; background: #fff; border-color: rgba(16,24,40,.12);
}
.lead-lf .lf-btn.on { background: #fdf7ea; border-color: rgba(184,134,11,.5); }
.lead-lf .lf-chip { height: 30px; padding: 0 13px; line-height: 28px; }
.lead-lf .lf-range input { height: 30px; }
.lead-lf .lf-sum { font-size: 12px; color: #8a94a6; }

/* 表头：吸顶 + 分隔更清楚 */
#content table.sticky-x thead th {
  background: #f7f8fa; font-weight: 600; color: #475467;
  border-bottom: 1px solid rgba(16,24,40,.10);
}
/* 列宽拖拽手柄：更宽、默认淡显、悬停高亮 */
.col-rs {
  position: absolute; right: -3px; top: 0; width: 8px; height: 100%;
  cursor: col-resize; z-index: 3;
}
.col-rs::after {
  content: ''; position: absolute; left: 3px; top: 22%; width: 2px; height: 56%;
  background: rgba(16,24,40,.12); border-radius: 2px; transition: background .12s;
}
th:hover .col-rs::after { background: rgba(184,134,11,.75); }

/* 表头单元格保持吸顶定位（也是拖拽手柄的定位父级），不能改成 relative */
#content table.sticky-x thead th { position: sticky; top: 0; }
/* 操作列始终钉在右侧，不被横向滚动带走 */
#content table.sticky-x thead th:last-child { right: 0; z-index: 4; }
#content table.sticky-x tbody td:last-child { right: 0; z-index: 3; }

/* 台账筛选区：左对齐、占满宽度 */
.lead-lf { align-items: stretch; justify-content: flex-start; padding: 10px 12px; }
.lead-lf .lf-row { width: 100%; justify-content: flex-start; }
.lead-lf .lf-kw { margin-right: 2px; }
/* 工具条更紧凑，避免右侧挤成一片 */
.card-h .tb { justify-content: flex-end; }

/* 台账关键列保底宽度，防止被压没 */
#content table.sticky-x th[data-sort="next"],
#content table.sticky-x td:nth-child(var(--nextcol)) { white-space: nowrap; }
#content table.sticky-x th[data-sort="lastfollow"] { min-width: 168px; }
#content table.sticky-x th[data-sort="created"]    { min-width: 104px; }
#content table.sticky-x th[data-sort="next"]       { min-width: 104px; }
/* 操作列按内容收紧，不占多余空白 */
#content table.sticky-x th:last-child { width: 1px; white-space: nowrap; }
#content table.sticky-x td:last-child { white-space: nowrap; }
