/* ALX CRM v4.3.39 - Leads operational view without horizontal scroll. */
#viewLeads .alx-followup-panel {
  margin: 12px 16px 15px;
  padding: 15px 17px;
  border: 1px solid rgba(92,156,232,.27);
  border-radius: 15px;
  background: linear-gradient(115deg,rgba(23,44,78,.92),rgba(12,28,53,.82));
  color: #dfeeff;
}
#viewLeads .alx-followup-header {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:11px}
#viewLeads .alx-followup-header strong {display:block;font-size:15px;letter-spacing:-.15px}
#viewLeads .alx-followup-header small {display:block;margin-top:3px;color:#aac2e4;font-size:12px}
#viewLeads .alx-followup-actions {display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#viewLeads .alx-followup-chip {
  display:inline-flex;gap:8px;align-items:center;justify-content:center;
  min-height:37px;padding:8px 12px;border:1px solid rgba(111,162,224,.35);
  border-radius:11px;background:rgba(28,49,82,.75);color:#d8e9ff;
  font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;
}
#viewLeads .alx-followup-chip b {font-variant-numeric:tabular-nums;color:#94c7ff;font-size:13px}
#viewLeads .alx-followup-chip:hover,#viewLeads .alx-followup-chip:focus-visible {border-color:#64adff;background:#203c68;outline-offset:2px}
#viewLeads .alx-followup-chip[aria-pressed="true"]{background:#2360ad;border-color:#7cb8ff;color:#fff;box-shadow:inset 0 0 0 1px rgba(200,231,255,.08)}
#viewLeads .alx-followup-chip[aria-pressed="true"] b {color:#fff}
#viewLeads .alx-followup-sort,
#viewLeads .alx-name-width-control {display:flex;gap:8px;align-items:center;font-size:12px;color:#c9dafa}
#viewLeads .alx-followup-sort {margin-left:auto}
#viewLeads .alx-followup-sort select,
#viewLeads .alx-name-width-control select {
  min-height:37px;min-width:138px;max-width:100%;border-radius:9px;
  border:1px solid rgba(125,170,229,.35);padding:6px 9px;color:#eff7ff;
  background:#152b4d;font:inherit;
}
#viewLeads .alx-followup-note {margin:10px 0 0;font-size:11px;color:#91a9cb}
#viewLeads .alx-followup-tag {
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
  padding:5px 8px;border-radius:8px;background:#192e4a;color:#b6cce8;
  font-size:11px;font-weight:750;max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
#viewLeads .alx-followup-tag.kind-overdue {color:#ffcfcb;background:rgba(211,76,74,.18)}
#viewLeads .alx-followup-tag.kind-uncalled {color:#ffe6a3;background:rgba(206,151,49,.16)}
#viewLeads .alx-followup-tag.kind-stale {color:#ffe1ab;background:rgba(194,113,44,.15)}
#viewLeads .alx-followup-tag.kind-today {color:#9ef0df;background:rgba(40,164,138,.17)}
#viewLeads .alx-followup-tag.kind-closed {color:#93a5c0;background:#1b2942}
#viewLeads .alx-followup-note-text {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  line-height:1.35;color:#dce7f8;font-size:11px;overflow-wrap:anywhere;
}
#viewLeads .alx-followup-muted {font-size:11px;color:#8fa7c5}
#viewLeads .alx-followup-date {font-variant-numeric:tabular-nums;white-space:normal;line-height:1.35;font-size:11px}

body.alx-crm-page #viewLeads {--alx-name-col-width:24%}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads {--alx-name-col-width:19%}
body.alx-crm-page[data-lead-name-width="normal"] #viewLeads {--alx-name-col-width:24%}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads {--alx-name-col-width:29%}
body.alx-crm-page #viewLeads .lead-table-wrap,
body.alx-crm-page.alx-dark #viewLeads .lead-table-wrap {
  width:100% !important;max-width:100% !important;overflow-x:hidden !important;overflow-y:auto !important;
}
body.alx-crm-page #viewLeads .lead-grid-table,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table {
  width:100% !important;min-width:0 !important;max-width:100% !important;table-layout:fixed !important;
}
body.alx-crm-page #viewLeads .lead-grid-table th,
body.alx-crm-page #viewLeads .lead-grid-table td,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table th,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table td {
  padding:6px 7px !important;min-width:0 !important;overflow:hidden !important;text-overflow:ellipsis !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .check-col {width:34px !important}
