/* Cadastro de Lead */

/* Topbar do professor — proporcional ao form, fundo branco */
.lead-form-page .teacher-form-topbar {
  padding: 0.7rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(18, 38, 63, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.lead-form-page .teacher-form-topbar .teacher-form-avatar {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}

.lead-form-page .teacher-form-topbar .teacher-form-avatar .avatar-clip {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.lead-form-page .teacher-form-topbar .teacher-form-avatar .avatar-badge {
  width: 1.35rem;
  height: 1.35rem;
  right: 0;
  bottom: 0;
  font-size: 0.65rem;
  border-width: 2px;
}

.lead-form-page .teacher-form-topbar .teacher-form-avatar .avatar-badge .bi {
  font-size: 0.65rem;
  line-height: 1;
}

.lead-form-page .teacher-topbar-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: #343a40;
  margin: 0;
}

.lead-form-page .teacher-topbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6c757d;
}

.lead-form-page .teacher-topbar-meta .badge-status {
  min-height: 1.2rem;
  font-size: 0.6875rem;
  padding: 0.2em 0.5em;
  border-radius: 0.35rem;
}

.lead-form-page .teacher-topbar-sep {
  color: #adb5bd;
}

.lead-form-page #leadTabs,
.lead-form-page #tmTabs,
.lead-form-page #profileTabs,
.lead-form-page #controleAcessoHubTabs,
.lead-form-page #adminParamTabs,
.lead-form-page #fluxoFinanceiroHubTabs,
.lead-form-page #ppHubTabs,
.lead-form-page #teacherHubTabs,
.lead-form-page #colaboradorHubTabs {
  padding: 0.45rem 0.65rem 0;
}

.lead-form-page #leadTabs .nav-link,
.lead-form-page #tmTabs .nav-link,
.lead-form-page #profileTabs .nav-link,
.lead-form-page #controleAcessoHubTabs .nav-link,
.lead-form-page #adminParamTabs .nav-link,
.lead-form-page #fluxoFinanceiroHubTabs .nav-link,
.lead-form-page #ppHubTabs .nav-link,
.lead-form-page #teacherHubTabs .nav-link,
.lead-form-page #colaboradorHubTabs .nav-link,
#modalFichaUsuario #fichaUsuarioTabs .nav-link {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
}

.lead-form-page .student-hub-accordion,
#modalLeadAe .student-hub-accordion,
#alertas-config-modal .student-hub-accordion,
#aha-config-modal .student-hub-accordion,
.student-hub-modal .student-hub-accordion {
  --bs-accordion-btn-padding-y: 0.38rem;
  --bs-accordion-btn-padding-x: 0.7rem;
  --bs-accordion-btn-icon-width: 0.75rem;
}

.lead-form-page .student-hub-accordion .accordion-button,
#modalLeadAe .student-hub-accordion .accordion-button,
#alertas-config-modal .student-hub-accordion .accordion-button,
#aha-config-modal .student-hub-accordion .accordion-button,
.student-hub-modal .student-hub-accordion .accordion-button {
  margin: 3px 5px;
  width: calc(100% - 10px);
  min-height: 2rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: none !important;
}

.lead-form-page .student-hub-accordion .accordion-button:not(.collapsed),
#modalLeadAe .student-hub-accordion .accordion-button:not(.collapsed),
#alertas-config-modal .student-hub-accordion .accordion-button:not(.collapsed),
#aha-config-modal .student-hub-accordion .accordion-button:not(.collapsed),
.student-hub-modal .student-hub-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--ui-accent-rgb), .08);
  color: var(--ui-accent);
  border-color: rgba(var(--ui-accent-rgb), .15);
}

.lead-form-page .student-hub-accordion .accordion-item {
  background: #fff;
}

.lead-form-page .student-hub-accordion .accordion-button::after,
#modalLeadAe .student-hub-accordion .accordion-button::after,
#alertas-config-modal .student-hub-accordion .accordion-button::after,
#aha-config-modal .student-hub-accordion .accordion-button::after,
.student-hub-modal .student-hub-accordion .accordion-button::after {
  background-size: 0.75rem;
}

body.modal-open #leadFormFab,
body.modal-open #studentFormFab,
body.modal-open #recFormFab,
body.modal-open #teacherFormFab,
body.modal-open #colaboradorFormFab {
  display: none !important;
}

