.leads-list-page .leads-page-divider {
  margin-bottom: 0.55rem;
}

.leads-list-page .card-body {
  padding: 0.65rem 0.75rem;
}

/*
 * Contém a grade dentro do card: a tabela não deve “vazar” à direita
 * (isso deixava a margem direita visualmente menor que a esquerda).
 * Scroll horizontal só aparece se a grade for mais larga que o card.
 */
.leads-list-page .hub-datatable-wrap.table-responsive,
.tm-list-page .hub-datatable-wrap.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.leads-list-page .hub-datatable-wrap > .dataTables_wrapper,
.tm-list-page .hub-datatable-wrap > .dataTables_wrapper {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.leads-list-page #interessadosTable,
.tm-list-page table.datatable-list {
  width: 100% !important;
  max-width: 100% !important;
}

.tm-list-page table.datatable-list colgroup {
  display: none !important;
}

.tm-list-page table.datatable-list > thead > tr > th,
.tm-list-page table.datatable-list > tbody > tr > td {
  box-sizing: border-box;
  vertical-align: middle;
}

.leads-list-page #interessadosTable {
  table-layout: fixed !important;
}

.leads-list-page #interessadosTable > thead > tr > th,
.leads-list-page #interessadosTable > tbody > tr > td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leads-list-page #interessadosTable colgroup {
  display: none !important;
}

.leads-list-page #interessadosTable .lead-col-data { width: 9%; }
.leads-list-page #interessadosTable .lead-col-nome { width: 22%; }
.leads-list-page #interessadosTable .lead-col-celular { width: 11%; }
.leads-list-page #interessadosTable .lead-col-cursos { width: 14%; }
.leads-list-page #interessadosTable .lead-col-midia { width: 12%; }
.leads-list-page #interessadosTable .lead-col-retornar { width: 9%; }
.leads-list-page #interessadosTable .lead-col-status { width: 13%; }
.leads-list-page #interessadosTable .lead-col-acoes { width: 10%; }

.leads-list-page #interessadosTable thead tr.filters input.form-control,
.leads-list-page #interessadosTable thead tr.filters select.form-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Tabelas Leads (lista + Agendamento + Ficha aluno + modal assinaturas + modais colaborador) — padrão compacto */
.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_length,
.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_filter,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_length,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_length,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
  float: none !important;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_length label,
