/* ALX Leads Focus layout - additive, scoped to CRM Leads only. */
/* Original CRM desktop CSS locks body scrolling. Re-enable it only in Leads
   workspace so the full customer table and page navigation remain reachable. */
body.alx-crm-page.leads-view-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
}
body.alx-crm-page #viewLeads.alx-leads-focused {
  max-height:none!important;height:auto!important;min-height:0!important;
  overflow:visible!important;overflow-x:clip!important;
  padding:6px 0 30px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .alx-leads-workbar {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:5px 1px 12px;flex-wrap:wrap;
}
#viewLeads .alx-leads-workbar-copy {display:grid;gap:3px;min-width:180px}
#viewLeads .alx-leads-workbar-copy strong {font-size:16px;font-weight:800;color:var(--alx-text,#f2f6ff);letter-spacing:-.025em}
#viewLeads .alx-leads-workbar-copy span {font-size:10.5px;color:var(--alx-muted,#9cb0da)}
#viewLeads .alx-leads-workbar-actions {display:flex;flex-wrap:wrap;gap:8px}
#viewLeads .alx-leads-workbar-actions button,
#viewLeads .alx-leads-filter-toggle {
 min-height:35px;padding:7px 12px;border:1px solid #365483;border-radius:9px;
 color:#cbd9ff;background:#122449;font-family:inherit;font-size:11px;
 font-weight:730;cursor:pointer;white-space:nowrap;transition:background .18s,border-color .18s;
}
#viewLeads .alx-leads-workbar-actions button:hover,
#viewLeads .alx-leads-filter-toggle:hover {background:#1b3770;border-color:#739df2}
#viewLeads .alx-leads-analysis-toggle[aria-expanded="true"],
#viewLeads .alx-leads-filter-toggle[aria-expanded="true"] {
 background:linear-gradient(110deg,#235ec7,#5b4fc9);color:#fff;border-color:#7478e7;
}
#viewLeads .alx-leads-analytics-drawer[hidden],
#viewLeads .leads-studio-filterbar[hidden] {display:none!important}
#viewLeads .alx-leads-analytics-drawer {margin:0 0 12px;display:grid;gap:12px}
body.alx-crm-page #viewLeads .alx-leads-analytics-drawer .leads-studio-hero {margin:0!important}
body.alx-crm-page #viewLeads .alx-leads-analytics-drawer .nova26-insights {margin:0!important}
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpis,
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpis {
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:9px!important;margin:0 0 12px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi {
 min-height:69px!important;padding:10px 12px!important;gap:10px!important;
 border-radius:12px!important;transform:none!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi .leads-studio-icon {
 width:30px!important;height:30px!important;min-width:30px!important;
 margin:0!important;font-size:15px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi>div {justify-content:center;gap:1px!important}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi strong {
 font-size:24px!important;line-height:1!important;margin:3px 0!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi small {display:none!important}
body.alx-crm-page #viewLeads.alx-leads-focused:not(.alx-analytics-open) .leads-studio-kpi.nova26-extra {
 display:none!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused.alx-analytics-open .leads-studio-kpis {
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .nova26-list-panel,
body.alx-crm-page.alx-dark #viewLeads.alx-leads-focused .nova26-list-panel {
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;overflow:visible!important;
 display:block!important;min-height:0!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-panel-header {
 padding:10px 2px!important;border:0!important;background:transparent!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-panel-header h3 {font-size:14px!important;margin:0!important}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-panel-header .leads-studio-overline {display:none!important}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-panel-header p {font-size:10px!important;margin-top:4px}
body.alx-crm-page #viewLeads.alx-leads-focused .nova26-list-toolbar {
 border:1px solid #2e426d!important;border-radius:11px 11px 0 0;
 padding:8px 10px!important;min-height:48px!important;
 background:#101e3e!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .nova26-list-toolbar>div:first-child {display:none!important}
body.alx-crm-page #viewLeads.alx-leads-focused .nova26-quick-filters {gap:6px!important}
body.alx-crm-page #viewLeads.alx-leads-focused .nova26-chip {
 min-height:32px!important;padding:6px 9px!important;font-size:10.5px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-filterbar {
 padding:10px!important;border:1px solid #2e426d!important;border-top:0!important;
 background:#0d1b37!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .bulk-assign-bar:not(.alx-has-selection) {display:none!important}
body.alx-crm-page #viewLeads.alx-leads-focused .bulk-assign-bar.alx-has-selection {display:flex!important}
body.alx-crm-page #viewLeads.alx-leads-focused .lead-table-wrap,
body.alx-crm-page.alx-dark #viewLeads.alx-leads-focused .lead-table-wrap {
 max-height:none!important;min-height:0!important;height:auto!important;
 overflow-x:auto!important;overflow-y:visible!important;
 scrollbar-width:thin;scrollbar-color:#365b92 #101e3c;
 border:1px solid #304570!important;border-top:0!important;
 border-radius:0!important;flex:none!important;
 background:#0b1830!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .lead-grid-table {
 width:100%!important;min-width:1030px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .lead-grid-table tbody td {
 height:55px!important;padding:7px 8px!important;
}
body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-footer {
 border:0!important;padding:10px 2px!important;background:transparent!important;
}
#viewLeads .alx-leads-pagination {
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 padding:11px 3px;flex-wrap:wrap;
}
#viewLeads .alx-leads-pagination[hidden] {display:none!important}
#viewLeads .alx-leads-pagination-info {font-size:11px;color:var(--alx-muted,#99afd7)}
#viewLeads .alx-leads-page-controls {display:flex;align-items:center;gap:8px}
#viewLeads .alx-leads-page-controls span {font-size:11px;color:var(--alx-text,#ebf2ff);min-width:65px;text-align:center}
#viewLeads .alx-leads-page-controls button {
 border:1px solid #345181;background:#15284c;color:#d8e5ff;border-radius:8px;
 min-width:34px;min-height:32px;cursor:pointer;font-size:14px;
}
#viewLeads .alx-leads-page-controls button:disabled {opacity:.4;cursor:default}
#viewLeads .lead-grid-table tbody tr.alx-page-hidden {display:none!important}
#viewLeads .alx-leads-workbar button:focus-visible,
#viewLeads .alx-leads-page-controls button:focus-visible,
#viewLeads .alx-leads-filter-toggle:focus-visible {
 outline:2px solid #78c7ff!important;outline-offset:2px;
}
@media(max-width:1450px){
 body.alx-crm-page #viewLeads.alx-leads-focused.alx-analytics-open .leads-studio-kpis {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
@media(max-width:1000px) {
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpis {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi{min-height:62px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .nova26-list-toolbar {align-items:flex-start}
}
@media(max-width:600px) {
 body.alx-crm-page #viewLeads.alx-leads-focused {padding-top:4px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .alx-leads-workbar {align-items:flex-start}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpis {gap:6px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi {padding:8px!important;min-height:60px!important;gap:7px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi .leads-studio-icon {display:none!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi strong {font-size:21px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-kpi div>span {font-size:9px!important;white-space:normal!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-panel-header {flex-direction:row;align-items:center}
 body.alx-crm-page #viewLeads.alx-leads-focused .nova26-list-toolbar {padding:9px!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .nova26-quick-filters {overflow-x:auto;flex-wrap:nowrap;max-width:100%}
 body.alx-crm-page #viewLeads.alx-leads-focused .nova26-chip {flex:none}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-filterbar .lead-filters {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.alx-crm-page #viewLeads.alx-leads-focused .leads-studio-footer {display:none!important}
}
