@charset "UTF-8";
.person-list {
  --bs-border-color: var(--ms-border);
  --pl-control-radius: 30px;
  --pl-toolbar-control: 2.35rem;
  --pl-table-text: var(--ms-text);
  padding-bottom: 3rem;
}
.person-list .btn,
.person-list .form-select,
.person-list .pl-filter-btn {
  border-radius: var(--pl-control-radius);
}
.person-list .dropdown-menu {
  border-radius: var(--ms-radius-lg);
}

.person-list--armies {
  padding-bottom: 200px;
}

.pl-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pl-header > .pl-header__titles {
  flex: 1 1 0;
}
@media (max-width: 900px) {
  .pl-header > .pl-header__titles {
    flex-basis: 100%;
  }
}

.pl-header--wide-breadcrumb {
  row-gap: 0.7rem;
}
.pl-header--wide-breadcrumb > .pl-header__titles {
  display: contents;
}
.pl-header--wide-breadcrumb .pl-breadcrumb {
  flex-basis: 100%;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.pl-header--wide-breadcrumb .pl-breadcrumb > * {
  max-width: 100%;
}
.pl-header--wide-breadcrumb .pl-title {
  flex: 1 1 0;
}
.pl-header--wide-breadcrumb .cm-subtitle {
  flex-basis: 100%;
  order: 1;
}
@media (max-width: 900px) {
  .pl-header--wide-breadcrumb .pl-title {
    flex-basis: 100%;
  }
}
@media (max-width: 575.98px) {
  .pl-header--wide-breadcrumb .pl-title {
    overflow-wrap: anywhere;
  }
  .pl-header--wide-breadcrumb .pl-total {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
}

.pl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ms-text-muted);
  margin-bottom: 0.7rem;
}
.pl-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-radius: var(--ms-radius-sm);
  transition: color 0.15s ease;
}
.pl-breadcrumb a:hover,
.pl-breadcrumb a:focus-visible {
  color: var(--ms-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.pl-breadcrumb a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 45%, transparent);
  outline-offset: 2px;
}
.pl-breadcrumb .sep {
  opacity: 0.6;
}
.pl-breadcrumb .current {
  color: var(--ms-text);
  font-weight: 500;
}

.pl-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: calc(-0.01em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  color: var(--cm-dashboard-heading);
  margin: 0;
}
.pl-title :is(.badge, .pl-status, .seat-chip) {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ms-radius-pill);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}
.pl-title :is(.badge, .pl-status, .seat-chip) .material-symbols-outlined {
  font-size: 1em;
}
.pl-title .student-detail__identity {
  text-transform: none;
}
.pl-title .pl-total {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.student-detail__identity, .pl-idchip, .pl-total {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ms-radius-pill);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  border: 0;
  background: var(--ms-chip-counter-bg);
  color: var(--ms-chip-counter-text);
  letter-spacing: calc(0.08em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  white-space: nowrap;
}

.pl-total {
  font-variant-numeric: tabular-nums;
}

.person-list--horarios .horarios-tabs-slot {
  display: contents;
}
.person-list--horarios .horarios-tab-actions {
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.pl-idchip {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ms-border);
  color: var(--ms-text-muted);
  font-variant-numeric: tabular-nums;
}

.pl-waiting {
  margin-bottom: 1rem;
}
.pl-waiting__part + .pl-waiting__part {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--ms-warning) 30%, transparent);
}
.pl-waiting__title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.925rem;
  font-weight: 400;
}
.pl-waiting__title > .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: calc(0.925rem * var(--bs-body-line-height));
}
.pl-waiting__title > a {
  color: inherit;
}
.pl-waiting__line {
  min-width: 0;
}
.pl-waiting .pl-waiting__code, .pl-waiting .pl-waiting__line > a {
  color: var(--bs-link-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.pl-waiting .pl-waiting__code:hover, .pl-waiting .pl-waiting__code:focus-visible, .pl-waiting .pl-waiting__line > a:hover, .pl-waiting .pl-waiting__line > a:focus-visible {
  color: var(--bs-link-hover-color);
}
.pl-waiting .pl-waiting__code > .material-symbols-outlined {
  font-size: 1rem;
  vertical-align: -0.2em;
  margin-right: 0.15rem;
}
.pl-waiting__help {
  margin: 0.2rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.875rem;
}
.pl-waiting__line > .pl-waiting__help {
  display: inline;
  margin: 0;
}
.pl-waiting__list, .pl-waiting__codes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-waiting__list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.pl-waiting__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  min-width: 0;
  font-size: 0.875rem;
}
.pl-waiting__course {
  font-weight: 500;
}
.pl-waiting__details {
  color: var(--ms-text-muted);
}
.pl-waiting__count {
  margin-left: auto;
  color: var(--ms-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pl-waiting .pl-waiting__create {
  flex: 0 0 auto;
}
.pl-waiting .ms-button, .pl-waiting .ms-button:hover, .pl-waiting .ms-button:focus-visible {
  color: var(--ms-onPrimary);
  text-decoration: none;
}
.pl-waiting .ms-button > .material-symbols-outlined, .pl-waiting .ms-button:hover > .material-symbols-outlined, .pl-waiting .ms-button:focus-visible > .material-symbols-outlined {
  color: inherit;
}
.pl-waiting__codes {
  margin: 0.15rem 0 0 0.75rem;
  color: var(--ms-text-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.pl-waiting__code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.15rem;
}

.pl-subtitle {
  max-width: 60ch;
  margin: -0.5rem 0 1rem;
  color: var(--ms-text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.pl-header--stacked {
  flex-direction: column;
  align-items: stretch;
}
.pl-header--stacked > .pl-actions {
  justify-content: flex-start;
}

.pl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pl-actions .btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}
.pl-actions .btn:active {
  transform: scale(0.9);
}
.pl-actions .pl-btn-blocked,
.pl-actions .pl-btn-blocked:hover,
.pl-actions .pl-btn-blocked:focus {
  border-color: var(--ms-border);
  background: var(--ms-bg);
  color: var(--ms-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.pl-actions-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 1.5rem;
  margin: 0 0.2rem;
  background: var(--ms-border);
}

.person-list--asistencia > .pl-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
}
.person-list--asistencia > .pl-header > .pl-header__titles {
  display: contents;
}
.person-list--asistencia > .pl-header .pl-breadcrumb {
  grid-column: 1/-1;
  grid-row: 1;
}
.person-list--asistencia > .pl-header .pl-title {
  grid-column: 1;
  grid-row: 2;
}
.person-list--asistencia > .pl-header .cm-subtitle {
  grid-column: 1/-1;
  grid-row: 3;
}
.person-list--asistencia > .pl-header > .asistencia-actions {
  grid-column: 2;
  grid-row: 2;
}
@media (max-width: 575.98px) {
  .person-list--asistencia > .pl-header > .asistencia-actions {
    grid-column: 1/-1;
    grid-row: 4;
    justify-items: start;
  }
}

.person-list--asistencia .asistencia-tabs-slot {
  display: contents;
}

.asistencia-actions {
  display: grid;
  justify-items: end;
}
.asistencia-actions > .pl-actions {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.asistencia-actions > .pl-actions.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .asistencia-actions > .pl-actions,
  .asistencia-actions > .pl-actions.is-active {
    transition: none;
  }
}

.pl-navcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.75rem;
}

.fleet-stack {
  display: grid;
  gap: 1.25rem;
}
.fleet-stack > .card.detail-section {
  margin-bottom: 0;
}

.pl-navcard {
  display: block;
  height: 100%;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pl-navcard:hover,
.pl-navcard:focus-visible {
  border-color: color-mix(in srgb, var(--brand-color) 28%, transparent);
  background: color-mix(in srgb, var(--brand-color) 4%, var(--ms-surface));
}

[data-bs-theme=dark] .pl-navcard,
html.dark .pl-navcard,
[data-bs-theme=dark] .pl-navcard:hover,
[data-bs-theme=dark] .pl-navcard:focus-visible,
html.dark .pl-navcard:hover,
html.dark .pl-navcard:focus-visible {
  border-color: transparent;
}

.pl-navcard:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 45%, transparent);
  outline-offset: 2px;
}

.pl-navcard--ghost {
  border-style: dashed;
}

.pl-navcard__body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.pl-navcard__icon {
  flex: 0 0 auto;
  color: var(--ms-orange);
  font-size: 1.75rem;
}

.pl-navcard--ghost .pl-navcard__icon,
.pl-navcard--empty .pl-navcard__icon {
  color: var(--cm-dashboard-muted, var(--ms-text-muted));
}

.pl-navcard__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pl-navcard__name {
  color: var(--cm-dashboard-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.pl-navcard__count {
  color: var(--cm-dashboard-muted, var(--ms-text-muted));
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pl-navcard__note {
  margin-top: 0.15rem;
  color: var(--cm-dashboard-muted, var(--ms-text-muted));
  font-size: 0.75rem;
  line-height: 1.35;
}

.pl-navcard--empty:hover {
  border-color: var(--ms-border);
  background: var(--ms-surface);
}

.pl-navcard__chevron {
  flex: 0 0 auto;
  color: var(--cm-dashboard-muted, var(--ms-text-muted));
  font-size: 1.25rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.pl-navcard:hover .pl-navcard__chevron {
  color: var(--ms-primary);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .pl-navcard__chevron {
    transition: none;
  }
  .pl-navcard:hover .pl-navcard__chevron {
    transform: none;
  }
}
.ms-swap-in .pl-navcard-in {
  animation: pl-navcard-in 0.22s ease-out both;
}

@keyframes pl-navcard-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-swap-in .pl-navcard-in {
    animation: none;
  }
}
.pl-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-height: 12rem;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: var(--ms-radius-lg);
  opacity: 1;
  transition: max-height 260ms cubic-bezier(0.2, 0.7, 0.2, 1), margin-bottom 260ms cubic-bezier(0.2, 0.7, 0.2, 1), padding-block 260ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pl-bulkbar:not(.is-open) {
  max-height: 0;
  margin-bottom: 0;
  padding-block: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
}
.pl-bulkbar.is-open:not(.is-settled) {
  overflow: hidden;
}
.pl-bulkbar[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pl-bulkbar {
    transition: none;
  }
}
.pl-bulkbar-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--ms-primary);
  font-size: 1rem;
  font-weight: 400;
}
.pl-bulkbar-count .person-selected-count-value {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.pl-bulkbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.pl-bulkbar-actions .is-busy .ms-button__icon {
  animation: pl-bulk-spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pl-bulkbar-actions .is-busy .ms-button__icon {
    animation: none;
  }
}
.pl-bulkbar-actions .pl-bulkbar-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 1.5rem;
  margin: 0 0.2rem;
  background: var(--ms-border);
}
.pl-bulkbar-actions .pl-bulk-delete-btn {
  --bs-btn-bg: rgb(var(--bs-danger-rgb));
  --bs-btn-border-color: rgb(var(--bs-danger-rgb));
  --bs-btn-disabled-bg: rgb(var(--bs-danger-rgb));
  --bs-btn-disabled-border-color: rgb(var(--bs-danger-rgb));
}
.pl-bulkbar-actions .btn {
  font-size: 0.8rem;
  transition: transform 0.12s ease;
}
.pl-bulkbar-actions .btn:hover, .pl-bulkbar-actions .btn:active {
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}
.pl-bulkbar-actions .btn:active {
  transform: scale(0.9);
}

.person-list .pl-card,
.student-detail .pl-card {
  overflow: hidden;
  box-shadow: var(--ms-shadow-card);
}

.pl-cardhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4rem;
  padding: 0.75rem 1.5rem;
}

.pl-cardhead:has(> .nav-pills) {
  flex-wrap: nowrap;
}
.pl-cardhead:has(> .nav-pills) > .nav-pills {
  flex: 0 1 auto;
  min-width: 0;
}
.pl-cardhead:has(> .nav-pills) > .pl-cardhead-tools {
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .pl-cardhead:has(> .nav-pills) {
    flex-wrap: wrap;
  }
  .pl-cardhead:has(> .nav-pills) > .pl-cardhead-tools {
    flex: 1 1 100%;
  }
  .pl-cardhead:has(> .nav-pills) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .pl-cardhead:has(> .nav-pills) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) input,
  .pl-cardhead:has(> .nav-pills) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) input:focus {
    width: 100%;
  }
}

.pl-cardhead--stacks {
  container: pl-cardhead/inline-size;
}

.pl-cardhead--stacks:has(> .nav-pills) {
  flex-wrap: wrap;
}

@container pl-cardhead (max-width: 66rem) {
  .pl-cardhead--stacks:has(> .nav-pills) > .nav-pills {
    flex: 1 1 100%;
  }
}
@media (max-width: 575.98px) {
  .pl-cardhead:has(> .pl-subnav) > .pl-cardhead-tools {
    flex: 1 1 100%;
  }
  .pl-cardhead:has(> .pl-subnav) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .pl-cardhead:has(> .pl-subnav) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) input,
  .pl-cardhead:has(> .pl-subnav) > .pl-cardhead-tools > :is(.dt-cardsearch, .dt-search) input:focus {
    width: 100%;
  }
}
.pl-cardhead-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ms-text-muted);
}

[data-bs-theme=dark] .pl-cardhead-title,
html.dark .pl-cardhead-title {
  color: var(--ms-neutralWhite);
}

.pl-cardhead-tools {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  margin-left: auto;
}

.pl-sort-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: calc(0.03em + var(--ms-a11y-letter-add, 0em));
  color: var(--ms-text-muted);
  margin: 0;
  white-space: nowrap;
}

.pl-sort-select {
  width: auto;
  min-width: 9rem;
  border: 1px solid var(--ms-border);
  font-size: 0.8rem;
}