#modalLeadAe .modal-dialog,
#alertas-config-modal .modal-dialog,
#aha-config-modal .modal-dialog,
#modalColaboradorFaltas .modal-dialog,
#aha-detail-modal .modal-dialog,
#alertas-detail-modal .modal-dialog,
#schedule-grid-modal .modal-dialog,
#modalHubAgFixa .modal-dialog,
#modalHubAgAvulsa .modal-dialog,
#modalHubAgExp .modal-dialog {
  margin: 1.75rem auto;
  max-width: 900px;
}

#schedule-grid-modal .lead-form-fab {
  pointer-events: auto;
}

#schedule-grid-modal .lead-form-fab .lead-fab-btn {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.student-hub-modal .modal-dialog {
  margin: 1.75rem auto;
  max-width: 1140px;
}

#modalHubPgBaixa .modal-dialog,
#modal-baixa-recebivel .modal-dialog,
#modalHubFiGerarFixasCadastro .modal-dialog {
  max-width: 420px;
}

#modalPermissoesUsuario .modal-dialog,
#modalNovoUsuario .modal-dialog {
  max-width: 900px;
}

#modalPreviewEmailSenha .modal-dialog,
#modalNovoAdmin .modal-dialog,
#modalLiberarAcesso .modal-dialog {
  max-width: 580px;
}

#modalFichaUsuario .modal-dialog {
  max-width: 960px;
}

#modalPermissoesUsuario .perm-modal-body {
  padding: 0.65rem 0.85rem 0.75rem;
}

#modalPermissoesUsuario .perm-modal-card .card-body {
  padding: 0.65rem 0.75rem 0.75rem !important;
}

#modalPermissoesUsuario .perm-row {
  padding: 0.45rem 0.65rem;
}

#modalPermissoesUsuario .perm-level-select {
  min-width: 7.5rem;
  max-width: 8.5rem;
}

#modalPermissoesUsuario .modal-content {
  position: relative;
}

#modalPermissoesUsuario .perm-modal-fab {
  position: absolute;
  right: 1.25rem;
  bottom: 3.75rem;
  z-index: 5;
}

#modalPreviewEmailSenha .perm-email-preview-body {
  max-height: 58vh;
}

#modalPermissoesUsuario .student-hub-accordion .perm-modules-list-in-group {
  margin: 0 0.65rem 0.65rem;
  border-radius: 0.65rem;
}

#modalPermissoesUsuario .perm-level-select.perm-total {
  border-color: #74c0fc !important;
  background-color: #e7f5ff !important;
  color: #1864ab !important;
}

#modalPermissoesUsuario .perm-level-select.perm-leitura {
  border-color: #b197fc !important;
  background-color: #f3f0ff !important;
  color: #5f3dc4 !important;
}

#modalPermissoesUsuario .perm-level-select.perm-escrita {
  border-color: #ffd43b !important;
  background-color: #fff9db !important;
  color: #e67700 !important;
}

#modalPermissoesUsuario .perm-level-select.perm-sem {
  border-color: #ced4da !important;
  background-color: #f8f9fa !important;
  color: #495057 !important;
}

#modalPermissoesUsuario #permSectionTabs {
  padding: 0.45rem 0.65rem 0;
}

#modalPermissoesUsuario #permSectionTabs .nav-link {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
}

#modalPermissoesUsuario .perm-modal-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

#modalPermissoesUsuario .perm-modal-card .card-header {
  background: linear-gradient(180deg, rgba(var(--ui-accent-rgb), 0.05) 0%, rgba(var(--ui-accent-rgb), 0.01) 100%);
  border-bottom: 1px solid rgba(var(--ui-accent-rgb), 0.1);
}

#modalPermissoesUsuario .perm-panel .accordion-item.is-hidden-by-filter {
  display: none;
}

#modalPermissoesUsuario .ca-modulo-card .perm-level-select {
  min-width: 7.5rem;
  max-width: 8.5rem;
}

