.sd{display:grid;gap:16px}.sd h2{margin:0 0 12px;font-size:17px}.sd .workspace{margin:0}.sd-back{display:inline-flex;align-items:center;gap:5px;width:fit-content}.sd-back svg{width:16px;height:16px}.sd-sample{margin:0;padding:9px 12px;background:#ecf6fa;border-left:3px solid #4b7696;color:#35556e;font-size:13px}.sd-metrics,.sd-card-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sd-metrics>div,.sd-card-facts>div{display:grid;gap:7px}.sd-metrics>div{padding:18px 20px;background:#fff;border:1px solid #dfe4e7;border-radius:10px}.sd-metrics span,.sd-card-facts small,.sd-panels li small,.sd-results small{color:#54636b;font-size:12px}.sd-metrics b{font-size:25px;font-variant-numeric:tabular-nums}.sd-metrics b small{font-size:13px;margin-left:4px}.sd-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sd-panels h2{margin-bottom:4px}.sd-panels ul{margin:12px 0 0;padding:0;list-style:none}.sd-panels li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #e8edef}.sd-panels li div,.sd-results>div{display:grid;gap:3px}.sd-panels time{font-size:12px;color:#495e69}.sd-shop-link{font-weight:600;color:inherit}.sd-empty{color:#65737c;font-size:14px;padding:12px 0}.sd input,.sd select,.sd textarea{font:inherit;max-width:100%}.sd-edit label,.sd-transfer label,.sd-search label,.sd-employee{display:grid;gap:5px;font-size:13px;color:#384951}.sd-edit input,.sd-edit select,.sd-edit textarea,.sd-search input,.sd-employee select,.sd-transfer select{padding:9px;border:1px solid #cbd5da;border-radius:6px;background:#fff;color:#172d38}.sd-employee{width:min(100%,290px);margin-bottom:12px}.sd-card-facts{border-bottom:1px solid #dfe5e7;padding-bottom:17px;margin-bottom:18px}.sd-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.sd-transfer,.sd-search form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.sd-transfer{margin-top:20px;padding-top:14px;border-top:1px solid #e3e8eb}.sd-search form p{flex:1 0 100%;margin:0}.sd-results{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:8px}.sd-results>div{padding:12px;border:1px solid #dfe6e9;border-radius:6px}.sd-results button{justify-self:start;margin-top:4px}.sd .ftable{overflow-x:auto}.sd .sd-edit textarea{width:100%;resize:vertical}.sd .sd-official{font-size:13px}.sd .sd-back:empty{display:none}
@media(max-width:700px){.sd{gap:11px}.sd-panels{grid-template-columns:1fr}.sd-metrics{gap:6px}.sd-metrics>div{padding:11px 8px}.sd-metrics b{font-size:18px}.sd-metrics span{font-size:11px}.sd-card-facts{gap:6px;font-size:12px}.sd-inputs{grid-template-columns:1fr}.sd-search form{align-items:stretch}.sd-search label{flex:1 1 120px}}

/* ---------- 负责人的分配弹窗（2026-11-30：分配做在客户档案里，customer-profile.js 的 openCustomerAssign） ---------- */
.kd-assign-what { margin: -6px 0 12px; color: var(--text-regular); font-size: 14px; }
.cp-dialog select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dcdfe5; border-radius: 10px; color: #14151c; background: #fff; font: inherit; font-size: 14.5px; }
.cp-dialog select:focus { outline: 0; border-color: var(--blue); }

/* 「我的客户」名单（2026-12-02 重做，版面照金蝶成交客户列表：筛选区、工具栏、一行一个客户）。列表的公共样式在 customer-directory.css。 */
.sd-my .sd-who { display:inline-flex; align-items:center; gap:10px; font-size:14px; color:#4e5969; white-space:nowrap; }
.sd-my .sd-who .xs-trigger, .sd-my .sd-who select { min-width:148px; height:36px; }
.sd-my .pv-actions { align-items:center; gap:12px; }
.workpage .ftable.sd-list table { min-width:1040px; table-layout:fixed; }
.sd-list col.cw-name { width:24%; }
.sd-list col.cw-phone { width:128px; }
.sd-list col.cw-stage { width:108px; }
.sd-list col.cw-amount { width:118px; }
.sd-list col.cw-owed { width:108px; }
.sd-list col.cw-day { width:100px; }
.sd-list col.cw-go { width:44px; }
.workpage .ftable.sd-roster table { min-width:720px; table-layout:fixed; }
.sd-roster col.cw-name { width:24%; }
.sd-roster col.cw-n { width:128px; }
.sd-roster col.cw-go { width:44px; }
.sd-roster td, .sd-list td { font-size:14px; color:#1d2129; }
.sd-roster td b { font-weight:600; }
.sd-todo { color:#b54708; }
.sd-link { color:#1a73b5; }
.sd-link:hover { text-decoration:underline; }
/* 列表上方那一行的提醒（2026-12-04 起是红色感叹号，鼠标停上去浮出说明；原来是一长行橙红字 .sd-hint）。 */
.sd-alert { width:20px; height:20px; display:inline-grid; place-items:center; margin-left:12px; border-radius:50%; color:#fff; background:var(--danger, #d13c4f); vertical-align:-4px; cursor:help; outline:0; transition:box-shadow .14s ease; }
a.sd-alert { cursor:pointer; }
.sd-alert svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; }
.sd-alert:hover, .sd-alert:focus-visible { box-shadow:0 0 0 4px var(--danger-bg, #fdeeef); }
a.sd-card { display:block; color:inherit; text-decoration:none; }
.sd-card header span { font-size:13.5px; font-weight:500; color:#1d2129; }
@media (max-width:1439px) { .workpage .ftable.sd-list table { min-width:940px; } .sd-list col.cw-phone { width:120px; } .sd-list col.cw-amount { width:104px; } .sd-list col.cw-owed { width:96px; } .sd-list col.cw-day { width:88px; } .sd-list col.cw-stage { width:100px; } }
@media (max-width:760px) { .sd-my .sd-who span { display:none; } .sd-alert { margin-left:8px; } }

/* 成交客户 / 跟进客户 两个页签（2026-12-02）：放在筛选区上面，样子照客户对照那一排页签。 */
.sd-kinds { display:flex; gap:36px; margin:-6px 0 18px; border-bottom:1px solid #e9ecf1; }
.sd-kinds a { position:relative; padding:14px 0 15px; color:#4e5969; font-size:16px; text-decoration:none; transition:color .15s ease; }
.sd-kinds a span { margin-left:8px; color:#86909c; font-size:14px; font-weight:500; }
.sd-kinds a:hover { color:#14151c; }
.sd-kinds a.on { color:#14151c; font-weight:600; }
.sd-kinds a.on span { color:var(--blue); }
.sd-kinds a.on::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2.5px; border-radius:3px; background:var(--blue); }
.sd-follow col.cw-day { width:112px; }
.sd-my .cd-total .cpc-tip { margin-left:6px; vertical-align:-2px; }
@media (max-width:760px) { .sd-kinds { gap:26px; margin-top:0; } .sd-kinds a { font-size:15px; } }

/* 销售管理 → 客户交接（handover.js）。上面两格选人、中间两张名单、底下一条确认；最下面是交接记录。 */
.ho-page .ho-board { padding:22px 28px 0; }
.ho-head h2, .ho-history h2 { margin:0; display:flex; align-items:center; gap:6px; color:#14151c; font-size:17px; font-weight:600; }
.ho-pick { display:flex; align-items:flex-end; gap:18px; margin:18px 0 22px; }
.ho-field { display:grid; gap:8px; flex:0 1 300px; color:#4e5969; font-size:14px; }
.ho-field .xs-trigger, .ho-field select { width:100%; height:42px; }
.ho-field select:not(.xs-native) { padding:0 12px; border:1px solid #d8dde5; border-radius:10px; color:#1d2129; background:#fff; font:inherit; font-size:15px; }
.ho-arrow { display:grid; place-items:center; width:28px; height:42px; color:#86909c; }
.ho-arrow svg { width:18px; height:18px; }
.ho-empty { margin:0; padding:44px 0 56px; border-top:1px solid #e9ecf1; color:#4e5969; font-size:15px; text-align:center; }
.ho-kinds { margin:0 0 14px; }
.ho-kinds button { position:relative; padding:14px 0 15px; border:0; background:none; color:#4e5969; font-size:16px; cursor:pointer; }
.ho-kinds button span { margin-left:8px; color:#86909c; font-size:14px; font-weight:500; }
.ho-kinds button.on { color:#14151c; font-weight:600; }
.ho-kinds button.on span { color:var(--blue); }
.ho-kinds button.on::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2.5px; border-radius:3px; background:var(--blue); }
.workpage .ftable.ho-table { max-height:480px; overflow:auto; }
.workpage .ftable.ho-table table { min-width:940px; table-layout:fixed; }
.workpage .ftable.ho-table thead th { position:sticky; top:0; z-index:2; background:#f6f8fb; }
.ho-table col.hw-check { width:52px; }
.ho-table col.hw-basis { width:118px; }
.ho-table col.hw-addr { width:30%; }
.ho-table col.hw-num { width:124px; }
.ho-table col.hw-stage { width:168px; }
.workpage .ftable.ho-table th.cd-check-col, .workpage .ftable.ho-table td.cd-check-col { width:52px; padding-left:18px; padding-right:0; }
.ho-table td { font-size:14px; color:#1d2129; }
.ho-noted { margin-left:8px; padding:0 7px; border-radius:6px; color:var(--accent-deep); background:var(--accent-soft); font-style:normal; font-size:12px; line-height:20px; }
.ho-accounts { display:flex; align-items:center; gap:8px; margin:16px 0 0; color:#1d2129; font-size:14px; cursor:pointer; }
.ho-accounts input { width:16px; height:16px; accent-color:var(--blue); }
.ho-accounts b { font-weight:600; }
.ho-accounts.off { cursor:default; } .ho-accounts.off > span:first-of-type { color:#86909c; } .ho-accounts.off b { font-weight:500; }
.ho-accounts-note { color:#b54708; }
.ho-foot { display:flex; align-items:center; gap:16px; margin:18px -28px 0; padding:16px 28px; border-top:1px solid #e9ecf1; background:#fbfcfd; border-radius:0 0 16px 16px; }
.ho-count { color:#4e5969; font-size:14px; } .ho-count b { margin:0 2px; color:#14151c; font-weight:600; }
.ho-error { flex:1; color:#b42318; font-size:14px; }
.ho-go { min-width:112px; height:40px; }
.ho-history { margin-top:18px; padding:22px 28px 24px; }
.ho-history header { margin-bottom:14px; }
.workpage .ho-history .ftable table { min-width:980px; table-layout:fixed; }
.ho-history col.hh-time { width:150px; } .ho-history col.hh-who { width:120px; } .ho-history col.hh-n { width:112px; } .ho-history col.hh-act { width:200px; }
.ho-history td, .ho-history th { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ho-history td { font-size:14px; color:#1d2129; } .ho-history td b { font-weight:600; }
.ho-history tr.ho-undone td { color:#86909c; } .ho-history tr.ho-undone td b { font-weight:500; }
/* 窄屏（1000px 以下）：客户列表那套样式会把表格藏起来换成卡片；交接页和销售名单没有卡片，表格照出、横着能划。 */
@media (max-width:1000px) { .workpage.cd-page .ftable.cd-table.ho-table:not([hidden]), .workpage.cd-page .ho-history .ftable.cd-table, .workpage.cd-page .ftable.cd-table.sd-roster { display:block; overflow:auto; } }
@media (max-width:760px) { .workpage .ftable.ho-table table { min-width:780px; } .ho-table col.hw-num { width:104px; } .ho-table col.hw-stage { width:140px; }
  .ho-pick { flex-direction:column; align-items:stretch; gap:10px; } .ho-arrow { display:none; } .ho-field { flex:none; } .ho-page .ho-board { padding:18px 16px 0; } .ho-foot { margin:16px -16px 0; padding:14px 16px; flex-wrap:wrap; } .ho-history { padding:18px 16px; } }

/* 名单上的名字（2026-12-04）：点了以他的身份看（预览），样子和客户名一样，鼠标停上去变蓝；整行都能点。 */
.sd-roster tr[data-preview] { cursor: pointer; }
.sd-roster .sd-person { padding: 0; border: 0; color: inherit; background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: color .12s ease; }
.sd-roster tr[data-preview]:hover .sd-person, .sd-roster .sd-person:focus-visible { color: var(--blue); outline: 0; }
.sd-roster tr[aria-busy="true"] { opacity: .55; pointer-events: none; }
.sd-roster span.cd-go { display: inline-grid; }
