/* Leads (CRM) — cabeçalho e botões compartilhados (lista + cadastro) */



.leads-hub-page {

  margin-top: -0.5rem;

}



.leads-page-head {

  margin-bottom: 0;

}



.leads-page-head-text {

  min-width: 0;

}



.leads-page-title {

  font-size: 1rem;

  font-weight: 600;

  line-height: 1.2;

  color: #343a40;

  letter-spacing: -0.01em;

  margin: 0;

}



.leads-page-crumb .breadcrumb {

  font-size: 0.72rem;

  margin-top: 0.08rem;

  margin-bottom: 0;

  padding: 0;

}



.leads-page-divider {

  margin: 0.3rem 0 0.55rem;

  opacity: 0.35;

}



.leads-page-actions {

  flex-shrink: 0;

}

/* Filtros (Painel Comercial / Fechamento Mensal): acionado + hover mantém texto legível */
.leads-hub-page .filtros-toggle-btn .badge {
  font-size: 0.65rem;
  vertical-align: middle;
}

.leads-hub-page .filtros-toggle-btn[aria-expanded="true"],
.leads-hub-page .filtros-toggle-btn.is-filtered {
  --bs-btn-hover-color: var(--ui-accent, #7E5AAF);
  --bs-btn-hover-bg: rgba(var(--ui-accent-rgb), 0.12);
  --bs-btn-hover-border-color: var(--ui-accent, #9B7BC8);
  --bs-btn-active-color: var(--ui-accent, #7E5AAF);
  --bs-btn-active-bg: rgba(var(--ui-accent-rgb), 0.14);
  --bs-btn-active-border-color: var(--ui-accent, #9B7BC8);
  background-color: rgba(var(--ui-accent-rgb), 0.08);
  color: var(--ui-accent, #7E5AAF);
  border-color: var(--ui-accent, #9B7BC8);
}

.leads-hub-page .filtros-toggle-btn[aria-expanded="true"]:hover,
.leads-hub-page .filtros-toggle-btn[aria-expanded="true"]:focus,
.leads-hub-page .filtros-toggle-btn[aria-expanded="true"]:focus-visible,
.leads-hub-page .filtros-toggle-btn[aria-expanded="true"]:active,
.leads-hub-page .filtros-toggle-btn.is-filtered:hover,
.leads-hub-page .filtros-toggle-btn.is-filtered:focus,
.leads-hub-page .filtros-toggle-btn.is-filtered:focus-visible,
.leads-hub-page .filtros-toggle-btn.is-filtered:active {
  background-color: rgba(var(--ui-accent-rgb), 0.12);
  color: var(--ui-accent, #7E5AAF);
  border-color: var(--ui-accent, #9B7BC8);
}



/* Base global — tamanho uniforme dos botões-ícone (sempre quadrado) */
.btn.leads-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 1.45rem;
  height: 1.45rem;
  padding: 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0.25rem;
}

.btn.leads-btn-icon {
  width: 1.4rem !important;
  min-width: 1.4rem !important;
  max-width: 1.4rem !important;
  height: 1.4rem !important;
  min-height: 1.4rem !important;
  max-height: 1.4rem !important;
  padding: 0 !important;
  flex: 0 0 1.4rem;
  box-sizing: border-box;
  line-height: 1 !important;
  font-size: 0 !important;
}

.btn.leads-btn-icon .bi {
  font-size: 0.7rem !important;
  line-height: 1 !important;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 !important;
  display: block;
  speak: never;
}

/* Lixeira é visualmente mais “cheia” que o lápis — equilibra o peso óptico */
.btn.leads-btn-icon .bi-trash,
.btn.leads-btn-icon .bi-trash3,
.btn.leads-btn-icon .bi-x-circle {
  font-size: 0.64rem !important;
}

.leads-actions-cell {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.2rem;
  white-space: nowrap;
}

table.datatable-list td:has(.leads-actions-cell),
table.datatable-list th.pf-col-acoes,
table.datatable-list th.sl-col-acoes,
table.datatable-list th.agenda-col-acoes,
table.mini-table td:has(.leads-actions-cell),
table.dataTable td:has(.leads-actions-cell) {
  text-align: left !important;
  vertical-align: middle !important;
}

.leads-hub-page .leads-btn,
#modalLeadAe .leads-btn,
#alertas-config-modal .leads-btn,
#aha-config-modal .leads-btn,
.student-hub-modal .leads-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 1.45rem;
  height: 1.45rem;
  padding: 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0.25rem;
}

.leads-hub-page .leads-btn-icon,
#modalLeadAe .leads-btn-icon,
#alertas-config-modal .leads-btn-icon,
#aha-config-modal .leads-btn-icon,
.student-hub-modal .leads-btn-icon {
  width: 1.4rem !important;
  min-width: 1.4rem !important;
  max-width: 1.4rem !important;
  height: 1.4rem !important;
  min-height: 1.4rem !important;
  max-height: 1.4rem !important;
  padding: 0 !important;
}

.leads-hub-page .leads-btn-icon .bi,
#modalLeadAe .leads-btn-icon .bi,
#alertas-config-modal .leads-btn-icon .bi,
#aha-config-modal .leads-btn-icon .bi,
.student-hub-modal .leads-btn-icon .bi {
  font-size: 0.7rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.leads-hub-page .leads-btn .bi:not(.me-1):not(.me-2),
#modalLeadAe .leads-btn .bi:not(.me-1):not(.me-2),
#alertas-config-modal .leads-btn .bi:not(.me-1):not(.me-2),
#aha-config-modal .leads-btn .bi:not(.me-1):not(.me-2),
.student-hub-modal .leads-btn .bi:not(.me-1):not(.me-2) {
  margin-right: 0;
}

/* Coluna Ações: alinhada à esquerda; botões outline compactos */
.leads-hub-page .leads-actions-cell,
#modalLeadAe .leads-actions-cell,
#alertas-config-modal .leads-actions-cell,
#aha-config-modal .leads-actions-cell,
.student-hub-modal .leads-actions-cell {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  white-space: nowrap;
}

.leads-hub-page table td:has(> .leads-actions-cell),
.leads-hub-page table th.pf-col-acoes,
.leads-hub-page table td.pf-col-acoes,
.leads-hub-page table th.sl-col-acoes,
.leads-hub-page table td.sl-col-acoes,
.leads-hub-page table th.agenda-col-acoes,
.leads-hub-page table td.agenda-col-acoes,
.student-hub-modal table td:has(> .leads-actions-cell),
.student-hub-modal table th.agenda-col-acoes,
.student-hub-modal table td.agenda-col-acoes {
  text-align: left !important;
  vertical-align: middle;
}

/* Ações da tabela — outline colorido (padrão do sistema) */
.leads-actions-cell .leads-btn-icon.btn-outline-primary,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-primary {
  color: var(--ui-accent);
  background-color: transparent;
  border-color: var(--ui-accent);
}

.leads-actions-cell .leads-btn-icon.btn-outline-primary:hover,
.leads-actions-cell .leads-btn-icon.btn-outline-primary:focus,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-primary:hover,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--ui-accent);
  border-color: var(--ui-accent);
  box-shadow: none;
  outline: none;
}

.leads-actions-cell .leads-btn-icon.btn-outline-danger,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-danger {
  color: #dc3545;
  background-color: transparent;
  border-color: #dc3545;
}

.leads-actions-cell .leads-btn-icon.btn-outline-danger:hover,
.leads-actions-cell .leads-btn-icon.btn-outline-danger:focus,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-danger:hover,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-danger:focus {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.leads-actions-cell .leads-btn-icon.btn-outline-secondary,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-secondary {
  color: #6c757d;
  background-color: transparent;
  border-color: #6c757d;
}

.leads-actions-cell .leads-btn-icon.btn-outline-secondary:hover,
.leads-actions-cell .leads-btn-icon.btn-outline-secondary:focus,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-secondary:hover,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-secondary:focus {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.leads-actions-cell .leads-btn-icon.btn-outline-info,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-info {
  color: #0aa2c0;
  background-color: transparent;
  border-color: #0dcaf0;
}

.leads-actions-cell .leads-btn-icon.btn-outline-info:hover,
.leads-actions-cell .leads-btn-icon.btn-outline-info:focus,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-info:hover,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-info:focus {
  color: #fff;
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.leads-actions-cell .leads-btn-icon.btn-outline-success,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-success {
  color: #198754;
  background-color: transparent;
  border-color: #198754;
}

.leads-actions-cell .leads-btn-icon.btn-outline-success:hover,
.leads-actions-cell .leads-btn-icon.btn-outline-success:focus,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-success:hover,
.leads-hub-page .leads-actions-cell .leads-btn-icon.btn-outline-success:focus {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.leads-hub-page #pagFuncTable .pf-col-acoes,
.leads-hub-page #pagFuncTable thead tr.filters th.pf-col-acoes,
.leads-hub-page #pagFuncTable thead tr.filters th:last-child,
.leads-hub-page #pagProfTable .pf-col-acoes,
.leads-hub-page #pagProfTable thead tr.filters th.pf-col-acoes,
.leads-hub-page #pagProfTable thead tr.filters th:last-child,
.leads-hub-page #nfCentralTable .pf-col-acoes,
.leads-hub-page #nfCentralTable thead tr.filters th.pf-col-acoes,
.leads-hub-page #nfCentralTable thead tr.filters th:last-child {
  text-align: left;
  vertical-align: middle;
}

.leads-hub-page #pagFuncTable .pf-filter-acoes,
.leads-hub-page #pagProfTable .pf-filter-acoes {
  justify-content: flex-start;
}

.leads-hub-page #pagFuncTable .pf-status-badge,
.leads-hub-page #pagProfTable .pf-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.2em 0.5em;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.leads-hub-page .leads-actions-cell .agenda-open-badge {
  font-size: 0.55rem;
  padding: 0.2em 0.45em;
}

.leads-hub-page .leads-actions-cell .leads-btn-icon .bi {
  font-size: 0.7rem !important;
  line-height: 1;
}

/* Cabeçalhos das tabelas: texto como no HTML (sem ALL CAPS global) */

.leads-hub-page .datatable-list thead th,

.leads-hub-page .mini-table thead th,

#modalSignaturePlatform .datatable-list thead th {

  text-transform: none;

  letter-spacing: normal;

  font-size: 0.8125rem;

  font-weight: 600;

}