#modalLeadAe .modal-content,
#alertas-config-modal .modal-content,
#aha-config-modal .modal-content,
.student-hub-modal .modal-content {
  position: relative;
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

#modalLeadAe .modal-body,
#alertas-config-modal .modal-body,
#aha-config-modal .modal-body,
.student-hub-modal .modal-body {
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

#modalLeadAe .modal-header,
#alertas-config-modal .modal-header,
#aha-config-modal .modal-header,
.student-hub-modal .modal-header {
  padding: 0.55rem 1rem;
  flex-shrink: 0;
}

#modalLeadAe .modal-footer,
#alertas-config-modal .modal-footer,
#aha-config-modal .modal-footer,
.student-hub-modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.5rem;
  background: #f8f9fa;
}

#modalLeadAe .modal-footer.justify-content-between,
.student-hub-modal .modal-footer.justify-content-between {
  justify-content: space-between;
}

#modalLeadAe .modal-title,
.student-hub-modal .modal-title {
  font-size: 1rem;
  font-weight: 600;
}

#modalLeadAe .mini-table thead th,
.student-hub-modal .student-hub-accordion .mini-table thead th,
#modalAgendaFixas .mini-table thead th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8125rem;
  font-weight: 600;
}

#modalLeadAe .mini-table td,
.student-hub-modal .student-hub-accordion .mini-table td,
#modalAgendaFixas .mini-table td {
  font-size: 0.8125rem;
  vertical-align: middle;
  padding: 0.35rem 0.5rem;
}

#modalAgendaFixas .modal-dialog {
  max-width: 620px;
}

.student-hub-modal .hub-week-table th,
.student-hub-modal .hub-week-table td,
#modalLeadAe .hub-week-table th,
#modalLeadAe .hub-week-table td {
  text-align: center;
}

.student-hub-modal .hub-week-table .form-check-input,
#modalLeadAe .hub-week-table .form-check-input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 auto;
  display: block;
}

.student-hub-modal .hub-week-time {
  max-width: 5.75rem;
  min-width: 5.25rem;
  margin: 0 auto;
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.2rem 0.35rem;
}

.student-hub-modal .hub-week-duracao {
  display: inline-block;
  min-width: 3.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

#modalLeadAe .lead-ae-modal-fab,
#schedule-grid-modal .lead-ae-modal-fab,
#conta-modal .lead-ae-modal-fab,
.student-hub-modal .lead-ae-modal-fab {
  position: absolute;
  right: 1.25rem;
  bottom: 3.75rem;
  z-index: 5;
}

#conta-modal .lead-ae-modal-fab {
  bottom: 4.25rem;
}

.lead-form-page .student-hub-accordion .accordion-button i.bi,
#modalLeadAe .student-hub-accordion .accordion-button i.bi,
.student-hub-modal .student-hub-accordion .accordion-button i.bi {
  font-size: 0.875rem;
}

.lead-form-page .student-hub-accordion .accordion-button .lead-section-title,
#modalLeadAe .student-hub-accordion .accordion-button .lead-section-title,
.student-hub-modal .student-hub-accordion .accordion-button .lead-section-title {
  font-size: 0.8125rem;
  font-weight: 500;
}

.lead-form-page .form-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #212529;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.lead-form-page .student-hub-accordion input.form-control-sm:not(.bg-light):not([readonly]):not(:disabled),
.lead-form-page .student-hub-accordion select.form-select-sm:not(:disabled),
.student-hub-modal .student-hub-accordion input.form-control-sm:not(.bg-light):not([readonly]):not(:disabled),
.student-hub-modal .student-hub-accordion select.form-select-sm:not(:disabled),
.lead-crm-modal .student-hub-accordion input.form-control-sm:not(.bg-light):not([readonly]):not(:disabled),
.lead-crm-modal .student-hub-accordion select.form-select-sm:not(:disabled) {
  box-sizing: border-box;
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Campos desabilitados / somente leitura — padrão Financeiro aluno (bg-light + disabled/readonly) */
.lead-form-page .student-hub-accordion input.form-control-sm.bg-light[readonly],
.lead-form-page .student-hub-accordion input.form-control-sm.bg-light:disabled,
.lead-form-page .student-hub-accordion input.form-control.bg-light[readonly],
.lead-form-page .student-hub-accordion input.form-control.bg-light:disabled,
.lead-form-page .student-hub-accordion textarea.form-control-sm.bg-light[readonly],
.lead-form-page .student-hub-accordion textarea.form-control-sm.bg-light:disabled,
.student-hub-modal .student-hub-accordion input.form-control-sm.bg-light[readonly],
.student-hub-modal .student-hub-accordion input.form-control-sm.bg-light:disabled,
.student-hub-modal .student-hub-accordion input.form-control.bg-light[readonly],
.student-hub-modal .student-hub-accordion input.form-control.bg-light:disabled {
  background-color: var(--bs-light, #f8f9fa) !important;
  color: #212529 !important;
  border-color: #ced4da !important;
  cursor: not-allowed !important;
  opacity: 1;
  box-shadow: none;
}

.lead-form-page .form-control,
.lead-form-page .form-select,
.lead-form-page .form-control-sm,
.lead-form-page .form-select-sm {
  font-size: 0.8125rem;
}

.lead-form-page .student-hub-accordion .form-check {
  min-height: 1.75rem;
  padding-left: 1.35em;
  margin-bottom: 0;
}

.lead-form-page .student-hub-accordion .form-check-input {
  margin-top: 0.2em;
}

.lead-form-page .student-hub-accordion .form-check-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #495057;
  line-height: 1.35;
}

#modalLeadAe .form-label,
.student-hub-modal .form-label {
  margin-bottom: 0.2rem;
}

#modalFichaUsuario .form-check.form-switch,
#modalLiberarAcesso .form-check.form-switch,
#modalNovoAdmin .form-check.form-switch {
  padding-left: 2.5em;
  min-height: 1.5rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

#modalFichaUsuario .form-check.form-switch .form-check-input,
#modalLiberarAcesso .form-check.form-switch .form-check-input,
#modalNovoAdmin .form-check.form-switch .form-check-input {
  width: 2em;
  margin-left: -2.5em;
  margin-top: 0;
}

