:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}.app-shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#0b1220;color:#fff;padding:24px 18px;display:flex;flex-direction:column}.brand{font-weight:800;font-size:22px;letter-spacing:.4px;margin:2px 8px 28px}.brand span{color:#8da2fb}.sidebar nav{display:grid;gap:7px}.nav-item{border:0;background:transparent;color:#aab4c4;text-align:left;padding:12px 14px;border-radius:10px;font-weight:600;cursor:pointer}.nav-item.active,.nav-item:hover{background:#182236;color:#fff}.sidebar-footer{margin-top:auto;display:flex;gap:10px;align-items:center;padding:12px}.sidebar-footer small{display:block;color:#7f8ba0;margin-top:2px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#24324c;font-size:12px;font-weight:700}.main{padding:28px 32px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{margin:0 0 4px;color:#7b8494;font-size:12px;text-transform:uppercase;letter-spacing:.12em}.topbar h1{margin:0;font-size:28px}.top-actions{display:flex;gap:10px}.top-actions input{width:320px}.primary{background:#111827!important;color:white!important;border-color:#111827!important}input,select,textarea,button{font:inherit}input,select,textarea{border:1px solid #d9dee7;border-radius:10px;padding:10px 12px;background:white;outline:none}input:focus,select:focus,textarea:focus{border-color:#8c98aa}.top-actions button,.dialog-actions button,.action-row button{border:1px solid #d9dee7;background:white;border-radius:10px;padding:10px 14px;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stat{background:white;border:1px solid #e7eaf0;border-radius:14px;padding:17px}.stat span{color:#7a8495;font-size:13px}.stat strong{display:block;font-size:27px;margin-top:7px}.workspace{display:grid;grid-template-columns:minmax(430px,.9fr) minmax(480px,1.1fr);gap:16px}.panel{background:white;border:1px solid #e4e7ec;border-radius:16px;min-height:590px;overflow:hidden}.panel-head{padding:18px 18px 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef0f3}.panel-head h2{font-size:17px;margin:0}.panel-head small{color:#8b94a3}.lead-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:15px 18px;border-bottom:1px solid #f0f1f4;cursor:pointer}.lead-row:hover,.lead-row.active{background:#f8fafc}.lead-name{font-weight:700}.lead-meta{color:#7b8493;font-size:13px;margin-top:5px;display:flex;gap:8px;flex-wrap:wrap}.badge{font-size:12px;padding:5px 8px;border-radius:999px;background:#edf2f7;color:#455468;white-space:nowrap}.badge.Callback{background:#fff4cf;color:#8d6700}.badge.Potential{background:#e5f6ed;color:#11643d}.badge.DEP{background:#2b1b22;color:#ffd7df;border:1px solid #6d3341}.badge.Converted{background:#e8eefc;color:#3158a8}.badge.Not-Interested,.badge.Do-Not-Call{background:#fdecec;color:#9f2f2f}.detail-wrap{padding:22px}.identity{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.identity h2{margin:0;font-size:23px}.contact-lines{margin-top:8px;color:#657082;font-size:14px;display:grid;gap:5px}.call-btn{border:0;background:#111827;color:#fff;border-radius:12px;padding:12px 15px;cursor:pointer;font-weight:700}.section{margin-top:22px}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#8b94a3;margin-bottom:10px}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-row select,.action-row input{width:100%}.note-box textarea{width:100%;min-height:86px;resize:vertical}.timeline{display:grid;gap:10px}.timeline-item{padding:11px 13px;background:#f7f9fb;border-radius:10px;font-size:13px}.timeline-item strong{display:block;margin-bottom:3px}.timeline-item small{color:#8b94a3}.empty-state{min-height:590px;display:grid;place-items:center;color:#98a1af}dialog{border:0;border-radius:16px;padding:0;box-shadow:0 25px 80px rgba(0,0,0,.22);width:min(520px,92vw)}dialog form{padding:22px;display:grid;gap:14px}dialog h3{margin:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:grid;gap:6px;font-size:13px;font-weight:600}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.dialog-actions button{border:1px solid #d9dee7;background:#fff;border-radius:10px;padding:9px 14px}@media(max-width:1050px){.app-shell{grid-template-columns:80px 1fr}.sidebar{padding:20px 10px}.brand{font-size:0}.brand:after{content:"ALX";font-size:18px}.nav-item{font-size:0;text-align:center}.nav-item:before{content:"•";font-size:22px}.sidebar-footer div:not(.avatar){display:none}.workspace{grid-template-columns:1fr}.top-actions input{width:240px}}@media(max-width:720px){.app-shell{display:block}.sidebar{display:none}.main{padding:18px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%}.top-actions input{width:100%}.stats{grid-template-columns:1fr 1fr}.workspace{grid-template-columns:1fr}.lead-list{min-height:auto}.panel{min-height:420px}}
.alx-crm-page{margin:0!important;padding:0!important;background:#f4f6f8!important}.alx-crm-page .app-shell{margin:0!important;max-width:none!important}.alx-crm-page button,.alx-crm-page input,.alx-crm-page select,.alx-crm-page textarea{box-shadow:none}
.crm-view[hidden]{display:none!important}.single-panel{margin-top:24px;min-height:520px}.inline-actions{display:flex;gap:8px;align-items:center}.inline-actions input{width:220px}.secondary-btn,.mini-call{border:1px solid #d9dee7;background:#fff;border-radius:9px;padding:8px 11px;cursor:pointer}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid #edf0f3;text-align:left;vertical-align:middle;font-size:14px}.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#8b94a3;background:#fbfcfd}.data-table td small{display:block;color:#8b94a3;margin-top:3px}.call-outcome{display:inline-block;padding:5px 8px;border-radius:999px;background:#eef2f6;font-size:12px;text-transform:capitalize}.outcome-answered{background:#e5f6ed;color:#11643d}.outcome-no_answer,.outcome-busy{background:#fff4cf;color:#8d6700}.outcome-failed,.outcome-cancelled{background:#fdecec;color:#9f2f2f}.empty-state.compact{min-height:220px}.placeholder{min-height:500px;display:grid;place-content:center;text-align:center;color:#657082}.placeholder h2{margin:0 0 8px;color:#111827}@media(max-width:900px){.inline-actions{flex-wrap:wrap}.inline-actions input{width:100%}.data-table{min-width:760px}}
/* v1.1.1 deterministic view switching */
.crm-view{display:none!important}.crm-view.is-active{display:block!important}
#saveNote{border:0;border-radius:10px;padding:10px 14px;cursor:pointer}
/* v1.2.0 Agents */
.agent-add-btn{border:0;border-radius:9px;padding:9px 12px;cursor:pointer}.agent-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.agent-status.is-on{background:#e5f6ed;color:#11643d}.agent-status.is-off{background:#fdecec;color:#9f2f2f}#newAgentForm small{color:#8b94a3;font-weight:400}
/* v1.3.0 roles */
.form-error{padding:10px 12px;border-radius:9px;background:#fdecec;color:#9f2f2f;font-size:13px}.dialog-actions button:disabled{opacity:.6;cursor:wait}.role-sales #leadActions #newLeadBtn{display:none}.role-sales .stats{display:none}.role-sales #viewDashboard{margin-top:24px}.role-sales .workspace{grid-template-columns:minmax(380px,.9fr) minmax(480px,1.1fr)}
.agent-actions{display:flex;gap:6px;flex-wrap:wrap}.danger-btn{border:1px solid #efcaca;background:#fff5f5;color:#a52a2a;border-radius:9px;padding:8px 10px;cursor:pointer}.role-sales .topbar{margin-bottom:22px}.role-sales #viewDashboard .workspace{margin-top:0}

/* v1.5.2 logout */
.sidebar-user{min-width:0;flex:1}.sidebar-user strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout-btn{display:inline-block;margin-top:8px;color:#cbd5e1;text-decoration:none;font-size:13px;font-weight:600}.logout-btn:hover{color:#fff;text-decoration:underline}@media(max-width:1050px){.sidebar-footer .sidebar-user{display:none}}
/* v1.5.5 Lead import */
.import-help{margin:0 0 16px;color:#667085;line-height:1.5}.import-result{margin-top:14px;padding:12px 14px;border-radius:10px;line-height:1.5}.import-result.success{background:#ecfdf3;color:#067647;border:1px solid #abefc6}.import-result.error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.bulk-assign-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #e7ebf1;background:#f8fafc}.bulk-assign-bar label{display:flex;align-items:center;gap:6px}.bulk-assign-bar select{min-width:190px}.lead-row .lead-select{width:18px;height:18px;flex:0 0 auto;margin-right:8px}.duplicate-list{margin-top:10px;max-height:150px;overflow:auto;padding-top:8px;border-top:1px solid rgba(0,0,0,.1);font-size:13px}.duplicate-list div{padding:3px 0}
.bulk-assign-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #e7ebf1;background:#f8fafc}.bulk-assign-bar label{display:flex;align-items:center;gap:6px}.bulk-assign-bar select{min-width:190px}.lead-row .lead-select{width:18px;height:18px;flex:0 0 auto;margin-right:8px}.duplicate-list{margin-top:10px;max-height:150px;overflow:auto;padding-top:8px;border-top:1px solid rgba(0,0,0,.1);font-size:13px}.duplicate-list div{padding:3px 0}

/* v1.7.2 — ALX Trading signature interface */
:root{--alx-bg:#f2f5f9;--alx-surface:#fff;--alx-ink:#0a1423;--alx-muted:#718096;--alx-line:#e5eaf1;--alx-navy:#08111f;--alx-navy2:#0e1a2c;--alx-accent:#8ea6ff;--alx-accent-2:#6f8df5;--alx-shadow:0 12px 36px rgba(14,30,54,.07)}
body,.alx-crm-page{background:var(--alx-bg)!important;color:var(--alx-ink)}
.app-shell{grid-template-columns:214px minmax(0,1fr);background:var(--alx-bg)}
.sidebar{position:sticky;top:0;height:100vh;padding:20px 14px 16px;background:linear-gradient(180deg,#08111f 0%,#0a1424 58%,#0d192b 100%);border-right:1px solid rgba(255,255,255,.05)}
.brand{font-size:0;margin:2px 7px 24px;height:42px;background:url('alx-logo.svg') left center/196px auto no-repeat}
.sidebar nav{gap:4px}.nav-item{position:relative;padding:10px 12px;border-radius:9px;color:#8f9caf;font-size:13px;font-weight:650;transition:.18s ease}.nav-item:hover{background:rgba(255,255,255,.055);color:#eaf0f8}.nav-item.active{background:linear-gradient(90deg,rgba(142,166,255,.16),rgba(142,166,255,.06));color:#fff;box-shadow:inset 2px 0 0 var(--alx-accent)}
.sidebar-footer{margin:14px 2px 0;padding:13px 8px 4px;border-top:1px solid rgba(255,255,255,.08)}.avatar{width:34px;height:34px;background:#182943;color:#b9c8ff;border:1px solid rgba(142,166,255,.18)}.sidebar-user strong{font-size:12px}.sidebar-footer small{font-size:10px}.logout-btn{font-size:11px;color:#7f90a8;margin-top:5px}
.main{padding:22px 26px 30px;max-width:1800px;width:100%;margin:0 auto}.topbar{min-height:52px}.eyebrow{font-size:10px;letter-spacing:.16em;color:#8a96a8}.topbar h1{font-size:24px;letter-spacing:-.035em}.top-actions{gap:8px}.top-actions input{width:290px}
input,select,textarea{border:1px solid #dce3ec;border-radius:9px;padding:9px 11px;background:#fff;color:var(--alx-ink);font-size:13px;transition:.15s ease}input:focus,select:focus,textarea:focus{border-color:#91a7ef;box-shadow:0 0 0 3px rgba(111,141,245,.10)}
.primary{background:var(--alx-navy)!important;border-color:var(--alx-navy)!important;border-radius:9px!important;font-size:12px!important;font-weight:750!important;box-shadow:0 6px 16px rgba(8,17,31,.10)}.secondary-btn,.mini-call{border-color:#dce3ec;border-radius:9px;font-size:12px;background:#fff;color:#26364c}
.stats{gap:10px;margin:18px 0 14px}.stat{position:relative;border:1px solid var(--alx-line);border-radius:12px;padding:14px 15px;box-shadow:0 5px 18px rgba(15,30,50,.025);overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#d8e0ec}.stat:first-child:before{background:var(--alx-accent)}.stat:nth-child(2):before{background:#f2c96d}.stat:nth-child(3):before{background:#6ec89b}.stat:nth-child(4):before{background:#6f8df5}.stat span{font-size:11px;font-weight:650;color:#7d899a}.stat strong{font-size:24px;letter-spacing:-.04em;margin-top:4px}
.workspace{grid-template-columns:minmax(390px,.82fr) minmax(500px,1.18fr);gap:12px}.panel{border:1px solid var(--alx-line);border-radius:13px;min-height:560px;box-shadow:var(--alx-shadow)}.panel-head{padding:14px 15px 11px;background:linear-gradient(#fff,#fdfefe);border-color:#edf0f4}.panel-head h2{font-size:15px;letter-spacing:-.01em}.panel-head small{font-size:11px}.lead-row{padding:12px 15px;border-color:#eef1f5}.lead-row:hover{background:#f8faff}.lead-row.active{background:#f1f5ff;box-shadow:inset 3px 0 0 var(--alx-accent-2)}.lead-name{font-size:13px}.lead-meta{font-size:11px;margin-top:4px}.badge{font-size:10px;padding:4px 7px}.detail-wrap{padding:18px 19px}.identity h2{font-size:20px;letter-spacing:-.025em}.contact-lines{font-size:12px;gap:4px}.call-btn{padding:10px 14px;border-radius:10px;background:linear-gradient(135deg,#0b1627,#14253d);font-size:12px}.section{margin-top:18px}.section-title{font-size:10px;letter-spacing:.12em;font-weight:750}.note-box textarea{min-height:78px}.timeline-item{background:#f6f8fb;border:1px solid #edf0f4;border-radius:9px;font-size:12px;padding:9px 11px}
.bulk-assign-bar{padding:8px 12px;gap:7px;background:#f7f9fc;border-color:#e8edf3}.bulk-assign-bar label,.bulk-assign-bar strong{font-size:11px}.bulk-assign-bar select{min-width:155px}.single-panel{margin-top:18px;min-height:500px}.data-table th,.data-table td{padding:11px 13px}.data-table td{font-size:12px}.data-table th{font-size:10px;background:#f8fafc}
dialog{border-radius:15px;box-shadow:0 28px 90px rgba(6,15,28,.26)}dialog form{padding:20px;gap:12px}dialog::backdrop{background:rgba(5,13,24,.55);backdrop-filter:blur(3px)}
@media(max-width:1050px){.app-shell{grid-template-columns:72px 1fr}.brand{background-image:none;height:38px;margin:2px auto 20px}.brand:after{content:"ALX";display:grid;place-items:center;width:42px;height:38px;border-radius:10px;background:#8ea6ff;color:#07101d;font-size:13px;font-weight:900}.main{padding:20px}.workspace{grid-template-columns:1fr}.sidebar{padding-left:9px;padding-right:9px}}
@media(max-width:720px){.main{padding:15px}.stats{gap:8px}.stat{padding:12px}.topbar h1{font-size:21px}.top-actions{display:grid;grid-template-columns:1fr auto;width:100%}.top-actions input{width:100%;grid-column:1/-1}.panel{border-radius:11px}.workspace{gap:10px}}

/* v1.7.3 — detail fix + tighter desktop density */
.alx-crm-page .main{padding:18px 22px 24px!important}
.alx-crm-page .topbar{min-height:46px!important}
.alx-crm-page .topbar h1{font-size:22px!important}
.alx-crm-page input,.alx-crm-page select,.alx-crm-page textarea,.alx-crm-page button{font-size:13px!important;line-height:1.25!important}
.alx-crm-page input,.alx-crm-page select{min-height:38px!important;padding:8px 10px!important}
.alx-crm-page button{min-height:38px!important;padding:8px 12px!important}
.alx-crm-page .stats{margin:14px 0 12px!important;gap:9px!important}
.alx-crm-page .stat{padding:11px 13px!important}
.alx-crm-page .stat strong{font-size:22px!important}
.alx-crm-page .workspace{gap:10px!important;grid-template-columns:minmax(360px,.78fr) minmax(500px,1.22fr)!important}
.alx-crm-page .panel-head{padding:11px 13px 9px!important}
.alx-crm-page .bulk-assign-bar{padding:7px 11px!important}
.alx-crm-page .lead-row{padding:10px 13px!important}
.alx-crm-page .detail-wrap{padding:15px 17px!important}
.alx-crm-page .section{margin-top:14px!important}

/* v1.7.4 compact lead desk */
.alx-crm-page .main{padding:16px 20px!important}
.alx-crm-page .topbar{gap:12px!important}
.alx-crm-page .topbar h1{font-size:21px!important}
.alx-crm-page .stats{gap:9px!important;margin:12px 0!important}
.alx-crm-page .stat{padding:11px 13px!important;border-radius:11px!important}
.alx-crm-page .stat strong{font-size:21px!important;margin-top:3px!important}
.alx-crm-page .workspace{grid-template-columns:minmax(360px,.72fr) minmax(560px,1.28fr)!important;gap:10px!important}
.alx-crm-page .panel{min-height:520px!important;border-radius:12px!important}
.alx-crm-page .panel-head{padding:10px 13px 8px!important}
.alx-crm-page .bulk-assign-bar{padding:7px 11px!important;gap:7px!important;display:grid!important;grid-template-columns:auto 1fr auto auto!important}
.alx-crm-page .bulk-assign-bar select{min-width:0!important;width:100%!important;padding:7px 9px!important}
.alx-crm-page .bulk-assign-bar button{padding:7px 10px!important;white-space:nowrap!important}
.alx-crm-page .lead-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:8px 11px!important;min-height:64px!important}
.alx-crm-page .lead-main{min-width:0!important}
.alx-crm-page .lead-name-line{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
.alx-crm-page .lead-name{font-size:12.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:1!important}
.alx-crm-page .lead-meta{font-size:10.5px!important;margin-top:3px!important;gap:6px!important;white-space:nowrap!important;overflow:hidden!important}
.alx-crm-page .lead-meta span{overflow:hidden!important;text-overflow:ellipsis!important}
.alx-crm-page .badge{font-size:9px!important;padding:3px 6px!important;flex:0 0 auto!important}
.alx-crm-page .lead-select-wrap{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:10px!important;font-weight:650!important;color:#718096!important;cursor:pointer!important;padding:5px 6px!important;border:1px solid #e4e9f0!important;border-radius:8px!important;background:#fff!important}
.alx-crm-page .lead-select-wrap .lead-select{width:15px!important;height:15px!important;margin:0!important}
.alx-crm-page .detail-wrap{padding:14px 16px!important}
.alx-crm-page .identity{gap:10px!important}
.alx-crm-page .identity h2{font-size:18px!important}
.alx-crm-page .contact-lines{font-size:11px!important;gap:3px!important;margin-top:5px!important}
.alx-crm-page .call-btn{padding:8px 11px!important}
.alx-crm-page .section{margin-top:13px!important}
.alx-crm-page .section-title{margin-bottom:6px!important}
.alx-crm-page .assignment-box{display:grid!important;grid-template-columns:auto minmax(180px,300px) 1fr!important;align-items:center!important;gap:9px!important;padding:8px 10px!important;background:#f8fafc!important;border:1px solid #edf0f4!important;border-radius:9px!important}
.alx-crm-page .assignment-box .section-title{margin:0!important;white-space:nowrap!important}
.alx-crm-page .assignment-box select{padding:7px 9px!important;width:100%!important}
.alx-crm-page .assignment-box small{font-size:10px!important;color:#8a94a3!important}
.alx-crm-page .action-row{gap:7px!important}
.alx-crm-page input,.alx-crm-page select,.alx-crm-page textarea{padding:8px 10px!important;border-radius:9px!important;font-size:12px!important}
.alx-crm-page .note-box textarea{min-height:64px!important}
.alx-crm-page .timeline{gap:6px!important}
.alx-crm-page .timeline-item{padding:7px 9px!important;font-size:11px!important}
@media(max-width:1100px){.alx-crm-page .workspace{grid-template-columns:minmax(330px,.8fr) minmax(460px,1.2fr)!important}.alx-crm-page .bulk-assign-bar{grid-template-columns:1fr 1fr!important}.alx-crm-page .assignment-box{grid-template-columns:1fr!important}}


/* v1.7.6 — Excel-style lead table + dedicated detail page */
.alx-crm-page .lead-table-panel{margin-top:12px!important;min-height:0!important;overflow:hidden!important}
.alx-crm-page .leads-table-head{display:flex!important;align-items:center!important;justify-content:space-between!important}
.alx-crm-page .lead-table-wrap{width:100%!important;overflow:auto!important;max-height:calc(100vh - 300px)!important}
.alx-crm-page .lead-grid-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;min-width:1180px!important;table-layout:auto!important}
.alx-crm-page .lead-grid-table th{position:sticky!important;top:0!important;z-index:2!important;background:#f6f8fb!important;color:#66758a!important;font-size:9.5px!important;text-transform:uppercase!important;letter-spacing:.045em!important;font-weight:800!important;padding:7px 9px!important;border-bottom:1px solid #dfe5ed!important;text-align:left!important;white-space:nowrap!important}
.alx-crm-page .lead-grid-table td{font-size:11px!important;color:#2b384a!important;padding:6px 9px!important;border-bottom:1px solid #edf0f4!important;white-space:nowrap!important;height:36px!important;vertical-align:middle!important}
.alx-crm-page .lead-grid-table tbody tr:hover td{background:#f7f9ff!important}
.alx-crm-page .lead-grid-table .check-col{width:34px!important;text-align:center!important;padding-left:10px!important;padding-right:4px!important}
.alx-crm-page .lead-grid-table .lead-select{width:14px!important;height:14px!important;min-height:0!important;margin:0!important}
.alx-crm-page .lead-name-link{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:#172b4d!important;font-size:11.5px!important;font-weight:800!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;text-decoration:none!important}
.alx-crm-page .lead-name-link:hover{color:#5d78e8!important;text-decoration:underline!important}
.alx-crm-page .email-cell{max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.alx-crm-page .campaign-cell{max-width:180px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.alx-crm-page .status-pill{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:2px 7px!important;border-radius:999px!important;background:#eef2f7!important;color:#536174!important;font-size:9.5px!important;font-weight:750!important}
.alx-crm-page .status-potential,.alx-crm-page .status-interested{background:#e9f8f0!important;color:#287953!important}.alx-crm-page .status-callback{background:#fff5d9!important;color:#8b6813!important}.alx-crm-page .status-converted{background:#e9efff!important;color:#405db6!important}.alx-crm-page .status-dep{background:#2b1b25!important;color:#fff!important}.alx-crm-page .status-do_not_call,.alx-crm-page .status-not_interested{background:#fcecec!important;color:#9b3d3d!important}
.alx-crm-page .lead-detail-page{margin-top:12px!important;min-height:calc(100vh - 110px)!important;overflow:hidden!important}
.alx-crm-page .detail-page-head{height:48px!important;padding:7px 14px!important;border-bottom:1px solid #edf0f4!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:#fbfcfe!important;color:#8a96a8!important;font-size:11px!important}
.alx-crm-page .lead-detail-page #leadDetail{max-width:1180px!important;margin:0 auto!important}
.alx-crm-page .lead-detail-page .detail-wrap{padding:20px 24px!important}
.alx-crm-page .lead-detail-page .identity{display:flex!important;align-items:flex-start!important;justify-content:space-between!important}
.alx-crm-page .lead-detail-page .contact-lines{display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;column-gap:28px!important;row-gap:5px!important;max-width:760px!important}
.alx-crm-page .lead-detail-page .assignment-box{grid-template-columns:120px minmax(220px,360px) 1fr!important}
@media(max-width:1100px){.alx-crm-page .lead-table-wrap{max-height:none!important}.alx-crm-page .lead-detail-page .contact-lines{grid-template-columns:1fr!important}.alx-crm-page .lead-detail-page .assignment-box{grid-template-columns:1fr!important}}


/* v1.7.7 — no-horizontal-scroll leads workspace */
.alx-crm-page .dashboard-welcome{min-height:90px!important;padding:18px!important;margin-top:12px!important;display:flex!important;align-items:center!important}.alx-crm-page .dashboard-welcome div{display:grid!important;gap:4px!important}.alx-crm-page .dashboard-welcome span{font-size:11px!important;color:#8995a7!important}
.alx-crm-page.leads-view-active .stats{display:none!important}
.alx-crm-page #viewLeads.is-active{display:block!important}
.alx-crm-page #viewLeads .lead-table-panel{margin-top:12px!important;height:calc(100vh - 118px)!important;display:flex!important;flex-direction:column!important}
.alx-crm-page #viewLeads .lead-table-wrap{flex:1!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
.alx-crm-page .lead-grid-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.alx-crm-page .lead-grid-table th,.alx-crm-page .lead-grid-table td{padding:5px 7px!important;height:32px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.alx-crm-page .lead-grid-table .check-col{width:30px!important}.alx-crm-page .lead-grid-table .col-name{width:20%!important}.alx-crm-page .lead-grid-table .col-phone{width:13%!important}.alx-crm-page .lead-grid-table .col-email{width:20%!important}.alx-crm-page .lead-grid-table .col-source{width:7%!important}.alx-crm-page .lead-grid-table .col-campaign{width:11%!important}.alx-crm-page .lead-grid-table .col-status{width:9%!important}.alx-crm-page .lead-grid-table .col-sales{width:11%!important}.alx-crm-page .lead-grid-table .col-callback{width:12%!important}
.alx-crm-page .lead-grid-table .name-cell,.alx-crm-page .lead-grid-table .email-cell,.alx-crm-page .lead-grid-table .campaign-cell,.alx-crm-page .lead-grid-table .sales-cell{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:none!important}.alx-crm-page .lead-name-link{display:block!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.alx-crm-page #viewLeads .bulk-assign-bar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:7px!important;padding:6px 10px!important;min-height:42px!important}.alx-crm-page #viewLeads .bulk-assign-bar label{white-space:nowrap!important}.alx-crm-page #viewLeads .bulk-assign-bar strong{white-space:nowrap!important;margin-right:auto!important}.alx-crm-page #viewLeads .bulk-assign-bar select{width:170px!important;min-width:150px!important}.alx-crm-page #viewLeads .bulk-assign-bar button{white-space:nowrap!important}
@media(max-width:1150px){.alx-crm-page .lead-grid-table .col-campaign,.alx-crm-page .lead-grid-table .campaign-cell{display:none!important}.alx-crm-page .lead-grid-table .col-name{width:22%!important}.alx-crm-page .lead-grid-table .col-email{width:22%!important}}
/* v1.7.8 — appointments, notifications, clickable MicroSIP phones */
.alx-crm-page .topbar-right{display:flex;align-items:center;gap:9px;margin-left:auto}.alx-crm-page .notification-wrap{position:relative}.alx-crm-page .notification-btn{height:38px;border:1px solid #dbe2ec;background:#fff;border-radius:10px;padding:0 11px;font-size:11px;font-weight:700;color:#344154;cursor:pointer;white-space:nowrap}.alx-crm-page #notificationBadge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;padding:0 5px;border-radius:999px;background:#d94343;color:#fff;font-size:9px}.alx-crm-page #notificationBadge[hidden]{display:none!important}.alx-crm-page .notification-menu{position:absolute;right:0;top:44px;width:310px;z-index:50;background:#fff;border:1px solid #dfe5ed;border-radius:12px;box-shadow:0 18px 50px rgba(18,32,55,.16);overflow:hidden}.alx-crm-page .notification-head{padding:10px 12px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#7a8798;background:#f7f9fc;border-bottom:1px solid #e8edf3}.alx-crm-page .notification-item{width:100%;border:0;border-bottom:1px solid #eef1f5;background:#fff;text-align:left;padding:10px 12px;cursor:pointer;display:grid;gap:2px}.alx-crm-page .notification-item:hover{background:#f6f8ff}.alx-crm-page .notification-item strong{font-size:12px}.alx-crm-page .notification-item span,.alx-crm-page .notification-empty{font-size:10px;color:#7d8999}.alx-crm-page .notification-empty{padding:14px 12px}.alx-crm-page .phone-link,.alx-crm-page .detail-phone-link{border:0;background:transparent;padding:0;color:#315e9d;cursor:pointer;text-align:left;font:inherit}.alx-crm-page .phone-link:hover,.alx-crm-page .detail-phone-link:hover{text-decoration:underline;color:#173f78}.alx-crm-page .status-appointment-row{display:flex;align-items:center;gap:9px}.alx-crm-page .status-appointment-row select{width:min(420px,42%)}.alx-crm-page .appointment-toggle{height:38px;white-space:nowrap}.alx-crm-page .appointment-current{font-size:11px;color:#637187;font-weight:650}.alx-crm-page .appointment-editor{display:flex;align-items:center;gap:8px;margin-top:9px;padding:10px;background:#f6f8fb;border:1px solid #e6ebf1;border-radius:10px}.alx-crm-page .appointment-editor[hidden]{display:none!important}.alx-crm-page .appointment-editor input{width:260px}.alx-crm-page .appointment-item{border-left:3px solid #f0b941}.alx-crm-page .lead-detail-page .section{margin-top:14px!important}.alx-crm-page .lead-detail-page .identity{padding-bottom:2px}.alx-crm-page .lead-detail-page .contact-lines{margin-top:5px!important}.alx-crm-page .lead-detail-page .note-box textarea{min-height:64px!important}.alx-crm-page .lead-detail-page .timeline{gap:6px!important}.alx-crm-page .lead-detail-page .timeline-item{padding:7px 10px!important}.alx-crm-page .lead-table-panel .panel-head{min-height:52px}.alx-crm-page .lead-table-wrap{scrollbar-width:thin}@media(max-width:900px){.alx-crm-page .topbar-right{width:100%;flex-wrap:wrap}.alx-crm-page .top-actions{flex:1}.alx-crm-page .status-appointment-row{align-items:stretch;flex-direction:column}.alx-crm-page .status-appointment-row select{width:100%}.alx-crm-page .appointment-editor{align-items:stretch;flex-direction:column}.alx-crm-page .appointment-editor input{width:100%}}

/* v1.8.1 dashboard */
.alx-crm-page .dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.alx-crm-page .dashboard-card{min-height:0!important;overflow:hidden}.alx-crm-page .dashboard-card-head{height:58px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4}.alx-crm-page .dashboard-card-head h2{font-size:14px;margin:0 0 2px}.alx-crm-page .dashboard-card-head small{font-size:10px;color:#8a96a8}.alx-crm-page .dashboard-link{border:0;background:transparent;color:#315e9d;font-size:10px;font-weight:700;cursor:pointer}.alx-crm-page .dashboard-card-body{max-height:248px;overflow:auto}.alx-crm-page .dash-row{width:100%;min-height:45px;border:0;border-bottom:1px solid #eef1f5;background:#fff;display:grid;grid-template-columns:120px 1fr auto;gap:10px;align-items:center;padding:7px 12px;text-align:left;cursor:pointer}.alx-crm-page .dash-row:hover{background:#f8faff}.alx-crm-page .dash-row.is-overdue{box-shadow:inset 3px 0 0 #d95b5b}.alx-crm-page .dash-time{font-size:10px;color:#657287;font-weight:700}.alx-crm-page .dash-person{min-width:0;display:grid;gap:2px}.alx-crm-page .dash-person strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alx-crm-page .dash-person small{font-size:9.5px;color:#8a96a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alx-crm-page .dash-arrow{font-size:18px;color:#a2acba}.alx-crm-page .dash-empty{padding:22px 14px;color:#8a96a8;font-size:11px}.alx-crm-page .dash-table{width:100%;border-collapse:collapse}.alx-crm-page .dash-table th,.alx-crm-page .dash-table td{padding:8px 10px;border-bottom:1px solid #eef1f5;text-align:left;font-size:10px}.alx-crm-page .dash-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#8490a1;background:#f8fafc}.alx-crm-page .dash-table td:not(:first-child),.alx-crm-page .dash-table th:not(:first-child){text-align:center}.alx-crm-page .dashboard-card:nth-child(4) .dash-row{grid-template-columns:1fr auto auto}.alx-crm-page .status-converted{display:none!important}@media(max-width:900px){.alx-crm-page .dashboard-grid{grid-template-columns:1fr}.alx-crm-page .dash-row{grid-template-columns:105px 1fr auto}}


/* v1.8.3 — status row colors + user-switchable dark theme */
.alx-crm-page .lead-grid-table tbody tr.lead-status-row{transition:background .15s ease,box-shadow .15s ease}
.alx-crm-page .lead-grid-table tbody tr.status-row-new{background:#fff}
.alx-crm-page .lead-grid-table tbody tr.status-row-no_answer{background:#f5f7fa}
.alx-crm-page .lead-grid-table tbody tr.status-row-callback{background:#fff8df}
.alx-crm-page .lead-grid-table tbody tr.status-row-interested{background:#eaf8ef}
.alx-crm-page .lead-grid-table tbody tr.status-row-not_interested{background:#fff0f0}
.alx-crm-page .lead-grid-table tbody tr.status-row-wrong_number{background:#f3f1f7}
.alx-crm-page .lead-grid-table tbody tr.status-row-do_not_call{background:#f8e9e9}
.alx-crm-page .lead-grid-table tbody tr.status-row-dep{background:#f28c28!important;box-shadow:inset 4px 0 0 #c85d00}
.alx-crm-page .lead-grid-table tbody tr.status-row-dep td,.alx-crm-page .lead-grid-table tbody tr.status-row-dep .lead-name-link,.alx-crm-page .lead-grid-table tbody tr.status-row-dep .phone-link{color:#261406!important}
.alx-crm-page .lead-grid-table tbody tr.status-row-dep .status-pill{background:#8f3f00!important;color:#fff!important}
.alx-crm-page .lead-grid-table tbody tr.lead-status-row:hover{filter:brightness(.975)}
.alx-crm-page .theme-toggle{height:38px;border:1px solid #dbe2ec;background:#fff;border-radius:10px;padding:0 11px;font-size:11px;font-weight:700;color:#344154;cursor:pointer;white-space:nowrap}

html[data-alx-theme="dark"] body.alx-crm-page{background:#0c111b!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page .main{background:#0c111b!important}
html[data-alx-theme="dark"] .alx-crm-page .topbar h1,html[data-alx-theme="dark"] .alx-crm-page h2,html[data-alx-theme="dark"] .alx-crm-page h3{color:#f3f6fb!important}
html[data-alx-theme="dark"] .alx-crm-page .panel,html[data-alx-theme="dark"] .alx-crm-page .stat,html[data-alx-theme="dark"] .alx-crm-page .dashboard-card,html[data-alx-theme="dark"] .alx-crm-page .lead-detail-page{background:#141b27!important;border-color:#283243!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page .panel-head,html[data-alx-theme="dark"] .alx-crm-page .detail-page-head,html[data-alx-theme="dark"] .alx-crm-page .dashboard-card-head,html[data-alx-theme="dark"] .alx-crm-page .bulk-assign-bar,html[data-alx-theme="dark"] .alx-crm-page .assignment-box,html[data-alx-theme="dark"] .alx-crm-page .appointment-editor{background:#171f2c!important;border-color:#293446!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page input,html[data-alx-theme="dark"] .alx-crm-page select,html[data-alx-theme="dark"] .alx-crm-page textarea,html[data-alx-theme="dark"] .alx-crm-page .theme-toggle,html[data-alx-theme="dark"] .alx-crm-page .notification-btn,html[data-alx-theme="dark"] .alx-crm-page .secondary-btn{background:#101722!important;border-color:#344055!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page .notification-menu{background:#141b27!important;border-color:#344055!important}
html[data-alx-theme="dark"] .alx-crm-page .notification-head,html[data-alx-theme="dark"] .alx-crm-page .notification-item{background:#141b27!important;border-color:#293446!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table thead th,html[data-alx-theme="dark"] .alx-crm-page .dash-table th{background:#182130!important;color:#9da9bb!important;border-color:#293446!important}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table td,html[data-alx-theme="dark"] .alx-crm-page .dash-table td{border-color:#293446!important}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-new{background:#141b27}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-no_answer{background:#1b2230}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-callback{background:#302a17}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-interested{background:#173024}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-not_interested{background:#342020}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-wrong_number{background:#292535}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-do_not_call{background:#301e22}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-dep{background:#e87918!important;box-shadow:inset 4px 0 0 #ffb05c}
html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-dep td,html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-dep .lead-name-link,html[data-alx-theme="dark"] .alx-crm-page .lead-grid-table tbody tr.status-row-dep .phone-link{color:#160c04!important}
html[data-alx-theme="dark"] .alx-crm-page .lead-name-link{color:#eaf0fa!important}
html[data-alx-theme="dark"] .alx-crm-page .phone-link,html[data-alx-theme="dark"] .alx-crm-page .detail-phone-link{color:#8fb6ff!important}
html[data-alx-theme="dark"] .alx-crm-page .timeline-item,html[data-alx-theme="dark"] .alx-crm-page .dash-row{background:#171f2c!important;border-color:#293446!important;color:#e8edf5!important}
html[data-alx-theme="dark"] .alx-crm-page .dash-row:hover{background:#1c2635!important}
html[data-alx-theme="dark"] .alx-crm-page .eyebrow,html[data-alx-theme="dark"] .alx-crm-page small,html[data-alx-theme="dark"] .alx-crm-page .section-title,html[data-alx-theme="dark"] .alx-crm-page .lead-meta{color:#98a5b8!important}

.detail-top-actions{display:flex;gap:8px;align-items:center}.danger-btn{background:#b42318;color:#fff;border:1px solid #b42318}.danger-btn:hover{filter:brightness(.94)}
/* v2.0.0 productivity modules */
.lead-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.lead-filters select{min-width:120px;max-width:170px}.temp-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#eef2f7;color:#526071}.temp-hot{background:#fee2e2;color:#b42318}.temp-warm{background:#fff4cc;color:#8a5b00}.temp-cold{background:#e5f0ff;color:#245b9e}.alx-dark .temp-hot{background:#4b1d20;color:#ffb4ad}.alx-dark .temp-warm{background:#493b12;color:#ffe08a}.alx-dark .temp-cold{background:#17304f;color:#a9ccff}#viewReports .data-table td,#viewReports .data-table th{white-space:nowrap}@media(max-width:1100px){.lead-filters{justify-content:flex-start}.lead-filters select{max-width:none}}

/* v2.0.2 admin note controls */
.alx-crm-page .timeline-note-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.alx-crm-page .note-delete-btn{border:1px solid #f0c3c0;background:#fff5f4;color:#b42318;border-radius:7px;padding:3px 8px;font-size:10px;font-weight:750;cursor:pointer;flex:0 0 auto}.alx-crm-page .note-delete-btn:hover{background:#fee4e2}html[data-alx-theme="dark"] .alx-crm-page .note-delete-btn{background:#351a1a;border-color:#6d2a2a;color:#ffb4ad}

/* v2.0.16 SETTINGS — single authoritative layout; no legacy overrides below this block */
@media (min-width:1100px){
  body.alx-crm-page{overflow:hidden!important}
  .alx-crm-page #viewSettings{
    --settings-gap:12px;
    --settings-head:42px;
    height:calc(100vh - 112px)!important;
    min-height:520px!important;
    max-height:650px!important;
    overflow:hidden!important;
  }
  .alx-crm-page #viewSettings .settings-page-head{
    height:var(--settings-head)!important;
    min-height:var(--settings-head)!important;
    margin:0!important;
    padding:0 0 8px!important;
    box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .settings-grid-compact{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    gap:var(--settings-gap)!important;
    height:calc(100% - var(--settings-head))!important;
    min-height:0!important;
    align-items:stretch!important;
  }
  .alx-crm-page #viewSettings .settings-grid-compact > .settings-card.panel{
    margin:0!important;
    padding:0!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border-radius:12px!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .alx-crm-page #viewSettings .settings-card-head{
    height:58px!important;
    min-height:58px!important;
    flex:0 0 58px!important;
    padding:9px 12px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }
  .alx-crm-page #viewSettings .settings-icon{
    width:36px!important;height:36px!important;flex:0 0 36px!important;
    display:grid!important;place-items:center!important;
  }
  .alx-crm-page #viewSettings .settings-card-head h2{
    margin:0 0 2px!important;font-size:14px!important;line-height:1.15!important;
  }
  .alx-crm-page #viewSettings .settings-card-head small{font-size:9.5px!important}
  .alx-crm-page #viewSettings .settings-form{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:9px 12px 10px!important;
    gap:7px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .settings-form label{font-size:10px!important}
  .alx-crm-page #viewSettings .settings-form input[type=text],
  .alx-crm-page #viewSettings .settings-form input[type=number],
  .alx-crm-page #viewSettings .settings-form select{
    height:34px!important;min-height:34px!important;margin-top:3px!important;
    padding:5px 9px!important;font-size:11px!important;box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .suffix-input{
    height:34px!important;margin-top:3px!important;
    grid-template-columns:minmax(0,1fr) 72px!important;
  }
  .alx-crm-page #viewSettings .suffix-input input,
  .alx-crm-page #viewSettings .suffix-input span{
    height:34px!important;min-height:34px!important;box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .suffix-input span{
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;line-height:1!important;font-size:9.5px!important;
  }
  .alx-crm-page #viewSettings .switch-row{
    min-height:31px!important;padding:1px 0!important;gap:7px!important;
  }
  .alx-crm-page #viewSettings .switch-row input[type=checkbox]{
    width:16px!important;height:16px!important;margin:1px 0 0!important;
  }
  .alx-crm-page #viewSettings .switch-row strong{font-size:10px!important}
  .alx-crm-page #viewSettings .switch-row small{font-size:8.7px!important}
  .alx-crm-page #viewSettings .settings-note{padding:6px 8px!important;font-size:9px!important}
  .alx-crm-page #viewSettings .settings-test-btn{height:31px!important;font-size:9.5px!important}
  .alx-crm-page #viewSettings .compact-lines{
    flex:1 1 auto!important;min-height:0!important;
    padding:5px 12px 8px!important;overflow:hidden!important;
  }
  .alx-crm-page #viewSettings .compact-lines>div{
    min-height:25px!important;padding:3px 0!important;font-size:9.7px!important;
    box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .settings-savebar button{
    height:34px!important;padding:0 13px!important;font-size:10.5px!important;
  }
}
@media (min-width:1100px) and (max-height:720px){
  .alx-crm-page #viewSettings{
    height:calc(100vh - 96px)!important;
    min-height:0!important;
  }
  .alx-crm-page #viewSettings .settings-card-head{
    height:52px!important;min-height:52px!important;flex-basis:52px!important;padding:7px 10px!important;
  }
  .alx-crm-page #viewSettings .settings-icon{width:32px!important;height:32px!important;flex-basis:32px!important}
  .alx-crm-page #viewSettings .settings-form{padding:7px 10px 8px!important;gap:5px!important}
  .alx-crm-page #viewSettings .settings-form input[type=text],
  .alx-crm-page #viewSettings .settings-form input[type=number],
  .alx-crm-page #viewSettings .settings-form select{height:31px!important;min-height:31px!important}
  .alx-crm-page #viewSettings .suffix-input,
  .alx-crm-page #viewSettings .suffix-input input,
  .alx-crm-page #viewSettings .suffix-input span{height:31px!important;min-height:31px!important}
}

/* v2.0.17 — restore Settings internals; v2.0.16 equal 3x2 outer geometry stays intact */
@media (min-width:1100px){
  .alx-crm-page #viewSettings .settings-page-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
  }
  .alx-crm-page #viewSettings .settings-page-head p{
    margin:0!important;font-size:11px!important;line-height:1.2!important;color:#8190a5!important;
    font-weight:400!important;
  }
  .alx-crm-page #viewSettings .settings-savebar{
    position:static!important;margin:0!important;padding:0!important;background:transparent!important;
    border:0!important;box-shadow:none!important;display:flex!important;align-items:center!important;gap:8px!important;
  }
  .alx-crm-page #viewSettings .settings-card-head{
    border-bottom:1px solid #e7ebf2!important;background:#fff!important;
  }
  .alx-crm-page #viewSettings .settings-icon{
    border-radius:9px!important;background:#edf5ff!important;color:#147af3!important;
    font-size:18px!important;font-weight:800!important;
  }
  .alx-crm-page #viewSettings .settings-card-head h2{
    color:#172235!important;font-weight:650!important;
  }
  .alx-crm-page #viewSettings .settings-card-head small{
    display:block!important;color:#8b98aa!important;font-weight:400!important;
  }
  .alx-crm-page #viewSettings .settings-form{
    display:grid!important;
  }
  .alx-crm-page #viewSettings .settings-form label{
    display:block!important;color:#536174!important;font-weight:750!important;
  }
  .alx-crm-page #viewSettings .settings-form input[type=text],
  .alx-crm-page #viewSettings .settings-form input[type=number],
  .alx-crm-page #viewSettings .settings-form select{
    width:100%!important;border:1px solid #d7dee9!important;background:#fff!important;
    color:#172235!important;border-radius:8px!important;outline:none!important;
  }
  .alx-crm-page #viewSettings .settings-two{
    display:grid!important;grid-template-columns:.8fr 1.2fr!important;gap:8px!important;
  }
  .alx-crm-page #viewSettings .suffix-input{
    display:grid!important;grid-template-columns:minmax(0,1fr) 72px!important;align-items:stretch!important;
  }
  .alx-crm-page #viewSettings .suffix-input input{
    margin:0!important;border-radius:8px 0 0 8px!important;
  }
  .alx-crm-page #viewSettings .suffix-input span{
    border:1px solid #d7dee9!important;border-left:0!important;border-radius:0 8px 8px 0!important;
    background:#f5f7fa!important;color:#7d899b!important;font-weight:700!important;
  }
  .alx-crm-page #viewSettings .switch-row{
    display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
  }
  .alx-crm-page #viewSettings .switch-row input[type=checkbox]{
    flex:0 0 auto!important;accent-color:#147af3!important;
  }
  .alx-crm-page #viewSettings .switch-row span{
    display:grid!important;gap:2px!important;min-width:0!important;
  }
  .alx-crm-page #viewSettings .switch-row strong{
    display:block!important;color:#26364a!important;font-weight:750!important;line-height:1.15!important;
  }
  .alx-crm-page #viewSettings .switch-row small{
    display:block!important;color:#8793a5!important;font-weight:400!important;line-height:1.2!important;
  }
  .alx-crm-page #viewSettings .settings-note{
    display:block!important;border:1px solid #bcd8ff!important;background:#f0f7ff!important;
    color:#2671ca!important;border-radius:8px!important;
  }
  .alx-crm-page #viewSettings .meta-settings{
    display:grid!important;
  }
  .alx-crm-page #viewSettings .system-row{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;color:#536174!important;font-weight:700!important;font-size:10px!important;
  }
  .alx-crm-page #viewSettings .meta-settings input:disabled{
    opacity:1!important;background:#f4f6f9!important;color:#66758a!important;
  }
  .alx-crm-page #viewSettings .settings-test-btn{
    width:100%!important;border:1px solid #d5dce7!important;background:#fff!important;color:#26364b!important;
    border-radius:8px!important;font-weight:750!important;cursor:pointer!important;
  }
  .alx-crm-page #viewSettings .compact-lines{
    display:block!important;
  }
  .alx-crm-page #viewSettings .compact-lines>div{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;border-bottom:1px solid #edf0f4!important;color:#536174!important;
  }
  .alx-crm-page #viewSettings .compact-lines>div:last-child{border-bottom:0!important}
  .alx-crm-page #viewSettings .compact-lines strong{
    color:#26364b!important;text-align:right!important;font-weight:700!important;
  }
  .alx-crm-page #viewSettings .status-chip{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    border-radius:7px!important;white-space:nowrap!important;font-weight:800!important;
  }
  .alx-crm-page #viewSettings .status-chip.ok{
    background:#dcf8e9!important;color:#16804a!important;
  }
  .alx-crm-page #viewSettings .status-chip.bad{
    background:#fee9e7!important;color:#b42318!important;
  }
  .alx-crm-page #viewSettings .version-chip{
    display:inline-flex!important;background:#e7f0ff!important;color:#1c6bd8!important;
    border-radius:7px!important;font-weight:700!important;
  }
}
/* Dark mode: restore internal contrast without changing card geometry */
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-card-head{
  background:#111d2b!important;border-bottom-color:#2a3b4f!important;
}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-icon{background:#18365d!important;color:#57a4ff!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-card-head h2{color:#f4f7fb!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-card-head small,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-page-head p{color:#8fa1b7!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-form label,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .system-row,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .compact-lines>div{color:#d5deea!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .switch-row strong{color:#f0f4fa!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings input,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings select{background:#0e1926!important;border-color:#35475c!important;color:#f1f5fa!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .suffix-input span{background:#243246!important;border-color:#35475c!important;color:#a9b7c9!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-note{background:#172b43!important;border-color:#2468ad!important;color:#6eb2ff!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .meta-settings input:disabled{background:#1d2b3b!important;color:#aebbd0!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-test-btn{background:#0e1926!important;border-color:#43556c!important;color:#f1f5fa!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .compact-lines>div{border-bottom-color:#2a3b4f!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .compact-lines strong{color:#eef3f9!important}

/* v2.0.18 — Settings polish only; v2.0.17 card geometry remains untouched */
@media (min-width:1100px){
  /* Appointment + Lead switches: tighter, aligned rows */
  .alx-crm-page #viewSettings .switch-row{
    display:grid!important;
    grid-template-columns:17px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-items:start!important;
    min-height:30px!important;
    padding:1px 0!important;
  }
  .alx-crm-page #viewSettings .switch-row input[type=checkbox]{
    grid-column:1!important;
    margin:1px 0 0!important;
    width:17px!important;height:17px!important;
  }
  .alx-crm-page #viewSettings .switch-row span{
    grid-column:2!important;
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
  }

  /* Call settings: checkbox and title stay on the same row */
  .alx-crm-page #viewSettings .call-settings .switch-row{
    margin-top:1px!important;
  }

  /* Meta: labels above, controls use the full available card width */
  .alx-crm-page #viewSettings .meta-settings{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  .alx-crm-page #viewSettings .meta-settings .system-row{
    width:100%!important;
  }
  .alx-crm-page #viewSettings .meta-settings label{
    display:block!important;
    width:100%!important;
  }
  .alx-crm-page #viewSettings .meta-settings input[type=text]{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }

  /* System info: a touch more breathing room, without changing the card */
  .alx-crm-page #viewSettings .compact-lines>div{
    min-height:28px!important;
    padding:4px 0!important;
  }

  /* Primary save action matches CRM blue */
  .alx-crm-page #viewSettings .settings-savebar button{
    background:#087cf0!important;
    border-color:#087cf0!important;
    color:#fff!important;
    box-shadow:0 1px 2px rgba(8,124,240,.18)!important;
  }
  .alx-crm-page #viewSettings .settings-savebar button:hover{
    background:#066ed7!important;
    border-color:#066ed7!important;
  }

  /* Keep lower-card content visually consistent at the top */
  .alx-crm-page #viewSettings .settings-grid-compact>.settings-card.panel{
    justify-content:flex-start!important;
  }
}

/* v2.0.19 — only Call + Meta internal alignment. Outer 3x2 geometry untouched. */
@media (min-width:1100px){
  /* Call card: checkbox + title/description in one horizontal row */
  .alx-crm-page #viewSettings .call-settings .switch-row{
    display:grid!important;
    grid-template-columns:17px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-items:start!important;
  }
  .alx-crm-page #viewSettings .call-settings .switch-row input[type=checkbox]{
    grid-column:1!important;
    grid-row:1!important;
    margin:1px 0 0!important;
  }
  .alx-crm-page #viewSettings .call-settings .switch-row span{
    grid-column:2!important;
    grid-row:1!important;
    margin:0!important;
  }

  /* Meta card: force labels above full-width inputs */
  .alx-crm-page #viewSettings .meta-settings > label{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:3px!important;
    margin:0!important;
  }
  .alx-crm-page #viewSettings .meta-settings > label > input[type=text]{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
}

/* v2.0.20 — call checkbox markup fix only; no card/grid geometry changes */
@media (min-width:1100px){
  .alx-crm-page #viewSettings .call-click-row{
    display:grid!important;
    grid-template-columns:17px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-items:start!important;
    width:100%!important;
    margin:0!important;
    padding:1px 0!important;
  }
  .alx-crm-page #viewSettings .call-click-row>input[type=checkbox]{
    grid-column:1!important;grid-row:1!important;
    width:17px!important;height:17px!important;margin:1px 0 0!important;
  }
  .alx-crm-page #viewSettings .call-click-row>span{
    grid-column:2!important;grid-row:1!important;
    display:flex!important;flex-direction:column!important;gap:2px!important;margin:0!important;
  }
  .alx-crm-page #viewSettings .call-click-row strong{
    display:block!important;font-size:10px!important;line-height:1.15!important;color:#26364a!important;
  }
  .alx-crm-page #viewSettings .call-click-row small{
    display:block!important;font-size:8.7px!important;line-height:1.2!important;color:#8793a5!important;
  }
}

/* v2.0.21 — consolidated Settings QA; outer 3x2 equal-card geometry untouched */
@media (min-width:1100px){
  .alx-crm-page #viewSettings label.switch-row,
  .alx-crm-page #viewSettings label.call-click-row{
    display:grid!important;
    grid-template-columns:17px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-items:start!important;
    width:100%!important;
    margin:0!important;
    padding:1px 0!important;
    box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings label.switch-row>input[type=checkbox],
  .alx-crm-page #viewSettings label.call-click-row>input[type=checkbox]{
    grid-column:1!important;grid-row:1!important;
    width:17px!important;height:17px!important;
    margin:1px 0 0!important;padding:0!important;
  }
  .alx-crm-page #viewSettings label.switch-row>span,
  .alx-crm-page #viewSettings label.call-click-row>span{
    grid-column:2!important;grid-row:1!important;
    display:flex!important;flex-direction:column!important;gap:2px!important;
    margin:0!important;padding:0!important;min-width:0!important;
  }
  .alx-crm-page #viewSettings label.switch-row strong,
  .alx-crm-page #viewSettings label.call-click-row strong{
    display:block!important;margin:0!important;line-height:1.15!important;
  }
  .alx-crm-page #viewSettings label.switch-row small,
  .alx-crm-page #viewSettings label.call-click-row small{
    display:block!important;margin:0!important;line-height:1.2!important;
  }

  .alx-crm-page #viewSettings .suffix-input{
    display:grid!important;grid-template-columns:minmax(0,1fr) 72px!important;
    width:100%!important;align-items:stretch!important;
  }
  .alx-crm-page #viewSettings .suffix-input>input{
    width:100%!important;min-width:0!important;margin:0!important;
    border-radius:8px 0 0 8px!important;
  }
  .alx-crm-page #viewSettings .suffix-input>span{
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;border-radius:0 8px 8px 0!important;
  }

  .alx-crm-page #viewSettings .meta-settings{
    display:flex!important;flex-direction:column!important;gap:6px!important;
  }
  .alx-crm-page #viewSettings .meta-settings>.system-row{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    width:100%!important;
  }
  .alx-crm-page #viewSettings .meta-settings>label{
    display:flex!important;flex-direction:column!important;gap:3px!important;
    width:100%!important;margin:0!important;
  }
  .alx-crm-page #viewSettings .meta-settings>label>input{
    display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }
  .alx-crm-page #viewSettings .meta-settings>.settings-test-btn{
    display:block!important;width:100%!important;margin:0!important;
  }

  .alx-crm-page #viewSettings .compact-lines>div{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:12px!important;width:100%!important;box-sizing:border-box!important;
  }
  .alx-crm-page #viewSettings .compact-lines>div>strong{
    margin-left:auto!important;text-align:right!important;white-space:nowrap!important;
  }
  .alx-crm-page #viewSettings .settings-note{width:100%!important;box-sizing:border-box!important}
}

