/* 线索页「表格界面」：只作用于 .lead-sheet / .lead-sheet-switch，老系统视图不受影响。 */
.lead-sheet-switch{display:inline-flex;align-self:start;justify-self:start;gap:0;margin:2px 0;padding:2px;border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9}
.lead-sheet-switch-button{min-width:96px;padding:5px 14px;border:0;border-radius:6px;background:transparent;color:#334155;font-size:13px;font-weight:600;cursor:pointer}
.lead-sheet-switch-button.active{background:#1d6ff2;color:#fff;box-shadow:0 1px 2px rgba(15,23,42,.18)}
.lead-sheet-switch-button:focus-visible{outline:2px solid #1d6ff2;outline-offset:1px}

#pageRoot .panel.lead-sheet,.panel.lead-sheet{padding:0;margin:0;overflow:hidden;border-radius:8px;min-width:0}
.lead-sheet-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid #d7dde5;background:#f8fafc;font-size:12px;color:#475569}
.lead-sheet-toolbar>b{font-size:14px;color:#0f172a}
.lead-sheet-tools{display:flex;align-items:center;gap:4px;margin-left:auto}
.lead-sheet-tools .btn{min-height:26px;padding:2px 9px}
.lead-sheet-wrap{overflow:auto;height:calc(100vh - 44px);max-height:calc(100vh - 44px);min-height:240px;background:#fff}
.lead-sheet-table{width:100%;min-width:1080px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.35;color:#0f172a}
.lead-sheet-table col.w-date{width:54px}.lead-sheet-table col.w-seq{width:44px}.lead-sheet-table col.w-city{width:64px}.lead-sheet-table col.w-source{width:72px}
.lead-sheet-table col.w-name{width:150px}.lead-sheet-table col.w-contact{width:108px}.lead-sheet-table col.w-yn{width:42px}.lead-sheet-table col.w-deal{width:60px}.lead-sheet-table col.w-study{width:auto}
.lead-sheet-table col.w-school{width:92px}.lead-sheet-table col.w-money{width:74px}
/* T3：老师列（窄，只放姓名）；操作列钉在最右边，宽度按最宽的「办退费 · 再成交」算 */
.lead-sheet-table col.w-teacher{width:84px}.lead-sheet-table col.w-op{width:190px}.lead-sheet-table col.w-follow{width:320px}
.lead-sheet-table .c-op{text-align:left}
.lead-sheet-table .c-op .btn{padding:1px 8px;line-height:20px}
.lead-sheet-table .c-op .lead-sheet-op-refund{margin-right:16px}
.lead-sheet-teacher{max-width:100%;padding:0;border:0;background:none;color:#1d4ed8;font:inherit;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-sheet-teacher:hover{text-decoration:underline}
.lead-sheet-teacher-item{padding:6px 0;border-top:1px solid #e2e8f0;font-size:13px}
.lead-sheet-teacher-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
.lead-sheet-teacher-status{color:#475569}
.lead-sheet-table th,.lead-sheet-table td{position:relative;padding:4px 6px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;background:#fff;vertical-align:middle;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead-sheet-table thead th{height:30px;background:#eef2f7;color:#334155;font-size:12px;font-weight:700;border-bottom:1px solid #c5ced9}
.lead-sheet-table .c-date,.lead-sheet-table .c-seq{text-align:right;color:#475569;font-variant-numeric:tabular-nums}
.lead-sheet-table .c-yn{text-align:center;padding-left:2px;padding-right:2px}
.lead-sheet-table .c-money{text-align:right;font-variant-numeric:tabular-nums}
.lead-sheet-table th.c-money{text-align:right}.lead-sheet-table th.c-yn{text-align:center}
/* 左侧冻结：日期 / 序号 / 城市 / 来源渠道 / 客户姓名（偏移 = 前面各列宽之和：54 / 44 / 64 / 72，改列宽要一起改） */
.lead-sheet-table .c-date{position:sticky;left:0;z-index:2}
.lead-sheet-table .c-seq{position:sticky;left:54px;z-index:2}
.lead-sheet-table .c-city{position:sticky;left:98px;z-index:2}
.lead-sheet-table .c-source{position:sticky;left:162px;z-index:2}
.lead-sheet-table .c-name{position:sticky;left:234px;z-index:2;box-shadow:2px 0 0 #cbd5e1}
.lead-sheet-table thead .c-date,.lead-sheet-table thead .c-seq,.lead-sheet-table thead .c-city,.lead-sheet-table thead .c-source,.lead-sheet-table thead .c-name{z-index:4}
.lead-sheet-table .c-study{white-space:normal}
.lead-sheet-row{height:30px;cursor:pointer}
.lead-sheet-row:hover td{background:#f1f6ff}
.lead-sheet-row:focus-visible td{background:#e8f0fe}
.lead-sheet-row:focus-visible{outline:none}
.lead-sheet-day-start td{border-top:2px solid #94a3b8}
tbody>.lead-sheet-day-start:first-child td{border-top:0}
.lead-sheet-yn{display:inline-block;min-width:22px;padding:0 5px;border-radius:9px;font-size:12px;line-height:18px;font-weight:700;text-align:center}
.lead-sheet-yn.dark{background:#334155;color:#fff}.lead-sheet-yn.gold{background:#f5c22b;color:#5b4300}.lead-sheet-yn.no{background:transparent;color:#94a3b8;font-weight:500;box-shadow:inset 0 0 0 1px #d5dbe3}
.lead-sheet-star{display:inline-block;margin:0 3px 0 0;padding:0;border:0;background:none;font-size:15px;line-height:1;color:#a8b3c2;cursor:pointer;vertical-align:-1px}
.lead-sheet-star.on{color:#f08c00}
.lead-sheet-name-text{font-weight:600}
.lead-sheet-study-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-sheet-address{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.lead-sheet-address-text{overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:13px;color:#0f172a}
.lead-sheet-address .tag,.lead-sheet-address .btn{flex:none;min-height:20px;padding:0 6px;font-size:11px;line-height:18px}
.lead-sheet-muted{color:#94a3b8}
/* 铅笔小框：鼠标移到可改格子才出现 */
.lead-sheet-pencil{position:absolute;top:2px;right:2px;display:none;width:20px;height:20px;padding:0;border:1px solid #9db7e8;border-radius:4px;background:#fff;color:#1d6ff2;font-size:12px;line-height:18px;cursor:pointer;z-index:1}
.lead-sheet-editable:hover .lead-sheet-pencil,.lead-sheet-pencil:focus-visible{display:block}
.lead-sheet-editable:hover{box-shadow:inset 0 0 0 1px #9db7e8}
.lead-sheet-input{width:100%;min-height:24px;padding:1px 4px;border:1px solid #1d6ff2;border-radius:4px;font:inherit}
.lead-sheet-flash-ok{animation:leadSheetOk 1.4s ease-out}
.lead-sheet-flash-bad{animation:leadSheetBad 1.4s ease-out}
@keyframes leadSheetOk{0%{background:#c6f6d5}100%{background:#fff}}
@keyframes leadSheetBad{0%{background:#fed7d7}100%{background:#fff}}
.lead-sheet-empty{padding:20px;text-align:center;color:#64748b}
.lead-sheet-add td{background:#fbfdff}
.lead-sheet-add-button{width:100%;padding:5px;border:1px dashed #9db7e8;border-radius:6px;background:#f5f9ff;color:#1d6ff2;font-weight:600;cursor:pointer}
.lead-sheet-add.editing td{overflow:visible;white-space:normal}
.lead-sheet-add select,.lead-sheet-add input{width:100%;min-height:26px;padding:1px 4px;font:inherit;font-size:12px}
.lead-sheet-add .c-study input+input{margin-top:3px}
.lead-sheet-add-actions{display:table-cell}
.lead-sheet-add-actions .btn{margin-right:4px}
.lead-sheet-confirm{margin-right:10px;font-weight:600}
.lead-sheet-error{color:#c53030;font-size:12px;white-space:normal}
/* 学情小浮层 */
.lead-sheet-popover{position:fixed;z-index:2000;display:grid;gap:7px;padding:12px;border:1px solid #c5ced9;border-radius:10px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.2);font-size:13px}
.lead-sheet-popover label{display:grid;gap:3px;font-weight:600;color:#334155}
.lead-sheet-popover input,.lead-sheet-popover select,.lead-sheet-popover textarea{width:100%;padding:4px 6px;font:inherit;font-weight:400;border:1px solid #cbd5e1;border-radius:6px}
.lead-sheet-popover-grid{display:grid;grid-template-columns:110px 1fr;gap:8px}
.lead-sheet-popover fieldset{margin:0;padding:2px 6px 5px;border:1px solid #e2e8f0;border-radius:6px}
.lead-sheet-popover legend{font-weight:600;color:#334155;font-size:12px}
.lead-sheet-popover .lead-sheet-check{display:inline-flex;align-items:center;gap:3px;margin-right:8px;font-weight:400}
.lead-sheet-popover .lead-sheet-check input{width:auto}
.lead-sheet-parse{color:#1d4ed8;font-size:12px;min-height:0}
.lead-sheet-parse:empty,.lead-sheet-popover .lead-sheet-error:empty{display:none}
.lead-sheet-popover-actions{display:flex;gap:6px;justify-content:flex-end}
/* 铺满屏幕：表格盖住整个窗口，只留细工具栏 */
.panel.lead-sheet.lead-sheet-full,#pageRoot .panel.lead-sheet.lead-sheet-full{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;border-radius:0}
.lead-sheet-full .lead-sheet-wrap{flex:1;height:auto;max-height:none}
@media(max-width:760px){.lead-sheet-switch-button{min-width:84px}.lead-sheet-wrap{height:70vh;max-height:70vh}.lead-sheet-tools{margin-left:0}}
/* 统一样式（unified-ui.css）用 html body #pageRoot td{…!important} 撑大了格子；表格界面这里按电子表格密度收紧，只限 .lead-sheet 内。 */
html body #pageRoot .panel.lead-sheet{padding:0!important;overflow:hidden}
html body #pageRoot .lead-sheet-table th,html body #pageRoot .lead-sheet-table td{padding:3px 6px!important;border:0!important;border-right:1px solid #e2e8f0!important;border-bottom:1px solid #e2e8f0!important;font-size:13px!important;line-height:1.35!important}
html body #pageRoot .lead-sheet-table thead th{background:#eef2f7!important;color:#334155!important;font-size:12px!important;font-weight:700!important;border-bottom:1px solid #c5ced9!important;overflow:hidden;text-overflow:clip}
html body #pageRoot .lead-sheet-table .c-yn{padding-left:2px!important;padding-right:2px!important}
html body #pageRoot .lead-sheet-table tr.lead-sheet-day-start td{border-top:2px solid #94a3b8!important}
html body #pageRoot .lead-sheet-table tbody>tr.lead-sheet-day-start:first-child td{border-top:0!important}
html body #pageRoot .lead-sheet-table .c-name{box-shadow:2px 0 0 #cbd5e1}
html body #pageRoot .lead-sheet-address .btn,html body #pageRoot .lead-sheet-address .tag{min-height:18px!important;line-height:16px!important;padding:0 6px!important;font-size:11px!important}
html body #pageRoot .lead-sheet-add td{padding:4px 6px!important}
html body #pageRoot .lead-sheet-add-actions .btn{min-height:26px!important;line-height:24px!important}
html body #pageRoot .lead-sheet-table td .lead-sheet-input{min-height:24px!important;font-size:13px!important}
html body #pageRoot .lead-sheet-table td.c-contact,html body #pageRoot .lead-sheet-table th.c-contact{text-align:left!important}
/* 第3轮：来源 / 城市小标签（浅底深字）。来源按渠道配色；城市按名字稳定取色，更淡，避开红黄。编辑态下拉不变。 */
.lead-sheet-tag{display:inline-block;max-width:100%;padding:0 6px;border-radius:4px;font-size:12px;line-height:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}
.lead-sheet-tag.src-xianyu{background:#fdf1c4;color:#7a5200}
.lead-sheet-tag.src-douyin{background:#d9dde3;color:#111827}
.lead-sheet-tag.src-xhs{background:#fde4ef;color:#b3195f}
.lead-sheet-tag.src-kuaishou{background:#ffe6d1;color:#b4470c}
.lead-sheet-tag.src-toufang{background:#dce9ff;color:#1d4ed8}
.lead-sheet-tag.src-shipinhao{background:#e9ddff;color:#5b21b6}
.lead-sheet-tag.src-pyq{background:#dcf5e3;color:#15803d}
.lead-sheet-tag.src-referral{background:#c9e6d4;color:#0f4d2c}
.lead-sheet-tag.src-ditui{background:#d3f3ef;color:#0f6f69}
.lead-sheet-tag.src-other{background:#eef1f5;color:#64748b}
.lead-sheet-tag.src-legacy{background:transparent;color:#94a3b8;font-weight:500;box-shadow:none;padding:0}
.lead-sheet-city-tag{font-weight:500;box-shadow:none}
.lead-sheet-city-tag.city-0{background:#eef3fc;color:#3d5a8c}
.lead-sheet-city-tag.city-1{background:#f1effb;color:#574b8f}
.lead-sheet-city-tag.city-2{background:#ecf7f5;color:#2f6b63}
.lead-sheet-city-tag.city-3{background:#f4effa;color:#684a86}
.lead-sheet-city-tag.city-4{background:#ecf4f9;color:#38657f}
.lead-sheet-city-tag.city-5{background:#f2f4f7;color:#4b5563}
.lead-sheet-city-tag.city-6{background:#eef7ef;color:#3e6b48}
.lead-sheet-city-tag.city-7{background:#eff2fa;color:#44567a}
/* 学情第 1 行：年级·科目始终完整，备注其次，最近跟进最先被省略；悬停 title 看全文 */
.lead-sheet-study-line{display:flex;align-items:center;min-width:0}
.lead-sheet-study-line>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-sheet-need{flex:0 0 auto;max-width:100%;font-weight:600}
.lead-sheet-notes{flex:0 1 auto}
.lead-sheet-follow{flex:0 100000 auto;color:#64748b}
.lead-sheet-sep{flex:none;width:1px;height:12px;margin:0 7px;background:#cbd5e1}
.lead-sheet-tip{position:fixed;z-index:2100;display:grid;gap:3px;padding:7px 10px;border:1px solid #c5ced9;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18);font-size:13px;line-height:1.45;color:#0f172a;white-space:normal;word-break:break-all;pointer-events:none}
.lead-sheet-tip>div:nth-child(n+2){color:#334155}

/* 第4轮：表格界面下的顶部（三行），只在 .lead-sheet-top 内生效 */
html body #pageRoot .lead-sheet-top{display:flex;flex-direction:column;gap:8px;margin:0 0 10px;padding:10px 14px;border:1px solid #d7dde5;border-radius:10px;background:#fff}
.lead-sheet-top-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.lead-sheet-top-head h1{margin:0;font-size:20px;line-height:28px;color:#0f172a}
.lead-sheet-info{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;color:#64748b;font-size:14px;cursor:help}
.lead-sheet-info:focus-visible{outline:2px solid #1d6ff2}
.lead-sheet-top-head .lead-sheet-switch{margin:0 0 0 6px}
.lead-sheet-top-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
html body #pageRoot .lead-sheet-top .btn{min-height:32px;padding:4px 12px;font-size:13px}
html body #pageRoot .lead-sheet-top .btn.lead-sheet-text-btn{border-color:transparent;background:transparent;color:#475569;padding:4px 6px;box-shadow:none}
html body #pageRoot .lead-sheet-top .btn.lead-sheet-text-btn:hover{color:#1d6ff2}
.lead-sheet-top-sep{width:1px;height:20px;background:#d7dde5;margin:0 2px}
.lead-sheet-menu{position:relative}
.lead-sheet-menu>summary{list-style:none;cursor:pointer;white-space:nowrap}
.lead-sheet-menu>summary::-webkit-details-marker,.lead-sheet-time>summary::-webkit-details-marker{display:none}
.lead-sheet-menu-list{position:absolute;z-index:40;top:calc(100% + 4px);right:0;display:flex;flex-direction:column;gap:4px;min-width:170px;padding:6px;border:1px solid #d7dde5;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.14)}
.lead-sheet-tab-more .lead-sheet-menu-list{left:0;right:auto}
html body #pageRoot .lead-sheet-menu-list .btn,.lead-sheet-menu-list .lead-sheet-tab{justify-content:flex-start;text-align:left;width:100%}
/* 第2行：搜索 + 时间 + 筛选 */
html body #pageRoot .lead-sheet-top-filters .customer-query-panel{display:contents}
html body #pageRoot .lead-sheet-top-filters .customer-query-form{display:flex;align-items:center;gap:0;flex:1 1 380px;max-width:560px;min-width:300px;margin:0;padding:0;border:0;background:none}
html body #pageRoot .lead-sheet-top-filters .customer-query-scope-label{flex:none;margin:0;padding:0 8px;height:32px;line-height:30px;border:1px solid #bfd3f5;border-right:0;border-radius:6px 0 0 6px;background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:600;white-space:nowrap}
html body #pageRoot .lead-sheet-top-filters .customer-query-field{flex:1;min-width:0;margin:0}
html body #pageRoot .lead-sheet-top-filters .customer-query-field input{width:100%;height:32px;min-height:32px;border-radius:0 6px 6px 0;font-size:13px}
html body #pageRoot .lead-sheet-top-filters .customer-query-actions{display:flex;gap:4px;margin:0 0 0 6px;flex:none}
html body #pageRoot .lead-sheet-top-filters .customer-query-results{order:9;flex:1 0 100%}
html body #pageRoot .lead-sheet-top-filters select{height:32px;min-height:32px;max-width:220px;font-size:13px}
.lead-sheet-filter-sep{display:inline-block;width:1px;height:22px;background:#cbd5e1;margin:0 4px;cursor:help}
.lead-sheet-time{position:relative}
.lead-sheet-time>summary{list-style:none;white-space:nowrap}
html body #pageRoot .lead-sheet-time-button{border-color:#93b4ea;color:#0f172a}
.lead-sheet-time-menu{position:absolute;z-index:40;top:calc(100% + 4px);left:0;width:300px;padding:6px;border:1px solid #d7dde5;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.16)}
.lead-sheet-time-group{display:flex;flex-direction:column;padding:2px 0 4px;border-bottom:1px solid #eef2f7}
.lead-sheet-time-group:last-child{border-bottom:0}
.lead-sheet-time-group>small{padding:4px 8px 2px;color:#94a3b8;font-size:11px}
.lead-sheet-time-opt{display:flex;align-items:center;gap:6px;padding:5px 8px;border:0;border-radius:5px;background:none;color:#0f172a;font-size:13px;text-align:left;cursor:pointer}
.lead-sheet-time-opt:hover{background:#f1f5f9}
.lead-sheet-time-opt.active{background:#e8f0fe;color:#1d4ed8;font-weight:700}
.lead-sheet-time-opt small{color:#64748b;font-weight:400}
.lead-sheet-time-custom{display:flex;align-items:center;gap:4px;padding:2px 8px}
.lead-sheet-time-custom input{width:118px;height:28px;font-size:12px}
.lead-sheet-time [data-reporting-pending]:empty{display:none}
.lead-sheet-time [data-reporting-pending]{margin:4px 8px 0;align-self:flex-start}
/* 第3行：分类页签 + 分级 */
.lead-sheet-top-tabs{gap:4px}
.lead-sheet-tab{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid transparent;border-radius:6px;background:none;color:#334155;font-size:13px;line-height:22px;cursor:pointer;white-space:nowrap}
.lead-sheet-tab:hover{background:#f1f5f9}
.lead-sheet-tab.active{background:#e8f0fe;border-color:#bfd3f5;color:#1d4ed8;font-weight:700}
.lead-sheet-tab-n{min-width:18px;padding:0 6px;border-radius:9px;background:#e2e8f0;color:#475569;font-size:11px;line-height:17px;text-align:center;font-weight:600}
.lead-sheet-tab.active .lead-sheet-tab-n{background:#1d6ff2;color:#fff}
.lead-sheet-grade{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
html body #pageRoot .lead-sheet-grade .btn{min-height:26px;padding:2px 9px;font-size:12px}
html body #pageRoot .lead-sheet-link{margin-left:auto;padding:2px 4px;border:0;background:none;color:#1d6ff2;font-size:13px;cursor:pointer;white-space:nowrap}
.lead-sheet-link:hover{text-decoration:underline}
/* 统计数字：表格标题栏里的一行小数字 */
.lead-sheet-kpi{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;padding-left:10px;border-left:1px solid #cbd5e1;color:#475569}
.lead-sheet-kpi:empty{display:none}
.lead-sheet-kpi-item b{color:#0f172a;font-size:13px}
.lead-sheet-kpi-bar{margin:0 0 8px;padding:6px 10px;border:1px solid #d7dde5;border-radius:8px;background:#f8fafc;font-size:12px}
.lead-sheet-kpi-bar .lead-sheet-kpi{border-left:0;padding-left:0}

/* 第4轮：1440 宽排成一行的收紧 */
html body #pageRoot .lead-sheet-top-head .lead-sheet-switch-button{min-width:68px;padding:4px 10px}
html body #pageRoot .lead-sheet-top-actions .btn{padding:4px 10px}
html body #pageRoot .lead-sheet-top .btn.lead-sheet-text-btn{font-size:12px;padding:4px 4px}
html body #pageRoot .lead-sheet-top-filters .customer-query-form{flex:0 1 330px;min-width:250px;max-width:420px}
html body #pageRoot .lead-sheet-top-filters .customer-query-actions .btn{padding:4px 10px}
/* 下拉框按当前选中文字定宽，放得下「全部客户所属工作微信」；过长的名字省略，悬停 title 看全名 */
html body #pageRoot .lead-sheet-top-filters select{field-sizing:content;width:auto;min-width:0;max-width:200px;padding-right:22px;text-overflow:ellipsis}
html body #pageRoot .lead-sheet-grade .btn{padding:2px 7px}
.lead-sheet-tab{padding:4px 8px}
html body #pageRoot .lead-sheet-top .lead-sheet-top-actions .btn.lead-sheet-text-btn.lead-sheet-text-btn{border-color:transparent!important;background:transparent!important;box-shadow:none!important;color:#475569!important;font-size:12px!important;padding:4px 4px!important;min-width:0!important}
html body #pageRoot .lead-sheet-top .lead-sheet-top-actions .btn.lead-sheet-text-btn.lead-sheet-text-btn:hover{color:#1d6ff2!important}
html body #pageRoot .lead-sheet-top-filters .customer-query-form{flex:1 1 300px}
html body #pageRoot .lead-sheet-top{gap:6px;padding:8px 14px}
html body #pageRoot .lead-sheet-top-head .lead-sheet-switch{margin:0 0 0 6px!important}
/* 时间下拉：自定义一行放得下两个日期框和「确定」 */
.lead-sheet-time-menu{width:340px}
html body #pageRoot .lead-sheet-time-custom .btn{flex:none;white-space:nowrap;padding:0 10px}
.lead-sheet-time-custom input{width:124px;flex:none}

/* 第5轮：冻结顶部 + 左 5 列。表头和新增行（表头第二行）整块吸顶；左 5 列沿用上面的 sticky left；交叉格两向都固定 */
.lead-sheet-table thead{position:sticky;top:0;z-index:5}
.lead-sheet-table thead tr.lead-sheet-add td{position:relative;background:#f5f9ff;border-bottom:1px solid #c5ced9}
.lead-sheet-table thead tr.lead-sheet-add td.c-date,.lead-sheet-table thead tr.lead-sheet-add td.c-seq,.lead-sheet-table thead tr.lead-sheet-add td.c-city,.lead-sheet-table thead tr.lead-sheet-add td.c-source,.lead-sheet-table thead tr.lead-sheet-add td.c-name{position:sticky;z-index:4}
html body #pageRoot .lead-sheet-table thead tr.lead-sheet-add td{background:#f5f9ff!important;border-bottom:1px solid #c5ced9!important}
html body #pageRoot .lead-sheet-table thead tr.lead-sheet-add:not(.editing) td{padding:3px 6px!important}
.lead-sheet-table thead .lead-sheet-add-button{position:sticky;left:8px;width:auto;min-width:240px;padding:3px 14px;text-align:left}
.lead-sheet-table thead tr.lead-sheet-add:not(.editing) td{overflow:visible}
/* 新增行的城市 / 来源下拉：去掉原生箭头占位，换成小三角，窄列里也放得下「城市」「小红书」 */
html body #pageRoot .lead-sheet-add select[data-add-field]{appearance:none;-webkit-appearance:none;padding:1px 13px 1px 4px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 3px center;text-overflow:clip}
/* 刚保存的新客户：整行浅黄约 2 秒 */
html body #pageRoot .lead-sheet-table tr.lead-sheet-row-new td{background:#fff3bf!important}

/* 表格界面分页（每页 200 行） */
#pageRoot .lead-sheet .lead-sheet-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:6px 8px;font-size:12px;color:var(--muted,#667085)}

/* T6 剩余：老板表格界面搜索框太窄（1440 宽只有 173px，提示被截断，「全部状态」单独折到第二行）。
   搜索框放宽到能放下整句提示；「仅筛选下方清单」分隔改成换行，筛选下拉整组排在第二行，不再拆开折行 */
html body #pageRoot .lead-sheet-top-filters .customer-query-form{flex:0 1 680px;min-width:300px;max-width:680px}
html body #pageRoot .lead-sheet-top-filters>.lead-sheet-filter-sep{flex:0 0 100%;width:auto;height:0;margin:0;background:none}
/* T1：联系方式复制按钮固定在格子右侧，不撑宽列，文字照样省略号截断；鼠标移到行上更明显 */
html body #pageRoot .lead-sheet-table td.c-contact.has-copy{padding-right:24px!important}
.lead-sheet-copy{position:absolute;top:50%;right:3px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;margin-top:-9px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer;opacity:.6}
.lead-sheet-row:hover .lead-sheet-copy,.lead-sheet-copy:focus-visible{opacity:1;color:#1d6ff2;border-color:#9db7e8;background:#fff}
.lead-sheet-copy:hover{background:#eef4ff}
.lead-sheet-copy svg{display:block;width:12px;height:12px;pointer-events:none}

/* 关老系统：「跟进」列（老系统行的跟进按钮＋状态/资料完整度，第二行下次任务·负责人）、逾期行底色、操作列「更多」浮层 */
.lead-sheet-table .c-follow .lead-sheet-follow-line{display:flex;align-items:center;gap:4px;overflow:hidden}
.lead-sheet-table .c-follow .btn{padding:0 7px;line-height:20px;min-height:0}
.lead-sheet-table .c-follow .tag{flex:none}
.lead-sheet-table .lead-sheet-follow-meta{color:#64748b;font-size:12px;overflow:hidden;text-overflow:ellipsis}
/* 补单定稿：姓名格名字后面的行内客户分级下拉（同「所有客户」页签 data-customer-grade）；名字过长先省略名字，下拉不被挤掉；未分级灰字 */
.lead-sheet-table .c-name .lead-sheet-name-text{display:inline-block;max-width:calc(100% - 78px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
/* 补单§7：有分级下拉时给下拉留够位（星标 18 + 间距 4 + 「未分级▾」约 60），名字先省略 */
.lead-sheet-table .c-name:has(.lead-sheet-name-grade select) .lead-sheet-name-text{max-width:calc(100% - 84px)}
.lead-sheet-table .lead-sheet-name-grade{display:inline-block;margin-left:4px;vertical-align:middle}
html body #pageRoot .lead-sheet-table .lead-sheet-name-grade select{height:20px;min-height:0;width:auto;max-width:none;field-sizing:content;padding:0 2px!important;font-size:12px!important;line-height:18px;color:#0f172a}
html body #pageRoot .lead-sheet-table .lead-sheet-name-grade select:has(option[value=""]:checked){color:#94a3b8}
html body #pageRoot .lead-sheet-table .lead-sheet-name-grade .tag{font-size:11px;padding:0 4px;line-height:16px}
/* 补单§8：窄屏（列序跟进在学情前，即 colgroup 里 w-follow 紧跟着 w-study）分级下拉挪到名字下一行，名字占满第一行；宽屏不变 */
.lead-sheet-table:has(>colgroup>col.w-follow+col.w-study) .c-name:has(.lead-sheet-name-grade select) .lead-sheet-name-text{max-width:calc(100% - 18px)}
.lead-sheet-table:has(>colgroup>col.w-follow+col.w-study) .c-name .lead-sheet-name-grade:has(select){display:block;margin:1px 0 0 18px;line-height:0}
html body #pageRoot .lead-sheet-table:has(>colgroup>col.w-follow+col.w-study) .lead-sheet-name-grade select{height:24px!important;min-height:0!important}
.lead-sheet-table .c-op .lead-sheet-op-more{margin-left:4px}
/* 补单定稿：跟进格 第一行最近跟进＋右上「✎ 跟进」（常显，样式同学情铅笔）；第二行下一步、状态、待完善 */
.lead-sheet-table .c-follow .lead-sheet-follow-line{justify-content:space-between}
.lead-sheet-table .lead-sheet-follow-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-sheet-table .c-follow .lead-sheet-follow-line>.btn,.lead-sheet-table .c-follow .lead-sheet-follow-line>.tag{flex:none}
.lead-sheet-follow-edit{flex:none;height:20px;padding:0 6px;border:1px solid #9db7e8;border-radius:4px;background:#fff;color:#1d6ff2;font-size:12px;line-height:18px;cursor:pointer;white-space:nowrap}
.lead-sheet-follow-edit:hover,.lead-sheet-follow-edit:focus-visible{background:#eef4ff}
.lead-sheet-table .lead-sheet-follow-meta{display:flex;align-items:center;gap:4px;margin-top:3px;white-space:nowrap}
.lead-sheet-table .lead-sheet-follow-meta>*{flex:none}
.lead-sheet-next{color:#64748b}
.lead-sheet-next.late{padding:0 4px;border-radius:3px;background:#fef2f2;color:#dc2626}
.lead-sheet-next.today{padding:0 4px;border-radius:3px;background:#fff7ed;color:#c2410c}
.lead-sheet-task{color:#334155}
.lead-sheet-follow-owner{color:#64748b}
html body #pageRoot .lead-sheet-table .c-follow .tag{font-size:11px;padding:0 4px;line-height:16px}
html body #pageRoot .lead-sheet-table .c-follow .tag.lead-sheet-info-box{border:1px dashed #f59e0b;background:#fff;color:#b45309}
/* 补单②：成交页签「是否出单」格下的逐笔成交单状态 */
.lead-sheet-table .lead-sheet-deal-status{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:2px}
html body #pageRoot .lead-sheet-table .lead-sheet-deal-status .tag{font-size:11px;padding:0 4px;line-height:16px;white-space:nowrap}
.lead-sheet-table tr.overdue-2>td{background:#fffdf7}
html body #pageRoot .lead-sheet-table tr.overdue-3>td{background:#fff8f6}
.lead-sheet-more-pop .lead-sheet-more-facts>div{margin:4px 0}
.lead-sheet-more-pop .lead-sheet-more-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
/* 自动首次跟进①：新增行加微格（是/否 + 工作微信 + 小字），工作微信下拉可比列宽 */
html body #pageRoot .lead-sheet-table .lead-sheet-add td.c-yn{position:relative;vertical-align:top;overflow:visible!important}
html body #pageRoot .lead-sheet-add .c-yn .lead-sheet-add-wx{width:auto;min-width:150px;max-width:220px;margin-top:3px;position:relative;z-index:5}
.lead-sheet-add-hint{display:block;margin-top:2px;font-size:11px;line-height:14px;color:#b45309;white-space:nowrap;position:relative;z-index:5}