.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_filter label,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_length label,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter label,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_length label,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_length select,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_length select,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 3.25rem;
  max-width: 4.5rem;
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  vertical-align: middle;
  border-radius: var(--bs-border-radius-sm, 0.25rem);
  border-color: var(--bs-border-color, #dee2e6);
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_filter,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter {
  justify-content: flex-end;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input {
  width: auto;
  min-width: 10rem;
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  margin-left: 0 !important;
  font-size: 0.8125rem;
  border-radius: var(--bs-border-radius-sm, 0.25rem);
  border-color: var(--bs-border-color, #dee2e6);
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_info,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_info,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_info {
  font-size: 0.8125rem;
  padding-top: 0.35rem;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .dataTables_paginate,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_paginate,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_paginate {
  padding-top: 0.35rem;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .pagination,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .pagination,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .pagination {
  margin-bottom: 0;
}

.leads-hub-page .hub-datatable-wrap .dataTables_wrapper .page-link,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .page-link,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .page-link {
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Cadastro aluno / modal assinaturas / modais colaborador: campos Buscar e Mostrar registros */
#studentFullForm .hub-datatable-wrap .dataTables_wrapper .dataTables_length select,
#studentFullForm .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_length select,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_length select,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input {
  border-radius: var(--bs-border-radius-sm, 0.25rem) !important;
  border-color: var(--bs-border-color, #dee2e6) !important;
  box-shadow: none !important;
}

#studentFullForm .hub-datatable-wrap .dataTables_wrapper .dataTables_length select:focus,
#studentFullForm .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input:focus,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_length select:focus,
#modalSignaturePlatform .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input:focus,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_length select:focus,
.student-hub-modal .hub-datatable-wrap .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--ui-accent) !important;
  box-shadow: none !important;
}

.leads-hub-page table.datatable-list > thead > tr > th,
.leads-hub-page table.datatable-list > tbody > tr > td,
#modalSignaturePlatform table.datatable-list > thead > tr > th,
#modalSignaturePlatform table.datatable-list > tbody > tr > td,
.student-hub-modal table.datatable-list > thead > tr > th,
.student-hub-modal table.datatable-list > tbody > tr > td {
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  vertical-align: middle;
}

.leads-list-page table.datatable-list thead tr.filters th,
.tm-list-page table.datatable-list thead tr.filters th {
  padding: 0.25rem 0.35rem;
}

.leads-list-page table.datatable-list thead tr.filters input.form-control,
.leads-list-page table.datatable-list thead tr.filters select.form-select,
.tm-list-page table.datatable-list thead tr.filters input.form-control,
.tm-list-page table.datatable-list thead tr.filters select.form-select {
  height: 1.65rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.78rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

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

.leads-hub-page .datatable-list a.row-link,
#modalSignaturePlatform .datatable-list a.row-link {
  font-size: 0.8125rem;
}

.leads-list-page .student-list-bday {
  display: inline-block;
  margin-left: 0.35rem;
  background: #fdcb08;
  color: #5b2d8e;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.leads-list-page .students-list-table {
  table-layout: fixed;
  width: 100% !important;
}

.leads-list-page .students-list-table .sl-col-nome { width: 200px; }
.leads-list-page .students-list-table .sl-col-curso { width: 72px; }
.leads-list-page .students-list-table .sl-col-modalidade { width: 92px; }
.leads-list-page .students-list-table .sl-col-idade { width: 58px; }
.leads-list-page .students-list-table .sl-col-vigencia { width: 168px; }
.leads-list-page .students-list-table .sl-col-status { width: 118px; }
.leads-list-page .students-list-table .sl-col-acoes { width: 76px; }

.leads-list-page .students-list-table > thead > tr > th:nth-child(1),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(1) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leads-list-page .students-list-table > thead > tr > th:nth-child(5),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(5) {
  min-width: 168px;
  white-space: nowrap;
}

.leads-list-page .students-list-table > thead > tr > th:nth-child(2),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(2),
.leads-list-page .students-list-table > thead > tr > th:nth-child(3),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(3),
.leads-list-page .students-list-table > thead > tr > th:nth-child(4),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(4) {
  white-space: nowrap;
}

.leads-list-page .students-list-table > thead > tr > th:nth-child(7),
.leads-list-page .students-list-table > tbody > tr > td:nth-child(7) {
  width: 76px;
  text-align: left;
}

/* Agenda colaborador — tabela compacta sem rolagem horizontal */
#modalColaboradorAgenda .agenda-colaborador-table-wrap {
  overflow-x: hidden;
}

#modalColaboradorAgenda table.agenda-colaborador-table {
  table-layout: fixed;
  width: 100% !important;
}

#modalColaboradorAgenda table.agenda-colaborador-table > thead > tr > th.agenda-col-prazo,
#modalColaboradorAgenda table.agenda-colaborador-table > tbody > tr > td.agenda-col-prazo {
  width: 96px;
  white-space: nowrap;
}

#modalColaboradorAgenda table.agenda-colaborador-table > thead > tr > th.agenda-col-prioridade,
#modalColaboradorAgenda table.agenda-colaborador-table > tbody > tr > td.agenda-col-prioridade {
  width: 88px;
}

#modalColaboradorAgenda table.agenda-colaborador-table > thead > tr > th.agenda-col-status,
#modalColaboradorAgenda table.agenda-colaborador-table > tbody > tr > td.agenda-col-status {
  width: 108px;
}

#modalColaboradorAgenda table.agenda-colaborador-table > thead > tr > th.agenda-col-acoes,
#modalColaboradorAgenda table.agenda-colaborador-table > tbody > tr > td.agenda-col-acoes {
  width: 116px;
}

#modalColaboradorAgenda table.agenda-colaborador-table > thead > tr > th.agenda-col-titulo,
#modalColaboradorAgenda table.agenda-colaborador-table > tbody > tr > td.agenda-col-titulo {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

#modalColaboradorAgenda table.agenda-colaborador-table .leads-actions-cell {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.2rem;
}

#modalColaboradorAgenda table.agenda-colaborador-table .leads-actions-cell .leads-btn-icon {
  padding: 0 !important;
}