.pl-filter-btn {
  flex: 0 0 var(--pl-toolbar-control);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pl-toolbar-control);
  height: var(--pl-toolbar-control);
  border: 1px solid var(--ms-border);
  background-color: var(--ms-surface);
  border-radius: var(--ms-radius-pill);
  color: var(--ms-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.pl-filter-btn:hover, .pl-filter-btn:focus-visible {
  border-color: var(--ms-border);
  background-color: var(--ms-surface);
  color: var(--ms-primary);
}
.pl-filter-btn:active, .pl-filter-btn.is-open {
  border-color: var(--ms-border);
  background-color: color-mix(in srgb, var(--ms-primary) 8%, var(--ms-surface));
  color: var(--ms-primary);
}
.pl-filter-btn:active {
  transform: scale(0.9);
}
.pl-filter-btn .material-symbols-outlined {
  font-size: 20px;
}

.pl-filter-count,
.pl-columns-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: var(--ms-radius-pill);
  background: var(--ms-success);
  color: var(--ms-neutralWhite);
  font-size: 0.65rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pl-filter-count[hidden],
.pl-columns-count[hidden] {
  display: none;
}

.pl-columns-count {
  background: var(--ms-danger);
}

.pl-filters-panel {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  opacity: 0;
  transition: grid-template-rows 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: grid-template-rows;
}
.pl-filters-panel > * {
  min-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1) 40ms, padding 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pl-filters-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.pl-filters-panel.is-open > * {
  padding: 0.65rem 1rem;
  transform: none;
}
.pl-filters-panel.is-open.is-settled > * {
  overflow: visible;
}
.pl-filters-panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pl-filters-panel {
    transition: none;
  }
}
.pl-filters-inline {
  /* The filters are SELECTS (see below), so the control radius inside this bar is the select's,
     not the list's pill. Set as a variable rather than as a border-radius so it also wins where
     the radius is applied by a heavier rule — the table card sets `.pl-filters-inline .btn` with
     four classes and would otherwise keep handing these a 30px pill. */
  --pl-control-radius: var(--ms-radius-sm);
  margin: 0;
  font-size: 0.8rem;
}
.pl-filters-inline .dropdown-menu {
  font-size: 0.8rem;
}
.pl-filters-inline .btn,
.pl-filters-inline .form-control,
.pl-filters-inline .form-label,
.pl-filters-inline .dropdown-item,
.pl-filters-inline .dropdown-item-text {
  font-size: 0.8rem;
}
.pl-filters-inline .btn {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.pl-filters-inline .btn:active {
  transform: scale(0.9);
}
.pl-filters-inline {
  /* A filter IS a select — it opens a list and you pick from it — so it wears the app's select and
     not Bootstrap's outline button. Every declaration below is .ms-select__toggle's (app.scss),
     which is what makes these read as the same control the rest of the panel uses instead of as a
     row of pills belonging to the table alone. */
}
.pl-filters-inline .dropdown-toggle,
.pl-filters-inline .form-select {
  height: 2.4rem;
  padding: 0 0.75rem;
  /* Overrides the list's pill radius for these two ONLY: the header actions stay pills, the
     filters become selects. */
  border-radius: var(--ms-radius-sm);
  border: 1px solid color-mix(in srgb, var(--ms-border) 80%, transparent);
  background-color: color-mix(in srgb, var(--ms-bg) 82%, var(--ms-surface));
  color: var(--ms-text);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pl-filters-inline .dropdown-toggle:hover,
.pl-filters-inline .form-select:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
}
.pl-filters-inline .dropdown-toggle:focus-visible,
.pl-filters-inline .form-select:focus-visible {
  border-color: var(--ms-primaryColor);
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 40%, transparent);
  outline-offset: 1px;
}
.pl-filters-inline {
  /* The select's own chevron, not Bootstrap's solid caret triangle — and it turns over when the
     list is open, the way the app's select does. */
}
.pl-filters-inline .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pl-filters-inline .dropdown-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: auto;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa3ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform 0.18s ease;
}
.pl-filters-inline .dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(180deg);
}
.pl-filters-inline {
  /* Open: the same primary tint the select uses to say "this one is showing its list". */
}
.pl-filters-inline .dropdown-toggle.show {
  border-color: var(--ms-primary);
  background-color: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  color: var(--ms-primary);
}

.person-list--grades-section .grade-filter-subject {
  width: min(22rem, 100%);
}

.person-list--grades-section .grade-filter-status {
  width: auto;
  min-width: min(12rem, 100%);
}

