/* ALX CRM v4.1.0 — clean premium frontend layer. Loaded after legacy stylesheet. */
:root{--alx-bg:#eef4fb;--alx-panel:#fff;--alx-panel2:#f7faff;--alx-line:#d6e2ef;--alx-text:#0b1b31;--alx-muted:#7890aa;--alx-blue:#1677ff;--alx-blue2:#0b5ed7;--alx-shadow:0 14px 34px rgba(15,45,78,.08)}
html[data-alx-theme="dark"]{--alx-bg:#061423;--alx-panel:#0a1d31;--alx-panel2:#0d243c;--alx-line:#1f4161;--alx-text:#f3f8ff;--alx-muted:#7f9ab6;--alx-blue:#2687ff;--alx-blue2:#1166d7;--alx-shadow:0 18px 42px rgba(0,0,0,.22)}
*{box-sizing:border-box}
body.alx-crm-page{margin:0!important;background:var(--alx-bg)!important;color:var(--alx-text)!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
body.alx-crm-page .app-shell{display:grid!important;grid-template-columns:252px minmax(0,1fr)!important;min-height:100vh!important;background:var(--alx-bg)!important}
body.alx-crm-page .sidebar{position:sticky!important;top:0!important;height:100vh!important;width:auto!important;padding:28px 20px 22px!important;background:linear-gradient(180deg,#061323 0%,#07182a 55%,#061321 100%)!important;border-right:1px solid #16324f!important;box-shadow:14px 0 42px rgba(1,11,25,.16)!important;display:flex!important;flex-direction:column!important;z-index:20!important}
body.alx-crm-page .brand{height:78px!important;margin:0 0 24px!important;padding:0 10px 22px!important;border-bottom:1px solid rgba(121,166,214,.14)!important;background:none!important;filter:none!important;display:flex!important;align-items:center!important;overflow:visible!important}
body.alx-crm-page .brand:before,body.alx-crm-page .brand:after{content:none!important;display:none!important}
body.alx-crm-page .brand img{display:block!important;width:188px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 8px 18px rgba(0,0,0,.28))!important}
body.alx-crm-page .sidebar nav{display:grid!important;gap:8px!important;margin:0!important}
body.alx-crm-page .nav-item{appearance:none!important;width:100%!important;height:50px!important;min-height:50px!important;padding:0 16px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#9db4cc!important;display:flex!important;align-items:center!important;gap:14px!important;font-size:14px!important;font-weight:650!important;letter-spacing:-.01em!important;box-shadow:none!important;transform:none!important}
body.alx-crm-page .nav-item:hover{background:#0c2744!important;color:#f2f7ff!important;border-color:#173d63!important;transform:none!important}
body.alx-crm-page .nav-item.active{background:linear-gradient(90deg,#0d64d8 0%,#0b315a 100%)!important;color:#fff!important;border-color:#2b7ddd!important;box-shadow:0 10px 28px rgba(13,100,216,.25),inset 3px 0 #75b4ff!important}
body.alx-crm-page .nav-ico{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;font-size:18px!important;line-height:1!important;color:inherit!important}
body.alx-crm-page .sidebar-footer{margin-top:auto!important;padding:20px 10px 0!important;border-top:1px solid rgba(121,166,214,.14)!important;display:flex!important;gap:11px!important;align-items:flex-start!important}
body.alx-crm-page .sidebar-footer .avatar{width:46px!important;height:46px!important;min-width:46px!important;border-radius:50%!important;background:linear-gradient(145deg,#173b68,#0b2545)!important;border:1px solid #3d6b99!important;color:#dcecff!important;display:grid!important;place-items:center!important;box-shadow:0 8px 22px rgba(0,0,0,.22)!important}
body.alx-crm-page .sidebar-user strong{display:block!important;color:#f7fbff!important;font-size:13px!important;margin:2px 0 3px!important}body.alx-crm-page .sidebar-user small{display:block!important;color:#56d69a!important;font-size:11px!important}body.alx-crm-page .logout-btn{display:inline-block!important;margin-top:10px!important;color:#93abc4!important;font-size:12px!important;text-decoration:none!important}
body.alx-crm-page .main{min-width:0!important;max-width:none!important;padding:28px 34px 34px!important;background:radial-gradient(circle at 78% -5%,rgba(55,137,255,.08),transparent 31%),var(--alx-bg)!important}
body.alx-crm-page .topbar{min-height:86px!important;margin:0 0 22px!important;padding:0 0 18px!important;border-bottom:1px solid var(--alx-line)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;background:transparent!important}
body.alx-crm-page .page-heading{min-width:220px!important}body.alx-crm-page .eyebrow{margin:0 0 5px!important;color:#7995b1!important;font-size:10px!important;font-weight:750!important;letter-spacing:.18em!important}body.alx-crm-page .topbar h1{margin:0!important;color:var(--alx-text)!important;font-size:28px!important;line-height:1.05!important;font-weight:780!important;letter-spacing:-.045em!important}body.alx-crm-page .page-subtitle{margin:7px 0 0!important;color:var(--alx-muted)!important;font-size:12px!important}
body.alx-crm-page .topbar-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:1!important}body.alx-crm-page .top-actions{display:flex!important;align-items:center!important;gap:10px!important}
body.alx-crm-page button,body.alx-crm-page input,body.alx-crm-page select,body.alx-crm-page textarea{font:inherit!important}
body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn,body.alx-crm-page .secondary-btn{height:42px!important;border:1px solid var(--alx-line)!important;border-radius:10px!important;background:var(--alx-panel)!important;color:var(--alx-text)!important;font-weight:650!important;box-shadow:0 5px 15px rgba(15,45,78,.04)!important}
body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn{padding:0 14px!important;white-space:nowrap!important}
body.alx-crm-page .topbar input[type=search]{width:290px!important;height:42px!important;border-radius:10px!important;border:1px solid var(--alx-line)!important;background:var(--alx-panel)!important;color:var(--alx-text)!important;padding:0 14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}
body.alx-crm-page .primary{height:42px!important;border:1px solid #1d78e8!important;border-radius:10px!important;background:linear-gradient(180deg,#2588ff,#1268dc)!important;color:#fff!important;font-weight:750!important;padding:0 16px!important;box-shadow:0 8px 18px rgba(25,116,232,.24)!important}
body.alx-crm-page .primary:hover{filter:brightness(1.06)!important;transform:translateY(-1px)!important}
/* KPI */
body.alx-crm-page .premium-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;margin:0 0 18px!important}
body.alx-crm-page .premium-stats .stat{position:relative!important;min-height:132px!important;padding:22px 22px 18px 86px!important;border-radius:14px!important;border:1px solid var(--alx-line)!important;background:var(--alx-panel)!important;box-shadow:var(--alx-shadow)!important;overflow:hidden!important;display:block!important}
body.alx-crm-page .premium-stats .stat:before{content:""!important;position:absolute!important;left:0!important;top:18px!important;bottom:18px!important;width:4px!important;border-radius:0 4px 4px 0!important;background:#3288ff!important}
body.alx-crm-page .premium-stats .stat:after{content:none!important;display:none!important}
body.alx-crm-page .stat-icon{position:absolute!important;left:20px!important;top:22px!important;width:46px!important;height:46px!important;border-radius:12px!important;display:grid!important;place-items:center!important;font-size:21px!important;font-weight:850!important;background:#e8f2ff!important;color:#1976ed!important;border:1px solid #cfe2fb!important;box-shadow:none!important}
body.alx-crm-page .stat-copy{display:block!important}body.alx-crm-page .stat-copy>span{display:block!important;margin:2px 0 7px!important;color:#6e83a0!important;font-size:11px!important;font-weight:800!important;letter-spacing:.08em!important}body.alx-crm-page .stat-copy strong{display:block!important;color:var(--alx-text)!important;font-size:34px!important;line-height:1!important;font-weight:800!important;letter-spacing:-.05em!important}body.alx-crm-page .stat-copy small{display:block!important;margin-top:8px!important;color:var(--alx-muted)!important;font-size:10px!important}
body.alx-crm-page .stat-spark{position:absolute!important;right:18px!important;bottom:18px!important;width:84px!important;height:28px!important;opacity:.85!important}
body.alx-crm-page .stat-callback:before{background:#f4bd39!important}.alx-crm-page .stat-potential:before{background:#38ce87!important}.alx-crm-page .stat-dep:before{background:#9a5cf5!important}.alx-crm-page .stat-callback .stat-icon{background:#fff4d6!important;color:#c88900!important;border-color:#f3dfa4!important}.alx-crm-page .stat-potential .stat-icon{background:#e0f9ee!important;color:#0ca76a!important;border-color:#bdebd7!important}.alx-crm-page .stat-dep .stat-icon{background:#f0e9ff!important;color:#7544d7!important;border-color:#dacdf8!important}
/* Dashboard panels */
body.alx-crm-page .dashboard-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important}body.alx-crm-page .dashboard-card{min-height:210px!important;border-radius:14px!important;border:1px solid var(--alx-line)!important;background:var(--alx-panel)!important;box-shadow:var(--alx-shadow)!important;overflow:hidden!important}body.alx-crm-page .dashboard-card-head{min-height:70px!important;padding:14px 18px!important;border-bottom:1px solid var(--alx-line)!important;background:var(--alx-panel)!important;display:flex!important;align-items:center!important;gap:12px!important}body.alx-crm-page .dashboard-card-head>div{flex:1!important}body.alx-crm-page .dashboard-card-head h2{margin:0!important;color:var(--alx-text)!important;font-size:16px!important;font-weight:780!important}body.alx-crm-page .dashboard-card-head small{display:block!important;margin-top:4px!important;color:var(--alx-muted)!important;font-size:10px!important}.alx-crm-page .dash-head-icon{width:40px!important;height:40px!important;border-radius:10px!important;background:#e5f0ff!important;color:#1877ef!important;border:1px solid #c9def8!important;display:grid!important;place-items:center!important;font-size:18px!important}.alx-crm-page .dash-head-icon.danger{background:#fff0ef!important;color:#e24949!important;border-color:#ffc9c6!important}.alx-crm-page .dashboard-link{border:0!important;background:transparent!important;color:#2581ee!important;font-weight:750!important;font-size:11px!important}.alx-crm-page .dashboard-card-body{background:var(--alx-panel)!important}.alx-crm-page .dash-row{min-height:50px!important;padding:8px 16px!important;border-bottom:1px solid var(--alx-line)!important;background:transparent!important}.alx-crm-page .dash-table{width:100%!important;border-collapse:collapse!important}.alx-crm-page .dash-table th{height:40px!important;padding:0 14px!important;background:var(--alx-panel2)!important;color:#7189a3!important;border-bottom:1px solid var(--alx-line)!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.05em!important}.alx-crm-page .dash-table td{height:48px!important;padding:0 14px!important;background:transparent!important;color:var(--alx-text)!important;border-bottom:1px solid var(--alx-line)!important;font-size:12px!important}.alx-crm-page .dash-empty{padding:28px 18px!important;color:var(--alx-muted)!important}
/* shared pages */
body.alx-crm-page .panel,body.alx-crm-page .single-panel,body.alx-crm-page .lead-table-panel,body.alx-crm-page .lead-detail-page,body.alx-crm-page .settings-card{background:var(--alx-panel)!important;color:var(--alx-text)!important;border:1px solid var(--alx-line)!important;border-radius:14px!important;box-shadow:var(--alx-shadow)!important}
body.alx-crm-page .panel-head,body.alx-crm-page .settings-card-head{background:var(--alx-panel)!important;border-bottom:1px solid var(--alx-line)!important;color:var(--alx-text)!important}.alx-crm-page .panel-head h2,.alx-crm-page .settings-card-head h2{color:var(--alx-text)!important}.alx-crm-page .panel-head small,.alx-crm-page .settings-card-head small{color:var(--alx-muted)!important}
body.alx-crm-page input:not([type=checkbox]):not([type=radio]),body.alx-crm-page select,body.alx-crm-page textarea{background:var(--alx-panel2)!important;color:var(--alx-text)!important;border:1px solid var(--alx-line)!important;border-radius:9px!important;outline:none!important}body.alx-crm-page input:focus,body.alx-crm-page select:focus,body.alx-crm-page textarea:focus{border-color:#2e83e9!important;box-shadow:0 0 0 3px rgba(46,131,233,.12)!important}
/* Lead table keeps full-row status semantics */
body.alx-crm-page .lead-table-wrap{border-top:1px solid var(--alx-line)!important}body.alx-crm-page .lead-grid-table th{background:var(--alx-panel2)!important;color:#7087a1!important;border-color:var(--alx-line)!important}body.alx-crm-page .lead-grid-table td{border-color:rgba(130,158,187,.22)!important}
/* Settings */
body.alx-crm-page .settings-grid{gap:16px!important}.alx-crm-page .settings-card{overflow:hidden!important}.alx-crm-page .settings-card-head{min-height:58px!important;padding:11px 14px!important}.alx-crm-page .settings-icon{width:34px!important;height:34px!important;border-radius:9px!important;background:#e8f2ff!important;color:#1777ee!important;display:grid!important;place-items:center!important}.alx-crm-page .settings-card label{color:var(--alx-text)!important}.alx-crm-page .settings-card p,.alx-crm-page .settings-card small{color:var(--alx-muted)!important}
/* Dark reference mode */
body.alx-crm-page.alx-dark,html[data-alx-theme="dark"] body.alx-crm-page{background:#061423!important}
body.alx-crm-page.alx-dark .main,html[data-alx-theme="dark"] body.alx-crm-page .main{background:radial-gradient(circle at 76% -6%,rgba(37,128,255,.17),transparent 32%),linear-gradient(180deg,#07182a 0%,#061423 100%)!important}
body.alx-crm-page.alx-dark .premium-stats .stat,html[data-alx-theme="dark"] body.alx-crm-page .premium-stats .stat{background:linear-gradient(135deg,#0d243e 0%,#091a2d 100%)!important;border-color:#214766!important;box-shadow:0 18px 40px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.025)!important}
body.alx-crm-page.alx-dark .stat-new,html[data-alx-theme="dark"] body.alx-crm-page .stat-new{background:radial-gradient(circle at 100% 100%,rgba(28,119,255,.26),transparent 42%),linear-gradient(135deg,#0d2747,#091a2e)!important}.alx-dark .stat-callback{background:radial-gradient(circle at 100% 100%,rgba(244,183,48,.18),transparent 42%),linear-gradient(135deg,#272535,#101d2e)!important}.alx-dark .stat-potential{background:radial-gradient(circle at 100% 100%,rgba(28,210,120,.18),transparent 42%),linear-gradient(135deg,#0d302d,#0a1f2d)!important}.alx-dark .stat-dep{background:radial-gradient(circle at 100% 100%,rgba(151,69,255,.22),transparent 42%),linear-gradient(135deg,#1c2142,#0c1a31)!important}
body.alx-crm-page.alx-dark .stat-icon,html[data-alx-theme="dark"] body.alx-crm-page .stat-icon{background:#103b75!important;color:#64afff!important;border-color:#255e9d!important;box-shadow:0 0 22px rgba(38,133,255,.16)!important}.alx-dark .stat-callback .stat-icon{background:#59451f!important;color:#ffd45d!important;border-color:#81672d!important}.alx-dark .stat-potential .stat-icon{background:#104d39!important;color:#4de39f!important;border-color:#1c7656!important}.alx-dark .stat-dep .stat-icon{background:#3d2467!important;color:#c58aff!important;border-color:#66459d!important}
body.alx-crm-page.alx-dark .dashboard-card,body.alx-crm-page.alx-dark .dashboard-card-head,body.alx-crm-page.alx-dark .dashboard-card-body,html[data-alx-theme="dark"] body.alx-crm-page .dashboard-card,html[data-alx-theme="dark"] body.alx-crm-page .dashboard-card-head,html[data-alx-theme="dark"] body.alx-crm-page .dashboard-card-body{background:#0a1d31!important;border-color:#20425f!important;color:#edf6ff!important}.alx-dark .dash-head-icon{background:#103b73!important;color:#6ab2ff!important;border-color:#285d91!important;box-shadow:0 0 18px rgba(31,126,255,.16)!important}.alx-dark .dash-head-icon.danger{background:#5a292e!important;color:#ff8080!important;border-color:#813b40!important}.alx-dark .dash-table th{background:#0d243b!important;color:#87a2bd!important}.alx-dark .dash-table td,.alx-dark .dash-row{background:#0a1d31!important;color:#e6f0fb!important;border-color:#173852!important}.alx-dark .dash-row:hover,.alx-dark .dash-table tbody tr:hover td{background:#102a45!important}
body.alx-crm-page.alx-dark .panel,body.alx-crm-page.alx-dark .single-panel,body.alx-crm-page.alx-dark .lead-table-panel,body.alx-crm-page.alx-dark .lead-detail-page,body.alx-crm-page.alx-dark .settings-card,html[data-alx-theme="dark"] body.alx-crm-page .panel,html[data-alx-theme="dark"] body.alx-crm-page .single-panel,html[data-alx-theme="dark"] body.alx-crm-page .lead-table-panel,html[data-alx-theme="dark"] body.alx-crm-page .lead-detail-page,html[data-alx-theme="dark"] body.alx-crm-page .settings-card{background:#0a1d31!important;color:#eef6ff!important;border-color:#20425f!important;box-shadow:0 18px 40px rgba(0,0,0,.18)!important}
body.alx-crm-page.alx-dark .panel-head,body.alx-crm-page.alx-dark .settings-card-head,html[data-alx-theme="dark"] body.alx-crm-page .panel-head,html[data-alx-theme="dark"] body.alx-crm-page .settings-card-head{background:#0c2239!important;border-color:#20425f!important;color:#eef6ff!important}.alx-dark .panel-head h2,.alx-dark .settings-card-head h2,.alx-dark .settings-card label{color:#eef6ff!important}.alx-dark .settings-icon{background:#103b73!important;color:#6ab2ff!important}
body.alx-crm-page.alx-dark input:not([type=checkbox]):not([type=radio]),body.alx-crm-page.alx-dark select,body.alx-crm-page.alx-dark textarea,html[data-alx-theme="dark"] body.alx-crm-page input:not([type=checkbox]):not([type=radio]),html[data-alx-theme="dark"] body.alx-crm-page select,html[data-alx-theme="dark"] body.alx-crm-page textarea{background:#081a2d!important;color:#eaf4ff!important;border-color:#2b4d6b!important}
/* detail hard reset: remove every light island */
.alx-dark #viewLeadDetail .detail-identity,.alx-dark #viewLeadDetail .lead-kpi-card,.alx-dark #viewLeadDetail .lead-workbar,.alx-dark #viewLeadDetail .quick-result-panel,.alx-dark #viewLeadDetail .lead-settings-panel,.alx-dark #viewLeadDetail .note-card,.alx-dark #viewLeadDetail .timeline-item{background:#0b2036!important;color:#eaf4ff!important;border-color:#274b69!important;box-shadow:none!important}.alx-dark #viewLeadDetail h2,.alx-dark #viewLeadDetail h3,.alx-dark #viewLeadDetail strong,.alx-dark #viewLeadDetail label{color:#f1f7ff!important}.alx-dark #viewLeadDetail p,.alx-dark #viewLeadDetail small,.alx-dark #viewLeadDetail .muted{color:#86a0bb!important}
/* neutralize legacy duplicate decorative icons */
body.alx-crm-page .premium-stats .stat>.stat-icon+ .stat-icon{display:none!important}
@media(max-width:1180px){body.alx-crm-page .app-shell{grid-template-columns:218px minmax(0,1fr)!important}.alx-crm-page .main{padding:24px 22px!important}.alx-crm-page .premium-stats{grid-template-columns:repeat(2,1fr)!important}.alx-crm-page .topbar{align-items:flex-start!important}.alx-crm-page .topbar-right{flex-wrap:wrap!important}.alx-crm-page .topbar input[type=search]{width:240px!important}}
@media(max-width:760px){body.alx-crm-page .app-shell{grid-template-columns:76px minmax(0,1fr)!important}.alx-crm-page .sidebar{padding:20px 10px!important}.alx-crm-page .brand{padding:0 0 16px!important;justify-content:center!important}.alx-crm-page .brand img{width:54px!important;max-height:48px!important;object-fit:cover!important;object-position:left!important}.alx-crm-page .nav-item{padding:0!important;justify-content:center!important}.alx-crm-page .nav-item span:last-child{display:none!important}.alx-crm-page .sidebar-user{display:none!important}.alx-crm-page .premium-stats,.alx-crm-page .dashboard-grid{grid-template-columns:1fr!important}.alx-crm-page .main{padding:18px 14px!important}.alx-crm-page .topbar{display:block!important}.alx-crm-page .topbar-right{margin-top:16px!important;justify-content:flex-start!important}.alx-crm-page .top-actions{flex-wrap:wrap!important}.alx-crm-page .topbar input[type=search]{width:100%!important}}

/* ============================================================
   ALX CRM v4.1.0 — COMPACT OPERATIONS QA PASS
   Fixes: density, overflow, responsive toolbars, status rows,
   lead detail density, calls/settings density and dark tokens.
   ============================================================ */
:root{--alx-bg:#edf3f9;--alx-panel:#ffffff;--alx-panel2:#f5f8fc;--alx-panel3:#eef4fa;--alx-line:#cfdeec;--alx-text:#0b1d34;--alx-muted:#7188a1;--alx-blue:#1677ff;--alx-shadow:0 8px 24px rgba(17,48,81,.065)}
html[data-alx-theme="dark"],body.alx-dark{--alx-bg:#071421;--alx-panel:#0b1c2d;--alx-panel2:#0e2338;--alx-panel3:#102941;--alx-line:#1d3b55;--alx-text:#edf6ff;--alx-muted:#8ba3ba;--alx-shadow:0 12px 30px rgba(0,0,0,.22)}
body.alx-crm-page .app-shell{grid-template-columns:218px minmax(0,1fr)!important}
body.alx-crm-page .sidebar{padding:18px 14px 16px!important}
body.alx-crm-page .brand{height:68px!important;margin:0 0 14px!important;padding:0 8px 15px!important}
body.alx-crm-page .brand img{width:170px!important;max-height:48px!important}
body.alx-crm-page .sidebar nav{gap:5px!important}
body.alx-crm-page .nav-item{height:44px!important;min-height:44px!important;padding:0 13px!important;border-radius:10px!important;gap:11px!important;font-size:13px!important}
body.alx-crm-page .nav-ico{width:20px!important;height:20px!important;font-size:15px!important}
body.alx-crm-page .sidebar-footer{padding:15px 7px 0!important;gap:9px!important}
body.alx-crm-page .sidebar-footer .avatar{width:40px!important;height:40px!important;min-width:40px!important}
body.alx-crm-page .sidebar-user strong{font-size:12px!important}.alx-crm-page .sidebar-user small,.alx-crm-page .logout-btn{font-size:10.5px!important}.alx-crm-page .logout-btn{margin-top:7px!important}
body.alx-crm-page .main{padding:20px 24px 24px!important;overflow-x:hidden!important}
body.alx-crm-page .topbar{min-height:68px!important;margin:0 0 14px!important;padding:0 0 12px!important;gap:16px!important}
body.alx-crm-page .page-heading{min-width:205px!important;flex:0 0 auto!important}
body.alx-crm-page .eyebrow{font-size:9px!important;margin-bottom:3px!important}.alx-crm-page .topbar h1{font-size:25px!important}.alx-crm-page .page-subtitle{font-size:10.5px!important;margin-top:5px!important}
body.alx-crm-page .topbar-right{min-width:0!important;gap:8px!important;flex-wrap:nowrap!important}.alx-crm-page .top-actions{min-width:0!important;gap:8px!important;flex:1 1 auto!important;justify-content:flex-end!important}
body.alx-crm-page .top-actions[style*="display: none"]{display:none!important}
body.alx-crm-page .theme-toggle,body.alx-crm-page .notification-btn,body.alx-crm-page .secondary-btn,body.alx-crm-page .primary{height:36px!important;min-height:36px!important;border-radius:9px!important;font-size:12px!important;line-height:1!important;padding:0 12px!important;white-space:nowrap!important}
body.alx-crm-page .topbar input[type=search]{width:clamp(190px,22vw,285px)!important;min-width:160px!important;height:36px!important;border-radius:9px!important;font-size:12px!important;padding:0 12px!important}
body.alx-crm-page #importLeadsBtn,body.alx-crm-page #newLeadBtn{max-width:none!important;white-space:nowrap!important;line-height:1!important}
/* KPI density + meaningful color identity; remove decorative spark marks */
body.alx-crm-page .premium-stats{gap:12px!important;margin-bottom:12px!important}
body.alx-crm-page .premium-stats .stat{min-height:102px!important;padding:17px 14px 14px 68px!important;border-radius:12px!important}
body.alx-crm-page .premium-stats .stat:before{top:14px!important;bottom:14px!important;width:3px!important}
body.alx-crm-page .stat-icon{left:15px!important;top:17px!important;width:40px!important;height:40px!important;border-radius:10px!important;font-size:17px!important}
body.alx-crm-page .stat-copy>span{font-size:9.5px!important;margin:1px 0 5px!important}.alx-crm-page .stat-copy strong{font-size:29px!important}.alx-crm-page .stat-copy small{font-size:9px!important;margin-top:5px!important}.alx-crm-page .stat-spark{display:none!important}
body.alx-crm-page .stat-new:before{background:#2e7df4!important}.alx-crm-page .stat-callback:before{background:#eeb52d!important}.alx-crm-page .stat-potential:before{background:#25b978!important}.alx-crm-page .stat-dep:before{background:#8457e8!important}
/* dashboard: content-driven compact cards */
body.alx-crm-page .dashboard-grid{gap:12px!important}
body.alx-crm-page .dashboard-card{min-height:0!important;border-radius:12px!important}
body.alx-crm-page .dashboard-card-head{min-height:54px!important;height:54px!important;padding:9px 13px!important;gap:9px!important}
body.alx-crm-page .dash-head-icon{width:32px!important;height:32px!important;border-radius:8px!important;font-size:14px!important}
body.alx-crm-page .dashboard-card-head h2{font-size:13.5px!important}.alx-crm-page .dashboard-card-head small{font-size:9px!important;margin-top:2px!important}.alx-crm-page .dashboard-link{font-size:10px!important}
body.alx-crm-page .dash-empty{padding:18px 13px!important;min-height:62px!important;font-size:10px!important}.alx-crm-page .dash-row{min-height:40px!important;padding:6px 12px!important}.alx-crm-page .dash-table th{height:31px!important;padding:0 10px!important;font-size:8.5px!important}.alx-crm-page .dash-table td{height:38px!important;padding:0 10px!important;font-size:10px!important}
/* Shared panels / compact toolbar geometry */
body.alx-crm-page .panel,body.alx-crm-page .single-panel,body.alx-crm-page .lead-table-panel,body.alx-crm-page .lead-detail-page,body.alx-crm-page .settings-card{border-radius:12px!important}
body.alx-crm-page .panel-head{min-height:54px!important;height:auto!important;padding:9px 13px!important;gap:10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
body.alx-crm-page .panel-head h2{font-size:13.5px!important;margin:0!important}.alx-crm-page .panel-head small{font-size:9px!important;margin-top:2px!important}
body.alx-crm-page .inline-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;min-width:0!important}
body.alx-crm-page .inline-actions input,body.alx-crm-page .inline-actions select,body.alx-crm-page .lead-filters select{height:34px!important;min-height:34px!important;border-radius:8px!important;font-size:11px!important;padding:0 10px!important;background:var(--alx-panel)!important;color:var(--alx-text)!important;border:1px solid var(--alx-line)!important}
body.alx-crm-page .inline-actions input{width:220px!important}.alx-crm-page .inline-actions select{width:150px!important}
/* Leads: two stable toolbars; never overlap title or each other */
body.alx-crm-page .leads-table-head{display:grid!important;grid-template-columns:minmax(135px,.55fr) minmax(620px,2.45fr)!important;align-items:center!important;column-gap:14px!important;min-height:58px!important;padding:8px 12px!important}
body.alx-crm-page .lead-filters{display:grid!important;grid-template-columns:repeat(5,minmax(105px,1fr)) auto!important;gap:7px!important;align-items:center!important;min-width:0!important}
body.alx-crm-page .lead-filters select{width:100%!important;min-width:0!important}.alx-crm-page .lead-filters #exportCsvBtn{height:34px!important;min-height:34px!important;padding:0 10px!important;font-size:11px!important}
body.alx-crm-page .bulk-assign-bar{min-height:48px!important;padding:7px 12px!important;gap:7px!important;align-items:center!important;flex-wrap:nowrap!important;background:var(--alx-panel2)!important;border-color:var(--alx-line)!important}
body.alx-crm-page .bulk-assign-bar label,body.alx-crm-page .bulk-assign-bar strong{font-size:10px!important;white-space:nowrap!important}.alx-crm-page .bulk-assign-bar select{height:34px!important;min-height:34px!important;width:170px!important;margin-left:auto!important;font-size:11px!important}.alx-crm-page .bulk-assign-bar button{height:34px!important;min-height:34px!important;padding:0 11px!important;font-size:11px!important;white-space:nowrap!important}
body.alx-crm-page .lead-grid-table th{height:31px!important;padding:0 9px!important;font-size:8.5px!important}.alx-crm-page .lead-grid-table td{height:43px!important;padding:5px 9px!important;font-size:10.5px!important}.alx-crm-page .lead-grid-table .status-select{min-height:32px!important;height:32px!important;font-size:10px!important}
/* Full-row status language in light mode */
body.alx-crm-page .lead-grid-table tr.status-row-new>td{background:#edf5ff!important;border-color:#d7e8fb!important}
body.alx-crm-page .lead-grid-table tr.status-row-no_answer>td{background:#f4f7fa!important;border-color:#e0e7ee!important}
body.alx-crm-page .lead-grid-table tr.status-row-interested>td{background:#e4f7ec!important;border-color:#bfe9d0!important;color:#145c38!important}
body.alx-crm-page .lead-grid-table tr.status-row-callback>td{background:#fff2d2!important;border-color:#f2d78d!important;color:#72500c!important}
body.alx-crm-page .lead-grid-table tr.status-row-dep>td{background:#f0eaff!important;border-color:#d8c8fb!important;color:#55318e!important}
body.alx-crm-page .lead-grid-table tr.status-row-not_interested>td{background:#ffeded!important;border-color:#f5cccc!important;color:#842f35!important}
body.alx-crm-page .lead-grid-table tr.status-row-wrong_number>td{background:#f5edff!important;border-color:#dfccf8!important;color:#63368d!important}
body.alx-crm-page .lead-grid-table tr.status-row-do_not_call>td{background:#ffe7e7!important;border-color:#efbcbc!important;color:#7d2329!important}
/* Lead detail: one compact operation surface, avoid nested scrolling */
body.alx-crm-page #viewLeadDetail,body.alx-crm-page .lead-detail-page{overflow:visible!important;max-height:none!important;height:auto!important}
body.alx-crm-page .lead-detail-page{padding:0!important}.alx-crm-page .detail-page-head{min-height:46px!important;padding:7px 12px!important}.alx-crm-page .detail-page-head button{height:32px!important;min-height:32px!important;font-size:10.5px!important;padding:0 11px!important}
body.alx-crm-page #leadDetail{overflow:visible!important;max-height:none!important;height:auto!important;padding:10px!important}.alx-crm-page .detail-wrap{gap:10px!important}
body.alx-crm-page #leadDetail .identity{min-height:92px!important;padding:12px 14px!important;border-radius:11px!important}.alx-crm-page #leadDetail .lead-avatar{width:54px!important;height:54px!important;min-width:54px!important;font-size:20px!important}.alx-crm-page #leadDetail .identity h2{font-size:18px!important;margin-bottom:6px!important}.alx-crm-page #leadDetail .contact-lines{gap:10px!important;font-size:10px!important}.alx-crm-page #leadDetail .detail-top-actions button{height:34px!important;font-size:10px!important}
body.alx-crm-page #leadDetail .lead-workbar{min-height:62px!important;padding:7px!important;gap:7px!important;border-radius:11px!important}.alx-crm-page #leadDetail .kpi-card{min-height:48px!important;padding:7px 10px!important;border-radius:8px!important}.alx-crm-page #leadDetail .kpi-card span{font-size:8.5px!important}.alx-crm-page #leadDetail .kpi-card strong{font-size:12px!important;margin-top:2px!important}.alx-crm-page #leadDetail .workbar-call,.alx-crm-page #leadDetail .workbar-appt{min-height:48px!important;height:48px!important;font-size:11px!important;border-radius:8px!important}
body.alx-crm-page #leadDetail .call-result-panel{padding:9px 11px!important;border-radius:11px!important}.alx-crm-page #leadDetail .call-result-head{margin-bottom:7px!important}.alx-crm-page #leadDetail .result-icon{width:30px!important;height:30px!important}.alx-crm-page #leadDetail .result-copy strong{font-size:12px!important}.alx-crm-page #leadDetail .result-copy small{font-size:8.5px!important}.alx-crm-page #leadDetail .call-result-grid{grid-template-columns:170px minmax(240px,1fr) auto!important;gap:7px!important;align-items:end!important}.alx-crm-page #leadDetail .call-result-grid:has(.call-result-date:not([hidden])){grid-template-columns:155px minmax(180px,1fr) 180px auto!important}.alx-crm-page #leadDetail .call-result-grid label{font-size:8.5px!important}.alx-crm-page #leadDetail .call-result-grid input,.alx-crm-page #leadDetail .call-result-grid select{height:34px!important;min-height:34px!important;font-size:10.5px!important}.alx-crm-page #leadDetail .call-result-save{height:34px!important;min-height:34px!important;padding:0 18px!important;font-size:10.5px!important}
body.alx-crm-page #leadDetail .general-settings-card{padding:9px 11px!important;border-radius:11px!important}.alx-crm-page #leadDetail .general-settings-head{margin-bottom:7px!important}.alx-crm-page #leadDetail .general-settings-head .settings-icon{width:30px!important;height:30px!important}.alx-crm-page #leadDetail .general-settings-head strong{font-size:12px!important}.alx-crm-page #leadDetail .general-settings-head small{font-size:8.5px!important}.alx-crm-page #leadDetail .lead-control-grid{gap:7px!important}.alx-crm-page #leadDetail .lead-control-grid select,.alx-crm-page #leadDetail .lead-control-grid button{height:34px!important;min-height:34px!important;font-size:10.5px!important}.alx-crm-page #leadDetail .section-title{font-size:8.5px!important;margin-bottom:4px!important}
/* Calls / callbacks / reports / agents: dense data tables */
body.alx-crm-page .single-panel .table-wrap table th{height:32px!important;padding:0 11px!important;font-size:8.5px!important}.alx-crm-page .single-panel .table-wrap table td{height:48px!important;padding:6px 11px!important;font-size:10.5px!important}.alx-crm-page #callRows .secondary-btn{height:32px!important;min-height:32px!important;font-size:10px!important;padding:0 11px!important}
/* Settings: compact 3x2 viewport-oriented grid */
body.alx-crm-page .settings-page-head{min-height:42px!important;margin-bottom:8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.alx-crm-page .settings-page-head>p{font-size:10px!important;margin:0!important}.alx-crm-page .settings-savebar .primary{height:34px!important;min-height:34px!important;font-size:10.5px!important}
body.alx-crm-page .settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.alx-crm-page .settings-card{min-height:0!important}.alx-crm-page .settings-card-head{min-height:48px!important;height:48px!important;padding:7px 10px!important}.alx-crm-page .settings-icon{width:30px!important;height:30px!important;border-radius:8px!important;font-size:13px!important}.alx-crm-page .settings-card-head h2{font-size:12.5px!important}.alx-crm-page .settings-card-head small{font-size:8px!important;margin-top:1px!important}.alx-crm-page .settings-form{padding:8px 10px 10px!important;gap:7px!important}.alx-crm-page .settings-card label{font-size:9px!important;gap:3px!important}.alx-crm-page .settings-card input,.alx-crm-page .settings-card select{height:32px!important;min-height:32px!important;border-radius:7px!important;font-size:10px!important;padding:0 9px!important}.alx-crm-page .switch-row{min-height:36px!important;gap:7px!important}.alx-crm-page .switch-row strong{font-size:9px!important}.alx-crm-page .switch-row small{font-size:7.8px!important}.alx-crm-page .settings-note{padding:7px 9px!important;font-size:8.5px!important}.alx-crm-page .system-lines>div{min-height:31px!important;font-size:9px!important}.alx-crm-page .status-chip,.alx-crm-page .version-chip{font-size:8.5px!important;padding:3px 8px!important}
/* Dark theme: every surface/input/table/status keeps hierarchy and color information */
body.alx-crm-page.alx-dark,html[data-alx-theme="dark"] body.alx-crm-page{background:var(--alx-bg)!important;color:var(--alx-text)!important}
body.alx-crm-page.alx-dark .main,html[data-alx-theme="dark"] body.alx-crm-page .main{background:radial-gradient(circle at 78% -5%,rgba(38,135,255,.08),transparent 30%),var(--alx-bg)!important}
body.alx-crm-page.alx-dark input,body.alx-crm-page.alx-dark select,body.alx-crm-page.alx-dark textarea,html[data-alx-theme="dark"] body.alx-crm-page input,html[data-alx-theme="dark"] body.alx-crm-page select,html[data-alx-theme="dark"] body.alx-crm-page textarea{background:#0d2236!important;color:#edf6ff!important;border-color:#28506f!important;box-shadow:none!important}
body.alx-crm-page.alx-dark input:disabled,html[data-alx-theme="dark"] body.alx-crm-page input:disabled{background:#10283f!important;color:#9eb3c7!important}
body.alx-crm-page.alx-dark .lead-grid-table th,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table th{background:#0c2033!important;color:#8fa8c0!important;border-color:#1c3a54!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-new>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-new>td{background:#0d2945!important;color:#dcecff!important;border-color:#19486f!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-no_answer>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-no_answer>td{background:#111f2d!important;color:#d5e0eb!important;border-color:#25394c!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-interested>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-interested>td{background:#0c3228!important;color:#c9f5df!important;border-color:#1a5b45!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-callback>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-callback>td{background:#382d12!important;color:#ffe5a0!important;border-color:#69531d!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-dep>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-dep>td{background:#292044!important;color:#e4d8ff!important;border-color:#4c3b78!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-not_interested>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-not_interested>td{background:#382025!important;color:#ffd5d9!important;border-color:#65343b!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-wrong_number>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-wrong_number>td{background:#2c203d!important;color:#e7d3ff!important;border-color:#50366c!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-do_not_call>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-do_not_call>td{background:#421d22!important;color:#ffd0d4!important;border-color:#743038!important}
body.alx-crm-page.alx-dark #leadDetail .identity,body.alx-crm-page.alx-dark #leadDetail .lead-workbar,body.alx-crm-page.alx-dark #leadDetail .kpi-card,body.alx-crm-page.alx-dark #leadDetail .call-result-panel,body.alx-crm-page.alx-dark #leadDetail .general-settings-card,body.alx-crm-page.alx-dark #leadDetail .section,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .identity,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .lead-workbar,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .kpi-card,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .call-result-panel,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .general-settings-card,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .section{background:#0c2135!important;color:#edf6ff!important;border-color:#244964!important}
body.alx-crm-page.alx-dark #leadDetail .timeline-item,html[data-alx-theme="dark"] body.alx-crm-page #leadDetail .timeline-item{background:#0f2840!important;color:#eaf4ff!important;border-color:#244a67!important}
/* Responsive desktop QA: no right-edge clipping */
@media(max-width:1366px){body.alx-crm-page .app-shell{grid-template-columns:205px minmax(0,1fr)!important}.alx-crm-page .sidebar{padding-left:10px!important;padding-right:10px!important}.alx-crm-page .main{padding:16px 18px 20px!important}.alx-crm-page .brand img{width:160px!important}.alx-crm-page .topbar{gap:10px!important}.alx-crm-page .page-heading{min-width:190px!important}.alx-crm-page .topbar input[type=search]{width:220px!important}.alx-crm-page .lead-filters{grid-template-columns:repeat(5,minmax(92px,1fr)) auto!important}.alx-crm-page .leads-table-head{grid-template-columns:120px minmax(0,1fr)!important}.alx-crm-page .premium-stats{gap:10px!important}.alx-crm-page .premium-stats .stat{padding-left:62px!important}.alx-crm-page .stat-icon{left:13px!important}.alx-crm-page .settings-grid{gap:9px!important}}
@media(max-width:1180px){body.alx-crm-page .app-shell{grid-template-columns:190px minmax(0,1fr)!important}.alx-crm-page .topbar{align-items:flex-start!important}.alx-crm-page .topbar-right{flex-wrap:wrap!important}.alx-crm-page .top-actions{width:100%!important}.alx-crm-page .lead-filters{grid-template-columns:repeat(3,minmax(120px,1fr))!important}.alx-crm-page .leads-table-head{grid-template-columns:1fr!important;row-gap:7px!important}.alx-crm-page .bulk-assign-bar{flex-wrap:wrap!important}.alx-crm-page .bulk-assign-bar select{margin-left:0!important}.alx-crm-page .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* v4.1 selector corrections against live JS-generated markup */
body.alx-crm-page .lead-grid-table .quick-status{height:32px!important;min-height:32px!important;padding:0 9px!important;border-radius:8px!important;font-size:10px!important}
body.alx-crm-page #callRows .mini-call{height:32px!important;min-height:32px!important;padding:0 11px!important;border:1px solid var(--alx-line)!important;border-radius:8px!important;background:var(--alx-panel)!important;color:var(--alx-text)!important;font-size:10px!important;font-weight:650!important}
body.alx-crm-page #callRows .call-outcome{font-size:9px!important;padding:4px 8px!important;border-radius:999px!important;background:#eef2f6!important;color:#53677d!important}
body.alx-crm-page.alx-dark #callRows .call-outcome,html[data-alx-theme="dark"] body.alx-crm-page #callRows .call-outcome{background:#162c40!important;color:#b8c9d9!important;border:1px solid #29465f!important}
/* keep the page itself as the primary scroll container */
body.alx-crm-page .crm-view,body.alx-crm-page .single-panel,body.alx-crm-page .lead-table-panel{max-height:none!important}
body.alx-crm-page #viewCalls .table-wrap,body.alx-crm-page #viewCallbacks .table-wrap,body.alx-crm-page #viewReports .table-wrap,body.alx-crm-page #viewAgents .table-wrap{max-height:calc(100vh - 175px)!important;overflow:auto!important;scrollbar-gutter:stable!important}
/* hover preserves semantic row tint rather than erasing it */
body.alx-crm-page .lead-grid-table tr.status-row-interested:hover>td{background:#d9f2e4!important}body.alx-crm-page .lead-grid-table tr.status-row-callback:hover>td{background:#fce9b8!important}body.alx-crm-page .lead-grid-table tr.status-row-no_answer:hover>td{background:#edf2f6!important}body.alx-crm-page .lead-grid-table tr.status-row-dep:hover>td{background:#e8defd!important}
body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-interested:hover>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-interested:hover>td{background:#10402f!important}body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-callback:hover>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-callback:hover>td{background:#473916!important}body.alx-crm-page.alx-dark .lead-grid-table tr.status-row-no_answer:hover>td,html[data-alx-theme="dark"] body.alx-crm-page .lead-grid-table tr.status-row-no_answer:hover>td{background:#162736!important}


/* v4.1.12 Kurulumlar */
.alx-installers-panel{padding:22px}.alx-installer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.alx-installer-card{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:start;padding:20px;border:1px solid var(--border,#dfe6ee);border-radius:16px;background:var(--panel,#fff)}.alx-installer-card h3{margin:0 0 7px;font-size:18px}.alx-installer-card p{margin:0 0 10px;line-height:1.55;opacity:.78}.alx-installer-card strong{font-size:13px;opacity:.8}.alx-installer-icon{width:58px;height:58px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:800;background:rgba(45,108,223,.12)}.alx-download-btn{grid-column:1/-1;text-align:center;text-decoration:none;padding:11px 16px;border-radius:10px}.alx-install-note{margin-top:18px}@media(max-width:850px){.alx-installer-grid{grid-template-columns:1fr}}

/* v4.1.13 Kurulumlar dark-theme contrast fix */
.alx-installers-panel{background:#0b1d31!important;border-color:#1d3c59!important}
.alx-installers-panel .panel-head{background:#0d2742!important;border-color:#244765!important}
.alx-installers-panel .panel-head h2{color:#f4f8ff!important}
.alx-installers-panel .panel-head small{color:#9fb8d2!important}
.alx-installer-card{background:#0d2238!important;border:1px solid #244765!important;box-shadow:0 12px 30px rgba(0,0,0,.16)!important;color:#f4f8ff!important}
.alx-installer-card h3{color:#f4f8ff!important}
.alx-installer-card p{color:#b8cbe0!important;opacity:1!important}
.alx-installer-card strong{color:#8fb9e8!important;opacity:1!important}
.alx-installer-icon{background:#173b61!important;color:#e9f3ff!important;border:1px solid #28557f!important}
.alx-download-btn{display:block!important;background:linear-gradient(180deg,#2f8cff,#1472e6)!important;color:#fff!important;border:1px solid #3b96ff!important;font-weight:800!important;box-shadow:0 8px 18px rgba(20,114,230,.22)!important}
.alx-download-btn:hover{filter:brightness(1.08)!important;transform:translateY(-1px)}
.alx-install-note{color:#b8cbe0!important}