/* v2.1.0 — Lead Work System */
.quick-status{height:28px;max-width:135px;border:1px solid #d9e1ec;border-radius:7px;padding:0 25px 0 8px;font-size:11px;font-weight:700;background:#fff}
.appt-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:7px;background:#eef3f8;color:#526276;font-size:10px;font-weight:700;white-space:nowrap}
.appt-badge.today{background:#fff2c7;color:#8a6200}.appt-badge.overdue{background:#ffe3df;color:#b42318}
.lead-workbar{display:grid;grid-template-columns:110px 110px minmax(180px,1fr) auto auto;gap:8px;align-items:stretch;margin:10px 0 12px;padding:9px;border:1px solid #dfe6ef;border-radius:11px;background:#f7f9fc}
.lead-workbar>div{display:flex;flex-direction:column;justify-content:center;padding:5px 9px;border-right:1px solid #e2e8f0}
.lead-workbar span{font-size:9px;color:#8491a3}.lead-workbar strong{font-size:12px;color:#1d2a3b;margin-top:2px}
.workbar-call,.workbar-appt{border:0;border-radius:8px;padding:0 12px;font-weight:750;cursor:pointer;white-space:nowrap}
.workbar-call{background:#087cf0;color:#fff}.workbar-appt{background:#fff;border:1px solid #ccd7e5;color:#25364b}
.call-activity{border-left:3px solid #2f80ed}.activity-item{border-left:3px solid #8b5cf6}
@media(max-width:1050px){.lead-workbar{grid-template-columns:1fr 1fr}.lead-workbar .wide{grid-column:1/-1}.workbar-call,.workbar-appt{min-height:36px}}
html[data-alx-theme="dark"] .lead-workbar{background:#111d2b;border-color:#2a3b4f}
html[data-alx-theme="dark"] .lead-workbar>div{border-color:#2a3b4f}
html[data-alx-theme="dark"] .lead-workbar strong{color:#eef3f9}
html[data-alx-theme="dark"] .quick-status{background:#0e1926;color:#eef3f9;border-color:#35475c}

/* v2.1.1 Lead screen QA — Dashboard and Settings untouched */
body.alx-crm-page:has(#viewLeadDetail.is-active){overflow:hidden!important}
.alx-crm-page #viewLeadDetail.is-active{display:block!important;height:calc(100vh - 8px)!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:42px!important;scrollbar-gutter:stable}
.alx-crm-page #viewLeadDetail .detail-panel{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
.alx-crm-page #viewLeadDetail .detail-header{padding:8px 14px!important}.alx-crm-page #viewLeadDetail .lead-identity{padding:10px 14px 7px!important}.alx-crm-page #viewLeadDetail .lead-identity h2{margin:0 0 4px!important;font-size:18px!important}.alx-crm-page #viewLeadDetail .lead-contact{gap:12px!important;margin:0!important}.alx-crm-page #viewLeadDetail .lead-source{margin-top:4px!important}.alx-crm-page #viewLeadDetail .lead-workbar{margin:7px 14px 9px!important;padding:7px!important}
.lead-control-grid{display:grid;grid-template-columns:150px minmax(220px,420px) 130px;gap:10px;align-items:end;margin:9px 0 7px}.lead-control-grid>div{min-width:0}.lead-control-grid select,.lead-control-grid button{width:100%;height:38px;box-sizing:border-box}.compact-appt-btn{white-space:nowrap}.alx-crm-page #viewLeadDetail .section-title{margin-bottom:5px!important}.alx-crm-page #viewLeadDetail textarea{min-height:72px!important}.alx-crm-page #viewLeadDetail .timeline{overflow:visible!important;max-height:none!important}
.quick-status{height:29px!important;min-width:108px!important;max-width:122px!important;padding:0 22px 0 7px!important;font-size:10.5px!important}.temp-pill{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:4px 7px;border-radius:7px;font-size:10px;font-weight:750;white-space:nowrap}.temp-hot{background:#ffe6df;color:#b93815}.temp-warm{background:#fff3c9;color:#8b6500}.temp-cold{background:#e8f1ff;color:#2563a8}.alx-crm-page #viewLeads table td,.alx-crm-page #viewLeads table th{vertical-align:middle!important}
@media(max-width:900px){body.alx-crm-page:has(#viewLeadDetail.is-active){overflow:auto!important}.alx-crm-page #viewLeadDetail.is-active{height:auto!important;overflow:visible!important}.lead-control-grid{grid-template-columns:1fr}}

/* v2.1.2 — Calls vertical scrolling + note author label */
body.alx-crm-page:has(#viewCalls.is-active){overflow:hidden!important}
.alx-crm-page #viewCalls.is-active{
  display:block!important;
  height:calc(100vh - 82px)!important;
  max-height:none!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:34px!important;
  scrollbar-gutter:stable;
}
.alx-crm-page #viewCalls.is-active #callRows{overflow:visible!important;max-height:none!important}
.alx-crm-page #viewCalls.is-active .data-table{margin-bottom:24px!important}
.note-timeline-item small{display:block;margin-top:8px!important}
@media(max-width:900px){
 body.alx-crm-page:has(#viewCalls.is-active){overflow:auto!important}
 .alx-crm-page #viewCalls.is-active{height:auto!important;overflow:visible!important}
}

/* v2.2.0 — Call workflow */
.call-result-panel{margin:10px 0;padding:11px 12px;border:1px solid #dbe5f2;border-radius:12px;background:#f8fbff}
.call-result-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.call-result-head strong{font-size:13px}.call-result-head small{display:block;color:#8a9ab0;font-size:10px;margin-top:2px}
.call-result-grid{display:grid;grid-template-columns:170px minmax(260px,1fr) 190px 90px;gap:8px;align-items:end}.call-result-grid label{display:block;font-size:10px;font-weight:700;margin-bottom:4px;color:#66768d}.call-result-grid select,.call-result-grid input{width:100%;height:36px;border:1px solid #d3deec;border-radius:8px;padding:0 10px;background:#fff;box-sizing:border-box}.call-result-save{height:36px;border:0;border-radius:8px;background:#087df1;color:#fff;font-weight:800;cursor:pointer}.call-result-footer{margin-top:8px;padding-top:8px;border-top:1px solid #dbe5f2;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#27864c}.call-result-footer[hidden]{display:none!important}.call-result-footer button{border:1px solid #bcd0e7;background:#fff;border-radius:7px;padding:7px 10px;font-weight:700;cursor:pointer}
@media(max-width:1000px){.call-result-grid{grid-template-columns:1fr 1fr}.call-result-save{width:100%}}
@media(max-width:650px){.call-result-grid{grid-template-columns:1fr}}
html[data-alx-theme="dark"] .call-result-panel{background:#101d2f;border-color:#263a55}html[data-alx-theme="dark"] .call-result-grid select,html[data-alx-theme="dark"] .call-result-grid input,html[data-alx-theme="dark"] .call-result-footer button{background:#0c1727;color:#e8eef7;border-color:#30435e}

/* v2.2.1 — v2.2 workflow QA */
.call-result-grid{
  grid-template-columns:170px minmax(260px,1fr) 190px auto!important;
}
.call-result-actions{
  display:flex!important;
  align-items:stretch!important;
  gap:7px!important;
  height:36px!important;
}
.call-result-actions .call-result-save,
.call-result-actions .call-result-next{
  height:36px!important;
  border-radius:8px!important;
  padding:0 12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
.call-result-actions .call-result-save{
  border:0!important;
  background:#087df1!important;
  color:#fff!important;
}
.call-result-actions .call-result-next{
  border:1px solid #b9cbe0!important;
  background:#fff!important;
  color:#26384e!important;
}
.call-result-footer{
  justify-content:flex-start!important;
}
@media(max-width:1000px){
  .call-result-actions{width:100%!important}
  .call-result-actions>button{flex:1!important}
}
html[data-alx-theme="dark"] .call-result-actions .call-result-next{
  background:#0c1727!important;
  color:#e8eef7!important;
  border-color:#30435e!important;
}

/* v2.2.2 — lead detail compact pass */
.detail-page-head{
  min-height:48px!important;
  padding:6px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.detail-nav-actions{display:flex!important;align-items:center!important;gap:8px!important}
.detail-page-head .secondary-btn,.detail-next-btn{
  height:36px!important;padding:0 13px!important;border-radius:8px!important;
  font-weight:750!important;white-space:nowrap!important;cursor:pointer!important
}
.detail-next-btn{border:1px solid #c9d7e8!important;background:#fff!important;color:#26384e!important}
.detail-next-btn:hover{background:#f4f8fd!important}

/* identity: reduce vertical waste while preserving every field */
.detail-wrap{padding:12px 14px 14px!important}
.identity{margin-bottom:8px!important;align-items:flex-start!important}
.identity h2{margin:0 0 5px!important;font-size:18px!important}
.contact-lines{gap:10px 28px!important;line-height:1.25!important}
.detail-meta{margin-top:5px!important;gap:6px 16px!important}

/* call summary becomes a compact working toolbar */
.lead-workbar{
  min-height:52px!important;margin:7px 0 9px!important;padding:6px 8px!important;
}
.lead-workbar>div{padding:3px 12px!important}
.lead-workbar span{font-size:10px!important}
.lead-workbar strong{font-size:12px!important;margin-top:1px!important}
.lead-workbar button{height:38px!important}

/* result panel: one compact row */
.call-result-panel{padding:10px 12px!important;margin:0 0 9px!important}
.call-result-head{margin-bottom:7px!important}
.call-result-head small{margin-top:2px!important;line-height:1.15!important}
.call-result-grid{
  grid-template-columns:170px minmax(300px,1fr) 92px!important;
  gap:8px!important;align-items:end!important
}
.call-result-grid label{margin-bottom:3px!important;font-size:11px!important}
.call-result-grid input,.call-result-grid select{height:38px!important;min-height:38px!important}
.call-result-actions{height:38px!important;width:92px!important}
.call-result-actions .call-result-save{height:38px!important;width:92px!important;padding:0 9px!important}

/* lower controls: tighten without removing functionality */
.assignment-block{margin:8px 0!important;padding:9px 11px!important}
.lead-control-grid{gap:10px!important;margin-top:8px!important}
.lead-control-grid select,.lead-control-grid button{min-height:38px!important}
.section-title{margin-bottom:4px!important;font-size:10px!important}
.note-box,.detail-wrap>.section{margin-top:9px!important}
.note-box textarea{min-height:68px!important}
.timeline{gap:6px!important}
.timeline-item{padding:8px 10px!important}

html[data-alx-theme="dark"] .detail-next-btn{
  background:#0c1727!important;color:#e8eef7!important;border-color:#30435e!important
}
@media(max-width:850px){
  .detail-page-head{align-items:flex-start!important;gap:8px!important}
  .detail-nav-actions{flex-wrap:wrap!important}
  .call-result-grid{grid-template-columns:1fr!important}
  .call-result-actions,.call-result-actions .call-result-save{width:100%!important}
}

/* v2.2.3 — Lead Detail visual hierarchy / color cleanup */
:root{
  --alx-navy:#0b1728;
  --alx-blue:#1769e0;
  --alx-blue-soft:#eef5ff;
  --alx-line:#dbe4ef;
  --alx-surface:#ffffff;
  --alx-surface-2:#f7f9fc;
  --alx-text:#15253a;
  --alx-muted:#7b8ca3;
}

/* one calm main canvas instead of many outlined boxes */
#leadDetail .detail-wrap{
  background:var(--alx-surface)!important;
}
#leadDetail .detail-page-head{
  background:#fbfcfe!important;
  border-bottom:1px solid #e7edf5!important;
}
#leadDetail .detail-next-btn{
  background:var(--alx-blue-soft)!important;
  color:#155fc8!important;
  border-color:#c8dbf6!important;
}
#leadDetail .detail-next-btn:hover{background:#e3efff!important}
#leadDetail #backToLeads{
  background:#fff!important;color:#34465d!important;border-color:#d8e1ec!important
}

/* identity area: stronger name, quieter metadata */
#leadDetail .identity h2{color:var(--alx-text)!important;font-weight:800!important}
#leadDetail .contact-lines,
#leadDetail .detail-meta{color:var(--alx-muted)!important}
#leadDetail .contact-lines a{color:#5379ad!important}

/* call toolbar: soft blue surface, actions remain obvious */
#leadDetail .lead-workbar{
  background:#f5f8fc!important;
  border:1px solid #e1e8f1!important;
  box-shadow:none!important;
  border-radius:10px!important;
}
#leadDetail .lead-workbar>div:not(:last-child){border-right:1px solid #e3eaf3!important}
#leadDetail .lead-workbar span{color:#8b9bb0!important}
#leadDetail .lead-workbar strong{color:#20334c!important}
#leadDetail .lead-workbar #callNowBtn{
  background:var(--alx-blue)!important;border-color:var(--alx-blue)!important;
  box-shadow:0 4px 12px rgba(23,105,224,.16)!important
}

/* result is the primary work card */
#leadDetail .call-result-panel{
  background:linear-gradient(180deg,#f8fbff 0%,#f4f8fe 100%)!important;
  border:1px solid #d6e4f6!important;
  border-left:4px solid var(--alx-blue)!important;
  box-shadow:0 3px 12px rgba(29,72,125,.05)!important;
  border-radius:10px!important;
}
#leadDetail .call-result-head h3,
#leadDetail .call-result-head h4{color:#183454!important}
#leadDetail .call-result-head small{color:#8798ad!important}
#leadDetail .call-result-grid input,
#leadDetail .call-result-grid select{
  background:#fff!important;border-color:#d7e1ed!important
}
#leadDetail .call-result-actions .call-result-save{
  background:var(--alx-blue)!important;
  box-shadow:0 4px 10px rgba(23,105,224,.14)!important
}

/* assignment becomes a quiet utility strip */
#leadDetail .assignment-block{
  background:#fafbfd!important;
  border:1px solid #e6ebf2!important;
  box-shadow:none!important;
  border-radius:9px!important;
}
#leadDetail .assignment-block .section-title{color:#6f829a!important}

/* lower form: visually group without putting every item in a box */
#leadDetail .lead-control-grid{background:transparent!important}
#leadDetail .lead-control-grid>div{
  background:transparent!important;border:0!important;box-shadow:none!important
}
#leadDetail .section-title{
  color:#72849b!important;
  font-weight:800!important;
  letter-spacing:.08em!important
}
#leadDetail select,
#leadDetail input,
#leadDetail textarea{
  border-color:#d8e2ee!important;
  background:#fff!important;
  color:#26384e!important;
}
#leadDetail select:focus,
#leadDetail input:focus,
#leadDetail textarea:focus{
  border-color:#79a9ea!important;
  box-shadow:0 0 0 3px rgba(23,105,224,.08)!important;
  outline:none!important
}

/* destructive action should be present, not visually dominant */
#leadDetail .delete-lead-btn,
#leadDetail #deleteLeadBtn{
  background:#fff5f4!important;color:#b9342b!important;border:1px solid #f1c9c5!important;
  box-shadow:none!important
}
#leadDetail .delete-lead-btn:hover,
#leadDetail #deleteLeadBtn:hover{background:#feecea!important}

/* status semantics */
#leadDetail select[data-field="temperature"]{background:#fffaf0!important}
#leadDetail select[data-field="status"]{background:#f7faff!important}

/* appointment button: secondary, not competing with call/save */
#leadDetail .appointment-btn,
#leadDetail #createAppointmentBtn{
  background:#fff!important;color:#425875!important;border-color:#d6e0ec!important
}

/* soften large notes/timeline areas */
#leadDetail .note-box textarea{background:#fbfcfe!important}
#leadDetail .timeline-item{
  background:#fbfcfe!important;border:1px solid #e8edf4!important;box-shadow:none!important
}

/* dark theme equivalents */
html[data-alx-theme="dark"] #leadDetail .detail-wrap{background:#0e1827!important}
html[data-alx-theme="dark"] #leadDetail .detail-page-head{background:#0b1523!important;border-color:#223249!important}
html[data-alx-theme="dark"] #leadDetail .lead-workbar{background:#111e30!important;border-color:#26374f!important}
html[data-alx-theme="dark"] #leadDetail .call-result-panel{
  background:#101f33!important;border-color:#294361!important;border-left-color:#4a91f2!important
}
html[data-alx-theme="dark"] #leadDetail .assignment-block{background:#111c2c!important;border-color:#25354b!important}
html[data-alx-theme="dark"] #leadDetail input,
html[data-alx-theme="dark"] #leadDetail select,
html[data-alx-theme="dark"] #leadDetail textarea{
  background:#0c1727!important;color:#e8eef7!important;border-color:#30435e!important
}

/* v2.2.4 — approved mockup recreation */
#leadDetail{
  --p-blue:#0f6df6;
  --p-blue2:#1769e0;
  --p-navy:#10213a;
  --p-text:#172943;
  --p-muted:#7890ad;
  --p-line:#d7e3f1;
  --p-soft:#f7faff;
  --p-card:#fff;
}
#leadDetail .detail-page-head{
  min-height:58px!important;padding:10px 12px!important;background:#fff!important;
  border:1px solid #dce6f2!important;border-radius:12px 12px 0 0!important
}
#leadDetail .detail-nav-actions{gap:10px!important}
#leadDetail #backToLeads,#leadDetail .detail-next-btn{
  height:42px!important;padding:0 18px!important;background:#fff!important;color:#17345d!important;
  border:1px solid #cddbed!important;border-radius:10px!important;font-weight:800!important;
  box-shadow:0 2px 5px rgba(31,63,105,.03)!important
}
#leadDetail .detail-next-btn{background:#f8fbff!important}
#leadDetail #detailLeadRef{color:#8ca0b9!important;font-size:12px!important}

#leadDetail .detail-wrap{
  padding:16px 20px 20px!important;background:#fff!important;
  border-left:1px solid #dce6f2!important;border-right:1px solid #dce6f2!important
}

/* identity block from approved mockup */
#leadDetail .identity-premium{
  position:relative!important;display:grid!important;
  grid-template-columns:88px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  column-gap:18px!important;row-gap:2px!important;
  min-height:104px!important;padding:6px 0 12px!important;margin:0!important
}
#leadDetail .lead-avatar{
  grid-column:1!important;grid-row:1/4!important;width:78px!important;height:78px!important;
  border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(145deg,#e6f1ff,#d7e8ff)!important;color:#2768c7!important;
  font-size:29px!important;font-weight:900!important;letter-spacing:-1px!important
}
#leadDetail .identity-premium h2{
  grid-column:2!important;grid-row:1!important;font-size:22px!important;line-height:1.2!important;
  margin:2px 0 4px!important;color:#10213a!important;font-weight:850!important
}
#leadDetail .identity-premium .contact-lines{
  grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center!important;
  gap:0!important;font-size:14px!important;color:#426b9f!important
}
#leadDetail .identity-premium .contact-lines>*{
  padding-right:22px!important;margin-right:22px!important;border-right:1px solid #dce6f2!important
}
#leadDetail .identity-premium .contact-lines>*:last-child{border-right:0!important}
#leadDetail .identity-premium .detail-meta{
  grid-column:2!important;grid-row:3!important;display:flex!important;gap:10px!important;
  margin-top:5px!important;color:#647d9c!important;font-size:12px!important
}
#leadDetail .identity-premium .detail-meta>*{
  background:#f1f5fa!important;border-radius:999px!important;padding:4px 10px!important
}
#leadDetail .identity-premium .delete-lead-btn,
#leadDetail .identity-premium #deleteLeadBtn{
  grid-column:3!important;grid-row:1!important;align-self:start!important;
  background:#fff6f5!important;color:#d22e24!important;border:1px solid #ff7b72!important;
  border-radius:9px!important;height:40px!important;padding:0 16px!important;font-weight:800!important
}