.pf-clear {
  text-decoration: none;
  transition: color 0.15s ease;
}
.pf-clear:hover, .pf-clear:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pf-menu .student-detail__clearable-field {
  position: relative;
  width: 100%;
  min-width: 0;
  --ms-field-end: 2.6rem;
}
.pf-menu .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
.pf-menu .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.pf-menu .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > input {
  padding-right: 4.5rem;
}
.pf-menu .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.pf-menu .student-detail__clearable-field--date {
  display: block;
  width: 100%;
  max-width: none;
}
.pf-menu .student-detail__clearable-field--date > input.form-control {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.pf-menu .student-detail__clearable-field--date > input.form-control::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transform: translateY(-50%);
}
.pf-menu .student-detail__clearable-field--date:not(.student-detail__clearable-field--datepicker) .student-detail__clear-field-button {
  display: none;
}
.pf-menu .student-detail__clearable-field--date.student-detail__clearable-field--datepicker > input.js-datepicker-input {
  padding-right: 2.75rem;
}
.pf-menu .student-detail__clearable-field--textarea .student-detail__clear-field-button {
  top: 0.55rem;
  transform: none;
}
.pf-menu .student-detail__clearable-field--textarea .student-detail__clear-field-button:active {
  transform: scale(0.9);
}
.pf-menu .student-detail__clear-field-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.pf-menu .student-detail__clear-field-button[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .pf-menu .student-detail__clear-field-button::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.pf-menu .student-detail__clear-field-button:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.pf-menu .student-detail__clear-field-button:active {
  transform: translateY(-50%) scale(0.9);
}
.pf-menu .student-detail__clear-field-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.pf-menu .student-detail__clear-field-button .ms-button__icon {
  font-size: 1.05rem;
}
.pf-menu .student-detail__masked-field > input {
  padding-right: 2.75rem;
}
.pf-menu .student-detail__masked-field > .student-detail__clear-field-button {
  right: 2.35rem;
}
.pf-menu .student-detail__masked-field > input:not([readonly]) {
  padding-right: 4.55rem;
}
.pf-menu .student-detail__masked-field-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.pf-menu .student-detail__masked-field-toggle[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .pf-menu .student-detail__masked-field-toggle::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.pf-menu .student-detail__masked-field-toggle:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.pf-menu .student-detail__masked-field-toggle:active {
  transform: translateY(-50%) scale(0.9);
}
.pf-menu .student-detail__masked-field-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.pf-menu .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.05rem;
}
.pf-menu .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.15rem;
}
.pf-menu .student-detail__clearable-field > input[type=search]::-webkit-search-cancel-button, .pf-menu .student-detail__clearable-field > input[type=search]::-webkit-search-decoration {
  appearance: none;
}
.pf-menu {
  min-width: 16rem;
  max-width: min(22rem, 90vw);
  z-index: 1080;
  padding: 0.35rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow-modal, 0 10px 30px rgba(0, 0, 0, 0.14));
}
.pf-menu .pf-search {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.35rem var(--ms-field-end, 0.7rem) 0.35rem 0.7rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--pl-control-radius, 30px);
  background: var(--ms-bg);
  color: var(--ms-text);
}
.pf-menu .pf-search:focus {
  border-color: var(--ms-primary);
  background: var(--ms-surface);
  box-shadow: none;
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 35%, transparent);
  outline-offset: 1px;
}
.pf-menu .form-label {
  margin-bottom: 0.15rem;
  padding-inline: 0.35rem;
  color: var(--ms-text-muted);
  font-weight: 500;
}
.pf-menu .form-control {
  border-radius: var(--ms-radius-sm);
}
.pf-menu .pf-options {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 15rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-color) 35%, transparent) transparent;
}
.pf-menu .dropdown-item {
  border-radius: var(--ms-radius-sm);
  padding: 0.35rem 0.5rem;
  color: var(--ms-text);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.pf-menu .dropdown-item:hover, .pf-menu .dropdown-item:focus-within {
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  color: var(--ms-text);
}
.pf-menu .dropdown-item:has(.pf-check:checked) {
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
  color: var(--ms-primary);
  font-weight: 500;
}
.pf-menu .pf-check {
  flex: 0 0 auto;
  border-color: var(--ms-border);
}
.pf-menu .pf-check:checked {
  border-color: var(--ms-primary);
  background-color: var(--ms-primary);
}
.pf-menu .dropdown-item-text {
  padding: 0.35rem 0.5rem;
  color: var(--ms-text-muted);
}

.pf-menu {
  opacity: 0;
  transition: opacity 140ms ease, display 140ms allow-discrete;
}
.pf-menu > * {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-menu.show {
  opacity: 1;
}
.pf-menu.show > * {
  opacity: 1;
  transform: none;
}
@starting-style {
  .pf-menu.show {
    opacity: 0;
  }
}
.pf-menu.show.is-hiding {
  opacity: 0;
}
.pf-menu.show.is-hiding > * {
  opacity: 0;
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .pf-menu,
  .pf-menu > * {
    transition: none;
  }
}
.pf-count,
.pf-option-count {
  background: var(--ms-success);
  color: var(--ms-neutralWhite);
  font-size: 0.625rem;
  font-weight: 500;
}

.pf-option-count {
  margin-left: auto;
}

.person-data-dialog .modal-dialog {
  max-width: 600px;
}
.person-data-dialog .btn-close {
  box-shadow: none;
  transition: transform 0.12s ease;
}
.person-data-dialog .btn-close:active {
  transform: scale(0.9);
}

.person-data-dialog__title-icon {
  flex: 0 0 auto;
  color: var(--ms-orange);
  font-size: 1.35rem;
}

.person-data-dialog__body {
  display: grid;
  gap: 1.25rem;
  max-height: min(65vh, 34rem);
  overflow-y: auto;
}

.person-data-dialog__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.person-data-dialog__label {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
  display: block;
  width: auto;
  margin: 0 0 0.5rem;
  padding: 0;
}

.person-data-dialog__control {
  min-height: 2.35rem;
  border-color: var(--ms-border);
  border-radius: var(--pl-control-radius, var(--ms-radius-pill));
  background-color: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.8rem;
}

.person-data-dialog__help {
  margin: 0.45rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
.person-data-dialog__help strong {
  color: var(--ms-text);
  font-weight: 600;
}

.person-import-dialog__file {
  height: 2.35rem;
  padding-block: 0;
  line-height: calc(2.35rem - 2px);
  cursor: pointer;
}
.person-import-dialog__file::file-selector-button {
  height: 2.35rem;
  margin-block: -1px;
  padding-block: 0;
  line-height: calc(2.35rem - 2px);
  vertical-align: top;
  background: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: calc(0.045em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  cursor: pointer;
  transform-origin: center;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.person-import-dialog__file:hover:not(:disabled):not([readonly])::file-selector-button {
  background: var(--ms-primaryRowColor);
}
.person-import-dialog__file:active:not(:disabled):not([readonly])::file-selector-button {
  transform: scale(0.9);
}

.person-bulk-confirm-dialog.is-danger .person-data-dialog__title-icon {
  color: var(--ms-danger);
}

.person-export-dialog__selection-summary {
  margin: 0;
  color: var(--ms-text);
  font-size: 0.875rem;
}

.person-export-dialog__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.75rem;
}

.person-export-dialog__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--ms-radius-sm);
  color: var(--pl-table-text);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.person-export-dialog__option:hover {
  background: var(--ms-primaryRowColor);
}
.person-export-dialog__option .form-check-input {
  flex: 0 0 auto;
  float: none;
  width: 1.6em;
  height: 1.6em;
  margin: 0;
  border-color: var(--ms-border);
  font-size: inherit;
}
.person-export-dialog__option .form-check-input:checked, .person-export-dialog__option .form-check-input:indeterminate {
  border: 0;
  box-shadow: none;
  background-size: 80% 80%;
}
.person-export-dialog__option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.person-export-dialog__help {
  color: rgb(var(--bs-danger-rgb));
}

@media (max-width: 575.98px) {
  .person-export-dialog__columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pl-tablewrap {
  overflow-x: auto;
}

:is(.person-list, .detail-page, .phonebook-category-items) :is(.js-datatable, .js-datatable-client).pl-datatable:not([data-ms-datatable]) {
  opacity: 0;
  animation: pl-table-fallback 0s linear 1.2s forwards;
}

.person-list .table-responsive:has(:is(.js-datatable, .js-datatable-client).pl-datatable:not([data-ms-datatable])) {
  overflow-x: hidden;
}

/* The table used to fade itself in the moment DataTables finished wrapping it. With the page now
   revealed as a whole — held hidden until the table has drawn (site.js) — that fade lands AFTER the
   screen is already on display: a flash in the middle of a finished page. The screen's own entrance
   is the only one that runs on arrival. */
@keyframes pl-table-fallback {
  to {
    opacity: 1;
  }
}
.person-list .dataTables_wrapper {
  padding: 0;
}

.pl-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--ms-primaryRowColor);
  font-size: 0.8rem;
}

[data-bs-theme=dark] :is(.pl-dt-bottom, .pl-cardhead, .pl-filters-panel),
html.dark :is(.pl-dt-bottom, .pl-cardhead, .pl-filters-panel) {
  background: var(--ms-surface);
}

[data-bs-theme=dark] :is(.person-list, .detail-page) .pl-datatable thead > tr > th,
html.dark :is(.person-list, .detail-page) .pl-datatable thead > tr > th,
[data-bs-theme=dark] .student-detail .phonebook-category-items .table.pl-datatable thead > tr > th,
html.dark .student-detail .phonebook-category-items .table.pl-datatable thead > tr > th {
  --bs-table-bg: color-mix(in srgb, #ffffff 4%, var(--ms-surface));
  background: color-mix(in srgb, #ffffff 4%, var(--ms-surface));
  border-bottom: 0;
}

[data-bs-theme=dark] .person-list .pl-card,
html.dark .person-list .pl-card {
  border: 0;
}

[data-bs-theme=dark] .person-list .pl-cardhead,
html.dark .person-list .pl-cardhead {
  border-bottom: 0;
}

[data-bs-theme=dark] .pl-filter-btn,
html.dark .pl-filter-btn {
  border-color: transparent;
  background-color: var(--ms-bg);
  color: var(--ms-text-muted);
}

[data-bs-theme=dark] .pl-filter-btn:hover,
[data-bs-theme=dark] .pl-filter-btn:focus-visible,
html.dark .pl-filter-btn:hover,
html.dark .pl-filter-btn:focus-visible {
  border-color: transparent;
  background-color: var(--ms-bg);
  color: var(--ms-primary);
}

[data-bs-theme=dark] .pl-filter-btn:active,
[data-bs-theme=dark] .pl-filter-btn.is-open,
html.dark .pl-filter-btn:active,
html.dark .pl-filter-btn.is-open {
  border-color: transparent;
  background-color: color-mix(in srgb, var(--ms-primary) 25%, var(--ms-bg));
  color: var(--ms-primary);
}

[data-bs-theme=dark] .form-check-input:not(:checked):not(:indeterminate),
html.dark .form-check-input:not(:checked):not(:indeterminate) {
  background-color: var(--ms-bg);
  border-color: transparent;
}

.pl-dt-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.pl-dt-bottom .dataTables_length,
.pl-dt-bottom .dataTables_info,
.pl-dt-bottom .dataTables_paginate {
  margin: 0;
  padding: 0;
}

:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link > .badge,
.person-list .nav-pills .nav-link > .badge {
  min-width: 1.15rem;
  padding: 0 0.3rem;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: var(--ms-success);
  color: var(--ms-neutralWhite);
  font-size: 0.65rem;
  font-weight: 400;
  height: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.person-list .nav-pills {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  gap: 0.25rem;
  margin-bottom: 0 !important;
  padding: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-bg);
  scrollbar-width: none;
}
.person-list .nav-pills::-webkit-scrollbar {
  display: none;
}
.person-list .nav-pills .nav-item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
}
.person-list .nav-pills .pf-tabs__thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--ms-radius-pill);
  background: var(--brand-color, var(--ms-primary));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}
.person-list .nav-pills .nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: calc(0.02em + var(--ms-a11y-letter-add, 0em));
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.person-list .nav-pills .nav-link:hover {
  color: var(--ms-text);
}
.person-list .nav-pills .nav-link:active {
  transform: scale(0.95);
}
.person-list .nav-pills .nav-link.active {
  background: transparent;
  color: var(--ms-neutralWhite);
}
.person-list .nav-pills.pf-tabs--previewing .nav-link.active:not(.pf-tabs__preview) {
  color: var(--ms-text-muted);
}
.person-list .nav-pills.pf-tabs--previewing .nav-link.pf-tabs__preview {
  color: var(--ms-neutralWhite);
}

.person-list > .nav-pills {
  margin-bottom: 1rem !important;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr {
  animation: pl-row-in 220ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 390ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(1) {
  animation-delay: 0ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(2) {
  animation-delay: 26ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(3) {
  animation-delay: 52ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(4) {
  animation-delay: 78ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(5) {
  animation-delay: 104ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(6) {
  animation-delay: 130ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(7) {
  animation-delay: 156ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(8) {
  animation-delay: 182ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(9) {
  animation-delay: 208ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(10) {
  animation-delay: 234ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(11) {
  animation-delay: 260ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(12) {
  animation-delay: 286ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(13) {
  animation-delay: 312ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(14) {
  animation-delay: 338ms;
}

.person-list .pl-datatable.ms-rows-in > tbody > tr:nth-child(15) {
  animation-delay: 364ms;
}

@keyframes pl-row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .person-list .nav-pills :is(.nav-link, .pf-tabs__thumb) {
    transition: none;
  }
  .person-list .nav-pills .nav-link.active::after,
  .person-list .pl-datatable.ms-rows-in > tbody > tr {
    animation: none;
  }
  .person-list .nav-pills .nav-link.active::after {
    transform: scaleX(1);
  }
}
.person-list .card {
  border: 0;
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow-card);
}

.person-list--brigades .pl-datatable,
.person-list--computers .pl-datatable,
.person-list--units .pl-datatable,
.person-list--other-installations .pl-datatable,
.person-list--watch-duty-types .pl-datatable,
.person-list--piltras .pl-datatable,
.person-list--dedalo .pl-datatable,
.pat-board .pl-datatable[data-pl-tools],
:is(.person-list--students, .person-list--audit, .person-list--notices, .person-list--press-notes, .person-list--offices, .person-list--seats, .person-list--maintenance, .person-list--academics, .person-list--discipline, .person-list--dining, .person-list--daily-orders, .person-list--ranks, .person-list--rank-categories, .person-list--armies, .person-list--military-forces, .person-list--orlas, .person-list--yearbooks, .person-list--yearbook-categories, .person-list--calendar-events, .person-list--laundry-calendar, .person-list--calendar-event-categories, .person-list--watch-duties, .person-list--library-categories, .person-list--library-documents, .person-list--phonebook, .person-list--phones, .person-list--phonebook-items, .person-list--phonebook-categories, .person-list--introduction-pages, .person-list--legal-texts) .pl-datatable {
  --bs-table-bg: var(--ms-surface);
  background-color: var(--ms-surface);
}
.person-list--brigades .pl-datatable > tbody > tr:last-child > *,
.person-list--computers .pl-datatable > tbody > tr:last-child > *,
.person-list--units .pl-datatable > tbody > tr:last-child > *,
.person-list--other-installations .pl-datatable > tbody > tr:last-child > *,
.person-list--watch-duty-types .pl-datatable > tbody > tr:last-child > *,
.person-list--piltras .pl-datatable > tbody > tr:last-child > *,
.person-list--dedalo .pl-datatable > tbody > tr:last-child > *,
.pat-board .pl-datatable[data-pl-tools] > tbody > tr:last-child > *,
:is(.person-list--students, .person-list--audit, .person-list--notices, .person-list--press-notes, .person-list--offices, .person-list--seats, .person-list--maintenance, .person-list--academics, .person-list--discipline, .person-list--dining, .person-list--daily-orders, .person-list--ranks, .person-list--rank-categories, .person-list--armies, .person-list--military-forces, .person-list--orlas, .person-list--yearbooks, .person-list--yearbook-categories, .person-list--calendar-events, .person-list--laundry-calendar, .person-list--calendar-event-categories, .person-list--watch-duties, .person-list--library-categories, .person-list--library-documents, .person-list--phonebook, .person-list--phones, .person-list--phonebook-items, .person-list--phonebook-categories, .person-list--introduction-pages, .person-list--legal-texts) .pl-datatable > tbody > tr:last-child > * {
  border-bottom: 0;
}

:is(.person-list, .detail-page) .ms-dialog .pl-datatable thead > tr > th {
  padding: 0.4rem 0.5rem;
}
:is(.person-list, .detail-page) .ms-dialog .pl-datatable tbody td {
  padding: 0.35rem 0.5rem;
  height: auto;
}

:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable {
  color: var(--pl-table-text);
  font-size: 0.8rem;
  font-weight: 400;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .form-check-input[type=checkbox]:not([role=switch]) {
  width: 1.6em;
  height: 1.6em;
  border-color: var(--ms-border);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .form-check-input[type=checkbox]:not([role=switch]):checked, :is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .form-check-input[type=checkbox]:not([role=switch]):indeterminate {
  border: 0;
  box-shadow: none;
  background-color: var(--ms-primary);
  background-size: 80% 80%;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: calc(0.04em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  text-align: left;
  color: var(--pl-table-text);
  --bs-table-bg: color-mix(in srgb, var(--ms-primaryRowColor) 50%, var(--ms-surface));
  background: color-mix(in srgb, var(--ms-primaryRowColor) 50%, var(--ms-surface));
  border-bottom: 1px solid var(--ms-border);
  white-space: nowrap;
  padding: 0.75rem 0.75rem;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable.pl-datatable--wrap-headers thead > tr > th {
  white-space: normal;
  vertical-align: bottom;
  line-height: 1.2;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th div.dt-column-header {
  flex-direction: row;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th div.dt-column-header .dt-column-title {
  text-align: left;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th div.dt-column-header .dt-column-order {
  margin-left: auto;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable {
  /* The sorted column used to be marked with a 3px primary rule under the header cell, which is the
     shape of a selected tab, not of a sorted column: it read as "you are here" rather than "this is
     the sort". Now the CELL states it — its own ground, its label in full ink and the arrow in the
     primary colour — and the arrows of the other columns stay faint until hovered. */
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th.dt-ordering-asc,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th.dt-ordering-desc {
  background: color-mix(in srgb, var(--ms-primary) 7%, var(--ms-primaryRowColor));
  color: var(--ms-text);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th .dt-column-order {
  opacity: 0.35;
  transition: opacity 0.15s ease, color 0.15s ease;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th:hover .dt-column-order {
  opacity: 0.7;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th.dt-ordering-asc .dt-column-order,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead > tr > th.dt-ordering-desc .dt-column-order {
  opacity: 1;
  color: var(--ms-primary);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody td {
  padding: 0.7rem 0.75rem;
  height: calc(2 * 1.5 * 1em + 2 * 0.7rem);
  vertical-align: middle;
  border-bottom: 0;
  font-size: inherit;
  color: var(--pl-table-text);
  font-weight: 400;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody tr:nth-last-of-type(even) > td {
  --bs-table-bg: var(--ms-table-zebra);
  background: var(--ms-table-zebra);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody tr:hover > td {
  --bs-table-bg: var(--ms-table-hover);
  background: var(--ms-table-hover);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable#person-dt thead th:nth-child(2),
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable#person-dt tbody td:nth-child(2) {
  width: 6.5rem !important;
  max-width: 6.5rem;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable#transcript-table thead th:first-child,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable#transcript-table tbody td:first-child {
  width: 6.5rem !important;
  max-width: 6.5rem;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody td.pl-status-column {
  width: 9rem !important;
  max-width: 9rem;
  text-align: center;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column.pl-status-column--medium,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody td.pl-status-column.pl-status-column--medium {
  width: 10.5rem !important;
  max-width: 10.5rem;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column.pl-status-column--wide,
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable tbody td.pl-status-column.pl-status-column--wide {
  width: 14rem !important;
  max-width: 14rem;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .pl-status-column .pl-status {
  justify-content: center;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column div.dt-column-header {
  position: relative;
  justify-content: center;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column div.dt-column-header .dt-column-title {
  text-align: center;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable thead th.pl-status-column div.dt-column-header .dt-column-order {
  position: absolute;
  right: 0;
  margin-left: 0;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .pl-rank-column {
  padding-right: 20px;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .pl-id {
  font-weight: 400;
  color: var(--pl-table-text);
  font-variant-numeric: tabular-nums;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .pl-name {
  color: var(--pl-table-text);
  font-weight: 400;
  text-decoration: none;
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable .pl-name:hover {
  color: var(--pl-table-text);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable td .btn-icon {
  width: auto;
  height: auto;
  padding: 0.1rem 0.25rem;
  border-radius: var(--ms-radius-sm);
}
:is(.person-list, .detail-page, .phonebook-category-items) .pl-datatable td .btn-icon .material-symbols-outlined {
  font-size: 1.15rem;
}

.person-list--audit-logins td.audit-login-result > .badge {
  display: block;
  width: fit-content;
}

.pl-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--ms-radius-pill);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
  line-height: var(--bs-body-line-height);
  text-transform: none;
  white-space: nowrap;
}
.pl-status .dot {
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--ms-radius-pill);
  background: currentColor;
}
.pl-status .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.pl-status.is-ok {
  color: #0d7a4f;
  background: color-mix(in srgb, var(--ms-success) 12%, transparent);
}
.pl-status.is-ok .dot {
  color: var(--ms-success);
}
.pl-status.is-warn {
  color: var(--pl-table-text, var(--ms-text));
  background: color-mix(in srgb, var(--ms-warning) 14%, transparent);
}
.pl-status.is-info {
  color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
}
.pl-status.is-danger {
  color: var(--ms-danger);
  background: color-mix(in srgb, var(--ms-danger) 12%, transparent);
}
.pl-status.is-muted {
  color: var(--ms-text-muted);
  background: color-mix(in srgb, var(--ms-text-muted) 12%, transparent);
}

.person-list--request-templates .request-template-statuses {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
}

.person-list .pl-datatable .pl-status-column--single-line .pl-status {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.person-list .pl-datatable .pl-status-column--single-line .pl-status-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-list .pl-datatable .pl-status-column--max-four-lines .pl-status-label {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.person-list--invoices .invoice-name-column {
  width: 20% !important;
  max-width: 18rem;
}

.person-list--invoices td.invoice-name-column .pl-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-list #person-dt .pl-cell-lines,
.person-list #transcript-table .pl-cell-lines,
.person-list--notices .pl-cell-lines,
.person-list--notices .notice-title-column .pl-name,
.person-list--calendar-events .calendar-event-title-column .pl-name,
.person-list--notices .notice-user-column > span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.person-list #person-dt .pl-cell-lines {
  overflow-wrap: break-word;
}

:is(.person-list, .detail-page) .pl-datatable .pl-cell-oneline {
  display: block;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-list--notices #notices-table,
.person-list--calendar-events #events-table {
  table-layout: fixed;
}

.person-list--brigades :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--computers :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--units :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--other-installations :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--watch-duty-types :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--piltras :is(.dataTables_paginate .pagination, .dt-paging .pagination),
.person-list--dedalo :is(.dataTables_paginate .pagination, .dt-paging .pagination),
:is(.person-list--students, .person-list--audit, .person-list--notices, .person-list--press-notes, .person-list--offices, .person-list--seats, .person-list--maintenance, .person-list--academics, .person-list--discipline, .person-list--dining, .person-list--daily-orders, .person-list--ranks, .person-list--rank-categories, .person-list--armies, .person-list--military-forces, .person-list--orlas, .person-list--yearbooks, .person-list--yearbook-categories, .person-list--calendar-events, .person-list--laundry-calendar, .person-list--calendar-event-categories, .person-list--watch-duties, .person-list--library-categories, .person-list--library-documents, .person-list--phonebook, .person-list--phones, .person-list--phonebook-items, .person-list--phonebook-categories, .person-list--introduction-pages, .person-list--legal-texts) :is(.dataTables_paginate .pagination, .dt-paging .pagination) {
  background: var(--ms-surface);
}

.person-list .pl-dt-bottom .form-select {
  font-size: 0.8rem;
}
.person-list .pl-dt-bottom .pagination .page-item .page-link {
  font-size: 0.8rem;
}
.person-list .dataTables_info {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
}
.person-list .dataTables_length label,
.person-list .dataTables_filter label {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
}

.student-detail--consultation .mn-fieldset-plain:disabled {
  opacity: 1;
}

.student-detail {
  --bs-border-color: var(--ms-border);
  --pl-table-text: var(--ms-text);
  padding-bottom: 200px;
  color: var(--ms-text);
  font-family: var(--ms-font-sans);
  font-size: 0.8rem;
}
.student-detail .card {
  border: 0;
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow-card);
}
.student-detail .form-label {
  margin-bottom: 0.5rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
}
.student-detail .form-control,
.student-detail .form-select {
  min-height: 2.45rem;
  border-color: var(--ms-border);
  border-radius: var(--ms-radius-pill);
  background-color: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.8rem;
}
.student-detail .form-control[readonly]:not(.js-datepicker-input) {
  background: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text-muted);
}
.student-detail :is(#student-detail-form, #crew-detail-form) input.form-control.ms-input-data.js-datepicker-input[readonly]:not(:disabled) {
  background-color: var(--ms-bg);
  color: var(--ms-text);
}
.student-detail .student-detail__file-input {
  width: 22rem;
  max-width: 100%;
  min-height: 2.35rem;
}
.student-detail .student-detail__clearable-field {
  position: relative;
  width: 100%;
  min-width: 0;
  --ms-field-end: 2.6rem;
}
.student-detail .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
.student-detail .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.student-detail .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > input {
  padding-right: 4.5rem;
}
.student-detail .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.student-detail .student-detail__clearable-field--date {
  display: block;
  width: 100%;
  max-width: none;
}
.student-detail .student-detail__clearable-field--date > input.form-control {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.student-detail .student-detail__clearable-field--date > input.form-control::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transform: translateY(-50%);
}
.student-detail .student-detail__clearable-field--date:not(.student-detail__clearable-field--datepicker) .student-detail__clear-field-button {
  display: none;
}
.student-detail .student-detail__clearable-field--date.student-detail__clearable-field--datepicker > input.js-datepicker-input {
  padding-right: 2.75rem;
}
.student-detail .student-detail__clearable-field--textarea .student-detail__clear-field-button {
  top: 0.55rem;
  transform: none;
}
.student-detail .student-detail__clearable-field--textarea .student-detail__clear-field-button:active {
  transform: scale(0.9);
}
.student-detail .student-detail__clear-field-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.student-detail .student-detail__clear-field-button[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .student-detail .student-detail__clear-field-button::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.student-detail .student-detail__clear-field-button:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.student-detail .student-detail__clear-field-button:active {
  transform: translateY(-50%) scale(0.9);
}
.student-detail .student-detail__clear-field-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.student-detail .student-detail__clear-field-button .ms-button__icon {
  font-size: 1.05rem;
}
.student-detail .student-detail__masked-field > input {
  padding-right: 2.75rem;
}
.student-detail .student-detail__masked-field > .student-detail__clear-field-button {
  right: 2.35rem;
}
.student-detail .student-detail__masked-field > input:not([readonly]) {
  padding-right: 4.55rem;
}
.student-detail .student-detail__masked-field-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.student-detail .student-detail__masked-field-toggle[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .student-detail .student-detail__masked-field-toggle::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.student-detail .student-detail__masked-field-toggle:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.student-detail .student-detail__masked-field-toggle:active {
  transform: translateY(-50%) scale(0.9);
}
.student-detail .student-detail__masked-field-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.student-detail .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.05rem;
}
.student-detail .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.15rem;
}
.student-detail #rule-wizard-form .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
.student-detail #rule-wizard-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.student-detail #student-detail-form .student-detail__clearable-field:has(> input[type=number]),
.student-detail #librarycategory-form .student-detail__clearable-field:has(> input[type=number]),
.student-detail #librarydocument-form .student-detail__clearable-field:has(> input[type=number]),
.student-detail #perfection-kind-form .student-detail__clearable-field:has(> input[type=number]),
.student-detail #introductionpage-form .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
.student-detail #student-detail-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button,
.student-detail #librarycategory-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button,
.student-detail #librarydocument-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button,
.student-detail #perfection-kind-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button,
.student-detail #introductionpage-form .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.student-detail .form-check-input {
  border-color: var(--ms-border);
}
.student-detail .form-check:not(.form-switch) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
}
.student-detail .form-check:not(.form-switch) > .form-check-input[type=checkbox] {
  width: 1.6em;
  height: 1.6em;
  flex: 0 0 auto;
  float: none;
  margin: 0;
}
.student-detail .form-check:not(.form-switch) > .form-check-label {
  margin: 0;
  color: var(--ms-text);
  line-height: 1.35;
}
.student-detail .form-text,
.student-detail .text-secondary {
  color: var(--ms-text-muted) !important;
  font-size: 0.72rem;
}
.student-detail .btn:not(.accordion-button, .btn-close) {
  border-radius: var(--ms-radius-pill);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: calc(0.035em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  transition: transform 0.12s ease;
}
.student-detail .btn:not(.accordion-button, .btn-close):active {
  transform: scale(0.9);
}
.student-detail .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--pl-table-text);
  --bs-table-border-color: var(--ms-border);
  margin-bottom: 1rem;
  font-size: 0.8rem;
}
.student-detail .table thead th {
  padding: 0.65rem 0.75rem;
  background: var(--ms-primaryRowColor);
  color: var(--pl-table-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.04em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}
.student-detail .table tbody td {
  padding: 0.65rem 0.75rem;
  height: calc(2 * 1.5 * 1em + 2 * 0.65rem);
}
.student-detail #roles-permissions-region {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
}
.student-detail .rp-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 0;
  background: transparent;
}
.student-detail .rp-panel__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ms-text);
}
.student-detail .rp-panel__mark {
  flex: 0 0 auto;
  color: var(--ms-orange);
  font-size: 1.05rem;
}
.student-detail .rp-panel__rule {
  margin: 0.9rem 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ms-border) 70%, transparent);
  opacity: 1;
}
.student-detail .rp-panel__label {
  margin-bottom: 0.35rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
}
.student-detail #roles-permissions-region > .row > div:not(:first-child) > .rp-panel {
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--ms-border) 70%, transparent);
}
.student-detail #roles-permissions-region :is(.form-control, .form-select, .ms-input-data) {
  background-color: var(--ms-surface);
}
.student-detail #roles-permissions-region .student-detail__permission-group {
  background: var(--ms-surface);
}
.student-detail .rp-chip {
  margin-left: 0.35rem;
  border-radius: var(--ms-radius-pill);
  padding: 0.15rem 0.5rem;
  background: color-mix(in srgb, var(--ms-success) 14%, transparent);
  color: var(--ms-success);
  font-size: 0.65rem;
  font-weight: 400;
}
.student-detail .rp-half {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.6rem;
}
.student-detail .rp-half__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
}
.student-detail .rp-half__mark {
  font-size: 1rem;
}
.student-detail .rp-tri {
  width: 100%;
}
.student-detail .rp-door {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
}
.student-detail .rp-door__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.student-detail .rp-door__label {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
}
.student-detail .rp-door__verdict {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 400;
}
.student-detail .rp-door__verdict .material-symbols-outlined {
  font-size: 1rem;
}
.student-detail .rp-door__verdict--open {
  color: var(--ms-success);
}
.student-detail .rp-door__verdict--shut {
  color: var(--ms-text-muted);
}
.student-detail .rp-seat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.student-detail .rp-seat-row > .rp-seat {
  flex: 1 1 auto;
  min-width: 0;
}
.student-detail .rp-seat-row > .mn-row-action {
  flex: 0 0 auto;
}
.student-detail .rp-seat {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  color: var(--ms-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.student-detail .rp-seat__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.15rem;
}
.student-detail .rp-seat__label {
  color: var(--ms-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: calc(0.05em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}
.student-detail .rp-seat__name {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-detail .rp-seat__meta {
  overflow: hidden;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-detail .rp-seat__go {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.student-detail .rp-seat:hover, .student-detail .rp-seat:focus-visible {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-primary) 5%, var(--ms-surface));
  color: var(--ms-text);
}
.student-detail .rp-seat:hover .student-detail .rp-seat__go, .student-detail .rp-seat:focus-visible .student-detail .rp-seat__go {
  transform: translateX(0.2rem);
  color: var(--ms-primary);
}
.student-detail .rp-seat:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ms-primary) 28%, transparent);
  outline-offset: 2px;
}
.student-detail .rp-seat--plain {
  cursor: default;
}
.student-detail .rp-seat--plain:hover {
  border-color: var(--ms-border);
  background: var(--ms-surface);
}
.student-detail .rp-seat--pick select {
  width: 100%;
  max-width: 100%;
}
.student-detail .rp-seat--pick .rp-seat__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ms-radius-sm);
  color: var(--ms-text-muted);
  text-decoration: none;
}
.student-detail .rp-seat--pick .rp-seat__go:hover, .student-detail .rp-seat--pick .rp-seat__go:focus-visible {
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
  color: var(--ms-primary);
}
.student-detail .emergency-list {
  margin: 0 0 1rem;
  padding: 0;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
  list-style: none;
  overflow: hidden;
}
.student-detail .allergy-row, .student-detail .phone-row, .student-detail .emergency-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
}
.student-detail .allergy-empty, .student-detail .phone-empty, .student-detail .emergency-empty {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem;
  color: var(--ms-text-muted);
  font-size: 0.82rem;
}
.student-detail .allergy-empty .material-symbols-outlined, .student-detail .phone-empty .material-symbols-outlined, .student-detail .emergency-empty .material-symbols-outlined {
  font-size: 1.15rem;
}
.student-detail .emergency-row + .student-detail .emergency-row {
  border-top: 1px solid color-mix(in srgb, var(--ms-border) 60%, transparent);
}
.student-detail .emergency-row__copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.student-detail .emergency-row__name {
  color: var(--ms-text);
  font-size: 0.85rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.student-detail .emergency-row__phone {
  flex: 0 0 auto;
  font-size: 0.82rem;
}
.student-detail .emergency-row__address {
  flex: 1 0 100%;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.student-detail .phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.student-detail .phone-empty {
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
}
.student-detail .phone-row {
  gap: 0.85rem;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
}
.student-detail .phone-row__number {
  flex: 0 0 auto;
  color: var(--ms-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.student-detail .phone-row__number:hover, .student-detail .phone-row__number:focus-visible {
  color: var(--ms-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.student-detail .phone-row__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.student-detail .phone-row__sep {
  opacity: 0.6;
}
.student-detail .phone-row__remove-form {
  display: contents;
}
.student-detail .phone-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.student-detail .phone-remove .material-symbols-outlined {
  font-size: 1.05rem;
}
.student-detail .phone-remove:hover, .student-detail .phone-remove:focus-visible {
  background: color-mix(in srgb, var(--ms-danger) 14%, transparent);
  color: var(--ms-danger);
}
.student-detail .allergy-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.student-detail .allergy-empty {
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
}
.student-detail .allergy-row {
  align-items: flex-start;
  gap: 0.85rem;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-bg);
}
.student-detail .allergy-row__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.student-detail .allergy-row__name {
  color: var(--ms-text);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.student-detail .allergy-row__category {
  color: var(--ms-text-muted);
  font-size: 0.78rem;
}
.student-detail .allergy-row__category::before {
  content: "·";
  margin: 0 0.35rem;
  opacity: 0.6;
}
.student-detail .allergy-row__note {
  margin: 0.15rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.student-detail .allergy-row__report {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  max-width: 16rem;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
}
.student-detail {
  /* The report picker spans the card: it is the last thing asked for before «Añadir alergia», and a
     third of a row made a wide dashed box look like a cell left over from the row above it. At full
     width the default 8rem was a lot of empty well for one PDF — but a fixed height cropped to fit
     leaves the icon and the formats line touching the dashes, and padding inside a box of FIXED
     height changes nothing. So the height comes from the content instead, and the air is real
     padding: the box is as tall as what it holds, plus room to breathe. */
}
.student-detail .allergy-report-field .ms-dropzone {
  --ms-dropzone-height: auto;
  padding: 1.1rem 1rem;
}
.student-detail .allergy-report {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  color: var(--ms-text);
  text-decoration: none;
}
.student-detail .allergy-report .material-symbols-outlined {
  font-size: 1rem;
  color: var(--ms-orange);
}
.student-detail .allergy-report span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-detail .allergy-report:hover {
  color: var(--ms-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.student-detail .allergy-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ms-primary);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.student-detail .allergy-action:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.student-detail .allergy-action--danger {
  color: var(--ms-danger);
}
.student-detail .emergency-person__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ms-primary) 14%, transparent);
  color: var(--ms-primary);
  font-size: 0.75rem;
  font-weight: 700;
}
.student-detail .emergency-chip {
  border-radius: var(--ms-radius-pill);
  padding: 0.2rem 0.6rem;
  background: var(--ms-bg);
  color: var(--ms-text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}
.student-detail .emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ms-text);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.student-detail .emergency-phone .material-symbols-outlined {
  font-size: 1rem;
  color: var(--ms-text-muted);
}
.student-detail .emergency-phone:hover, .student-detail .emergency-phone:focus-visible {
  color: var(--ms-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.student-detail .emergency-phone:hover .material-symbols-outlined, .student-detail .emergency-phone:focus-visible .material-symbols-outlined {
  color: var(--ms-primary);
}
.student-detail .emergency-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.student-detail .emergency-remove .material-symbols-outlined {
  font-size: 1.05rem;
}
.student-detail .emergency-remove:hover, .student-detail .emergency-remove:focus-visible {
  background: color-mix(in srgb, var(--ms-danger) 14%, transparent);
  color: var(--ms-danger);
}
.student-detail .emergency-row:hover .emergency-remove,
.student-detail .emergency-row:focus-within .emergency-remove,
.student-detail .allergy-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.student-detail .emergency-row:hover .emergency-remove .material-symbols-outlined,
.student-detail .emergency-row:focus-within .emergency-remove .material-symbols-outlined,
.student-detail .allergy-remove .material-symbols-outlined {
  font-size: 1.05rem;
}
.student-detail .emergency-row:hover .emergency-remove:hover, .student-detail .emergency-row:hover .emergency-remove:focus-visible,
.student-detail .emergency-row:focus-within .emergency-remove:hover,
.student-detail .emergency-row:focus-within .emergency-remove:focus-visible,
.student-detail .allergy-remove:hover,
.student-detail .allergy-remove:focus-visible {
  background: color-mix(in srgb, var(--ms-danger) 14%, transparent);
  color: var(--ms-danger);
}
.student-detail .emergency-add {
  min-height: 2.35rem;
}
.student-detail .person-config-bar {
  display: flex;
  margin: 0;
}
.student-detail .person-config-bar .ms-button {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .student-detail .emergency-remove {
    transition: none;
  }
  .student-detail .rp-seat,
  .student-detail .rp-seat__go {
    transition: none;
  }
  .student-detail .rp-seat:hover .rp-seat__go,
  .student-detail .rp-seat:focus-visible .rp-seat__go {
    transform: none;
  }
}
.student-detail #roles-permissions-region {
  font-family: var(--ms-font-sans);
  font-size: 0.8rem;
}
.student-detail #roles-permissions-region hr {
  border: 0;
  border-top: 1px solid var(--cm-dashboard-border, var(--ms-border));
  opacity: 1;
}
.student-detail #roles-permissions-region .student-detail__roles-summary,
.student-detail #roles-permissions-region .student-detail__roles-permission-label {
  color: var(--ms-text);
  font-family: inherit;
  font-size: 0.8rem;
}
.student-detail #roles-permissions-region .student-detail__roles-summary {
  font-weight: 600;
  cursor: pointer;
}
.student-detail #roles-permissions-region .student-detail__permission-group {
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface);
  interpolate-size: allow-keywords;
}
.student-detail #roles-permissions-region .student-detail__permission-group::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, content-visibility 0.3s allow-discrete;
}
.student-detail #roles-permissions-region .student-detail__permission-group[open]::details-content {
  block-size: auto;
  opacity: 1;
}
.student-detail #roles-permissions-region .student-detail__permission-group > summary {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  list-style: none;
  transform-origin: center;
  transition: transform 0.12s ease;
}
.student-detail #roles-permissions-region .student-detail__permission-group > summary:active {
  transform: scale(0.98);
}
.student-detail #roles-permissions-region .student-detail__permission-group > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ms-success) 28%, transparent);
  outline-offset: -3px;
}
.student-detail #roles-permissions-region .student-detail__permission-group > summary::-webkit-details-marker {
  display: none;
}
.student-detail #roles-permissions-region .student-detail__permission-group[open] .student-detail__permission-chevron {
  transform: rotate(180deg);
}
.student-detail #roles-permissions-region .student-detail__permission-group-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ms-success);
  font-size: 1.6rem;
}
.student-detail #roles-permissions-region .student-detail__permission-group-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.15rem;
}
.student-detail #roles-permissions-region .student-detail__permission-group-copy strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-detail #roles-permissions-region .student-detail__permission-group-copy span {
  overflow: hidden;
  color: var(--ms-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-detail #roles-permissions-region .student-detail__permission-group-count {
  display: inline-flex;
  min-width: 1.75rem;
  height: 1.45rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-success) 12%, transparent);
  color: var(--ms-success);
  font-size: 0.72rem;
  font-weight: 400;
}
.student-detail #roles-permissions-region .student-detail__permission-chevron {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.student-detail #roles-permissions-region .student-detail__permission-group-content {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  max-height: 24rem;
  border-top: 1px solid var(--ms-border);
  background: transparent;
}
.student-detail #roles-permissions-region .student-detail__permission-group-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 1rem;
  overflow-y: auto;
}
.student-detail #roles-permissions-region .student-detail__permission-group-actions {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ms-border);
}
.student-detail #roles-permissions-region .student-detail__permission-toolbar {
  flex-wrap: nowrap;
}
.student-detail #roles-permissions-region .student-detail__permission-toolbar .dt-cardsearch {
  flex: 1 1 auto;
  min-width: 0;
}
.student-detail #roles-permissions-region .student-detail__permission-toolbar .dt-cardsearch input,
.student-detail #roles-permissions-region .student-detail__permission-toolbar .dt-cardsearch input:focus {
  width: 100%;
}
.student-detail #roles-permissions-region .student-detail__permission-toolbar > mn-button,
.student-detail #roles-permissions-region .student-detail__permission-toolbar > .ms-button {
  flex: 0 0 auto;
}
.student-detail #roles-permissions-region .student-detail__permission-section-divider {
  margin: 0.85rem 0 0.5rem;
}
.student-detail #roles-permissions-region [data-perm-group]:first-child > .student-detail__permission-section-divider,
.student-detail #roles-permissions-region .student-detail__grant-group:first-child > .student-detail__permission-section-divider {
  margin-top: 0;
}
.student-detail #roles-permissions-region .student-detail__roles-permission-label {
  font-weight: 400;
  line-height: 1.4;
}
.student-detail #roles-permissions-region [data-perm-row] .badge {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
}

