/* CRM_LEAD_MANAGEMENT_UI_V1 */
.lead-kpis{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:12px;margin-bottom:14px}
.lead-kpis article{padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff;display:grid;gap:7px}
.lead-kpis small{color:var(--muted)}.lead-kpis strong{font-size:22px}.lead-kpis article.risk{border-color:#efb7bd;background:#fff7f7}.lead-kpis article.risk strong{color:var(--bad)}
.lead-filter-grid{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(5,minmax(140px,1fr));gap:12px;align-items:end}.lead-filter-grid .lead-search{grid-column:span 2}.lead-filter-actions{display:flex;gap:8px}
.lead-table{min-width:1320px}.lead-table td small{display:block;margin-top:4px;color:var(--muted);font-weight:500}.lead-link{border:0;background:transparent;padding:0;color:var(--accent);font-weight:800;text-align:left}.lead-link:hover{text-decoration:underline}
.lead-stage,.lead-priority{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.lead-stage.NEW{background:#edf2f7;color:#4a5568}.lead-stage.CONTACTED{background:#eaf2ff;color:#245ba7}.lead-stage.QUALIFIED,.lead-stage.NEEDS_ANALYSIS{background:#efeafe;color:#6846a5}.lead-stage.QUOTATION{background:#fff3d8;color:#8b5b00}.lead-stage.CONVERSION_PENDING{background:#eaf2ff;color:#245ba7}.lead-stage.WON{background:#e8f8f1;color:#257a59}.lead-stage.LOST,.lead-stage.DISQUALIFIED{background:#fdebec;color:var(--bad)}
.lead-priority{margin-top:7px}.lead-priority.LOW{background:#edf2f7;color:#64748b}.lead-priority.NORMAL{background:#eaf2ff;color:#245ba7}.lead-priority.HIGH{background:#fff3d8;color:#8b5b00}.lead-priority.URGENT{background:#fdebec;color:var(--bad)}
.lead-quick-assign{display:block;margin-top:7px;padding:5px 9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:var(--accent);font-weight:700}.lead-overdue{color:var(--bad);font-weight:700}.lead-empty{display:grid;place-items:center;gap:5px;min-height:140px;text-align:center}.lead-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.lead-pagination button:disabled{opacity:.45;cursor:not-allowed}
.lead-dialog{width:min(860px,calc(100% - 24px))}.lead-dialog.lead-wide{width:min(1080px,calc(100% - 24px))}.lead-dialog .modal-card{max-height:calc(100vh - 28px);overflow:auto}.lead-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-right:32px;margin-bottom:16px}.lead-modal-head h3{margin:0;font-size:24px}.lead-modal-head p{margin:4px 0 0}.lead-form{display:grid;gap:14px}.lead-section{padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff;margin-top:12px}.lead-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}.lead-section-head>b{font-size:15px}.lead-section-head>span{font-size:12px;color:var(--muted);text-align:right}.lead-footer{position:sticky;bottom:-23px;display:flex;justify-content:flex-end;gap:9px;margin:0 -23px -23px;padding:14px 23px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);z-index:5}
.lead-duplicate{display:grid;gap:8px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.lead-duplicate.clear{border-color:#bde3d5;background:#eefaf5;color:var(--good)}.lead-duplicate.warning{border-color:#efd8a7;background:#fffaf0;color:#8b5b00}.lead-duplicate.info{border-color:#bcd2f6;background:#f1f6ff;color:#245ba7}.lead-duplicate.error-state{border-color:#f2bcc2;background:#fff2f3;color:var(--bad)}.lead-match{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px;border-radius:10px;background:rgba(255,255,255,.85)}.lead-match span{display:grid;gap:3px}.lead-match small{color:inherit;opacity:.8}.lead-override{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px dashed #d8a44d;border-radius:13px}.lead-profile-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.lead-details>div{min-height:72px}.mobile-nav.lead-mobile-nav{grid-template-columns:repeat(8,1fr)}
@media(max-width:1250px){.lead-kpis{grid-template-columns:repeat(3,1fr)}.lead-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.lead-filter-grid .lead-search{grid-column:span 2}}
@media(max-width:720px){.lead-kpis{grid-template-columns:repeat(2,1fr)}.lead-filter-grid{grid-template-columns:1fr}.lead-filter-grid .lead-search{grid-column:auto}.lead-modal-head,.lead-section-head{flex-direction:column;align-items:flex-start}.lead-section-head>span{text-align:left}.lead-profile-actions{flex-direction:column}.lead-profile-actions button{width:100%}.lead-footer{flex-wrap:wrap}.lead-footer button{flex:1}.mobile-nav.lead-mobile-nav{grid-template-columns:repeat(8,1fr)}.mobile-nav.lead-mobile-nav button{font-size:8px}}
/* CRM_LEAD_STAGE_AGING_TIMER_V1 */
.lead-stage-age{display:inline-flex;flex-direction:column;gap:2px;margin-top:6px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;min-width:110px}.lead-stage-age small{font-size:9px!important;color:var(--muted)}.lead-stage-age b{font-size:11px}.lead-stage-age.warning{background:#fff8e8;border-color:#f4d17a;color:#8b5b00}.lead-stage-age.breached{background:#fff0f1;border-color:#f0b7bb;color:#b42318}
/* CRM_LEAD_MINUTE_BADGE_4DIGIT_V1 */
.lead-minute-head,.lead-minute-cell{width:62px;min-width:62px;text-align:center;padding-left:6px!important;padding-right:6px!important}.lead-minute-badge{display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:28px;padding:0 5px;border:0;border-radius:7px;font:800 12px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;letter-spacing:.4px;cursor:help;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}.lead-minute-badge.green{background:#dcfce7;color:#166534}.lead-minute-badge.yellow{background:#fef3c7;color:#92400e}.lead-minute-badge.red{background:#fee2e2;color:#b91c1c}.lead-minute-badge:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.lead-table{min-width:1390px}