/* KPI / call strip */
#leadDetail .lead-workbar{
  display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1fr .9fr!important;
  gap:14px!important;align-items:stretch!important;padding:10px 12px!important;margin:0 0 14px!important;
  min-height:84px!important;background:#f8fbff!important;border:1px solid #d8e5f4!important;
  border-radius:12px!important
}
#leadDetail .lead-workbar>div{
  position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  min-width:0!important;padding:8px 12px 8px 54px!important;background:linear-gradient(180deg,#fbfdff,#f1f6fc)!important;
  border:1px solid #e0e9f4!important;border-radius:10px!important
}
#leadDetail .lead-workbar>div:nth-child(1)::before{content:"☎"!important}
#leadDetail .lead-workbar>div:nth-child(2)::before{content:"▥"!important}
#leadDetail .lead-workbar>div:nth-child(3)::before{content:"◷"!important}
#leadDetail .lead-workbar>div:nth-child(-n+3)::before{
  position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;
  width:32px!important;height:32px!important;border-radius:9px!important;background:#e7f1ff!important;
  color:#1769e0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:18px!important;font-weight:900!important
}
#leadDetail .lead-workbar span{font-size:11px!important;color:#7e91aa!important}
#leadDetail .lead-workbar strong{font-size:16px!important;color:#10213a!important;margin-top:2px!important}
#leadDetail .lead-workbar #callNowBtn{
  height:100%!important;min-height:60px!important;border-radius:10px!important;background:#0f6df6!important;
  color:#fff!important;border:0!important;font-size:16px!important;font-weight:850!important
}
#leadDetail .lead-workbar .appointment-btn,
#leadDetail .lead-workbar #createAppointmentBtn{
  height:100%!important;min-height:60px!important;border-radius:10px!important;background:#fff!important;
  color:#17345d!important;border:1px solid #ccdced!important;font-weight:800!important
}

/* approved primary work card */
#leadDetail .call-result-panel{
  padding:14px 16px 16px 20px!important;margin:0 0 14px!important;
  background:linear-gradient(100deg,#f4f9ff 0%,#f8fbff 100%)!important;
  border:1px solid #cfe0f6!important;border-left:5px solid #176ff2!important;
  border-radius:12px!important;box-shadow:0 5px 16px rgba(32,83,148,.05)!important
}
#leadDetail .call-result-head{margin-bottom:10px!important}
#leadDetail .call-result-head h3,#leadDetail .call-result-head h4{
  font-size:17px!important;color:#15376a!important;font-weight:850!important
}
#leadDetail .call-result-head small{font-size:12px!important;color:#7892b3!important}
#leadDetail .call-result-grid{
  grid-template-columns:minmax(250px,.8fr) minmax(430px,1.65fr) 150px!important;
  gap:12px!important;align-items:end!important
}
#leadDetail .call-result-grid label{font-size:12px!important;color:#405b7e!important;font-weight:750!important}
#leadDetail .call-result-grid input,#leadDetail .call-result-grid select{
  height:46px!important;border-radius:9px!important;border:1px solid #cfdcec!important;background:#fff!important
}
#leadDetail .call-result-actions{height:46px!important;width:150px!important}
#leadDetail .call-result-actions .call-result-save{
  width:150px!important;height:46px!important;border-radius:9px!important;background:#0f6df6!important;
  font-size:14px!important;font-weight:850!important
}

/* General Settings card: assignment + temperature + status + appointment, same row */
#leadDetail .assignment-block{
  margin:0!important;padding:12px 14px!important;background:#fff!important;
  border:1px solid #d8e3ef!important;border-radius:12px 12px 0 0!important;border-bottom:0!important
}
#leadDetail .assignment-block::before{
  content:"⚙  Genel Ayarlar"!important;display:block!important;margin:0 0 2px!important;
  color:#19385f!important;font-size:17px!important;font-weight:850!important
}
#leadDetail .assignment-block::after{
  content:"Atama, sıcaklık, durum ve randevu bilgilerini düzenleyin."!important;
  display:block!important;margin-bottom:10px!important;color:#8497ae!important;font-size:12px!important
}
#leadDetail .lead-control-grid{
  margin:0!important;padding:0 14px 14px!important;background:#fff!important;
  border:1px solid #d8e3ef!important;border-top:0!important;border-radius:0 0 12px 12px!important;
  display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:14px!important
}
#leadDetail .assignment-block{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important
}
#leadDetail .assignment-block select{height:44px!important;border-radius:9px!important}
#leadDetail .lead-control-grid select,#leadDetail .lead-control-grid button{
  height:44px!important;border-radius:9px!important
}
#leadDetail .section-title{font-size:12px!important;color:#405b7e!important;letter-spacing:0!important}