.student-detail__header {
  align-items: flex-end;
}
.student-detail__header .pl-title {
  flex-wrap: wrap;
}

.student-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .student-detail__layout {
    grid-template-columns: 1fr;
  }
}

.student-detail__main {
  min-width: 0;
}

.student-detail__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.student-detail__aside > * {
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .student-detail__aside {
    position: sticky;
    top: calc(var(--ms-navbar-height, 56px) + 1rem);
    margin-top: calc(49px + 1.25rem);
  }
}

@media (min-width: 992px) {
  .student-detail__aside--no-tabs {
    margin-top: 0;
  }
}

.student-detail__header-search {
  width: 100%;
  max-width: 17.5rem;
  flex: 1 1 15rem;
  margin-left: auto;
}

.student-detail select.form-select.ms-input-data[size] {
  height: auto;
}

.student-detail__aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
}
.student-detail__aside-actions .ms-button,
.student-detail__aside-actions .btn {
  width: 100%;
  justify-content: center;
}

/* The person being edited, in the SAME chip the listings put beside their title (.pl-total): same
   palette it already had, and now the same metrics too — 0.7rem at 400 with the counter's tracking,
   instead of the 0.8rem/600 that made it read as a heavier, larger relative of the chip it was
   supposed to be. Only what a NAME needs is added on top: room to be long, and an ellipsis when it
   is longer than that. */
