/* Alunos: manter a tabela completa e os botões de ação visíveis a 100% no desktop. */
@media (min-width: 1100px) {
  body:has(.nd-student-toolbar) .nd-student-toolbar {
    flex-wrap: nowrap;
    gap: 8px !important;
  }

  body:has(.nd-student-toolbar) .nd-student-search {
    flex: 1 1 auto;
    min-width: 160px;
  }

  body:has(.nd-student-toolbar) .nd-student-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  body:has(.nd-student-toolbar) .table-surface {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.nd-student-toolbar) .table-surface [data-slot="table-container"] {
    width: 100%;
    overflow-x: hidden;
  }

  body:has(.nd-student-toolbar) .table-surface [data-slot="table"] {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
  }

  body:has(.nd-student-toolbar) .table-surface th,
  body:has(.nd-student-toolbar) .table-surface td {
    padding: 11px 8px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
  }

  /* Aluno, matrícula, categoria, telefone, matrícula, compra, recebido, situação e ações. */
  body:has(.nd-student-toolbar) .table-surface th:nth-child(1),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(1) { width: 17%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(2),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(2) { width: 9%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(3),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(3) { width: 6%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(4),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(4) { width: 11%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(5),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(5),
  body:has(.nd-student-toolbar) .table-surface th:nth-child(6),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(6) { width: 10%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(7),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(7) { width: 9%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(8),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(8) { width: 9%; }
  body:has(.nd-student-toolbar) .table-surface th:nth-child(9),
  body:has(.nd-student-toolbar) .table-surface td:nth-child(9) {
    width: 19%;
    min-width: 164px;
    text-align: center !important;
  }

  body:has(.nd-student-toolbar) .table-surface td:nth-child(9) > button {
    min-height: 32px;
    margin: 2px 2px;
    padding: 5px 8px !important;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (min-width: 1100px) and (max-width: 1360px) {
  body:has(.nd-student-toolbar) .table-surface th,
  body:has(.nd-student-toolbar) .table-surface td {
    padding-inline: 6px !important;
    font-size: 12px;
  }

  body:has(.nd-student-toolbar) .table-surface td:nth-child(9) > button {
    padding-inline: 7px !important;
  }
}

@media (max-width: 1099px) {
  body:has(.nd-student-toolbar) .table-surface,
  body:has(.nd-student-toolbar) .table-surface [data-slot="table-container"] {
    overflow-x: auto;
  }
}