/* note card */
#leadDetail .note-box{
  margin-top:14px!important;padding:12px 14px!important;background:#fff!important;
  border:1px solid #d8e3ef!important;border-radius:12px!important
}
#leadDetail .note-box .section-title{
  font-size:16px!important;color:#17345d!important;font-weight:850!important;margin-bottom:8px!important
}
#leadDetail .note-box textarea{
  min-height:72px!important;background:#fbfdff!important;border:1px solid #cfdeee!important;
  border-radius:9px!important;padding:12px 14px!important
}

/* keep page dense and polished */
#leadDetail input,#leadDetail select,#leadDetail textarea{font-size:13px!important}
#leadDetail button{transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important}
#leadDetail button:hover{transform:translateY(-1px)!important}
#leadDetail button:active{transform:translateY(0)!important}

@media(max-width:1050px){
  #leadDetail .identity-premium{grid-template-columns:72px minmax(0,1fr) auto!important}
  #leadDetail .lead-avatar{width:62px!important;height:62px!important;font-size:24px!important}
  #leadDetail .lead-workbar{grid-template-columns:1fr 1fr 1.2fr!important}
  #leadDetail .call-result-grid{grid-template-columns:1fr!important}
  #leadDetail .call-result-actions,#leadDetail .call-result-actions .call-result-save{width:100%!important}
}

/* v2.3.0 — approved reference, structural implementation */
#leadDetail{--b:#0f6df6;--ink:#112642;--mut:#7890ad;--line:#d6e2f0}
#leadDetail .detail-wrap{padding:16px 20px 20px!important;background:#fff!important}
#leadDetail .identity-premium{
 display:grid!important;grid-template-columns:86px minmax(0,1fr) auto!important;
 gap:18px!important;align-items:start!important;min-height:116px!important;padding:8px 0 16px!important
}
#leadDetail .lead-avatar{
 width:78px!important;height:78px!important;border-radius:50%!important;background:#e2efff!important;
 color:#2c6bc5!important;display:flex!important;align-items:center!important;justify-content:center!important;
 font-size:28px!important;font-weight:900!important
}
#leadDetail .identity-main h2{font-size:22px!important;color:#10213a!important;margin:2px 0 8px!important}
#leadDetail .identity-main .contact-lines{display:flex!important;align-items:center!important;gap:0!important;flex-wrap:wrap!important}
#leadDetail .identity-main .contact-lines>*{padding-right:22px!important;margin-right:22px!important;border-right:1px solid #dbe5f1!important}
#leadDetail .identity-main .contact-lines>*:last-child{border:0!important}
#leadDetail .detail-top-actions{justify-self:end!important}
#leadDetail #deleteLeadBtn{background:#fff6f5!important;color:#d42d25!important;border:1px solid #ff746b!important;border-radius:9px!important}

#leadDetail .lead-workbar{
 display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1fr .9fr!important;gap:14px!important;
 padding:12px!important;min-height:86px!important;background:#f8fbff!important;border:1px solid #d8e4f2!important;border-radius:12px!important
}
#leadDetail .lead-workbar .kpi-card{
 display:grid!important;grid-template-columns:44px 1fr!important;grid-template-rows:1fr 1fr!important;
 padding:9px 12px!important;background:linear-gradient(180deg,#fbfdff,#f1f6fc)!important;
 border:1px solid #dfe9f4!important;border-radius:10px!important
}
#leadDetail .kpi-card:before{
 grid-column:1!important;grid-row:1/3!important;width:34px!important;height:34px!important;align-self:center!important;
 border-radius:9px!important;background:#e4efff!important;color:#1769e0!important;display:flex!important;
 align-items:center!important;justify-content:center!important;font-size:18px!important;font-weight:900!important
}
#leadDetail .kpi-today:before{content:"☎"!important}
#leadDetail .kpi-total:before{content:"▥"!important}
#leadDetail .kpi-last:before{content:"◷"!important}
#leadDetail .kpi-card span{grid-column:2!important;align-self:end!important;color:#7e91aa!important;font-size:11px!important}
#leadDetail .kpi-card strong{grid-column:2!important;align-self:start!important;color:#10213a!important;font-size:16px!important}
#leadDetail .workbar-call,#leadDetail .workbar-appt{height:100%!important;min-height:60px!important;border-radius:10px!important;font-size:15px!important;font-weight:850!important}
#leadDetail .workbar-call{background:#0f6df6!important;color:#fff!important;border:0!important}
#leadDetail .workbar-appt{background:#fff!important;color:#17345d!important;border:1px solid #cbd9e9!important}

#leadDetail .call-result-panel{
 margin:14px 0!important;padding:15px 18px 17px!important;background:linear-gradient(100deg,#f2f8ff,#f8fbff)!important;
 border:1px solid #cfe0f6!important;border-left:5px solid #176ff2!important;border-radius:12px!important
}
#leadDetail .call-result-head{display:flex!important;gap:12px!important;align-items:flex-start!important;margin-bottom:10px!important}
#leadDetail .result-icon{
 width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:10px!important;background:#e3efff!important;
 color:#1769e0!important;display:flex!important;align-items:center!important;justify-content:center!important
}
#leadDetail .call-result-head strong{font-size:17px!important;color:#15376a!important}
#leadDetail .call-result-head small{display:block!important;color:#7892b3!important;margin-top:2px!important}
#leadDetail .call-result-grid{grid-template-columns:minmax(250px,.8fr) minmax(420px,1.65fr) 150px!important;gap:12px!important}
#leadDetail .call-result-grid input,#leadDetail .call-result-grid select{height:46px!important;border-radius:9px!important}
#leadDetail .call-result-actions,#leadDetail .call-result-actions .call-result-save{width:150px!important;height:46px!important}
#leadDetail .call-result-save{background:#0f6df6!important;border-radius:9px!important;font-weight:850!important}

#leadDetail .general-settings-card{
 margin:0!important;padding:12px 14px 14px!important;background:#fff!important;border:1px solid #d8e3ef!important;border-radius:12px!important
}
#leadDetail .general-settings-head{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:10px!important}
#leadDetail .settings-icon{
 width:38px!important;height:38px!important;border-radius:9px!important;background:#eef3f9!important;color:#486a91!important;
 display:flex!important;align-items:center!important;justify-content:center!important
}
#leadDetail .general-settings-head strong{display:block!important;font-size:17px!important;color:#19385f!important}
#leadDetail .general-settings-head small{display:block!important;color:#8497ae!important;font-size:12px!important}
#leadDetail .general-settings-card .assignment-block{
 margin:0 0 10px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important
}
#leadDetail .general-settings-card .lead-control-grid{
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;
 display:grid!important;grid-template-columns:1fr 1.15fr .9fr!important;gap:14px!important
}
#leadDetail .general-settings-card select,#leadDetail .general-settings-card button{height:44px!important;border-radius:9px!important}

#leadDetail .note-box{
 margin-top:14px!important;padding:12px 14px!important;background:#fff!important;border:1px solid #d8e3ef!important;border-radius:12px!important
}
#leadDetail .note-box .section-title{font-size:16px!important;color:#17345d!important;font-weight:850!important}
#leadDetail .note-box textarea{min-height:72px!important;background:#fbfdff!important;border-radius:9px!important}

@media(max-width:1100px){
 #leadDetail .lead-workbar{grid-template-columns:1fr 1fr 1.2fr!important}
 #leadDetail .call-result-grid{grid-template-columns:1fr!important}
 #leadDetail .call-result-actions,#leadDetail .call-result-actions .call-result-save{width:100%!important}
}

/* v2.3.1 — final reference alignment */
#leadDetail .detail-wrap{padding:14px 22px 20px!important}

/* 1–2 identity */
#leadDetail .identity.identity-premium{
 display:grid!important;grid-template-columns:92px minmax(0,1fr) 150px!important;
 grid-template-rows:auto!important;column-gap:18px!important;
 min-height:118px!important;padding:14px 10px 12px!important;align-items:start!important
}
#leadDetail .identity.identity-premium .lead-avatar{
 display:flex!important;position:static!important;grid-column:1!important;grid-row:1!important;
 width:82px!important;height:82px!important;min-width:82px!important;border-radius:50%!important;
 background:linear-gradient(145deg,#e8f2ff,#dcecff)!important;color:#2868c7!important;
 align-items:center!important;justify-content:center!important;font-size:30px!important;font-weight:900!important;
 line-height:1!important
}
#leadDetail .identity.identity-premium .identity-main{
 grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;padding-top:4px!important;min-width:0!important
}
#leadDetail .identity.identity-premium .identity-main h2{
 font-size:22px!important;line-height:1.2!important;margin:0 0 8px!important;color:#10213a!important;font-weight:850!important
}
#leadDetail .identity.identity-premium .contact-lines{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;
 margin:0!important;font-size:14px!important;color:#3e6699!important
}
#leadDetail .identity.identity-premium .contact-lines>*{
 display:inline-flex!important;align-items:center!important;padding:0 22px 0 0!important;margin:0 22px 0 0!important;
 border-right:1px solid #dbe5f1!important
}
#leadDetail .identity.identity-premium .contact-lines>*:last-child{border-right:0!important}
#leadDetail .identity.identity-premium .detail-meta{
 display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0 0!important;font-size:12px!important;color:#657f9e!important
}
#leadDetail .identity.identity-premium .detail-meta>*{
 background:#f1f5fa!important;border-radius:999px!important;padding:4px 10px!important
}
#leadDetail .identity.identity-premium .detail-top-actions{
 grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:start!important;margin:0!important
}
#leadDetail #deleteLeadBtn,#leadDetail .delete-lead-btn{
 height:42px!important;background:#fff7f6!important;color:#d52d24!important;border:1px solid #ff746b!important;
 border-radius:9px!important;padding:0 16px!important;box-shadow:none!important
}

/* 3–4 real KPI cards + actions */
#leadDetail .lead-workbar{
 display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1fr .9fr!important;gap:14px!important;
 min-height:88px!important;padding:12px!important;margin:0 0 14px!important;background:#f8fbff!important;
 border:1px solid #d8e4f2!important;border-radius:12px!important;overflow:visible!important
}
#leadDetail .lead-workbar .kpi-card{
 display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;
 gap:0 10px!important;padding:9px 12px!important;background:linear-gradient(180deg,#fcfdff,#f1f6fc)!important;
 border:1px solid #dfe9f4!important;border-radius:10px!important;min-width:0!important
}
#leadDetail .lead-workbar .kpi-card::before{
 grid-column:1!important;grid-row:1/3!important;position:static!important;transform:none!important;
 width:36px!important;height:36px!important;align-self:center!important;border-radius:9px!important;
 background:#e4efff!important;color:#1769e0!important;display:flex!important;align-items:center!important;
 justify-content:center!important;font-size:18px!important;font-weight:900!important
}
#leadDetail .kpi-today::before{content:"☎"!important}
#leadDetail .kpi-total::before{content:"▥"!important}
#leadDetail .kpi-last::before{content:"◷"!important}
#leadDetail .kpi-card span{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:11px!important;color:#7d91aa!important}
#leadDetail .kpi-card strong{grid-column:2!important;grid-row:2!important;align-self:start!important;font-size:16px!important;color:#10213a!important;white-space:nowrap!important}
#leadDetail .workbar-call,#leadDetail .workbar-appt{
 display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;min-height:62px!important;
 border-radius:10px!important;font-size:15px!important;font-weight:850!important
}
#leadDetail .workbar-call{background:#0f6df6!important;color:#fff!important;border:0!important;box-shadow:0 5px 14px rgba(15,109,246,.16)!important}
#leadDetail .workbar-appt{background:#fff!important;color:#17345d!important;border:1px solid #cbd9e9!important}

/* 5–6 result panel */
#leadDetail .call-result-panel{
 display:block!important;margin:0 0 14px!important;padding:15px 18px 17px!important;
 background:linear-gradient(100deg,#f2f8ff,#f8fbff)!important;border:1px solid #cfe0f6!important;
 border-left:5px solid #176ff2!important;border-radius:12px!important
}
#leadDetail .call-result-head{
 display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;
 gap:12px!important;margin:0 0 10px!important;text-align:left!important
}
#leadDetail .result-icon{
 display:flex!important;position:static!important;width:38px!important;height:38px!important;min-width:38px!important;
 border-radius:10px!important;background:#e3efff!important;color:#1769e0!important;align-items:center!important;justify-content:center!important
}
#leadDetail .result-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#leadDetail .call-result-head strong{font-size:17px!important;color:#15376a!important;line-height:1.2!important}
#leadDetail .call-result-head small{display:block!important;margin-top:3px!important;color:#7892b3!important;font-size:12px!important}
#leadDetail .call-result-grid{
 display:grid!important;grid-template-columns:minmax(260px,.8fr) minmax(430px,1.7fr) 150px!important;
 gap:12px!important;align-items:end!important
}
#leadDetail .call-result-grid label{display:block!important;font-size:12px!important;color:#405b7e!important;margin-bottom:4px!important}
#leadDetail .call-result-grid input,#leadDetail .call-result-grid select{height:46px!important;border-radius:9px!important}
#leadDetail .call-result-actions,#leadDetail .call-result-save{width:150px!important;height:46px!important}
#leadDetail .call-result-save{background:#0f6df6!important;color:#fff!important;border:0!important;border-radius:9px!important;font-weight:850!important}

/* 7–8 one General Settings card; four controls on one row */
#leadDetail .general-settings-card{
 display:block!important;margin:0!important;padding:12px 14px 14px!important;background:#fff!important;
 border:1px solid #d8e3ef!important;border-radius:12px!important
}
#leadDetail .general-settings-head{
 display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 11px!important
}
#leadDetail .settings-icon{
 display:flex!important;position:static!important;width:38px!important;height:38px!important;min-width:38px!important;
 border-radius:9px!important;background:#eef3f9!important;color:#486a91!important;align-items:center!important;justify-content:center!important
}
#leadDetail .general-settings-head>div{display:flex!important;flex-direction:column!important}
#leadDetail .general-settings-head strong{font-size:17px!important;line-height:1.2!important;color:#19385f!important}
#leadDetail .general-settings-head small{font-size:12px!important;color:#8497ae!important;margin-top:2px!important}
#leadDetail .general-settings-card .assignment-block{
 display:block!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important
}
#leadDetail .general-settings-card .assignment-block::before,
#leadDetail .general-settings-card .assignment-block::after{content:none!important;display:none!important}
#leadDetail .general-settings-card .assignment-block{
 width:calc(25% - 10.5px)!important;float:left!important;margin-right:14px!important
}
#leadDetail .general-settings-card .lead-control-grid{
 display:grid!important;grid-template-columns:1fr 1.15fr .9fr!important;gap:14px!important;
 width:calc(75% - 3.5px)!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important
}
#leadDetail .general-settings-card::after{content:""!important;display:block!important;clear:both!important}
#leadDetail .general-settings-card .assignment-block select,
#leadDetail .general-settings-card .lead-control-grid select,
#leadDetail .general-settings-card .lead-control-grid button{
 width:100%!important;height:44px!important;border-radius:9px!important
}
#leadDetail .general-settings-card .section-title{
 display:block!important;margin:0 0 5px!important;font-size:12px!important;color:#405b7e!important;font-weight:750!important;letter-spacing:0!important
}

/* 9 note card */
#leadDetail .note-box{
 display:block!important;margin:14px 0 0!important;padding:12px 14px!important;background:#fff!important;
 border:1px solid #d8e3ef!important;border-radius:12px!important
}
#leadDetail .note-box .section-title{
 display:block!important;margin:0 0 8px!important;font-size:16px!important;color:#17345d!important;font-weight:850!important;letter-spacing:0!important
}
#leadDetail .note-box .section-title::before{content:"▤"!important;color:#496b92!important;margin-right:8px!important}
#leadDetail .note-box textarea{width:100%!important;min-height:76px!important;border-radius:9px!important;background:#fbfdff!important}

/* 10 consistent typography and spacing */
#leadDetail input,#leadDetail select,#leadDetail textarea{font-size:13px!important;border-color:#cfddec!important}
#leadDetail button{font-family:inherit!important}

@media(max-width:1150px){
 #leadDetail .lead-workbar{grid-template-columns:1fr 1fr 1.2fr!important}
 #leadDetail .general-settings-card .assignment-block{float:none!important;width:100%!important;margin:0 0 10px!important}
 #leadDetail .general-settings-card .lead-control-grid{width:100%!important}
 #leadDetail .call-result-grid{grid-template-columns:1fr!important}
 #leadDetail .call-result-actions,#leadDetail .call-result-save{width:100%!important}
}

/* v2.4.0 — isolated approved-reference layout */
#leadDetail .alx-reference-detail{padding:16px 20px 22px!important;background:#fff!important}
#leadDetail .alx-ref-shell{display:flex!important;flex-direction:column!important;gap:14px!important;width:100%!important;color:#10213a!important}

/* identity */
#leadDetail .alx-ref-identity{
 display:grid!important;grid-template-columns:88px minmax(0,1fr) 150px!important;gap:18px!important;
 align-items:start!important;min-height:104px!important;padding:4px 2px 0!important
}
#leadDetail .alx-ref-identity .lead-avatar{
 display:flex!important;width:80px!important;height:80px!important;min-width:80px!important;border-radius:50%!important;
 align-items:center!important;justify-content:center!important;background:#e1eeff!important;color:#2868c7!important;
 font-size:30px!important;font-weight:900!important;line-height:1!important;position:static!important
}
#leadDetail .alx-ref-identity .identity-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding-top:5px!important}
#leadDetail .alx-ref-identity h2{font-size:22px!important;line-height:1.2!important;margin:0 0 8px!important;font-weight:850!important;color:#10213a!important}
#leadDetail .alx-ref-identity .contact-lines{display:flex!important;align-items:center!important;gap:0!important;margin:0!important;font-size:14px!important}
#leadDetail .alx-ref-identity .contact-lines>*{padding-right:22px!important;margin-right:22px!important;border-right:1px solid #dbe5f1!important}
#leadDetail .alx-ref-identity .contact-lines>*:last-child{border:0!important}
#leadDetail .alx-ref-identity .detail-meta{display:flex!important;gap:8px!important;margin-top:8px!important;font-size:12px!important;color:#647e9d!important}
#leadDetail .alx-ref-identity .detail-meta>*{background:#f1f5fa!important;border-radius:999px!important;padding:4px 10px!important}
#leadDetail .alx-ref-identity .detail-top-actions{justify-self:end!important;margin:0!important}
#leadDetail .alx-ref-identity #deleteLeadBtn{
 height:42px!important;padding:0 16px!important;border-radius:9px!important;background:#fff6f5!important;
 color:#d52d24!important;border:1px solid #ff746b!important;box-shadow:none!important;font-weight:800!important
}

/* KPI strip */
#leadDetail .alx-ref-kpis{
 display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1fr .9fr!important;gap:14px!important;
 min-height:86px!important;padding:12px!important;margin:0!important;background:#f8fbff!important;
 border:1px solid #d8e4f2!important;border-radius:12px!important
}
#leadDetail .alx-ref-kpis .kpi-card{
 display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;
 gap:0 10px!important;padding:9px 12px!important;background:linear-gradient(180deg,#fcfdff,#f1f6fc)!important;
 border:1px solid #dfe9f4!important;border-radius:10px!important
}
#leadDetail .alx-ref-kpis .kpi-card::before{
 grid-column:1!important;grid-row:1/3!important;position:static!important;transform:none!important;
 width:36px!important;height:36px!important;align-self:center!important;border-radius:9px!important;background:#e4efff!important;
 color:#1769e0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;font-weight:900!important
}
#leadDetail .alx-ref-kpis .kpi-today::before{content:"☎"!important}
#leadDetail .alx-ref-kpis .kpi-total::before{content:"▥"!important}
#leadDetail .alx-ref-kpis .kpi-last::before{content:"◷"!important}
#leadDetail .alx-ref-kpis .kpi-card span{grid-column:2!important;align-self:end!important;font-size:11px!important;color:#7d91aa!important}
#leadDetail .alx-ref-kpis .kpi-card strong{grid-column:2!important;align-self:start!important;font-size:16px!important;color:#10213a!important;white-space:nowrap!important}
#leadDetail .alx-ref-kpis .workbar-call,#leadDetail .alx-ref-kpis .workbar-appt{
 width:100%!important;height:100%!important;min-height:60px!important;border-radius:10px!important;font-size:15px!important;font-weight:850!important
}
#leadDetail .alx-ref-kpis .workbar-call{background:#0f6df6!important;color:#fff!important;border:0!important}
#leadDetail .alx-ref-kpis .workbar-appt{background:#fff!important;color:#17345d!important;border:1px solid #cbd9e9!important}

/* result */
#leadDetail .alx-ref-result{
 display:block!important;margin:0!important;padding:15px 18px 17px!important;background:linear-gradient(100deg,#f2f8ff,#f8fbff)!important;
 border:1px solid #cfe0f6!important;border-left:5px solid #176ff2!important;border-radius:12px!important
}
#leadDetail .alx-ref-result .call-result-head{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important;text-align:left!important}
#leadDetail .alx-ref-result .result-icon{display:flex!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important;background:#e3efff!important;color:#1769e0!important;align-items:center!important;justify-content:center!important}
#leadDetail .alx-ref-result .result-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#leadDetail .alx-ref-result .result-copy strong{font-size:17px!important;color:#15376a!important}
#leadDetail .alx-ref-result .result-copy small{display:block!important;margin-top:3px!important;color:#7892b3!important;font-size:12px!important}
#leadDetail .alx-ref-result .call-result-grid{display:grid!important;grid-template-columns:minmax(250px,.8fr) minmax(420px,1.7fr) 150px!important;gap:12px!important;align-items:end!important}
#leadDetail .alx-ref-result label{display:block!important;margin-bottom:4px!important;font-size:12px!important;color:#405b7e!important}
#leadDetail .alx-ref-result input,#leadDetail .alx-ref-result select{height:46px!important;border-radius:9px!important}
#leadDetail .alx-ref-result .call-result-actions,#leadDetail .alx-ref-result .call-result-save{width:150px!important;height:46px!important}
#leadDetail .alx-ref-result .call-result-save{border:0!important;border-radius:9px!important;background:#0f6df6!important;color:#fff!important;font-weight:850!important}

/* general settings — truly one row */
#leadDetail .alx-ref-general{display:block!important;padding:12px 14px 14px!important;background:#fff!important;border:1px solid #d8e3ef!important;border-radius:12px!important}
#leadDetail .alx-ref-general-head{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:11px!important}
#leadDetail .alx-ref-gear{display:flex!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:9px!important;background:#eef3f9!important;color:#486a91!important;align-items:center!important;justify-content:center!important;font-size:18px!important}
#leadDetail .alx-ref-general-head strong{display:block!important;font-size:17px!important;color:#19385f!important;line-height:1.2!important}
#leadDetail .alx-ref-general-head small{display:block!important;margin-top:2px!important;font-size:12px!important;color:#8497ae!important}
#leadDetail .alx-ref-general-row{display:grid!important;grid-template-columns:1.15fr .85fr 1fr .85fr!important;gap:14px!important;align-items:end!important}
#leadDetail .alx-ref-field{display:flex!important;flex-direction:column!important;min-width:0!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important}
#leadDetail .alx-ref-field .section-title{display:block!important;margin:0 0 5px!important;font-size:12px!important;color:#405b7e!important;font-weight:750!important;letter-spacing:0!important}
#leadDetail .alx-ref-field select,#leadDetail .alx-ref-field button{width:100%!important;height:44px!important;border-radius:9px!important}

/* notes */
#leadDetail .alx-ref-note{display:block!important;margin:0!important;padding:12px 14px!important;background:#fff!important;border:1px solid #d8e3ef!important;border-radius:12px!important}
#leadDetail .alx-ref-note .section-title{display:block!important;margin:0 0 8px!important;font-size:16px!important;color:#17345d!important;font-weight:850!important;letter-spacing:0!important}
#leadDetail .alx-ref-note .section-title::before{content:"▤"!important;color:#496b92!important;margin-right:8px!important}
#leadDetail .alx-ref-note textarea{width:100%!important;min-height:76px!important;border-radius:9px!important;background:#fbfdff!important}

/* prevent old pseudo headings leaking into rebuilt shell */
#leadDetail .alx-ref-shell .assignment-block::before,
#leadDetail .alx-ref-shell .assignment-block::after{display:none!important;content:none!important}

@media(max-width:1100px){
 #leadDetail .alx-ref-kpis{grid-template-columns:1fr 1fr 1.2fr!important}
 #leadDetail .alx-ref-result .call-result-grid{grid-template-columns:1fr!important}
 #leadDetail .alx-ref-result .call-result-actions,#leadDetail .alx-ref-result .call-result-save{width:100%!important}
 #leadDetail .alx-ref-general-row{grid-template-columns:1fr 1fr!important}
}

/* v2.4.1 — full-screen design polish based on user visual review */
#leadDetail .alx-reference-detail{padding:14px 18px 20px!important}
#leadDetail .alx-ref-shell{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}

/* Compact designed avatar/profile, not loose initials */
#leadDetail .alx-ref-identity{
 display:grid!important;grid-template-columns:72px minmax(0,1fr) 110px!important;gap:14px!important;
 min-height:84px!important;padding:4px 4px 2px!important;align-items:center!important
}
#leadDetail .alx-ref-identity .lead-avatar{
 display:flex!important;position:static!important;width:62px!important;height:62px!important;min-width:62px!important;
 border-radius:50%!important;background:linear-gradient(145deg,#e9f3ff,#d8e9ff)!important;
 border:1px solid #cfe1f8!important;box-shadow:0 4px 12px rgba(34,95,175,.10)!important;
 color:#2467c7!important;font-size:23px!important;font-weight:900!important;line-height:1!important
}
#leadDetail .alx-ref-identity .identity-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:0!important}
#leadDetail .alx-ref-identity h2{font-size:18px!important;margin:0 0 5px!important;line-height:1.2!important}
#leadDetail .alx-ref-identity .contact-lines{display:flex!important;gap:18px!important;font-size:11px!important}
#leadDetail .alx-ref-identity .contact-lines>*{padding:0!important;margin:0!important;border:0!important}
#leadDetail .alx-ref-identity .detail-meta{display:flex!important;gap:6px!important;margin-top:5px!important}
#leadDetail .alx-ref-identity .detail-meta>*{padding:3px 7px!important;font-size:9px!important;border-radius:999px!important;background:#f1f5fa!important}
#leadDetail .alx-ref-identity #deleteLeadBtn{height:34px!important;padding:0 10px!important;font-size:11px!important;background:#fff!important;color:#c43a32!important;border:1px solid #edb9b5!important}

/* Same exact left/right grid for every major card */
#leadDetail .alx-ref-kpis,#leadDetail .alx-ref-result,#leadDetail .alx-ref-general,#leadDetail .alx-ref-note{
 width:100%!important;box-sizing:border-box!important;margin:0!important;border-radius:11px!important;
 border:1px solid #d8e4f1!important;box-shadow:0 2px 8px rgba(30,66,110,.035)!important
}