.student-detail__identity {
  max-width: min(34rem, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-detail__config:empty {
  display: none;
}

/* The wait inside an HTMX region of the person single (_InlineLoader). The spinner is the dashboard's
   own (.cm-spinner--sm, cloudminerva.scss, loaded on every page), so a wait looks the same wherever the
   reader meets one; the line beside it keeps the panel's supporting-copy voice. Centred, because it
   replaces a whole region and not a field. */
.pf-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
}

/* --- The person form's label rows (shared by Students/Teachers/Crew/Civilians) ----------------------
   A field label and its view-configurator eye are ONE line. The row exists in BOTH modes — the eye is
   only rendered while configuring — because styling it from the configurator's own stylesheet would
   leave the label unstyled the rest of the time. Top level and not nested under a screen: the four
   person singles use different roots (.student-detail, .detail-page), and this markup is one partial.
   It measures exactly what a bare label measures: the label's bottom margin (0.5rem) moves up to the
   row, so a field carrying an eye keeps its input level with the field beside it. */
.pf-label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.pf-label-row > .form-label {
  margin-bottom: 0;
}

/* The photo, whose label is centred over the avatar: label and eye centre as a unit. */
.pf-label-row--center {
  justify-content: center;
}

/* A checkbox has no label ABOVE it to hang the eye from, so the eye sits beside the check itself. */
.pf-check-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pf-check-row > .form-check {
  margin-bottom: 0;
}
.pf-check-row > .form-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
}
.pf-check-row > .form-switch > .form-check-input[role=switch] {
  flex: 0 0 auto;
  float: none;
  margin: 0;
}

/* The note that explains configuration mode, under the "Terminar" button. Shared by every person
   single, so it is styled here and not per screen — the previous attempt patched Bootstrap's .alert
   from inside .student-detail__config, which left the other three singles on the raw component.
   Both rules that were supposed to give it its spacing and its ink selected `> .d-flex`, a wrapper
   the partial stopped emitting when it moved to .person-config-bar: dead selectors, which is why the
   note sat flush against the button it belongs under. */
.person-config-note {
  /* Info in the day, the theme's own visible blue at night: --ms-info stays #1d4ed8 in dark, where
     a 7% tint of it on the night card is a tint of nothing. */
  --pcn-accent: var(--ms-info);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  /* The button above is a sibling in a wrapper with no gap of its own, so the space belongs to the
     note. Only the note carries it: with no configuration running there is no note and no stray gap. */
  margin: 1rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--pcn-accent) 22%, transparent);
  border-radius: var(--ms-radius-lg);
  background: color-mix(in srgb, var(--pcn-accent) 7%, var(--ms-surface));
  color: var(--ms-text);
  font-size: 0.8rem;
  line-height: 1.45;
  /* The term the sentence points at, not a shout: 500, the panel's rótulo weight. Bootstrap's bold
     put two 700s inside three lines of supporting copy. */
}
.person-config-note strong {
  font-weight: 500;
}

/* It must not be squeezed by the text beside it — flex was shrinking it to a sliver. */
.person-config-note__icon {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  font-size: 1.05rem;
  color: var(--pcn-accent);
}

[data-bs-theme=dark] .person-config-note,
html.dark .person-config-note {
  /* --ms-primary IS #3B82F6 at night (variables.scss): the blue the dark theme already speaks. And
     the tint has to work harder over a dark ground than over white. */
  --pcn-accent: var(--ms-primary);
  border-color: color-mix(in srgb, var(--pcn-accent) 34%, transparent);
  background: color-mix(in srgb, var(--pcn-accent) 12%, var(--ms-surface));
}

.student-detail__transfer {
  border-color: color-mix(in srgb, var(--ms-warning) 38%, var(--ms-border)) !important;
  background: color-mix(in srgb, var(--ms-warning) 6%, var(--ms-surface));
}

.student-detail__transfer-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-warning) 16%, transparent);
  color: var(--ms-warning);
}

.student-detail__transfer-copy {
  color: var(--ms-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.student-detail__transfer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.student-detail__transfer-actions form {
  margin: 0;
}

.student-detail__compact-button {
  min-height: 2rem;
  padding: 0.55rem 1rem;
  font-size: 0.65rem;
}

.student-detail__validation {
  margin-bottom: 0;
}
.student-detail__validation.validation-summary-valid {
  display: none;
}
.student-detail__validation:not(:empty) {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ms-error) 28%, var(--ms-border));
  border-radius: var(--ms-radius-lg);
  background: color-mix(in srgb, var(--ms-error) 6%, var(--ms-surface));
}
.student-detail__validation ul {
  margin: 0;
  padding-left: 1.1rem;
}

.student-detail :is(#student-detail-form,
#teacher-detail-form,
#crew-detail-form,
#civilian-detail-form) :is(.field-validation-error, .invalid-feedback)::before {
  content: "* ";
}