#modalFichaUsuario .form-check.form-switch .form-check-label,
#modalLiberarAcesso .form-check.form-switch .form-check-label,
#modalNovoAdmin .form-check.form-switch .form-check-label {
  margin-bottom: 0;
}

#modalLeadAe .form-control,
#modalLeadAe .form-select:not(.perm-level-select),
#modalLeadAe .form-control-sm,
#modalLeadAe .form-select-sm:not(.perm-level-select),
.student-hub-modal .form-control,
.student-hub-modal .form-select:not(.perm-level-select),
.student-hub-modal .form-control-sm,
.student-hub-modal .form-select-sm:not(.perm-level-select) {
  font-size: 0.8125rem;
  border-radius: 0.25rem;
  border-color: var(--bs-border-color, #dee2e6);
}

.lead-form-page .student-hub-accordion .accordion-body,
#modalLeadAe .student-hub-accordion .accordion-body,
.student-hub-modal .student-hub-accordion .accordion-body {
  padding: 0 1rem 1rem;
}

.lead-form-page #acc-lead-objetivo .accordion-body,
.lead-form-page #acc-lead-observacoes .accordion-body {
  padding-top: 1.25rem;
}

/* Grid compacto e uniforme nos acordeões (padrão lead/professor) */
.lead-form-page .student-hub-accordion .accordion-body .row.g-3,
.lead-form-page .student-hub-accordion .accordion-body .row.g-2,
#modalLeadAe .student-hub-accordion .accordion-body .row.g-3,
.student-hub-modal .student-hub-accordion .accordion-body .row.g-3,
#modalSignaturePlatform .student-hub-accordion .accordion-body .row.g-2 {
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.75rem;
}

.student-hub-modal .lead-agenda-section,
#modalSignaturePlatform .lead-agenda-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.85rem;
}

.student-hub-modal .lead-agenda-toolbar,
#modalSignaturePlatform .lead-agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.student-hub-modal .lead-agenda-title,
#modalSignaturePlatform .lead-agenda-title {
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: normal;
  color: #6c757d;
  font-weight: 600;
}

.lead-form-page .student-hub-accordion .accordion-body .tab-section-card,
.lead-form-page .student-hub-accordion .accordion-body .lead-form-bar {
  margin-bottom: 0.65rem;
}

.lead-form-page .student-hub-accordion .accordion-body .tab-section-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
}

.lead-form-page .student-hub-accordion .accordion-body .tab-section-title {
  margin-bottom: 0;
}

.lead-form-page .student-hub-accordion .accordion-body .card.shadow-sm > .card-body.p-2 {
  padding: 0.5rem !important;
}

.lead-form-page .student-hub-accordion .select2-container,
.lead-form-page .student-hub-accordion .form-select,
.lead-form-page .student-hub-accordion .form-control,
.lead-form-page .student-hub-accordion .btn {
  max-width: 100%;
}