/* KPI row: real cards and aligned with result card below */
#leadDetail .alx-ref-kpis{
 display:grid!important;grid-template-columns:1fr 1fr 1.45fr 1.05fr .9fr!important;gap:10px!important;
 padding:9px!important;min-height:72px!important;background:#f8fbff!important
}
#leadDetail .alx-ref-kpis .kpi-card{
 display:grid!important;grid-template-columns:38px 1fr!important;grid-template-rows:1fr 1fr!important;gap:0 7px!important;
 padding:7px 9px!important;background:linear-gradient(180deg,#fcfdff,#f1f6fc)!important;border:1px solid #e0e9f4!important;border-radius:9px!important
}
#leadDetail .alx-ref-kpis .kpi-card::before{
 grid-column:1!important;grid-row:1/3!important;position:static!important;transform:none!important;width:30px!important;height:30px!important;
 align-self:center!important;border-radius:8px!important;background:#e5f0ff!important;color:#1769e0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;font-weight:900!important
}
#leadDetail .alx-ref-kpis .kpi-today::before{content:"☎"!important}
#leadDetail .alx-ref-kpis .kpi-total::before{content:"▥"!important}
#leadDetail .alx-ref-kpis .kpi-last::before{content:"◷"!important}
#leadDetail .alx-ref-kpis .kpi-card span{grid-column:2!important;align-self:end!important;font-size:9px!important;color:#8193aa!important}
#leadDetail .alx-ref-kpis .kpi-card strong{grid-column:2!important;align-self:start!important;font-size:13px!important;color:#10213a!important;white-space:nowrap!important}
#leadDetail .alx-ref-kpis .workbar-call,#leadDetail .alx-ref-kpis .workbar-appt{min-height:52px!important;height:100%!important;border-radius:9px!important;font-size:12px!important;font-weight:800!important}
#leadDetail .alx-ref-kpis .workbar-call{background:#0f6df6!important;color:#fff!important;border:0!important}
#leadDetail .alx-ref-kpis .workbar-appt{background:#fff!important;color:#17345d!important;border:1px solid #ccd9e8!important}

/* Result card hierarchy */
#leadDetail .alx-ref-result{padding:11px 12px 12px 14px!important;background:linear-gradient(100deg,#f3f8ff,#f9fbff)!important;border-left:4px solid #176ff2!important}
#leadDetail .alx-ref-result .call-result-head{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;margin:0 0 8px!important;text-align:left!important}
#leadDetail .alx-ref-result .result-icon{display:flex!important;position:static!important;width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;background:#e3efff!important;color:#1769e0!important;align-items:center!important;justify-content:center!important;font-size:0!important}
#leadDetail .alx-ref-result .result-icon::before{content:"●"!important;font-size:14px!important;color:#1769e0!important}
#leadDetail .alx-ref-result .result-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#leadDetail .alx-ref-result .result-copy strong{font-size:14px!important;color:#15376a!important}
#leadDetail .alx-ref-result .result-copy small{display:block!important;margin-top:2px!important;font-size:9px!important;color:#8498b2!important}
#leadDetail .alx-ref-result .call-result-grid{display:grid!important;grid-template-columns:170px minmax(340px,1fr) 100px!important;gap:9px!important;align-items:end!important}
#leadDetail .alx-ref-result label{font-size:9px!important;margin-bottom:3px!important}
#leadDetail .alx-ref-result input,#leadDetail .alx-ref-result select{height:36px!important;font-size:11px!important;border-radius:8px!important}
#leadDetail .alx-ref-result .call-result-actions,#leadDetail .alx-ref-result .call-result-save{width:100px!important;height:36px!important}
#leadDetail .alx-ref-result .call-result-save{border-radius:8px!important;font-size:11px!important}

/* General settings: proper heading + subtitle, then one clean 4-column row */
#leadDetail .alx-ref-general{display:block!important;padding:10px 11px 11px!important;background:#fff!important}
#leadDetail .alx-ref-general-head{display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 9px!important}
#leadDetail .alx-ref-gear{display:flex!important;width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;background:#edf3fa!important;border:1px solid #e0e8f2!important;color:#496b92!important;align-items:center!important;justify-content:center!important;font-size:14px!important}
#leadDetail .alx-ref-general-head>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#leadDetail .alx-ref-general-head strong{display:block!important;font-size:14px!important;line-height:1.15!important;color:#19385f!important;font-weight:800!important}
#leadDetail .alx-ref-general-head small{display:block!important;font-size:9px!important;line-height:1.2!important;margin-top:2px!important;color:#8798ad!important}
#leadDetail .alx-ref-general-row{display:grid!important;grid-template-columns:1.15fr .8fr 1.15fr .8fr!important;gap:9px!important;align-items:end!important}
#leadDetail .alx-ref-field{display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#leadDetail .alx-ref-field .section-title{font-size:9px!important;margin:0 0 3px!important;letter-spacing:.04em!important;color:#5e7694!important}
#leadDetail .alx-ref-field select,#leadDetail .alx-ref-field button{width:100%!important;height:36px!important;font-size:11px!important;border-radius:8px!important}

/* Note card */
#leadDetail .alx-ref-note{padding:10px 11px!important;background:#fff!important}
#leadDetail .alx-ref-note .section-title{font-size:13px!important;margin:0 0 6px!important;color:#17345d!important}
#leadDetail .alx-ref-note textarea{width:100%!important;min-height:60px!important;font-size:11px!important;border-radius:8px!important;background:#fbfdff!important}

/* kill any old pseudo headings inside the isolated layout */
#leadDetail .alx-ref-shell .assignment-block::before,#leadDetail .alx-ref-shell .assignment-block::after{content:none!important;display:none!important}

@media(max-width:1050px){
 #leadDetail .alx-ref-kpis{grid-template-columns:1fr 1fr 1.2fr!important}
 #leadDetail .alx-ref-result .call-result-grid{grid-template-columns:1fr!important}
 #leadDetail .alx-ref-result .call-result-actions,#leadDetail .alx-ref-result .call-result-save{width:100%!important}
 #leadDetail .alx-ref-general-row{grid-template-columns:1fr 1fr!important}
}

/* v2.5.0 — root-cause fixed: actual assignment-box selector activates the isolated layout */
#leadDetail .alx-ref-shell{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important}

/* Profile */
#leadDetail .alx-ref-identity{
 display:grid!important;grid-template-columns:68px minmax(0,1fr) 105px!important;align-items:center!important;
 gap:14px!important;padding:8px 10px!important;min-height:82px!important;background:#fff!important
}
#leadDetail .alx-ref-identity .lead-avatar{
 display:flex!important;width:58px!important;height:58px!important;min-width:58px!important;border-radius:50%!important;
 align-items:center!important;justify-content:center!important;background:linear-gradient(145deg,#eaf4ff,#d8e9ff)!important;
 border:1px solid #cbdff8!important;box-shadow:0 5px 14px rgba(35,91,168,.11)!important;
 color:#2567c7!important;font-size:22px!important;font-weight:900!important
}
#leadDetail .alx-ref-identity .identity-main{display:flex!important;flex-direction:column!important;gap:5px!important;align-items:flex-start!important}
#leadDetail .alx-ref-identity .identity-main h2{margin:0!important;font-size:18px!important;font-weight:800!important;color:#132b4b!important}
#leadDetail .alx-ref-identity .contact-lines{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap!important;font-size:11px!important;color:#55769d!important}
#leadDetail .alx-ref-identity .contact-lines>*{margin:0!important;padding:0!important;border:0!important}
#leadDetail .alx-ref-identity .detail-top-actions{justify-self:end!important;align-self:start!important}
#leadDetail .alx-ref-identity #deleteLeadBtn{height:34px!important;padding:0 11px!important;background:#fff!important;color:#c53b33!important;border:1px solid #efb8b4!important;border-radius:8px!important;font-size:11px!important}

/* KPI strip */
#leadDetail .alx-ref-kpis{
 display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1fr .85fr!important;gap:10px!important;
 width:100%!important;padding:10px!important;background:#f8fbff!important;border:1px solid #d8e4f1!important;border-radius:11px!important
}
#leadDetail .alx-ref-kpis .kpi-card{
 display:grid!important;grid-template-columns:38px 1fr!important;grid-template-rows:1fr 1fr!important;column-gap:8px!important;
 padding:8px 10px!important;background:#fff!important;border:1px solid #e0e9f4!important;border-radius:9px!important
}
#leadDetail .alx-ref-kpis .kpi-card::before{
 grid-column:1!important;grid-row:1/3!important;position:static!important;width:31px!important;height:31px!important;
 align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;
 border-radius:8px!important;background:#e7f1ff!important;color:#1769e0!important;font-size:15px!important
}
#leadDetail .alx-ref-kpis .kpi-today::before{content:"☎"!important}
#leadDetail .alx-ref-kpis .kpi-total::before{content:"▥"!important}
#leadDetail .alx-ref-kpis .kpi-last::before{content:"◷"!important}
#leadDetail .alx-ref-kpis .kpi-card span{grid-column:2!important;font-size:9px!important;color:#8294aa!important;align-self:end!important}
#leadDetail .alx-ref-kpis .kpi-card strong{grid-column:2!important;font-size:13px!important;color:#132b4b!important;align-self:start!important;white-space:nowrap!important}
#leadDetail .alx-ref-kpis .workbar-call,#leadDetail .alx-ref-kpis .workbar-appt{height:100%!important;min-height:52px!important;border-radius:9px!important;font-size:12px!important;font-weight:800!important}

/* Result */
#leadDetail .alx-ref-result{
 display:block!important;width:100%!important;margin:0!important;padding:12px 14px!important;
 background:linear-gradient(100deg,#f3f8ff,#f9fbff)!important;border:1px solid #d4e3f5!important;
 border-left:4px solid #176ff2!important;border-radius:11px!important
}
#leadDetail .alx-ref-result .call-result-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;margin:0 0 9px!important;text-align:left!important}
#leadDetail .alx-ref-result .result-icon{display:flex!important;width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;background:#e4efff!important;align-items:center!important;justify-content:center!important;color:#1769e0!important;font-size:0!important}
#leadDetail .alx-ref-result .result-icon::before{content:"●"!important;font-size:14px!important}
#leadDetail .alx-ref-result .result-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#leadDetail .alx-ref-result .result-copy strong{font-size:14px!important;color:#183c70!important}
#leadDetail .alx-ref-result .result-copy small{display:block!important;margin-top:2px!important;font-size:9px!important;color:#8398b4!important}
#leadDetail .alx-ref-result .call-result-grid{display:grid!important;grid-template-columns:170px minmax(320px,1fr) 100px!important;gap:9px!important;align-items:end!important}
#leadDetail .alx-ref-result label{font-size:9px!important;margin-bottom:3px!important}
#leadDetail .alx-ref-result input,#leadDetail .alx-ref-result select{height:36px!important;font-size:11px!important;border-radius:8px!important}
#leadDetail .alx-ref-result .call-result-actions,#leadDetail .alx-ref-result .call-result-save{width:100px!important;height:36px!important}

/* General settings: one card, four columns */
#leadDetail .alx-ref-general{display:block!important;width:100%!important;padding:11px 12px 12px!important;background:#fff!important;border:1px solid #d8e4f1!important;border-radius:11px!important}
#leadDetail .alx-ref-general-head{display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 10px!important}
#leadDetail .alx-ref-gear{display:flex!important;width:32px!important;height:32px!important;min-width:32px!important;border-radius:8px!important;background:#edf3fa!important;border:1px solid #e0e8f2!important;color:#496b92!important;align-items:center!important;justify-content:center!important;font-size:14px!important}
#leadDetail .alx-ref-general-head>div{display:flex!important;flex-direction:column!important}
#leadDetail .alx-ref-general-head strong{font-size:14px!important;line-height:1.15!important;color:#19385f!important;font-weight:800!important}
#leadDetail .alx-ref-general-head small{display:block!important;margin-top:2px!important;font-size:9px!important;line-height:1.2!important;color:#8798ad!important}
#leadDetail .alx-ref-general-row{display:grid!important;grid-template-columns:1.15fr .8fr 1.15fr .8fr!important;gap:10px!important;align-items:end!important}
#leadDetail .alx-ref-field{display:flex!important;flex-direction:column!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important}
#leadDetail .alx-ref-field .section-title{margin:0 0 4px!important;font-size:9px!important;letter-spacing:.04em!important;color:#607896!important}
#leadDetail .alx-ref-field select,#leadDetail .alx-ref-field button{width:100%!important;height:36px!important;border-radius:8px!important;font-size:11px!important}
#leadDetail .alx-ref-help{display:none!important}

/* Notes and preserved lower content */
#leadDetail .alx-ref-note{width:100%!important;margin:0!important;padding:11px 12px!important;background:#fff!important;border:1px solid #d8e4f1!important;border-radius:11px!important}
#leadDetail .alx-ref-note .section-title{font-size:13px!important;margin:0 0 7px!important;color:#19385f!important}
#leadDetail .alx-ref-note textarea{min-height:62px!important;font-size:11px!important;border-radius:8px!important}
#leadDetail .alx-ref-appointment-editor{width:100%!important}
#leadDetail .alx-ref-extra{width:100%!important}

/* shared alignment */
#leadDetail .alx-ref-kpis,#leadDetail .alx-ref-result,#leadDetail .alx-ref-general,#leadDetail .alx-ref-note{box-sizing:border-box!important;box-shadow:0 2px 8px rgba(28,64,108,.035)!important}

/* v2.6.1 — approved-reference proportion/typography pass */
#leadDetail .alx-reference-detail{padding:18px 20px 24px!important}
#leadDetail .alx-ref-shell{gap:16px!important}

/* Profile block: larger, denser and closer to approved reference */
#leadDetail .alx-ref-identity{
 grid-template-columns:88px minmax(0,1fr) 132px!important;
 gap:18px!important;min-height:116px!important;padding:12px 10px 10px!important;align-items:start!important
}
#leadDetail .alx-ref-identity .lead-avatar{
 width:78px!important;height:78px!important;min-width:78px!important;
 font-size:28px!important;border:1px solid #cfe0f7!important;
 background:linear-gradient(145deg,#e9f3ff,#dcecff)!important;
 box-shadow:0 7px 18px rgba(37,103,199,.11)!important
}
#leadDetail .alx-ref-identity .identity-main{padding-top:5px!important;gap:7px!important}
#leadDetail .alx-ref-identity .identity-main h2{font-size:21px!important;line-height:1.15!important}
#leadDetail .alx-ref-identity .contact-lines{gap:22px!important;font-size:13px!important}
#leadDetail .alx-ref-identity .detail-meta{margin-top:2px!important;gap:8px!important}
#leadDetail .alx-ref-identity .detail-meta>*{font-size:11px!important;padding:4px 9px!important}
#leadDetail .alx-ref-identity #deleteLeadBtn{
 height:40px!important;padding:0 14px!important;font-size:12px!important;border-radius:9px!important
}

/* KPI row: fuller cards and stronger information hierarchy */
#leadDetail .alx-ref-kpis{
 grid-template-columns:1fr 1fr 1.38fr 1.08fr .92fr!important;
 gap:12px!important;padding:12px!important;min-height:88px!important;border-radius:12px!important
}
#leadDetail .alx-ref-kpis .kpi-card{
 grid-template-columns:48px 1fr!important;column-gap:10px!important;
 padding:10px 12px!important;border-radius:10px!important
}
#leadDetail .alx-ref-kpis .kpi-card::before{
 width:38px!important;height:38px!important;border-radius:10px!important;font-size:18px!important
}
#leadDetail .alx-ref-kpis .kpi-card span{font-size:11px!important}
#leadDetail .alx-ref-kpis .kpi-card strong{font-size:16px!important}
#leadDetail .alx-ref-kpis .workbar-call,
#leadDetail .alx-ref-kpis .workbar-appt{
 min-height:64px!important;border-radius:10px!important;font-size:14px!important
}

/* Result card: stronger section heading and proper icon treatment */
#leadDetail .alx-ref-result{
 padding:15px 18px 17px!important;border-left-width:5px!important;border-radius:12px!important
}
#leadDetail .alx-ref-result .call-result-head{gap:12px!important;margin-bottom:11px!important}
#leadDetail .alx-ref-result .result-icon{
 width:40px!important;height:40px!important;min-width:40px!important;border-radius:10px!important
}
#leadDetail .alx-ref-result .result-icon::before{
 content:"●"!important;font-size:18px!important;color:#1769e0!important
}
#leadDetail .alx-ref-result .result-copy strong{font-size:17px!important;font-weight:800!important}
#leadDetail .alx-ref-result .result-copy small{font-size:11px!important;margin-top:3px!important}
#leadDetail .alx-ref-result .call-result-grid{
 grid-template-columns:190px minmax(400px,1fr) 120px!important;gap:12px!important
}
#leadDetail .alx-ref-result label{font-size:11px!important;margin-bottom:5px!important;font-weight:700!important}
#leadDetail .alx-ref-result input,
#leadDetail .alx-ref-result select{height:44px!important;font-size:12px!important}
#leadDetail .alx-ref-result .call-result-actions,
#leadDetail .alx-ref-result .call-result-save{width:120px!important;height:44px!important}
#leadDetail .alx-ref-result .call-result-save{font-size:13px!important;font-weight:800!important}

/* General settings: larger heading, readable subtitle, balanced four-column controls */
#leadDetail .alx-ref-general{
 padding:14px 16px 16px!important;border-radius:12px!important
}
#leadDetail .alx-ref-general-head{gap:12px!important;margin-bottom:13px!important}
#leadDetail .alx-ref-gear{
 width:40px!important;height:40px!important;min-width:40px!important;border-radius:10px!important;font-size:18px!important
}
#leadDetail .alx-ref-general-head strong{
 font-size:17px!important;line-height:1.15!important;font-weight:800!important
}
#leadDetail .alx-ref-general-head small{
 font-size:11px!important;line-height:1.25!important;margin-top:3px!important
}
#leadDetail .alx-ref-general-row{
 grid-template-columns:1.2fr .85fr 1.2fr .85fr!important;gap:12px!important
}
#leadDetail .alx-ref-field .section-title{
 font-size:10px!important;margin-bottom:5px!important;font-weight:800!important;letter-spacing:.06em!important
}
#leadDetail .alx-ref-field select,
#leadDetail .alx-ref-field button{
 height:42px!important;font-size:12px!important;border-radius:9px!important
}

/* Notes: same visual weight as other cards */
#leadDetail .alx-ref-note{
 padding:14px 16px!important;border-radius:12px!important
}
#leadDetail .alx-ref-note .section-title{
 font-size:16px!important;margin-bottom:9px!important;font-weight:800!important
}
#leadDetail .alx-ref-note textarea{
 min-height:78px!important;font-size:12px!important;border-radius:9px!important
}

/* Consistent premium surface */
#leadDetail .alx-ref-kpis,
#leadDetail .alx-ref-result,
#leadDetail .alx-ref-general,
#leadDetail .alx-ref-note{
 border-color:#d5e2f0!important;
 box-shadow:0 3px 12px rgba(28,64,108,.045)!important
}

/* =========================================================
   v2.7.0 — FINAL LEAD DETAIL DESIGN SYSTEM
   Same geometry in light/dark; only palette changes.
   ========================================================= */

/* ---------- SHARED GEOMETRY ---------- */
#leadDetail .alx-reference-detail{
  padding:14px 18px 20px!important;
  background:transparent!important
}
#leadDetail .alx-ref-shell{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  width:100%!important
}

/* profile */
#leadDetail .alx-ref-identity{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) 118px!important;
  gap:14px!important;
  align-items:center!important;
  min-height:88px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  box-sizing:border-box!important
}
#leadDetail .alx-ref-identity .lead-avatar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  width:62px!important;height:62px!important;min-width:62px!important;
  border-radius:50%!important;
  font-size:23px!important;font-weight:900!important;line-height:1!important;
  box-shadow:0 5px 14px rgba(32,86,160,.10)!important
}
#leadDetail .alx-ref-identity .identity-main{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:5px!important;padding:0!important
}
#leadDetail .alx-ref-identity .identity-main h2{
  margin:0!important;font-size:18px!important;line-height:1.15!important;font-weight:850!important
}
#leadDetail .alx-ref-identity .contact-lines{
  display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:wrap!important;
  font-size:11px!important
}
#leadDetail .alx-ref-identity .contact-lines>*{
  margin:0!important;padding:0!important;border:0!important
}
#leadDetail .alx-ref-identity .detail-meta{
  display:flex!important;gap:7px!important;margin-top:2px!important;font-size:10px!important
}
#leadDetail .alx-ref-identity .detail-meta>*{
  padding:3px 8px!important;border-radius:999px!important
}
#leadDetail .alx-ref-identity .detail-top-actions{
  justify-self:end!important;align-self:start!important;margin:0!important
}
#leadDetail .alx-ref-identity #deleteLeadBtn{
  height:36px!important;padding:0 12px!important;border-radius:9px!important;
  font-size:11px!important;font-weight:800!important;box-shadow:none!important
}

/* KPI strip */
#leadDetail .alx-ref-kpis{
  display:grid!important;
  grid-template-columns:1fr 1fr 1.35fr 1.05fr .9fr!important;
  gap:10px!important;
  min-height:72px!important;
  padding:9px!important;
  margin:0!important;
  border-radius:12px!important;
  box-sizing:border-box!important
}
#leadDetail .alx-ref-kpis .kpi-card{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  grid-template-rows:1fr 1fr!important;
  gap:0 8px!important;
  padding:7px 9px!important;
  border-radius:9px!important;
  box-sizing:border-box!important
}
#leadDetail .alx-ref-kpis .kpi-card::before{
  grid-column:1!important;grid-row:1/3!important;
  position:static!important;transform:none!important;
  width:30px!important;height:30px!important;
  align-self:center!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:8px!important;font-size:15px!important;font-weight:900!important
}
#leadDetail .alx-ref-kpis .kpi-today::before{content:"☎"!important}
#leadDetail .alx-ref-kpis .kpi-total::before{content:"▥"!important}
#leadDetail .alx-ref-kpis .kpi-last::before{content:"◷"!important}
#leadDetail .alx-ref-kpis .kpi-card span{
  grid-column:2!important;align-self:end!important;font-size:9px!important;line-height:1.1!important
}
#leadDetail .alx-ref-kpis .kpi-card strong{
  grid-column:2!important;align-self:start!important;font-size:13px!important;line-height:1.15!important;white-space:nowrap!important
}
#leadDetail .alx-ref-kpis .workbar-call,
#leadDetail .alx-ref-kpis .workbar-appt{
  width:100%!important;height:100%!important;min-height:52px!important;
  border-radius:9px!important;font-size:12px!important;font-weight:850!important
}

/* result */
#leadDetail .alx-ref-result{
  display:block!important;width:100%!important;
  margin:0!important;padding:11px 13px 13px!important;
  border-left-width:4px!important;border-radius:12px!important;
  box-sizing:border-box!important
}
#leadDetail .alx-ref-result .call-result-head{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:9px!important;margin:0 0 8px!important;text-align:left!important
}
#leadDetail .alx-ref-result .result-icon{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:static!important;
  width:34px!important;height:34px!important;min-width:34px!important;
  border-radius:9px!important;font-size:0!important
}
#leadDetail .alx-ref-result .result-icon::before{
  content:"●"!important;font-size:14px!important
}
#leadDetail .alx-ref-result .result-copy{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important
}
#leadDetail .alx-ref-result .result-copy strong{
  font-size:14px!important;line-height:1.15!important;font-weight:850!important
}
#leadDetail .alx-ref-result .result-copy small{
  display:block!important;margin-top:2px!important;font-size:9px!important;line-height:1.2!important
}
#leadDetail .alx-ref-result .call-result-grid{
  display:grid!important;
  grid-template-columns:170px minmax(340px,1fr) 100px!important;
  gap:9px!important;align-items:end!important
}
#leadDetail .alx-ref-result label{
  display:block!important;margin-bottom:3px!important;font-size:9px!important;font-weight:750!important
}
#leadDetail .alx-ref-result input,
#leadDetail .alx-ref-result select{
  height:36px!important;border-radius:8px!important;font-size:11px!important
}
#leadDetail .alx-ref-result .call-result-actions,
#leadDetail .alx-ref-result .call-result-save{
  width:100px!important;height:36px!important;border-radius:8px!important;font-size:11px!important;font-weight:850!important
}

/* general */
#leadDetail .alx-ref-general{
  display:block!important;width:100%!important;
  margin:0!important;padding:10px 12px 12px!important;
  border-radius:12px!important;box-sizing:border-box!important
}
#leadDetail .alx-ref-general-head{
  display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 9px!important
}
#leadDetail .alx-ref-gear{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:34px!important;height:34px!important;min-width:34px!important;
  border-radius:9px!important;font-size:15px!important
}
#leadDetail .alx-ref-general-head>div{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important
}
#leadDetail .alx-ref-general-head strong{
  display:block!important;font-size:14px!important;line-height:1.15!important;font-weight:850!important
}
#leadDetail .alx-ref-general-head small{
  display:block!important;margin-top:2px!important;font-size:9px!important;line-height:1.2!important
}
#leadDetail .alx-ref-general-row{
  display:grid!important;
  grid-template-columns:1.15fr .8fr 1.15fr .8fr!important;
  gap:9px!important;align-items:end!important
}
#leadDetail .alx-ref-field{
  display:flex!important;flex-direction:column!important;min-width:0!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important
}
#leadDetail .alx-ref-field .section-title{
  display:block!important;margin:0 0 3px!important;
  font-size:9px!important;line-height:1.1!important;font-weight:800!important;letter-spacing:.05em!important
}
#leadDetail .alx-ref-field select,
#leadDetail .alx-ref-field button{
  width:100%!important;height:36px!important;border-radius:8px!important;font-size:11px!important
}
#leadDetail .alx-ref-help{display:none!important}

/* notes */
#leadDetail .alx-ref-note{
  width:100%!important;margin:0!important;padding:10px 12px!important;
  border-radius:12px!important;box-sizing:border-box!important
}
#leadDetail .alx-ref-note .section-title{
  display:block!important;margin:0 0 6px!important;font-size:13px!important;font-weight:850!important;letter-spacing:0!important
}
#leadDetail .alx-ref-note textarea{
  width:100%!important;min-height:62px!important;border-radius:8px!important;font-size:11px!important
}