body.alx-crm-page #viewLeads .lead-grid-table .col-name {width:var(--alx-name-col-width) !important}
body.alx-crm-page #viewLeads .lead-grid-table .col-phone {width:15% !important}
body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-col {width:8.5% !important}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-priority-col {width:11% !important}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-date-col {width:11% !important}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col {width:16% !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:7% !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:12.5% !important}
body.alx-crm-page #viewLeads .lead-grid-table .col-sales {width:11% !important}
body.alx-crm-page #viewLeads .lead-grid-table .name-cell,
body.alx-crm-page #viewLeads .lead-grid-table .email-cell,
body.alx-crm-page #viewLeads .lead-grid-table .campaign-cell,
body.alx-crm-page #viewLeads .lead-grid-table .sales-cell {white-space:nowrap !important}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-date-col,
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col {white-space:normal !important;vertical-align:middle !important}
body.alx-crm-page #viewLeads .lead-grid-table .phone-cell {white-space:nowrap !important}
body.alx-crm-page #viewLeads .lead-grid-table .phone-action-stack {display:flex;align-items:center;gap:6px;min-width:0}
body.alx-crm-page #viewLeads .lead-grid-table .phone-link {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {
  flex:none;width:24px;height:24px;border-radius:7px;border:1px solid rgba(123,171,229,.45);
  background:rgba(20,46,80,.88);color:#dcecff;font-size:12px;font-weight:800;cursor:pointer;
  display:grid;place-items:center;padding:0;transition:transform .12s ease,background .12s ease,border-color .12s ease;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:hover,
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:focus-visible {background:#20508a;border-color:#86c1ff;transform:translateY(-1px)}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn.is-copied {background:#1f7a56;border-color:#65d2a6;color:#fff}

html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-panel {background:linear-gradient(115deg,#eaf4ff,#f4f8ff);color:#173759;border-color:#c8dff6}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-header small,
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-note {color:#587495}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-chip {background:#fff;color:#264566;border-color:#bbd3ed}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-chip[aria-pressed="true"] {background:#2360ad;color:#fff}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-chip[aria-pressed="true"] b {color:#fff}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-sort,
html:not([data-alx-theme="dark"]) #viewLeads .alx-name-width-control {color:#365471}
html:not([data-alx-theme="dark"]) #viewLeads .alx-followup-sort select,
html:not([data-alx-theme="dark"]) #viewLeads .alx-name-width-control select {background:#fff;color:#173759;border-color:#bbd3ed}
html:not([data-alx-theme="dark"]) body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {background:#edf5ff;color:#20456c;border-color:#bdd7f3}
html:not([data-alx-theme="dark"]) body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:hover,
html:not([data-alx-theme="dark"]) body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:focus-visible {background:#d7ebff;border-color:#8dbbf0}

@media(max-width:1320px){
  body.alx-crm-page #viewLeads {--alx-name-col-width:26%}
  body.alx-crm-page[data-lead-name-width="compact"] #viewLeads {--alx-name-col-width:22%}
  body.alx-crm-page[data-lead-name-width="wide"] #viewLeads {--alx-name-col-width:31%}
  body.alx-crm-page #viewLeads .lead-grid-table th,
  body.alx-crm-page #viewLeads .lead-grid-table td {padding:5px 6px !important;font-size:10.5px !important}
  body.alx-crm-page #viewLeads .lead-grid-table .col-phone {width:14% !important}
  body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col {width:14% !important}
  body.alx-crm-page #viewLeads .lead-grid-table .col-email {width:13% !important}
}
@media(max-width:980px){
  #viewLeads .alx-followup-sort,#viewLeads .alx-name-width-control {width:100%;justify-content:space-between;margin-left:0}
  #viewLeads .alx-followup-sort select,#viewLeads .alx-name-width-control select {flex:1}
}

/* v4.3.39: no horizontal scroll. Non-essential email is below the lead name;
   source and campaign remain in the authenticated lead details. */
body.alx-crm-page #viewLeads,body.alx-crm-page.alx-dark #viewLeads {--alx-name-width:24%;}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads {--alx-name-width:20%;}
body.alx-crm-page[data-lead-name-width="normal"] #viewLeads {--alx-name-width:24%;}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads {--alx-name-width:29%;}
body.alx-crm-page #viewLeads .lead-table-wrap,
body.alx-crm-page.alx-dark #viewLeads .lead-table-wrap {
  width:100% !important; max-width:100% !important; overflow-x:hidden !important;
}
body.alx-crm-page #viewLeads .lead-grid-table,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table {
  width:100% !important; min-width:0 !important; max-width:100% !important; table-layout:fixed !important;
}
body.alx-crm-page #viewLeads .lead-grid-table th,
body.alx-crm-page #viewLeads .lead-grid-table td,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table th,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table td {
  min-width:0 !important; overflow:hidden !important; padding:6px 5px !important;
}
/* 3 + 24 + 16 + 7 + 10 + 10 + 11 + 10 + 9 = 100 percent (admin view). */
body.alx-crm-page #viewLeads .lead-grid-table .check-col {width:3% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .col-name,
body.alx-crm-page #viewLeads .lead-grid-table .name-cell {width:var(--alx-name-width) !important;}
body.alx-crm-page #viewLeads .lead-grid-table .col-phone,
body.alx-crm-page #viewLeads .lead-grid-table .phone-cell {width:16% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-col,
body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-cell {width:7% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-priority-col {width:10% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-date-col {width:10% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col {width:11% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .col-status,
body.alx-crm-page #viewLeads .lead-grid-table .col-status-cell {width:10% !important;}
body.alx-crm-page #viewLeads .lead-grid-table .col-sales,
body.alx-crm-page #viewLeads .lead-grid-table .sales-cell {width:9% !important;}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .col-phone,
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .phone-cell {width:17% !important;}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .alx-followup-priority-col {width:11% !important;}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .alx-followup-note-col {width:12% !important;}
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .col-sales,
body.alx-crm-page[data-lead-name-width="compact"] #viewLeads .lead-grid-table .sales-cell {width:10% !important;}
/* wide name gains room while peripheral columns contract, never widening table */
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .col-phone,
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .phone-cell {width:15% !important;}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .alx-followup-priority-col {width:9% !important;}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .alx-followup-date-col {width:9% !important;}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .alx-followup-note-col {width:10% !important;}
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .col-status,
body.alx-crm-page[data-lead-name-width="wide"] #viewLeads .lead-grid-table .col-status-cell {width:9% !important;}
/* Lead name can wrap instead of becoming Perihan...; email stays available. */
body.alx-crm-page #viewLeads .lead-grid-table .name-cell {white-space:normal !important;}
body.alx-crm-page #viewLeads .lead-grid-table .nova26-person-content {min-width:0 !important;overflow:hidden;}
body.alx-crm-page #viewLeads .lead-grid-table .lead-name-link {
  white-space:normal !important;display:-webkit-box !important;-webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;max-width:100% !important;text-align:left !important;
  overflow:hidden !important;line-height:1.22 !important;word-break:normal !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .alx-name-subline {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;color:#92aed4;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-cell {white-space:nowrap !important;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-action-stack {display:flex;align-items:center;gap:4px;min-width:0;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-link {font-size:10px !important;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {flex:none;width:23px !important;height:24px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .quick-status {min-width:0 !important;max-width:100% !important;width:100% !important;padding-left:5px !important;padding-right:13px !important;font-size:10px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col {white-space:normal !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-tag {padding:4px 4px !important;font-size:10px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-sort {font-size:9px !important;line-height:1.1 !important;white-space:normal !important;}
@media (max-width:930px){
  /* At tablet widths use compact two-column lead cards instead of horizontal scrolling. */
  body.alx-crm-page #viewLeads .lead-grid-table,body.alx-crm-page.alx-dark #viewLeads .lead-grid-table {display:block !important;width:100% !important;min-width:0 !important;}
  body.alx-crm-page #viewLeads .lead-grid-table thead {display:none !important;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:9px;padding:10px;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row {display:grid !important;grid-template-columns:1fr 1fr;gap:5px;min-width:0;padding:10px;border:1px solid #273c61;border-radius:12px;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row td {display:block !important;width:100% !important;max-width:100% !important;height:auto !important;min-height:32px !important;border:0 !important;white-space:normal !important;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row td.name-cell {grid-column:1/-1;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row td.check-col {grid-row:1;grid-column:2;justify-self:end;width:auto !important;min-height:0 !important;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row td[data-label]::before {content:attr(data-label);display:block;font-size:9px;font-weight:700;color:#91b3dd;margin-bottom:3px;}
  body.alx-crm-page #viewLeads .lead-grid-table tbody tr.lead-status-row td.alx-followup-note-col {grid-column:1/-1;}
}
/* Override the older Nova rule with its full dark-mode specificity. */
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .nova26-person-content .lead-name-link,
html[data-alx-theme="dark"] body.alx-crm-page #viewLeads .lead-grid-table .nova26-person-content .lead-name-link,
body.alx-crm-page #viewLeads .lead-grid-table .nova26-person-content .lead-name-link {
  display:-webkit-box !important;
  white-space:normal !important;
  overflow:hidden !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  max-width:100% !important;
  line-height:1.22 !important;
}


/* ALX CRM v4.3.40 - compact Leads spacing and cleaner phone copy button. */
body.alx-crm-page #viewLeads .leads-page-head,
body.alx-crm-page #viewLeads .leads-studio-hero{margin-bottom:10px !important;}
body.alx-crm-page #viewLeads .alx-followup-panel {
  margin: 8px 10px 10px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
}
body.alx-crm-page #viewLeads .alx-followup-header {margin-bottom:6px !important;gap:8px !important;}
body.alx-crm-page #viewLeads .alx-followup-header strong {font-size:13px !important;line-height:1.2 !important;}
body.alx-crm-page #viewLeads .alx-followup-header small {font-size:10px !important;margin-top:1px !important;line-height:1.3 !important;}
body.alx-crm-page #viewLeads .alx-followup-actions {gap:6px !important;align-items:center !important;}
body.alx-crm-page #viewLeads .alx-followup-chip {
  min-height: 31px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  gap: 6px !important;
}
body.alx-crm-page #viewLeads .alx-followup-chip b {font-size:11px !important;}
body.alx-crm-page #viewLeads .alx-followup-sort,
body.alx-crm-page #viewLeads .alx-name-width-control {font-size:11px !important;gap:6px !important;}
body.alx-crm-page #viewLeads .alx-followup-sort select,
body.alx-crm-page #viewLeads .alx-name-width-control select {
  min-height: 31px !important;
  min-width: 116px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}
body.alx-crm-page #viewLeads .alx-followup-note {
  margin: 5px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  opacity: .9;
}
body.alx-crm-page #viewLeads .lead-table-panel .panel-head,
body.alx-crm-page #viewLeads .lead-table-wrap {margin-top: 0 !important;}
body.alx-crm-page #viewLeads .lead-grid-table th,
body.alx-crm-page #viewLeads .lead-grid-table td {padding-top:5px !important;padding-bottom:5px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-action-stack {gap:5px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(133,188,255,.42) !important;
  background: linear-gradient(180deg, rgba(37,80,135,.95), rgba(22,48,84,.96)) !important;
  color: #eef6ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 10px rgba(7,19,34,.22) !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:hover,
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:focus-visible {
  background: linear-gradient(180deg, rgba(53,109,181,.98), rgba(28,64,111,.98)) !important;
  border-color: #9dd0ff !important;
  transform: translateY(-1px) scale(1.03) !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn.is-copied {
  background: linear-gradient(180deg, #2e9b6e, #216f51) !important;
  border-color: #8be1bd !important;
  color: #ffffff !important;
}
@media (max-width: 1200px){
  body.alx-crm-page #viewLeads .alx-followup-panel {padding:8px 10px !important;}
  body.alx-crm-page #viewLeads .alx-followup-header small {display:none !important;}
}
@media (max-width: 980px){
  body.alx-crm-page #viewLeads .alx-followup-note {display:none !important;}
}


/* ALX CRM v4.3.41 — density tuning. Scope strictly to the Leads view. */
/* The old Nova skin imposes 105px KPIs and 63px rows with !important. */
body.alx-crm-page #viewLeads .leads-studio-kpis,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpis {
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:8px !important;
  margin:5px 0 8px !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi {
  display:grid !important;
  grid-template-columns:26px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  min-height:64px !important;
  height:64px !important;
  padding:8px 11px !important;
  border-radius:12px !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi .leads-studio-icon,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi .leads-studio-icon {
  width:26px !important;height:26px !important;margin:0 !important;
  border-radius:8px !important;font-size:14px !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi>div,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi>div {
  display:flex !important;flex-direction:column !important;
  justify-content:center !important;min-width:0 !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi div>span,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi div>span {
  font-size:9px !important;line-height:1.1 !important;white-space:normal !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi strong,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi strong {
  font-size:21px !important;line-height:1 !important;margin:3px 0 0 !important;
}
body.alx-crm-page #viewLeads .leads-studio-kpi small,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi small {display:none !important;}
body.alx-crm-page #viewLeads .leads-studio-hero,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-hero {
  margin:0 0 6px !important;
  min-height:0 !important;
  padding-top:7px !important;
  padding-bottom:7px !important;
  gap:8px !important;
}
body.alx-crm-page #viewLeads .leads-studio-hero h2,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-hero h2 {
  margin:2px 0 !important;
  font-size:19px !important;
  line-height:1.15 !important;
}
body.alx-crm-page #viewLeads .leads-studio-hero p,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-hero p {
  font-size:10px !important;line-height:1.25 !important;margin:0 !important;
}
body.alx-crm-page #viewLeads .leads-studio-hero-actions,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-hero-actions {
  padding:3px !important;
  gap:5px !important;
  box-shadow:none !important;
}
body.alx-crm-page #viewLeads .leads-studio-refresh,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-refresh {
  min-height:30px !important;height:30px !important;padding:0 10px !important;
  font-size:10px !important;
}
/* Move the list closer to the KPI strip. */
body.alx-crm-page #viewLeads .leads-studio-panel-header,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-panel-header {
  padding:8px 11px 6px !important;
  gap:8px !important;
}
body.alx-crm-page #viewLeads .leads-studio-panel-header h3,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-panel-header h3 {
  font-size:14px !important;margin:0 0 1px !important;line-height:1.15 !important;
}
body.alx-crm-page #viewLeads .leads-studio-panel-header p,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-panel-header p {
  font-size:9px !important;line-height:1.2 !important;
}
body.alx-crm-page #viewLeads .leads-studio-panel-header .leads-studio-overline {display:none !important;}
body.alx-crm-page #viewLeads .leads-studio-count,
body.alx-crm-page #viewLeads .leads-studio-reset {
  min-height:27px !important;height:27px !important;
  padding:0 9px !important;font-size:9px !important;
}
/* Follow-up chips remain independent filters; no controls/IDs removed. */
body.alx-crm-page #viewLeads .alx-followup-panel,
body.alx-crm-page.alx-dark #viewLeads .alx-followup-panel {
  padding:7px 10px !important;
  margin:4px 9px 7px !important;
  border-radius:11px !important;
}
body.alx-crm-page #viewLeads .alx-followup-header,
body.alx-crm-page.alx-dark #viewLeads .alx-followup-header {
  margin-bottom:4px !important;
}
body.alx-crm-page #viewLeads .alx-followup-header strong {
  font-size:12px !important;line-height:1.2 !important;
}
body.alx-crm-page #viewLeads .alx-followup-header small {display:none !important;}
body.alx-crm-page #viewLeads .alx-followup-actions,
body.alx-crm-page.alx-dark #viewLeads .alx-followup-actions {
  gap:5px 6px !important;
}
body.alx-crm-page #viewLeads .alx-followup-chip,
body.alx-crm-page.alx-dark #viewLeads .alx-followup-chip {
  min-height:27px !important;padding:4px 8px !important;
  font-size:10px !important;border-radius:8px !important;
}
body.alx-crm-page #viewLeads .alx-followup-chip b {font-size:10px !important;}
body.alx-crm-page #viewLeads .alx-followup-sort,
body.alx-crm-page #viewLeads .alx-name-width-control {
  gap:5px !important;font-size:10px !important;
}
body.alx-crm-page #viewLeads .alx-followup-sort select,
body.alx-crm-page #viewLeads .alx-name-width-control select {
  min-height:27px !important;height:27px !important;
  min-width:105px !important;font-size:10px !important;
  padding:3px 6px !important;
}
body.alx-crm-page #viewLeads .alx-followup-note {display:none !important;}
/* Existing status quick filters stay visible and tappable. */
body.alx-crm-page #viewLeads .nova26-list-toolbar,
body.alx-crm-page.alx-dark #viewLeads .nova26-list-toolbar {
  padding:6px 9px !important;
  gap:6px !important;
  min-height:42px !important;
}
body.alx-crm-page #viewLeads .nova26-chip,
body.alx-crm-page.alx-dark #viewLeads .nova26-chip {
  padding:5px 7px !important;min-height:27px !important;
  font-size:10px !important;border-radius:7px !important;
  gap:5px !important;
}
body.alx-crm-page #viewLeads .nova26-quick-filters,
body.alx-crm-page.alx-dark #viewLeads .nova26-quick-filters {gap:5px !important;}
body.alx-crm-page #viewLeads .leads-studio-filterbar,
body.alx-crm-page.alx-dark #viewLeads .leads-studio-filterbar {padding:5px 10px !important;}
/* Table row density: maintain 2-line names/notes without clipping. */
body.alx-crm-page #viewLeads .lead-grid-table tbody td,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table tbody td {
  height:51px !important;
  padding:5px 6px !important;
  font-size:10.5px !important;
  line-height:1.3 !important;
}
body.alx-crm-page #viewLeads .lead-grid-table thead th,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table thead th {
  height:35px !important;
  padding:6px !important;
  font-size:9px !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .nova26-person,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .nova26-person {gap:7px !important;}