.lead-form-page #acc-lead-interesse .leads-btn:not(.leads-btn-icon),
.lead-form-page .student-hub-accordion .leads-btn:not(.leads-btn-icon) {
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  font-size: 0.8125rem;
  font-weight: 400;
}

.lead-form-page #acc-lead-interesse .leads-btn-icon,
.lead-form-page .student-hub-accordion .leads-btn-icon,
.lead-form-page .mini-table .leads-btn-icon,
#modalLeadAe .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;
  font-size: 0 !important;
  line-height: 1 !important;
}

.lead-form-page .student-hub-accordion .mini-table thead th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #212529;
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.lead-form-page .student-hub-accordion .mini-table td {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #212529;
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.lead-form-page .student-hub-accordion .mini-table .mini-table-empty {
  font-size: 0.8125rem;
  color: #6c757d;
}

.lead-form-page .student-hub-accordion .mini-table .leads-actions-cell {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.lead-form-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.lead-form-bar-text {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: #495057;
  line-height: 1.4;
}

.lead-form-bar-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.lead-form-bar-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  min-width: 0;
}

.lead-form-bar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111 !important;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.theme-youvip .lead-form-bar-title {
  color: #111111 !important;
}

.lead-form-bar-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: #868e96;
  line-height: 1.35;
}

.lead-form-bar-progress {
  flex: 0 1 11rem;
  min-width: 9rem;
  max-width: 11rem;
}

.lead-form-bar-progress .progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--ui-accent-rgb), 0.1);
}

.lead-form-bar-progress .progress-bar {
  border-radius: 999px;
  background-color: var(--ui-accent);
}

.lead-form-bar-progress small {
  font-size: 0.75rem;
}

.lead-form-bar-progress small.fw-semibold:last-child,
.lead-form-bar-progress #leadProgressPct,
.lead-form-bar-progress #topProgressPct,
.lead-form-bar-progress .js-student-progress-pct,
.lead-form-bar-progress #topTeacherProgressPct,
.lead-form-bar-progress #topColabProgressPct {
  color: var(--ui-accent);
}

.lead-form-page .content-card .card-footer,
.lead-form-footer {
  padding: 0.75rem 1rem;
  margin-top: 0;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  position: static;
  box-shadow: none;
}

.lead-form-page .lead-form-footer .leads-btn:not(.leads-btn-icon),
.lead-form-page .lead-agenda-toolbar .leads-btn:not(.leads-btn-icon),
.lead-form-page .lead-agenda-section .leads-btn:not(.leads-btn-icon),
.lead-form-page .leads-page-actions .leads-btn:not(.leads-btn-icon) {
  height: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  border-radius: 0.25rem;
}

.lead-agenda-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.85rem;
}

.lead-agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-agenda-title {
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: normal;
  color: #6c757d;
  font-weight: 600;
}

#modalLeadAe .modal-footer {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.5rem;
  background: #f8f9fa;
}

#modalLeadAe .modal-footer .leads-btn:not(.leads-btn-icon),
.student-hub-modal .modal-footer .leads-btn:not(.leads-btn-icon),
.student-hub-modal .modal-footer a.leads-btn:not(.leads-btn-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0.25rem;
}

/* Modais de configuração (Alertas Aulas / Alertas Horas) — espelha #modalLeadAe */
#alertas-config-modal .modal-title,
#aha-config-modal .modal-title {
  font-size: 1rem;
  font-weight: 600;
}

#alertas-config-modal .student-hub-accordion .accordion-button i.bi,
#aha-config-modal .student-hub-accordion .accordion-button i.bi {
  font-size: 0.875rem;
}

#alertas-config-modal .student-hub-accordion .accordion-button .lead-section-title,
#aha-config-modal .student-hub-accordion .accordion-button .lead-section-title {
  font-size: 0.8125rem;
  font-weight: 500;
}

#alertas-config-modal .form-label,
#aha-config-modal .form-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #212529;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

#alertas-config-modal .form-control,
#alertas-config-modal .form-select,
#alertas-config-modal .form-control-sm,
#alertas-config-modal .form-select-sm,
#aha-config-modal .form-control,
#aha-config-modal .form-select,
#aha-config-modal .form-control-sm,
#aha-config-modal .form-select-sm {
  font-size: 0.8125rem;
  border-radius: 0.25rem;
  border-color: var(--bs-border-color, #dee2e6);
}

