/* Student section refinements and responsive layout. */
.students-list-header {
  align-items: flex-start;
}
.students-list-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  flex: 0 1 auto;
  min-width: 0;
  margin-inline-start: auto;
}
.students-list-header h1 {
  margin-bottom: var(--sp-1);
}
.students-list-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.students-list-toolbar {
  align-items: flex-start;
  padding: var(--sp-3);
  /* border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm); */
}
.students-list-toolbar .input,
.students-filter-panel .input,
.students-filter-panel .select,
.student-modal .input,
.student-modal .select {
  min-height: 2.75rem;
}
.student-modal .textarea {
  min-height: 7rem;
}
.students-search {
  flex: 1 1 20rem;
}
.students-filter-trigger {
  flex: 0 0 auto;
}
.students-filter-trigger .ui-icon {
  width: 1rem;
  height: 1rem;
}
.students-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: calc(var(--sp-2) * -1) 0 var(--sp-4);
}
.students-active-filters[hidden] {
  display: none;
}
.students-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: 100%;
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-2);
  border: 1px solid rgba(3, 88, 140, 0.24);
  border-radius: var(--radius-pill);
  background: var(--status-info-bg);
  color: var(--c-blue-deep);
  font-size: var(--fs-caption);
  animation: student-chip-in var(--dur-normal) var(--ease-standard) both;
}
.students-filter-chip__remove {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.students-filter-chip__remove:hover,
.students-filter-chip__remove:focus-visible {
  background: rgba(3, 88, 140, 0.14);
}
.students-filter-chip__remove .ui-icon {
  width: 0.85rem;
  height: 0.85rem;
}
@keyframes student-chip-in {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.students-table {
  min-width: 64rem;
  width: 100%;
  table-layout: fixed;
  direction: rtl;
}
.students-table th:nth-child(1),
.students-table td:nth-child(1) {
  width: 3.5rem;
  min-width: 3.5rem;
  text-align: center;
}
.students-table th:nth-child(2),
.students-table td:nth-child(2) {
  width: 11%;
  min-width: 7rem;
}
.students-table th:nth-child(3),
.students-table td:nth-child(3) {
  width: 24%;
  min-width: 13rem;
}
.students-table th:nth-child(4),
.students-table td:nth-child(4) {
  width: 23%;
  min-width: 13rem;
}
.students-table th:nth-child(5),
.students-table td:nth-child(5) {
  width: 10%;
  min-width: 7.5rem;
}
.students-table th:nth-child(6),
.students-table td:nth-child(6) {
  width: 14%;
  min-width: 8.5rem;
}
.students-table th:nth-child(7),
.students-table td:nth-child(7),
.students-table th:nth-child(8),
.students-table td:nth-child(8) {
  width: 10%;
  min-width: 7rem;
}
.students-table th,
.students-table td {
  box-sizing: border-box;
  padding: 0.45rem var(--sp-3);
  overflow-wrap: break-word;
  vertical-align: middle;
  line-height: 1.4;
}
.students-table thead tr {
  height: auto;
}
.students-table tbody tr {
  height: auto;
}
.students-table tbody td {
  height: auto;
  padding-block: 0.55rem;
  vertical-align: middle;
  line-height: 1.4;
  white-space: normal;
}
.students-table-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
}
.students-table th {
  padding-block: 0.4rem;
  letter-spacing: 0.01em;
  white-space: normal;
  vertical-align: middle;
  line-height: 1.25;
}
.students-table td:nth-child(1),
.students-table td:nth-child(5) {
  white-space: nowrap;
}
.students-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-name-cell {
  overflow-wrap: anywhere;
  white-space: normal;
}
.students-table td:nth-child(3) {
  white-space: normal;
}
.students-table td:nth-child(6),
.students-table td:nth-child(7) {
  white-space: nowrap;
}
.students-table__heading {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.students-table__header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  min-width: 0;
}
.students-column-select,
.student-row-select {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: copy;
  vertical-align: middle;
}
.students-column-select {
  box-sizing: border-box;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
}
.students-column-select:hover,
.students-column-select:focus-visible,
.student-row-select:hover,
.student-row-select:focus-visible {
  border-color: var(--brand-blue);
  background: var(--status-info-bg);
  color: var(--brand-blue-dark);
}
.students-column-select .ui-icon,
.student-row-select .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
}
.students-column-select .ui-icon {
  width: 0.75rem;
  height: 0.75rem;
}
.student-number-cell {
  display: table-cell;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.student-number-value {
  display: inline-block;
  min-width: 4.5rem;
  margin-inline-end: var(--sp-1);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.student-phone-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.student-phone-cell .ltr-inline {
  display: inline-block;
  min-width: 7rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.student-enrollment-cell {
  vertical-align: middle;
}
.student-enrollment-cell__content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--sp-2);
  line-height: 1.25;
  white-space: normal;
}
.student-enrollment-cell__content > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.student-enrollment-cell__content > span + span::before {
  flex: 0 0 auto;
  margin-inline-end: var(--sp-2);
  color: var(--text-muted);
  content: "/";
}
.students-table .badge {
  box-sizing: border-box;
  min-height: 1.5rem;
  line-height: 1.15;
  white-space: nowrap;
}
.students-table td > .badge,
.students-table td > .student-phone-cell,
.students-table td > .student-enrollment-cell__content {
  vertical-align: middle;
}
.student-enrollment-empty {
  color: var(--text-muted);
}
.student-row:focus-visible {
  box-shadow:
    inset 3px 0 0 var(--c-blue),
    0 0 0 2px var(--c-blue);
}
.student-photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg-sunken), #fff);
  color: var(--c-sand);
  border-color: var(--c-ochre);
}
.student-photo-placeholder .ui-icon {
  width: 2.75rem;
  height: 2.75rem;
  stroke-width: 1.5;
}
.student-completeness-card {
  border-inline-start: 4px solid var(--status-success);
}
.student-completeness-card--incomplete {
  border-inline-start-color: var(--status-warning);
  background: var(--status-warning-bg);
}
.student-completeness-card--missing {
  border-inline-start-color: var(--brand-orange);
  background: var(--status-warning-bg);
}
.student-record-card {
  border-top: 3px solid var(--brand-blue-dark);
}
.student-profile-header {
  direction: ltr;
}
.student-profile-header__content {
  direction: rtl;
  text-align: right;
}
.student-record-card .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--sp-5);
}
.student-record-card .field {
  min-width: 0;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border-default);
}
.student-record-card .field label {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.student-record-card .field > div {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-weight: 600;
  line-height: var(--lh-loose);
}
.student-record-actions {
  border-inline-start: 3px solid var(--brand-orange);
}
.student-app-access-credentials-note {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3);
  border-inline-start: 3px solid var(--status-warning);
  border-radius: var(--radius-sm);
  background: var(--status-warning-bg);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
}
.student-record-actions__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--sp-3);
}
.student-record-actions__group {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}
.student-record-actions__group h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.student-record-actions__group-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.student-record-actions__group-controls .btn,
.student-family-detail .student-detail-value .btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  white-space: normal;
  text-align: center;
}
.student-record-actions__group-controls .ui-icon,
.student-family-detail .student-detail-value .ui-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.student-family-detail .student-detail-value {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.student-record-history {
  border-top: 2px solid var(--brand-black);
}
.student-completeness-card h3 {
  margin-bottom: var(--sp-2);
}
.student-completeness-card ul {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--text-secondary);
}
.student-completeness-card p {
  margin: 0;
  color: var(--text-secondary);
}