/* ---------- LIGHT THEME ---------- */
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-general,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-note{
  background:#fff!important;border:1px solid #d8e4f1!important;color:#142b49!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity .lead-avatar{
  background:linear-gradient(145deg,#e9f3ff,#d9eaff)!important;
  border:1px solid #cfe0f7!important;color:#2467c7!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity .identity-main h2{color:#142b49!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity .contact-lines{color:#55769d!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity .detail-meta>*{background:#f1f5fa!important;color:#607995!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-identity #deleteLeadBtn{
  background:#fff!important;color:#c43a32!important;border:1px solid #efb8b4!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis{
  background:#f8fbff!important;border:1px solid #d8e4f1!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .kpi-card{
  background:#fff!important;border:1px solid #e0e9f4!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .kpi-card::before{
  background:#e7f1ff!important;color:#1769e0!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .kpi-card span{color:#8294aa!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .kpi-card strong{color:#132b4b!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .workbar-call{
  background:#0f6df6!important;color:#fff!important;border:0!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-kpis .workbar-appt{
  background:#fff!important;color:#17345d!important;border:1px solid #ccd9e8!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result{
  background:linear-gradient(100deg,#f3f8ff,#f9fbff)!important;
  border:1px solid #d4e3f5!important;border-left:4px solid #176ff2!important;color:#183c70!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result .result-icon{
  background:#e4efff!important;color:#1769e0!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result .result-icon::before{color:#1769e0!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result .result-copy strong{color:#183c70!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result .result-copy small{color:#8398b4!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result label{color:#405b7e!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-general-head strong,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-note .section-title{color:#19385f!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-general-head small{color:#8798ad!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-gear{
  background:#edf3fa!important;border:1px solid #e0e8f2!important;color:#496b92!important
}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-field .section-title{color:#607896!important}
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result input,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-result select,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-field select,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-field button,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-note textarea{
  background:#fff!important;color:#17304f!important;border:1px solid #ccd9e8!important
}

/* ---------- DARK THEME: NO LIGHT CARDS LEFT ---------- */
html[data-alx-theme="dark"] #leadDetail .alx-reference-detail{background:#0c111b!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general,
html[data-alx-theme="dark"] #leadDetail .alx-ref-note{
  background:#111b2a!important;border:1px solid #293b52!important;color:#e8f0fa!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity .lead-avatar{
  background:linear-gradient(145deg,#183456,#1b416d)!important;
  border:1px solid #315a88!important;color:#7db3ff!important;
  box-shadow:0 5px 14px rgba(0,0,0,.20)!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity .identity-main h2{color:#f1f6fc!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity .contact-lines{color:#9cb2cc!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity .contact-lines a{color:#79aef8!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity .detail-meta>*{background:#172538!important;color:#9fb4cd!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-identity #deleteLeadBtn{
  background:#21191d!important;color:#ff8e86!important;border:1px solid #6f3435!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis{
  background:#0f1927!important;border:1px solid #293b52!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .kpi-card{
  background:#152235!important;border:1px solid #2b405a!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .kpi-card::before{
  background:#18365d!important;color:#73aaff!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .kpi-card span{color:#8399b3!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .kpi-card strong{color:#edf4fc!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .workbar-call{
  background:#176ff2!important;color:#fff!important;border:1px solid #2c7eff!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-kpis .workbar-appt{
  background:#152235!important;color:#e6eef9!important;border:1px solid #36506d!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result{
  background:linear-gradient(100deg,#112138,#101c2d)!important;
  border:1px solid #2c4564!important;border-left:4px solid #3b8cff!important;color:#e7f0fb!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result .result-icon{
  background:#18365d!important;color:#79b0ff!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result .result-icon::before{color:#79b0ff!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result .result-copy strong{color:#eaf3ff!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result .result-copy small{color:#8ea7c5!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result label{color:#a7bad1!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-general-head strong,
html[data-alx-theme="dark"] #leadDetail .alx-ref-note .section-title{color:#edf4fc!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-general-head small{color:#899fb9!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-gear{
  background:#18283c!important;border:1px solid #2c4059!important;color:#91b7e8!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-field .section-title{color:#a6bad1!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result input,
html[data-alx-theme="dark"] #leadDetail .alx-ref-result select,
html[data-alx-theme="dark"] #leadDetail .alx-ref-field select,
html[data-alx-theme="dark"] #leadDetail .alx-ref-field button,
html[data-alx-theme="dark"] #leadDetail .alx-ref-note textarea{
  background:#0e1826!important;color:#e8f0fa!important;border:1px solid #344a65!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result input::placeholder,
html[data-alx-theme="dark"] #leadDetail .alx-ref-note textarea::placeholder{color:#6f86a1!important}
html[data-alx-theme="dark"] #leadDetail .alx-ref-result select option,
html[data-alx-theme="dark"] #leadDetail .alx-ref-field select option{
  background:#111b2a!important;color:#e8f0fa!important
}

/* theme button itself */
html:not([data-alx-theme="dark"]) .alx-crm-page .theme-toggle{
  background:#fff!important;color:#253b58!important;border-color:#d7e1ed!important
}
html[data-alx-theme="dark"] .alx-crm-page .theme-toggle{
  background:#111b2a!important;color:#e7eef8!important;border-color:#31445d!important
}

/* responsive */
@media(max-width:1050px){
  #leadDetail .alx-ref-kpis{grid-template-columns:1fr 1fr 1.2fr!important}
  #leadDetail .alx-ref-result .call-result-grid{grid-template-columns:1fr!important}
  #leadDetail .alx-ref-result .call-result-actions,
  #leadDetail .alx-ref-result .call-result-save{width:100%!important}
  #leadDetail .alx-ref-general-row{grid-template-columns:1fr 1fr!important}
}

/* v2.7.1 — FULL lower Lead Detail QA + theme completion */

/* Remove legacy dark-mode white surfaces from every lower section */
html[data-alx-theme="dark"] #leadDetail .alx-ref-extra,
html[data-alx-theme="dark"] #leadDetail .alx-ref-appointment-editor,
html[data-alx-theme="dark"] #leadDetail .timeline,
html[data-alx-theme="dark"] #leadDetail .timeline-list,
html[data-alx-theme="dark"] #leadDetail .timeline-item,
html[data-alx-theme="dark"] #leadDetail .note-item,
html[data-alx-theme="dark"] #leadDetail .section,
html[data-alx-theme="dark"] #leadDetail .card{
 background:#111b2a!important;color:#e7eef8!important;border-color:#293d56!important
}
html[data-alx-theme="dark"] #leadDetail .timeline-item,
html[data-alx-theme="dark"] #leadDetail .note-item{
 background:#152235!important;border:1px solid #2b405a!important;
 box-shadow:none!important;border-radius:9px!important
}
html[data-alx-theme="dark"] #leadDetail .timeline-item *,
html[data-alx-theme="dark"] #leadDetail .note-item *{color:#dbe7f5!important}
html[data-alx-theme="dark"] #leadDetail .timeline-item small,
html[data-alx-theme="dark"] #leadDetail .note-item small,
html[data-alx-theme="dark"] #leadDetail .muted{color:#8299b5!important}
html[data-alx-theme="dark"] #leadDetail .timeline-title,
html[data-alx-theme="dark"] #leadDetail h3,
html[data-alx-theme="dark"] #leadDetail h4{color:#eaf2fc!important}

/* Delete buttons: restrained danger treatment in dark */
html[data-alx-theme="dark"] #leadDetail .timeline-item button,
html[data-alx-theme="dark"] #leadDetail .note-item button{
 background:#2a171a!important;color:#ff9b94!important;border:1px solid #6c3438!important;
 border-radius:8px!important;box-shadow:none!important
}

/* General Settings: force every nested legacy wrapper transparent/dark so no white shell remains */
html[data-alx-theme="dark"] #leadDetail .alx-ref-general,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general *:not(option){
 color:inherit
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-general .section,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general .assignment-box,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general .lead-control-grid{
 background:transparent!important;border:0!important;box-shadow:none!important
}
html[data-alx-theme="dark"] #leadDetail .alx-ref-general select,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general input,
html[data-alx-theme="dark"] #leadDetail .alx-ref-general button{
 background:#0e1826!important;color:#e8f0fa!important;border:1px solid #344a65!important
}

/* Appointment editor */
html[data-alx-theme="dark"] #leadDetail .alx-ref-appointment-editor input,
html[data-alx-theme="dark"] #leadDetail .alx-ref-appointment-editor select,
html[data-alx-theme="dark"] #leadDetail .alx-ref-appointment-editor textarea{
 background:#0e1826!important;color:#e8f0fa!important;border-color:#344a65!important
}

/* Compact timeline instead of giant empty white cards */
#leadDetail .timeline-list{display:flex!important;flex-direction:column!important;gap:7px!important}
#leadDetail .timeline-item,
#leadDetail .note-item{
 min-height:0!important;padding:10px 12px!important;margin:0!important;
 line-height:1.35!important
}
#leadDetail .timeline-item p,
#leadDetail .note-item p{margin:0 52px 5px 0!important;font-size:11px!important}
#leadDetail .timeline-item small,
#leadDetail .note-item small{font-size:9px!important}
#leadDetail .timeline-item button,
#leadDetail .note-item button{
 min-width:42px!important;height:34px!important;padding:0 10px!important;font-size:11px!important
}

/* Light lower area — consistent with approved light design */
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-extra,
html:not([data-alx-theme="dark"]) #leadDetail .alx-ref-appointment-editor{
 color:#19385f!important
}
html:not([data-alx-theme="dark"]) #leadDetail .timeline-item,
html:not([data-alx-theme="dark"]) #leadDetail .note-item{
 background:#fff!important;color:#27425f!important;border:1px solid #d8e4f1!important;
 border-radius:9px!important;box-shadow:0 2px 7px rgba(28,64,108,.035)!important
}
html:not([data-alx-theme="dark"]) #leadDetail .timeline-item small,
html:not([data-alx-theme="dark"]) #leadDetail .note-item small{color:#8397af!important}

/* Keep all lower content aligned with the same master grid */
#leadDetail .alx-ref-extra,
#leadDetail .alx-ref-appointment-editor,
#leadDetail .timeline,
#leadDetail .timeline-list{width:100%!important;box-sizing:border-box!important}

/* =========================================================
   v2.8.0 — CENTRAL CRM THEME SYSTEM + SETTINGS FULL QA
   One component palette for the entire CRM, not per-screen patches.
   ========================================================= */
.alx-crm-page{
 --alx-bg:#f3f6fa;--alx-surface:#fff;--alx-surface-2:#f8fafc;--alx-surface-3:#eef4fb;
 --alx-border:#d9e3ef;--alx-border-strong:#c8d6e6;--alx-text:#162a44;--alx-muted:#7589a2;
 --alx-primary:#1478f2;--alx-primary-hover:#0869dc;--alx-success:#16804a;--alx-success-bg:#dcf8e9;
 --alx-danger:#b42318;--alx-danger-bg:#fff2f0;--alx-input:#fff;--alx-shadow:0 2px 9px rgba(31,65,108,.045)
}
html[data-alx-theme="dark"] .alx-crm-page{
 --alx-bg:#0b111b;--alx-surface:#121d2b;--alx-surface-2:#162334;--alx-surface-3:#1a2a3e;
 --alx-border:#2a3d55;--alx-border-strong:#39506b;--alx-text:#edf3fb;--alx-muted:#93a7c0;
 --alx-primary:#2380f7;--alx-primary-hover:#3b8df8;--alx-success:#79d7a7;--alx-success-bg:#173728;
 --alx-danger:#ff9a92;--alx-danger-bg:#321b1e;--alx-input:#0e1927;--alx-shadow:none
}

/* shared component primitives */
.alx-crm-page .main{background:var(--alx-bg)!important;color:var(--alx-text)!important}
.alx-crm-page .panel,.alx-crm-page .dashboard-card,.alx-crm-page .stat,
.alx-crm-page dialog form{background:var(--alx-surface)!important;color:var(--alx-text)!important;border-color:var(--alx-border)!important}
.alx-crm-page input:not([type=checkbox]):not([type=radio]),.alx-crm-page select,.alx-crm-page textarea{
 background:var(--alx-input)!important;color:var(--alx-text)!important;border-color:var(--alx-border-strong)!important
}
.alx-crm-page input::placeholder,.alx-crm-page textarea::placeholder{color:var(--alx-muted)!important}
.alx-crm-page input:disabled,.alx-crm-page select:disabled,.alx-crm-page textarea:disabled{background:var(--alx-surface-3)!important;color:var(--alx-muted)!important;opacity:1!important}
.alx-crm-page .secondary-btn,.alx-crm-page .theme-toggle,.alx-crm-page .notification-btn{
 background:var(--alx-surface)!important;color:var(--alx-text)!important;border-color:var(--alx-border-strong)!important
}
.alx-crm-page .primary{background:var(--alx-primary)!important;border-color:var(--alx-primary)!important;color:#fff!important}
.alx-crm-page .primary:hover{background:var(--alx-primary-hover)!important;border-color:var(--alx-primary-hover)!important}
.alx-crm-page small,.alx-crm-page .muted,.alx-crm-page .eyebrow{color:var(--alx-muted)!important}

/* Settings page: stable header; save action can never collide with topbar */
.alx-crm-page #viewSettings{overflow:hidden!important}
.alx-crm-page #viewSettings .settings-page-head{
 position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 height:44px!important;min-height:44px!important;padding:0 2px 9px!important;margin:0!important;overflow:visible!important
}
.alx-crm-page #viewSettings .settings-page-head p{margin:0!important;color:var(--alx-muted)!important;font-size:11px!important}
.alx-crm-page #viewSettings .settings-savebar{
 position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;gap:9px!important;
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important
}
.alx-crm-page #viewSettings #saveSettingsBtn{
 position:static!important;inset:auto!important;transform:none!important;width:auto!important;min-width:158px!important;height:34px!important;
 padding:0 13px!important;border-radius:8px!important;font-size:11px!important;white-space:nowrap!important
}
.alx-crm-page #viewSettings #settingsSaveMsg{font-size:10px!important;color:var(--alx-success)!important;white-space:nowrap!important}

/* exact 3x2 card system */
.alx-crm-page #viewSettings .settings-grid-compact{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;
 gap:12px!important;min-height:0!important
}
.alx-crm-page #viewSettings .settings-grid-compact>.settings-card.panel{
 background:var(--alx-surface)!important;color:var(--alx-text)!important;border:1px solid var(--alx-border)!important;
 border-radius:12px!important;box-shadow:var(--alx-shadow)!important;overflow:hidden!important
}
.alx-crm-page #viewSettings .settings-card-head{
 height:54px!important;min-height:54px!important;padding:8px 11px!important;background:var(--alx-surface-2)!important;
 border-bottom:1px solid var(--alx-border)!important;color:var(--alx-text)!important
}
.alx-crm-page #viewSettings .settings-icon{
 width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:9px!important;
 background:var(--alx-surface-3)!important;color:var(--alx-primary)!important;font-size:16px!important
}
.alx-crm-page #viewSettings .settings-card-head h2{color:var(--alx-text)!important;font-size:14px!important;font-weight:800!important}
.alx-crm-page #viewSettings .settings-card-head small{color:var(--alx-muted)!important;font-size:9px!important}
.alx-crm-page #viewSettings .settings-form{padding:9px 11px 10px!important;gap:8px!important;background:var(--alx-surface)!important}
.alx-crm-page #viewSettings .settings-form label{color:var(--alx-text)!important;font-size:10px!important;font-weight:750!important}
.alx-crm-page #viewSettings .settings-form input[type=text],
.alx-crm-page #viewSettings .settings-form input[type=number],
.alx-crm-page #viewSettings .settings-form select{
 width:100%!important;height:32px!important;min-height:32px!important;margin-top:3px!important;padding:4px 9px!important;
 background:var(--alx-input)!important;color:var(--alx-text)!important;border:1px solid var(--alx-border-strong)!important;border-radius:8px!important;font-size:10.5px!important
}
.alx-crm-page #viewSettings .suffix-input{height:32px!important;grid-template-columns:minmax(0,1fr) 70px!important}
.alx-crm-page #viewSettings .suffix-input input,.alx-crm-page #viewSettings .suffix-input span{height:32px!important;min-height:32px!important}
.alx-crm-page #viewSettings .suffix-input span{display:grid!important;place-items:center!important;background:var(--alx-surface-3)!important;color:var(--alx-muted)!important;border-color:var(--alx-border-strong)!important}

/* custom checkbox: same in all cards/themes */
.alx-crm-page #viewSettings .switch-row{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;padding:2px 0!important}
.alx-crm-page #viewSettings .switch-row input[type=checkbox]{
 appearance:none!important;-webkit-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;margin:1px 0 0!important;
 border:1px solid var(--alx-border-strong)!important;border-radius:5px!important;background:var(--alx-input)!important;display:grid!important;place-content:center!important;cursor:pointer!important
}
.alx-crm-page #viewSettings .switch-row input[type=checkbox]::before{content:"✓";font-size:11px;font-weight:900;color:#fff;transform:scale(0);transition:transform .12s ease}
.alx-crm-page #viewSettings .switch-row input[type=checkbox]:checked{background:var(--alx-primary)!important;border-color:var(--alx-primary)!important}
.alx-crm-page #viewSettings .switch-row input[type=checkbox]:checked::before{transform:scale(1)}
.alx-crm-page #viewSettings .switch-row strong{color:var(--alx-text)!important;font-size:10px!important;line-height:1.2!important}
.alx-crm-page #viewSettings .switch-row small{color:var(--alx-muted)!important;font-size:8.5px!important;line-height:1.2!important}

/* lower-card balance */
.alx-crm-page #viewSettings .settings-note{margin-top:auto!important;padding:8px 9px!important;border-radius:8px!important;background:var(--alx-surface-3)!important;border:1px solid var(--alx-border)!important;color:var(--alx-muted)!important;font-size:9px!important}
.alx-crm-page #viewSettings .settings-test-btn{height:32px!important;background:var(--alx-input)!important;color:var(--alx-text)!important;border:1px solid var(--alx-border-strong)!important;border-radius:8px!important;font-size:10px!important;font-weight:750!important}
.alx-crm-page #viewSettings .meta-settings input:disabled{background:var(--alx-surface-3)!important;color:var(--alx-text)!important;border-color:var(--alx-border)!important}
.alx-crm-page #viewSettings .system-row{color:var(--alx-text)!important;font-size:10px!important}
.alx-crm-page #viewSettings .compact-lines{padding:8px 11px!important;background:var(--alx-surface)!important}
.alx-crm-page #viewSettings .compact-lines>div{min-height:31px!important;color:var(--alx-text)!important;border-bottom:1px solid var(--alx-border)!important;font-size:9.5px!important}
.alx-crm-page #viewSettings .compact-lines strong{color:var(--alx-text)!important}
.alx-crm-page #viewSettings .status-chip,.alx-crm-page #viewSettings .version-chip{
 min-width:0!important;min-height:20px!important;padding:3px 7px!important;border-radius:999px!important;font-size:8.5px!important;line-height:1!important
}
.alx-crm-page #viewSettings .status-chip.ok{background:var(--alx-success-bg)!important;color:var(--alx-success)!important;border:1px solid color-mix(in srgb,var(--alx-success) 35%,transparent)!important}
.alx-crm-page #viewSettings .status-chip.bad{background:var(--alx-danger-bg)!important;color:var(--alx-danger)!important;border:1px solid color-mix(in srgb,var(--alx-danger) 35%,transparent)!important}
.alx-crm-page #viewSettings .version-chip{background:var(--alx-surface-3)!important;color:var(--alx-primary)!important}

/* Dark-mode hard reset for legacy white declarations in Settings */
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-card-head,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .settings-form,
html[data-alx-theme="dark"] .alx-crm-page #viewSettings .compact-lines{background:var(--alx-surface)!important}
html[data-alx-theme="dark"] .alx-crm-page #viewSettings input:not([type=checkbox]),
html[data-alx-theme="dark"] .alx-crm-page #viewSettings select{background:var(--alx-input)!important;color:var(--alx-text)!important;border-color:var(--alx-border-strong)!important}

/* Topbar theme control: no browser title tooltip, consistent focus/hover */
.alx-crm-page .theme-toggle{min-width:76px!important;height:38px!important;border-radius:10px!important;font-weight:750!important}
.alx-crm-page .theme-toggle:hover{border-color:var(--alx-primary)!important}
.alx-crm-page .theme-toggle:focus-visible{outline:2px solid var(--alx-primary)!important;outline-offset:2px!important}

@media(max-width:1099px){
 .alx-crm-page #viewSettings{height:auto!important;max-height:none!important;overflow:auto!important}
 .alx-crm-page #viewSettings .settings-grid-compact{grid-template-columns:1fr!important;grid-template-rows:none!important;height:auto!important}
 .alx-crm-page #viewSettings .settings-page-head{height:auto!important;min-height:44px!important;gap:10px!important;flex-wrap:wrap!important}
}


/* =========================================================
   v2.9.0 — GLOBAL THEME HARDENING / REAL RENDER SELECTORS
   body.alx-dark is the runtime source of truth. Covers every CRM view.
   ========================================================= */
body.alx-crm-page{
 --ui-bg:#f3f6fa;--ui-panel:#ffffff;--ui-panel2:#f8fafc;--ui-panel3:#eef4fb;
 --ui-input:#ffffff;--ui-line:#d7e2ef;--ui-line2:#c7d6e7;--ui-text:#162a44;--ui-muted:#71869f;
 --ui-blue:#1478f2;--ui-blue2:#0869dc;--ui-danger:#b42318;--ui-danger-bg:#fff2f0;
 --ui-good:#147a48;--ui-good-bg:#e1f7ea
}
body.alx-crm-page.alx-dark{
 --ui-bg:#0b111b;--ui-panel:#111c2a;--ui-panel2:#152235;--ui-panel3:#1a2a3e;
 --ui-input:#0e1927;--ui-line:#2a3d55;--ui-line2:#39516d;--ui-text:#edf4fc;--ui-muted:#93a8c1;
 --ui-blue:#2380f7;--ui-blue2:#3b8df8;--ui-danger:#ff9a92;--ui-danger-bg:#321b1e;
 --ui-good:#78d5a6;--ui-good-bg:#173728
}
body.alx-crm-page .main{background:var(--ui-bg)!important;color:var(--ui-text)!important}
body.alx-crm-page .topbar h1,body.alx-crm-page h1,body.alx-crm-page h2,body.alx-crm-page h3,body.alx-crm-page h4{color:var(--ui-text)!important}
body.alx-crm-page .eyebrow,body.alx-crm-page small,body.alx-crm-page .muted{color:var(--ui-muted)!important}
body.alx-crm-page .panel,body.alx-crm-page .stat,body.alx-crm-page .dashboard-card,body.alx-crm-page .single-panel,
body.alx-crm-page .lead-table-panel,body.alx-crm-page dialog form{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page input:not([type=checkbox]):not([type=radio]),body.alx-crm-page select,body.alx-crm-page textarea{
 background:var(--ui-input)!important;color:var(--ui-text)!important;border-color:var(--ui-line2)!important
}
body.alx-crm-page input::placeholder,body.alx-crm-page textarea::placeholder{color:var(--ui-muted)!important}
body.alx-crm-page input:disabled,body.alx-crm-page select:disabled,body.alx-crm-page textarea:disabled{background:var(--ui-panel3)!important;color:var(--ui-text)!important;opacity:1!important}
body.alx-crm-page .secondary-btn,body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line2)!important}
body.alx-crm-page .primary{background:var(--ui-blue)!important;color:#fff!important;border-color:var(--ui-blue)!important}

/* SETTINGS — exact real DOM, no white legacy controls in dark mode */
body.alx-crm-page #viewSettings .settings-grid-compact>.settings-card.panel{background:var(--ui-panel)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}
body.alx-crm-page #viewSettings .settings-card-head{background:var(--ui-panel2)!important;border-color:var(--ui-line)!important}
body.alx-crm-page #viewSettings .settings-form,body.alx-crm-page #viewSettings .compact-lines{background:var(--ui-panel)!important;color:var(--ui-text)!important}
body.alx-crm-page #viewSettings .settings-form>label,body.alx-crm-page #viewSettings .settings-form strong,body.alx-crm-page #viewSettings .system-row,body.alx-crm-page #viewSettings .compact-lines>div{color:var(--ui-text)!important}
body.alx-crm-page #viewSettings input[type=text],body.alx-crm-page #viewSettings input[type=number],body.alx-crm-page #viewSettings select{
 background:var(--ui-input)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line2)!important
}
body.alx-crm-page #viewSettings input:disabled{background:var(--ui-panel3)!important;color:var(--ui-text)!important}
body.alx-crm-page #viewSettings .suffix-input span,body.alx-crm-page #viewSettings .settings-note{background:var(--ui-panel3)!important;color:var(--ui-muted)!important;border-color:var(--ui-line2)!important}
body.alx-crm-page #viewSettings .switch-row input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:1px 0 0!important;background:var(--ui-input)!important;border:1px solid var(--ui-line2)!important;border-radius:5px!important;display:grid!important;place-content:center!important}
body.alx-crm-page #viewSettings .switch-row input[type=checkbox]::before{content:'✓'!important;color:#fff!important;font-size:11px!important;font-weight:900!important;line-height:1!important;transform:scale(0)!important}
body.alx-crm-page #viewSettings .switch-row input[type=checkbox]:checked{background:var(--ui-blue)!important;border-color:var(--ui-blue)!important}
body.alx-crm-page #viewSettings .switch-row input[type=checkbox]:checked::before{transform:scale(1)!important}
body.alx-crm-page #viewSettings .status-chip,body.alx-crm-page #viewSettings .version-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:22px!important;padding:3px 8px!important;border-radius:999px!important;font-size:9px!important;white-space:nowrap!important}
body.alx-crm-page #viewSettings .status-chip.ok{background:var(--ui-good-bg)!important;color:var(--ui-good)!important;border:1px solid var(--ui-good)!important}
body.alx-crm-page #viewSettings .status-chip.bad{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important;border:1px solid var(--ui-danger)!important}
body.alx-crm-page #viewSettings .version-chip{background:var(--ui-panel3)!important;color:var(--ui-blue)!important;border:1px solid var(--ui-line)!important}
body.alx-crm-page #viewSettings .settings-savebar{position:static!important;transform:none!important;inset:auto!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.alx-crm-page #viewSettings #saveSettingsBtn{position:static!important;transform:none!important;inset:auto!important}