#alertas-config-modal .student-hub-accordion input.form-control-sm,
#alertas-config-modal .student-hub-accordion select.form-select-sm,
#aha-config-modal .student-hub-accordion input.form-control-sm,
#aha-config-modal .student-hub-accordion select.form-select-sm {
  box-sizing: border-box;
  height: calc(1.5em + 0.5rem + 2px);
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
}

#alertas-config-modal .student-hub-accordion .accordion-body,
#aha-config-modal .student-hub-accordion .accordion-body {
  padding: 0 1rem 1rem;
}

#alertas-config-modal .student-hub-accordion .accordion-body .row.g-3,
#aha-config-modal .student-hub-accordion .accordion-body .row.g-3 {
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.75rem;
}

#alertas-config-modal .student-hub-accordion .form-check,
#aha-config-modal .student-hub-accordion .form-check {
  min-height: 1.75rem;
  padding-left: 1.35em;
  margin-bottom: 0;
}

#alertas-config-modal .student-hub-accordion .form-check-input,
#aha-config-modal .student-hub-accordion .form-check-input {
  margin-top: 0.2em;
}

#alertas-config-modal .student-hub-accordion .form-check-label,
#aha-config-modal .student-hub-accordion .form-check-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #495057;
  line-height: 1.35;
}

#alertas-config-modal .student-hub-accordion .form-switch,
#aha-config-modal .student-hub-accordion .form-switch {
  padding-left: 2.5em;
}

#alertas-config-modal .student-hub-accordion .form-switch .form-check-input,
#aha-config-modal .student-hub-accordion .form-switch .form-check-input {
  width: 2em;
  margin-top: 0.15em;
}

#alertas-config-modal .form-text,
#aha-config-modal .form-text {
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

#alertas-config-modal .modal-body > .small.text-muted,
#aha-config-modal .modal-body > .small.text-muted {
  font-size: 0.8125rem;
}

#alertas-config-modal .modal-footer,
#aha-config-modal .modal-footer {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.5rem;
  background: #f8f9fa;
}

#alertas-config-modal .modal-footer .leads-btn:not(.leads-btn-icon),
#aha-config-modal .modal-footer .leads-btn:not(.leads-btn-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0.25rem;
}

.student-hub-section-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.15rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-form-page .student-ficha-resumo-title {
  pointer-events: none;
  cursor: default;
  background: rgba(var(--ui-accent-rgb), .08);
  color: var(--ui-accent);
  border-color: rgba(var(--ui-accent-rgb), .15);
}

.lead-form-page .student-ficha-resumo-title::after {
  display: none !important;
}

.lead-form-page #accordionFichaResumo .accordion-body {
  padding-top: 0.45rem;
  padding-bottom: 0.65rem;
}

.lead-form-page .fi-summary-grid {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.65rem;
}

/* 5 cards com a mesma largura a partir de lg (evita grade 3+2 irregular) */
@media (min-width: 992px) {
  .lead-form-page .fi-summary-grid.fi-kpi-row > [class*="col"] {
    flex: 1 1 0;
    width: 0;
    max-width: 100%;
  }
}

.lead-form-page .fi-kpi-row .cap-resumo-card {
  min-height: 0;
}

.lead-form-page .fi-kpi-row .cap-resumo-card .card-body {
  padding: 0.4rem 0.65rem;
  height: 100%;
}

.lead-form-page .fi-kpi-row .cap-resumo-icon {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  border-radius: 7px;
  flex-shrink: 0;
}

.lead-form-page .fi-kpi-label {
  font-size: 0.72rem;
  line-height: 1.15;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 600;
}

.lead-form-page .fi-kpi-sub {
  font-size: 0.65rem;
  line-height: 1.15;
  color: #adb5bd;
  margin-bottom: 0.1rem;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-form-page .fi-kpi-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #212529;
  font-variant-numeric: tabular-nums;
}

.lead-form-page .fi-kpi-foot {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-form-page .fi-kpi-foot-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #868e96;
}

.lead-form-page .fi-kpi-foot-line strong {
  font-weight: 600;
  color: #495057;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lead-form-page .contrato-vigente-card .card-body {
  padding: 0.4rem 0.65rem;
}

