/* Apresentação exclusiva de alunos.html; o renderer e as regras de alunos.js são preservados. */
.alunos-page {
  --alunos-brand: #8b0000;
  --alunos-ink: #252b39;
  --alunos-muted: #647084;
  --alunos-border: #e4e7ed;
  background: #f5f6f9;
  color: var(--alunos-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "DejaVu Sans", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1.5;
}
.alunos-page .alunos-content { width: min(1440px, 100%); min-width: 0; margin: 0 auto; padding: 108px 32px 56px; }
.alunos-page .alunos-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.alunos-page .alunos-eyebrow { margin: 0 0 8px; color: var(--alunos-brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.alunos-page h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -.035em; }
.alunos-page .alunos-description { margin: 8px 0 0; color: var(--alunos-muted); font-size: 14px; }
.alunos-page .alunos-heading-icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border: 1px solid #ecdada; border-radius: 18px; background: #fff; color: var(--alunos-brand); font-size: 27px; transform: rotate(-5deg); }
.alunos-page .alunos-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.alunos-page .alunos-panel, .alunos-page .alunos-metric { border: 1px solid var(--alunos-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(30, 38, 55, .025); }
.alunos-page .alunos-metric { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.alunos-page .alunos-metric p { margin: 0 0 6px; font-size: 13px; color: var(--alunos-muted); }
.alunos-page .alunos-metric strong { display: block; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; font-weight: 750; overflow-wrap: anywhere; }
.alunos-page .alunos-metric small { font-size: 15px; font-weight: 500; color: var(--alunos-muted); }
.alunos-page .alunos-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: #f9eeee; color: var(--alunos-brand); font-size: 19px; }
.alunos-page .alunos-metric-pending .alunos-icon { background: #fff5e2; color: #986300; }
.alunos-page .alunos-metric-pending strong { color: #986300; }
.alunos-page .form-container { max-width: none; width: 100%; margin: 0 0 28px; overflow: hidden; }
.alunos-page .form-container:hover { transform: none; box-shadow: 0 3px 12px rgba(30, 38, 55, .025); }
.alunos-page .alunos-panel-heading { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: #fff; border-bottom: 1px solid #eef0f4; }
.alunos-page .alunos-panel-heading h2 { margin: 0; color: var(--alunos-ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.alunos-page .alunos-panel-heading p { margin: 3px 0 0; color: var(--alunos-muted); font-size: 13px; }
.alunos-page .form-container .card-body { padding: 22px 24px; }
.alunos-page .form-label { color: #495467; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.alunos-page .form-control { min-width: 0; min-height: 44px; border-color: #dce1e9; border-radius: 9px; font-size: 14px; color: var(--alunos-ink); }
.alunos-page .form-control::placeholder { color: #8a93a3; }
.alunos-page .form-control:focus { border-color: var(--alunos-brand); box-shadow: 0 0 0 3px rgba(139, 0, 0, .09); }
.alunos-page .btn { border-radius: 8px; font-weight: 600; transition: background-color .15s, border-color .15s; }
.alunos-page #adicionarButton { min-height: 44px; min-width: 140px; padding: 10px 24px; background: var(--alunos-brand); border-color: var(--alunos-brand); }
.alunos-page #adicionarButton:hover { background: #6c0000; border-color: #6c0000; }
.alunos-page .alunos-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; }
.alunos-page .alunos-form-footer > span { font-size: 12px; color: var(--alunos-muted); }
.alunos-page .alunos-form-footer i { margin-right: 5px; color: #287e80; }
.alunos-page .alunos-list { overflow: hidden; }
.alunos-page .alunos-list-heading { justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.alunos-page .alunos-list-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.alunos-page .alunos-list-heading .form-check { margin: 0; font-size: 12px; color: var(--alunos-muted); flex-shrink: 0; }
.alunos-page .form-check-input { cursor: pointer; }
.alunos-page .form-check-input:checked { background-color: var(--alunos-brand); border-color: var(--alunos-brand); }
.alunos-page .form-check-input:focus { border-color: var(--alunos-brand); box-shadow: 0 0 0 3px rgba(139, 0, 0, .09); }
.alunos-page .alunos-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr 1.2fr 1fr; gap: 12px; padding: 20px 24px; background: #fafbfd; border-bottom: 1px solid var(--alunos-border); }
.alunos-page .alunos-filters > div { min-width: 0; }
.alunos-page .alunos-table-wrap { overflow-x: auto; }
.alunos-page .table-custom { width: 100%; min-width: 1080px; margin: 0; table-layout: fixed; border: 0; font-size: 12px; }
.alunos-page .table-custom > :not(caption) > * { border-width: 0; }
.alunos-page .table-custom thead th { padding: 14px 12px; border: 0; background: #f3f5f8; color: #5c6678; font-weight: 650; }
.alunos-page .table-custom th:nth-child(1) { width: 14%; }
.alunos-page .table-custom th:nth-child(2), .alunos-page .table-custom th:nth-child(3) { width: 11%; }
.alunos-page .table-custom th:nth-child(4) { width: 9%; }
.alunos-page .table-custom th:nth-child(5) { width: 15%; }
.alunos-page .table-custom th:nth-child(6) { width: 9%; }
.alunos-page .table-custom th:nth-child(7) { width: 9%; text-align: center; }
.alunos-page .table-custom th:nth-child(8) { width: 22%; }
.alunos-page #listaAlunos td { padding: 18px 12px; border: 0; border-top: 1px solid #edf0f4; vertical-align: middle; color: #526074; background: #fff; box-shadow: none; overflow-wrap: anywhere; }
.alunos-page #listaAlunos td:first-child { font-weight: 700; color: var(--alunos-ink); font-size: 13px; }
.alunos-page #listaAlunos td:nth-child(4) { font-weight: 650; color: var(--alunos-ink); }
.alunos-page #listaAlunos tr:hover td { background: #fafbfd; }
.alunos-page #listaAlunos tr.pagamento-pendente > td { background: #fffaf2 !important; }
.alunos-page #listaAlunos tr.table-secondary > td { background: #f0f2f5 !important; color: #717b8b; }
.alunos-page #listaAlunos tr.table-secondary td:first-child::after { content: "Desativado"; display: block; width: fit-content; margin-top: 6px; padding: 2px 7px; border-radius: 5px; background: #e3e7ed; font-size: 10px; font-weight: 600; color: #586174; }
.alunos-page .check-pagamento { width: 20px; height: 20px; vertical-align: middle; cursor: pointer; accent-color: #287e80; }
.alunos-page #listaAlunos .btn { margin: 3px 2px; padding: 7px 9px; font-size: 11px; line-height: 1.3; }
.alunos-page #listaAlunos .editar { background: #f7eeee; color: var(--alunos-brand); border-color: #e9cccc; }
.alunos-page #listaAlunos .editar:hover { background: #8b0000; color: #fff; }
.alunos-page #listaAlunos .btn-danger { background: #fff; color: #b33743; border-color: #ebcbd0; }
.alunos-page #listaAlunos .btn-danger:hover { background: #b33743; color: #fff; }
.alunos-page #listaAlunos .btn-success { background: #eef7f4; color: #267159; border-color: #c9e3d9; }
.alunos-page #listaAlunos .btn-success:hover { background: #267159; color: #fff; }
.alunos-page #listaAlunos .criar-usuario { background: #f1f3f8; color: #526074; border-color: #dce1e9; }
.alunos-page #listaAlunos .criar-usuario:hover { background: #526074; color: #fff; }
.alunos-page .alunos-empty { display: none; padding: 32px 20px; margin: 0; color: var(--alunos-muted); font-size: 13px; text-align: center; }
.alunos-page .table-custom:has(#listaAlunos:empty) + .alunos-empty { display: block; }
.alunos-page button:focus-visible, .alunos-page a:focus-visible, .alunos-page .check-pagamento:focus-visible { outline: 3px solid #b97979; outline-offset: 3px; }
/* Inclui os diálogos criados dinamicamente pelo JavaScript original. */
.alunos-page .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.alunos-page .modal-header { padding: 20px 24px; border-bottom-color: var(--alunos-border); }
.alunos-page .modal-title { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.alunos-page .modal-body { padding: 22px 24px; max-height: 65vh; overflow-y: auto; }
.alunos-page .modal-footer { padding: 16px 24px; border-top-color: var(--alunos-border); }
.alunos-page .modal-footer .btn { min-height: 44px; }
.alunos-page #infoAluno { height: 35vh !important; min-height: 160px; }
.alunos-page .error-flag { width: max-content; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.alunos-page .sidebar { display: block; z-index: 1020; }
@media (max-width: 1100px) {
  .alunos-page .alunos-content { padding-left: 24px; padding-right: 24px; }
  .alunos-page .alunos-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .alunos-page .alunos-content { padding: 100px 16px 32px; }
  .alunos-page .alunos-heading { gap: 12px; margin-bottom: 22px; }
  .alunos-page .alunos-heading-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
  .alunos-page .alunos-description { font-size: 13px; }
  .alunos-page .alunos-summary { gap: 12px; }
  .alunos-page .alunos-metric { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .alunos-page .alunos-metric p { font-size: 12px; }
  .alunos-page .alunos-metric small { font-size: 12px; }
  .alunos-page .alunos-panel-heading, .alunos-page .form-container .card-body, .alunos-page .alunos-filters { padding: 18px 16px; }
  .alunos-page .alunos-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .alunos-page .alunos-form-footer { flex-direction: column; align-items: stretch; }
  .alunos-page .alunos-form-footer > span { text-align: center; }
  .alunos-page .alunos-list-heading .form-check { margin-left: 52px; }
  .alunos-page .alunos-table-wrap { padding: 14px; overflow: visible; background: #f8f9fc; }
  /* Mesmas oito células, checkboxes e botões; somente a apresentação muda. */
  .alunos-page .table-custom { display: block; min-width: 0; }
  .alunos-page .table-custom thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .alunos-page #listaAlunos { display: grid; gap: 14px; }
  .alunos-page #listaAlunos tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--alunos-border); border-radius: 12px; overflow: hidden; background: #fff; }
  .alunos-page #listaAlunos tr.pagamento-pendente { background: #fffaf2; }
  .alunos-page #listaAlunos tr.table-secondary { background: #f0f2f5 !important; }
  .alunos-page #listaAlunos td { display: block; min-width: 0; border: 0; padding: 10px 14px; font-size: 13px; }
  .alunos-page #listaAlunos td:first-child { grid-column: 1 / -1; padding-top: 18px; padding-bottom: 12px; font-size: 16px; }
  .alunos-page #listaAlunos td:nth-child(5), .alunos-page #listaAlunos td:nth-child(7), .alunos-page #listaAlunos td:nth-child(8) { grid-column: 1 / -1; }
  .alunos-page #listaAlunos td:nth-child(4) { grid-row: 3; grid-column: 1; }
  .alunos-page #listaAlunos td:nth-child(6) { grid-row: 3; grid-column: 2; }
  .alunos-page #listaAlunos td:nth-child(5) { grid-row: 4; }
  .alunos-page #listaAlunos td::before { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--alunos-muted); }
  .alunos-page #listaAlunos td:nth-child(2)::before { content: "Telefone"; }
  .alunos-page #listaAlunos td:nth-child(3)::before { content: "CPF"; }
  .alunos-page #listaAlunos td:nth-child(4)::before { content: "Mensalidade"; }
  .alunos-page #listaAlunos td:nth-child(5)::before { content: "Endereço"; }
  .alunos-page #listaAlunos td:nth-child(6)::before { content: "Nascimento"; }
  .alunos-page #listaAlunos td:nth-child(7) { text-align: left !important; border-top: 1px solid #edf0f4; margin-top: 8px; padding-top: 14px; }
  .alunos-page #listaAlunos td:nth-child(7)::before { content: "Pagamento"; margin-bottom: 8px; }
  .alunos-page #listaAlunos td:nth-child(7)::after { content: "Marque quando estiver pago"; padding-left: 8px; font-size: 12px; }
  .alunos-page #listaAlunos td:nth-child(8) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 14px 18px; }
  .alunos-page #listaAlunos .btn { min-height: 44px; margin: 0; padding: 10px 7px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
  .alunos-page .modal-dialog { margin: 12px; }
  .alunos-page #modalInformacoesAluno .modal-dialog { margin-top: 24px !important; }
  .alunos-page .modal-header, .alunos-page .modal-body, .alunos-page .modal-footer { padding: 16px; }
  .alunos-page .modal-title { font-size: 17px; }
}
@media (max-width: 360px) {
  .alunos-page .alunos-heading-icon { display: none; }
  .alunos-page .alunos-metric { padding: 14px 12px; }
  .alunos-page .alunos-metric strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .alunos-page *, .alunos-page *::before, .alunos-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