:is(.student-detail__form-card, .ms-tabs) {
  margin-bottom: 1.5rem;
}
:is(.student-detail__form-card, .ms-tabs) .student-detail__tab-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  gap: 0.25rem;
  margin: 0 0 1.25rem !important;
  padding: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-bg);
  scrollbar-width: none;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs::-webkit-scrollbar {
  display: none;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .pf-tabs__thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--ms-radius-pill);
  background: var(--brand-color, var(--ms-primary));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link {
  margin: 0;
  position: relative;
  z-index: 1;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: calc(0.02em + var(--ms-a11y-letter-add, 0em));
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link .material-symbols-outlined {
  font-size: 1.125rem;
  line-height: 1;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link {
  transition: background-color 0.18s ease, color 0.18s ease;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link:hover {
  color: var(--ms-text);
  background: color-mix(in srgb, var(--brand-color) 6%, transparent);
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link.active {
  background: transparent;
  color: var(--ms-neutralWhite);
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 45%, transparent);
  outline-offset: -2px;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.pf-tabs--previewing .nav-link.active:not(.pf-tabs__preview) {
  color: var(--ms-text-muted);
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.pf-tabs--previewing .nav-link.pf-tabs__preview {
  color: var(--ms-neutralWhite);
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.nav-tabs--icons .nav-link {
  padding: 0.4rem 0.8rem;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content {
  padding: 0;
  background: transparent;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade {
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show {
  transform: none;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card {
  animation: pf-section-in 260ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(1) {
  animation-delay: 0ms;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(2) {
  animation-delay: 45ms;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(3) {
  animation-delay: 90ms;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(4) {
  animation-delay: 135ms;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(5) {
  animation-delay: 180ms;
}
:is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card:nth-of-type(6) {
  animation-delay: 225ms;
}
@keyframes pf-section-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
:is(.student-detail__form-card, .ms-tabs) fieldset.card {
  margin-bottom: 1rem !important;
  overflow: hidden;
}
:is(.student-detail__form-card, .ms-tabs) fieldset.card:last-child {
  margin-bottom: 0 !important;
}
:is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 4rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 0;
  background: transparent;
  color: var(--cm-dashboard-heading);
  font-size: 18px;
  font-weight: 500 !important;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
  line-height: 24px;
  text-transform: uppercase;
}
:is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-header .material-symbols-outlined:not(.ms-button__icon) {
  color: var(--ms-orange);
  font-size: 20px;
}
:is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-body {
  padding: 1.25rem;
}
:is(.student-detail__form-card, .ms-tabs) [data-photo-preview],
:is(.student-detail__form-card, .ms-tabs) [data-photo-empty] {
  flex: 0 0 auto;
  border: 1px solid var(--ms-border);
  border-radius: 50% !important;
}
:is(.student-detail__form-card, .ms-tabs) [data-card-preview],
:is(.student-detail__form-card, .ms-tabs) [data-card-empty] {
  border-color: var(--ms-border) !important;
  border-radius: var(--ms-radius-lg) !important;
}

.student-detail__history {
  overflow: hidden;
}
.student-detail__history .form-text {
  font-size: 0.875rem;
  line-height: 1.5;
}
.student-detail__history > .card-header {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 0;
  background: transparent;
  color: var(--cm-dashboard-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
  line-height: 24px;
  text-transform: uppercase;
}
.student-detail__history > .card-header .material-symbols-outlined {
  color: var(--ms-orange);
  font-size: 20px;
}

.student-detail__actions-card {
  overflow: hidden;
}
@media (min-width: 992px) {
  .student-detail__actions-card:has(.dropdown-menu.show) {
    overflow: visible;
  }
}
.student-detail__actions-card > .card-header {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 0;
  background: transparent;
  color: var(--cm-dashboard-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
  line-height: 24px;
  text-transform: uppercase;
}
.student-detail__actions-card > .card-header .material-symbols-outlined {
  color: var(--ms-orange);
  font-size: 20px;
}

.student-detail__actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.student-detail__actions-list form {
  margin: 0;
}
.student-detail__actions-list form,
.student-detail__actions-list .ms-button,
.student-detail__actions-list .btn {
  width: 100%;
}
.student-detail__actions-list .ms-button,
.student-detail__actions-list .btn {
  justify-content: center;
}
.student-detail__actions-list .btn {
  border-radius: var(--ms-radius-pill);
}

#ms-content.ms-expanded-page [data-ms-mobile-actions][popover] :is([data-student-move-seat], [data-student-move-to]) > .dropdown-menu {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin-top: 0.6rem !important;
}

.student-detail__actions-divider {
  border-color: var(--ms-border);
  opacity: 1;
}

[data-bs-theme=dark] .student-detail__actions-divider,
html.dark .student-detail__actions-divider {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

[data-bs-theme=dark] [data-relation-pending],
html.dark [data-relation-pending] {
  --bs-border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

.student-detail__footer-actions {
  width: 100%;
  justify-content: flex-end;
}

[data-bs-theme=dark] .ms-tabs fieldset.card > .card-header,
html.dark .ms-tabs fieldset.card > .card-header {
  border-bottom: 0;
  background: var(--ms-surface);
}
[data-bs-theme=dark] .ms-tabs > .nav-tabs,
html.dark .ms-tabs > .nav-tabs {
  background: var(--ms-bg);
}

[data-bs-theme=dark] .student-detail .card,
html.dark .student-detail .card {
  border: 0;
}
[data-bs-theme=dark] .student-detail :is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-header,
[data-bs-theme=dark] .student-detail .student-detail__history > .card-header,
[data-bs-theme=dark] .student-detail .student-detail__actions-card > .card-header,
html.dark .student-detail :is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-header,
html.dark .student-detail .student-detail__history > .card-header,
html.dark .student-detail .student-detail__actions-card > .card-header {
  border-bottom: 0;
  background: var(--ms-surface);
}
[data-bs-theme=dark] .student-detail .table thead th,
html.dark .student-detail .table thead th {
  background: var(--ms-surface);
}
[data-bs-theme=dark] .student-detail :is(.student-detail__form-card, .ms-tabs) > .nav-tabs,
html.dark .student-detail :is(.student-detail__form-card, .ms-tabs) > .nav-tabs {
  background: var(--ms-surface);
}
[data-bs-theme=dark] .student-detail :is(.form-control, .form-select, .ms-input-data),
html.dark .student-detail :is(.form-control, .form-select, .ms-input-data) {
  border-color: transparent;
  background-color: var(--ms-bg);
  color: var(--ms-text);
}
[data-bs-theme=dark] .student-detail :is(.form-control, .form-select, .ms-input-data):hover:not([readonly]):not(:disabled),
html.dark .student-detail :is(.form-control, .form-select, .ms-input-data):hover:not([readonly]):not(:disabled) {
  border-color: color-mix(in srgb, var(--ms-primary) 25%, transparent);
}
[data-bs-theme=dark] .student-detail :is(.form-control, .form-select, .ms-input-data):focus,
html.dark .student-detail :is(.form-control, .form-select, .ms-input-data):focus {
  border-color: var(--ms-primary);
  background-color: var(--ms-bg);
  box-shadow: none;
}
[data-bs-theme=dark] .student-detail :is(.form-control, .form-select)[readonly]:not(.js-datepicker-input),
[data-bs-theme=dark] .student-detail :is(.form-control, .form-select):disabled,
html.dark .student-detail :is(.form-control, .form-select)[readonly]:not(.js-datepicker-input),
html.dark .student-detail :is(.form-control, .form-select):disabled {
  border-color: transparent;
  background-color: color-mix(in srgb, var(--ms-bg) 60%, var(--ms-surface));
  color: var(--ms-text-muted);
}

@media (max-width: 767.98px) {
  .student-detail__header {
    align-items: stretch;
  }
  .student-detail__header .pl-actions {
    width: 100%;
  }
  .student-detail__header .pl-actions .ms-button {
    flex: 1 1 0;
  }
  :is(.student-detail__form-card, .ms-tabs) > .nav-tabs {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  :is(.student-detail__form-card, .ms-tabs) > .tab-content {
    padding: 1rem;
  }
  :is(.student-detail__form-card, .ms-tabs) fieldset.card > .card-body {
    padding: 1rem;
  }
  :is(.student-detail__form-card, .ms-tabs) [data-photo] {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .student-detail__transfer-actions {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 575.98px) {
  .student-detail__permission-group-count {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .person-list .nav-pills .nav-link,
  .pl-bulkbar-actions .btn,
  .pl-bulkbar-actions .ms-button,
  .pl-filter-btn,
  .person-data-dialog .btn-close,
  .pl-filters-inline .btn,
  .student-detail .btn,
  .student-detail__permission-group > summary,
  .student-detail__permission-group::details-content,
  .student-detail__permission-chevron,
  :is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link,
  :is(.student-detail__form-card, .ms-tabs) > .nav-tabs .pf-tabs__thumb,
  :is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade {
    transition: none;
  }
  :is(.student-detail__form-card, .ms-tabs) > .tab-content > .tab-pane.fade.show fieldset.card {
    animation: none;
  }
  .pl-filter-btn:active,
  .pl-bulkbar-actions .btn:active,
  .pl-bulkbar-actions .ms-button:active,
  .person-data-dialog .btn-close:active,
  .pl-filters-inline .btn:active,
  .student-detail .btn:active,
  .student-detail__permission-group > summary:active,
  :is(.student-detail__form-card, .ms-tabs) > .nav-tabs .nav-link:active {
    transform: none;
  }
}
:is(.person-list--maintenance, .person-list--academics, .person-list--discipline) .pl-datatable tbody td {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  height: calc(2 * 1.5 * 1em + 2 * 0.95rem);
}

.person-list--transcript .pl-datatable tbody td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  height: calc(2 * 1.5 * 1em + 2 * 0.7rem);
}

[data-bs-theme=dark] .pl-filters-inline .btn,
html.dark .pl-filters-inline .btn {
  border-color: transparent;
  background: var(--ms-bg);
  color: var(--ms-text);
}

[data-bs-theme=dark] .pl-filters-inline .btn:hover,
[data-bs-theme=dark] .pl-filters-inline .btn:focus,
[data-bs-theme=dark] .pl-filters-inline .btn.show,
html.dark .pl-filters-inline .btn:hover,
html.dark .pl-filters-inline .btn:focus,
html.dark .pl-filters-inline .btn.show {
  border-color: transparent;
  background: color-mix(in srgb, #ffffff 8%, var(--ms-bg));
  color: var(--ms-text);
}

[data-bs-theme=dark] .pl-filters-inline .dropdown-menu,
html.dark .pl-filters-inline .dropdown-menu {
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
  background: color-mix(in srgb, #ffffff 7%, var(--ms-surface));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme=dark] .pl-filters-inline .dropdown-menu :is(.form-control, .form-select, input[type=text], input[type=search], input[type=date]),
html.dark .pl-filters-inline .dropdown-menu :is(.form-control, .form-select, input[type=text], input[type=search], input[type=date]) {
  border-color: transparent;
  background: var(--ms-bg);
  color: var(--ms-text);
}

[data-bs-theme=dark] .pl-filters-inline .dropdown-menu :is(.form-control, input):focus,
html.dark .pl-filters-inline .dropdown-menu :is(.form-control, input):focus {
  border-color: var(--ms-primary);
  box-shadow: none;
}

.pl-filters-inline .dropdown-menu {
  margin-top: 0.45rem !important;
}

.pl-status.pl-dni-chip {
  color: #a04e00;
  background: color-mix(in srgb, var(--ms-orange) 12%, transparent);
  font-variant-numeric: tabular-nums;
}

.pl-status .pl-status-label {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-bs-theme=dark] .pl-status.is-warn,
html.dark .pl-status.is-warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

[data-bs-theme=dark] .pl-status.is-ok,
html.dark .pl-status.is-ok {
  color: #4ade80;
  background: rgba(54, 217, 139, 0.15);
}

[data-bs-theme=dark] .pl-status.is-danger,
html.dark .pl-status.is-danger {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

.pl-bulkbar-actions .person-selectall a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
  color: var(--ms-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.pl-bulkbar-actions .person-selectall a:hover {
  background: color-mix(in srgb, var(--ms-primary) 18%, transparent);
}

.person-list--transcript .pf-menu {
  min-width: 24rem;
  max-width: min(34rem, 92vw);
}
.person-list--transcript .pf-menu .dropdown-item {
  white-space: normal;
  overflow-wrap: anywhere;
}

.person-list--groups [data-pf-key=course] .pf-menu {
  min-width: min(24rem, 90vw);
  max-width: min(34rem, 90vw);
}
.person-list--groups [data-pf-key=course] .pf-menu .dropdown-item {
  white-space: normal;
  overflow-wrap: anywhere;
}
.person-list--groups [data-pf-key=course] .pf-menu .dropdown-item > span {
  min-width: 0;
}

.pl-datatable.ms-rows-in > tbody > tr {
  animation: pl-row-in 220ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 390ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(1) {
  animation-delay: 0ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(2) {
  animation-delay: 26ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(3) {
  animation-delay: 52ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(4) {
  animation-delay: 78ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(5) {
  animation-delay: 104ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(6) {
  animation-delay: 130ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(7) {
  animation-delay: 156ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(8) {
  animation-delay: 182ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(9) {
  animation-delay: 208ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(10) {
  animation-delay: 234ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(11) {
  animation-delay: 260ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(12) {
  animation-delay: 286ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(13) {
  animation-delay: 312ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(14) {
  animation-delay: 338ms;
}

.pl-datatable.ms-rows-in > tbody > tr:nth-child(15) {
  animation-delay: 364ms;
}

@media (prefers-reduced-motion: reduce) {
  .pl-datatable.ms-rows-in > tbody > tr {
    animation: none;
  }
}
.pl-card.ms-swap-in {
  animation: pl-row-in 260ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.person-list--courses .dt-container .table-responsive {
  padding-top: 0.75rem;
}

[data-bs-theme=dark] .student-detail .emergency-person__avatar,
html.dark .student-detail .emergency-person__avatar {
  background: color-mix(in srgb, var(--ms-primary) 24%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 65%, #ffffff);
}
[data-bs-theme=dark] .student-detail .emergency-chip,
html.dark .student-detail .emergency-chip {
  background: color-mix(in srgb, #ffffff 8%, transparent);
}
[data-bs-theme=dark] .student-detail .emergency-remove:hover,
[data-bs-theme=dark] .student-detail .emergency-remove:focus-visible,
[data-bs-theme=dark] .student-detail .phone-remove:hover,
[data-bs-theme=dark] .student-detail .phone-remove:focus-visible,
html.dark .student-detail .emergency-remove:hover,
html.dark .student-detail .emergency-remove:focus-visible,
html.dark .student-detail .phone-remove:hover,
html.dark .student-detail .phone-remove:focus-visible {
  background: color-mix(in srgb, var(--ms-danger) 24%, transparent);
  color: color-mix(in srgb, var(--ms-danger) 60%, #ffffff);
}

.student-detail__history .card-body:has(.transfer-empty) {
  padding-top: 0.75rem;
}

.transfer-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.transfer-empty__note {
  margin: 0;
  color: color-mix(in srgb, var(--ms-text-muted) 80%, transparent);
  font-size: 0.72rem;
  line-height: 1.4;
}

.transfer-timeline--ghost {
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
.transfer-timeline--ghost .transfer-timeline__item {
  padding-bottom: 0.7rem;
}
.transfer-timeline--ghost .transfer-timeline__dot {
  background: color-mix(in srgb, var(--ms-primary) 7%, transparent);
  border: 1px dashed color-mix(in srgb, var(--ms-primary) 35%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
}
.transfer-timeline--ghost .transfer-timeline__item:not(:last-child)::before {
  width: 0;
  background: none;
  border-left: 1px dashed color-mix(in srgb, var(--ms-primary) 25%, transparent);
}

.transfer-ghost__label {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.transfer-ghost__route {
  display: block;
  margin-top: 0.1rem;
  color: color-mix(in srgb, var(--ms-text-muted) 75%, transparent);
  font-size: 0.72rem;
  line-height: 1.35;
}

.ms-timeline,
.transfer-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-timeline__item,
.transfer-timeline__item {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
}
.ms-timeline__item:last-child,
.transfer-timeline__item:last-child {
  padding-bottom: 0;
}
.ms-timeline__item:not(:last-child)::before,
.transfer-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.85rem;
  bottom: 0.15rem;
  left: 0.9rem;
  width: 1px;
  background: var(--ms-border);
}
.ms-timeline__dot,
.transfer-timeline__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
  color: var(--ms-primary);
}
.ms-timeline__dot .material-symbols-outlined,
.transfer-timeline__dot .material-symbols-outlined {
  font-size: 1rem;
}
.ms-timeline__body,
.transfer-timeline__body {
  min-width: 0;
  flex: 1 1 auto;
}
.ms-timeline__head,
.transfer-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.ms-timeline__label,
.transfer-timeline__label {
  color: var(--ms-text);
  font-size: 0.82rem;
  font-weight: 500;
}
.ms-timeline__date,
.transfer-timeline__date {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.ms-timeline__route,
.transfer-timeline__route {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.15rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ms-timeline__route .material-symbols-outlined,
.transfer-timeline__route .material-symbols-outlined {
  font-size: 0.95rem;
  flex: 0 0 auto;
}

[data-bs-theme=dark] .student-detail .transfer-timeline--ghost .transfer-timeline__dot,
html.dark .student-detail .transfer-timeline--ghost .transfer-timeline__dot {
  background: color-mix(in srgb, var(--ms-primary) 14%, transparent);
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 55%, #ffffff);
}
[data-bs-theme=dark] .student-detail .transfer-timeline--ghost .transfer-timeline__item:not(:last-child)::before,
html.dark .student-detail .transfer-timeline--ghost .transfer-timeline__item:not(:last-child)::before {
  border-left-color: color-mix(in srgb, var(--ms-primary) 35%, transparent);
}
[data-bs-theme=dark] .student-detail .transfer-ghost__label,
html.dark .student-detail .transfer-ghost__label {
  color: color-mix(in srgb, var(--ms-text-muted) 85%, transparent);
}
[data-bs-theme=dark] .student-detail .transfer-timeline__item:not(:last-child)::before,
html.dark .student-detail .transfer-timeline__item:not(:last-child)::before {
  background: color-mix(in srgb, #ffffff 10%, transparent);
}
[data-bs-theme=dark] .student-detail .transfer-timeline__dot,
html.dark .student-detail .transfer-timeline__dot {
  background: color-mix(in srgb, var(--ms-primary) 22%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 65%, #ffffff);
}

[data-bs-theme=dark] .student-detail .emergency-list,
html.dark .student-detail .emergency-list {
  background: color-mix(in srgb, #ffffff 5%, transparent);
}

[data-bs-theme=dark] .student-detail :is(.allergy-row, .allergy-empty),
html.dark .student-detail :is(.allergy-row, .allergy-empty) {
  background: color-mix(in srgb, #ffffff 5%, transparent);
}

[data-bs-theme=dark] .student-detail .allergy-remove:hover,
[data-bs-theme=dark] .student-detail .allergy-remove:focus-visible,
html.dark .student-detail .allergy-remove:hover,
html.dark .student-detail .allergy-remove:focus-visible {
  background: color-mix(in srgb, var(--ms-danger) 24%, transparent);
  color: color-mix(in srgb, var(--ms-danger) 60%, #ffffff);
}

[data-bs-theme=dark] .student-detail .emergency-row + .emergency-row,
html.dark .student-detail .emergency-row + .emergency-row {
  border-top-color: color-mix(in srgb, #ffffff 8%, transparent);
}

[data-bs-theme=dark] .student-detail #roles-permissions-region,
html.dark .student-detail #roles-permissions-region {
  background: color-mix(in srgb, #ffffff 5%, transparent);
}
[data-bs-theme=dark] .student-detail #roles-permissions-region :is(.form-control, .form-select, .ms-input-data),
html.dark .student-detail #roles-permissions-region :is(.form-control, .form-select, .ms-input-data) {
  background-color: color-mix(in srgb, #ffffff 6%, var(--ms-surface));
}
[data-bs-theme=dark] .student-detail #roles-permissions-region :is(.student-detail__permission-group, .rp-seat, .rp-door, .ms-toggle-card),
html.dark .student-detail #roles-permissions-region :is(.student-detail__permission-group, .rp-seat, .rp-door, .ms-toggle-card) {
  background: color-mix(in srgb, #ffffff 4%, var(--ms-surface));
}
[data-bs-theme=dark] .student-detail #roles-permissions-region .rp-panel__rule,
[data-bs-theme=dark] .student-detail #roles-permissions-region > .row > div:not(:first-child) > .rp-panel,
html.dark .student-detail #roles-permissions-region .rp-panel__rule,
html.dark .student-detail #roles-permissions-region > .row > div:not(:first-child) > .rp-panel {
  border-top-color: color-mix(in srgb, #ffffff 9%, transparent);
}

.army-news-review > .pl-cardhead {
  border-radius: 30px;
}

.pn-news-empty {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: var(--ms-text-muted);
  text-align: center;
}

.pn-news-empty[hidden] {
  display: none;
}

.pn-news-empty__icon {
  color: var(--ms-text-muted);
  font-size: 2.5rem;
  line-height: 1;
}

.pn-news-empty__text,
.pn-news-empty__note {
  margin: 0;
}

.pn-news-empty__text {
  max-width: 38rem;
}

.pn-news-empty__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pn-news-empty__note {
  font-size: 0.8rem;
}

.pn-news-card {
  isolation: isolate;
  min-height: 32rem;
  background: #07101d;
}

.pn-news-card__media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.pn-news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: filter 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pn-news-card:hover .pn-news-card__image,
.pn-news-card:focus-visible .pn-news-card__image,
.pn-news-card:has(:focus-visible) .pn-news-card__image {
  filter: blur(6px);
  transform: scale(1.03);
}

.pn-news-card__media > .badge {
  background-color: var(--color-primaryColor) !important;
  font-weight: 400;
}

.pn-news-card__footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1rem 1rem;
  border-radius: 30px 30px 0 0;
  background: transparent;
  -webkit-backdrop-filter: blur(18px) brightness(0.42);
  backdrop-filter: blur(18px) brightness(0.42);
  color: #f8fafc;
}

.pn-news-card__footer .cm-h2 {
  font-size: 0.875em;
  line-height: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

.army-news-review .pn-news-card__footer .cm-h2,
.army-news-review .pn-news-card__footer .cm-card-meta,
.army-news-review .pn-news-card__summary {
  color: #f8fafc;
}

.pn-news-card__summary {
  display: -webkit-box;
  font-size: 0.75em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}

.pn-news-card__reveal {
  margin-top: -0.5rem;
  pointer-events: none;
  transition: margin-top 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pn-news-card__reveal-item {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pn-news-card__reveal-inner {
  min-height: 0;
  overflow: hidden;
}

.pn-news-card:hover .pn-news-card__reveal,
.pn-news-card:focus-visible .pn-news-card__reveal,
.pn-news-card:has(:focus-visible) .pn-news-card__reveal {
  margin-top: 0;
  pointer-events: auto;
}

.pn-news-card:hover .pn-news-card__reveal-item,
.pn-news-card:focus-visible .pn-news-card__reveal-item,
.pn-news-card:has(:focus-visible) .pn-news-card__reveal-item {
  grid-template-rows: 1fr;
}

.pn-news-card__summary,
.pn-news-card__secondary-actions,
.pn-news-card__publish-form {
  margin-top: 0.5rem;
}

.pn-news-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-color) 55%, #fff);
  outline-offset: 2px;
}

.pn-news-card__actions .btn-outline-danger {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--ms-danger);
  --bs-btn-border-color: rgba(255, 180, 188, 0.8);
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: color-mix(in srgb, #000 6%, var(--bs-btn-bg));
  --bs-btn-hover-border-color: var(--bs-btn-border-color);
  --bs-btn-active-color: var(--bs-btn-color);
  --bs-btn-active-bg: color-mix(in srgb, #000 6%, var(--bs-btn-bg));
  --bs-btn-active-border-color: var(--bs-btn-border-color);
  --bs-btn-active-shadow: none;
  border: 0;
  border-radius: 30px;
  transition: transform 0.12s ease;
}
.pn-news-card__actions .btn-outline-danger:hover {
  box-shadow: none;
  filter: none;
  transform: none;
}
.pn-news-card__actions .btn-outline-danger:active {
  box-shadow: none;
  filter: none;
  transform: scale(0.9);
}

.pn-news-card__publish-form,
.pn-news-card__publish-button {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .pn-news-card__image,
  .pn-news-card__reveal,
  .pn-news-card__reveal-item {
    transition: none;
  }
}
.ms-viewtabs {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.25rem;
}
.ms-viewtabs > .nav-tabs {
  margin-bottom: 0 !important;
}

.pl-header + .ms-viewtabs {
  margin-top: -0.75rem;
}

.pn-idcell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.cal-filter,
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ms-text-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.cal-chip:hover {
  color: var(--ms-text);
}
.cal-chip:active {
  transform: scale(0.96);
}
.cal-chip.active {
  color: var(--ms-primary);
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
}
.cal-chip__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.cal-chip--more {
  gap: 0.2rem;
  padding-inline: 0.55rem;
}
.cal-chip__icon {
  font-size: 1rem;
  line-height: 1;
}

.cal-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.cal-legend {
  padding: 0 0.25rem 0.75rem;
}
.cal-legend__clear {
  font-size: 0.8rem;
  color: var(--ms-text-muted);
  text-decoration: none;
  margin-left: 0.25rem;
}
.cal-legend__clear:hover {
  color: var(--ms-text);
  text-decoration: underline;
}

.cal {
  background: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  padding: 1rem 1.25rem 1.25rem;
}

.cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
}

.cal-head {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 11.5rem;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
}
.cal-head__of {
  font-weight: 400;
  color: var(--ms-text-muted);
}

.cal-month,
.cal-year {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-sm);
  padding: 0.1rem 0.3rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cal-month:hover,
.cal-year:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
}
.cal-month:focus-visible,
.cal-year:focus-visible {
  outline: none;
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 6%, transparent);
}

.cal-month {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  cursor: pointer;
}
.cal-month__caret {
  font-size: 1.125rem;
  color: var(--ms-text-muted);
}
.cal-month__menu {
  min-width: 15rem;
  padding: 0.375rem;
}
.cal-month__menu.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(max-content, 1fr));
  gap: 0.125rem;
  width: max-content;
  max-width: min(26rem, 90vw);
}
.cal-month__menu .dropdown-item {
  border-radius: var(--ms-radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

.cal-year {
  width: 4.4ch;
  box-sizing: content-box;
  text-align: center;
  cursor: text;
}

.cal-today[hidden] {
  display: none;
}

.cal-total {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ms-text-muted);
}

.cal-body {
  display: block;
}

.cal-grid__head, .cal-grid__body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.cal-grid__weekday {
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: calc(0.04em + var(--ms-a11y-letter-add, 0em));
  color: var(--ms-text-muted);
  text-align: center;
}

.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ms-text);
  background: none;
  border: 0;
  border-radius: var(--ms-radius);
}
.cal-day--outside {
  opacity: 1;
  color: #6b7280;
}
.cal-day--today {
  position: relative;
}
.cal-day--today::after {
  content: "";
  position: absolute;
  bottom: 0.125rem;
  left: 50%;
  width: 1.2rem;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--ms-primary);
}
.cal-day__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
}
.cal-day--has {
  cursor: pointer;
}

.cal-grid--banded .cal-grid__head {
  gap: 0;
}

.cal-weeks {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
}

.cal-week {
  --cal-num-row: 2rem;
  --cal-lane-row: 1.5rem;
  --cal-foot-row: 0.35rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: calc(var(--cal-num-row) + 3 * var(--cal-lane-row) + var(--cal-foot-row));
}
.cal-week + .cal-week {
  border-top: 1px solid var(--ms-border);
}

.cal-cell {
  grid-row: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0.3rem 0 0;
  font: inherit;
  color: var(--ms-text);
  background: none;
  border: 0;
  border-radius: 0;
}
.cal-cell + .cal-cell {
  border-left: 1px solid var(--ms-border);
}
.cal-cell__num {
  display: grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.cal-cell--outside {
  color: #6b7280;
  background: color-mix(in srgb, var(--ms-text) 3%, transparent);
}
.cal-cell--today .cal-cell__num {
  color: var(--ms-onPrimary);
  background: var(--ms-primary);
}
.cal-cell--has {
  cursor: pointer;
}
.cal-cell--has:hover {
  background: color-mix(in srgb, var(--ms-text) 5%, transparent);
}
.cal-cell--has:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: -2px;
}
.cal-cell--has.is-open {
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ms-primary) 55%, transparent);
}

.cal-event {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  height: calc(var(--cal-lane-row) - 0.25rem);
  margin: 0 0.25rem;
  padding: 0 0.4rem;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ms-text);
  white-space: nowrap;
  background: color-mix(in srgb, var(--cal-event-color) 18%, transparent);
  border-radius: var(--ms-radius-sm, 0.3rem);
  pointer-events: none;
}
.cal-event__dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cal-event-color);
}
.cal-event__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event--open-start {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cal-event--open-end {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-more {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  pointer-events: none;
}
.cal-more .cal-event--unfolded {
  margin-bottom: 0.25rem;
}
.cal-more__toggle {
  align-self: flex-start;
  max-width: 100%;
  margin: 0 0.25rem;
  padding: 0.1rem 0.15rem;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ms-text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: none;
  border: 0;
  border-radius: var(--ms-radius-sm, 0.3rem);
  cursor: pointer;
  pointer-events: auto;
}
.cal-more__toggle:hover {
  color: var(--ms-primary);
  text-decoration: underline;
}
.cal-more__toggle:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 1px;
}
.cal-more__toggle .cal-more__close {
  display: none;
}
.cal-more__toggle[aria-expanded=true] .cal-more__open {
  display: none;
}
.cal-more__toggle[aria-expanded=true] .cal-more__close {
  display: inline;
}

@media (max-width: 575.98px) {
  .cal-week {
    --cal-num-row: 1.9rem;
    --cal-lane-row: 0.75rem;
    --cal-foot-row: 0.3rem;
  }
  .cal-event {
    height: 0.4rem;
    padding: 0;
    margin: 0 0.15rem;
  }
  .cal-event__dot, .cal-event__title {
    display: none;
  }
  .cal-more .cal-event--unfolded {
    margin-bottom: 0.2rem;
  }
  .cal-more__toggle {
    margin: 0 0.1rem;
    padding: 0.1rem 0;
    font-size: 0.65rem;
  }
}
.cal-day--flat.cal-day--has:hover {
  background: color-mix(in srgb, var(--ms-text) 7%, transparent);
}

.cal-daypanel {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: var(--ms-bg);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  animation: cal-daypanel-in 0.22s ease-out;
}
.cal-daypanel.htmx-swapping {
  animation: cal-daypanel-out 0.18s ease-in forwards;
}
.cal-daypanel--closed {
  display: none;
}
.cal-daypanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cal-daypanel__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.cal-daypanel__close {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--ms-text-muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.cal-daypanel__close:hover, .cal-daypanel__close:focus-visible {
  color: var(--ms-text);
  background: color-mix(in srgb, var(--ms-text) 8%, transparent);
}
.cal-daypanel__close:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 1px;
}
.cal-daypanel__empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ms-text-muted);
}
.cal-daypanel__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.cal-daypanel__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}
.cal-daypanel__item + .cal-daypanel__item {
  border-top: 1px solid var(--ms-border);
}
.cal-daypanel__item a {
  color: var(--ms-text);
  text-decoration: none;
}
.cal-daypanel__item a:hover {
  text-decoration: underline;
}
.cal-daypanel__origin {
  margin-left: auto;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--cal-chip-color) 70%, #000);
  background: color-mix(in srgb, var(--cal-chip-color) 14%, transparent);
}

@keyframes cal-daypanel-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cal-daypanel-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cal-daypanel,
  .cal-daypanel.htmx-swapping {
    animation: none;
  }
}
[data-bs-theme=dark] .cal,
html.dark .cal {
  background: var(--ms-surface);
  border-color: color-mix(in srgb, #ffffff 8%, transparent);
}

[data-bs-theme=dark] .cal-daypanel,
html.dark .cal-daypanel {
  background: color-mix(in srgb, #ffffff 5%, transparent);
  border-color: color-mix(in srgb, #ffffff 8%, transparent);
}

[data-bs-theme=dark] .cal-daypanel__origin,
html.dark .cal-daypanel__origin {
  color: color-mix(in srgb, var(--cal-chip-color) 55%, #fff);
  background: color-mix(in srgb, var(--cal-chip-color) 22%, transparent);
}

@keyframes pl-bulk-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ============================================================================
   A single shown INSIDE a dialog (_LayoutEmbed): the request-template preview
   is framed by the builder rather than navigated to.
   ============================================================================
   The layout is a single's — 3/4 for the document, 1/4 for the actions — and the
   embedded page renders no actions, so the grid kept an empty quarter and the
   sheet sat off to the left of a dialog with nothing on its right. One column
   here, and the note above the document lines up with the paper it describes.
   It lives in this file and not in builder.scss because the framed page loads
   the panel's shared stylesheets only, and .student-detail is declared here. */
.student-detail--embed .student-detail__layout {
  display: block;
}

/* The parent picker of a library category: a search box over the list it narrows. They are one field,
   so they are spaced like the label above them and not welded together. */
.librarycategory-parent-field > #librarycategory-parent-search {
  margin-bottom: 0.5rem;
}

/* The file drop surface spans the card, followed by its options and a separate action row. */
[data-librarydocument-files] .librarydocument-file-name-cell, #admindoc-versions .librarydocument-file-name-cell, #yearbook-document-card .librarydocument-file-name-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-librarydocument-files] .librarydocument-file-link, #admindoc-versions .librarydocument-file-link, #yearbook-document-card .librarydocument-file-link {
  min-width: 0;
  max-width: 100%;
}
[data-librarydocument-files] .librarydocument-file-link > .material-symbols-outlined, #admindoc-versions .librarydocument-file-link > .material-symbols-outlined, #yearbook-document-card .librarydocument-file-link > .material-symbols-outlined {
  flex: 0 0 auto;
}
[data-librarydocument-files] .librarydocument-file-link > .librarydocument-file-name, #admindoc-versions .librarydocument-file-link > .librarydocument-file-name, #yearbook-document-card .librarydocument-file-link > .librarydocument-file-name {
  flex: 1 1 auto;
}
[data-librarydocument-files] .librarydocument-file-name, #admindoc-versions .librarydocument-file-name, #yearbook-document-card .librarydocument-file-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-librarydocument-files] .librarydocument-file-remove:hover, [data-librarydocument-files] .librarydocument-file-remove:focus, [data-librarydocument-files] .librarydocument-file-remove:focus-visible, [data-librarydocument-files] .librarydocument-file-remove:active,
#admindoc-versions .librarydocument-file-remove:hover,
#admindoc-versions .librarydocument-file-remove:focus,
#admindoc-versions .librarydocument-file-remove:focus-visible,
#admindoc-versions .librarydocument-file-remove:active,
#yearbook-document-card .librarydocument-file-remove:hover,
#yearbook-document-card .librarydocument-file-remove:focus,
#yearbook-document-card .librarydocument-file-remove:focus-visible,
#yearbook-document-card .librarydocument-file-remove:active {
  border-color: transparent;
  outline: 0;
  background-color: transparent;
  box-shadow: none;
  transform: none;
}

.librarydocument-add__drop .ms-dropzone__empty {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.librarydocument-add__drop .ms-dropzone__empty > span:not(.ms-dropzone__empty-icon) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.librarydocument-add {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.librarydocument-add__side {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
}
.librarydocument-add__side .form-label {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.librarydocument-add__side > .ms-toggle-card {
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
.librarydocument-add__side > .ms-button {
  grid-column: 1/-1;
  justify-self: end;
}

@media (max-width: 575.98px) {
  .librarydocument-add__side {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .librarydocument-add__side > .ms-button {
    justify-self: stretch;
  }
}
/* The Curso / Especialidad filters of the group's students (only where the school has them). The look is
   .pl-filters-inline's; what is ours is the spacing above the picker and the loader that sits in the row. */
/* «Copiar usuarios de otro grupo»: the people as a bulleted list in the dialog's description text, the way the
   shared confirmation words «Fijar contenidos» (12-11-2026). */
.group-copy-preview__list {
  max-height: 300px;
  overflow-y: auto;
  padding-left: 1.25rem;
  list-style: disc;
}
.group-copy-preview__list > li + li {
  margin-top: 0.125rem;
}
.group-copy-preview__list > li::marker {
  color: var(--ms-text-muted);
}

.group-students__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

:is(.detail-page--groups .group-student-picker, .detail-page--yearbook-category .group-student-picker, .detail-page--rank-category .relation-roster-picker, .detail-page--military-force .relation-roster-picker, .detail-page--rank .group-student-picker, .detail-page--brigade .brigade-user-picker, .phonebook-category-items .relation-roster-picker) {
  max-width: 520px;
}
:is(.detail-page--groups .group-student-picker, .detail-page--yearbook-category .group-student-picker, .detail-page--rank-category .relation-roster-picker, .detail-page--military-force .relation-roster-picker, .detail-page--rank .group-student-picker, .detail-page--brigade .brigade-user-picker, .phonebook-category-items .relation-roster-picker) [role=option] {
  cursor: pointer;
}
:is(.detail-page--groups .group-student-picker, .detail-page--yearbook-category .group-student-picker, .detail-page--rank-category .relation-roster-picker, .detail-page--military-force .relation-roster-picker, .detail-page--rank .group-student-picker, .detail-page--brigade .brigade-user-picker, .phonebook-category-items .relation-roster-picker) input[type=search]::-webkit-search-cancel-button,
:is(.detail-page--groups .group-student-picker, .detail-page--yearbook-category .group-student-picker, .detail-page--rank-category .relation-roster-picker, .detail-page--military-force .relation-roster-picker, .detail-page--rank .group-student-picker, .detail-page--brigade .brigade-user-picker, .phonebook-category-items .relation-roster-picker) input[type=search]::-webkit-search-decoration {
  appearance: none;
}

.yearbook-picker-dropdown {
  z-index: 1080;
  overflow-y: auto;
  box-shadow: var(--ms-shadow-dropdown);
}

.group-student-filters__loader {
  flex: 0 0 auto;
}

/* Adding a student to a group: the picker takes the row and the button closes it. */
.group-add-student {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.group-add-student .form-label {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: calc(0.055em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.group-add-student__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.group-add-student__row > .position-relative {
  flex: 1 1 auto;
  min-width: 0;
}
.group-add-student__row > .ms-button {
  flex: 0 0 auto;
}

/* The subtitle is pulled up half a rem to close the slack a 1.9rem heading leaves under its text. On a
   phone the counter chip no longer fits beside the title and wraps to its own line, and then the
   heading has no slack left to close: the chip's own edge IS the heading's bottom, so the pull-up
   landed the subtitle on top of the chip — measured at 8px of overlap on Notificaciones.
   Only headings that carry a chip, and only where it wraps. */
@media (max-width: 767.98px) {
  .pl-title:has(.pl-total) + .pl-subtitle {
    margin-top: 0.35rem;
  }
}
[data-bs-theme=dark] :is(.student-detail__form-card, .ms-tabs) > .nav-tabs,
html.dark :is(.student-detail__form-card, .ms-tabs) > .nav-tabs {
  background: var(--ms-surface);
}

[data-bs-theme=dark] :is(.student-detail__form-card, .ms-tabs) > .nav-tabs .pf-tabs__thumb,
html.dark :is(.student-detail__form-card, .ms-tabs) > .nav-tabs .pf-tabs__thumb {
  background: var(--ms-bg);
}

#person-dt tbody tr.pl-row--never-logged > td {
  background-color: color-mix(in srgb, var(--ms-warning) 14%, transparent);
}

#person-dt tbody tr.pl-row--long-time-not-logged > td {
  background-color: color-mix(in srgb, var(--ms-danger) 12%, transparent);
}

.person-list--followed {
  padding-bottom: 0;
}

.person-list--followed + .detail-section {
  margin-top: 1.25rem;
}

:is(.student-detail__form-card, .ms-tabs) > .nav-tabs,
.person-list .nav-pills {
  --pf-tabs-fade: 2.75rem;
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.pf-tabs--more-end,
.person-list .nav-pills.pf-tabs--more-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--pf-tabs-fade)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--pf-tabs-fade)), transparent);
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.pf-tabs--more-start,
.person-list .nav-pills.pf-tabs--more-start {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--pf-tabs-fade));
  mask-image: linear-gradient(to right, transparent, #000 var(--pf-tabs-fade));
}
:is(.student-detail__form-card, .ms-tabs) > .nav-tabs.pf-tabs--more-start.pf-tabs--more-end,
.person-list .nav-pills.pf-tabs--more-start.pf-tabs--more-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--pf-tabs-fade), #000 calc(100% - var(--pf-tabs-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--pf-tabs-fade), #000 calc(100% - var(--pf-tabs-fade)), transparent);
}

.administrators-review {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.administrators-review .pl-status .pl-status-label {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