body.alx-crm-page #viewLeads .lead-grid-table .nova26-person-avatar,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .nova26-person-avatar {
  width:27px !important;height:27px !important;border-radius:8px !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .lead-name-link,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .lead-name-link {
  font-size:11px !important;line-height:1.15 !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .alx-name-subline {font-size:8.5px !important;line-height:1.15 !important;}
body.alx-crm-page #viewLeads .lead-grid-table .quick-status,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .quick-status {
  height:29px !important;min-height:29px !important;font-size:10px !important;
}
/* Minimal, consistent 28px icon button; SVG is crisp on any DPI. */
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn,
body.alx-crm-page.alx-dark #viewLeads .lead-grid-table .phone-copy-btn {
  display:inline-grid !important;place-items:center !important;
  flex:0 0 28px !important;
  width:28px !important;height:28px !important;
  min-width:28px !important;min-height:28px !important;
  padding:0 !important;
  border:1px solid rgba(118,174,239,.38) !important;
  border-radius:8px !important;
  background:rgba(77,136,210,.12) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
  color:#9dc8ff !important;
  cursor:pointer !important;
  transition:background .15s ease,border-color .15s ease,color .15s ease !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn svg {
  display:block;width:16px;height:16px;
  pointer-events:none;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn .phone-copy-check {display:none;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:hover,
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn:focus-visible {
  background:rgba(56,127,220,.25) !important;
  border-color:#6aafff !important;color:#e1f0ff !important;
  transform:none !important;outline-offset:2px;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn.is-copied {
  color:#b9fbe2 !important;
  border-color:rgba(91,222,168,.6) !important;
  background:rgba(33,140,106,.22) !important;
}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn.is-copied .phone-copy-icon {display:none;}
body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn.is-copied .phone-copy-check {display:block;}
html:not([data-alx-theme="dark"]) body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {
  color:#346da7 !important;background:#e9f3ff !important;border-color:#bdd8f4 !important;
}
/* Keep 4 KPIs on laptop/desktop; small screens use the original adaptive cards. */
@media(max-width:1000px) {
  body.alx-crm-page #viewLeads .leads-studio-kpis,
  body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpis {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.alx-crm-page #viewLeads .alx-followup-actions {justify-content:flex-start !important;}
}
@media(max-width:600px){
  body.alx-crm-page #viewLeads .leads-studio-kpi,
  body.alx-crm-page.alx-dark #viewLeads .leads-studio-kpi {height:68px !important;min-height:68px !important;}
  body.alx-crm-page #viewLeads .nova26-list-toolbar,
  body.alx-crm-page.alx-dark #viewLeads .nova26-list-toolbar {flex-wrap:wrap !important;}
}
@media(prefers-reduced-motion:reduce){
  body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn {transition:none !important;}
}


/* v4.3.55 — visible, compact bulk assignment control in Leads. */
body.alx-crm-page.role-admin #viewLeads #bulkAssignBar,
body.alx-crm-page.role-manager #viewLeads #bulkAssignBar {
  display:flex!important; align-items:center!important; flex-wrap:wrap!important;
  gap:8px!important; min-height:46px!important;
  margin:4px 10px 9px!important; padding:8px 10px!important;
  border:1px solid #3a5e90!important; border-radius:12px!important;
  background:linear-gradient(110deg,#11294d,#101f3d)!important;
  color:#e5f1ff!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-all-btn {
  display:inline-flex!important; align-items:center!important; gap:7px!important;
  min-height:33px!important; padding:6px 11px!important;
  border-radius:9px!important; border:1px solid #559bfa!important;
  color:#f0f8ff!important; font-size:11px!important; font-weight:750!important;
  background:linear-gradient(120deg,#1d559b,#275fc9)!important;
  cursor:pointer!important; white-space:nowrap!important;
  box-shadow:0 2px 8px rgba(13,48,102,.16)!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-all-btn svg {
  display:block!important; width:16px!important; height:16px!important; flex:none!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-all-btn:hover,
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-all-btn:focus-visible {
  background:linear-gradient(120deg,#2972c4,#3176ef)!important; border-color:#b3dbff!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-filter-label {
  display:flex!important;align-items:center!important;gap:6px!important;
  font-size:11px!important;color:#d0e5fb!important;white-space:nowrap!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar input[type=checkbox] {
  width:16px!important;height:16px!important;accent-color:#4e9fff!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar #selectedLeadCount {
  color:#a9d4ff!important;font-size:11px!important;font-weight:750!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar #bulkAssignee {
  margin-left:auto!important;min-width:138px!important;width:170px!important;
  min-height:33px!important;border:1px solid #3e679d!important;
  background:#102844!important;color:#e8f5ff!important;border-radius:8px!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar button:not(.alx-bulk-all-btn) {
  min-height:33px!important;font-size:11px!important;
}
body.alx-crm-page #viewLeads .alx-bulk-toolbar .alx-bulk-assign-btn {
  color:white!important;background:#246cda!important;border-color:#3785ef!important;
}
body.alx-crm-page.role-sales #viewLeads #bulkAssignBar {display:none!important;}
@media (max-width:1100px) {
 body.alx-crm-page #viewLeads .alx-bulk-toolbar #bulkAssignee {margin-left:0!important;}
 body.alx-crm-page #viewLeads #bulkAssignBar {gap:7px!important;padding:8px!important;}
}

/* v4.3.65 mobile Leads fit: show the fields needed for immediate follow-up
 * without horizontal scrolling; details remain available by opening a lead. */
@media(max-width:760px){
  body.alx-crm-page #viewLeads .lead-table-wrap,
  body.alx-crm-page.alx-dark #viewLeads .lead-table-wrap{overflow-x:hidden!important}
  body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-priority-col,
  body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-date-col,
  body.alx-crm-page #viewLeads .lead-grid-table .alx-followup-note-col,
  body.alx-crm-page #viewLeads .lead-grid-table .col-sales,
  body.alx-crm-page #viewLeads .lead-grid-table .sales-cell{display:none!important}
  body.alx-crm-page #viewLeads .lead-grid-table .col-name{width:30%!important}
  body.alx-crm-page #viewLeads .lead-grid-table .col-phone{width:30%!important}
  body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-col,
  body.alx-crm-page #viewLeads .lead-grid-table .alx-call-count-cell{width:11%!important;min-width:0!important}
  body.alx-crm-page #viewLeads .lead-grid-table .col-status{width:17%!important;min-width:0!important}
  body.alx-crm-page #viewLeads .lead-grid-table .nova26-person-avatar{display:none!important}
  body.alx-crm-page #viewLeads .lead-grid-table .phone-copy-btn{width:24px!important;min-width:24px!important;flex-basis:24px!important}
  body.alx-crm-page #viewLeads .alx-call-count-sort{font-size:0!important}
  body.alx-crm-page #viewLeads .alx-call-count-sort .alx-call-count-arrow{font-size:12px!important}
}
