/* Full student and guardian editing. Loaded after the base bundle. */
.student-entry-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.student-entry-form > section {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.student-entry-form > section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.student-entry-form h3,
.guardian-editor h2 {
  margin: 0;
  font-size: 14px;
}

.guardian-section-heading,
.guardian-edit__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guardian-section-heading {
  margin-bottom: 14px;
}

.guardian-section-heading .button {
  min-height: 34px;
}

.guardian-edit {
  padding: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.guardian-edit:first-of-type {
  padding-top: 2px;
}

.guardian-edit__header > strong {
  color: var(--muted);
  font-size: 11px;
}

.guardian-edit__header .icon-button {
  width: 34px;
  height: 34px;
  color: var(--danger);
}

.guardian-edit--compact .form-grid {
  margin-top: 2px;
}

.info-layout--editor {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  align-items: start;
}

.guardian-editor {
  padding: 22px;
}

.guardian-editor > .guardian-section-heading {
  margin-bottom: 2px;
}

.guardian-editor .sensitive-box {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .info-layout--editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-action-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .guardian-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .guardian-section-heading .button {
    width: 100%;
  }
}