.lead-form-page .contrato-vigente-card .fi-kpi-label {
  margin-bottom: 0;
}

.lead-form-page .contrato-vigente-card .cap-resumo-icon {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  border-radius: 7px;
  flex-shrink: 0;
}

.lead-form-page .contrato-vigente-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lead-form-page .contrato-vigente-main {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-form-page .contrato-vigente-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.lead-form-page .contrato-vigente-carga {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #212529;
  font-variant-numeric: tabular-nums;
}

.lead-form-page .contrato-vigente-meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #868e96;
}

.lead-form-page .contrato-vigente-meta-inline .contrato-vigente-saldo {
  margin-left: auto;
  text-align: right;
}

.lead-form-page .contrato-vigente-meta-inline strong {
  font-weight: 600;
  color: #495057;
  font-variant-numeric: tabular-nums;
}

.lead-form-page .contrato-vigente-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.lead-form-page .contrato-vigente-meta {
  min-width: 0;
}

.lead-form-page .contrato-vigente-value-col {
  text-align: right;
  flex-shrink: 0;
}

.lead-form-page .contrato-vigente-value-col .fi-kpi-value {
  font-size: 1.05rem;
}

.lead-form-page .fi-kpi-row .cap-resumo-card.fi-kpi-primary {
  border-left-color: var(--ui-accent);
  background: linear-gradient(135deg, rgba(var(--ui-accent-rgb), 0.04) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-icon.fi-icon-primary {
  background: rgba(var(--ui-accent-rgb), 0.12);
  color: var(--ui-accent);
}

.lead-form-page .fi-kpi-row .cap-resumo-card.danger {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.04) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-card.warning {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-card.fi-kpi-cyan {
  border-left-color: #0aa2c0;
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.06) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-icon.fi-icon-cyan {
  background: rgba(13, 202, 240, 0.15);
  color: #0aa2c0;
}

.lead-form-page .fi-kpi-row .cap-resumo-card.success {
  border-left-color: #198754;
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.06) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-card.orange {
  border-left-color: #fd7e14;
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.08) 0%, #fff 55%);
}

.lead-form-page .fi-kpi-row .cap-resumo-icon.orange {
  background: #ffe5d0;
  color: #984c0c;
}

.lead-form-page .cap-resumo-card.tm-card-gray,
.lead-form-page .contrato-vigente-card {
  border-left-color: #868e96;
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, #fff 55%);
}

.lead-form-page .cap-resumo-icon.tm-icon-gray {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
}

.lead-form-page .fi-badge-soft {
  font-weight: 600;
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.lead-form-page .fi-badge-soft-blue {
  background: rgba(var(--ui-accent-rgb), 0.12);
  color: #0a58ca;
  border-color: rgba(var(--ui-accent-rgb), 0.18);
}

.lead-form-page .fi-badge-soft-green {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
  border-color: rgba(25, 135, 84, 0.18);
}

.lead-form-page .fi-badge-soft-gray {
  background: rgba(108, 117, 125, 0.12);
  color: #495057;
  border-color: rgba(108, 117, 125, 0.18);
}

.lead-form-page .fi-badge-soft-indigo {
  background: rgba(102, 16, 242, 0.1);
  color: #5a23c8;
  border-color: rgba(102, 16, 242, 0.16);
}

.lead-form-page .fi-badge-soft-cyan {
  background: rgba(13, 202, 240, 0.14);
  color: #087990;
  border-color: rgba(13, 202, 240, 0.2);
}

.lead-form-page .fi-badge-soft-amber {
  background: rgba(255, 193, 7, 0.18);
  color: #997404;
  border-color: rgba(255, 193, 7, 0.28);
}

.lead-form-page .fi-badge-soft-purple {
  background: rgba(102, 16, 242, 0.1);
  color: #5a23c8;
  border-color: rgba(102, 16, 242, 0.16);
}

.lead-form-page .contract-flow-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  padding: 0.45rem 0.7rem;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.lead-form-page .contract-flow-hint {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: #495057;
  line-height: 1.35;
}

.lead-form-page .contract-flow-steps {
  flex: 0 1 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.lead-form-page .contract-flow-steps .badge {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  line-height: 1.2;
}

.lead-form-page .contract-flow-steps .badge .bi {
  font-size: 0.7rem;
  vertical-align: -0.05em;
}

.lead-form-page .accordion-body .hub-datatable-wrap {
  overflow-x: auto !important;
  max-width: 100%;
}

.lead-form-page #acc-contrato-fluxo .hub-datatable-wrap,
.lead-form-page #acc-historico .hub-datatable-wrap {
  overflow-x: auto !important;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .lead-form-bar-progress {
    flex: 1 1 100%;
    max-width: none;
  }
}

.lead-form-page .profile-tab-hint {
  font-size: 0.8125rem;
  color: #6c757d;
}

.lead-form-page .profile-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #343a40;
}

.lead-form-page .profile-form-check .form-check-label {
  font-size: 0.8125rem;
  color: #212529;
}

/* CRM AE — Fase 4 */
#modalLeadAe .lead-ae-lead-banner {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  background: rgba(111, 66, 193, 0.08);
  border: 1px solid rgba(111, 66, 193, 0.22);
  color: #3b2a5c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

#leadAeTable tbody tr.lead-ae-row-compareceu-sim > td {
  background-color: rgba(25, 135, 84, 0.16) !important;
}

#leadAeTable tbody tr.lead-ae-row-compareceu-nao > td {
  background-color: rgba(220, 53, 69, 0.16) !important;
}