/* LEAD DETAIL — same geometry, fully dark when runtime body has alx-dark */
body.alx-crm-page #leadDetail .alx-ref-identity,body.alx-crm-page #leadDetail .alx-ref-general,body.alx-crm-page #leadDetail .alx-ref-note,
body.alx-crm-page #leadDetail .alx-ref-extra,body.alx-crm-page #leadDetail .alx-ref-appointment-editor{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page #leadDetail .alx-ref-kpis{background:var(--ui-panel2)!important;border-color:var(--ui-line)!important}
body.alx-crm-page #leadDetail .alx-ref-kpis .kpi-card{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page #leadDetail .alx-ref-kpis .kpi-card span{color:var(--ui-muted)!important}
body.alx-crm-page #leadDetail .alx-ref-kpis .kpi-card strong{color:var(--ui-text)!important}
body.alx-crm-page #leadDetail .alx-ref-result{background:var(--ui-panel2)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;border-left-color:var(--ui-blue)!important}
body.alx-crm-page #leadDetail .alx-ref-result .result-copy strong,body.alx-crm-page #leadDetail .alx-ref-general-head strong,body.alx-crm-page #leadDetail .alx-ref-note .section-title{color:var(--ui-text)!important}
body.alx-crm-page #leadDetail .alx-ref-result .result-copy small,body.alx-crm-page #leadDetail .alx-ref-general-head small{color:var(--ui-muted)!important}
body.alx-crm-page #leadDetail .alx-ref-result input,body.alx-crm-page #leadDetail .alx-ref-result select,body.alx-crm-page #leadDetail .alx-ref-field select,body.alx-crm-page #leadDetail .alx-ref-field button,body.alx-crm-page #leadDetail .alx-ref-note textarea{background:var(--ui-input)!important;color:var(--ui-text)!important;border-color:var(--ui-line2)!important}
body.alx-crm-page.alx-dark #leadDetail .alx-ref-identity .lead-avatar{background:#18365d!important;color:#79b0ff!important;border-color:#315a88!important}
body.alx-crm-page.alx-dark #leadDetail .alx-ref-kpis .kpi-card::before,body.alx-crm-page.alx-dark #leadDetail .alx-ref-result .result-icon{background:#18365d!important;color:#79b0ff!important}
body.alx-crm-page.alx-dark #leadDetail .timeline,body.alx-crm-page.alx-dark #leadDetail .timeline-list{background:transparent!important}
body.alx-crm-page.alx-dark #leadDetail .timeline-item{background:var(--ui-panel2)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important}
body.alx-crm-page.alx-dark #leadDetail .timeline-item strong{color:var(--ui-text)!important}
body.alx-crm-page.alx-dark #leadDetail .timeline-item small{color:var(--ui-muted)!important}
body.alx-crm-page.alx-dark #leadDetail .note-delete-btn{background:var(--ui-danger-bg)!important;color:var(--ui-danger)!important;border-color:#6c3438!important}