.students-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
  padding-inline: var(--sp-2);
}
.students-results-summary {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}
.students-table-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: var(--sp-3);
  padding-inline: var(--sp-2);
}
.students-selection-status {
  color: var(--text-muted);
  font-size: var(--fs-caption);
  white-space: nowrap;
}
.students-selection-status.has-selection {
  color: var(--brand-blue-dark);
  font-weight: 700;
}
.students-select-all-results {
  border-color: color-mix(
    in srgb,
    var(--brand-blue) 35%,
    var(--border-default)
  );
  color: var(--brand-blue-dark);
}
.students-select-all-results:hover,
.students-select-all-results:focus-visible {
  border-color: var(--brand-blue);
  background: var(--status-info-bg);
}
.students-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-inline-start: auto;
}
.students-export-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.students-export-actions .ui-icon {
  width: 1rem;
  height: 1rem;
}
.students-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-block: var(--sp-4) var(--sp-6);
}
.students-pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.students-pagination__button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
}
.students-pagination__button:hover:not(:disabled),
.students-pagination__button:focus-visible {
  border-color: var(--brand-blue);
  background: var(--status-info-bg);
}
.students-pagination__button.is-current {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
  color: var(--text-on-brand);
  font-weight: 700;
}
.students-pagination__button.is-current:hover:not(:disabled),
.students-pagination__button.is-current:focus-visible,
.students-pagination__button.is-current:active {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
  color: var(--text-on-brand);
}
.students-pagination__button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.students-pagination__ellipsis {
  min-width: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.students-pagination__jump {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.students-pagination__jump .input {
  width: 4.5rem;
  min-height: 2.75rem;
  padding: var(--sp-1) var(--sp-2);
  text-align: center;
}
.students-select-checkbox,
.students-select-all {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand-blue-dark);
  cursor: pointer;
  vertical-align: middle;
}
.students-select-column {
  width: 3.5rem;
  text-align: center;
}
.student-select-cell {
  width: 3.5rem;
  text-align: center;
  vertical-align: middle;
}
.students-select-all {
  margin: 0;
}

@media (max-width: 900px) {
  .students-list-toolbar {
    flex-wrap: wrap;
  }
  .students-search {
    flex-basis: calc(100% - 10rem);
  }
  .students-table th,
  .students-table td {
    padding: var(--sp-2);
    font-size: var(--fs-caption);
  }
  .students-table th {
    padding-block: 0.4rem;
  }
  .students-table td {
    padding-block: var(--sp-1);
  }
  .student-modal__body {
    max-height: calc(100vh - 9rem);
  }
}

@media (max-width: 600px) {
  .students-list-header {
    gap: var(--sp-2);
    align-items: stretch;
    flex-direction: column;
  }
  .students-list-header__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-inline-start: 0;
  }
  .students-list-header__actions .btn {
    width: 100%;
  }
  .students-list-toolbar {
    padding: var(--sp-2);
    gap: var(--sp-2);
  }
  .students-search {
    flex-basis: 100%;
  }
  .students-filter-trigger {
    width: 100%;
  }
  .students-filter-panel {
    inset-inline: var(--sp-2);
    top: calc(100% + var(--sp-2));
    max-height: calc(100vh - 7rem);
    padding: var(--sp-3);
  }
  .students-active-filters {
    margin-top: var(--sp-2);
  }
  .students-filter-chip {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .student-profile-header {
    direction: ltr;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
  }
  .student-profile-header__content {
    width: 100%;
  }
  .student-profile-header__meta,
  .student-profile-header__status {
    justify-content: center;
  }
  .student-profile-header__photo {
    width: 7rem;
  }
  .student-modal__footer {
    flex-wrap: wrap;
    padding: var(--sp-3) var(--sp-4);
  }
  .student-modal__footer .btn {
    flex: 1 1 9rem;
  }
  .student-photo {
    width: 100%;
  }
  .student-photo__preview {
    width: 6rem;
  }
  .student-record-card .form-grid {
    grid-template-columns: 1fr;
  }
  .students-table {
    min-width: 64rem;
  }
  .students-results-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding-inline: 0;
  }
  .students-selection-status,
  .students-select-all-results {
    width: 100%;
  }
  .students-select-all-results {
    text-align: center;
  }
  .students-export-actions {
    width: 100%;
    margin-inline-start: 0;
  }
  .students-export-actions .btn {
    flex: 1 1 8rem;
    justify-content: center;
  }
  .students-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .students-pagination__pages {
    justify-content: space-between;
    width: 100%;
  }
  .students-pagination__pages
    .students-pagination__button:not(:first-child):not(:last-child),
  .students-pagination__ellipsis {
    display: none;
  }
  .students-pagination__jump {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 401px) and (max-width: 600px) {
  .students-list-header__actions {
    flex-direction: row;
  }
  .students-list-header__actions .btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .students-filter-chip,
  .student-row,
  .students-filter-trigger,
  .students-filter-panel {
    animation: none !important;
    transition: none !important;
  }
}

.student-modal__body .field-group {
  margin-block-end: var(--sp-5);
}
.student-modal__body .field-group__title {
  margin-block: 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-default);
}
.student-modal__body .field--new-row {
  grid-column: 1 / -1;
}
.student-modal__body .field-group--file-checklist {
  margin-block-end: var(--sp-7);
  padding: var(--sp-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}
.student-health-group,
.student-social-group {
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}
.student-health-group > .form-grid > .field,
.student-social-group > .form-grid > .field {
  grid-column: 1 / -1;
  min-width: 0;
}
.student-health-legacy-note {
  grid-column: 1 / -1;
  margin: 0 0 var(--sp-2);
  overflow-wrap: anywhere;
}
.student-health-group textarea,
.student-social-group textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 7rem;
  resize: vertical;
  line-height: var(--lh-loose);
  white-space: pre-wrap;
}
.student-health-option-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--sp-2);
  min-width: 0;
}
.student-health-option {
  display: inline-flex !important;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--sp-2);
  min-width: 8.5rem;
  min-height: 2.75rem;
  margin: 0 !important;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-weight: 500 !important;
  line-height: 1.35;
  cursor: pointer;
}
.student-health-option:has(input:checked) {
  border-color: var(--brand-blue);
  background: var(--status-info-bg);
  color: var(--brand-blue-dark);
}
.student-health-option input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--brand-blue-dark);
}
.student-health-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.student-health-option--legacy {
  border-style: dashed;
  background: var(--status-warning-bg);
}
.student-file-checklist {
  display: grid;
  gap: var(--sp-4);
}
.student-file-checklist__group {
  display: grid;
  gap: var(--sp-2);
}
.student-file-checklist__group h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.student-file-checklist__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-2);
}
.student-file-checklist__item {
  display: flex !important;
  align-items: flex-start;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0 !important;
  padding: var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-weight: 400 !important;
  line-height: var(--lh-loose);
  cursor: pointer;
}
.student-file-checklist__item input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand-blue-dark);
}
.student-file-checklist__item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-4);
}
.student-detail-grid > *,
.student-detail-card {
  min-width: 0;
}
.student-detail-grid > .card {
  margin-top: 0;
}
.student-detail-card__title {
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-default);
}
.student-detail-card__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0 var(--sp-4);
}
.student-detail-card__fields > .field {
  min-width: 0;
  margin: 0;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border-default);
}
.student-detail-card__fields > .field label {
  margin-bottom: var(--sp-1);
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.student-detail-value {
  min-width: 0;
  direction: rtl;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-weight: 600;
  line-height: var(--lh-loose);
  white-space: pre-wrap;
}
.student-family-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.student-family-detail {
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}
.student-family-detail h4,
.student-file-checklist-category h4 {
  margin: 0 0 var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.student-family-detail__fields {
  display: grid;
  gap: 0 var(--sp-3);
}
.student-family-detail .field {
  min-width: 0;
  margin: 0;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border-default);
}
.student-family-detail .field label {
  margin-bottom: var(--sp-1);
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}
.student-detail-card--documents {
  margin-block: 0 var(--sp-4);
}
.student-file-checklist-list {
  display: grid;
  gap: var(--sp-4);
}
.student-file-checklist-category {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}
.student-file-checklist-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.student-file-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-width: 0;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.student-file-checklist-item.is-received {
  border-color: color-mix(
    in srgb,
    var(--status-success) 28%,
    var(--border-default)
  );
  background: var(--status-success-bg);
}
.document-status-checkbox {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 2px solid var(--border-strong);
  border-radius: 0.2rem;
  background: var(--bg-surface);
}
.document-status-checkbox::after {
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: translateY(-0.05rem) rotate(45deg);
}
.document-status-checkbox.is-checked {
  border-color: var(--status-success);
  background: var(--status-success);
}
.document-status-checkbox.is-checked::after {
  opacity: 1;
}
.student-file-checklist-item__label {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  line-height: var(--lh-normal);
}
.student-file-checklist-item__state {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  white-space: nowrap;
}
.student-file-checklist-item.is-received .student-file-checklist-item__state {
  color: var(--status-success);
  font-weight: 600;
}
.student-identity-group .student-guardian-groups,
.student-identity-group .student-relative-group {
  grid-column: 1 / -1;
  min-width: 0;
}
.student-guardian-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.student-guardian-group,
.student-relative-group {
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}
.student-guardian-group h4,
.student-relative-group h4 {
  margin: 0 0 var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.student-guardian-group__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0 var(--sp-3);
}
.student-relative-group__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0 var(--sp-3);
}
.student-guardian-group__fields .field,
.student-relative-group__fields .field {
  min-width: 0;
}

@media (max-width: 760px) {
  .student-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .student-family-detail-grid,
  .student-guardian-groups,
  .student-file-checklist-items {
    grid-template-columns: 1fr;
  }
  .student-detail-card__fields {
    grid-template-columns: 1fr;
  }
  .student-record-actions__group-controls,
  .student-family-detail .student-detail-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .student-record-actions__group-controls .btn,
  .student-family-detail .student-detail-value .btn {
    width: 100%;
  }
  .student-detail-card--documents {
    padding: var(--sp-3);
  }
  .student-file-checklist-item {
    padding: var(--sp-2);
  }
}