.lead-doc-preview-frame {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.45;
}

.lead-doc-sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.lead-doc-sheet ul {
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Lead CRM modals (Documentos / Contatos / preview) — mesmo padrão visual da AE */
.lead-crm-modal .modal-dialog {
  margin: 1.75rem auto;
  max-width: 900px;
}

#teacherDocModal .modal-dialog,
#colabDocModal .modal-dialog {
  height: auto;
  max-height: calc(100vh - 3.5rem);
}

.lead-crm-modal .modal-content {
  position: relative;
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

.lead-crm-modal .modal-body {
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.lead-crm-modal .modal-header {
  padding: 0.55rem 1rem;
  flex-shrink: 0;
}

.lead-crm-modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.5rem;
  background: #f8f9fa;
}

.lead-crm-modal .modal-footer.justify-content-between {
  justify-content: space-between;
}

.lead-crm-modal .modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.lead-crm-modal .student-hub-accordion {
  --bs-accordion-btn-padding-y: 0.38rem;
  --bs-accordion-btn-padding-x: 0.7rem;
  --bs-accordion-btn-icon-width: 0.75rem;
}

.lead-crm-modal .student-hub-accordion .accordion-button {
  margin: 3px 5px;
  width: calc(100% - 10px);
  min-height: 2rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: none !important;
}

.lead-crm-modal .student-hub-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--ui-accent-rgb), .08);
  color: var(--ui-accent);
  border-color: rgba(var(--ui-accent-rgb), .15);
}

.lead-crm-modal .student-hub-accordion .accordion-button::after {
  background-size: 0.75rem;
}

.lead-crm-modal .student-hub-accordion .accordion-button i.bi {
  font-size: 0.875rem;
}

.lead-crm-modal .student-hub-accordion .accordion-button .lead-section-title {
  font-size: 0.8125rem;
  font-weight: 500;
}

.lead-crm-modal .student-hub-accordion .accordion-body {
  padding: 0 1rem 1rem;
}

.lead-crm-modal .student-hub-accordion .accordion-body .row.g-3 {
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.75rem;
}

.lead-crm-modal .form-label {
  margin-bottom: 0.2rem;
}

.lead-crm-modal .form-control,
.lead-crm-modal .form-select:not(.perm-level-select),
.lead-crm-modal .form-control-sm,
.lead-crm-modal .form-select-sm:not(.perm-level-select) {
  font-size: 0.8125rem;
  border-radius: 0.25rem;
  border-color: var(--bs-border-color, #dee2e6);
}

.lead-crm-modal .lead-ae-modal-fab {
  position: absolute;
  right: 1.25rem;
  bottom: 3.75rem;
  z-index: 5;
}

.lead-crm-modal .modal-footer .leads-btn:not(.leads-btn-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0.25rem;
}

.lead-crm-modal .lead-ae-lead-banner,
.student-hub-modal .lead-ae-lead-banner {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  background: rgba(111, 66, 193, 0.08);
  border: 1px solid rgba(111, 66, 193, 0.22);
  color: #3b2a5c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.lead-crm-modal .mini-table thead th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8125rem;
  font-weight: 600;
}