/* TABLES / CALLBACKS / CALLS / REPORTS / AGENTS */
body.alx-crm-page .data-table,body.alx-crm-page .lead-grid-table{color:var(--ui-text)!important}
body.alx-crm-page .data-table th,body.alx-crm-page .lead-grid-table th{background:var(--ui-panel2)!important;color:var(--ui-muted)!important;border-color:var(--ui-line)!important}
body.alx-crm-page .data-table td,body.alx-crm-page .lead-grid-table td{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page .panel-head,body.alx-crm-page .dashboard-card-head{background:var(--ui-panel2)!important;border-color:var(--ui-line)!important}
body.alx-crm-page .table-wrap,body.alx-crm-page .lead-table-wrap{background:var(--ui-panel)!important}
body.alx-crm-page .empty-state,body.alx-crm-page .dash-empty{color:var(--ui-muted)!important}

/* notification + dialogs */
body.alx-crm-page .notification-menu{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page .notification-item{background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.alx-crm-page dialog{color:var(--ui-text)!important}

/* dark-mode hard guard: white backgrounds inside CRM must be explicitly intentional */
body.alx-crm-page.alx-dark #viewSettings .settings-card,
body.alx-crm-page.alx-dark #viewSettings .settings-form,
body.alx-crm-page.alx-dark #viewSettings .settings-card-head,
body.alx-crm-page.alx-dark #leadDetail .alx-ref-identity,
body.alx-crm-page.alx-dark #leadDetail .alx-ref-general,
body.alx-crm-page.alx-dark #leadDetail .alx-ref-note,
body.alx-crm-page.alx-dark #leadDetail .kpi-card{background-color:var(--ui-panel)!important}

/* =========================================================
   v2.9.1 — STATUS-DRIVEN FULL-ROW COLOR SYSTEM
   Research-backed conditional row formatting: the WHOLE lead
   row inherits its status color in both light and dark themes.
   ========================================================= */

/* Status palette lives on the row. Cells inherit it so global
   table cell backgrounds can no longer erase status colors. */
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row{
  --row-bg:#f5f8fc;
  --row-bg-hover:#edf3fa;
  --row-accent:#7f95ad;
  --row-text:#17304f;
  --row-muted:#60758e;
  --row-control:#ffffff;
  --row-control-border:#cbd8e7;
  background:var(--row-bg)!important;
  box-shadow:inset 4px 0 0 var(--row-accent)!important;
  transition:filter .15s ease,box-shadow .15s ease!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-new{
  --row-bg:#eef5ff;--row-bg-hover:#e3efff;--row-accent:#4b8ff7;--row-text:#17375f;--row-muted:#58779c;--row-control:#f8fbff;--row-control-border:#bcd3f3;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-no_answer{
  --row-bg:#f1f4f7;--row-bg-hover:#e8edf2;--row-accent:#7b8b9d;--row-text:#26394d;--row-muted:#6b7b8c;--row-control:#f9fafb;--row-control-border:#c9d1da;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-callback{
  --row-bg:#fff4d8;--row-bg-hover:#ffedc0;--row-accent:#e6a51f;--row-text:#60450a;--row-muted:#8a6a24;--row-control:#fff9e9;--row-control-border:#e8c86d;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-interested{
  --row-bg:#e4f7ea;--row-bg-hover:#d5f1df;--row-accent:#27a85f;--row-text:#155a35;--row-muted:#3e7b5a;--row-control:#f0fbf4;--row-control-border:#8fd3aa;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-not_interested{
  --row-bg:#ffe9e7;--row-bg-hover:#ffdcda;--row-accent:#e25a50;--row-text:#7b2925;--row-muted:#9b5550;--row-control:#fff4f3;--row-control-border:#efaaa5;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-wrong_number{
  --row-bg:#f1eafa;--row-bg-hover:#e8ddf6;--row-accent:#8a63c7;--row-text:#51347b;--row-muted:#745c95;--row-control:#f8f3fd;--row-control-border:#c5afe5;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-do_not_call{
  --row-bg:#f7e4e7;--row-bg-hover:#f1d6da;--row-accent:#a93646;--row-text:#6e2630;--row-muted:#8d5159;--row-control:#fbf0f2;--row-control-border:#d89aa3;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-dep{
  --row-bg:#ffe3c2;--row-bg-hover:#ffd5a5;--row-accent:#e87513;--row-text:#6b3305;--row-muted:#92551e;--row-control:#fff0dc;--row-control-border:#e7a45f;
}

/* This is the critical fix: color every cell, not only <tr>. */
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row > td{
  background:var(--row-bg)!important;
  color:var(--row-text)!important;
  border-bottom-color:color-mix(in srgb,var(--row-accent) 22%, transparent)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row:hover > td{
  background:var(--row-bg-hover)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .lead-name-link,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .phone-link,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .email-cell,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .source-cell,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .campaign-cell,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .sales-cell,
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .callback-cell{
  color:var(--row-text)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .quick-status{
  background:var(--row-control)!important;
  color:var(--row-text)!important;
  border-color:var(--row-control-border)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.02)!important;
}

/* Dark theme: same semantic colors, deliberately deeper so status is visible
   without turning the table into neon blocks. */
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-new,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-new{
  --row-bg:#13243a;--row-bg-hover:#17304d;--row-accent:#5b9cff;--row-text:#dbeaff;--row-muted:#9bb8dc;--row-control:#0f1d30;--row-control-border:#3d638e;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-no_answer,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-no_answer{
  --row-bg:#202936;--row-bg-hover:#283443;--row-accent:#8999aa;--row-text:#e2e8ef;--row-muted:#a7b3c0;--row-control:#17212e;--row-control-border:#465567;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-callback,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-callback{
  --row-bg:#3a3016;--row-bg-hover:#493c19;--row-accent:#f0b52f;--row-text:#ffe7a5;--row-muted:#d3b86c;--row-control:#2a2415;--row-control-border:#806a2c;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-interested,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-interested{
  --row-bg:#153525;--row-bg-hover:#19452f;--row-accent:#38c978;--row-text:#c9f4d9;--row-muted:#89c7a2;--row-control:#10291d;--row-control-border:#397d56;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-not_interested,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-not_interested{
  --row-bg:#3d2222;--row-bg-hover:#4d2928;--row-accent:#ef6b61;--row-text:#ffd4d0;--row-muted:#d99a95;--row-control:#2d1919;--row-control-border:#82423e;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-wrong_number,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-wrong_number{
  --row-bg:#302642;--row-bg-hover:#3b2e51;--row-accent:#a87ce6;--row-text:#eadcff;--row-muted:#bea5df;--row-control:#241c32;--row-control-border:#654d87;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-do_not_call,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-do_not_call{
  --row-bg:#3a2027;--row-bg-hover:#48272f;--row-accent:#d65365;--row-text:#ffd5db;--row-muted:#d49aa3;--row-control:#2b181d;--row-control-border:#77404a;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-dep,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row.status-row-dep{
  --row-bg:#4a2b13;--row-bg-hover:#5b3517;--row-accent:#ff8b2c;--row-text:#ffe0c0;--row-muted:#e4ad78;--row-control:#35200f;--row-control-border:#955524;
}

/* In dark mode, keep status row colors above global table theme rules. */
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row > td,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row > td{
  background:var(--row-bg)!important;color:var(--row-text)!important;
}
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody tr.lead-status-row:hover > td,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row:hover > td{
  background:var(--row-bg-hover)!important;
}

/* =========================================================
   ALX CRM v2.9.2 — Premium workspace visual system
   Dashboard-first polish, shared across the entire CRM shell.
   ========================================================= */
body.alx-crm-page{
  --premium-blue:#2563eb;--premium-blue2:#3b82f6;--premium-navy:#07111f;
  --premium-surface:#ffffff;--premium-soft:#f7f9fc;--premium-line:#dce5f0;
  --premium-text:#0b1830;--premium-muted:#718096;
  background:linear-gradient(135deg,#f7f9fd 0%,#eef3f9 100%)!important;
  color:var(--premium-text)!important;
}
body.alx-crm-page .app-shell{grid-template-columns:218px minmax(0,1fr)!important;min-height:100vh;background:transparent!important}
body.alx-crm-page .sidebar{background:linear-gradient(180deg,#07111f 0%,#091629 54%,#0a1728 100%)!important;border-right:1px solid rgba(117,151,205,.13)!important;padding:28px 15px 18px!important;box-shadow:10px 0 40px rgba(7,17,31,.08);z-index:5}
body.alx-crm-page .brand{height:50px!important;margin:0 8px 28px!important;background-size:190px auto!important;background-position:left center!important;filter:drop-shadow(0 5px 14px rgba(0,0,0,.16))}
body.alx-crm-page .sidebar nav{gap:6px!important}
body.alx-crm-page .nav-item{min-height:40px!important;padding:0 13px!important;border-radius:10px!important;font-size:13px!important;font-weight:650!important;color:#9eb0ca!important;letter-spacing:-.01em!important;transition:background .18s ease,color .18s ease,transform .18s ease!important}
body.alx-crm-page .nav-item:hover{background:rgba(91,126,181,.10)!important;color:#eef5ff!important;transform:translateX(2px)}
body.alx-crm-page .nav-item.active{background:linear-gradient(90deg,rgba(63,107,193,.25),rgba(44,73,122,.15))!important;color:#fff!important;box-shadow:inset 2px 0 0 #8ea6ff,0 8px 22px rgba(0,0,0,.10)!important}
body.alx-crm-page .sidebar-footer{padding:16px 8px 3px!important;border-top:1px solid rgba(146,172,213,.12)!important}
body.alx-crm-page .avatar{width:36px!important;height:36px!important;background:linear-gradient(145deg,#1a3154,#10213c)!important;border:1px solid rgba(142,166,255,.28)!important;box-shadow:0 7px 18px rgba(0,0,0,.18)!important;color:#c9d5ff!important}
body.alx-crm-page .sidebar-user strong{font-size:12px!important;color:#fff!important}.alx-crm-page .sidebar-footer small{color:#7f94b2!important}.alx-crm-page .logout-btn{color:#92a6c1!important}

body.alx-crm-page .main{padding:27px 28px 30px!important;max-width:none!important;background:transparent!important}
body.alx-crm-page .topbar{min-height:58px!important;gap:18px!important;margin-bottom:2px!important}
body.alx-crm-page .eyebrow{font-size:9px!important;letter-spacing:.19em!important;font-weight:700!important;color:#8b9ab0!important;margin-bottom:5px!important}
body.alx-crm-page .topbar h1{font-size:24px!important;font-weight:650!important;letter-spacing:-.045em!important;color:#0a1830!important}
body.alx-crm-page .topbar-right{gap:9px!important}
body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn,body.alx-crm-page .secondary-btn,body.alx-crm-page .top-actions button{height:39px!important;border:1px solid #d5e0ed!important;background:rgba(255,255,255,.88)!important;color:#24344c!important;border-radius:10px!important;box-shadow:0 3px 10px rgba(26,48,82,.035)!important;font-weight:650!important}
body.alx-crm-page .theme-toggle:hover,body.alx-crm-page .notification-btn:hover,body.alx-crm-page .secondary-btn:hover{border-color:#b8cae1!important;background:#fff!important;box-shadow:0 7px 18px rgba(26,48,82,.08)!important}
body.alx-crm-page .primary,body.alx-crm-page #newLeadBtn{height:39px!important;background:linear-gradient(135deg,#2d73e8,#1762d9)!important;border-color:#1762d9!important;color:#fff!important;border-radius:10px!important;box-shadow:0 7px 16px rgba(37,99,235,.20)!important;font-weight:700!important}
body.alx-crm-page .top-actions input{height:39px!important;width:290px!important;border:1px solid #d5e0ed!important;background:rgba(255,255,255,.9)!important;border-radius:10px!important;box-shadow:inset 0 1px 2px rgba(17,35,62,.025)!important;color:#17263d!important}
body.alx-crm-page input:focus,body.alx-crm-page select:focus,body.alx-crm-page textarea:focus{border-color:#8db2ec!important;box-shadow:0 0 0 3px rgba(59,130,246,.09)!important}

body.alx-crm-page .stats{gap:11px!important;margin:20px 0 12px!important}
body.alx-crm-page .stat{min-height:89px!important;padding:17px 18px!important;border:1px solid #dce5f0!important;border-radius:13px!important;background:linear-gradient(145deg,#fff 0%,#fbfcff 100%)!important;box-shadow:0 8px 24px rgba(31,55,88,.045)!important;transition:transform .18s ease,box-shadow .18s ease!important}
body.alx-crm-page .stat:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(31,55,88,.08)!important}
body.alx-crm-page .stat:before{width:3px!important;top:11px!important;bottom:11px!important;border-radius:999px!important;left:0!important}
body.alx-crm-page .stat span{font-size:10.5px!important;font-weight:700!important;letter-spacing:.01em!important;color:#75849a!important}
body.alx-crm-page .stat strong{font-size:25px!important;font-weight:620!important;color:#10213b!important;margin-top:7px!important}

body.alx-crm-page .dashboard-grid{gap:12px!important;margin-top:12px!important}
body.alx-crm-page .dashboard-card,body.alx-crm-page .panel{border:1px solid #dce5f0!important;border-radius:14px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 8px 26px rgba(31,55,88,.045)!important}
body.alx-crm-page .dashboard-card-head,body.alx-crm-page .panel-head{height:59px!important;padding:11px 14px!important;background:linear-gradient(180deg,#fff,#fbfcfe)!important;border-bottom:1px solid #e5ebf3!important}
body.alx-crm-page .dashboard-card-head h2,body.alx-crm-page .panel-head h2{font-size:13.5px!important;font-weight:700!important;letter-spacing:-.02em!important;color:#13233b!important}
body.alx-crm-page .dashboard-card-head small,body.alx-crm-page .panel-head small{font-size:9.5px!important;color:#8b98aa!important}
body.alx-crm-page .dashboard-link{padding:6px 8px!important;border-radius:7px!important;color:#3165b5!important;font-size:10px!important;font-weight:750!important}.alx-crm-page .dashboard-link:hover{background:#edf4ff!important;color:#1f58ad!important}
body.alx-crm-page .dashboard-card-body{max-height:248px!important;scrollbar-width:thin;scrollbar-color:#aebccc transparent}
body.alx-crm-page .dash-row{min-height:45px!important;padding:7px 12px!important;background:#fff!important;border-bottom:1px solid #edf1f6!important;transition:background .15s ease,box-shadow .15s ease!important}
body.alx-crm-page .dash-row:hover{background:#f7faff!important;box-shadow:inset 3px 0 0 #8ea6ff!important}
body.alx-crm-page .dash-person strong{font-size:10.5px!important;font-weight:700!important;color:#182941!important}.alx-crm-page .dash-person small{font-size:9px!important;color:#8795a9!important}.alx-crm-page .dash-arrow{color:#a7b4c5!important}
body.alx-crm-page .dash-table th{height:34px!important;background:#f7f9fc!important;color:#8290a4!important;font-size:8.5px!important;font-weight:750!important;letter-spacing:.065em!important}.alx-crm-page .dash-table td{height:40px!important;color:#34445b!important;font-size:9.5px!important}.alx-crm-page .dash-table tbody tr:hover td{background:#f8faff!important}
body.alx-crm-page .status-pill{font-weight:750!important;box-shadow:inset 0 0 0 1px rgba(15,30,50,.035)}

/* Premium treatment shared by secondary CRM screens */
body.alx-crm-page .lead-table-panel,body.alx-crm-page .single-panel,body.alx-crm-page .lead-detail-page,body.alx-crm-page .settings-card{box-shadow:0 8px 28px rgba(31,55,88,.05)!important}
body.alx-crm-page select,body.alx-crm-page textarea,body.alx-crm-page input:not([type=checkbox]){border-color:#d6e0eb!important;border-radius:9px!important}
body.alx-crm-page .notification-menu,body.alx-crm-page dialog{border:1px solid #dbe4ef!important;border-radius:14px!important;box-shadow:0 22px 65px rgba(15,32,58,.18)!important}

/* Premium dark mode: retain hierarchy, accents and depth instead of flattening everything. */
body.alx-crm-page.alx-dark{--premium-surface:#111b2a;--premium-soft:#0d1725;--premium-line:#26364c;--premium-text:#edf4ff;--premium-muted:#8fa2bd;background:radial-gradient(circle at 70% -10%,#172943 0,#0b1421 36%,#08111d 100%)!important;color:#e9f0fa!important}
body.alx-crm-page.alx-dark .main{background:transparent!important}
body.alx-crm-page.alx-dark .topbar h1{color:#f2f6fc!important}.alx-crm-page.alx-dark .eyebrow{color:#7188a7!important}
body.alx-crm-page.alx-dark .stat{background:linear-gradient(145deg,#111d2e,#0e1928)!important;border-color:#26384f!important;box-shadow:0 10px 28px rgba(0,0,0,.17)!important}.alx-crm-page.alx-dark .stat strong{color:#f1f6fd!important}.alx-crm-page.alx-dark .stat span{color:#8fa2bd!important}
body.alx-crm-page.alx-dark .dashboard-card,body.alx-crm-page.alx-dark .panel{background:#101b2a!important;border-color:#26364b!important;box-shadow:0 12px 32px rgba(0,0,0,.16)!important}
body.alx-crm-page.alx-dark .dashboard-card-head,body.alx-crm-page.alx-dark .panel-head{background:linear-gradient(180deg,#132033,#101b2a)!important;border-color:#26364b!important}.alx-crm-page.alx-dark .dashboard-card-head h2,.alx-crm-page.alx-dark .panel-head h2{color:#edf4ff!important}.alx-crm-page.alx-dark .dashboard-card-head small,.alx-crm-page.alx-dark .panel-head small{color:#7f93af!important}
body.alx-crm-page.alx-dark .dash-row{background:#101b2a!important;border-color:#213147!important}.alx-crm-page.alx-dark .dash-row:hover{background:#14243a!important}.alx-crm-page.alx-dark .dash-person strong{color:#eaf2fd!important}.alx-crm-page.alx-dark .dash-person small{color:#8296b2!important}
body.alx-crm-page.alx-dark .dash-table th{background:#0d1725!important;color:#8093ae!important;border-color:#24344a!important}.alx-crm-page.alx-dark .dash-table td{color:#cbd7e8!important;border-color:#213147!important}.alx-crm-page.alx-dark .dash-table tbody tr:hover td{background:#14243a!important}
body.alx-crm-page.alx-dark .theme-toggle,body.alx-crm-page.alx-dark .notification-btn,body.alx-crm-page.alx-dark .secondary-btn,body.alx-crm-page.alx-dark .top-actions button:not(.primary):not(#newLeadBtn){background:#101b2a!important;border-color:#2a3b52!important;color:#dbe6f5!important;box-shadow:0 4px 14px rgba(0,0,0,.13)!important}
body.alx-crm-page.alx-dark .top-actions input{background:#0d1725!important;border-color:#2a3b52!important;color:#e9f1fb!important}
body.alx-crm-page.alx-dark .dashboard-link{color:#8db6ff!important}.alx-crm-page.alx-dark .dashboard-link:hover{background:#172b47!important}

@media(max-width:1050px){body.alx-crm-page .app-shell{grid-template-columns:72px minmax(0,1fr)!important}body.alx-crm-page .brand{background-image:none!important;width:42px!important;margin-left:auto!important;margin-right:auto!important}body.alx-crm-page .brand:after{content:"ALX";display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:11px!important;background:linear-gradient(145deg,#9aafff,#7892f0)!important;color:#07111f!important;font-size:13px!important;font-weight:900!important}}

/* =========================================================
   v2.9.3 — DARK DETAIL HARD FIX + PREMIUM VISUAL REBUILD
   ========================================================= */

/* DARK LEAD DETAIL: target the actual runtime DOM, not only helper classes */
body.alx-crm-page.alx-dark #viewLeadDetail,
body.alx-crm-page.alx-dark #viewLeadDetail .lead-detail-page,
body.alx-crm-page.alx-dark #viewLeadDetail #leadDetail,
body.alx-crm-page.alx-dark #viewLeadDetail #leadDetail .detail-wrap{background:#0b1421!important;color:#edf4ff!important}
body.alx-crm-page.alx-dark #leadDetail .identity,
body.alx-crm-page.alx-dark #leadDetail .identity-premium{background:#101c2c!important;border-color:#293b53!important;color:#edf4ff!important;box-shadow:0 14px 34px rgba(0,0,0,.18)!important}
body.alx-crm-page.alx-dark #leadDetail .identity h2,
body.alx-crm-page.alx-dark #leadDetail .contact-lines span,
body.alx-crm-page.alx-dark #leadDetail .detail-phone-link{color:#eaf2ff!important}
body.alx-crm-page.alx-dark #leadDetail .contact-lines{color:#9cb0ca!important}
body.alx-crm-page.alx-dark #leadDetail .lead-workbar{background:#0e1928!important;border-color:#293b53!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
body.alx-crm-page.alx-dark #leadDetail .lead-workbar .kpi-card,
body.alx-crm-page.alx-dark #leadDetail .lead-workbar>div{background:#142236!important;border:1px solid #2b405c!important;color:#edf4ff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
body.alx-crm-page.alx-dark #leadDetail .lead-workbar .kpi-card span{color:#8fa5c2!important}
body.alx-crm-page.alx-dark #leadDetail .lead-workbar .kpi-card strong{color:#f5f8ff!important}
body.alx-crm-page.alx-dark #leadDetail .lead-workbar .kpi-card::before{background:#193b67!important;color:#8fc2ff!important;border:1px solid #2d5684!important}
body.alx-crm-page.alx-dark #leadDetail .workbar-appt{background:#142236!important;color:#dce8f8!important;border-color:#38506e!important}
body.alx-crm-page.alx-dark #leadDetail .call-result-panel{background:linear-gradient(135deg,#10233a,#0e1c2e)!important;border-color:#31527a!important;border-left:4px solid #36a7ff!important;box-shadow:0 14px 32px rgba(0,0,0,.18)!important;color:#edf4ff!important}
body.alx-crm-page.alx-dark #leadDetail .call-result-panel label,
body.alx-crm-page.alx-dark #leadDetail .call-result-panel strong{color:#edf4ff!important}
body.alx-crm-page.alx-dark #leadDetail .call-result-panel small{color:#8fa5c2!important}
body.alx-crm-page.alx-dark #leadDetail .call-result-panel input,
body.alx-crm-page.alx-dark #leadDetail .call-result-panel select{background:#0a1625!important;color:#edf4ff!important;border-color:#36506e!important}
body.alx-crm-page.alx-dark #leadDetail .general-settings-card{background:#101c2c!important;color:#edf4ff!important;border:1px solid #293b53!important;box-shadow:0 14px 32px rgba(0,0,0,.18)!important}
body.alx-crm-page.alx-dark #leadDetail .general-settings-head{background:#132238!important;border-color:#293b53!important}
body.alx-crm-page.alx-dark #leadDetail .general-settings-head strong,
body.alx-crm-page.alx-dark #leadDetail .general-settings-card .section-title{color:#eaf2ff!important}
body.alx-crm-page.alx-dark #leadDetail .general-settings-head small{color:#8fa5c2!important}
body.alx-crm-page.alx-dark #leadDetail .general-settings-card select,
body.alx-crm-page.alx-dark #leadDetail .general-settings-card input,
body.alx-crm-page.alx-dark #leadDetail .general-settings-card button.secondary-btn{background:#0a1625!important;color:#edf4ff!important;border-color:#36506e!important}
body.alx-crm-page.alx-dark #leadDetail .appointment-editor,
body.alx-crm-page.alx-dark #leadDetail .note-box,
body.alx-crm-page.alx-dark #leadDetail .section{background:#101c2c!important;color:#edf4ff!important;border-color:#293b53!important}
body.alx-crm-page.alx-dark #leadDetail .note-box textarea{background:#0a1625!important;color:#edf4ff!important;border-color:#36506e!important}

/* PREMIUM SHELL — clearly visible rebuild */
body.alx-crm-page:not(.alx-dark){background:radial-gradient(circle at 72% -8%,#e9f1ff 0,#f4f7fb 34%,#eef3f9 100%)!important}
body.alx-crm-page .sidebar{background:linear-gradient(180deg,#06101d 0%,#08172a 48%,#071321 100%)!important;border-right:1px solid rgba(124,157,208,.16)!important;box-shadow:14px 0 42px rgba(12,31,57,.10)!important}
body.alx-crm-page .brand{height:56px!important;background-size:200px auto!important;margin:0 7px 30px!important;filter:drop-shadow(0 8px 20px rgba(0,0,0,.22))!important}
body.alx-crm-page .nav-item{position:relative!important;height:44px!important;border-radius:11px!important;padding-left:15px!important;font-weight:680!important}
body.alx-crm-page .nav-item.active{background:linear-gradient(90deg,rgba(74,118,213,.30),rgba(35,69,121,.18))!important;box-shadow:inset 3px 0 0 #8fa7ff,0 10px 25px rgba(0,0,0,.14)!important}
body.alx-crm-page .main{padding:30px 30px 32px!important}
body.alx-crm-page .topbar{padding:0 0 14px!important;border-bottom:1px solid rgba(177,194,218,.38)!important}
body.alx-crm-page .topbar h1{font-size:27px!important;font-weight:760!important;letter-spacing:-.045em!important}
body.alx-crm-page .eyebrow{font-size:9px!important;letter-spacing:.22em!important;font-weight:800!important}
body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn,body.alx-crm-page .secondary-btn,body.alx-crm-page .top-actions input{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body.alx-crm-page:not(.alx-dark) .theme-toggle,body.alx-crm-page:not(.alx-dark) .notification-btn,body.alx-crm-page:not(.alx-dark) .secondary-btn{background:rgba(255,255,255,.78)!important;box-shadow:0 8px 24px rgba(30,57,92,.07)!important}
body.alx-crm-page .primary,body.alx-crm-page #newLeadBtn{background:linear-gradient(135deg,#347ff4 0%,#145fd5 100%)!important;box-shadow:0 10px 24px rgba(31,105,222,.25)!important}

/* Dashboard KPI cards: icon tile + stronger hierarchy */
body.alx-crm-page .stats{gap:14px!important;margin:22px 0 14px!important}
body.alx-crm-page .stat{position:relative!important;overflow:hidden!important;min-height:112px!important;padding:19px 18px 17px 72px!important;border-radius:16px!important;border:1px solid #d7e2ef!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,251,255,.96))!important;box-shadow:0 14px 34px rgba(29,54,87,.075)!important}
body.alx-crm-page .stat::after{position:absolute;left:17px;top:19px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:800;border:1px solid rgba(74,113,177,.12);box-shadow:0 7px 16px rgba(35,72,127,.10)}
body.alx-crm-page .stat:nth-child(1)::after{content:"＋";background:#eaf1ff;color:#346fe0}
body.alx-crm-page .stat:nth-child(2)::after{content:"◷";background:#fff4d7;color:#b67a00}
body.alx-crm-page .stat:nth-child(3)::after{content:"↗";background:#e6f8ef;color:#148a57}
body.alx-crm-page .stat:nth-child(4)::after{content:"◆";background:#eeeaff;color:#6c57d9}
body.alx-crm-page .stat::before{width:4px!important;top:15px!important;bottom:15px!important}
body.alx-crm-page .stat span{font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important;font-weight:800!important}
body.alx-crm-page .stat strong{font-size:31px!important;font-weight:760!important;letter-spacing:-.04em!important;margin-top:6px!important}

body.alx-crm-page .dashboard-grid{gap:14px!important}
body.alx-crm-page .dashboard-card,body.alx-crm-page .panel{border-radius:17px!important;border-color:#d7e2ef!important;box-shadow:0 14px 36px rgba(28,53,86,.065)!important;overflow:hidden!important}
body.alx-crm-page:not(.alx-dark) .dashboard-card,body.alx-crm-page:not(.alx-dark) .panel{background:rgba(255,255,255,.93)!important}
body.alx-crm-page .dashboard-card-head,body.alx-crm-page .panel-head{height:66px!important;padding:13px 16px!important}
body.alx-crm-page .dashboard-card-head h2,body.alx-crm-page .panel-head h2{font-size:14px!important;font-weight:780!important}
body.alx-crm-page .dashboard-card-head small,body.alx-crm-page .panel-head small{font-size:9.5px!important;margin-top:3px!important}
body.alx-crm-page .dash-row{min-height:49px!important;padding:8px 13px!important}
body.alx-crm-page .dash-person strong{font-size:11px!important}.alx-crm-page .dash-person small{font-size:9px!important}
body.alx-crm-page .dash-table th{height:38px!important;font-size:8.5px!important}.alx-crm-page .dash-table td{height:43px!important;font-size:9.5px!important}

/* Dark premium dashboard keeps visible color accents */
body.alx-crm-page.alx-dark{background:radial-gradient(circle at 72% -8%,#173052 0,#0a1524 35%,#07111d 100%)!important}
body.alx-crm-page.alx-dark .topbar{border-color:#22344c!important}
body.alx-crm-page.alx-dark .stat{background:linear-gradient(145deg,#132238,#0e1a2b)!important;border-color:#2a3d57!important;box-shadow:0 16px 36px rgba(0,0,0,.22)!important}
body.alx-crm-page.alx-dark .stat:nth-child(1)::after{background:#17345f!important;color:#83b2ff!important;border-color:#2a5385!important}
body.alx-crm-page.alx-dark .stat:nth-child(2)::after{background:#44351c!important;color:#ffd36e!important;border-color:#6a5328!important}
body.alx-crm-page.alx-dark .stat:nth-child(3)::after{background:#173b31!important;color:#69d5a4!important;border-color:#285e4c!important}
body.alx-crm-page.alx-dark .stat:nth-child(4)::after{background:#30284d!important;color:#b9a5ff!important;border-color:#4c4173!important}
body.alx-crm-page.alx-dark .dashboard-card,body.alx-crm-page.alx-dark .panel{background:linear-gradient(145deg,#111e30,#0e1928)!important;border-color:#293b53!important;box-shadow:0 16px 38px rgba(0,0,0,.22)!important}
body.alx-crm-page.alx-dark .dashboard-card-head,body.alx-crm-page.alx-dark .panel-head{background:linear-gradient(180deg,#15253b,#111e30)!important;border-color:#293b53!important}
body.alx-crm-page.alx-dark .dash-row{background:#101d2f!important;border-color:#22344b!important}.alx-crm-page.alx-dark .dash-row:hover{background:#152942!important;box-shadow:inset 3px 0 0 #629cff!important}
body.alx-crm-page.alx-dark .dash-table th{background:#0c1726!important}.alx-crm-page.alx-dark .dash-table td{background:#101d2f!important}

/* ================================================================
   ALX CRM 3.0 — Reference-match premium workspace
   ================================================================ */
:root{
 --alx3-navy:#071425;--alx3-navy2:#0a1b30;--alx3-panel:#0d2138;--alx3-panel2:#102944;
 --alx3-line:#234463;--alx3-text:#f4f8ff;--alx3-muted:#8fa6bf;--alx3-blue:#2b86ff;
 --alx3-green:#24d17e;--alx3-gold:#ffc84d;--alx3-purple:#9c54ff;--alx3-red:#ff5c5c;
}
/* shell + brand */
.app-shell{background:#eef4fb!important}.sidebar{width:248px!important;background:linear-gradient(180deg,#061323 0%,#07182a 55%,#061322 100%)!important;border-right:1px solid #17314d!important;padding:24px 18px!important;box-shadow:12px 0 36px rgba(2,12,27,.08)!important}.brand{height:72px!important;padding:0 10px 20px!important;border-bottom:1px solid rgba(126,164,202,.12)!important;display:flex!important;align-items:center!important}.brand img{width:190px!important;height:auto!important;display:block!important}.sidebar nav{margin-top:18px!important;display:grid!important;gap:7px!important}.nav-item{height:48px!important;padding:0 14px!important;border-radius:11px!important;color:#9db2ca!important;font-size:14px!important;font-weight:650!important;display:flex!important;align-items:center!important;gap:13px!important;border:1px solid transparent!important;transition:.18s ease!important}.nav-item:hover{background:#0d2540!important;color:#eef7ff!important}.nav-item.active{background:linear-gradient(90deg,#0c5fc7 0%,#0b3767 100%)!important;color:#fff!important;border-color:#2478d8!important;box-shadow:0 7px 24px rgba(22,111,225,.22),inset 3px 0 #65a8ff!important}.nav-ico{width:22px!important;text-align:center!important;font-size:20px!important;color:#d8eaff!important}.sidebar-footer{border-top:1px solid rgba(126,164,202,.14)!important;padding:20px 8px 0!important;margin-top:auto!important}.sidebar-footer .avatar{width:44px!important;height:44px!important;background:#102c4d!important;border:1px solid #3b6490!important;box-shadow:0 6px 20px rgba(0,0,0,.2)!important}.sidebar-user strong{color:#f6f9ff!important}.sidebar-user small{color:#6ee7b7!important}.logout-btn{color:#9bb2c9!important}
/* topbar */
.main{background:radial-gradient(circle at 88% 0%,rgba(58,126,211,.08),transparent 32%),#eef4fb!important;padding:0 30px 26px!important}.topbar{min-height:112px!important;padding:22px 0 18px!important;border-bottom:1px solid #cfdae7!important;align-items:center!important}.page-heading{min-width:280px}.eyebrow{font-size:10px!important;letter-spacing:2px!important;font-weight:750!important;color:#7890aa!important;margin-bottom:5px!important}.topbar h1{font-size:27px!important;line-height:1.05!important;letter-spacing:-.7px!important;font-weight:800!important;color:#071a33!important}.page-subtitle{display:block!important;margin:7px 0 0!important;color:#71869e!important;font-size:12px!important}.topbar-right{gap:9px!important}.topbar input[type=search]{height:42px!important;min-width:275px!important;border-radius:10px!important;background:#fff!important;border:1px solid #c9d8e8!important;box-shadow:0 4px 16px rgba(13,42,74,.04)!important}.theme-toggle,.notification-btn,.secondary-btn,.primary{height:42px!important;border-radius:10px!important;font-weight:700!important}.primary{background:linear-gradient(180deg,#2788ff,#126be2)!important;box-shadow:0 7px 18px rgba(24,116,232,.22)!important}
/* premium KPI */
.premium-stats{gap:16px!important;margin:22px 0 16px!important}.premium-stats .stat{height:126px!important;border-radius:14px!important;padding:20px 20px!important;display:flex!important;align-items:flex-start!important;gap:15px!important;position:relative!important;overflow:hidden!important;background:#fff!important;border:1px solid #d2deeb!important;box-shadow:0 10px 28px rgba(19,50,82,.07)!important}.premium-stats .stat:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 5px 5px 0;background:#5f8fff}.premium-stats .stat-icon{width:45px;height:45px;border-radius:11px;display:grid;place-items:center;font-size:22px;font-weight:900;background:#eaf2ff;color:#347cf0;border:1px solid #d0e0fb;flex:0 0 auto}.premium-stats .stat-copy{display:flex;flex-direction:column;gap:3px}.premium-stats .stat-copy>span{font-size:11px!important;font-weight:800!important;letter-spacing:.8px!important;color:#687f9a!important}.premium-stats .stat strong{font-size:31px!important;line-height:1!important;color:#081b34!important;font-weight:800!important}.premium-stats .stat small{font-size:10px!important;color:#94a6b9!important}.stat-callback:before{background:#f4bd42!important}.stat-callback .stat-icon{background:#fff5d9!important;color:#d89a00!important;border-color:#f5df9e!important}.stat-potential:before{background:#35c980!important}.stat-potential .stat-icon{background:#e3f9ef!important;color:#0fa866!important;border-color:#bdebd7!important}.stat-dep:before{background:#965cf5!important}.stat-dep .stat-icon{background:#f0e9ff!important;color:#7c43df!important;border-color:#ddd0fb!important}.stat-spark{position:absolute;right:16px;bottom:16px;width:82px;height:25px;opacity:.7;background:linear-gradient(135deg,transparent 0 25%,currentColor 26% 29%,transparent 30% 42%,currentColor 43% 46%,transparent 47% 60%,currentColor 61% 64%,transparent 65%);color:#5996ff}.stat-callback .stat-spark{color:#e5ae2e}.stat-potential .stat-spark{color:#27bb73}.stat-dep .stat-spark{color:#8d53e8}
/* dashboard panels */
.dashboard-grid{gap:16px!important}.dashboard-card{border-radius:14px!important;background:#fff!important;border:1px solid #d1deeb!important;box-shadow:0 9px 26px rgba(19,50,82,.055)!important;overflow:hidden!important}.dashboard-card-head{min-height:68px!important;padding:14px 16px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;border-bottom:1px solid #dce5ef!important;display:flex!important;align-items:center!important;gap:11px!important}.dashboard-card-head>div{flex:1}.dashboard-card-head h2{font-size:15px!important;font-weight:800!important;color:#0a1c34!important}.dashboard-card-head small{font-size:10px!important;color:#8a9eb4!important;margin-top:3px!important}.dash-head-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:#e7f1ff;color:#2378e9;border:1px solid #cee0f7;font-size:19px;font-weight:800}.dash-head-icon.danger{background:#fff0ef;color:#e34c4c;border-color:#ffd0cc}.dashboard-link{color:#1d72df!important;font-weight:750!important}.dashboard-card-body{background:#fff!important}.dash-row{min-height:48px!important;border-bottom:1px solid #e7edf4!important;padding:8px 14px!important}.dash-row:hover{background:#f4f8fd!important}.dash-person strong{color:#0d2139!important;font-weight:750!important}.dash-person small,.dash-time{color:#8195aa!important}.dash-table th{background:#f5f8fc!important;color:#617993!important;font-size:10px!important;letter-spacing:.5px!important}.dash-table td{color:#17304c!important;border-color:#e5edf5!important}.dash-table tbody tr:hover td{background:#f7faff!important}.dash-empty{color:#8ca0b5!important;padding:24px 16px!important}
/* Dark mode reference match */
body.alx-dark .app-shell,html[data-alx-theme="dark"] .app-shell{background:#061323!important}
body.alx-dark .main,html[data-alx-theme="dark"] .main{background:radial-gradient(circle at 78% 0%,rgba(29,108,205,.14),transparent 35%),linear-gradient(180deg,#07172a 0%,#071526 100%)!important}
body.alx-dark .topbar,html[data-alx-theme="dark"] .topbar{border-color:#173654!important;background:transparent!important}
body.alx-dark .topbar h1,html[data-alx-theme="dark"] .topbar h1{color:#f4f8ff!important}
body.alx-dark .eyebrow,body.alx-dark .page-subtitle,html[data-alx-theme="dark"] .eyebrow,html[data-alx-theme="dark"] .page-subtitle{color:#7894b2!important}
body.alx-dark .topbar input[type=search],html[data-alx-theme="dark"] .topbar input[type=search]{background:#0a1c31!important;border-color:#294866!important;color:#e9f3ff!important;box-shadow:inset 0 1px rgba(255,255,255,.025)!important}
body.alx-dark .theme-toggle,body.alx-dark .notification-btn,body.alx-dark .secondary-btn,html[data-alx-theme="dark"] .theme-toggle,html[data-alx-theme="dark"] .notification-btn,html[data-alx-theme="dark"] .secondary-btn{background:#0b1d32!important;border-color:#294966!important;color:#dbeaff!important}
body.alx-dark .premium-stats .stat,html[data-alx-theme="dark"] .premium-stats .stat{background:linear-gradient(135deg,#0c213a 0%,#0a1a2e 100%)!important;border-color:#234463!important;box-shadow:0 13px 30px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.025)!important}
body.alx-dark .premium-stats .stat strong,html[data-alx-theme="dark"] .premium-stats .stat strong{color:#f4f8ff!important}
body.alx-dark .premium-stats .stat-copy>span,html[data-alx-theme="dark"] .premium-stats .stat-copy>span{color:#b5c7da!important}
body.alx-dark .premium-stats .stat small,html[data-alx-theme="dark"] .premium-stats .stat small{color:#6f89a4!important}
body.alx-dark .stat-new,html[data-alx-theme="dark"] .stat-new{background:radial-gradient(circle at 100% 100%,rgba(38,120,255,.20),transparent 40%),linear-gradient(135deg,#0c2441,#0a1b30)!important}
body.alx-dark .stat-callback,html[data-alx-theme="dark"] .stat-callback{background:radial-gradient(circle at 100% 100%,rgba(255,188,55,.14),transparent 40%),linear-gradient(135deg,#202435,#101d2d)!important}
body.alx-dark .stat-potential,html[data-alx-theme="dark"] .stat-potential{background:radial-gradient(circle at 100% 100%,rgba(30,214,123,.14),transparent 40%),linear-gradient(135deg,#0d2b2c,#0b202d)!important}
body.alx-dark .stat-dep,html[data-alx-theme="dark"] .stat-dep{background:radial-gradient(circle at 100% 100%,rgba(151,70,255,.17),transparent 40%),linear-gradient(135deg,#1a1d3d,#101b31)!important}
body.alx-dark .premium-stats .stat-icon,html[data-alx-theme="dark"] .premium-stats .stat-icon{background:#12366b!important;color:#62a8ff!important;border-color:#245a9e!important;box-shadow:0 0 20px rgba(39,126,255,.16)!important}
body.alx-dark .stat-callback .stat-icon,html[data-alx-theme="dark"] .stat-callback .stat-icon{background:#5a451d!important;color:#ffd35d!important;border-color:#7b6028!important}
body.alx-dark .stat-potential .stat-icon,html[data-alx-theme="dark"] .stat-potential .stat-icon{background:#104b39!important;color:#4be39d!important;border-color:#1a7253!important}
body.alx-dark .stat-dep .stat-icon,html[data-alx-theme="dark"] .stat-dep .stat-icon{background:#3b2365!important;color:#c182ff!important;border-color:#62409a!important}
body.alx-dark .dashboard-card,body.alx-dark .dashboard-card-body,html[data-alx-theme="dark"] .dashboard-card,html[data-alx-theme="dark"] .dashboard-card-body{background:#0a1c30!important;border-color:#234463!important;color:#eaf3fd!important;box-shadow:0 14px 32px rgba(0,0,0,.17)!important}
body.alx-dark .dashboard-card-head,html[data-alx-theme="dark"] .dashboard-card-head{background:linear-gradient(180deg,#0d2239,#0b1d32)!important;border-color:#234463!important}
body.alx-dark .dashboard-card-head h2,html[data-alx-theme="dark"] .dashboard-card-head h2{color:#f4f8ff!important}
body.alx-dark .dashboard-card-head small,html[data-alx-theme="dark"] .dashboard-card-head small{color:#7690aa!important}
body.alx-dark .dash-head-icon,html[data-alx-theme="dark"] .dash-head-icon{background:#103a70!important;color:#68adff!important;border-color:#24598d!important;box-shadow:0 0 18px rgba(34,126,255,.16)!important}
body.alx-dark .dash-head-icon.danger,html[data-alx-theme="dark"] .dash-head-icon.danger{background:#59292d!important;color:#ff7979!important;border-color:#7b373b!important}
body.alx-dark .dash-row,html[data-alx-theme="dark"] .dash-row{background:#0a1c30!important;border-color:#183751!important;color:#e8f2fc!important}
body.alx-dark .dash-row:hover,html[data-alx-theme="dark"] .dash-row:hover{background:#102943!important}
body.alx-dark .dash-person strong,html[data-alx-theme="dark"] .dash-person strong{color:#f0f6ff!important}
body.alx-dark .dash-person small,body.alx-dark .dash-time,html[data-alx-theme="dark"] .dash-person small,html[data-alx-theme="dark"] .dash-time{color:#7892ad!important}
body.alx-dark .dash-table th,html[data-alx-theme="dark"] .dash-table th{background:#0c2239!important;color:#89a5c1!important;border-color:#1c3b57!important}
body.alx-dark .dash-table td,html[data-alx-theme="dark"] .dash-table td{background:#0a1c30!important;color:#dce9f6!important;border-color:#183751!important}
body.alx-dark .dash-table tbody tr:hover td,html[data-alx-theme="dark"] .dash-table tbody tr:hover td{background:#102943!important}
body.alx-dark .dash-empty,html[data-alx-theme="dark"] .dash-empty{color:#7892ad!important}
/* dark-mode hard reset for lead detail: no white islands */
body.alx-dark #viewLeadDetail .panel,body.alx-dark #viewLeadDetail .lead-detail-page,body.alx-dark #viewLeadDetail .detail-identity,body.alx-dark #viewLeadDetail .lead-kpi-card,body.alx-dark #viewLeadDetail .lead-workbar,body.alx-dark #viewLeadDetail .quick-result-panel,body.alx-dark #viewLeadDetail .lead-settings-panel,body.alx-dark #viewLeadDetail .note-card,html[data-alx-theme="dark"] #viewLeadDetail .panel,html[data-alx-theme="dark"] #viewLeadDetail .lead-detail-page,html[data-alx-theme="dark"] #viewLeadDetail .detail-identity,html[data-alx-theme="dark"] #viewLeadDetail .lead-kpi-card,html[data-alx-theme="dark"] #viewLeadDetail .lead-workbar,html[data-alx-theme="dark"] #viewLeadDetail .quick-result-panel,html[data-alx-theme="dark"] #viewLeadDetail .lead-settings-panel,html[data-alx-theme="dark"] #viewLeadDetail .note-card{background:#0b1e33!important;border-color:#284968!important;color:#eaf3fd!important;box-shadow:none!important}
body.alx-dark #viewLeadDetail input,body.alx-dark #viewLeadDetail select,body.alx-dark #viewLeadDetail textarea,html[data-alx-theme="dark"] #viewLeadDetail input,html[data-alx-theme="dark"] #viewLeadDetail select,html[data-alx-theme="dark"] #viewLeadDetail textarea{background:#08192b!important;color:#eaf3fd!important;border-color:#31516e!important}
body.alx-dark #viewLeadDetail h2,body.alx-dark #viewLeadDetail h3,body.alx-dark #viewLeadDetail strong,body.alx-dark #viewLeadDetail label,html[data-alx-theme="dark"] #viewLeadDetail h2,html[data-alx-theme="dark"] #viewLeadDetail h3,html[data-alx-theme="dark"] #viewLeadDetail strong,html[data-alx-theme="dark"] #viewLeadDetail label{color:#edf6ff!important}
@media(max-width:1100px){.sidebar{width:205px!important}.main{padding-left:20px!important;padding-right:20px!important}.brand img{width:165px!important}.premium-stats{grid-template-columns:repeat(2,1fr)!important}.topbar{align-items:flex-start!important}.topbar-right{flex-wrap:wrap!important;justify-content:flex-end!important}}

/* === v4.1.1 Sales role cleanup + dark compact refinement === */
/* Role boundaries: management controls must never leak into Sales, even when legacy !important rules exist. */
body.role-sales .admin-only,
body.role-sales .admin-manager-only,
body.role-sales #bulkAssignBar,
body.role-sales #assigneeFilter,
body.role-sales #exportCsvBtn,
body.role-sales #importLeadsBtn,
body.role-sales #newLeadBtn{display:none!important}
body.role-sales #viewLeads .bulk-assign-bar{display:none!important}

/* Sales Leads toolbar: four useful filters only, balanced and compact. */
body.role-sales #viewLeads .leads-table-head{display:grid!important;grid-template-columns:170px minmax(0,1fr)!important;align-items:center!important;gap:14px!important;padding:8px 10px!important}
body.role-sales #viewLeads .lead-filters{display:grid!important;grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:7px!important;width:100%!important;align-items:center!important}
body.role-sales #viewLeads .lead-filters select{width:100%!important;min-width:0!important;height:34px!important;padding:5px 28px 5px 9px!important;font-size:11px!important}

/* Status row hierarchy: status owns the row, temperature remains the small secondary signal. */
body.alx-dark #viewLeads tr.status-row-new td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-new td{background:rgba(28,92,153,.16)!important;border-color:rgba(92,143,193,.22)!important}
body.alx-dark #viewLeads tr.status-row-new:hover td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-new:hover td{background:rgba(35,105,171,.23)!important}
body.alx-dark #viewLeads tr.status-row-No\ Answer td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-No\ Answer td{background:rgba(111,132,153,.075)!important}
body.alx-dark #viewLeads tr.status-row-Potential td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-Potential td{background:rgba(23,145,91,.17)!important;border-color:rgba(51,181,119,.24)!important}
body.alx-dark #viewLeads tr.status-row-Randevu td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-Randevu td{background:rgba(186,129,25,.18)!important;border-color:rgba(224,169,63,.24)!important}
body.alx-dark #viewLeads tr.status-row-dep td,
html[data-alx-theme="dark"] #viewLeads tr.status-row-dep td{background:rgba(122,73,190,.17)!important;border-color:rgba(157,111,220,.24)!important}

/* Less neon separators; clearer canvas / panel / table depth. */
body.alx-dark #viewLeads .lead-table-panel,html[data-alx-theme="dark"] #viewLeads .lead-table-panel{background:#0b1c2e!important;border-color:#233a51!important}
body.alx-dark #viewLeads .lead-table-wrap,html[data-alx-theme="dark"] #viewLeads .lead-table-wrap{background:#091827!important}
body.alx-dark #viewLeads .lead-grid-table thead th,html[data-alx-theme="dark"] #viewLeads .lead-grid-table thead th{background:#0c2034!important;border-color:#233a51!important;color:#9bb0c5!important}
body.alx-dark #viewLeads .lead-grid-table td,html[data-alx-theme="dark"] #viewLeads .lead-grid-table td{border-bottom-color:rgba(126,157,187,.16)!important}

/* Dense but readable rows. */
#viewLeads .lead-grid-table th{height:31px!important;padding:5px 7px!important;font-size:9.5px!important}
#viewLeads .lead-grid-table td{height:39px!important;padding:5px 7px!important;font-size:10.5px!important}
#viewLeads .lead-grid-table .col-status{min-width:104px!important}
#viewLeads .lead-grid-table .col-callback{width:78px!important;min-width:70px!important}
#viewLeads .quick-status{min-width:94px!important;max-width:108px!important;height:30px!important;padding:4px 24px 4px 8px!important;font-size:10px!important}
#viewLeads .temp-pill{font-size:9px!important;padding:4px 8px!important;box-shadow:none!important}
#viewLeads .source-cell,#viewLeads .campaign-cell{opacity:.72}
#viewLeads .name-cell,#viewLeads .phone-cell,#viewLeads .email-cell{opacity:1}

/* Sales topbar: no dead management space; search remains useful without dominating. */
body.role-sales .topbar{grid-template-columns:minmax(210px,1fr) auto!important;gap:16px!important}
body.role-sales .topbar-right{justify-content:flex-end!important;gap:7px!important}
body.role-sales .topbar-right #search{width:min(310px,32vw)!important;min-width:210px!important;height:34px!important;font-size:11px!important}
body.role-sales .theme-toggle,body.role-sales .notification-btn{height:34px!important;padding:0 11px!important;font-size:11px!important}

/* Sidebar: denser navigation and calmer selected state. */
body.role-sales .sidebar{width:205px!important;padding-left:12px!important;padding-right:12px!important}
body.role-sales .sidebar-nav{gap:4px!important}
body.role-sales .nav-item{min-height:37px!important;padding:7px 10px!important;border-radius:9px!important}
body.role-sales .nav-item.active{background:#123b68!important;border-color:#2d73b7!important;box-shadow:inset 3px 0 #58a6ff!important}
body.role-sales .sidebar-footer{padding-top:12px!important}
body.role-sales #currentUserRole{color:#58d6a2!important}

@media(max-width:1100px){
 body.role-sales #viewLeads .leads-table-head{grid-template-columns:1fr!important}
 body.role-sales #viewLeads .lead-filters{grid-template-columns:repeat(2,minmax(120px,1fr))!important}
 body.role-sales .topbar{grid-template-columns:1fr!important}
 body.role-sales .topbar-right{justify-content:flex-start!important}
}
