/* Nexo Diário — Item 31 — ajustes visuais de Estudantes
   09/08/2026
   Camada escopada ao módulo. Preserva responsive.css V5.3. */

.nd-student-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.nd-student-filter__field {
  flex: 1 1 22rem;
  max-width: 34rem;
}

.nd-student-filter__clear {
  flex: 0 0 auto;
  margin-bottom: 0.05rem;
}

.nd-student-form-page .nd-student-main-form,
.nd-student-form-page .nd-student-card-flow {
  gap: 0.9rem;
}

.nd-student-form-page .nd-student-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.9rem 1.15rem;
}

.nd-student-form-page .nd-student-form-grid > .nd-field {
  min-width: 0;
  align-content: start;
}

.nd-student-form-page .nd-student-form-grid .nd-field__label {
  min-height: 1.45rem;
}

.nd-student-form-page .nd-student-form-grid .nd-field__help {
  min-height: 2.5em;
  line-height: 1.35;
}

.nd-student-form-page .nd-student-form-actions,
.nd-student-form-page .nd-student-section-actions {
  justify-content: flex-end;
}

.nd-student-form-page .nd-student-form-actions {
  padding-top: 0.1rem;
}

.nd-student-form-page .nd-student-current-link {
  margin: 0;
}

.nd-student-form-page .nd-choice {
  align-items: flex-start;
}

.nd-student-form-page .nd-table-wrap {
  width: 100%;
}

@media (max-width: 720px) {
  .nd-student-filter {
    align-items: stretch;
  }

  .nd-student-filter__field {
    flex-basis: 100%;
    max-width: none;
  }

  .nd-student-filter__clear {
    align-self: flex-start;
    margin-bottom: 0;
  }

  .nd-student-form-page .nd-student-form-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .nd-student-form-page .nd-student-form-grid .nd-field__label,
  .nd-student-form-page .nd-student-form-grid .nd-field__help {
    min-height: 0;
  }

  .nd-student-form-page .nd-student-form-actions,
  .nd-student-form-page .nd-student-section-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .nd-student-form-page .nd-student-form-actions,
  .nd-student-form-page .nd-student-section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nd-student-form-page .nd-student-form-actions .nd-btn,
  .nd-student-form-page .nd-student-section-actions .nd-btn,
  .nd-student-filter__clear {
    width: 100% !important;
  }
}
