/* ALX CRM 4.3.14 — Leads Studio; scoped, non-destructive UI rules */
body.alx-crm-page #viewLeads.leads-studio{--ls-border:var(--alx-line);--ls-muted:var(--alx-muted);--ls-surface:var(--alx-panel);--ls-soft:var(--alx-panel2);max-height:calc(100vh - 144px)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;padding:18px 6px 35px!important;scroll-padding-top:14px;color:var(--alx-text);}
body.alx-crm-page #viewLeads.leads-studio :is(button,select,input):focus-visible,body.alx-crm-page #viewLeadDetail .leads-studio-detail :is(button,select,textarea):focus-visible{outline:2px solid #70acff!important;outline-offset:2px!important}
body.alx-crm-page #viewLeads.leads-studio .leads-studio-hero{background:radial-gradient(ellipse 78% 145% at 100% 0%,rgba(53,113,211,.13),transparent 74%),linear-gradient(115deg,var(--ls-surface),var(--ls-soft));border:1px solid var(--ls-border);border-radius:17px;padding:16px 21px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:10px;position:relative;overflow:hidden}
body.alx-crm-page #viewLeads.leads-studio .leads-studio-hero:after{content:'';position:absolute;right:20%;top:-120px;width:180px;height:180px;border:1px solid rgba(110,162,243,.12);border-radius:50%;pointer-events:none}
body.alx-crm-page #viewLeads .leads-studio-overline{display:inline-flex;align-items:center;gap:8px;letter-spacing:.15em;color:#77aefe;font-size:9px;font-weight:800}
body.alx-crm-page #viewLeads .leads-studio-overline i{display:block;width:7px;height:7px;background:#70a5ff;border-radius:2px;box-shadow:0 0 0 3px rgba(82,142,247,.12)}
body.alx-crm-page #viewLeads .leads-studio-hero h2{margin:5px 0 4px;font-size:clamp(23px,2.1vw,29px);letter-spacing:-.045em;line-height:1.2;font-weight:790;color:var(--alx-text)}
body.alx-crm-page #viewLeads .leads-studio-hero h2 span{color:#5e9ff8}
body.alx-crm-page #viewLeads .leads-studio-hero p{margin:0;font-size:11.5px;color:var(--ls-muted);line-height:1.6;max-width:610px}
body.alx-crm-page #viewLeads .leads-studio-hero-foot{display:flex;gap:7px;align-items:center;color:var(--ls-muted);font-size:9.5px;margin-top:8px}
body.alx-crm-page #viewLeads .leads-studio-shield{background:rgba(38,187,144,.13);color:#43cda6;border-radius:5px;padding:2px 5px;font-weight:800}
body.alx-crm-page #viewLeads .leads-studio-hero-actions{display:flex;position:relative;z-index:1;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
body.alx-crm-page #viewLeads .leads-studio-updated{font-size:9px;color:var(--ls-muted)}
body.alx-crm-page #viewLeads .leads-studio-refresh{border:1px solid var(--ls-border);background:var(--ls-soft);border-radius:9px;color:var(--alx-text);height:36px;padding:0 14px;cursor:pointer;font-size:11px;font-weight:730}
body.alx-crm-page #viewLeads .leads-studio-refresh:hover{border-color:#5a90cd}
body.alx-crm-page #viewLeads .leads-studio-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 10px}
body.alx-crm-page #viewLeads .leads-studio-kpi{display:flex;gap:12px;align-items:flex-start;min-width:0;min-height:86px;padding:11px 13px;border:1px solid var(--ls-border);background:var(--ls-surface);border-radius:14px;box-shadow:0 5px 20px rgba(0,17,38,.04)}
body.alx-crm-page #viewLeads .leads-studio-kpi>div{display:flex;flex-direction:column;min-width:0}
body.alx-crm-page #viewLeads .leads-studio-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;font-size:17px;color:var(--ls-accent,#75a9fb);background:color-mix(in srgb,var(--ls-accent,#75a9fb) 12%,transparent);border:1px solid color-mix(in srgb,var(--ls-accent,#75a9fb) 20%,transparent);border-radius:10px}
body.alx-crm-page #viewLeads .leads-studio-kpi.kpi-filtered{--ls-accent:#8ca9fd}body.alx-crm-page #viewLeads .leads-studio-kpi.kpi-potential{--ls-accent:#44cba1}body.alx-crm-page #viewLeads .leads-studio-kpi.kpi-follow{--ls-accent:#e2b462}
body.alx-crm-page #viewLeads .leads-studio-kpi div>span{font-size:9px;color:var(--ls-muted);font-weight:790;letter-spacing:.055em;white-space:normal}
body.alx-crm-page #viewLeads .leads-studio-kpi strong{font-size:25px;letter-spacing:-.045em;line-height:1.1;margin:4px 0 2px;color:var(--alx-text);font-variant-numeric:tabular-nums}
body.alx-crm-page #viewLeads .leads-studio-kpi small{font-size:9px;color:var(--ls-muted);line-height:1.4}
body.alx-crm-page #viewLeads .leads-studio-panel{margin:0!important;display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;min-height:350px!important;overflow:visible!important;border-radius:15px!important;background:var(--ls-surface)!important;box-shadow:none!important}
body.alx-crm-page #viewLeads .leads-studio-panel-header{padding:12px 18px 10px;display:flex;align-items:center;justify-content:space-between;gap:16px}
body.alx-crm-page #viewLeads .leads-studio-panel-header h3{font-size:17px;letter-spacing:-.025em;margin:4px 0 2px;font-weight:760;color:var(--alx-text)}
body.alx-crm-page #viewLeads .leads-studio-panel-header p{font-size:10px;margin:0;color:var(--ls-muted)}
body.alx-crm-page #viewLeads .leads-studio-tools{display:flex;align-items:center;gap:12px}
body.alx-crm-page #viewLeads .leads-studio-count{font-size:10px;border:1px solid var(--ls-border);border-radius:100px;padding:7px 11px;white-space:nowrap;color:#86b3f2;background:var(--ls-soft)}
body.alx-crm-page #viewLeads .leads-studio-reset{cursor:pointer;border:1px solid var(--ls-border);background:transparent;color:var(--ls-muted);border-radius:9px;height:33px;padding:0 11px;font-size:10px;font-weight:680;white-space:nowrap}
body.alx-crm-page #viewLeads .leads-studio-reset:hover{color:var(--alx-text);border-color:#5982b8}
body.alx-crm-page #viewLeads .leads-studio-filterbar{padding:0 18px 12px;border-bottom:1px solid var(--ls-border);min-width:0}
body.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters,body.role-sales.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr)) auto!important;align-items:stretch!important;gap:8px!important;min-width:0!important;width:100%!important}
body.role-sales.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.alx-crm-page #viewLeads .leads-studio-filterbar select,body.role-sales.alx-crm-page #viewLeads .leads-studio-filterbar select{width:100%!important;min-width:0!important;height:37px!important;min-height:37px!important;padding:0 27px 0 11px!important;font-size:10.5px!important;font-weight:660!important;border:1px solid var(--ls-border)!important;border-radius:9px!important;color:var(--alx-text)!important;background-color:var(--ls-soft)!important}
body.alx-crm-page #viewLeads .leads-studio-filterbar #exportCsvBtn{height:37px!important;white-space:nowrap;border-radius:9px!important;background:var(--ls-soft)!important;color:var(--alx-text)!important;border:1px solid var(--ls-border)!important;box-shadow:none!important}
body.alx-crm-page #viewLeads .bulk-assign-bar{background:var(--ls-soft)!important;border-bottom:1px solid var(--ls-border)!important;flex-wrap:wrap!important;gap:9px!important;padding:8px 15px!important}
body.alx-crm-page #viewLeads .bulk-assign-bar select{margin-left:auto!important}
body.alx-crm-page #viewLeads .lead-table-wrap{background:var(--ls-surface)!important;max-height:none!important;flex:none!important;min-height:0!important;overflow:visible!important;border-top:0!important}
body.alx-crm-page #viewLeads .lead-grid-table{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
body.alx-crm-page #viewLeads .lead-grid-table thead th{position:sticky;top:0;z-index:2;height:41px!important;padding:8px 9px!important;background:var(--ls-soft)!important;color:var(--ls-muted)!important;border-top:1px solid var(--ls-border)!important;border-bottom:1px solid var(--ls-border)!important;font-size:9px!important;letter-spacing:.05em;font-weight:760}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row{box-shadow:inset 3px 0 0 var(--row-accent)!important}
/* Status tint remains semantic but soft, preserving full-row coding without bright blocks. */
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:color-mix(in srgb,var(--row-bg) 52%,var(--ls-surface))!important;color:var(--row-text)!important;border-bottom-color:var(--ls-border)!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:color-mix(in srgb,var(--row-bg-hover) 63%,var(--ls-surface))!important}
body.alx-crm-page #viewLeads .lead-grid-table tbody td{height:49px!important;padding:7px 9px!important;font-size:10.5px!important;vertical-align:middle!important}
body.alx-crm-page #viewLeads .lead-grid-table .lead-name-link{font-size:11px!important;font-weight:760!important;text-align:left!important;color:var(--row-text)!important}
body.alx-crm-page #viewLeads .lead-grid-table .phone-link{font-size:10.5px!important;font-weight:690!important;color:#80b8ff!important}
body.alx-crm-page #viewLeads .lead-grid-table .quick-status{border-radius:8px!important;height:31px!important;max-width:100%!important;min-width:100px!important;font-size:10px!important;font-weight:740!important}
body.alx-crm-page #viewLeads .lead-grid-table .temp-pill{border-radius:7px!important;font-size:9px!important}
body.alx-crm-page #viewLeads .lead-grid-table tbody td.email-cell,body.alx-crm-page #viewLeads .lead-grid-table tbody td.campaign-cell{color:var(--ls-muted)!important}
body.alx-crm-page #viewLeads .leads-studio-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:13px 18px;border-top:1px solid var(--ls-border);font-size:9px;color:var(--ls-muted)}
body.alx-crm-page #viewLeads .leads-studio-footer i{display:inline-block;width:6px;height:6px;vertical-align:middle;margin-right:6px;border-radius:100px;background:#32cba1}
/* Lead detail inherits new surfaces, does not change field events or API interactions */
body.alx-crm-page #viewLeadDetail .leads-studio-detail{border-radius:16px!important;border:1px solid var(--alx-line)!important;box-shadow:none!important;overflow:visible!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail-eyebrow{font-size:9px;font-weight:820;letter-spacing:.14em;color:#82b4f7;background:var(--alx-panel);padding:17px 18px 3px}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .detail-page-head{padding:10px 18px 16px!important;border-bottom:1px solid var(--alx-line)!important;background:var(--alx-panel)!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .detail-page-head button{border-radius:9px!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-identity{border:1px solid var(--alx-line)!important;border-radius:14px!important;background:radial-gradient(ellipse at 100% 0%,rgba(62,120,216,.09),transparent 62%),var(--alx-panel)!important;box-shadow:none!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell>:is(.alx-ref-kpis,.alx-ref-general,.alx-ref-note,.alx-ref-result){border-radius:13px!important;border-color:var(--alx-line)!important;box-shadow:none!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-kpis .kpi-card{border-radius:10px!important;box-shadow:none!important}
body.alx-crm-page #viewLeadDetail .leads-studio-detail :is(.workbar-call,.call-result-save){border-radius:9px!important}
@media(max-width:1400px){body.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(5,minmax(0,1fr)) auto!important}body.role-sales.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:1120px){body.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.role-sales.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.alx-crm-page #viewLeads .leads-studio-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.alx-crm-page #viewLeads .leads-studio-hero{align-items:flex-start}body.alx-crm-page #viewLeads .leads-studio-hero-actions{justify-content:flex-end}}
@media(max-width:800px){body.alx-crm-page #viewLeads.leads-studio{max-height:calc(100vh - 165px)!important}body.alx-crm-page #viewLeads .leads-studio-hero{flex-direction:column;align-items:stretch;padding:18px}body.alx-crm-page #viewLeads .leads-studio-hero-actions{flex-direction:row;align-items:center;justify-content:space-between}body.alx-crm-page #viewLeads .leads-studio-panel-header{flex-direction:column;align-items:flex-start}body.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.alx-crm-page #viewLeads .leads-studio-tools{width:100%;justify-content:space-between}}
@media(max-width:500px){body.alx-crm-page #viewLeads .leads-studio-kpis{gap:8px}body.alx-crm-page #viewLeads .leads-studio-kpi{padding:12px 10px;min-height:95px;gap:8px}body.alx-crm-page #viewLeads .leads-studio-icon{width:27px;height:27px;font-size:14px}body.alx-crm-page #viewLeads .leads-studio-kpi strong{font-size:23px}body.alx-crm-page #viewLeads .leads-studio-filterbar .lead-filters{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){body.alx-crm-page #viewLeads .leads-studio-refresh{transition:none}}
/* Give editable status the space it needs while retaining campaign and other columns. */
@media(min-width:1121px){
 body.alx-crm-page #viewLeads .lead-grid-table .col-name{width:15%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-phone{width:11%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-email{width:15%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-source{width:6%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-campaign{width:8%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-status{width:13%!important;min-width:120px!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-sales{width:10%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-callback{width:9%!important}
}
body.alx-crm-page #viewLeads .lead-grid-table .quick-status{max-width:calc(100% - 2px)!important;min-width:0!important;width:100%!important;padding:0 20px 0 7px!important}


/* ALX CRM v4.3.15 — final Leads Studio readability & detail cleanup */
/* 1. Readable list columns without changing any underlying data or row actions. */
body.alx-crm-page #viewLeads .leads-studio-reset{
  font-size:10px!important;font-weight:700!important;line-height:1.2!important;
  height:35px!important;padding:0 12px!important;letter-spacing:0!important;
}
body.alx-crm-page #viewLeads .lead-grid-table thead th{
  font-size:9.3px!important;padding:9px 7px!important;letter-spacing:.025em!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody td{
  font-size:11.5px!important;line-height:1.42!important;height:54px!important;padding:7px 7px!important;
}
body.alx-crm-page #viewLeads .lead-grid-table .lead-name-link{
  font-size:12px!important;line-height:1.35!important;font-weight:760!important;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-link{
  font-size:11.3px!important;line-height:1.4!important;
}
body.alx-crm-page #viewLeads .lead-grid-table :is(.email-cell,.sales-cell,.campaign-cell){
  font-size:11px!important;
}
body.alx-crm-page #viewLeads .lead-grid-table .quick-status{
  min-height:34px!important;height:34px!important;font-size:10.6px!important;
  font-weight:690!important;
}
body.alx-crm-page #viewLeads .lead-grid-table .temp-pill{font-size:10px!important;}
/* 2. A status should be visible in its dropdown and slim rail, not tint every field red. */
body.alx-crm-page #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(--ls-surface)!important;color:var(--alx-text)!important;
  border-bottom-color:var(--ls-border)!important;
}
body.alx-crm-page #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(--ls-soft)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row > td:first-child{
  box-shadow:inset 3px 0 0 var(--row-accent)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .lead-name-link{
  color:var(--alx-text)!important;
}
body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row .phone-link{
  color:#8ab9ff!important;
}
/* Table balances: keep name and telephone useful; email is truncated only with its full-value tooltip. */
@media(min-width:1121px){
 body.alx-crm-page #viewLeads .lead-grid-table .col-name{width:16%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-phone{width:12%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-email{width:16%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-source{width:6%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-campaign{width:7%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-status{width:13%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-sales{width:10%!important}
 body.alx-crm-page #viewLeads .lead-grid-table .col-callback{width:8%!important}
}
/* 3. Consistent detail typography: scoped to the new reference shell only. */
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-identity h2{
  font-size:20px!important;letter-spacing:-.025em!important;line-height:1.3!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-identity .contact-lines,
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-identity .contact-lines>*{
  font-size:11.3px!important;line-height:1.65!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell :is(.alx-ref-general-head strong,.result-copy strong){
  font-size:14px!important;line-height:1.3!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell :is(.alx-ref-general-head small,.result-copy small){
  font-size:10.6px!important;line-height:1.5!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-field .section-title{
  font-size:10.8px!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-field select,
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-field button{
  font-size:11.2px!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-note .section-title{
  font-size:13.5px!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-note textarea,
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .alx-ref-result :is(select,input){
  font-size:11.5px!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .timeline-item{
  font-size:11.5px!important;line-height:1.5!important;
}
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell .timeline-item small{
  font-size:10.3px!important;
}
/* An obsolete wrapper should never display when fields have been moved. JS removes it. */
body.alx-crm-page #viewLeadDetail .leads-studio-detail .alx-ref-shell > .general-settings-card{
  display:none!important;
}
