/* TeamAct CRM — Leads Section NO-BLUE STRUCTURAL GUARD V11.2
   Loaded after all Leads/Admin styles.
   Rule: structural UI is white/neutral. Full blue is reserved for real CTA only.
   Semantic lead-status colours are preserved. */

html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11,
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 :is(
  .admin-leads-v11-head,.admin-lead-filter-panel,.admin-lead-bulkbar,
  .admin-lead-sheet-v11,.admin-import-history-v11
){background:#fff!important;background-image:none!important;color:#1f2937!important;box-shadow:none!important}

/* Top action area: keep utility/management actions white, never full-blue blocks. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11-head button{
  background:#fff!important;background-image:none!important;color:#405270!important;
  border:1px solid #ccd6e3!important;box-shadow:none!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11-head button:hover:not(:disabled){
  background:#f8f7fc!important;color:#4f38a2!important;border-color:#bdb2df!important;
}

/* View tabs are navigation, not CTA buttons. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-tabs > button[data-lead-tab]{
  background:#fff!important;background-image:none!important;color:#475569!important;
  border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-tabs > button[data-lead-tab]:hover{
  background:#fff!important;color:#4f38a2!important;border-bottom-color:#d8d1ef!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-tabs > button[data-lead-tab].active{
  background:#fff!important;color:#4f38a2!important;border-bottom-color:#4f38a2!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-tabs > button[data-lead-tab] span{
  background:transparent!important;color:#7b8493!important;border:0!important;
}

/* Filters/utility controls stay white. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 :is(input,select,textarea),
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-columns > summary{
  background:#fff!important;background-image:none!important;color:#333!important;border-color:#d9dee7!important;box-shadow:none!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-columns button,
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-bulkbar button:not(.danger-outline){
  background:#fff!important;background-image:none!important;color:#405270!important;border:1px solid #ccd6e3!important;box-shadow:none!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-bulkbar button.danger-outline{
  background:#fff!important;background-image:none!important;color:#dc2626!important;border:1px solid #ef4444!important;box-shadow:none!important;
}

/* Spreadsheet header = flat grey. Sort buttons = text only. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 th{
  background:#eef1f4!important;background-image:none!important;color:#475569!important;border-color:#dfe4ea!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 td{
  background:#fff!important;background-image:none!important;color:#1f2937!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-sort{
  all:unset!important;display:inline-flex!important;align-items:center!important;gap:4px!important;cursor:pointer!important;
  color:#475569!important;font:inherit!important;font-weight:600!important;white-space:nowrap!important;background:transparent!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-sort.active,
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-sort:hover{
  color:#4f38a2!important;background:transparent!important;
}

/* Lead ID / Lead Name are link-like text, never badges/cards. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-id-link,
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-name-link{
  all:unset!important;display:inline!important;cursor:pointer!important;background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-id-link{
  color:#64748b!important;font-size:12px!important;font-weight:500!important;white-space:nowrap!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button.admin-lead-name-link{
  color:#4f38a2!important;font-size:14px!important;font-weight:600!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 button:is(.admin-lead-id-link,.admin-lead-name-link):hover{
  text-decoration:underline!important;background:transparent!important;
}

/* Canonical semantic Lead Status chip. This beats every generic Admin button rule. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 :is(
  .crm-unified-lead-status-chip,
  button.admin-lead-status-button
){
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  width:auto!important;min-width:0!important;min-height:22px!important;height:auto!important;
  padding:2px 8px 2px 9px!important;
  background:var(--ls-soft,#e9e9e8)!important;background-image:none!important;
  color:var(--ls-text,#333)!important;
  border:0!important;border-left:3px solid var(--ls-color,#8b8b84)!important;border-radius:3px!important;
  box-shadow:none!important;font-size:12px!important;font-weight:500!important;line-height:18px!important;white-space:nowrap!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 button.admin-lead-status-button:hover:not(:disabled),
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 button.admin-lead-status-button:focus-visible{
  background:var(--ls-soft,#e9e9e8)!important;color:var(--ls-text,#333)!important;
  outline:1px solid color-mix(in srgb,var(--ls-color,#8b8b84) 50%,#fff)!important;outline-offset:1px!important;
}

/* Row action menu is a neutral utility control. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-row-menu > summary,
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-row-menu button{
  background:#fff!important;background-image:none!important;color:#334155!important;box-shadow:none!important;
}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-row-menu button.danger-text{color:#dc2626!important}

/* Pagination is utility UI, not a blue card. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 > footer button{
  background:#fff!important;background-image:none!important;color:#405270!important;border:1px solid #ccd6e3!important;box-shadow:none!important;
}

/* Slightly wider Lead ID/Name columns so locked custom IDs do not wrap into badge-like blocks. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 [data-col="lead_id"]{min-width:112px!important}
html body #root .shell.crm-role-admin .main #view.view-content .admin-lead-sheet-v11 [data-col="name"]{min-width:140px!important}

/* Never turn table text links into filled cards on hover/focus. */
html body #root .shell.crm-role-admin .main #view.view-content .admin-leads-v11 button:is(.admin-lead-id-link,.admin-lead-name-link,.admin-lead-sort){
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
