.lead-module { min-width:0; max-width:100%; }
.lead-tabs,.lead-toolbar,.lead-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.lead-toolbar input,.lead-toolbar select { width:auto; min-width:0; max-width:100%; flex:1 1 140px; }
.lead-toolbar .lead-search { flex:2 1 280px; }
.lead-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
.lead-card { min-width:0; padding:16px; border:1px solid #dbe2ea; border-radius:12px; background:#fff; overflow-wrap:anywhere; }
.lead-card h3 { margin:0 0 8px; }
.lead-card p { margin:8px 0; }
.lead-overlay { position:fixed; inset:0; z-index:1000; background:rgba(20,30,45,.45); display:flex; justify-content:flex-end; }
.lead-drawer { background:white; width:min(620px,100%); height:100%; overflow-y:auto; padding:22px; box-sizing:border-box; overflow-wrap:anywhere; }
.lead-drawer input,.lead-drawer select,.lead-drawer textarea { width:100%; min-width:0; box-sizing:border-box; margin:5px 0 12px; }
.lead-drawer textarea { min-height:100px; }
.lead-history { border-top:1px solid #ddd; padding:12px 0; }
.lead-mapping { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:14px 0; }
.lead-mapping select { width:100%; }
.lead-note { color:#536277; line-height:1.6; }
.lead-phone { font-size:20px; font-variant-numeric:tabular-nums; }
.lead-owner-filter { flex-basis:100%; }
.lead-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.lead-detail-head h2 { margin-bottom:8px; }
.lead-fixed-tag { width:min(240px,48%); font-weight:600; }
.lead-profile-edit { flex:1 1 320px; min-width:0; }
.lead-profile-edit label { display:block; font-weight:600; }
.lead-profile-edit .lead-note { margin:0 0 8px; font-size:13px; }
.lead-edit-resource { margin-top:2px; }
.lead-add-drawer { max-width:480px; }
.lead-tier { margin:18px 0; padding:16px; border:1px solid #dbe2ea; border-radius:14px; background:#f8fafc; }
.lead-tier-head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.lead-tier-head h3 { display:flex; align-items:center; gap:9px; margin:4px 0; }
.lead-tier-icon { width:14px; height:14px; border-radius:50%; display:inline-block; border:1px solid rgba(15,23,42,.12); }
.lead-tier-priority .lead-tier-icon { background:#f59e0b; }
.lead-tier-medium .lead-tier-icon { background:#eab308; }
.lead-tier-pending .lead-tier-icon { background:#86efac; }
.lead-tier-count { padding:2px 8px; border-radius:999px; background:#e8eef7; color:#475569; font-size:13px; font-weight:600; }
.lead-tier-help { max-width:660px; color:#475569; }
.lead-tier-help summary { cursor:pointer; color:#3153c8; font-weight:600; }
.lead-tier-help p { margin:8px 0 0; line-height:1.6; }
.lead-task-card { border-left:4px solid #cbd5e1; }
.lead-page-select { display:inline-flex; align-items:center; gap:6px; padding:0 4px; font-weight:600; }
.lead-selected-count { color:#3153c8; font-weight:600; align-self:center; }
.lead-page-jump { display:inline-flex; align-items:center; gap:6px; }
.lead-page-jump .input { width:72px; min-width:72px; margin:0; padding:8px; text-align:center; }
.lead-page-jump .btn { padding:8px 12px; }
.lead-tier-priority .lead-task-card { border-left-color:#f59e0b; }
.lead-tier-medium .lead-task-card { border-left-color:#eab308; }
.lead-tier-pending .lead-task-card { border-left-color:#86efac; }
.lead-list-shell { width:100%; overflow-x:auto; border:1px solid #dbe2ea; border-radius:12px; background:#fff; }
.lead-task-list-shell { overflow-x:hidden; }
.lead-list { width:100%; }
.lead-list-mine { min-width:1180px; }
.lead-list-tasks { min-width:0; }
.lead-list-head,.lead-list-row { display:grid; align-items:center; column-gap:16px; padding:0 16px; }
.lead-list-mine .lead-list-head,.lead-list-mine .lead-list-row { grid-template-columns:minmax(160px,1.15fr) minmax(112px,.78fr) minmax(142px,.82fr) minmax(138px,.9fr) minmax(210px,1.55fr) minmax(74px,.5fr) minmax(138px,.9fr) 106px; }
.lead-list-tasks .lead-list-head,.lead-list-tasks .lead-list-row { grid-template-columns:minmax(0,1.2fr) minmax(0,1.08fr) minmax(0,.78fr) minmax(0,.72fr) minmax(0,.55fr) minmax(0,.72fr) minmax(0,.88fr) minmax(0,1.18fr) minmax(0,.5fr) 92px; column-gap:8px; padding-left:10px; padding-right:10px; }
.lead-list-tasks .lead-list-head { font-size:12px; line-height:1.35; }
.lead-list-tasks .lead-list-row { font-size:13px; }
.lead-list-tasks .lead-list-customer { gap:7px; }
.lead-list-tasks .lead-list-action { padding:7px 8px; font-size:13px; }
.lead-list-head { min-height:46px; background:#f8fafc; color:#526176; border-bottom:1px solid #dbe2ea; font-size:13px; font-weight:700; }
.lead-list-head > span { min-width:0; overflow-wrap:anywhere; }
.lead-list-row { min-height:68px; border-bottom:1px solid #e7ecf2; color:#243247; font-size:14px; }
.lead-list-row:last-child { border-bottom:0; }
.lead-list-row:hover { background:#f8faff; }
.lead-list-row > div { min-width:0; }
.lead-list-customer { display:flex; align-items:center; gap:10px; }
.lead-list-customer input { flex:0 0 auto; }
.lead-list-customer span { display:flex; min-width:0; flex-direction:column; gap:3px; }
.lead-list-customer b,.lead-list-customer small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lead-list-customer b { color:#122033; }
.lead-list-customer small { color:#536277; font-size:13px; font-variant-numeric:tabular-nums; }
.lead-list-pill { display:inline-block; max-width:100%; padding:4px 9px; overflow:hidden; border-radius:999px; background:#eef2f7; color:#475569; font-size:12px; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.lead-tag-pill { background:#edf2ff; color:#3557c8; }
.lead-wechat-select { width:100%; min-width:132px; margin:0; padding:8px 28px 8px 9px; font-size:13px; }
.lead-list-content,.lead-list-reason { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lead-list-reason { font-weight:600; color:#394861; }
.lead-list-money { color:#3153c8; font-weight:700; font-variant-numeric:tabular-nums; }
.lead-list-action { padding:8px 10px; white-space:nowrap; }
.lead-list-empty { margin:0; padding:22px 16px; border:1px dashed #cbd5e1; border-radius:12px; background:#fff; color:#64748b; }
.lead-list-tier-priority { border-left:4px solid #f59e0b; padding-left:12px; }
.lead-list-tier-medium { border-left:4px solid #eab308; padding-left:12px; }
.lead-list-tier-pending { border-left:4px solid #86efac; padding-left:12px; }
@media(max-width:1100px) { .lead-task-list-shell { overflow-x:auto; } .lead-list-tasks { min-width:1080px; } }
@media(max-width:720px) { .lead-detail-head { display:block; } .lead-fixed-tag { width:100%; margin-top:12px; } .lead-page-jump { width:100%; } }
@media(max-width:600px) { .lead-grid { grid-template-columns:minmax(0,1fr); } .lead-drawer { padding:16px; } .lead-actions .btn { flex:1 1 auto; } }
.lead-stats-dashboard { display:grid; gap:14px; min-width:0; }
.lead-stats-filters { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.lead-stats-filters .select { width:180px; }
.lead-stats-filters label { display:flex; align-items:center; gap:6px; }
.lead-stats-filters input { width:150px; }
.lead-stats-period { display:flex; gap:4px; }
.lead-stats-live { margin-left:auto; color:#159856; font-weight:600; }
.lead-stats-live:before { content:""; display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:#16a45c; }
.lead-stats-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.lead-stats-heading h3,.lead-stats-panel h3 { margin:0; }
.lead-stats-heading small,.lead-stats-panel p { color:#64748b; }
.lead-stats-sales { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.lead-stats-sales-card,.lead-stats-panel,.lead-stats-kpis { background:#fff; border:1px solid #dbe2ea; border-radius:12px; }
.lead-stats-sales-card { padding:16px; border-top:4px solid #4365e4; }
.lead-stats-sales-card:nth-child(4n+2) { border-top-color:#16a36b; }
.lead-stats-sales-card:nth-child(4n+3) { border-top-color:#ee9b21; }
.lead-stats-sales-card:nth-child(4n+4) { border-top-color:#8663df; }
.lead-stats-sales-card>div { display:grid; grid-template-columns:1fr 1fr; margin-top:14px; }
.lead-stats-sales-card span { color:#64748b; }
.lead-stats-sales-card span+span { padding-left:14px; border-left:1px solid #e4e9f1; }
.lead-stats-sales-card strong { display:block; color:#15233b; font-size:24px; }
.lead-stats-sales-card small { font-size:12px; margin-left:4px; }
.lead-stats-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:12px 0; }
.lead-stats-kpis>div { text-align:center; border-right:1px solid #e4e9f1; }
.lead-stats-kpis>div:last-child { border-right:0; }
.lead-stats-kpis small { color:#536277; }
.lead-stats-kpis strong { font-size:24px; margin-left:8px; }
.lead-stats-kpis em { font-style:normal; color:#64748b; margin-left:3px; }
.lead-stats-main { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(270px,.9fr); gap:14px; }
.lead-stats-panel { padding:16px; min-width:0; }
.lead-stats-panel p { margin:5px 0 12px; font-size:13px; }
.lead-stats-table-wrap { overflow-x:auto; }
.lead-stats-table-wrap table { width:100%; border-collapse:collapse; font-size:13px; }
.lead-stats-table-wrap th,.lead-stats-table-wrap td { border-bottom:1px solid #e7ecf2; padding:9px 7px; text-align:left; }
.lead-stats-table-wrap th { white-space:nowrap; color:#536277; background:#f8fafc; }
.lead-stats-table-wrap td small { display:block; color:#64748b; }
.lead-stats-table-wrap td .btn { padding:5px 8px; font-size:12px; }
.lead-stats-content { max-width:290px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lead-stats-pill { border-radius:999px; padding:3px 8px; color:#2156bd; background:#eaf0ff; white-space:nowrap; }
.lead-stats-side { display:grid; align-content:start; gap:14px; }
.lead-stats-active { display:grid; grid-template-columns:1fr auto auto; gap:8px; padding:10px 0; border-bottom:1px solid #e7ecf2; font-size:13px; }
.lead-stats-active:last-child { border-bottom:0; }
.lead-stats-active small { grid-column:1/-1; color:#64748b; }
.lead-stats-result { display:grid; grid-template-columns:85px 1fr 30px; align-items:center; gap:8px; margin:13px 0; font-size:13px; }
.lead-stats-result i { height:9px; background:#e9eef7; border-radius:9px; overflow:hidden; }
.lead-stats-result i b { display:block; height:100%; background:#4468e8; border-radius:9px; }
.lead-stats-trend svg { width:100%; height:95px; border-bottom:1px solid #dbe2ea; }
.lead-stats-trend>div { display:flex; justify-content:space-between; font-size:12px; color:#64748b; }
.lead-stats-trend>div span b { display:block; text-align:center; color:#1e2d47; }
@media(max-width:1200px) { .lead-stats-sales { grid-template-columns:repeat(2,minmax(0,1fr)); } .lead-stats-main { grid-template-columns:1fr; } .lead-stats-side { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .lead-stats-sales,.lead-stats-side { grid-template-columns:1fr; } .lead-stats-kpis { grid-template-columns:repeat(2,1fr); gap:12px 0; } .lead-stats-kpis>div:nth-child(2) { border-right:0; } .lead-stats-filters .select { width:100%; } .lead-stats-live { margin-left:0; } }
