@charset "UTF-8";
/* Styles for the application shell (layout, navbar, sidebar, auth, utilities). */
/* Date picker (flatpickr): global form control, paired with js/datepicker.js. */
.ms-datefield {
  position: relative;
}
.ms-datefield > input.form-control {
  padding-left: 2.35rem;
}
.ms-datefield__icon {
  position: absolute;
  top: 50%;
  left: 0.7rem;
  transform: translateY(-50%);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ms-text-muted);
  pointer-events: none;
}

.flatpickr-calendar {
  display: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.4rem) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s, display 0.18s allow-discrete;
  pointer-events: none;
  animation: none !important;
  width: auto;
  padding: 0.65rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow-dropdown);
  color: var(--ms-text);
  font-size: 13px;
}
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar .flatpickr-days {
  width: 238px;
}
.flatpickr-calendar .dayContainer {
  width: 238px;
  min-width: 238px;
  max-width: 238px;
}
.flatpickr-calendar .flatpickr-day {
  max-width: 34px;
  height: 34px;
  line-height: 34px;
}
.flatpickr-calendar.open {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@starting-style {
  .flatpickr-calendar.open {
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.98);
  }
}
.flatpickr-calendar::before, .flatpickr-calendar::after {
  display: none;
}
.flatpickr-calendar .flatpickr-months {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month {
  flex: 1;
  height: auto;
  overflow: visible;
}
.flatpickr-calendar .flatpickr-current-month {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0;
  font-size: 0.95rem;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  position: static;
  flex: 0 0 auto;
  height: auto;
  padding: 0.2rem;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year,
.flatpickr-calendar span.flatpickr-weekday {
  color: var(--ms-text);
  fill: var(--ms-text);
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  color: var(--ms-text-muted);
  fill: var(--ms-text-muted);
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--ms-primary);
}
.flatpickr-calendar .flatpickr-day {
  color: var(--ms-text);
}
.flatpickr-calendar .flatpickr-day:hover, .flatpickr-calendar .flatpickr-day.prevMonthDay:hover, .flatpickr-calendar .flatpickr-day.nextMonthDay:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-surface));
}
.flatpickr-calendar .flatpickr-day.today {
  border-color: var(--ms-primary);
}
.flatpickr-calendar .flatpickr-day.today:hover, .flatpickr-calendar .flatpickr-day.selected, .flatpickr-calendar .flatpickr-day.selected:hover {
  border-color: var(--ms-primary);
  background: var(--ms-primary);
  color: var(--ms-onPrimary);
}
.flatpickr-calendar .flatpickr-day.prevMonthDay, .flatpickr-calendar .flatpickr-day.nextMonthDay, .flatpickr-calendar .flatpickr-day.flatpickr-disabled {
  color: var(--ms-text-muted);
}
.flatpickr-calendar .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background: var(--ms-surface);
}
.flatpickr-calendar .flatpickr-time {
  border-top: 1px solid var(--ms-border);
}
.flatpickr-calendar .flatpickr-time input,
.flatpickr-calendar .flatpickr-time .flatpickr-time-separator,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm {
  color: var(--ms-text);
}
.flatpickr-calendar .flatpickr-time input:hover,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-calendar .flatpickr-time input:focus,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus {
  background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-surface));
}

.flatpickr-calendar.noCalendar {
  width: auto;
  min-width: 9.5rem;
  padding: 0.35rem;
}
.flatpickr-calendar.noCalendar .flatpickr-time {
  border-top: 0;
  height: auto;
}
.flatpickr-calendar.noCalendar .flatpickr-time input.flatpickr-hour,
.flatpickr-calendar.noCalendar .flatpickr-time input.flatpickr-minute {
  border-radius: var(--ms-radius-sm);
  font-size: 1rem;
  font-weight: 600;
}
.flatpickr-calendar.noCalendar .flatpickr-time .flatpickr-time-separator {
  font-weight: 600;
}
.flatpickr-calendar.noCalendar .flatpickr-time .numInputWrapper span {
  border-color: var(--ms-border);
}
.flatpickr-calendar.noCalendar .flatpickr-time .numInputWrapper span:hover {
  background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-surface));
}
.flatpickr-calendar.noCalendar .flatpickr-time .numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--ms-text-muted);
}
.flatpickr-calendar.noCalendar .flatpickr-time .numInputWrapper span.arrowDown::after {
  border-top-color: var(--ms-text-muted);
}

[data-bs-theme=dark] .flatpickr-calendar,
html.dark .flatpickr-calendar {
  border-color: 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] .flatpickr-calendar .flatpickr-months .flatpickr-month,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-current-month,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-weekdays,
[data-bs-theme=dark] .flatpickr-calendar span.flatpickr-weekday,
html.dark .flatpickr-calendar .flatpickr-months .flatpickr-month,
html.dark .flatpickr-calendar .flatpickr-current-month,
html.dark .flatpickr-calendar .flatpickr-weekdays,
html.dark .flatpickr-calendar span.flatpickr-weekday {
  background: transparent;
  color: var(--ms-text-muted);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-monthDropdown-months,
[data-bs-theme=dark] .flatpickr-calendar .numInput.cur-year,
html.dark .flatpickr-calendar .flatpickr-monthDropdown-months,
html.dark .flatpickr-calendar .numInput.cur-year {
  color: var(--ms-text);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month,
html.dark .flatpickr-calendar .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background: color-mix(in srgb, #ffffff 7%, var(--ms-surface));
  color: var(--ms-text);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-prev-month,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-next-month,
html.dark .flatpickr-calendar .flatpickr-prev-month,
html.dark .flatpickr-calendar .flatpickr-next-month {
  fill: var(--ms-text-muted);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-prev-month:hover svg,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-next-month:hover svg,
html.dark .flatpickr-calendar .flatpickr-prev-month:hover svg,
html.dark .flatpickr-calendar .flatpickr-next-month:hover svg {
  fill: var(--ms-primary);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-day,
html.dark .flatpickr-calendar .flatpickr-day {
  color: var(--ms-text);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-day:hover, [data-bs-theme=dark] .flatpickr-calendar .flatpickr-day:focus,
html.dark .flatpickr-calendar .flatpickr-day:hover,
html.dark .flatpickr-calendar .flatpickr-day:focus {
  background: color-mix(in srgb, #ffffff 10%, transparent);
  border-color: transparent;
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.today:not(.selected),
html.dark .flatpickr-calendar .flatpickr-day.today:not(.selected) {
  border-color: color-mix(in srgb, var(--ms-primary) 55%, transparent);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.selected, [data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.selected:hover,
html.dark .flatpickr-calendar .flatpickr-day.selected,
html.dark .flatpickr-calendar .flatpickr-day.selected:hover {
  background: var(--ms-primary);
  border-color: var(--ms-primary);
  color: var(--ms-onPrimary);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.prevMonthDay, [data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.nextMonthDay, [data-bs-theme=dark] .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
html.dark .flatpickr-calendar .flatpickr-day.prevMonthDay,
html.dark .flatpickr-calendar .flatpickr-day.nextMonthDay,
html.dark .flatpickr-calendar .flatpickr-day.flatpickr-disabled {
  color: color-mix(in srgb, var(--ms-text-muted) 60%, transparent);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time,
html.dark .flatpickr-calendar .flatpickr-time {
  border-top-color: color-mix(in srgb, #ffffff 8%, transparent);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time input,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time .flatpickr-time-separator,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
html.dark .flatpickr-calendar .flatpickr-time input,
html.dark .flatpickr-calendar .flatpickr-time .flatpickr-time-separator,
html.dark .flatpickr-calendar .flatpickr-time .flatpickr-am-pm {
  color: var(--ms-text);
}
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time input:hover,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time input:focus,
[data-bs-theme=dark] .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
html.dark .flatpickr-calendar .flatpickr-time input:hover,
html.dark .flatpickr-calendar .flatpickr-time input:focus,
html.dark .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover {
  background: color-mix(in srgb, #ffffff 8%, transparent);
}
[data-bs-theme=dark] .flatpickr-calendar .numInputWrapper span,
html.dark .flatpickr-calendar .numInputWrapper span {
  border-color: color-mix(in srgb, #ffffff 12%, transparent);
}
[data-bs-theme=dark] .flatpickr-calendar .numInputWrapper span.arrowUp::after,
html.dark .flatpickr-calendar .numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--ms-text-muted);
}
[data-bs-theme=dark] .flatpickr-calendar .numInputWrapper span.arrowDown::after,
html.dark .flatpickr-calendar .numInputWrapper span.arrowDown::after {
  border-top-color: var(--ms-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .flatpickr-calendar {
    transition: none;
  }
}
html :is(input, textarea, select):is(:disabled, [aria-disabled=true], [aria-readonly=true]),
html :is(input, textarea, select)[readonly]:not(.js-datepicker-input),
html form[inert]:not([data-ms-modal-inert]) :is(input, textarea, select),
html select.disabled,
html body .field-disabled {
  cursor: not-allowed !important;
}

html body .detail-page__layout:has(> form[inert]:not([data-ms-modal-inert])) {
  cursor: not-allowed !important;
}

html body :is(.ms-select--disabled, [data-ms-option-picker-locked], .icon-pick--static),
html body :is(.ms-select--disabled, [data-ms-option-picker-locked], .icon-pick--static) *,
html [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled),
html [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled) *,
html :is(.dropdown, .btn-group):has(> [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled)) {
  cursor: not-allowed !important;
}

.ms-select--disabled > .dropdown-menu {
  display: none;
}

input.js-datepicker-input[readonly]:not(:disabled):not([aria-disabled=true]):not([aria-readonly=true]) {
  cursor: pointer;
}

:root {
  --ms-input-disabled-bg: transparent;
}

html output,
html :is(input:not([type=hidden], [type=checkbox], [type=radio], [type=button], [type=submit], [type=reset], [type=image]), textarea, select):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *),
html :is(input:not([type=hidden], [type=checkbox], [type=radio], [type=button], [type=submit], [type=reset], [type=image]), textarea, select)[readonly]:not(.js-datepicker-input),
html select.disabled,
html .ms-select--disabled > .ms-select__toggle,
html [data-ms-option-picker-locked] [data-option-picker-search],
html [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-color-field__button:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *),
html .icon-pick--static,
html .ms-file-field:has(.ms-file-field__input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)),
html .ms-dropzone:is(:disabled, .ms-dropzone--readonly, .is-readonly, [aria-disabled=true], [aria-readonly=true]),
html .ql-container.ql-disabled {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding-inline: 0 !important;
  appearance: none;
}

html :is(input:not([type=hidden], [type=checkbox], [type=radio], [type=color], [type=range], [type=file], [type=button], [type=submit], [type=reset], [type=image]), textarea):not(.mn-richtext__value):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *),
html :is(input:not([type=hidden], [type=checkbox], [type=radio], [type=color], [type=range], [type=file], [type=button], [type=submit], [type=reset], [type=image]), textarea):not(.mn-richtext__value)[readonly]:not(.js-datepicker-input),
html :is(.ms-select--disabled, [data-ms-option-picker-locked], .icon-pick--static),
html :is([data-bs-toggle=dropdown], .ms-color-field__button):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-file-field:has(.ms-file-field__input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)),
html .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-chip-picker__input:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *) + .ms-chip-picker__text,
html .wd-daypicker__check:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *) + .wd-daypicker__day {
  opacity: 1 !important;
  filter: none !important;
}

html :is(input, textarea):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)::placeholder,
html :is(input, textarea)[readonly]:not(.js-datepicker-input)::placeholder,
html :is(input, textarea)[data-ms-readonly-placeholder-managed]::placeholder,
html [data-ms-option-picker-locked] [data-option-picker-search]::placeholder {
  color: var(--ms-text-muted) !important;
  -webkit-text-fill-color: var(--ms-text-muted) !important;
  opacity: 1;
}

html [data-ms-readonly-empty]:not(input, textarea, output) {
  --ms-readonly-value-color: var(--ms-text-muted);
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
}

html output[data-ms-readonly-empty]::before {
  content: "Sin datos";
  color: var(--ms-text-muted) !important;
  -webkit-text-fill-color: var(--ms-text-muted) !important;
}

html .ms-segmented[data-ms-readonly-empty]::after {
  content: "Sin datos";
  color: var(--ms-text-muted) !important;
  -webkit-text-fill-color: var(--ms-text-muted) !important;
  font: inherit;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
}

html [data-ms-readonly-source] {
  display: none !important;
}

html .ms-readonly-value[data-ms-readonly-value] {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding-inline: 0 !important;
  appearance: none;
  display: inline-block;
  max-width: 100%;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: not-allowed !important;
}

html .ms-select--disabled > .ms-select__toggle::after,
html .icon-pick--static::after,
html [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)::after,
html .ms-select--disabled .ms-select__clear,
html [data-ms-option-picker-locked] [data-option-picker-clear],
html [data-ms-option-picker-locked] [data-option-picker-icon],
html .ms-select--disabled .material-symbols-outlined,
html [data-bs-toggle=dropdown]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *) > :is(.material-symbols-outlined, .bi, svg),
html .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *) :is(.material-symbols-outlined, .ms-button__icon, .bi, svg),
html .student-detail__clearable-field:has(> :is(input, textarea):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *), > :is(input, textarea)[readonly]:not(.js-datepicker-input)) [data-clear-field-button],
html .ms-color-field:has(.ms-color-field__button:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)) :is(.ms-color-field__swatch, .ms-color-field__clear),
html .ms-file-field:has(.ms-file-field__input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)) .ms-file-field__button,
html .ms-datefield:has(> input:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *), > input[readonly]:not(.js-datepicker-input, [type=hidden])) > .ms-datefield__icon,
html .ms-dropzone:is(:disabled, .ms-dropzone--readonly, .is-readonly, [aria-disabled=true], [aria-readonly=true]) :is(.ms-dropzone__empty-icon, .ms-dropzone__replace-hint, small) {
  display: none !important;
}

html [data-mask-dni-toggle]:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *) {
  display: none !important;
}

html .input-group:has(> :is(input, textarea, select):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *), > :is(input, textarea, select)[readonly]:not(.js-datepicker-input), > .student-detail__clearable-field > :is(input, textarea, select):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *), > .student-detail__clearable-field > :is(input, textarea, select)[readonly]:not(.js-datepicker-input)) > .input-group-text,
html .fb-set-dep:has(textarea:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *), textarea[readonly]) {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding-inline: 0 !important;
  appearance: none;
}

html input[type=number]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *) {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

html input[type=number]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0 !important;
}

html input[type=number]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0 !important;
}

html input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)::-webkit-calendar-picker-indicator {
  display: none !important;
}

html input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)::-webkit-search-cancel-button {
  display: none !important;
}

html textarea:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *) {
  resize: none;
}

html .ms-color-field__button:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *) {
  width: auto !important;
  min-width: 0;
  opacity: 1 !important;
}
html .ms-color-field__button:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *) .ms-color-field__value {
  display: inline !important;
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
}

html .ms-file-field:has(.ms-file-field__input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], .disabled, :where(form[inert]:not([data-ms-modal-inert])) *)) .ms-file-field__name,
html .ms-dropzone:is(:disabled, .ms-dropzone--readonly, .is-readonly, [aria-disabled=true], [aria-readonly=true]) .ms-dropzone__empty {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
}

html .icon-pick--static .icon-glyph {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  font-family: inherit;
  font-size: 0.875rem;
  font-feature-settings: normal;
  font-variant-ligatures: none;
  width: auto;
}

html .ms-segmented:is(.is-locked, :has(> .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)):not(:has(> .ms-segmented__option:not(:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *))))) {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding-inline: 0 !important;
  appearance: none;
  opacity: 1 !important;
  width: auto;
  min-height: 0;
}
html .ms-segmented:is(.is-locked, :has(> .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)):not(:has(> .ms-segmented__option:not(:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)))))::before {
  display: none !important;
}

html .ms-segmented:is(.is-locked, :has(> .ms-segmented__option:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)):not(:has(> .ms-segmented__option:not(:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *))))) > .ms-segmented__option:not(.active) {
  display: none !important;
}

html .detail-section.is-dimmed,
html .mn-fieldset-plain:disabled,
html .seat-perm-body.is-locked,
html .acta-tree__typed select:disabled + .ms-select,
html .cp-mod:is(.is-inert, .is-foreign) {
  opacity: 1 !important;
}

html form[inert]:not([data-ms-modal-inert]).seat-detail--off,
html .fb-active:has(input:is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *)) {
  opacity: 1 !important;
  filter: none !important;
}

html :is(.opacity-75, .opacity-50):not(button, a, input, select, textarea):has(:is(input:not([type=hidden], [type=checkbox], [type=radio], [type=button], [type=submit], [type=reset], [type=image]), textarea, select):is(:disabled, [aria-disabled=true], [aria-readonly=true], :where(form[inert]:not([data-ms-modal-inert])) *),
:is(input:not([type=hidden], [type=checkbox], [type=radio], [type=button], [type=submit], [type=reset], [type=image]), textarea, select)[readonly]:not(.js-datepicker-input),
select.disabled,
.ms-select--disabled,
[data-ms-option-picker-locked],
.ms-readonly-value) {
  opacity: 1 !important;
}

html .mn-richtext:has(.ql-disabled) .ql-toolbar,
html .ql-toolbar:has(+ .ql-container.ql-disabled) {
  display: none !important;
}

html .ql-container.ql-disabled .ql-editor {
  color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  -webkit-text-fill-color: var(--ms-readonly-value-color, var(--ms-text)) !important;
  padding-inline: 0;
  min-height: 0;
}

html .ql-container.ql-disabled .ql-editor:is(.ql-blank, [data-ms-readonly-empty])::before {
  content: "Sin datos";
  display: block !important;
  position: static;
  color: var(--ms-text-muted) !important;
  -webkit-text-fill-color: var(--ms-text-muted) !important;
  font-style: normal;
  opacity: 1;
}

.ms-switch:has(> .ms-switch__option > input[type=radio]) .ms-switch__option {
  margin: 0;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]) .ms-switch__option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

html body input[type=checkbox]:is([role=switch], .form-switch input) {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 2.25em;
  height: 1.25em;
  min-height: 0;
  border: 1px solid var(--ms-border);
  border-radius: 2em;
  background-color: color-mix(in srgb, var(--ms-bg) 70%, var(--ms-surface));
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2394a3b8'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  cursor: pointer;
}
html body input[type=checkbox]:is([role=switch], .form-switch input):checked {
  border-color: var(--ms-toggle-accent, var(--ms-success));
  background-color: var(--ms-toggle-accent, var(--ms-success));
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: right center;
}
html body input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *) {
  opacity: 1 !important;
  filter: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

html .ms-toggle-card:has(input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)),
html .form-switch:has(input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)),
html .ms-switch[data-ms-readonly-switch],
html .ms-switch__option:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-switch__option:has(> input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) {
  opacity: 1 !important;
  filter: none !important;
}

html .form-switch:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)),
html .form-switch:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(.form-check-label, .ms-toggle-card__copy),
html .form-switch:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(.form-check-label, .ms-toggle-card__copy) *,
html .ms-toggle-card:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)),
html .ms-toggle-card:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) > .ms-toggle-card__copy,
html .ms-toggle-card:has(> input[type=checkbox]:is([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) > .ms-toggle-card__copy *,
html .ms-switch[data-ms-readonly-switch],
html .ms-switch__option:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *),
html .ms-switch__option:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *) *,
html .ms-switch__option:has(> input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)),
html .ms-switch__option:has(> input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-switch], :where(form[inert]:not([data-ms-modal-inert])) *)) * {
  cursor: not-allowed !important;
}

html .ms-switch[data-ms-readonly-empty]::after {
  display: none !important;
}

html input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) {
  outline: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

html input[type=checkbox]:not([role=switch], .form-switch input).form-check-input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *):not(.ms-chip-picker__input, .wd-daypicker__check, .visually-hidden, .sr-only),
html :is(.ms-choice, .ms-radio-card, .ms-toggle-card):has(> input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *), > .ms-choice__header > input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *), > .ms-toggle-card__switch > input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)),
html input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) + .btn,
html .ms-chip-picker__input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) + .ms-chip-picker__text,
html .wd-daypicker__check:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) + .wd-daypicker__day {
  opacity: 1 !important;
  filter: none !important;
}

html label:has(> input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)),
html label:has(> input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(span, .ms-choice__copy, .ms-toggle-card__copy),
html label:has(> input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(span, .ms-choice__copy, .ms-toggle-card__copy) *,
html input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) + label,
html input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *) + label *,
html .cp-mod:has(> input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)) {
  cursor: not-allowed !important;
}

html :is(.ms-choices, .ms-radio-card-grid, .ms-chip-picker__chips, .wd-daypicker__grid):has(input[type=checkbox])[data-ms-readonly-empty]::after {
  display: none !important;
}

html :is(.pat-scale__option, .pat-matrix):has(input[type=checkbox]:not([role=switch], .form-switch input):is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-checkbox], :where(form[inert]:not([data-ms-modal-inert])) *)) {
  opacity: 1 !important;
}

html input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *) {
  outline: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

html input[type=radio].form-check-input:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *):not(.btn-check, .visually-hidden, .sr-only, .ms-switch input),
html :is(.ms-choice, .ms-radio-card):has(> input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *), > .ms-choice__header > input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *)),
html input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *) + .btn,
html .pat-scale__option:has(> input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *)) {
  opacity: 1 !important;
  filter: none !important;
}

html label:has(> input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *)),
html label:has(> input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(span, .ms-choice__copy, .ms-radio-card__copy),
html label:has(> input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *)) > :is(span, .ms-choice__copy, .ms-radio-card__copy) *,
html input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *) + label,
html input[type=radio]:is(:disabled, [readonly], [aria-disabled=true], [aria-readonly=true], [data-ms-readonly-radio], :where(form[inert]:not([data-ms-modal-inert])) *) + label * {
  cursor: not-allowed !important;
}

html :is(.ms-choices, .ms-radio-card-grid):has(input[type=radio])[data-ms-readonly-empty]::after {
  display: none !important;
}

/* The colour picker as a control of ours: a small swatch and its hex inside the same
   well every other field uses, instead of a bar the width of the column. */
.ms-color-field__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid color-mix(in srgb, var(--ms-border) 80%, transparent);
  border-radius: var(--ms-radius-sm);
  background-color: color-mix(in srgb, var(--ms-bg) 82%, var(--ms-surface));
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ms-color-field__button:hover,
.ms-color-field__button:focus-visible,
.ms-color-field__button[aria-expanded=true] {
  border-color: var(--ms-primary);
  outline: none;
}

.ms-color-field__button:disabled {
  cursor: default;
  opacity: 0.75;
}

.ms-color-field__value {
  color: var(--ms-text);
  font-size: 0.875rem;
}

.ms-color-field__swatch {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Our colour dialog: saturation/brightness square, hue bar and the HEX value. */
.ms-color-field {
  position: relative;
  display: block;
  width: fit-content;
}

.ms-color-field--has-clear .ms-color-field__button {
  padding-right: 2.8rem;
}

.ms-color-field > .ms-color-field__clear {
  right: 0.55rem;
}

.ms-color-picker {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 1090;
  width: min(15rem, 100vw - 1rem);
  max-height: calc(100vh - 1rem);
  overflow-y: auto;
  text-align: start;
  padding: 0.75rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ms-color-picker.is-open {
  opacity: 1;
  transform: none;
}

.ms-color-picker__sv {
  position: relative;
  height: 9rem;
  border-radius: 0.35rem;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent);
  cursor: crosshair;
  touch-action: none;
}

.ms-color-picker__hue {
  position: relative;
  height: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  touch-action: none;
}

.ms-color-picker__sv:focus-visible,
.ms-color-picker__hue:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 2px;
}

.ms-color-picker__thumb {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ms-color-picker__hue .ms-color-picker__thumb {
  top: 50%;
}

.ms-color-picker__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.ms-color-picker__preview {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ms-color-picker__hex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  margin: 0;
}

.ms-color-picker__hex > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ms-text-muted);
}

.ms-color-picker .ms-color-picker__hex > input.form-control {
  min-width: 0;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
}

.ms-color-picker__hex input.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}

@media (prefers-reduced-motion: reduce) {
  .ms-color-picker {
    transition: none;
    transform: none;
  }
}
.ms-color-field {
  vertical-align: top;
  max-width: 100%;
  text-align: start;
}

.ms-color-field__button {
  color: var(--ms-text);
  font: inherit;
}

.ms-color-field__button.is-invalid {
  border-color: var(--ms-error);
}

.ms-color-field--compact .ms-color-field__button {
  width: 3.5rem;
  padding: 0.25rem;
}

.ms-color-field--compact .ms-color-field__swatch {
  width: 100%;
  height: 100%;
}

.ms-color-field--compact .ms-color-field__value {
  display: none;
}

.ms-color-field--compact.ms-color-field--has-clear .ms-color-field__button {
  width: 6.1rem;
  padding-right: 2.8rem;
}

.ms-color-picker[hidden] {
  display: none;
}

.ms-color-picker__hex {
  text-transform: none;
  letter-spacing: normal;
}

/* --- Global toggle card ----------------------------------------------------------------------
   A boolean that deserves a sentence of its own: the whole card is the <label>, so the click target
   is the block and not a 2rem track, and the copy (title + description) explains what turning it on
   does. Markup:

     <label class="form-check form-switch ms-toggle-card">
       <input class="form-check-input" type="checkbox" role="switch" ... />
       <span class="ms-toggle-card__copy">
         <span class="ms-toggle-card__title">…</span>
         <span class="form-text ms-toggle-card__description">…</span>
       </span>
     </label>

   The ON colour is a parameter: --ms-toggle-accent, brand orange by default (never Bootstrap's blue,
   which competes with the primary action of the screen). A toggle whose meaning is "this is allowed /
   this works" carries its own colour with a modifier — .ms-toggle-card--success — or with any colour
   at all via style="--ms-toggle-accent: …".

   When the switch RULES a field, that field lives in the same card and slides in and out with it. The
   card then stops being the label (a control inside a label is swallowed by it) — it becomes a
   container whose first child is the switch row:

     <div class="ms-toggle-card">
       <label class="form-check form-switch ms-toggle-card__switch"> … </label>
       <div class="ms-toggle-card__extra ms-toggle-card__extra--off">   … --on for the other polarity
         <div class="ms-toggle-card__extra-inner"> …the ruled field… </div>
       </div>
     </div>

   --off opens while the switch is off, --on while it is on. No JS: the state is read with :has(). */
.ms-toggle-card {
  --ms-toggle-accent: var(--ms-orange);
  /* Bootstrap sizes switches in em. Use the application control scale for the track while keeping
     the copy on the form body-text scale. */
  font-size: 1rem;
  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);
  cursor: pointer;
  user-select: none;
  /* Colour only — no press transform: a switch springing back reads as a bounce on a control whose
     whole job is to look steady in one of two states. */
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ms-toggle-card .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 0;
}
.ms-toggle-card .form-check-input:focus {
  box-shadow: none;
}
.ms-toggle-card .form-check-input:checked, .ms-toggle-card .form-check-input:checked:focus {
  border-color: var(--ms-toggle-accent);
  background-color: var(--ms-toggle-accent);
}
.ms-toggle-card .form-check-input {
  /* A disabled switch still has to READ as on or off — dimming is the card's job, below. */
}
.ms-toggle-card .form-check-input:disabled {
  opacity: 1;
}
.ms-toggle-card .form-check-label {
  color: var(--ms-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
}
.ms-toggle-card:has(.form-check-input:checked) {
  border-color: color-mix(in srgb, var(--ms-toggle-accent) 58%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-toggle-accent) 7%, var(--ms-surface));
}
.ms-toggle-card:has(.form-check-input:disabled) {
  cursor: not-allowed;
  opacity: 0.65;
}

/* "On" means enabled/allowed here, so it is green — the colour the state already had. */
.ms-toggle-card--success {
  --ms-toggle-accent: var(--ms-success);
}

/* The app-wide switch below (.ms-theme .form-check-input[role="switch"]:checked) paints every switch
   green and outranks the card's own rule, so the accent is restated here with enough specificity to
   win it — otherwise the card tints orange while its track stays green. */
.ms-theme .ms-toggle-card .form-check-input[role=switch]:checked,
.ms-theme .ms-toggle-card .form-check-input[role=switch]:checked:focus {
  border-color: var(--ms-toggle-accent);
  background-color: var(--ms-toggle-accent);
}

/* --- Bare: the new switch, none of the card ---------------------------------------------------
   A dense form (the dining rule wizard) has several booleans among its fields; one bordered block
   each drowns everything around them. This keeps the switch — track, accent, click target, the label
   as part of it — and drops the chrome, at a slightly smaller scale. */
.ms-toggle-card--bare {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* The base tints the card when the switch is on; there is no card here to tint. */
.ms-toggle-card--bare:has(.form-check-input:checked) {
  border-color: transparent;
  background: none;
}

/* --- The card that also holds the field its switch rules ------------------------------------- */
.ms-toggle-card:has(> .ms-toggle-card__switch) {
  display: block;
  min-height: 0;
  padding: 0;
  cursor: default;
  user-select: auto;
}

.ms-toggle-card__switch {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.8rem 1rem;
  cursor: pointer;
  user-select: none;
}

/* 0fr → 1fr on a grid row is what animates to the content's own height without hard-coding it.
   visibility (switched with a delay, so it only lands once the slide is over) keeps the collapsed
   field out of the tab order — it is still submitted, it just cannot be reached or read. */
.ms-toggle-card__extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, visibility 0s linear 0.28s;
}
.ms-toggle-card__extra > * {
  min-height: 0;
  overflow: hidden;
}

.ms-toggle-card:not(:has(.form-check-input:checked)) > .ms-toggle-card__extra--off,
.ms-toggle-card:has(.form-check-input:checked) > .ms-toggle-card__extra--on {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease 0.06s, visibility 0s;
}

.ms-toggle-card__extra-inner {
  /* Aligned with the copy of the switch above it: same left edge, no line between them — it is one
     card saying one thing, not two stacked blocks. */
  padding: 0 1rem 0.9rem 1rem;
}

.ms-toggle-card__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
}

.ms-toggle-card__title {
  color: var(--ms-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.ms-toggle-card__description {
  display: block;
  margin-top: 0;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .ms-toggle-card,
  .ms-toggle-card__extra {
    transition: none;
  }
}
/* Shared presentation for the document builder and the panel's form preview dialogs. */
.ms-dialog--form-preview {
  --bs-modal-margin: 2vh;
}
.ms-dialog--form-preview .modal-content {
  border: 0;
}

.fb-preview,
.ms-dialog.ms-dialog--form-preview .modal-dialog {
  width: min(62rem, 94vw);
  max-width: none;
}

.fb-preview,
.ms-dialog--form-preview .modal-content {
  display: flex;
  height: min(96vh, 72rem);
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow-modal);
}

.fb-preview__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--ms-border);
}

.fb-preview__title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--cm-dashboard-heading);
  font-size: 1rem;
  font-weight: 500;
}
.fb-preview__title .material-symbols-outlined {
  color: var(--ms-orange);
  font-size: 20px;
}

.fb-preview__frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--ms-bg);
}

/* Shared palette rows for the document designer and the PAT form editor. */
.fb-pal-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-bg);
  color: var(--ms-text);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fb-pal-item:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-primary) 5%, var(--ms-bg));
}
.fb-pal-item:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 2px;
}
.fb-pal-item:last-child {
  margin-bottom: 0;
}
.fb-pal-item .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--ms-text-muted);
}

[data-bs-theme=dark] .fb-pal-item,
html.dark .fb-pal-item {
  border-color: transparent;
}

[data-bs-theme=dark] .fb-pal-item:hover,
html.dark .fb-pal-item:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
}

.fb-pal-item.fb-pal-field {
  cursor: grab;
}
.fb-pal-item.fb-pal-field:active {
  cursor: grabbing;
}

.fb-pal-grip {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-size: 1.05rem;
  opacity: 0.6;
}

.fb-pal-item:hover .fb-pal-grip {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fb-pal-item {
    transition: none;
  }
}
/* The vertical scrollbar's gutter is always reserved. Content arrives through #ms-content swaps, so a
   page that grows or shrinks past the viewport would otherwise add or remove the scrollbar and shift the
   whole layout sideways — visible as a sideways twitch on every navigation. */
html {
  scrollbar-gutter: stable;
  /* And because it is ALWAYS reserved, the browser draws its scrollbar track in that strip even on a
     page short enough to have no thumb — a flat band down the right edge, which the dark theme's lit
     ground makes impossible to miss (a page that scrolls hid it behind the thumb, which is why only
     the short ones showed it). The same thin brand-tinted treatment every other scroller in this
     application already uses: a transparent track, so the ground shows through the empty gutter, and
     a thumb that only appears when there is something to scroll. */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-color) 35%, transparent) transparent;
}

/* The thumb, unlike every other scroller's, rides the night ground rather than a pale surface, and the
   brand is a navy: at 35% over #101A30 it is not there. White at low strength is, and it is the same
   ink the sidebar's own scrollbar uses. */
html[data-bs-theme=dark],
html.dark {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

body.ms-theme {
  background-color: var(--ms-bg);
  color: var(--ms-text);
  min-height: 100vh;
}

/* --- Theme switch: the incoming theme is revealed by a circle growing from the toggle that was
   pressed, instead of the whole page flipping at once. site.js publishes the circle's centre
   (--ms-theme-x/y) and its radius (--ms-theme-r) on <html> and marks .ms-theme-switching for the
   duration, so these rules never touch view transitions triggered by anything else. --- */
html.ms-theme-switching {
  --ms-theme-x: 50%;
  --ms-theme-y: 50%;
  --ms-theme-r: 150vmax;
}

/* The default cross-fade would wash the reveal out: the old snapshot simply stays put while the new
   one is masked in on top of it. */
html.ms-theme-switching::view-transition-old(root),
html.ms-theme-switching::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.ms-theme-switching::view-transition-old(root) {
  z-index: 1;
}

/* Registered so it can be interpolated: a plain custom property would jump from start to end instead
   of animating, and the mask below is driven entirely by it. */
@property --ms-theme-progress {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
html.ms-theme-switching::view-transition-new(root) {
  z-index: 2;
  animation: ms-theme-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  /* The soft edge lives in the mask rather than in a clip-path, so the leading front of the reveal
     fades into the outgoing theme over the outer 15% of its radius instead of cutting it. Feathering
     by percentage keeps the blend proportional: tight next to the button, wide once it spans the page. */
  mask-image: radial-gradient(circle var(--ms-theme-progress) at var(--ms-theme-x) var(--ms-theme-y), #000 0%, #000 85%, transparent 100%);
}

@keyframes ms-theme-reveal {
  from {
    --ms-theme-progress: 0px;
  }
  /* Overshoot: only 85% of the gradient is fully opaque, so the radius has to run past the farthest
     corner for the feathered tail to clear it too. */
  to {
    --ms-theme-progress: calc(var(--ms-theme-r) * 1.18);
  }
}
/* The reveal has to sweep the WHOLE window — topbar and sidebar included, not just the content
   column. Two things kept the chrome out of it:

   1. backdrop-filter. An element that blurs what is behind it (the topbar, the map's floating
      controls, the dialog veils) is re-sampled against the live page during a view transition
      instead of being painted into the two snapshots, so it flips to the new theme at once while
      the circle is still travelling. Suspending the blur for the ~900 ms of the switch costs
      nothing visually — the surfaces underneath the chrome are opaque anyway.

   2. The circle's radius is measured from the button to the farthest VIEWPORT corner (site.js), so
      the sweep already spans the window; nothing else needs resizing. */
html.ms-theme-switching :is(.ms-topbar, .ms-sb, [class*=backdrop], .modal-backdrop),
html.ms-theme-switching ::backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* site.js already skips the transition here; this is the belt-and-braces stylesheet side of it. The
   mask goes with it — at rest --ms-theme-progress is 0px, which would hide the incoming snapshot. */
@media (prefers-reduced-motion: reduce) {
  html.ms-theme-switching::view-transition-new(root) {
    animation: none;
    mask-image: none;
  }
}
/* --- Inline notice: states a rule or a status above the content (icon + title + explanation).
   Same design as the account security notice (profile.scss), promoted to a global component so
   any screen can use it — profile.css only ships on the profile pages. --- */
.ms-notice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--ms-radius);
  background: #d8fbe9;
  color: rgba(0, 33, 19, 0.5);
}

.ms-notice--warning {
  border-color: rgba(146, 64, 14, 0.25);
  background: #fff3cd;
  color: #5c3600;
}

.ms-notice__icon {
  flex: 0 0 auto;
  color: rgba(0, 33, 19, 0.5);
  font-size: 1.55rem;
}

.ms-notice--warning .ms-notice__icon {
  color: #92400e;
}

.ms-notice__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.ms-notice__copy strong {
  font-size: 0.925rem;
  font-weight: 500;
}

/* --- Steps of a multi-step screen (ms-steps) ---------------------------------------------------
   The stepper the acta import and the dining rule wizard already draw, extracted so it stops being
   redrawn. Both build it out of Bootstrap utilities plus inline styles, and the copies had already
   drifted: the rule wizard replaced `bg-primary` with a brand-coloured dot (its own comment explains
   why — the utility resolves through --bs-primary-rgb and ignores the school's colour), the acta one
   never got that fix. One component, one colour, one shape.

   Same anatomy as those two, so a screen converted to it looks identical: a dot with the number (or a
   check once the step is done), the label underneath, the current step outlined, and a rail joining
   each dot to the one before it.

   Razor views should not hand-write this markup — `<mn-steps>` / `<mn-step>` (Minerva.Modules'
   TagHelpers/Steps, mirrored into Minerva.Host for the shared views) emit exactly the structure below.
   It is documented here because the Blazor components, which cannot use a TagHelper, do write it:

   <ol class="ms-steps" aria-label="Pasos de la plantilla">
       <li class="ms-steps__item">
           <button type="button" class="ms-steps__go" aria-current="step">
               <span class="ms-steps__dot is-current">1</span>
               <span class="ms-steps__label">Diseño</span>
           </button>
       </li>
   </ol>

   The clickable part is a BUTTON when the step only switches what the screen shows and an <a> when it
   navigates; `.ms-steps__go` strips the chrome off either. --- */
.ms-steps {
  /* The dot and the rail joining two dots are sized from the same pair of numbers, so the rail always
     meets the circle: it sits at the dot's vertical centre and stops just short of its edge. The gap
     clears the ring the current step wears (2px wide, 2px out) — shrink it and the rail runs into it. */
  --ms-steps-dot: 1.75rem;
  --ms-steps-rail: 2px;
  --ms-steps-rail-gap: 0.375rem;
  /* How long the colour takes to travel one rail. Long enough to read as movement towards the next
     step, short enough that a wizard clicked through quickly does not queue up behind it. */
  --ms-steps-fill: 420ms;
  display: flex;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

/* Equal basis so every step takes the same width whatever its label is: sized by the longest one, the
   short steps would sit too close together. Lifted from the rule wizard, which had it inline.
   Positioned because it anchors the rail that reaches back to the previous dot. */
.ms-steps__item {
  position: relative;
  flex: 1 1 0;
  min-width: 4.5rem;
  padding: 0 0.25rem;
  text-align: center;
}

/* The rail between one dot and the one before it: two layers in the same place, the grey track (::before)
   and the travelled part over it (::after). It hangs off the SECOND of the pair — hence the
   adjacent-sibling selector, the first step has nothing to its left — and reaches back half an item,
   which IS the previous dot's centre because every item shares the same flex basis. */
.ms-steps__item + .ms-steps__item::before,
.ms-steps__item + .ms-steps__item::after {
  content: "";
  position: absolute;
  top: calc((var(--ms-steps-dot) - var(--ms-steps-rail)) / 2);
  right: 50%;
  left: -50%;
  margin: 0 calc(var(--ms-steps-dot) / 2 + var(--ms-steps-rail-gap));
  height: var(--ms-steps-rail);
  border-radius: var(--ms-steps-rail);
}

.ms-steps__item + .ms-steps__item::before {
  background: var(--bs-secondary-bg);
}

/* The travelled part. Collapsed by default and grown from the previous dot towards this one, so the
   colour arrives by travelling the rail instead of appearing along the whole of it at once. */
.ms-steps__item + .ms-steps__item::after {
  background: var(--ms-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ms-steps-fill) ease-out;
}

/* A rail is TRAVELLED once the step it leads to has been reached, so it takes the school's colour at
   the same moment that step's dot does. The state is read off the dot instead of a class of its own:
   it already lives there, so markup that only knows about dots — the Blazor builders — gets its rails
   coloured without being touched. */
.ms-steps__item:has(.ms-steps__dot.is-done, .ms-steps__dot.is-current)::after {
  transform: scaleX(1);
}

/* Only the rail leading INTO the step you just landed on draws itself; the ones behind it are already
   travelled and are simply there. An ANIMATION and not the transition above, because the wizards are
   server-rendered: HTMX swaps the whole bar for a new one on every step, and a transition has no
   previous value to move from on an element that has only just been inserted. The Blazor builder, whose
   bar survives the change, gets the same drawing out of the same rule. */
.ms-steps__item:has(.ms-steps__dot.is-current)::after {
  animation: ms-steps-travel var(--ms-steps-fill) ease-out;
}

/* --- Edge-to-edge variant -------------------------------------------------------------------------
   By default every dot is centred in its equal share of the bar, so the drawn line starts half a share
   in and ends half a share early — on a three-step wizard that is a third of the card left blank at each
   end, and it reads as a bar that did not stretch. This modifier pins the FIRST dot to the left edge and
   the LAST to the right, and moves the two outer rails to follow them; the middle steps are untouched. */
/* Set on the CONTROL, not on the item: the dot lives inside a <button>, and a button carries the user
   agent's own `text-align: center`. An alignment inherited from the <li> loses to it, which is how the
   first attempt moved the rails to the card edges and left the dots where they were — a line hanging off
   both ends. */
.ms-steps--edge .ms-steps__item:first-child .ms-steps__go {
  text-align: left;
}

.ms-steps--edge .ms-steps__item:last-child .ms-steps__go {
  text-align: right;
}

/* The rail INTO the second step used to reach back half an item (the previous centre); its dot is now at
   the item's left edge instead. */
.ms-steps--edge .ms-steps__item:nth-child(2)::before,
.ms-steps--edge .ms-steps__item:nth-child(2)::after {
  left: calc(-100% + var(--ms-steps-dot) / 2);
}

/* And the rail into the LAST step stops at its own dot, which is now against the right edge rather than
   at the centre. */
.ms-steps--edge .ms-steps__item:last-child::before,
.ms-steps--edge .ms-steps__item:last-child::after {
  right: calc(var(--ms-steps-dot) / 2);
}

/* --- Night ------------------------------------------------------------------------------------------
   The pending parts of the bar are drawn with Bootstrap's `secondary` pair, which in the dark theme sits
   almost exactly on the card: the step you have not reached, its number and the rail leading to it all but
   vanish, and the design that reads in the light theme is simply missing. They are redrawn here in light,
   like every other dark surface in this file. */
[data-bs-theme=dark] .ms-steps__dot,
html.dark .ms-steps__dot {
  background: color-mix(in srgb, #ffffff 12%, transparent);
  color: var(--ms-text);
}

/* The travelled dots keep the school's colour: only the pending ones were invisible. */
[data-bs-theme=dark] .ms-steps__dot.is-done,
[data-bs-theme=dark] .ms-steps__dot.is-current,
html.dark .ms-steps__dot.is-done,
html.dark .ms-steps__dot.is-current {
  background: var(--ms-primary);
  color: var(--ms-onPrimary);
}

/* The untravelled rail: the track a step has not been reached through. Same weight as the dashed edges of
   the dropzones, so the whole card reads as one surface. */
[data-bs-theme=dark] .ms-steps__item + .ms-steps__item::before,
html.dark .ms-steps__item + .ms-steps__item::before {
  background: color-mix(in srgb, #ffffff 16%, transparent);
}

/* And the label of a step still to come — muted, but readable rather than a shadow. */
[data-bs-theme=dark] .ms-steps__label,
html.dark .ms-steps__label {
  color: var(--ms-text-muted);
}

@keyframes ms-steps-travel {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* Going back is not a journey to re-draw, and neither is any of this for someone who asked for less
   movement: the rail is simply where the progress says it is. */
@media (prefers-reduced-motion: reduce) {
  .ms-steps__dot,
  .ms-steps__item + .ms-steps__item::after {
    transition: none;
  }
  .ms-steps__item:has(.ms-steps__dot.is-current)::after {
    animation: none;
  }
}
.ms-steps__go {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ms-steps__go:disabled {
  cursor: default;
}

/* A step already behind you — or the one you are standing on — is not faded just because it cannot be
   clicked: its colour IS what the bar is saying. Only the steps not reached yet fade, and those are grey
   anyway. This is what the screens that come AFTER a wizard has committed need — the course's «Alumnos»
   and «Especialidades» steps run on a course that already exists, so every dot of their bar is disabled,
   and fading the lot washed the school's colour out of the whole thing halfway through the journey. */
.ms-steps__go:disabled:not(:has(.ms-steps__dot.is-done, .ms-steps__dot.is-current)) {
  opacity: 0.65;
}

/* Positioned so it paints over the rail: the rail stops short of the circle, but a screen that tightens
   --ms-steps-rail-gap should get an overlap hidden by the dot rather than a line crossing it. */
.ms-steps__dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ms-steps-dot);
  height: var(--ms-steps-dot);
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  /* Lights up over the same span the rail takes to reach it, so the two read as one movement. Only
     does anything where the bar survives the step change (the Blazor builder); a bar that HTMX has
     just swapped in has no previous colour to move from, and simply arrives painted. */
  transition: background-color var(--ms-steps-fill) ease-out, color var(--ms-steps-fill) ease-out;
}

/* Reached or done: the SCHOOL's colour, not Bootstrap's navy (see the note above). */
.ms-steps__dot.is-done,
.ms-steps__dot.is-current {
  background: var(--ms-primary);
  color: var(--ms-onPrimary);
}

.ms-steps__dot.is-current {
  outline: 2px solid var(--ms-primaryColor);
  outline-offset: 2px;
}

.ms-steps__dot .material-symbols-outlined {
  font-size: 1.05rem;
}

.ms-steps__label {
  display: block;
  margin-top: 0.25rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.ms-steps__go[aria-current=step] .ms-steps__label {
  color: var(--bs-body-color);
  font-weight: 600;
}

/* Heading colour shared by the dashboard and the listing pages. The dashboard redefines the whole
   --cm-dashboard-* set inside .cm-shell; this is the app-wide base so page titles outside it can use
   the same neutral without depending on the dashboard being on screen. */
.ms-theme {
  --cm-dashboard-heading: #5c5c5c;
  /* The rest of the dashboard's INK, hoisted out of .cm-shell for the same reason as the heading
     above: a screen that wants the dashboard's voice should not have to wrap itself in the
     dashboard's shell to get it. Only the text tokens travel — the surfaces (--cm-dashboard-surface
     and friends) stay inside .cm-shell, because they paint the dashboard's own panels and a page
     that adopted them would stop looking like the rest of the application. Values are the ones
     cloudminerva.scss states for .ms-theme .cm-shell, kept in step with them. */
  --cm-dashboard-text: #191c1e;
  --cm-dashboard-muted: #444651;
  --cm-dashboard-border: var(--ms-border);
  /* Counter chips ("15 solicitudes en total", "1312 alumnos en total", …). One palette for every
     screen that shows a total: the brand yellow at full strength, no border, and the headings' grey
     as ink. Fixed in both themes — the yellow does not change with the theme, so its ink must not
     either. White ink here (an earlier value) measured 1.48:1 against this yellow — nowhere near
     the 4.5:1 WCAG 1.4.3 floor, and the single worst offender in an axe-core sweep of the whole app
     (it flagged on every screen with a listing header). The dark ink the comment above already
     promised is what actually passes — #191c1e on #fccf47 measures ~13:1. */
  --ms-chip-counter: #fccf47; /* brand yellow */
  --ms-chip-counter-bg: var(--ms-chip-counter);
  --ms-chip-counter-text: #191c1e; /* dark ink, in both themes: see above */
}

[data-bs-theme=dark] .ms-theme {
  --cm-dashboard-heading: #c9c8c8;
  --cm-dashboard-text: #eff1f3;
  --cm-dashboard-muted: #b7c8e1;
}

/* ── The dashboard's type scale, available to every screen ─────────────────────────────────────
   These four classes are what the Panel de control writes its copy with, and until now they only
   carried those values inside .cm-shell — outside it they fell back to the older glass-era rules at
   the top of cloudminerva.css, which state their colours as literal slate rgba() and are therefore
   only right on a dark ground. Stated here against the tokens above, they are right in both themes
   anywhere in the application, with no shell to wrap and no local copy of the declarations to keep
   in step (Meteorología's .wx-kicker/.wx-h2 are exactly that copy).

   Specificity: `.ms-theme .cm-kicker` (0,2,0) beats the loose `.cm-kicker` (0,1,0) it supersedes,
   and loses to cloudminerva's own `.ms-theme .cm-shell .cm-header .cm-kicker`, so the dashboard
   keeps rendering from its own rules and is untouched by this. */
.ms-theme {
  /* Antetítulo: what the block is about, over what it is called. */
}
.ms-theme .cm-kicker {
  color: var(--cm-dashboard-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: calc(0.16em + var(--ms-a11y-letter-add, 0em));
  line-height: 16px;
  text-transform: uppercase;
}
.ms-theme {
  /* Título de pantalla. */
}
.ms-theme .cm-title {
  margin: 0;
  color: var(--cm-dashboard-heading);
  font-size: clamp(28px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: calc(-0.02em + var(--ms-a11y-letter-add, 0em));
  line-height: 1.25;
  text-transform: uppercase;
}
.ms-theme {
  /* Bajada bajo el título. */
}
.ms-theme .cm-subtitle {
  margin: 4px 0 0;
  color: var(--cm-dashboard-muted);
  font-size: 14px;
  line-height: 20px;
}
.ms-theme {
  /* Título de tarjeta. No tracking is what makes it read as a label rather than as a shout — the
     detail pages use letter spacing and are a different voice. Regular weight, in step with the
     panel-card rule in cloudminerva.scss: a card title is 18px of caps under a kicker and beside
     an icon, and the app should not have two weights for the same heading. */
}
.ms-theme .cm-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  color: var(--cm-dashboard-heading);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
  line-height: 24px;
  text-transform: uppercase;
}
.ms-theme .cm-h2 .cm-h2-icon,
.ms-theme .cm-h2 > .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--ms-orange);
  font-size: 20px;
}
.ms-theme {
  /* The aside a header may carry: what the block is for, quiet. */
}
.ms-theme .cm-card-meta {
  color: var(--cm-dashboard-muted);
  font-size: 13px;
}

/* --- Global segmented switch --- */
.ms-switch {
  --ms-switch-border: var(--ms-border);
  --ms-switch-primary: var(--brand-color, var(--ms-primary));
  --ms-switch-surface: var(--ms-bg);
  --ms-switch-active-surface: var(--brand-color, var(--ms-primary));
  --ms-switch-active-border: color-mix(in srgb, var(--ms-switch-active-surface) 80%, #000);
  --ms-switch-active-text: var(--ms-onBrand);
  --ms-switch-text: var(--ms-text);
  --ms-switch-muted: var(--ms-text-muted);
  /* Sliding thumb geometry: the count is how many options the switch holds, the index which one
     is active. Both are derived below with :has(), so the animation works for any switch without
     extra JS — the existing scripts only toggle .is-active as they already did. */
  --ms-switch-count: 2;
  --ms-switch-index: 0;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: min(160px, 100%);
  max-width: 100%;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--ms-switch-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-switch-surface);
  color: var(--ms-switch-muted);
  overflow: hidden;
}
.ms-switch::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: calc(100% / var(--ms-switch-count));
  border: 1px solid var(--ms-switch-active-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-switch-active-surface);
  transform: translateX(calc(var(--ms-switch-index) * 100%));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
  pointer-events: none;
}
.ms-switch {
  /* No selection yet (or the markup lost its active option): hide the thumb instead of parking it
     over the first option, which would lie about the state. */
}
.ms-switch:not(:has(> .ms-switch__option.is-active))::before {
  opacity: 0;
}
.ms-switch:has(> .ms-switch__option:nth-child(3)) {
  --ms-switch-count: 3;
}
.ms-switch:has(> .ms-switch__option:nth-child(4)) {
  --ms-switch-count: 4;
}
.ms-switch:has(> .ms-switch__option:nth-child(2).is-active) {
  --ms-switch-index: 1;
}
.ms-switch:has(> .ms-switch__option:nth-child(3).is-active) {
  --ms-switch-index: 2;
}
.ms-switch:has(> .ms-switch__option:nth-child(4).is-active) {
  --ms-switch-index: 3;
}

/* The same switch holding MANY options — the permission grid's fifteen menu modules, where the default
   geometry (four equal columns inside 160px) has nothing to give. Options size to their own label, the
   track scrolls when they do not fit, and the thumb is measured rather than derived: `100% / count` is
   only true while every column is the same width, and here none of them is. seat-permissions.js sets the
   two custom properties; with no script the switch still reads correctly, it just does not slide. */
.ms-switch--auto {
  display: flex;
  width: 100%;
  max-width: 100%;
  /* No sideways scroll: with fifteen modules the bar would be a thing to drag before it is a thing to
     read, and the tab you want is the one off-screen. The LABELS give way instead. */
  overflow: hidden;
}
.ms-switch--auto::before {
  width: var(--ms-switch-thumb-w, 0);
  transform: translateX(var(--ms-switch-thumb-x, 0));
  /* Position and width are written frame by frame from the options' real geometry
     (seat-permissions.js), so the base's own transform transition would be a SECOND animation
     chasing the first: the thumb would trail the tab it belongs to and settle after it. The motion
     you see is the options resizing, and the thumb is glued to it. Opacity keeps its own fade. */
  transition: opacity 0.18s ease;
  will-change: width, transform;
}
.ms-switch--auto {
  /* Every option gets an equal share of what is left; the LABEL inside it is what gets cut. It has to be
     an element of its own: a button with `overflow: hidden` is a scroll container, and the browser
     scrolls a focused one to reveal its content — which is why the tab you clicked showed the END of its
     name, with no ellipsis, while every other tab truncated correctly. */
}
.ms-switch--auto .ms-switch__option {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 10px;
  overflow: hidden;
  /* flex-grow alone: the basis is 0 and never changes, so animating it was one more property to
     interpolate for no movement at all. */
  transition: color 0.2s ease, flex-grow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.ms-switch--auto .ms-switch__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ms-switch--auto {
  /* The one you clicked is the one you are reading, so it takes TWO shares of the bar while the rest
     keep one each — and never less room than its own name needs, because a selected tab that is still
     cut in half has gained nothing by being selected. The others give way to it. */
}
.ms-switch--auto .ms-switch__option.is-active {
  flex-grow: var(--ms-switch-grow-active, 2);
  min-width: max-content;
}

@media (prefers-reduced-motion: reduce) {
  .ms-switch--auto .ms-switch__option {
    transition: none;
  }
}
/* A switch built from RADIOS, which is the same control posting itself in a form instead of being
   driven by a script. It lived inside .rp-tri on the person file — a general capability parked on one
   screen, so the next switch that needed it came out as bare radio dots. Keyed by the radios' own
   presence, so any .ms-switch written this way works with no modifier and no JS. */
.ms-switch:has(> .ms-switch__option > input[type=radio]) {
  /* The thumb is hidden when no option carries .is-active, which none of these ever will: here the
     CHECKED radio is what marks the active one. */
}
.ms-switch:has(> .ms-switch__option > input[type=radio])::before {
  opacity: 1;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]):not(:has(> .ms-switch__option > input:checked))::before {
  opacity: 0;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]):has(> .ms-switch__option:nth-child(1) > input:checked) {
  --ms-switch-index: 0;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]):has(> .ms-switch__option:nth-child(2) > input:checked) {
  --ms-switch-index: 1;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]):has(> .ms-switch__option:nth-child(3) > input:checked) {
  --ms-switch-index: 2;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]):has(> .ms-switch__option:nth-child(4) > input:checked) {
  --ms-switch-index: 3;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]) .ms-switch__option:has(> input:checked) {
  color: var(--ms-switch-active-text);
}
.ms-switch:has(> .ms-switch__option > input[type=radio]) .ms-switch__option:has(> input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
.ms-switch:has(> .ms-switch__option > input[type=radio]) .ms-switch__option:has(> input:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--ms-switch-primary) 65%, transparent);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .ms-switch::before {
    transition: none;
  }
}
.cm-shell .ms-switch {
  --ms-switch-border: var(--cm-dashboard-border);
  --ms-switch-surface: var(--cm-dashboard-surface-low);
  --ms-switch-text: var(--cm-dashboard-text);
  --ms-switch-muted: var(--cm-dashboard-muted);
}

.ms-switch__option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ms-switch-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: calc(0.02em + var(--ms-a11y-letter-add, 0em));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  /* The pill itself is drawn by the sliding thumb; the label only cross-fades its colour. */
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ms-switch__option.is-active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ms-switch-active-text);
}

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

.ms-switch__option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Fold ---------------------------------------------------------------------------------------
   A disclosure inside a card: a headed row that opens onto its own contents. "Acceso al panel" in Mi
   perfil is where this shape was settled, and it is the third screen to want it — the student single
   carries its own copy too — so it lives here and that screen's classes alias it.

     <details class="ms-fold">
       <summary>
         <span class="ms-fold__icon material-symbols-outlined">inventory_2</span>
         <span class="ms-fold__copy">
           <strong>Activos alcanzados</strong>
           <span>12 equipos entrarán en el lote</span>
         </span>
         <span class="ms-fold__chevron material-symbols-outlined">expand_more</span>
       </summary>
       <div class="ms-fold__body"> … </div>
     </details>

   A <details>: it works with no JavaScript, and the open/close is animated with modern CSS alone —
   interpolate-size makes `height: auto` a transition target, and content-visibility rides
   allow-discrete so the pane stays painted until the close has finished. */
:is(.ms-fold, .account-profile__permission-group) {
  overflow: hidden;
  /* A well, and treated like one: in LIGHT it keeps the app's hairline, because the well tone on
     white is too close to draw the group on its own — the fold then reads as part of the card
     rather than as a control sitting in it. Night drops the border, where tone alone is enough. */
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--profile-field-bg, var(--ms-bg));
  interpolate-size: allow-keywords;
}

:is(.ms-fold, .account-profile__permission-group)::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.32s allow-discrete;
}

:is(.ms-fold, .account-profile__permission-group)[open]::details-content {
  height: auto;
}

/* The rows drift in just after the pane starts opening — one soft settle, not a bare pop. */
:is(.ms-fold, .account-profile__permission-group)[open] :is(.ms-fold__body, .account-profile__permission-list) {
  animation: ms-fold-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ms-fold-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.ms-fold, .account-profile__permission-group)::details-content {
    transition: none;
  }
  :is(.ms-fold, .account-profile__permission-group)[open] :is(.ms-fold__body, .account-profile__permission-list) {
    animation: none;
  }
}
:is(.ms-fold, .account-profile__permission-group) > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  transform-origin: center;
  transition: transform 0.12s ease, background-color 0.15s ease;
  /* No press-scale: the whole group visibly shrinking on click read as the control resizing. */
}
:is(.ms-fold, .account-profile__permission-group) > summary:hover {
  background: color-mix(in srgb, var(--ms-primary) 6%, transparent);
}
:is(.ms-fold, .account-profile__permission-group) > summary::-webkit-details-marker {
  display: none;
}
:is(.ms-fold, .account-profile__permission-group) > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--profile-primary, var(--ms-primary)) 28%, transparent);
  outline-offset: 2px;
}

:is(.ms-fold__icon, .account-profile__permission-group-icon) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  /* A PARAMETER, not green. Green came from the permissions fold, where it means "granted"; carried
     into a fold about a filter's results it coloured nothing in particular, which is how a palette
     stops meaning anything. Muted by default; a fold whose subject really has a colour sets it. */
  color: var(--ms-fold-icon, var(--ms-text-muted));
  font-size: 1.6rem;
}

/* The permissions fold is the one whose icon does mean something: these are powers GRANTED. */
.account-profile__permission-group {
  --ms-fold-icon: var(--ms-success);
}

:is(.ms-fold__copy, .account-profile__permission-group-copy) {
  display: grid;
  flex: 1 1 auto;
  gap: 0.15rem;
  min-width: 0;
  /* The fold's own heading, in the page's value voice, plain. Its icon, its position and the line
     under it already say it heads the block — it does not also need to be heavier than what it
     heads. Under it, supporting copy at the page's meta size. */
}
:is(.ms-fold__copy, .account-profile__permission-group-copy) strong {
  font-size: 0.875rem;
  font-weight: 400;
}
:is(.ms-fold__copy, .account-profile__permission-group-copy) > span {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.ms-fold__chevron, .account-profile__permission-chevron) {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  transition: transform 0.18s ease;
}

:is(.ms-fold, .account-profile__permission-group)[open] :is(.ms-fold__chevron, .account-profile__permission-chevron) {
  transform: rotate(180deg);
}

:is(.ms-fold__body, .account-profile__permission-list) {
  max-height: 24rem;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain; /* reaching the end must not scroll the card behind it */
  border-top: 0;
  background: transparent;
  /* The app's own thin brand-tinted scrollbar instead of the OS default slab: standard properties
     first, ::-webkit- below describing the same bar. */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-color, var(--ms-primary)) 35%, transparent) transparent;
}
:is(.ms-fold__body, .account-profile__permission-list)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
:is(.ms-fold__body, .account-profile__permission-list)::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--brand-color, var(--ms-primary)) 5%, transparent);
  border-radius: 4px;
}
:is(.ms-fold__body, .account-profile__permission-list)::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand-color, var(--ms-primary)) 40%, transparent);
  border-radius: 4px;
  transition: background 0.2s ease;
}
:is(.ms-fold__body, .account-profile__permission-list)::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--brand-color, var(--ms-primary)) 60%, transparent);
}

/* Night: tone alone draws the well, as it does for every other field on a dark card. */
[data-bs-theme=dark] :is(.ms-fold, .account-profile__permission-group),
html.dark :is(.ms-fold, .account-profile__permission-group) {
  border-color: transparent;
}

/* --- Scan list ----------------------------------------------------------------------------------
   A set of short entries meant to be SCANNED rather than read in order: the assets a filter reaches,
   the columns a dialog offers, the names a batch is about. It flows into as many columns as fit, so
   twelve names occupy the height of six and the whole set can be taken in at once — a single tall
   column of hairlines reads as a document to work through, which is the opposite of what it is.

     <ul class="ms-scanlist">
       <li><span class="ms-scanlist__code">INV-000101</span><span class="ms-scanlist__name">Extintor</span></li>
     </ul>

   No rules between entries: they separate themselves by being short and aligned, and a line under each
   one turns a glance into a table. */
.ms-scanlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-scanlist > li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.22rem 0;
  font-size: 0.8rem;
}

/* The code identifies, the name says what it is: the code stays quiet and keeps its digits aligned so
   the column can be read down without reading each entry. */
.ms-scanlist__code {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-variant-numeric: tabular-nums;
}

.ms-scanlist__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Fact list ---------------------------------------------------------------------------------
   What a thing IS, as a list of label/value rows: the shape "Estado de cuenta" settled on in Mi
   perfil, promoted out of that one screen so any sheet can state its facts the same way.

     <dl class="ms-factlist">
       <div><dt>Origen</dt><dd>Parte de desperfectos</dd></div>
       …
     </dl>

   The label wears the panel's label voice and the value the field-input size, so the two halves read
   as a name and its value instead of competing in bold — which is what a <dt> in body text does. The
   value goes to the right edge, because a column of values lines up only if it is aligned to
   something, and hairlines separate the rows without boxing each one. */
.ms-factlist {
  display: grid;
  gap: 0;
  margin: 0;
}

.ms-factlist > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 2.65rem;
  border-bottom: 1px solid var(--ms-rule);
}

.ms-factlist > div:last-child {
  border-bottom: 0;
}

.ms-factlist dt {
  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;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-factlist dd {
  margin: 0;
  color: var(--ms-text);
  font-size: 0.875rem;
  font-weight: 400;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A value that is a SENTENCE rather than a word — "2.º escalón — taller especializado" — wraps instead
   of being cut off. Truncation is right for a username or a code, where the start identifies the whole;
   it is wrong for a phrase, where the tail is the half that says what it means. */
.ms-factlist dd.is-wrap {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.35;
}

.ms-factlist > div:has(dd.is-wrap) {
  align-items: start;
  padding-block: 0.55rem;
}

/* A value that is a control or a chip rather than a word: it still belongs against the right edge,
   but it must not be clipped by the truncation the text values need. */
.ms-factlist dd:has(> .pl-status, > a, > .badge) {
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}

/* A hairline between two blocks of ONE card. Inside the padded body, so it spans the content and not
   the card: a divider that reaches the edges cuts the card in two instead of grouping what is under
   it. Bootstrap's .border-top would have done the spanning AND the disappearing act in dark. */
.ms-rule-top {
  border-top: 1px solid var(--ms-rule);
}

/* The same slide as .ms-toggle-card__extra, for a section opened by something that is NOT its own switch —
   a radio further up the form, a toggle beside it — which :has() cannot reach. Opened by adding .is-open;
   collapsed it is still submitted, just unreachable. Wrap the content in one child: the overflow that hides
   the slide lives there. */
.ms-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, visibility 0s linear 0.28s;
}
.ms-reveal > * {
  min-height: 0;
  overflow: hidden;
}
.ms-reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease 0.06s, visibility 0s;
}

/* Swapping one list for another that answers the same question reuses .ms-swap-in (defined further down
   with the rest of the entrances): the incoming one arrives instead of blinking into place. */
@media (prefers-reduced-motion: reduce) {
  .ms-reveal,
  .ms-reveal.is-open {
    transition: none;
  }
}
/* --- The app's own menu for the input-data selects (select-menu.js) ---------------------------
   The hidden <select> is still the control: it holds the value, the name and the validation state.
   What is drawn is a button that mirrors it and a menu that writes back to it, so the popup finally
   looks like the rest of the application instead of like the operating system. */
.ms-select {
  display: block;
}

.ms-select__native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.ms-select__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ms-border) 80%, transparent);
  border-radius: var(--ms-radius-sm);
  background-color: color-mix(in srgb, var(--ms-bg) 82%, var(--ms-surface));
  color: var(--ms-text);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.ms-select__toggle .ms-select__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-select__toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: auto;
  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;
}
.ms-select__toggle[aria-expanded=true]::after {
  transform: rotate(180deg);
}
.ms-select__toggle:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
}
.ms-select__toggle:focus-visible {
  border-color: var(--ms-primaryColor);
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 40%, transparent);
  outline-offset: 1px;
}
.ms-select__toggle:disabled {
  background-color: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text-muted);
  cursor: not-allowed;
}
.ms-select__toggle.is-placeholder {
  color: var(--ms-text-muted);
}

.ms-select--has-clear .ms-select__value {
  padding-right: 2rem;
}

.ms-select__counter {
  flex: 0 0 auto;
}

.ms-select__menu .dropdown-item.ms-select__option--counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ms-select__menu .dropdown-item.ms-select__option--counter .ms-select__option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ms-select__clear {
  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;
}
.ms-select__clear[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .ms-select__clear::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.ms-select__clear:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.ms-select__clear:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-select__clear:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.ms-select__clear .ms-button__icon {
  font-size: 1.05rem;
}
.ms-select__clear {
  right: 2.1rem;
}

.ms-select__menu {
  max-height: 16rem;
  padding: 0.25rem;
  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));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-color) 35%, transparent) transparent;
  /* Opens and closes: `display` is part of the transition (allow-discrete) and @starting-style gives
     the opening frame somewhere to come from; select-menu.js holds the close back until it has run.
     The MENU only fades — its transform belongs to Popper, which positions with one — so the movement
     is carried by the options, exactly as the table filters do it. */
  opacity: 0;
  transition: opacity 150ms ease, display 150ms allow-discrete;
}
.ms-select__menu .dropdown-item {
  transform: translateY(-4px);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 0.12s ease, color 0.12s ease;
}
.ms-select__menu.show {
  opacity: 1;
}
.ms-select__menu.show .dropdown-item {
  transform: none;
}
@starting-style {
  .ms-select__menu.show {
    opacity: 0;
  }
}
.ms-select__menu.show.is-hiding {
  opacity: 0;
}
.ms-select__menu.show.is-hiding .dropdown-item {
  transform: translateY(-4px);
}
.ms-select__menu .dropdown-item {
  border-radius: var(--ms-radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--ms-text);
  font-size: 0.875rem;
  white-space: normal;
}
.ms-select__menu .dropdown-item:hover, .ms-select__menu .dropdown-item:focus {
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  color: var(--ms-text);
}
.ms-select__menu .dropdown-item.active {
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
  color: var(--ms-primary);
  font-weight: 500;
}
.ms-select__menu .dropdown-item {
  /* An option the field cannot offer RIGHT NOW is left in the list on purpose — one that vanishes
     reads as "that was never possible" — so it is set apart instead. The muted colour and the dead
     clicks already come from the shared .dropdown-menu rules; what has to be undone HERE is the
     selected look, which a blocked option can still be wearing when the step opens (what was stored
     is never corrected behind the user's back). Last in the block, so it beats .active. */
}
.ms-select__menu .dropdown-item:disabled, .ms-select__menu .dropdown-item.disabled {
  background: transparent;
  color: var(--ms-text-muted);
  font-weight: 400;
}

.ms-option-picker__menu {
  position: fixed;
  inset: auto auto auto 0;
  margin: 0;
  z-index: 1055;
}

/* The clear control of a searchable picker.
   The field is a type="search", so WebKit draws its own little cross — but that cross only wipes the TEXT,
   and the picker restores the label of what is still selected as soon as the box loses focus. It looked like
   a way to unset the relation and was not one. It also cannot be styled (no hover of ours) and Firefox does
   not draw it at all, so it is hidden and replaced by a real button that clears the VALUE. */
[data-option-picker-search]::-webkit-search-cancel-button,
[data-option-picker-search]::-webkit-search-decoration {
  appearance: none;
}

/* Room for the button, so a long category name does not run underneath it. */
.ms-option-picker__search {
  padding-right: 2.75rem !important;
}

.ms-option-picker__clear {
  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;
}
.ms-option-picker__clear[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .ms-option-picker__clear::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.ms-option-picker__clear:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.ms-option-picker__clear:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-option-picker__clear:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.ms-option-picker__clear .ms-button__icon {
  font-size: 1.05rem;
}
.ms-option-picker__clear {
  line-height: 1;
}

.ms-theme .was-validated [data-option-picker]:has([data-option-picker-search]:invalid) ~ .invalid-feedback {
  display: block;
}

/* The asterisk that marks a required field. Global on purpose: it used to live inside .student-detail, so
   every OTHER detail screen wearing the same label markup silently rendered no asterisk at all. The rule only
   ever applies to a label that explicitly asks for it. */
.form-label--required::after {
  color: var(--ms-error);
  content: " *";
}

/* A field the flow has CLOSED must read as closed: a control that looks live but refuses the caret is the
   worst of both. Put on the wrapper that holds the label and the control (October's own `field-disabled`),
   so the label dims with what it names. The controls keep their own :disabled colours — this adds the part
   the browser does not: the label, the help text and the cursor over the whole field. */
.field-disabled {
  cursor: not-allowed;
}
.field-disabled > .form-label,
.field-disabled .form-check-label,
.field-disabled .form-text {
  color: var(--ms-text-muted);
}
.field-disabled .form-control:disabled,
.field-disabled .form-select:disabled,
.field-disabled input.form-control[disabled] {
  background-color: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text-muted);
  opacity: 1;
  cursor: not-allowed;
}
.field-disabled .form-check-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* A disabled control swallows the click, so the wrapper that explains why it is closed would never hear it:
   let the pointer fall through to the wrapper that carries the message. */
.field-disabled[data-locked-toast]:not([data-locked-toast=""]) * {
  pointer-events: none;
}

/* An option may carry secondary text (the id that will be stored, a code): the name keeps the reading
   line on the left and the aside is pushed to the right, muted, so a row of homonyms can still be told
   apart at a glance. Options without it stay the plain text item. */
.dropdown-item.ms-option-picker__item--meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ms-option-picker__meta {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
}

/* Night: the panel took the card's own surface and dissolved into it, exactly as the table filter
   menus did before their fix — so it now follows the same rule, one shade above the surface with a
   real shadow. One dropdown language for filters, page-length menus and selects alike. */
/* El desplegable sin nada que ofrecer. Compacto a propósito: es un menú, no una pantalla, así que no
   lleva el icono grande de .ms-empty —que aquí ocuparía más que el propio mensaje— pero sí sus dos
   piezas: qué pasa y qué se puede hacer. */
.ms-select__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

/* La mitad que el de una pantalla (2.5rem): aquí encabeza un menú del ancho de un campo, y a tamaño
   completo pesaba más que la frase que explica. Mismo tono apagado, que es lo que lo mantiene como
   ilustración y no como aviso. */
.ms-select__empty-icon {
  color: var(--ms-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.55;
}

.ms-select__empty-text {
  margin: 0;
  color: var(--ms-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.ms-select__empty-action {
  color: var(--ms-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.ms-select__empty-action:hover, .ms-select__empty-action:focus-visible {
  text-decoration: underline;
}

[data-bs-theme=dark] .ms-select__menu,
html.dark .ms-select__menu {
  border-color: 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);
}

@media (prefers-reduced-motion: reduce) {
  .ms-select__menu,
  .ms-select__toggle::after {
    transition: none;
  }
}
/* Option text in sentence case, whatever the catalogue stored: «en progreso» reads «En progreso» in
   the menu and in the closed field. Only the first letter is touched — acronyms and the rest of the
   words stay as written, which is the Spanish rule and why this is not text-transform: capitalize.
   People are the exception: a name and its surnames take a capital each. A select that lists people
   says so with data-option-case="name" (on the <select>, or on an option picker's wrapper). */
.ms-select__menu .dropdown-item::first-letter,
.ms-select__value::first-letter,
.ms-option-picker__name::first-letter {
  text-transform: uppercase;
}

select[data-option-case=literal] + .ms-select :is(.dropdown-item, .ms-select__value)::first-letter {
  text-transform: none;
}

/* The prompt («Seleccione un contratista…») is a sentence, not a name: it keeps sentence case. */
select[data-option-case=name] + .ms-select :is(.dropdown-item, .ms-select__toggle:not(.is-placeholder) .ms-select__value),
[data-option-picker][data-option-case=name] :is(.dropdown-item, .ms-option-picker__name, [data-option-picker-search]:not(:placeholder-shown)) {
  text-transform: capitalize;
}

/* --- Checkboxes: one control for the whole app -------------------------------------------------
   The people lists and the person detail each declared their own; promoted here so a checkbox is the
   same control wherever it appears, instead of matching only on the screens that remembered to say so. */
/* A checkbox — NOT a switch. This rule used to catch both, and since it is more specific than
   Bootstrap's .form-switch .form-check-input it squashed every switch in the app into a 1.15em
   square: the control said "on/off" in markup and drew a tickbox on screen. */
.ms-theme .form-check-input[type=checkbox]:not([role=switch], .form-switch input) {
  cursor: pointer;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
  border: 1px solid var(--ms-border);
  border-radius: 0.3em;
  background-color: var(--ms-surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ms-theme .form-check-input[type=checkbox]:not([role=switch], .form-switch input):checked, .ms-theme .form-check-input[type=checkbox]:not([role=switch], .form-switch input):indeterminate {
  border-color: var(--ms-primary);
  background-color: var(--ms-primary);
  background-size: 80% 80%;
}
.ms-theme .form-check-input[type=checkbox]:not([role=switch], .form-switch input):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* The switch: a track with a thumb that travels. Bootstrap draws it with a background image, so the
   thumb's colour is set through --bs-form-switch-bg rather than a pseudo-element. */
.ms-theme .form-check-input[role=switch] {
  cursor: pointer;
  width: 2.25em;
  height: 1.25em;
  margin-top: 0.05em;
  border: 1px solid var(--ms-border);
  border-radius: 2em;
  background-color: color-mix(in srgb, var(--ms-bg) 70%, var(--ms-surface));
  background-position: left center;
  background-size: contain;
  transition: background-color 0.18s ease, border-color 0.18s ease, background-position 0.18s ease;
}
.ms-theme .form-check-input[role=switch]:checked {
  border-color: var(--ms-success);
  background-color: var(--ms-success);
  background-position: right center;
}
.ms-theme .form-check-input[role=switch]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 45%, transparent);
  outline-offset: 2px;
  box-shadow: none;
}
.ms-theme .form-check-input[role=switch] {
  /* Bootstrap's own .form-switch .form-check-input:focus (bootstrap.css) repaints the thumb in ITS
     focus blue (#86b7fe) independently of :checked — a plain mouse click leaves a checkbox focused in
     Chromium, so right after toggling a switch OFF with the mouse (not just via keyboard), the reader
     kept seeing a blue-tinted thumb that read as "still on" until something else stole focus. This
     app already has its own focus indicator two rules up (the outline) — the thumb itself has no
     reason to change colour on focus at all, checked or not, so both states are pinned back to
     exactly the plain thumb colour :checked/unchecked would already draw on their own. */
}
.ms-theme .form-check-input[role=switch]:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}
.ms-theme .form-check-input[role=switch]:checked:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.ms-theme .form-check-input[role=switch]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .ms-theme .form-check-input[role=switch] {
    transition: none;
  }
}
.ms-theme .form-check-label {
  cursor: pointer;
}

.ms-theme .form-check-input[type=checkbox]:disabled + .form-check-label {
  cursor: not-allowed;
}

/* --- Global input-data controls ---
   Every TEXTAREA of the panel is in here, with or without the mn-input-data attribute: a multiline
   field looks the same wherever it is written, and a screen cannot end up with a Bootstrap-looking
   box next to one of ours because someone forgot the attribute. Inputs and selects still opt in —
   they have variants (input groups, sizes, the search pill) that a blanket rule would run over. */
select.form-select.ms-input-data,
input.form-control.ms-input-data,
.ms-theme textarea.form-control,
textarea.form-control.ms-input-data {
  width: 100%;
  min-width: 0;
  /* A well, exactly as on "Mi perfil": the PAGE tone sunk into the card, with the app's hairline
     drawn at full strength. The 80%-of-a-border over a background already 18% of the way back to
     the card surface made the same control read a shade fainter here than there. */
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  outline: none;
  background-color: var(--ms-bg);
  color: var(--ms-text);
  font: inherit;
  font-size: 0.875rem;
  transform: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
select.form-select.ms-input-data:focus,
input.form-control.ms-input-data:focus,
.ms-theme textarea.form-control:focus,
textarea.form-control.ms-input-data:focus {
  border-color: var(--ms-primaryColor);
  border-radius: var(--ms-radius-sm);
  outline: none;
  transform: none;
  box-shadow: none;
}
select.form-select.ms-input-data,
input.form-control.ms-input-data,
.ms-theme textarea.form-control,
textarea.form-control.ms-input-data {
  /* One focus cue, not two: the primary border IS the indicator (WCAG 2.4.7 asks for a visible
     one, not for a ring). The outline ring on top of it read as a second frame around the field,
     which is the double edge the field showed while typing. Buttons and switches keep their own
     ring — they have no border to turn. */
}
select.form-select.ms-input-data:focus-visible,
input.form-control.ms-input-data:focus-visible,
.ms-theme textarea.form-control:focus-visible,
textarea.form-control.ms-input-data:focus-visible {
  outline: none;
  border-color: var(--ms-primaryColor);
}
select.form-select.ms-input-data:disabled,
input.form-control.ms-input-data:disabled,
.ms-theme textarea.form-control:disabled,
textarea.form-control.ms-input-data:disabled {
  background-color: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text-muted);
  opacity: 1;
}
select.form-select.ms-input-data.input-validation-error, select.form-select.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
input.form-control.ms-input-data.is-invalid,
.ms-theme textarea.form-control.input-validation-error,
.ms-theme textarea.form-control.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}
select.form-select.ms-input-data.is-valid,
input.form-control.ms-input-data.is-valid,
.ms-theme textarea.form-control.is-valid,
textarea.form-control.ms-input-data.is-valid {
  border-color: var(--ms-success);
}

/* Night: the well separates from the card by TONE, so the hairline goes away — the same inversion
   "Mi perfil" states for its own fields, and the reason a field there looked cleaner at night than
   the identical field on any other screen. */
[data-bs-theme=dark] :is(select.form-select.ms-input-data, input.form-control.ms-input-data,
.ms-theme textarea.form-control, textarea.form-control.ms-input-data):not(:focus),
html.dark :is(select.form-select.ms-input-data, input.form-control.ms-input-data,
.ms-theme textarea.form-control, textarea.form-control.ms-input-data):not(:focus) {
  border-color: transparent;
}

select.form-select.ms-input-data,
input.form-control.ms-input-data {
  height: 2.75rem;
  min-height: 2.75rem;
  text-overflow: ellipsis;
}

/* --- Textarea: our own multiline field ---
   No resize grip: the corner triangle is the browser's design language, not ours, and "drag this to
   see the rest" is an instruction half the people using the panel never read. The field starts at a
   sensible height and GROWS with what you write, up to a ceiling, after which it scrolls — so it
   never pushes the save button off the screen. `field-sizing` does it in the browsers that have it;
   site.js does the same for the rest. Applies to every textarea of the app, with or without
   mn-input-data, so there is one multiline field and not two. */
.ms-theme textarea.form-control {
  field-sizing: content;
  width: 100%;
  min-height: 5.5rem;
  max-height: 60vh;
  padding: 0.65rem var(--ms-field-end, 0.9rem) 0.65rem 0.9rem;
  overflow-y: auto;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* --- Brand badge ---
   The school's own colour, which _Layout publishes as --brand-color from ITenantContext.PrimaryColor.
   Bootstrap's `text-bg-*` roles are fixed palette entries and pick their foreground from the theme. */
.badge.ms-badge-brand {
  background-color: var(--brand-color, var(--ms-primaryColor));
  color: var(--ms-onBrand);
}

/* --- text-bg-info ---
   Same trap, from the other side: variables.scss remaps --bs-info to our own DARK blue (29, 78, 216), but
   Bootstrap computed the foreground of `text-bg-info` from its ORIGINAL cyan and baked in a dark text. The
   result is dark-on-dark: legible nowhere, and every badge using the role has it ("En uso" in the request
   templates, "Cruzada", "creada", the audit's APP tag). The background is ours, so the foreground is too.
   `!important` because Bootstrap's `text-bg-*` are UTILITIES: their `color: #000` carries `!important`, which
   no amount of specificity beats. */
.badge.text-bg-info {
  color: #fff !important;
}

/* --- input-data inside a Bootstrap input group ---
   Bootstrap lays the group out with flex and gives the control `flex: 1 1 auto` plus a nominal `width: 1%`,
   so the addons keep their place beside it. The blanket `width: 100%` above wins over that and takes the
   whole row, pushing the addon onto its own line — which is what put the search icon ABOVE the field in the
   acta's grades header instead of to its left. Restore the flex behaviour, drop the radii on the joined
   sides (Bootstrap's own rules lose on specificity here), and honour the small variant. */
.input-group > select.form-select.ms-input-data,
.input-group > input.form-control.ms-input-data {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group-sm > select.form-select.ms-input-data,
.input-group-sm > input.form-control.ms-input-data {
  height: 2.15rem;
  min-height: 2.15rem;
  font-size: 0.75rem;
}

.input-group > select.form-select.ms-input-data:not(:first-child),
.input-group > input.form-control.ms-input-data:not(:first-child),
.input-group > select.form-select.ms-input-data:not(:first-child):focus,
.input-group > input.form-control.ms-input-data:not(:first-child):focus {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > select.form-select.ms-input-data:not(:last-child),
.input-group > input.form-control.ms-input-data:not(:last-child),
.input-group > select.form-select.ms-input-data:not(:last-child):focus,
.input-group > input.form-control.ms-input-data:not(:last-child):focus {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

select.form-select.ms-input-data {
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
}
select.form-select.ms-input-data.form-select-sm {
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0.35rem 2.15rem 0.35rem 0.7rem;
  font-size: 0.75rem;
}
select.form-select.ms-input-data {
  /* An option the field cannot offer RIGHT NOW is left in the list on purpose — one that disappears
     reads as "that was never possible" — so it has to stay readable while it is set apart. The
     browser's own grey for a disabled option is nearly invisible over our field, and gone entirely
     in the dark theme. This is the theme's muted text over the field's own background: clearly
     apart from the live options, still legible. */
}
select.form-select.ms-input-data option:disabled {
  color: var(--ms-text-muted);
  background-color: color-mix(in srgb, var(--ms-bg) 82%, var(--ms-surface));
}

input.form-control.ms-input-data::placeholder,
textarea.form-control.ms-input-data::placeholder {
  color: color-mix(in srgb, var(--ms-text-muted) 82%, transparent);
  opacity: 1;
}
input.form-control.ms-input-data[readonly],
textarea.form-control.ms-input-data[readonly] {
  background-color: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text-muted);
}

input.form-control.ms-input-data {
  padding: 0.65rem var(--ms-field-end, 0.9rem) 0.65rem 0.9rem;
}
input.form-control.ms-input-data.form-control-sm {
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0.35rem var(--ms-field-end, 0.7rem) 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.was-validated input.form-control.ms-input-data:invalid,
.was-validated textarea.form-control.ms-input-data:invalid {
  border-color: var(--bs-danger, #dc3545);
}

/* --- Global text-field validation ---------------------------------------
   Text fields only call attention to errors. Bootstrap otherwise paints every valid control green,
   adds a check and reserves space for it; invalid focus also gains a red halo. The component classes
   keep this policy away from selects, checks, files, colours and other specialised controls. */
.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.is-valid:not(.is-invalid):not(.input-validation-error),
textarea.form-control.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated input.form-control.ms-input-data.ms-input-data--text:valid:not(.is-invalid):not(.input-validation-error),
.was-validated textarea.form-control:valid:not(.is-invalid):not(.input-validation-error)) {
  padding-right: var(--ms-field-end, 0.9rem);
  border-color: var(--ms-border);
  background-image: none;
  box-shadow: none;
}
.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.is-valid:not(.is-invalid):not(.input-validation-error),
textarea.form-control.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated input.form-control.ms-input-data.ms-input-data--text:valid:not(.is-invalid):not(.input-validation-error),
.was-validated textarea.form-control:valid:not(.is-invalid):not(.input-validation-error)):focus {
  border-color: var(--ms-primaryColor);
  box-shadow: none;
}

.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.form-control-sm.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated input.form-control.ms-input-data.ms-input-data--text.form-control-sm:valid:not(.is-invalid):not(.input-validation-error)) {
  padding-right: var(--ms-field-end, 0.7rem);
}

[data-bs-theme=dark] .ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.is-valid:not(.is-invalid):not(.input-validation-error),
textarea.form-control.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated input.form-control.ms-input-data.ms-input-data--text:valid:not(.is-invalid):not(.input-validation-error),
.was-validated textarea.form-control:valid:not(.is-invalid):not(.input-validation-error)):not(:focus),
html.dark .ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.is-valid:not(.is-invalid):not(.input-validation-error),
textarea.form-control.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated input.form-control.ms-input-data.ms-input-data--text:valid:not(.is-invalid):not(.input-validation-error),
.was-validated textarea.form-control:valid:not(.is-invalid):not(.input-validation-error)):not(:focus) {
  border-color: transparent;
}

.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.input-validation-error,
textarea.form-control.input-validation-error,
input.form-control.ms-input-data.ms-input-data--text.is-invalid,
textarea.form-control.is-invalid,
.was-validated input.form-control.ms-input-data.ms-input-data--text:invalid,
.was-validated textarea.form-control:invalid) {
  padding-right: var(--ms-field-end, 0.9rem);
  border-color: var(--ms-error);
  background-image: none;
  box-shadow: none;
}
.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.input-validation-error,
textarea.form-control.input-validation-error,
input.form-control.ms-input-data.ms-input-data--text.is-invalid,
textarea.form-control.is-invalid,
.was-validated input.form-control.ms-input-data.ms-input-data--text:invalid,
.was-validated textarea.form-control:invalid):focus {
  border-color: var(--ms-error);
  box-shadow: none;
}

.ms-theme :is(input.form-control.ms-input-data.ms-input-data--text.form-control-sm.input-validation-error,
input.form-control.ms-input-data.ms-input-data--text.form-control-sm.is-invalid,
.was-validated input.form-control.ms-input-data.ms-input-data--text.form-control-sm:invalid) {
  padding-right: var(--ms-field-end, 0.7rem);
}

.ms-theme :is(.field-validation-error, .invalid-feedback) {
  margin-top: 0.35rem;
  color: var(--ms-error) !important;
  font-size: 0.72rem;
  line-height: 1.35;
}

.ms-theme .field-validation-error {
  display: block;
}

.ms-theme .was-validated .student-detail__clearable-field:has(.ms-input-data--text:invalid) ~ .invalid-feedback {
  display: block;
}

/* --- Global select-field validation -------------------------------------
   Native selects and the app's mirrored select menu follow the same error-only policy as text
   fields. Bootstrap otherwise paints valid selects green, adds a validation icon beside the arrow
   and gives invalid focus a red halo. The custom menu keeps validation on its visually-hidden native
   select, so its state is also projected onto the adjacent visible toggle. */
.ms-theme :is(select.form-select.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select:valid:not(.is-invalid):not(.input-validation-error)) {
  --bs-form-select-bg-icon: none;
  padding-right: 2.25rem;
  border-color: var(--ms-border);
  box-shadow: none;
}
.ms-theme :is(select.form-select.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select:valid:not(.is-invalid):not(.input-validation-error)):focus {
  border-color: var(--ms-primaryColor);
  box-shadow: none;
}

.ms-theme :is(select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error)) {
  padding-right: 2.5rem;
}

.ms-theme :is(select.form-select.ms-input-data.form-select-sm.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select.ms-input-data.form-select-sm:valid:not(.is-invalid):not(.input-validation-error)) {
  padding-right: 2.15rem;
}

[data-bs-theme=dark] .ms-theme :is(select.form-select.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select:valid:not(.is-invalid):not(.input-validation-error)):not(:focus),
html.dark .ms-theme :is(select.form-select.is-valid:not(.is-invalid):not(.input-validation-error),
.was-validated select.form-select:valid:not(.is-invalid):not(.input-validation-error)):not(:focus) {
  border-color: transparent;
}

.ms-theme :is(select.form-select.input-validation-error,
select.form-select.is-invalid,
.was-validated select.form-select:invalid) {
  --bs-form-select-bg-icon: none;
  padding-right: 2.25rem;
  border-color: var(--ms-error);
  box-shadow: none;
}
.ms-theme :is(select.form-select.input-validation-error,
select.form-select.is-invalid,
.was-validated select.form-select:invalid):focus {
  border-color: var(--ms-error);
  box-shadow: none;
}

.ms-theme :is(select.form-select.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
.was-validated select.form-select.ms-input-data:invalid) {
  padding-right: 2.5rem;
}

.ms-theme :is(select.form-select.ms-input-data.form-select-sm.input-validation-error,
select.form-select.ms-input-data.form-select-sm.is-invalid,
.was-validated select.form-select.ms-input-data.form-select-sm:invalid) {
  padding-right: 2.15rem;
}

.ms-theme .ms-select__toggle.is-invalid,
.ms-theme :is(select.ms-input-data.ms-select__native.input-validation-error,
select.ms-input-data.ms-select__native.is-invalid,
.was-validated select.ms-input-data.ms-select__native:invalid) + .ms-select > .ms-select__toggle {
  border-color: var(--ms-error);
  outline: none;
  box-shadow: none;
}
.ms-theme .ms-select__toggle.is-invalid:hover, .ms-theme .ms-select__toggle.is-invalid:focus, .ms-theme .ms-select__toggle.is-invalid:focus-visible,
.ms-theme :is(select.ms-input-data.ms-select__native.input-validation-error,
select.ms-input-data.ms-select__native.is-invalid,
.was-validated select.ms-input-data.ms-select__native:invalid) + .ms-select > .ms-select__toggle:hover,
.ms-theme :is(select.ms-input-data.ms-select__native.input-validation-error,
select.ms-input-data.ms-select__native.is-invalid,
.was-validated select.ms-input-data.ms-select__native:invalid) + .ms-select > .ms-select__toggle:focus,
.ms-theme :is(select.ms-input-data.ms-select__native.input-validation-error,
select.ms-input-data.ms-select__native.is-invalid,
.was-validated select.ms-input-data.ms-select__native:invalid) + .ms-select > .ms-select__toggle:focus-visible {
  border-color: var(--ms-error);
  outline: none;
  box-shadow: none;
}

.ms-theme .invalid-feedback.is-validation-visible,
.ms-theme :is(select.form-select.input-validation-error,
select.form-select.is-invalid,
.was-validated select.form-select:invalid,
select.ms-input-data.ms-select__native.input-validation-error,
select.ms-input-data.ms-select__native.is-invalid,
.was-validated select.ms-input-data.ms-select__native:invalid) ~ .invalid-feedback {
  display: block;
}

/* --- Global file dropzone --- */
.ms-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--ms-dropzone-height, 8rem);
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 1.5px dashed color-mix(in srgb, var(--ms-border) 90%, transparent);
  border-radius: var(--ms-radius-lg);
  /* A <button> with no background of its own falls back to the platform's BUTTON FACE — a warm grey
     slab in the dark theme, which is why these boxes looked like they belonged to another program.
     It is a well like every other empty surface in the app. */
  background: var(--ms-bg);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
}

.ms-dropzone:not(.ms-dropzone--readonly):hover {
  border-color: var(--ms-primary);
}

.ms-dropzone:not(.ms-dropzone--readonly):active {
  transform: scale(0.9);
}

.ms-dropzone:focus-visible,
.ms-dropzone.is-dragover {
  border-color: var(--ms-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ms-primary) 22%, transparent);
}

.ms-dropzone:disabled {
  opacity: 1;
  cursor: default;
}

.ms-dropzone--readonly {
  cursor: default;
}

.ms-dropzone[aria-busy=true] {
  opacity: 0.6;
  cursor: wait;
}

.ms-dropzone__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ms-dropzone__empty {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  /* The formats line is a footnote, not a second instruction. */
}
.ms-dropzone__empty small {
  font-size: 0.68rem;
  opacity: 0.8;
}

/* A well that already holds a file. This used to be Bootstrap's `bg-success` / `bg-body-tertiary` written
   straight onto the element, which OVERRODE the themed background above: in the dark theme the empty box
   came back as a light bootstrap slab on a dark card. The state belongs to the component, so it is drawn
   with the component's own tokens and inherits the night rules below like everything else. */
.ms-dropzone--filled {
  border-style: solid;
  border-color: color-mix(in srgb, var(--ms-success) 55%, transparent);
  background: color-mix(in srgb, var(--ms-success) 10%, transparent);
}

.ms-dropzone--filled:not(.ms-dropzone--readonly):hover {
  border-color: color-mix(in srgb, var(--ms-success) 55%, transparent);
}

.ms-dropzone--filled .ms-dropzone__empty {
  color: var(--ms-text);
}

.ms-dropzone--filled .ms-dropzone__empty-icon {
  background: color-mix(in srgb, var(--ms-success) 16%, transparent);
  color: var(--ms-success);
}

.ms-dropzone__preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* The icon sits in a tile of its own: it gives the empty box a centre of gravity, and a tinted square
   reads as "put something here" where a bare grey glyph read as decoration. */
.ms-dropzone__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.15rem;
  border-radius: var(--ms-radius-lg);
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
  color: var(--ms-primary);
  font-size: 1.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ms-dropzone:not(.ms-dropzone--readonly):hover .ms-dropzone__empty-icon,
.ms-dropzone.is-dragover .ms-dropzone__empty-icon {
  background: color-mix(in srgb, var(--ms-primary) 18%, transparent);
}

/* The label above each box, with its delete link on the right. */
.ms-dropzone-heading .form-label {
  font-size: 0.68rem;
}

.ms-dropzone__replace-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: color-mix(in srgb, var(--ms-success) 78%, transparent);
  color: var(--ms-neutralWhite);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.15s ease;
}
.ms-dropzone__replace-hint .material-symbols-outlined {
  font-size: 1rem;
}

.ms-dropzone:not(.ms-dropzone--readonly):hover .ms-dropzone__replace-hint,
.ms-dropzone:focus-visible .ms-dropzone__replace-hint,
.ms-dropzone.is-dragover .ms-dropzone__replace-hint {
  transform: translateY(0);
}

.ms-dropzone-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.25rem;
  margin-bottom: 0.35rem;
}

.ms-dropzone-delete {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ms-danger);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, transform 0.12s ease;
}
.ms-dropzone-delete:hover {
  color: var(--ms-error);
}
.ms-dropzone-delete:active {
  transform: scale(0.9);
}
.ms-dropzone-delete:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid color-mix(in srgb, var(--ms-danger) 35%, transparent);
  outline-offset: 2px;
}

/* Shared deferred pickers place their local-selection action immediately above the well. Feature-owned
   delete controls keep using .ms-dropzone-heading when they also represent persisted media. */
.ms-dropzone-clear {
  display: block;
  margin: 0 0 0.35rem auto;
  font-size: 0.68rem;
}

/* A deferred dropzone under its label: the label and the picker's «Eliminar» share one row, and the well
   with whatever follows it (hidden input, messages, help) takes the full width below. The clear action is
   a sibling rendered just before the well (the well is itself a button), so in plain block flow it fell
   onto a line of its own between label and well. Global, for every screen with such a picker (decision of
   23-10): the parent of a clear action becomes a two-column grid, every child spans both columns, and only
   the element right before the clear action (the label) and the action itself share the first row. A parent
   laid out by a Bootstrap utility (d-flex, with !important) keeps its own layout. */
:has(> .ms-dropzone-clear) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
}
:has(> .ms-dropzone-clear) > * {
  grid-column: 1/-1;
}
:has(> .ms-dropzone-clear) > :has(+ .ms-dropzone-clear) {
  grid-column: 1;
  align-self: end;
}
:has(> .ms-dropzone-clear) > .ms-dropzone-clear {
  grid-column: 2;
  align-self: end;
  margin: 0 0 0.35rem;
}

/* Horarios › Importar, review step: a sheet's verdict and its reasons wrap inside their column instead of
   stretching the table past the card. */
.schedule-import__status {
  min-width: 18rem;
  max-width: 28rem;
  white-space: normal;
}

/* «Vista previa» under a dropzone holding a freshly picked PDF (site.js adds and removes it). */
/* The name of a PDF chosen but not saved yet (site.js markPdfPreviewFile): it opens the preview like a
   stored file's link does, so it reads as one. */
.ms-pdf-preview-file {
  color: var(--ms-primary);
  cursor: pointer;
}
.ms-pdf-preview-file:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ms-pdf-preview-file:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 35%, transparent);
  outline-offset: 2px;
}

.ms-dropzone-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ms-primary);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  animation: ms-pdf-preview-fade-in 0.2s ease;
}
.ms-dropzone-preview .material-symbols-outlined {
  font-size: 1rem;
}
.ms-dropzone-preview:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 35%, transparent);
  outline-offset: 2px;
}

/* --- Global buttons --- */
.ms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-pill);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: calc(0.045em + var(--ms-a11y-letter-add, 0em));
  line-height: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}

.ms-button__icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

.ms-button--primary {
  border-color: var(--ms-primary);
  background: var(--ms-primary);
  color: var(--ms-onPrimary);
}

/* Hover = the fill, a shade deeper. Every filled variant states it the same way (10% black mixed
   into its own colour) so the feedback is one gesture across the app and never a size or shape
   change — the button must not move under the pointer. */
.ms-button--primary:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 90%, #000);
  background: color-mix(in srgb, var(--ms-primary) 90%, #000);
  color: var(--ms-onPrimary);
  filter: none;
}

.ms-button--outline-primary {
  border-color: var(--ms-primary);
  background: var(--ms-neutralWhite);
  color: var(--ms-primary);
}

/* Outlined: the wash comes from its own outline colour, so it tints rather than darkens. */
.ms-button--outline-primary:hover {
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 10%, var(--ms-neutralWhite));
  color: var(--ms-primary);
  filter: none;
}

.ms-button--secondary {
  border-color: var(--ms-border);
  background: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  color: var(--ms-text);
}

.ms-button--secondary:hover {
  border-color: var(--ms-border);
  background: color-mix(in srgb, #000 6%, color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface)));
  color: var(--ms-text);
  filter: none;
}

/* Night: a secondary button separates from the card by TONE, like every other surface in the dark
   theme — the hairline around it was the last thing still drawing boxes. */
[data-bs-theme=dark] .ms-button--secondary,
[data-bs-theme=dark] .ms-button--secondary:hover,
html.dark .ms-button--secondary,
html.dark .ms-button--secondary:hover {
  border-color: transparent;
  background: color-mix(in srgb, #ffffff 8%, var(--ms-surface));
}

[data-bs-theme=dark] .ms-button--secondary:hover,
html.dark .ms-button--secondary:hover {
  background: color-mix(in srgb, #ffffff 12%, var(--ms-surface));
}

/* A secondary button separates from its ground by tone — but inside a dropdown panel that ground is
   ALREADY a shade above the card (7%), so the button's own 8% left it all but invisible. On a panel
   it lifts further and keeps a hairline, which is what makes it read as a control at all. */
[data-bs-theme=dark] .dropdown-menu .ms-button--secondary,
html.dark .dropdown-menu .ms-button--secondary {
  border-color: color-mix(in srgb, #ffffff 16%, transparent);
  background: color-mix(in srgb, #ffffff 16%, var(--ms-surface));
  color: var(--ms-text);
}

[data-bs-theme=dark] .dropdown-menu .ms-button--secondary:hover,
html.dark .dropdown-menu .ms-button--secondary:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
  background: color-mix(in srgb, #ffffff 22%, var(--ms-surface));
  color: var(--ms-text);
}

/* Borderless variant for secondary actions that should not compete with the CTA beside them. The
   border stays in the box as `transparent`, so dropping it costs no hit area — the button keeps the
   same size and tap target as any other .ms-button. */
.ms-button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ms-text);
}

.ms-button--ghost:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--ms-text) 8%, transparent);
  color: var(--ms-primary);
  filter: none;
}

.ms-button--danger {
  border: 0;
  background: var(--ms-danger);
  color: var(--ms-neutralWhite);
}

.ms-button--danger:hover {
  border: 0;
  background: color-mix(in srgb, var(--ms-danger) 90%, #000);
  color: var(--ms-neutralWhite);
  filter: none;
}

.ms-button--danger:focus-visible {
  outline-color: color-mix(in srgb, var(--ms-danger) 28%, transparent);
}

.ms-button--success {
  border: 0;
  background: color-mix(in srgb, var(--ms-success) 65%, #000);
  color: var(--ms-neutralWhite);
}

.ms-button--success:hover {
  border: 0;
  background: color-mix(in srgb, var(--ms-success) 55%, #000);
  color: var(--ms-neutralWhite);
  filter: none;
}

.ms-button--success:focus-visible {
  outline-color: color-mix(in srgb, var(--ms-success) 28%, transparent);
}

.ms-button--warning {
  border: 0;
  background: color-mix(in srgb, var(--ms-warning) 85%, #000);
  color: var(--ms-neutralWhite);
  filter: none;
}

.ms-button--warning:hover {
  background: color-mix(in srgb, var(--ms-warning) 75%, #000);
}

.ms-button--warning:focus-visible {
  outline-color: color-mix(in srgb, var(--ms-warning) 28%, transparent);
}

/* White ink on this orange (--ms-orange, #fe7930) measured 2.62:1 in an axe-core sweep — under the
   4.5:1 WCAG 1.4.3 floor, same root cause as the topbar avatar initials (topbar.scss) on the exact
   same colour. Dark ink is what actually passes here too. */
.ms-button--template {
  border: 0;
  background: var(--ms-orange);
  color: #191c1e;
}

.ms-button--template:hover {
  border: 0;
  background: color-mix(in srgb, var(--ms-orange) 90%, #000);
  color: #191c1e;
  filter: none;
}

.ms-button--template:focus-visible {
  outline-color: color-mix(in srgb, var(--ms-orange) 28%, transparent);
}

/* Compact variant for dense bars (bulk-selection bars, filter toolbars) where the full-size
   button is too tall. Same look, tighter box. */
.ms-button--sm {
  min-height: 1.9rem;
  padding: 0.45rem 0.9rem;
  gap: 0.3rem;
}

.ms-button--sm .ms-button__icon {
  font-size: 0.95rem;
}

/* Icon-only variant: a square pill for actions whose icon says it all (a download), so a header row
   of buttons keeps fitting next to the title. The label still has to exist for screen readers —
   put it in aria-label/title, never drop it. */
.ms-button--icon {
  gap: 0;
  min-width: 2.35rem;
  padding: 0.8rem;
}

.ms-button--icon.ms-button--sm {
  min-width: 1.9rem;
  padding: 0.45rem;
}

.ms-button:active {
  transform: scale(0.9);
}

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

.ms-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.ms-button[aria-busy=true] {
  cursor: wait;
}

/* Night: darkening a fill that is already sitting on a dark ground reads as nothing happening. The
   same gesture is stated with LIGHT there, so a hover is as legible at night as it is by day. */
[data-bs-theme=dark] :is(.ms-button--primary, .ms-button--danger, .ms-button--success,
.ms-button--warning, .ms-button--template):hover,
html.dark :is(.ms-button--primary, .ms-button--danger, .ms-button--success,
.ms-button--warning, .ms-button--template):hover {
  filter: brightness(1.12);
}

[data-bs-theme=dark] .ms-button--outline-primary:hover,
html.dark .ms-button--outline-primary:hover {
  background: color-mix(in srgb, var(--ms-primary) 18%, var(--ms-surface));
}

/* --- Global pagination control --- */
:is(.ms-pagination-control, .dataTables_paginate, .dt-paging) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  margin: 0 !important;
  padding: 0.25rem;
  border: 1px solid var(--ms-border);
  border-radius: 30px;
  background: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
  list-style: none;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item {
  margin: 0;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item:not(:first-child) .page-link {
  margin-left: 0;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  color: var(--ms-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item:not(.active, .disabled, .ms-pagination__ellipsis) .page-link:hover {
  /* --ms-surface is the CARD's own colour, so on the card the pager sits in the hover repainted
     white on white and nothing happened. A tint off the ink lands in both themes. */
  background: color-mix(in srgb, var(--ms-text) 8%, transparent);
  color: var(--ms-text);
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item .page-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
  box-shadow: none;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item.active .page-link {
  background: var(--ms-primary);
  box-shadow: none;
  color: var(--ms-onPrimary);
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item.disabled .page-link {
  background: transparent;
  color: var(--ms-text-muted);
  opacity: 0.38;
  pointer-events: none;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .ms-pagination__ellipsis .page-link {
  min-width: 1.5rem;
  padding-right: 0.2rem;
  padding-left: 0.2rem;
  background: transparent;
  box-shadow: none;
}

:is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

/* --- Global dialogs --- */
.ms-dialog {
  --cm-dashboard-primary: var(--brand-color);
}
.ms-dialog .student-detail__clearable-field {
  position: relative;
  width: 100%;
  min-width: 0;
  --ms-field-end: 2.6rem;
}
.ms-dialog .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
.ms-dialog .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.ms-dialog .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > input {
  padding-right: 4.5rem;
}
.ms-dialog .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
.ms-dialog .student-detail__clearable-field--date {
  display: block;
  width: 100%;
  max-width: none;
}
.ms-dialog .student-detail__clearable-field--date > input.form-control {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.ms-dialog .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%);
}
.ms-dialog .student-detail__clearable-field--date:not(.student-detail__clearable-field--datepicker) .student-detail__clear-field-button {
  display: none;
}
.ms-dialog .student-detail__clearable-field--date.student-detail__clearable-field--datepicker > input.js-datepicker-input {
  padding-right: 2.75rem;
}
.ms-dialog .student-detail__clearable-field--textarea .student-detail__clear-field-button {
  top: 0.55rem;
  transform: none;
}
.ms-dialog .student-detail__clearable-field--textarea .student-detail__clear-field-button:active {
  transform: scale(0.9);
}
.ms-dialog .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;
}
.ms-dialog .student-detail__clear-field-button[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .ms-dialog .student-detail__clear-field-button::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.ms-dialog .student-detail__clear-field-button:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.ms-dialog .student-detail__clear-field-button:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-dialog .student-detail__clear-field-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.ms-dialog .student-detail__clear-field-button .ms-button__icon {
  font-size: 1.05rem;
}
.ms-dialog .student-detail__masked-field > input {
  padding-right: 2.75rem;
}
.ms-dialog .student-detail__masked-field > .student-detail__clear-field-button {
  right: 2.35rem;
}
.ms-dialog .student-detail__masked-field > input:not([readonly]) {
  padding-right: 4.55rem;
}
.ms-dialog .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;
}
.ms-dialog .student-detail__masked-field-toggle[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  .ms-dialog .student-detail__masked-field-toggle::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
.ms-dialog .student-detail__masked-field-toggle:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
.ms-dialog .student-detail__masked-field-toggle:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-dialog .student-detail__masked-field-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
.ms-dialog .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.05rem;
}
.ms-dialog .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.15rem;
}
.ms-dialog .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

[data-bs-theme=dark] .ms-dialog {
  --cm-dashboard-primary: color-mix(in srgb, var(--brand-color) 30%, #fff);
}

.ms-dialog--top .modal-dialog-centered {
  display: block;
  min-height: 0;
}

.ms-dialog__surface {
  overflow: hidden;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow-modal);
  color: var(--ms-text);
}

.ms-dialog__header {
  padding: 1.5rem 1.5rem 0.5rem;
  border: 0;
}

.ms-dialog__title {
  margin: 0;
  color: var(--cm-dashboard-primary);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.ms-dialog__body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.ms-dialog__description {
  margin: 0;
  color: var(--ms-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#ms-confirmation-dialog .ms-dialog__description {
  white-space: pre-line;
}

.ms-dialog__actions {
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--ms-border);
  background: color-mix(in srgb, var(--ms-bg) 72%, var(--ms-surface));
}
.ms-dialog__actions > .ms-button {
  margin: 0;
}
.ms-dialog__actions {
  /* Every footer packs its buttons together at the bottom right (12-11-2026). Bootstrap's .ms-auto is
     !important, so a stray one would split the footer and push «Cancelar» to the far left. */
}
.ms-dialog__actions > .ms-auto {
  margin-left: 0 !important;
}

@media (max-width: 575.98px) {
  .ms-dialog__actions .ms-button {
    flex: 1 1 100%;
  }
  .ms-dialog__actions--inline {
    flex-wrap: nowrap;
    padding-inline: 1rem;
  }
  .ms-dialog__actions--inline > .ms-button {
    flex: 0 1 auto;
    padding-inline: 0.75rem;
    text-align: center;
  }
}
/* A question with THREE answers («Cancelar · Continuar sin matricular · Matricular a todos», 03-11): the
   buttons stay on one row, so the dialog is as wide as they need instead of wrapping the last one under. */
.ms-dialog--actions-row .modal-dialog {
  max-width: 44rem;
}
.ms-dialog--actions-row .ms-dialog__actions {
  flex-wrap: nowrap;
}

/* Shared PDF preview (#ms-pdf-preview-dialog in _Layout): wide and tall enough to read a page. */
.ms-dialog--pdf .modal-dialog {
  width: calc(100vw - 2rem);
  max-width: 64rem;
}
.ms-dialog--pdf .ms-dialog__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-dialog--pdf .ms-dialog__description:empty {
  display: none;
}

/* «Novedades CM» (#ms-updates-dialog in _Layout): the product's news page in the PDF preview's viewport,
   at the width October gave it (760px) — the page is laid out as a single reading column. */
.ms-dialog--updates .modal-dialog {
  width: calc(100vw - 2rem);
  max-width: 47.5rem;
}
.ms-dialog--updates .ms-dialog__description:empty {
  display: none;
}

/* A dialog that shows a document's worth of content — a plan's subjects, a table — at the PDF preview's
   width. .ms-dialog caps every dialog at 600px, which is right for a question and a form and leaves a
   six-column table wrapping every cell. */
/* A dialog whose body is a FORM (filters, fields, a table) under its description — «Asignación automática»:
   the header gets the body's bottom air under it, and the description a line of its own before the fields;
   the plain question dialog keeps its tighter pair. Same tokens, one step more. */
.ms-dialog--form .ms-dialog__header {
  padding-bottom: 1rem;
}
.ms-dialog--form .ms-dialog__body {
  padding-top: 1rem;
}
.ms-dialog--form .ms-dialog__description {
  margin-bottom: 1.25rem;
}

/* «Tiene un borrador de este formulario…» (person-detail-dirty.js; flow improvement 10): an info notice above
   the form, with the text taking the room and its two answers wrapping under it on a narrow screen. */
.ms-draft-notice__text {
  flex: 1 1 14rem;
  min-width: 0;
}

.ms-draft-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ms-dialog--wide .modal-dialog {
  width: calc(100vw - 2rem);
  max-width: 64rem;
}

.ms-pdf-preview {
  position: relative;
  height: min(75vh, 60rem);
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-md, 0.5rem);
  background: var(--ms-bg);
}

.ms-pdf-preview__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ms-pdf-preview__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.ms-pdf-preview__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid color-mix(in srgb, var(--ms-primary) 25%, transparent);
  border-top-color: var(--ms-primary);
  border-radius: 50%;
  animation: ms-session-ended-spin 0.8s linear infinite;
}

.ms-pdf-preview.is-loaded .ms-pdf-preview__frame {
  opacity: 1;
}
.ms-pdf-preview.is-loaded .ms-pdf-preview__loader {
  opacity: 0;
  pointer-events: none;
}

@keyframes ms-pdf-preview-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 575.98px) {
  .ms-pdf-preview {
    height: 70vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-dropzone-preview {
    animation: none;
  }
  .ms-pdf-preview__frame,
  .ms-pdf-preview__loader {
    transition: none;
  }
  .ms-pdf-preview__spinner {
    animation: none;
  }
}
.ms-toast {
  --ms-toast-background: var(--ms-toast-other);
  --ms-toast-color: var(--ms-toast-foreground);
  min-width: min(22rem, 100vw - 2rem);
  max-width: min(28rem, 100vw - 2rem);
  background: var(--ms-toast-background);
  box-shadow: var(--ms-shadow-toast);
  color: var(--ms-toast-color);
  cursor: pointer;
}

.ms-toast--success {
  --ms-toast-background: var(--ms-toast-success);
  --ms-toast-color: var(--ms-toast-success-foreground);
}

.ms-toast--info {
  --ms-toast-background: var(--ms-toast-info);
}

.ms-toast--error {
  --ms-toast-background: var(--ms-toast-error);
}

.ms-toast--warning {
  --ms-toast-background: var(--ms-toast-warning);
  --ms-toast-color: var(--ms-toast-warning-foreground);
}

.ms-toast--other {
  --ms-toast-background: var(--ms-toast-other);
}

.ms-toast__message {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The way back to where a piece of work was started (the plan read in the background → its review). Inherits the
   toast's colour so it reads on every variant; underlined because it is the only link a toast carries. */
.ms-toast__link {
  display: inline-block;
  margin-top: 0.25rem;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ms-toast__link:hover, .ms-toast__link:focus-visible {
  color: inherit;
  text-decoration-thickness: 2px;
}

/* A toast that stands for work still running (the students' import): a ring in place of the icon, in the toast's
   own colour so it reads on every variant. site.js swaps it in for toasts shown with { busy: true }. */
.ms-toast__spinner {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ms-wizard-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ms-toast__spinner {
    animation: none;
  }
}
.ms-toast .material-symbols-outlined,
.ms-toast .btn-close {
  flex: 0 0 auto;
}

.ms-toast--success .btn-close-white,
.ms-toast--warning .btn-close-white {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .ms-button,
  .ms-dropzone,
  .ms-dropzone__replace-hint,
  .ms-dropzone-delete {
    transition: none;
  }
  .ms-button:active {
    transform: none;
  }
  .ms-dropzone:not(.ms-dropzone--readonly):active {
    transform: none;
  }
  .ms-dropzone-delete:active {
    transform: none;
  }
  :is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) .page-item .page-link {
    transition: none;
  }
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--ms-radius);
  color: var(--ms-text);
}

.btn-icon:hover {
  background-color: var(--ms-bg);
}

/* An icon action inside a LINE of content — a row of a thread, a row of a small table — rather than
   in a table's action column. Round, because at this size a rounded square reads as a button someone
   forgot to finish, and it takes its wash from its own ink, so a danger action glows red without a
   second rule to say so. The press is a squeeze, the same one the topbar's clear button does. */
.btn-icon--round {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.btn-icon--round .material-symbols-outlined {
  font-size: 1.15rem;
}
.btn-icon--round:hover {
  background-color: color-mix(in srgb, currentColor 14%, transparent);
}
.btn-icon--round:active {
  transform: scale(0.9);
}
.btn-icon--round:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 45%, transparent);
  outline-offset: 1px;
}

/* --- Disabled action (DtCell.DisabledIconButton) ---
   A dead action says so with opacity alone (Bootstrap's own 0.65), no box around it. Bootstrap's
   `.btn.disabled` sets `border-color: var(--bs-btn-disabled-border-color)`, and a plain `.btn` — no variant —
   never defines that variable, so the declaration falls back to `currentColor` and draws a visible frame: red
   around the disabled delete, grey around the disabled edit. Transparent rather than `border: 0` because the
   1px still has to take up its space, or the icon shifts out of line with the live buttons beside it.
   The cursor goes on the WRAPPER: Bootstrap drops pointer events on the control itself, and takes any hover
   of its own with them. */
.ms-action-disabled {
  cursor: not-allowed;
}

.ms-action-disabled > .btn.disabled {
  border-color: transparent;
}

/* --- Locked row (DtCell.RowCheckDisabled) ---
   The lock that stands in for the checkbox of a row the bulk bar cannot touch. Grey and about the size of the
   checkbox it replaces, so the selection column keeps its width and the rows stay lined up; the same
   "not-allowed" cursor as the dead actions at the other end of the row, since it is the same story. */
.ms-row-locked {
  color: var(--ms-text-muted);
  cursor: not-allowed;
  /* It stands in for the row's checkbox, so it has to sit where the checkbox sits. An inline-flex box aligns
     on its BASELINE by default, which drops the icon below the middle of the row; the cell's own
     `align-middle` centres the cell, not the inline box inside it. */
  vertical-align: middle;
  align-items: center;
  justify-content: center;
}
.ms-row-locked .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--ms-primary);
  color: var(--ms-onPrimary);
  font-weight: 600;
  font-size: 0.85rem;
}

.avatar-initials.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
}

/* --- Auth screen --- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Full-bleed variant, for the auth screens that ARE a photograph rather than a
   card on a page (login, two-factor). It lives here, beside the shell it modifies,
   and not in the stylesheet of whichever screen asked for it first: a modifier
   defined in a page-scoped sheet silently does nothing on the next page that uses
   it — which is exactly how the 2FA screen ended up framed by a one-rem border. */
.auth-shell--flush {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* cancels the centring from the flex-center mixin */
  min-height: 100vh; /* (otherwise the footer and the split shrink to centre) */
  padding: 0;
}

.auth-card-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  border: 1px solid var(--ms-border);
  border-radius: calc(var(--ms-radius) * 1.4);
}

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  line-height: 1;
}

/* The glyph beside a notice's text (.alert.d-flex > .material-symbols-outlined + div) keeps its em. As a flex item it
   shrank with the text's length — its box is overflow: hidden, so the «info» of a long step help came out cut (02-11,
   «Crear tabla NAC»); a short notice such as Actas › «no puede actuar» never showed it. */
.alert > .material-symbols-outlined {
  flex: 0 0 auto;
}

/* --- Tabla server-driven (HTMX) --- */
.ms-table-region {
  position: relative;
}

.ms-table-region.htmx-request {
  opacity: 0.6;
  transition: opacity 0.15s;
}

/* --- "Buscar noticias" / "Refrescar" (hemeroteca) ---------------------
   The one control on the panel that waits on a public website: the scraper is
   given up to two minutes, so the press is answered in seconds on a good day
   and not at all on a bad one. Without a busy state the only feedback is a page
   that has not changed yet, which reads as "it did not work" and earns a second
   and a third click on an errand that is expressly once a day.

   htmx puts .htmx-request on the form while its request is in flight (the form
   is what issues it — the body is boosted), and hx-disabled-elt disables the
   button underneath. Here the icon simply gives its place to the spinner, so
   the button keeps its width and nothing on the row moves. */
.ms-fetch-news__busy {
  display: none;
}

.ms-fetch-news.htmx-request .ms-fetch-news__idle {
  display: none;
}

.ms-fetch-news.htmx-request .ms-fetch-news__busy {
  display: inline-block;
}

/* --- Capped and centered content (like the profile page) --------------
   Lists and singles get a max-width and are centered, instead of spanning the
   whole viewport. Cap #ms-content whenever a .pl-header appears anywhere inside
   (direct on generic lists, nested inside .person-list on the people/Organización
   lists) so every list/single ends up the SAME effective width. The dashboard
   (no .pl-header) stays full-width. */
:root {
  --ms-content-max: 1440px;
}

[data-bs-theme=dark] body.ms-theme,
html.dark body.ms-theme {
  --ms-night-ground:
      radial-gradient(58% 52% at 0% 0%, color-mix(in srgb, color-mix(in srgb, var(--brand-color) 50%, #9ec1ff) 28%, transparent), transparent 78%),
      radial-gradient(55% 48% at 100% 100%, color-mix(in srgb, color-mix(in srgb, var(--ms-orange) 55%, #ffd9a8) 17%, transparent), transparent 78%),
      var(--ms-bodyBgDark);
  background: var(--ms-night-ground);
  background-attachment: fixed;
}

[data-bs-theme=dark] .ms-main,
html.dark .ms-main {
  background: var(--ms-night-ground);
  background-attachment: fixed;
}

#ms-content:has(.pl-header) {
  max-width: var(--ms-content-max);
  margin-inline: auto;
}

/* --- Page state (error / access denied / full-page empty) --- */
.state-page {
  max-width: 520px;
  margin: clamp(2rem, 8vh, 6rem) auto;
  padding: 2.5rem 2rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.state-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ms-orange) 14%, transparent);
}
.state-page__icon .material-symbols-outlined {
  font-size: 2.2rem;
  color: var(--ms-orange);
}
.state-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.state-page__text {
  margin: 0 auto 1.75rem;
  max-width: 40ch;
  color: var(--ms-text-muted);
}
.state-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Status line + form fields, lifted from Mi perfil ------------------------
   Two pieces the profile screen invented and every other screen was missing, stated here as shared
   components so a screen opts in by class instead of by copying rules.

   .ms-statusline — a state the page reports but does not ask you to act on (the profile's "Tu cuenta
   está protegida"): an icon, one sentence and an optional link. No card, no border, no fill: chrome
   is reserved for states that DO ask for action, which is what the modifiers below are for. */
.ms-statusline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--ms-radius);
  background: transparent;
  color: var(--ms-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.ms-statusline__icon {
  flex: 0 0 auto;
  font-size: 1.55rem;
  color: var(--ms-success);
}
.ms-statusline__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.ms-statusline__copy strong {
  font-size: 0.925rem;
  font-weight: 500;
}
.ms-statusline__copy span {
  color: var(--ms-text-muted);
}
.ms-statusline__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--ms-radius-pill);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ms-statusline__link:hover {
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
}
.ms-statusline__link .material-symbols-outlined {
  font-size: 1.1rem;
}
.ms-statusline {
  /* Informative rather than reassuring: the icon drops the success green. */
}
.ms-statusline--info .ms-statusline__icon {
  color: var(--ms-text-muted);
}

/* .ms-fields — the profile's field language for a plain Bootstrap form: an uppercase muted label over
   a BORDERLESS well (the page tone is the affordance), with the border materialising only on focus or
   on a validation error. A screen adds the class to its form and its .form-control/.form-select come
   out like Mi perfil's, with no per-field markup. */
/* Doubled class on purpose: .detail-page states its own pill-shaped field language in singles.css,
   which loads AFTER this file, so at equal specificity it would win. .ms-fields.ms-fields outranks
   it without resorting to !important. */
.ms-fields.ms-fields {
  --ms-field-bg: var(--ms-bg);
}
.ms-fields.ms-fields .form-label,
.ms-fields.ms-fields > .row > [class^=col] > label,
.ms-fields.ms-fields > .row > [class*=" col"] > label {
  margin: 0 0 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;
}
.ms-fields.ms-fields .form-control:not(textarea),
.ms-fields.ms-fields .form-select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-sm);
  outline: none;
  box-shadow: none;
  background-color: var(--ms-field-bg);
  color: var(--ms-text);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}
.ms-fields.ms-fields .form-control:not(textarea):focus,
.ms-fields.ms-fields .form-select:focus {
  border-color: var(--ms-primaryColor);
  box-shadow: none;
  outline: none;
}
.ms-fields.ms-fields .form-control:not(textarea):focus-visible,
.ms-fields.ms-fields .form-select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ms-primary) 28%, transparent);
  outline-offset: 2px;
}
.ms-fields.ms-fields .form-control:not(textarea).input-validation-error,
.ms-fields.ms-fields .form-select.input-validation-error {
  border-color: var(--bs-danger, #dc3545);
}
.ms-fields.ms-fields .form-control:not(textarea):disabled, .ms-fields.ms-fields .form-control:not(textarea)[readonly],
.ms-fields.ms-fields .form-select:disabled,
.ms-fields.ms-fields .form-select[readonly] {
  color: var(--ms-text-muted);
  opacity: 1;
}
.ms-fields.ms-fields .form-text {
  color: var(--ms-text-muted);
  font-size: 0.78rem;
}

/* --- Dimmed section ----------------------------------------------------------
   A card whose fields cannot be edited keeps its shape — nothing is hidden or restyled — but the
   whole thing sits back: it reads as "this is out of reach" without a label saying so, and without
   the fields pretending they can be typed into. */
.detail-section.is-dimmed {
  opacity: 0.72;
}
.detail-section.is-dimmed :is(.form-control, .form-select, .ms-input-data, .form-check-input):disabled,
.detail-section.is-dimmed label:has(+ :disabled) {
  cursor: not-allowed;
}

/* --- Fieldset sin cromo -------------------------------------------------------
   A <fieldset> used ONLY for what the element does natively — disable everything inside it in one
   go, for the browser, the keyboard and the screen reader alike — and never for the box it draws.
   Three resets, and the third is the one that bites: a fieldset's default min-inline-size is
   min-content, so a grid or flex container placed inside one refuses to shrink and the layout
   overflows sideways on a narrow screen. */
.mn-fieldset-plain {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.mn-fieldset-plain:disabled {
  opacity: 0.72;
}
.mn-fieldset-plain:disabled :is(.form-control, .form-select, .ms-input-data, .form-check-input):disabled,
.mn-fieldset-plain:disabled label:has(+ :disabled) {
  cursor: not-allowed;
}

/* --- Notificaciones (lista) ---
   The screen is a listing like any other: the .pl-* header above, and a card whose rows separate by
   ZEBRA rather than by hairlines (same language as the tables, see --ms-table-zebra). Unread rows
   keep their orange accent, which now has to win over the stripe. */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  color: var(--ms-text-muted);
  text-align: center;
}
.notif-empty .material-symbols-outlined {
  font-size: 2.4rem;
  opacity: 0.6;
}

/* Unread counter in the card head, in the shape of the app's chips. */
.notif-unread-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-orange) 14%, transparent);
  color: var(--ms-orange);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: calc(0.08em + var(--ms-a11y-letter-add, 0em));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.notif-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  min-height: calc(3em + 1.4rem);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ms-text);
  text-decoration: none;
  transition: background-color 0.12s ease;
  /* Counted from the LAST row so the list always closes on a stripe instead of melting into the
     card, exactly like the tables. */
}
.notif-list li:nth-last-of-type(even) .notif-item {
  background: var(--ms-table-zebra);
}
.notif-item:hover {
  background: var(--ms-table-hover);
}
.notif-item__icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 1.35rem;
  color: var(--ms-text-muted);
}
.notif-item__body {
  flex: 1 1 auto;
  min-width: 0;
}
.notif-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.notif-item__title {
  overflow-wrap: anywhere;
}
.notif-item__time {
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.notif-item__text {
  display: block;
  margin-top: 0.15rem;
  color: var(--ms-text-muted);
  font-size: inherit;
  overflow-wrap: anywhere;
}
.notif-item {
  /* Date + read state travel together, so the marker lines up with the date instead of floating
     against the row's edge. Fixed width: the dot and the double check are different sizes, and
     without it the dates of read and unread rows would not line up in a column. */
}
.notif-item__stamp {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}
.notif-item__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
}
.notif-item {
  /* Unread: a dot. Read: the double check, in the muted ink of the date beside it. */
}
.notif-item__mark--unread::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ms-orange);
}
.notif-item__mark--read {
  font-size: 1.05rem;
  color: var(--ms-text-muted);
}
.notif-item {
  /* Unread: the row is marked by its tint, its icon and the dot at the end — no left stripe and no
     bold title. Stated after the zebra so the tint wins on either row. */
}
.notif-item.is-unread, .notif-list li:nth-last-of-type(even) .notif-item.is-unread {
  background: color-mix(in srgb, var(--ms-orange) 6%, transparent);
}
.notif-item.is-unread .notif-item__icon, .notif-list li:nth-last-of-type(even) .notif-item.is-unread .notif-item__icon {
  color: var(--ms-orange);
}
.notif-item.is-unread:hover, .notif-list li:nth-last-of-type(even) .notif-item.is-unread:hover {
  background: color-mix(in srgb, var(--ms-orange) 10%, transparent);
}

/* --- Dining: weekly calendar (services × days) --- */
.text-orange {
  color: var(--ms-orange) !important;
}

/* El marco redondeado es de la CAJA, no de la tabla, y por dos razones que se tocan:
   .table-bordered dibuja las líneas en las celdas —así que las esquinas de la tabla son rectas por
   definición— y, con border-collapse, ese borde se pinta CENTRADO en el canto: medio píxel cae fuera
   de la tabla. Si la caja recorta (overflow) para redondear, se come justo esa mitad, y el marco sale
   a trozos. Por eso el anillo exterior se le quita a las celdas y lo pone la caja de una pieza. */
.meal-calendar {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--ms-radius-lg);
}

/* Wide enough for the week, the grid fits itself to the card: no minimum width, no scroller, and
   `fixed` keeps the seven day columns equal regardless of what any single cell holds. Below the
   tablet breakpoint that trade stops paying — see the media query at the end of this block. */
.meal-calendar__table {
  width: 100%;
  table-layout: fixed;
}
.meal-calendar__table th, .meal-calendar__table td {
  vertical-align: top;
}
.meal-calendar__table {
  /* Solo la rejilla interior: el anillo exterior es el borde de .meal-calendar. */
}
.meal-calendar__table > thead > tr:first-child > * {
  border-top: 0;
}
.meal-calendar__table > tbody > tr:last-child > * {
  border-bottom: 0;
}
.meal-calendar__table > :not(caption) > tr > :first-child {
  border-left: 0;
}
.meal-calendar__table > :not(caption) > tr > :last-child {
  border-right: 0;
}
.meal-calendar__table .meal-calendar__corner,
.meal-calendar__table .meal-calendar__service {
  width: 6.5rem;
  background: var(--ms-surface);
  font-weight: 600;
}
.meal-calendar__table {
  /* The service name labels its whole row, so it sits at the middle of it rather than at the top like
     the cells, whose content reads from their first line down. */
}
.meal-calendar__table .meal-calendar__service {
  vertical-align: middle;
}
.meal-calendar__table .meal-calendar__day {
  display: table-cell;
  font-weight: 600;
  text-align: center;
  /* La fecha a un extremo de la columna y su descarga al otro. */
}
.meal-calendar__table .meal-calendar__day .meal-calendar__dayhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.meal-calendar__table .meal-calendar__day {
  /* One line: "Lunes 03/08". Baselines aligned so the lighter date sits on the day name's line, and
     allowed to wrap rather than overflow the column on the longest name (miércoles). */
}
.meal-calendar__table .meal-calendar__day .meal-calendar__daylabel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.9rem;
  text-align: left;
}
.meal-calendar__table .meal-calendar__day .meal-calendar__dayname {
  text-transform: capitalize;
}
.meal-calendar__table .meal-calendar__day .meal-calendar__daydate {
  font-weight: 400;
  color: var(--ms-text-muted, inherit);
}
.meal-calendar__table .meal-calendar__day {
  /* The day's downloads live in the day header itself, not in a bar of their own. */
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download {
  display: inline-flex;
  flex: 0 0 auto;
  /* Icon only: no background or border competing with the day name, but the clickable area
     is still the whole square. */
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ms-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn:hover, .meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn:focus, .meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn.show {
  color: var(--ms-primary);
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn:active {
  transform: scale(0.9);
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download .meal-calendar__download-btn .material-symbols-outlined {
  font-size: 18px;
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download {
  /* The menu opens over the grid, which has no scroller of its own; right-aligned so it does not
     spill past the edge in the last column of the week. */
}
.meal-calendar__table .meal-calendar__day .meal-calendar__download .dropdown-menu {
  text-align: left;
  font-weight: 400;
}
.meal-calendar__table .meal-calendar__day.is-today {
  background: color-mix(in srgb, var(--ms-orange) 12%, transparent);
}
.meal-calendar__table .meal-calendar__cell {
  padding: 0.4rem;
}
.meal-calendar__table .meal-calendar__cell.is-closed {
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, color-mix(in srgb, var(--ms-border) 40%, transparent) 6px, color-mix(in srgb, var(--ms-border) 40%, transparent) 12px);
}
.meal-calendar__table .meal-calendar__day.is-closed {
  opacity: 0.75;
}

.meal-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  text-decoration: none;
  color: inherit;
  /* Anchor for the .stretched-link that makes the whole card navigate. The card cannot BE the anchor:
     its allergen list holds a disclosure control, and controls do not nest inside links. */
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.meal-card__head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.meal-card__head .material-symbols-outlined {
  font-size: 0.9rem;
}
.meal-card__time {
  font-weight: 600;
}
.meal-card {
  /* A week is seven columns wide, so the head line has barely any room for the hour, its marks and
     the state. "Finalizada" is three characters longer than "Abierta"/"Cerrada" and wrapped onto a
     line of its own; the badge is tightened for ALL states so the three still read as one set, and
     kept nowrap so it never breaks mid-word if a column ends up narrower still. */
  /* El relleno y el redondeo los pone .pl-status; aquí solo queda dónde va y que la celda del
     calendario es estrecha, así que se lee un punto más pequeña que en una tabla. */
}
.meal-card__state {
  margin-left: auto;
  font-size: 0.7rem;
  white-space: nowrap;
}
.meal-card__diners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  font-size: 0.85rem;
}
.meal-card__allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.meal-card:hover {
  border-color: color-mix(in srgb, var(--ms-orange) 55%, var(--ms-border));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.meal-card:active {
  transform: translateY(0) scale(0.995);
}
.meal-card {
  /* Dimmed by MUTING each layer, not by `opacity`: opacity alpha-blends the whole subtree as one
     group, including the text — axe-core measured the card's near-black inherited text at only
     4.36:1 once opacity brought it down, short of the 4.5:1 WCAG 1.4.3 floor. A fixed muted text
     color keeps the same "faded" read without touching the text's own contrast. */
}
.meal-card--disabled {
  border-color: color-mix(in srgb, var(--ms-border) 60%, transparent);
  background: color-mix(in srgb, var(--ms-surface) 60%, transparent);
  color: #6b7280;
}
.meal-card--disabled:hover {
  border-color: var(--ms-border);
  box-shadow: none;
  transform: none;
}
.meal-card {
  /* Already served: read-only, so it does not answer to the pointer the way a manageable meal does.
     Muted further than --disabled and with no surface of its own — a past week reads as background. */
}
.meal-card--past {
  background: transparent;
  color: #6b7280;
}
.meal-card--past:hover {
  border-color: var(--ms-border);
  box-shadow: none;
  transform: none;
}

/* --- Mantenimiento: la fila de los catálogos ----------------------------------------------------
   La barra de pestañas y el «Crear» comparten fila: son la misma decisión —en qué catálogo estoy y qué
   añado a él—. El botón se alinea al final y la barra se queda a la izquierda. */
.pl-catalogtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pl-catalogtabs > .nav-pills {
  margin-right: auto;
}

/* Solo se ofrece añadir al catálogo que se está mirando. Lo decide el CSS leyendo qué pestaña está
   activa: Bootstrap ya mueve .active entre los botones de la barra, así que no hace falta script
   —ni sincronizarlo— para que el botón cambie con la pestaña. */
.pl-catalogtabs:has(#tab-catalog-categories.active) [data-catalog-create]:not([data-catalog-create=categories]),
.pl-catalogtabs:has(#tab-catalog-locations.active) [data-catalog-create]:not([data-catalog-create=locations]),
.pl-catalogtabs:has(#tab-catalog-deadlines.active) [data-catalog-create]:not([data-catalog-create=deadlines]),
.pl-catalogtabs:has(#tab-catalog-targets.active) [data-catalog-create] {
  display: none;
}

/* Maintenance › Catálogos › Plazos: el plazo de cada prioridad, cantidad y unidad en una línea. */
.maintenance-targets td, .maintenance-targets th {
  padding-inline: 1rem;
}

.maintenance-targets__term {
  display: flex;
  gap: 0.5rem;
  max-width: 20rem;
}
.maintenance-targets__term > input {
  flex: 1 1 8rem;
}
.maintenance-targets__term > select {
  flex: 0 0 7rem;
}

/* Maintenance › orden de trabajo: el alta de una línea de coste. Los campos se reparten la fila y el
   botón queda contra el borde derecho. */
.wo-costline-field {
  flex: 0 1 8rem;
}

.wo-costline-field--concept {
  flex: 1 1 12rem;
}

.wo-costline-field--serial {
  flex: 0 1 10rem;
}

/* De noche, la pareja de la hemeroteca. Allí la barra que vive sobre el fondo ya resolvió esto:
   carril --ms-surface y píldora activa --ms-bg (personlist.scss, el bloque nocturno de
   :is(.student-detail__form-card, .ms-tabs) > .nav-tabs). Es el negativo de lo que hace una barra
   DENTRO de una tarjeta, y por una razón: la píldora se lee como un hueco excavado, no como una pastilla
   azul marca flotando sobre un carril que no se ve —que es lo que pasaba aquí, porque el carril por
   defecto es --ms-bg, exactamente el color que esta barra tiene debajo. */
[data-bs-theme=dark] .pl-catalogtabs > .nav-pills,
html.dark .pl-catalogtabs > .nav-pills {
  background: var(--ms-surface);
}

[data-bs-theme=dark] .pl-catalogtabs > .nav-pills .pf-tabs__thumb,
html.dark .pl-catalogtabs > .nav-pills .pf-tabs__thumb {
  background: var(--ms-bg);
}

/* 2. Bootstrap APAGA a propósito el hover de una etiqueta de .btn-check
      (.btn-check + .btn:hover devuelve el color base) porque en un grupo de alternar manda el estado
      elegido y no el puntero. Aquí las cuatro opciones son tarjetas que se pulsan para elegir, y sin
      hover no parecen pulsables. Se devuelve solo a las no marcadas: la marcada ya tiene su color. */
.rule-wizard .btn-check:not(:checked) + .btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

/* De noche --ms-border (#1f2937) es MÁS OSCURO que la tarjeta que lo contiene, así que el recuadro del
   resumen se desvanecía: toma la línea de los divisores, como el resto del panel. Y con él TODO lo que
   dentro lee ese color — la rejilla de comidas de la semana y la línea sobre sus acciones—, cambiando la
   VARIABLE y no cada borde, que es como se vence el !important de las utilidades de Bootstrap. */
[data-bs-theme=dark] .rule-fold,
html.dark .rule-fold {
  --bs-border-color: color-mix(in srgb, #ffffff 14%, transparent);
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

/* La rejilla de la semana. El color NO se puede heredar desde .rule-fold: personlist.scss fija
   `--bs-table-border-color` en la PROPIA tabla (`.person-list .table`), y una propiedad puesta en el
   elemento gana siempre a la heredada. Así que se fija también en la tabla, y con un selector más
   específico que aquel — personlist.css se carga DESPUÉS que app.css, y a igualdad de peso manda el
   último. */
[data-bs-theme=dark] :is(.rule-fold__body, .rule-wizard) .table,
html.dark :is(.rule-fold__body, .rule-wizard) .table {
  --bs-table-border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

.kitchen-rule .student-detail__identity {
  min-height: 1.5rem;
  padding-block: 0;
  text-transform: none;
}

.kitchen-rule .rule-fold__header > .rule-fold__content {
  flex: 1;
  min-width: 0;
}
.kitchen-rule .rule-fold__header .pl-status {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
}
.kitchen-rule .rule-fold__header .pl-status-label {
  max-width: none;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rule-fold {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
}
.rule-fold__header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.rule-fold__body {
  padding: 0 1rem 0.75rem;
}

.kitchen-rule-grid__cell--changed {
  --bs-table-bg: color-mix(in srgb, var(--ms-warning) 18%, transparent);
}

.kitchen-chip {
  padding: 0.3em 0.6em;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.75em;
  font-weight: 500;
  white-space: nowrap;
}

.ms-swap-in {
  animation: ms-swap-in 200ms ease-out both;
}

@keyframes ms-swap-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* A WALK moves sideways, and which way it went is information: a step that arrives from the right was
   reached by going on, one from the left by going back. Without it every step arrived the same way and
   the wizard read as a page that reloaded rather than as a sequence being walked.
   Modifiers of .ms-swap-in rather than animations of their own, so site.js removing that one class ends
   this too — an element left carrying a filled animation keeps a stacking context and traps dialogs
   inside it under the modal backdrop. */
.ms-swap-in.ms-swap-in--forward,
.ms-swap-in.ms-swap-in--back {
  /* Longer than the plain arrival and on the panel's springy curve: a step is a bigger move than a
     list refreshing, and 200ms of ease-out over that distance reads as a cut rather than a travel. */
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.ms-swap-in.ms-swap-in--forward {
  animation-name: ms-swap-in-forward;
}

.ms-swap-in.ms-swap-in--back {
  animation-name: ms-swap-in-back;
}

@keyframes ms-swap-in-forward {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ms-swap-in-back {
  from {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-swap-in {
    animation: none;
  }
}
/* What this meal IS (mandatory, active, reservation deadline): the same badges its calendar cell carries,
   under the single's title instead of in a separate summary card. */
.meal-detail__state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

/* Allergen combinations of a meal: one row per distinct SET of allergens, with how many diners need it.
   A list and not a table — every row is the same two things, and the count is what the eye scans. */
/* Columns of at most five rows: `column` flow fills a column top to bottom and then starts the next one,
   and the fixed five-row track is what caps its height. New columns appear on their own as combinations
   pile up, so a meal with many of them stays as tall as one with five. */
.meal-combos__list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  /* A column is always a sixth of the row wide, however many there are: five combinations make five
     columns and leave the sixth's worth of space free, instead of stretching to fill the card. The
     minmax lets them shrink rather than overflow if a meal ever needs more than six. */
  --meal-combos-gap: 1.5rem;
  grid-auto-columns: minmax(0, calc((100% - 5 * var(--meal-combos-gap)) / 6));
  column-gap: var(--meal-combos-gap);
  row-gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  list-style: none;
}

/* A phone has no room for six columns: a sixth of the card is 42px, less than ONE allergen icon, so
   the icons of a combination, its count and the «Sin alergias» line were drawn on top of each other
   and of the column beside them. Two columns filled row by row instead — each wide enough for a
   three-allergen combination and its count — and the card grows down, which a phone has plenty of. */
@media (max-width: 767.98px) {
  .meal-combos__list:not(.meal-combos__list--row) {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }
}
/* Six or fewer: a single row, each one only as wide as it needs. Stacking them into columns of five when
   there are two or three would leave a tall, mostly empty card. */
.meal-combos__list--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--meal-combos-gap);
}
.meal-combos__list--row .meal-combos__item {
  width: auto;
}

/* A switch over the diner list (Detail.cshtml): pressed, the list shows only that combination's diners. */
.meal-combos__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.meal-combos__item:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
}
.meal-combos__item[aria-pressed=true] {
  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);
}

.meal-combos__allergens {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.meal-combos__count {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding-right: 4px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* One allergen, as rendered by the shared _Allergen partial (calendar cells and diner rows alike). */
.meal-allergen {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ms-border);
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
}
.meal-allergen__img {
  height: 1.3rem;
  width: auto;
}
.meal-allergen__emoji {
  font-size: 1.05rem;
}
.meal-allergen__count {
  font-weight: 600;
}
.meal-allergen {
  /* Icon alone. No pill around a bare icon, and a SQUARE box rather than the artwork's own proportions:
     the catalog PNGs are not all the same shape, so sized by height alone they took different widths and
     a row of them read as ragged. `contain` fits each drawing inside without cropping or stretching. */
}
.meal-allergen--icon {
  padding: 0;
  border: 0;
  gap: 0;
}
.meal-allergen--icon .meal-allergen__img {
  width: 2.95rem;
  height: 2.95rem;
  object-fit: contain;
}
.meal-allergen--icon .meal-allergen__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.95rem;
  height: 2.95rem;
  font-size: 2.5rem;
}

/* The calendar cell lists its allergens instead of lining them up as chips: one per row, icon then name
   then count, so a service reads down like a list and the counts form their own column. */
.meal-card__allergens--list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.meal-card__allergens--list .meal-allergen {
  /* Block-level rows rather than a flex column on the container: the folded ones live inside a
     Bootstrap .collapse, whose own display the animation depends on, so the rows have to stack on
     their own wherever they sit. Their padding is what spaces them, for the same reason — a `gap`
     would only apply on one side of the fold. */
  display: flex;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  min-width: 0;
  /* A SQUARE box, not the artwork's own proportions: the catalog PNGs are not all the same shape, and
     sized by height alone they took different widths, so the names next to them did not line up.
     `contain` fits each drawing inside the box without cropping or stretching it. */
}
.meal-card__allergens--list .meal-allergen .meal-allergen__img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}
.meal-card__allergens--list .meal-allergen .meal-allergen__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.meal-card__allergens--list .meal-allergen {
  /* The long ones (frutos de cáscara) trail off rather than push the count out of the cell; the
     chip's title still spells the whole thing out. */
}
.meal-card__allergens--list .meal-allergen .meal-allergen__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.meal-card__allergens--list .meal-allergen .meal-allergen__count {
  margin-left: auto;
  padding-left: 0.25rem;
}
.meal-card__allergens--list {
  /* The trigger closes the list, under the rows it reveals. It has to sit ABOVE the card's stretched
     link, or the click that opens the fold would navigate to the meal instead. */
}
.meal-card__allergens--list .meal-card__allergens-more {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 0.15rem 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  color: var(--ms-text-muted, inherit);
  cursor: pointer;
}
.meal-card__allergens--list .meal-card__allergens-more:hover {
  color: var(--ms-primary);
}
.meal-card__allergens--list .meal-card__allergens-more .meal-card__allergens-close {
  display: none;
}
.meal-card__allergens--list .meal-card__allergens-more[aria-expanded=true] .meal-card__allergens-open {
  display: none;
}
.meal-card__allergens--list .meal-card__allergens-more[aria-expanded=true] .meal-card__allergens-close {
  display: inline;
}

/* Brief flash when a section is deep-linked (e.g. from a dashboard bucket). */
.cm-flash-highlight {
  animation: cm-flash 1.6s ease;
}

@keyframes cm-flash {
  0%, 100% {
    box-shadow: 0 0 0 0 transparent;
  }
  15% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-orange) 55%, transparent);
  }
}
/* ---- Asistente de reglas de comedor ----
   Los switches del asistente deciden si una comida es obligatoria (baja) o de alta voluntaria: es la
   pregunta de más peso del paso, y al tamaño por defecto de Bootstrap quedaba por debajo de los campos
   que tiene al lado. Se agranda solo aquí, no en toda la aplicación. */
/* The assigned-people draft uses the same listing chrome as the group roster. Its visual pager
   only hides rows, so pending assignment fields stay in the form instead of being detached. */
.detail-page--seat [data-seat-assigned-table] {
  --pl-control-radius: 30px;
  overflow: hidden;
  /* A one-row listing is shorter than the upward-opening page-length menu. */
}
.detail-page--seat [data-seat-assigned-table]:has(.ms-dt-length__menu.show) {
  overflow: visible;
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable {
  --bs-table-bg: var(--ms-surface);
  background-color: var(--ms-surface);
  color: var(--ms-text);
  /* Hidden draft rows must not change the visible page's zebra sequence. */
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-row] > td,
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-row]:is(:hover, :active) > td {
  --bs-table-bg: var(--ms-surface);
  background: var(--ms-surface);
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-row].seat-assigned-row--zebra > td,
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-row].seat-assigned-row--zebra:is(:hover, :active) > td {
  --bs-table-bg: var(--ms-table-zebra);
  background: var(--ms-table-zebra);
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-no-results] > td,
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody tr[data-seat-assigned-no-results]:hover > td {
  --bs-table-bg: var(--ms-surface);
  background: var(--ms-surface);
  box-shadow: none;
  cursor: default;
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody a:not(.btn):not(.ms-button) {
  color: var(--ms-text);
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody a:not(.btn):not(.ms-button):hover, .detail-page--seat [data-seat-assigned-table] .pl-datatable tbody a:not(.btn):not(.ms-button):focus-visible {
  color: var(--ms-primary);
}
.detail-page--seat [data-seat-assigned-table] .pl-datatable tbody :is(.text-secondary, .text-muted) {
  color: var(--ms-text-muted) !important;
}

.seat-assigned-remove[aria-disabled=true] {
  opacity: 0.5;
  cursor: help;
}

/* Seat assignment reuses the listings table unchanged. Its one extra state is selection: clicking a row
   toggles the same checkbox as the first column, and the whole row keeps a quiet brand tint while active. */
.person-list--seat-assignment [data-seat-assignment-table] {
  /* Filtering removes non-matching rows from the DOM. The automatic table algorithm then renegotiates
     every column from the remaining content, so the headings visibly jump. DataTables copies the same
     declared widths into its generated colgroup; fixed layout makes those widths the geometry contract. */
  table-layout: fixed;
  min-width: 51rem;
}
.person-list--seat-assignment [data-seat-assignment-table][data-seat-assignment-temporary=true] {
  min-width: 63rem;
}
.person-list--seat-assignment [data-seat-assignment-table] .seat-assignment-col--select {
  width: 3.5rem !important;
}
.person-list--seat-assignment [data-seat-assignment-table] .seat-assignment-col--person {
  width: 16.5rem !important;
}
.person-list--seat-assignment [data-seat-assignment-table] .seat-assignment-col--kind {
  width: 14rem !important;
}
.person-list--seat-assignment [data-seat-assignment-table] .seat-assignment-col--current {
  width: 17rem !important;
}
.person-list--seat-assignment [data-seat-assignment-table] .seat-assignment-col--until {
  width: 12rem !important;
}

.person-list--seat-assignment .pl-datatable tbody tr[data-seat-assignment-row] {
  cursor: pointer;
}

.person-list--seat-assignment .pl-datatable tbody tr[data-seat-assignment-row].is-active > td,
.person-list--seat-assignment .pl-datatable tbody tr[data-seat-assignment-row].is-active:hover > td {
  --bs-table-bg: color-mix(in srgb, var(--ms-primary) 12%, var(--ms-surface));
  background: color-mix(in srgb, var(--ms-primary) 12%, var(--ms-surface));
}

/* El estado del puesto en su ficha. Misma idea que la línea de seguridad del perfil: cuando no hay nada
   que hacer no tiene chrome ninguno — solo el icono, una frase y a otra cosa —, y el peso visual se lo
   queda la variante que SÍ pide una decisión (el puesto desactivado). */
.seat-notice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.25rem;
  border: 0;
  border-radius: var(--ms-radius);
  background: transparent;
  color: var(--ms-text-muted);
}

/* Desactivado: la MISMA línea callada, no un cartel. La ficha entera ya se ve apagada — decirlo otra vez
   con un recuadro amarillo no lo dice más fuerte, solo tapa lo que hay debajo. El único peso visual se lo
   queda la acción de la derecha, que es lo que de verdad hay que hacer aquí. */
.seat-notice--off {
  color: color-mix(in srgb, var(--ms-warning) 45%, var(--ms-text));
}

/* La acción, a la derecha de la línea: mismas medidas que .account-profile__notice-link del perfil, que es
   de donde viene el patrón. */
.seat-notice__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.seat-notice__action:hover {
  background: color-mix(in srgb, var(--ms-warning) 14%, transparent);
}
.seat-notice__action .material-symbols-outlined {
  font-size: 1.1rem;
}
.seat-notice__action {
  /* Desplegado, la flecha apunta a lo que ha abierto. */
}
.seat-notice__action[aria-expanded=true] .material-symbols-outlined {
  transform: rotate(90deg);
}

/* El grupo de acciones que se apaga con el puesto. Tiene CAJA propia y no `display: contents` porque el
   apagado es opacidad, y la opacidad de un padre no hay forma de deshacerla en un hijo: «Volver» tiene que
   quedar FUERA de esta caja para conservar su color. Repite la columna de .detail-page__actions-list para
   que las separaciones entre botones no cambien. */
.detail-page__actions-inert {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
.detail-page__actions-inert:empty {
  display: none;
}

/* El panel de activar: una fila, no una tarjeta — se despliega bajo la línea y se lleva su propio aire. */
.seat-activate.is-open > * {
  padding: 0.25rem 0.25rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .seat-notice__action,
  .seat-notice__action .material-symbols-outlined {
    transition: none;
  }
}
.seat-notice__icon {
  flex: 0 0 auto;
  font-size: 1.55rem;
  color: var(--ms-warning);
}

.seat-notice--off .seat-notice__icon {
  color: color-mix(in srgb, var(--ms-warning) 67%, #000);
}

.seat-notice__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.seat-notice__copy strong {
  font-size: 0.925rem;
  font-weight: 500;
}

/* Los chips de estado del puesto en su ficha. Chips PROPIOS y no `text-bg-*` de Bootstrap: esas son entradas
   fijas de paleta que eligen su color de texto por su cuenta (ver .badge.text-bg-info aquí arriba, y el tag
   «final» de actas que salía cian con texto oscuro en todas las escuelas). Misma receta que .rp-chip: píldora,
   fondo teñido del color que le toca y el texto en ese mismo color. */
.seat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--ms-radius-pill);
  padding: 0.15rem 0.6rem;
  background: color-mix(in srgb, var(--ms-text-muted) 14%, transparent);
  color: var(--ms-text-muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.6;
  vertical-align: middle;
}

/* Temporal: el mismo amarillo con el que la línea de estado y el listado cuentan que esto caduca. */
.seat-chip--temp {
  background: color-mix(in srgb, var(--ms-warning) 16%, transparent);
  color: color-mix(in srgb, var(--ms-warning) 62%, #000);
}

/* Desactivado: apagado a propósito — es el estado en el que el puesto no concede nada. */
.seat-chip--off {
  background: color-mix(in srgb, var(--ms-text-muted) 16%, transparent);
  color: var(--ms-text-muted);
}

/* Un puesto desactivado se enseña entero pero apagado: sigue siendo la ficha del puesto — quién lo tenía,
   qué concedía — y por eso no se oculta; simplemente no se puede tocar nada. El `inert` del marcado es lo
   que lo hace de verdad; esto solo lo cuenta. */
.seat-detail--off {
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .seat-detail--off {
    transition: none;
  }
}
/* --- Seat creation summary ------------------------------------------------------------------------
   A quiet review surface: typography and dividers carry the hierarchy, while long permission lists remain
   one native disclosure away. No decorative colour or icon is needed to understand the configuration. */
.seat-create__summary {
  overflow: hidden;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
}

.seat-create__summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--ms-border);
}

.seat-create__summary-heading {
  min-width: 0;
  flex: 1 1 auto;
}
.seat-create__summary-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ms-text);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
}

.seat-create__summary-ready {
  flex: 0 0 auto;
}

.seat-create__summary-body {
  padding: 1.1rem;
}

.seat-create__summary-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seat-create__summary-fact {
  min-width: 0;
  padding-right: 1rem;
}
.seat-create__summary-fact + .seat-create__summary-fact {
  padding-right: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--ms-border);
}

.seat-create__summary-fact-copy {
  min-width: 0;
}

.seat-create__summary-fact h3,
.seat-create__summary-section-heading h3 {
  margin: 0;
  color: var(--ms-text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.seat-create__summary-value {
  margin: 0.25rem 0 0;
  color: var(--ms-text);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

.seat-create__summary-types {
  margin: 0.3rem 0 0;
  color: var(--ms-text);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
}

.seat-create__summary-note,
.seat-stat__note {
  margin: 0.35rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.45;
}

.seat-create__summary-access {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ms-border);
}

.seat-create__summary-section-heading {
  margin-bottom: 0.7rem;
}
.seat-create__summary-section-heading h3 {
  color: var(--ms-text);
  font-size: 0.86rem;
}
.seat-create__summary-section-heading p {
  margin: 0.15rem 0 0;
  color: var(--ms-text-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.seat-create__summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
}

.seat-stat {
  min-width: 0;
  padding: 0.8rem 0.9rem;
}
.seat-stat + .seat-stat {
  border-left: 1px solid var(--ms-border);
}

.seat-stat__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  min-width: 0;
}

.seat-stat__label {
  color: var(--ms-text);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.seat-stat__figure {
  display: flex;
  grid-column: 2;
  grid-row: 1/span 2;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.seat-stat__value {
  color: var(--ms-text);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.seat-stat__total {
  color: var(--ms-text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.seat-stat__note {
  grid-column: 1;
  margin-top: 0.15rem;
}

/* A single quiet action controls the optional access detail. Bootstrap owns the collapse state and updates
   aria-expanded, which also switches the visible label without requiring page-specific JavaScript. */
.seat-fold {
  margin-top: 0.9rem;
}

.seat-fold__toggle {
  display: block;
  margin-left: auto;
  padding: 0.8rem 0;
  border: 0;
  background: transparent;
  color: var(--ms-primary);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  transform-origin: right center;
  transition: transform 0.12s ease;
}
.seat-fold__toggle:active {
  transform: scale(0.9);
}
.seat-fold__toggle:focus-visible {
  border-radius: var(--ms-radius-sm);
  outline: 2px solid var(--ms-primary);
  outline-offset: 2px;
}

.seat-fold__toggle-label--hide {
  display: none;
}

.seat-fold__toggle[aria-expanded=true] .seat-fold__toggle-label--show {
  display: none;
}
.seat-fold__toggle[aria-expanded=true] .seat-fold__toggle-label--hide {
  display: inline;
}

.seat-fold__body {
  padding: 0 0 0.25rem 1.15rem;
}

.seat-fold__section {
  padding-top: 0.75rem;
}
.seat-fold__section + .seat-fold__section {
  margin-top: 0.75rem;
  border-top: 1px solid var(--ms-border);
}
.seat-fold__section h4 {
  margin: 0 0 0.4rem;
  color: var(--ms-text);
  font-size: 0.76rem;
  font-weight: 500;
}
.seat-fold__section > .seat-fold__values {
  margin: 0;
}

.seat-fold__row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.45rem 0;
}
.seat-fold__row + .seat-fold__row {
  border-top: 1px solid var(--ms-border);
}

.seat-fold__group {
  color: var(--ms-text);
  font-size: 0.73rem;
  font-weight: 500;
}

.seat-fold__values {
  color: var(--ms-text-muted);
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .seat-create__summary-header,
  .seat-create__summary-body {
    padding: 0.9rem;
  }
  .seat-create__summary-facts,
  .seat-create__summary-metrics {
    grid-template-columns: 1fr;
  }
  .seat-create__summary-fact {
    padding-right: 0;
  }
  .seat-create__summary-fact + .seat-create__summary-fact {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    padding-left: 0;
    border-top: 1px solid var(--ms-border);
    border-left: 0;
  }
  .seat-stat + .seat-stat {
    border-top: 1px solid var(--ms-border);
    border-left: 0;
  }
}
/* The close preview's figures (Courses/_ClosePreview): three or four of them — «Alumnos», «Sin decidir» and one or
   both of «Promocionan» / «Repiten». The shared grid pairs figures two by two, so a third one fell under the first
   with the divider meant for its left neighbour against the frame (a double line), no rule between the two rows
   and the corner beside it empty. Here they share a row while they fit and wrap when they do not, the last ones
   widening to close the row (no empty corner). Every figure draws its divider on its left and top edges, pulled
   1px out so that the frame's overflow clips the ones that land on it: whatever the wrap, each line sits between
   two figures and never doubles the frame. A modifier, so every other summary keeps its two columns. */
.seat-create__summary-metrics--row {
  display: flex;
  flex-wrap: wrap;
}
.seat-create__summary-metrics--row > .seat-stat {
  flex: 1 1 9.5rem;
  margin: -1px 0 0 -1px;
  border-top: 1px solid var(--ms-border);
  border-left: 1px solid var(--ms-border);
}

@media (max-width: 575.98px) {
  .seat-create__summary-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
  .seat-fold__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
/* Moving a person between seats uses the same 3/4 + 1/4 detail shell as the student form. Only the notice
   spacing and the current-seat emphasis are specific to this decision. */
.seat-move .account-profile__security-notice {
  margin-bottom: 1.5rem;
}
.seat-move .seat-move__current-seat-name {
  font-weight: 600;
}
.seat-move .seat-move__options {
  font-size: 0.85rem;
}

/* The same muted micro-caps label used above fields on the student create/edit screen. */
.seat-move__legend {
  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;
}

/* --- Radio choice cards -------------------------------------------------------------------------
   One control for compact, described alternatives. CenterConfig/MenuLayout's «¿Dónde va?» field is
   the reference: the radio remains visible, and the whole labelled card is the hit target. */
.ms-radio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ms-radio-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ms-radio-card:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
}
.ms-radio-card:has(input:checked) {
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
}
.ms-radio-card .form-check-input {
  margin-top: 0.15rem;
}

.ms-radio-card__copy {
  min-width: 0;
}

.ms-radio-card__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

.ms-radio-card__note {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

[data-bs-theme=dark] .ms-radio-card,
html.dark .ms-radio-card {
  border-color: transparent;
  background: var(--ms-bg);
}

[data-bs-theme=dark] .ms-radio-card:has(input:checked),
html.dark .ms-radio-card:has(input:checked) {
  border-color: var(--ms-primary);
}

#icon-picker-pop .student-detail__clearable-field {
  position: relative;
  width: 100%;
  min-width: 0;
  --ms-field-end: 2.6rem;
}
#icon-picker-pop .student-detail__clearable-field:has(> input[type=number]) {
  --ms-field-end: 0.9rem;
}
#icon-picker-pop .student-detail__clearable-field:has(> input[type=number]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
#icon-picker-pop .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > input {
  padding-right: 4.5rem;
}
#icon-picker-pop .student-detail__clearable-field:has(> input[type=time][data-clear-field]) > .student-detail__clear-field-button {
  right: 2.4rem;
}
#icon-picker-pop .student-detail__clearable-field--date {
  display: block;
  width: 100%;
  max-width: none;
}
#icon-picker-pop .student-detail__clearable-field--date > input.form-control {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
#icon-picker-pop .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%);
}
#icon-picker-pop .student-detail__clearable-field--date:not(.student-detail__clearable-field--datepicker) .student-detail__clear-field-button {
  display: none;
}
#icon-picker-pop .student-detail__clearable-field--date.student-detail__clearable-field--datepicker > input.js-datepicker-input {
  padding-right: 2.75rem;
}
#icon-picker-pop .student-detail__clearable-field--textarea .student-detail__clear-field-button {
  top: 0.55rem;
  transform: none;
}
#icon-picker-pop .student-detail__clearable-field--textarea .student-detail__clear-field-button:active {
  transform: scale(0.9);
}
#icon-picker-pop .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;
}
#icon-picker-pop .student-detail__clear-field-button[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  #icon-picker-pop .student-detail__clear-field-button::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
#icon-picker-pop .student-detail__clear-field-button:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
#icon-picker-pop .student-detail__clear-field-button:active {
  transform: translateY(-50%) scale(0.9);
}
#icon-picker-pop .student-detail__clear-field-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
#icon-picker-pop .student-detail__clear-field-button .ms-button__icon {
  font-size: 1.05rem;
}
#icon-picker-pop .student-detail__masked-field > input {
  padding-right: 2.75rem;
}
#icon-picker-pop .student-detail__masked-field > .student-detail__clear-field-button {
  right: 2.35rem;
}
#icon-picker-pop .student-detail__masked-field > input:not([readonly]) {
  padding-right: 4.55rem;
}
#icon-picker-pop .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;
}
#icon-picker-pop .student-detail__masked-field-toggle[hidden] {
  display: none;
}
@media (max-width: 767.98px) {
  #icon-picker-pop .student-detail__masked-field-toggle::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
  }
}
#icon-picker-pop .student-detail__masked-field-toggle:hover {
  background: color-mix(in srgb, var(--ms-primary) 9%, transparent);
  color: var(--ms-primary);
}
#icon-picker-pop .student-detail__masked-field-toggle:active {
  transform: translateY(-50%) scale(0.9);
}
#icon-picker-pop .student-detail__masked-field-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 32%, transparent);
  outline-offset: 1px;
}
#icon-picker-pop .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.05rem;
}
#icon-picker-pop .student-detail__masked-field-toggle .ms-button__icon {
  font-size: 1.15rem;
}

.nav-editor__icon-field {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.nav-editor__icon-field:has(> .ms-select__clear:not([hidden])) {
  padding-right: 2.25rem;
}
.nav-editor__icon-field > .ms-select__clear {
  right: 0;
}
.nav-editor__icon-field > .ms-select__toggle {
  width: auto;
}

.nav-editor .icon-pick--static {
  width: auto;
  cursor: default;
}
.nav-editor .icon-pick--static::after {
  display: none;
}

/* --- Chip picker ------------------------------------------------------------------------------
   Choosing SEVERAL options of a filter (October's <select multiple>) without a grid of checkboxes: each
   option is a chip switched on and off. A real checkbox sits underneath (visually hidden, still focusable),
   so the form posts the same and the keyboard and screen readers get a checkbox. A group with nothing on
   says «Todos» next to its label — a filter with nothing chosen does not filter. Reference: Alumnos ›
   Exportar › Personalizar (26-10).
   Markup:
     <div class="ms-chip-picker" role="group" aria-labelledby="x">
       <div class="ms-chip-picker__head"><span class="form-label" id="x">…</span><span class="ms-chip-picker__all">Todos</span></div>
       <div class="ms-chip-picker__chips">
         <label class="ms-chip-picker__chip" for="id"><input class="ms-chip-picker__input" type="checkbox" id="id" name="X" value="v">
           <span class="ms-chip-picker__text"><span class="material-symbols-outlined ms-chip-picker__check">check</span>…</span></label>
       </div>
     </div> */
.ms-chip-picker__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* One filter per card (Exportar › Personalizar): the heading is the card's header, the options its body. */
.ms-chip-picker--card > .ms-chip-picker__head {
  align-items: center;
  margin-bottom: 0;
}

.ms-chip-picker__all {
  display: none;
  color: var(--ms-text-muted);
  font-size: 0.8125rem;
}

.ms-chip-picker:has(.ms-chip-picker__input):not(:has(.ms-chip-picker__input:not(:checked))) .ms-chip-picker__all {
  display: inline;
}

/* «Seleccionar todo / Quitar todo» of the group: a quiet link at the end of its heading. */
.ms-chip-picker__toggle-all {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ms-primary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.ms-chip-picker__toggle-all:hover {
  text-decoration: underline;
}
.ms-chip-picker__toggle-all:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ms-primary) 28%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ms-chip-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ms-chip-picker__chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.ms-chip-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ms-chip-picker__text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  background: var(--ms-bg);
  color: var(--ms-text);
  font-size: 0.875rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* The tick takes no room while the chip is off, and comes in with it. */
.ms-chip-picker__check {
  width: 0;
  overflow: hidden;
  font-size: 1rem;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.15s ease;
}

.ms-chip-picker__chip:hover .ms-chip-picker__text {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-primary) 5%, var(--ms-bg));
}

.ms-chip-picker__input:checked + .ms-chip-picker__text {
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 12%, var(--ms-bg));
  color: var(--ms-primary);
  font-weight: 600;
}
.ms-chip-picker__input:checked + .ms-chip-picker__text .ms-chip-picker__check {
  width: 1rem;
  opacity: 1;
}

.ms-chip-picker__input:focus-visible + .ms-chip-picker__text {
  outline: 3px solid color-mix(in srgb, var(--ms-primary) 28%, transparent);
  outline-offset: 2px;
}

/* Options with a long name beside a short code (the TTS): a list of rows in columns, code in bold and the whole
   name beside it, instead of chips that wrap into a jumble of lengths. The same input and the same on/off look. */
.ms-chip-picker__chips--list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.4rem;
}
.ms-chip-picker__chips--list .ms-chip-picker__chip {
  display: flex;
}
.ms-chip-picker__chips--list .ms-chip-picker__text {
  flex: 1 1 auto;
  align-items: baseline;
  gap: 0.5rem;
  border-radius: var(--ms-radius-sm);
  padding: 0.4rem 0.75rem;
}
.ms-chip-picker__chips--list {
  /* The tick keeps its room on and off: the codes stay in one column. */
}
.ms-chip-picker__chips--list .ms-chip-picker__check {
  align-self: center;
  width: 1rem;
}
.ms-chip-picker__chips--list .ms-chip-picker__code {
  flex: 0 0 3.5rem;
  font-weight: 600;
}
.ms-chip-picker__chips--list .ms-chip-picker__note {
  min-width: 0;
  color: var(--ms-text-muted);
  font-weight: 400;
}
.ms-chip-picker__chips--list .ms-chip-picker__input:checked + .ms-chip-picker__text .ms-chip-picker__note {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .ms-chip-picker__text,
  .ms-chip-picker__check {
    transition: none;
  }
}
/* --- Choice cards ------------------------------------------------------------------------------
   The other half of .ms-radio-card above: an alternative that ACTS instead of being picked — a link
   or a button that takes you somewhere as soon as it is chosen, so there is no radio to show and no
   form to submit. «Crear plantilla» is the reference: two ways to start a document, each with its own
   icon, name and one line saying what it gives you. Bootstrap's .list-group-item-action is what these
   used to be, which is the one thing in a panel dialog that still looked like Bootstrap.
   Markup:
     <div class="ms-choice-list">
       <a class="ms-choice-card" href="…">
         <span class="ms-choice-card__icon material-symbols-outlined">description</span>
         <span class="ms-choice-card__copy">
           <span class="ms-choice-card__title">…</span>
           <span class="ms-choice-card__note">…</span>
         </span>
         <span class="ms-choice-card__go material-symbols-outlined">chevron_right</span>
       </a>
     </div> */
.ms-choice-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.ms-choice-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-bg);
  color: var(--ms-text);
  /* A <button> card (one that downloads instead of navigating) types like the links around it. */
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ms-choice-card:hover, .ms-choice-card:focus-visible {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-primary) 5%, var(--ms-bg));
  color: var(--ms-text);
  text-decoration: none;
}
.ms-choice-card {
  /* A link has no border of its own to turn, so it keeps the app's ring like every other control. */
}
.ms-choice-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ms-primary) 28%, transparent);
  outline-offset: 2px;
}
.ms-choice-card {
  /* The arrow only leans in on the card being pointed at: a row of static arrows is noise. */
}
.ms-choice-card:hover .ms-choice-card__go {
  transform: translateX(2px);
  color: var(--ms-primary);
}
.ms-choice-card {
  /* Pressed: the same short press the panel's buttons give, scaled for a box this size — a card
     that dents by 10% reads as a glitch, one that barely moves reads as a click. */
}
.ms-choice-card:active {
  transform: scale(0.985);
}
.ms-choice-card {
  /* …and the arrow leans further in while the click is held: on a list where the card itself does
     not move (.ms-choice-list--still), that arrow is the whole answer to the press. */
}
.ms-choice-card:active .ms-choice-card__go {
  transform: translateX(4px);
}
.ms-choice-card {
  /* Chosen, and now waiting for the page it opens. The arrow gives up its slot to a spinner exactly
     where it was — the wizard buttons' own treatment (.htmx-request further down this file), reused
     rather than reinvented — and the card stops taking clicks so the same choice cannot be made
     twice while the browser is already navigating. */
}
.ms-choice-card.is-loading {
  pointer-events: none;
  border-color: color-mix(in srgb, var(--ms-primary) 45%, var(--ms-border));
  background: color-mix(in srgb, var(--ms-primary) 6%, var(--ms-bg));
}
.ms-choice-card.is-loading .ms-choice-card__go {
  display: none;
}
.ms-choice-card.is-loading::after {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid color-mix(in srgb, var(--ms-primary) 30%, transparent);
  border-right-color: var(--ms-primary);
  border-radius: 50%;
  animation: ms-wizard-spin 0.6s linear infinite;
}

.ms-choice-card--centered {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
}
.ms-choice-card--centered > .ms-choice-card__copy {
  text-align: center;
}
.ms-choice-card--centered > .ms-choice-card__go {
  justify-self: end;
}
.ms-choice-card--centered .ms-choice-card__title {
  overflow-wrap: anywhere;
}

/* A list of things you GO TO rather than a choice you make: the card stays put and the arrow does the
   moving. A row of documents denting one after another as they are opened reads as the page wobbling. */
.ms-choice-list--still > .ms-choice-card:active {
  transform: none;
}

/* While one card is loading the others step back: the decision is already taken. */
.ms-choice-list.is-busy .ms-choice-card:not(.is-loading) {
  pointer-events: none;
  opacity: 0.55;
}

/* The icon pill of the accessibility panel's own section headers, at the same size. */
.ms-choice-card__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--ms-radius);
  background: color-mix(in srgb, var(--ms-orange) 12%, var(--ms-surface));
  color: var(--ms-orange);
  font-size: 18px;
}

/* The copy takes the room between the icon and the arrow, so the arrow sits at the END of the card
   whatever the title measures — with a short name and no note it used to trail right behind the text. */
.ms-choice-card__copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.15rem;
}

.ms-choice-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.ms-choice-card__note {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.ms-choice-card__go {
  flex: 0 0 auto;
  align-self: center;
  color: var(--ms-text-muted);
  font-size: 20px;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Night: the card separates from the dialog by TONE, so the hairline goes away. */
[data-bs-theme=dark] .ms-choice-card,
html.dark .ms-choice-card {
  border-color: transparent;
}

[data-bs-theme=dark] .ms-choice-card:hover,
[data-bs-theme=dark] .ms-choice-card:focus-visible,
html.dark .ms-choice-card:hover,
html.dark .ms-choice-card:focus-visible {
  border-color: color-mix(in srgb, var(--ms-primary) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ms-choice-card,
  .ms-choice-card__go {
    transition: none;
  }
  .ms-choice-card:hover .ms-choice-card__go {
    transform: none;
  }
  .ms-choice-card:active {
    transform: none;
  }
  /* The spinner still says "working", it just does not spin. */
  .ms-choice-card.is-loading::after {
    animation: none;
  }
}
@media (max-width: 720px) {
  .ms-radio-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .ms-radio-card-grid--three {
    grid-template-columns: 1fr;
  }
  .seat-create__validity-options {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-radio-card {
    transition: none;
  }
}
/* Same paired radio-card language as the placement choices in CenterConfig/MenuLayout. */
.seat-move__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.seat-move__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.seat-move__choice:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
}
.seat-move__choice:has(input:checked) {
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
}
.seat-move__choice .form-check-input {
  margin-top: 0.15rem;
}

.seat-move__choice-copy {
  min-width: 0;
}

.seat-move__choice-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

.seat-move__choice-kind {
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.seat-move__choice-note {
  display: block;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

[data-bs-theme=dark] .seat-move__choice,
html.dark .seat-move__choice {
  border-color: transparent;
  background: var(--ms-bg);
}

[data-bs-theme=dark] .seat-move__choice:has(input:checked),
html.dark .seat-move__choice:has(input:checked) {
  border-color: var(--ms-primary);
}

@media (max-width: 720px) {
  .seat-move__choices {
    grid-template-columns: 1fr;
  }
}
/* Seat permissions are edited in both the creation walk and the detail screen. This shell carries the
   creation step's typography and checkbox geometry with the editor, rather than making its appearance
   depend on the page that happens to contain it. */
.seat-permissions {
  font-size: 0.8rem;
  /* The shared tab thumb copies the active option's box. Removing the inline baseline space keeps that
     measured box — and therefore the active background — vertically centred in the segmented track. */
}
.seat-permissions > .nav-tabs {
  align-items: center;
}
.seat-permissions > .nav-tabs .nav-item {
  display: flex;
  align-items: center;
}
.seat-permissions .form-check-input {
  border-color: var(--ms-border);
}
.seat-permissions .form-check:not(.form-switch) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
}
.seat-permissions .form-check:not(.form-switch) > .form-check-input[type=checkbox] {
  width: 1.6em;
  height: 1.6em;
  flex: 0 0 auto;
  float: none;
  margin: 0;
}
.seat-permissions .form-check:not(.form-switch) > .form-check-label {
  margin: 0;
  color: var(--ms-text);
  line-height: 1.35;
}
.seat-permissions .form-text,
.seat-permissions .text-secondary {
  color: var(--ms-text-muted) !important;
  font-size: 0.72rem;
}

/* The two doors of the access step are read SIDE BY SIDE, so their shortcut must sit on one line. Their
   switch descriptions wrap to a different number of lines, which staggers everything under them: the card
   is a column and the switch box absorbs the difference, leaving both checkboxes — and both boxes — level. */
.seat-access__card {
  display: flex;
  flex-direction: column;
}

.seat-access__card > .ms-toggle-card {
  flex: 1 1 auto;
}

.seat-access__all {
  margin-top: auto;
}

/* Keep the shared module dropdown on the right, fitting narrow screens without horizontal overflow. */
.seat-perm-sections__picker {
  width: min(100%, 22rem);
}

/* The parts of a screen that are granted apart — the tabs of a person's record. A well inside the card,
   so «Cuenta y estado» reads as the thing being granted and «Ver / Editar» as what is granted OF it. */
.seat-perm-subsection {
  padding: 0.5rem 0.6rem;
  border-radius: var(--ms-radius-sm, 6px);
  background: color-mix(in srgb, var(--ms-text) 4%, transparent);
}

.seat-perm-subsection__title {
  margin-bottom: 0.35rem;
  color: var(--ms-text);
  font-size: 0.74rem;
  font-weight: 600;
}

/* The module's own door — «Ver módulo» — above the cards it opens. The toggle card of the access step,
   which is the other place a whole door is handed over, so the two read as the same kind of decision. */
.seat-perm-gate > .ms-toggle-card {
  width: 100%;
}

/* A module whose door is CLOSED: everything under it is unreachable, so it is shown as unreachable rather
   than removed — what is being refused has to stay legible, and it comes back the moment the door opens.
   The boxes are disabled by seat-permissions.js; this is the half the reader sees. */
.seat-perm-body {
  transition: opacity 0.2s ease;
}
.seat-perm-body.is-locked {
  opacity: 0.45;
  /* The cards keep their fade-in; only the tick targets go inert, so the reader can still SCROLL
     the module and read what they would be granting if they opened it. */
}
.seat-perm-body.is-locked .form-check-input,
.seat-perm-body.is-locked .form-check-label {
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .seat-perm-body {
    transition: none;
  }
}
/* What an administrator has to be told about a module before reading its checkboxes. The warning palette,
   like every other notice in the walk — this is not an error and not a step explanation. */
.seat-perm-notice {
  border: 1px solid color-mix(in srgb, var(--ms-warning, #b8860b) 35%, transparent);
  background: color-mix(in srgb, var(--ms-warning, #b8860b) 10%, transparent);
  color: var(--ms-text);
  font-size: 0.82rem;
}
.seat-perm-notice > .material-symbols-outlined {
  margin-right: 0.35rem;
  font-size: 1rem;
  color: var(--ms-warning, #b8860b);
}

/* The same box, informative: a module the tenant renamed. Nothing is wrong with it, so it takes the info
   palette rather than the warning one — the reader must not brace for a problem that is not there. */
.seat-perm-notice--info {
  border-color: color-mix(in srgb, var(--ms-info, #1d4ed8) 35%, transparent);
  background: color-mix(in srgb, var(--ms-info, #1d4ed8) 8%, transparent);
}
.seat-perm-notice--info > .material-symbols-outlined {
  color: var(--ms-info, #1d4ed8);
}

/* A checkbox that grants an ADMINISTRATOR-ONLY authority (SeatPermissionTabs.AdministratorOnlyCodes): the
   arsenal's two altas, which nobody but an administrator is even shown. The warning palette of the notice
   that explains them, so the row and its explanation read as one thing, and the tick itself carries the
   colour — the reader is meant to see WHICH box it is before reading the label. */
.seat-perm-check--admin .form-check-label {
  color: color-mix(in srgb, var(--ms-warning) 45%, #000);
  font-weight: 500;
}
.seat-perm-check--admin .form-check-input {
  border-color: color-mix(in srgb, var(--ms-warning) 55%, transparent);
}
.seat-perm-check--admin .form-check-input:checked {
  border-color: var(--ms-warning);
  background-color: var(--ms-warning);
}
.seat-perm-check--admin .form-check-input:focus {
  border-color: var(--ms-warning);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ms-warning) 25%, transparent);
}

.seat-perm-check__warning {
  margin-left: 0.15rem;
  color: var(--ms-warning);
  font-size: 0.9rem;
  vertical-align: middle;
}

/* The «todo el panel / toda la app» shortcut of the access step. It is the one decision of its card, so it
   carries the weight the card title would otherwise take, and the whole label is a click target. */
.seat-access__all-label {
  cursor: pointer;
  font-weight: 600;
}

/* Panel actions and app modules share one vertical rhythm. The panel keeps two fixed action columns; the
   app keeps short sections in one column and lets its eighteen-item main menu use the available width. */
.seat-perm-grid,
.seat-appmod-grid {
  display: grid;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
}

.seat-perm-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seat-appmod-grid {
  grid-template-columns: 1fr;
}

.seat-appmod-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .seat-appmod-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .seat-appmod-grid--wide {
    grid-template-columns: 1fr;
  }
}
/* Every step explanation follows the warning palette of the profile security notice, so the walk keeps
   the same hierarchy while its question changes underneath.
   .ms-step-help is the SHARED name: the seat wizard wrote this treatment first and the form-template
   builder needed the same thing, so the rules answer to both — the two wizards' own classes
   (.seat-create__step-help, .acta-create__step-help) stay as aliases rather than making those screens
   change to gain nothing. Do not drop one when editing this list: the acta wizard's help lost its
   whole palette that way. Markup:

     <div class="alert ms-step-help">
       <div class="ms-step-help__title"><span class="material-symbols-outlined">help</span> …</div>
       <div>…</div>
     </div> */
.ms-step-help,
.seat-create__step-help,
.acta-create__step-help {
  border: 1px solid color-mix(in srgb, var(--ms-warning) 30%, transparent);
  border-radius: var(--ms-radius);
  background: color-mix(in srgb, var(--ms-warning) 12%, var(--ms-neutralWhite));
  color: color-mix(in srgb, var(--ms-warning) 42%, #000);
}
.ms-step-help .material-symbols-outlined,
.seat-create__step-help .material-symbols-outlined,
.acta-create__step-help .material-symbols-outlined {
  color: color-mix(in srgb, var(--ms-warning) 67%, #000);
}
.ms-step-help a,
.seat-create__step-help a,
.acta-create__step-help a {
  color: inherit;
  text-decoration: underline;
}
.ms-step-help .ms-button--primary,
.ms-step-help .ms-button--primary:hover,
.ms-step-help .ms-button--primary:focus-visible,
.seat-create__step-help .ms-button--primary,
.seat-create__step-help .ms-button--primary:hover,
.seat-create__step-help .ms-button--primary:focus-visible,
.acta-create__step-help .ms-button--primary,
.acta-create__step-help .ms-button--primary:hover,
.acta-create__step-help .ms-button--primary:focus-visible {
  color: var(--ms-onPrimary);
  text-decoration: none;
}
.ms-step-help .ms-button--primary .material-symbols-outlined,
.ms-step-help .ms-button--primary:hover .material-symbols-outlined,
.ms-step-help .ms-button--primary:focus-visible .material-symbols-outlined,
.seat-create__step-help .ms-button--primary .material-symbols-outlined,
.seat-create__step-help .ms-button--primary:hover .material-symbols-outlined,
.seat-create__step-help .ms-button--primary:focus-visible .material-symbols-outlined,
.acta-create__step-help .ms-button--primary .material-symbols-outlined,
.acta-create__step-help .ms-button--primary:hover .material-symbols-outlined,
.acta-create__step-help .ms-button--primary:focus-visible .material-symbols-outlined {
  color: inherit;
}

/* A notice that ARRIVES (a refused save) rather than one that is simply there when the step opens:
   it grows in with the panel's own fold easing, so the eye is taken to what appeared instead of the
   page seeming to have jumped. Opt-in, because the wizard's help is part of the step from the start
   and has nothing to announce. */
.ms-step-help--enter {
  animation: ms-fold-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .ms-step-help--enter {
    animation: none;
  }
}
.ms-step-help__title {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.ms-step-help__title > .material-symbols-outlined {
  vertical-align: middle;
}

.wx-page {
  padding-bottom: 200px;
}

.wx-map-legend-details {
  font-family: var(--ms-font-sans);
  font-size: 0.85rem;
}

.wx-map-legend-gradient {
  min-width: 12rem;
  max-width: 22rem;
}

.wx-page .wx-airport-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.wx-page .wx-airport-picker {
  --pl-toolbar-control: 2.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 767.98px) {
  .wx-page .wx-airport-picker {
    min-width: 0;
    width: 100%;
  }
  .wx-page .wx-airport-picker .dt-cardsearch {
    flex: 1 1 auto;
    min-width: 0;
  }
  .wx-page .wx-airport-picker .dt-cardsearch input,
  .wx-page .wx-airport-picker .dt-cardsearch input:focus {
    width: 100%;
  }
}
.wx-page > .ms-step-help {
  font-size: 0.875rem;
}
.wx-page > .ms-step-help > .fw-semibold {
  font-size: 0.925rem;
}

[data-bs-theme=dark] .ms-step-help,
[data-bs-theme=dark] .seat-create__step-help,
[data-bs-theme=dark] .acta-create__step-help,
html.dark .ms-step-help,
html.dark .seat-create__step-help,
html.dark .acta-create__step-help {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.38);
  color: #fde68a;
}

[data-bs-theme=dark] .ms-step-help .material-symbols-outlined,
[data-bs-theme=dark] .seat-create__step-help .material-symbols-outlined,
[data-bs-theme=dark] .acta-create__step-help .material-symbols-outlined,
html.dark .ms-step-help .material-symbols-outlined,
html.dark .seat-create__step-help .material-symbols-outlined,
html.dark .acta-create__step-help .material-symbols-outlined {
  color: #fbbf24;
}

/* Delivered notices share the wizard's geometry, with an opt-in success palette. */
.ms-step-help--success {
  border-color: color-mix(in srgb, var(--ms-success) 30%, transparent);
  background: color-mix(in srgb, var(--ms-success) 12%, var(--ms-neutralWhite));
  color: color-mix(in srgb, var(--ms-success) 42%, #000);
}
.ms-step-help--success .material-symbols-outlined {
  color: color-mix(in srgb, var(--ms-success) 67%, #000);
}

[data-bs-theme=dark] .ms-step-help--success,
html.dark .ms-step-help--success {
  border-color: color-mix(in srgb, var(--ms-success) 45%, transparent);
  background: color-mix(in srgb, var(--ms-success) 14%, transparent);
  color: color-mix(in srgb, var(--ms-success) 30%, var(--ms-neutralWhite));
}

[data-bs-theme=dark] .ms-step-help--success .material-symbols-outlined,
html.dark .ms-step-help--success .material-symbols-outlined {
  color: color-mix(in srgb, var(--ms-success) 80%, var(--ms-neutralWhite));
}

/* Preview facts use the same type scale as the table body. The label needs an explicit override because
   Student detail intentionally renders every generic .text-secondary helper at the smaller help-text size. */
.student-detail.acta-create .acta-create__preview-meta {
  font-size: 0.8rem;
}
.student-detail.acta-create .acta-create__preview-meta .acta-create__preview-label {
  font-size: inherit;
}

.student-detail.acta-create .acta-create__grade-title {
  font-size: 1rem;
}

/* Keep grade fields compact; the responsive wrapper owns horizontal scrolling. */
.student-detail.acta-create .acta-create__grades-table {
  width: max-content;
  min-width: 100%;
}
.student-detail.acta-create .acta-create__grades-table input[data-acta-score],
.student-detail.acta-create .acta-create__grades-table .student-detail__clearable-field:has(> input[data-acta-score]) {
  width: 8rem;
  min-width: 8rem;
}
.student-detail.acta-create .acta-create__grades-table .acta-create__observations-column input.ms-input-data[type=text],
.student-detail.acta-create .acta-create__grades-table .acta-create__observations-column .student-detail__clearable-field {
  min-width: 18rem;
}

/* Clearable inputs contain an absolutely positioned action at z-index 2. In the import wizard every
   header cell is sticky because its tables live at different nesting levels. */
.student-detail.acta-create .acta-create__grades-head > tr > th {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* The acta editor scrolls one complete table. Promote its whole header to one isolated, opaque layer instead
   of making seven independent sticky cells: controls in later-painted tbody rows can no longer cross over
   the column labels while scrolling. */
.detail-page.acta-edit .acta-edit__grades-scroll {
  position: relative;
  isolation: isolate;
}

.detail-page.acta-edit .acta-create__grades-head {
  position: sticky;
  top: 0;
  z-index: 3;
}

.detail-page.acta-edit #notas-table > tbody {
  position: relative;
  z-index: 0;
}

/* Expanding a subject only reveals its students; it is not a selected/active state. Keep the header on
   the same neutral surface before and after expansion, while retaining an explicit keyboard focus ring. */
.student-detail.acta-create .acta-create__student-accordion .accordion-button {
  background-color: var(--ms-surface);
  box-shadow: none;
  color: var(--ms-text);
}
.student-detail.acta-create .acta-create__student-accordion .accordion-button:not(.collapsed) {
  background-color: var(--ms-surface);
  box-shadow: none;
  color: var(--ms-text);
}
.student-detail.acta-create .acta-create__student-accordion .accordion-button:focus:not(:focus-visible) {
  box-shadow: none;
}
.student-detail.acta-create .acta-create__student-accordion .accordion-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ms-primary) 45%, transparent);
  outline-offset: -2px;
}
.student-detail.acta-create .acta-create__student-accordion .accordion-button::after {
  background-image: none;
  color: var(--ms-text-muted);
  content: "expand_more";
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 1.25rem;
  line-height: 1.25rem;
  transform: rotate(180deg);
}
.student-detail.acta-create .acta-create__student-accordion .accordion-button.collapsed::after {
  transform: rotate(0deg);
}

/* Flatpickr makes its visible field readonly only to prevent manual typing. In the acta wizard that
   field is still editable through the calendar, so its value must keep the same well and text tone
   as Título instead of inheriting the muted treatment for a genuinely read-only input. */
.student-detail.acta-create input.form-control.ms-input-data.js-datepicker-input[readonly] {
  background-color: var(--ms-bg);
  color: var(--ms-text);
}

/* Match the invoice detail's field labels within the export dialog. */
#attendance-report-export-modal .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;
}

/* The native select is clipped behind the shared menu; it must not widen the scrollable dialog. */
#attendance-report-export-modal select.form-select.ms-input-data.ms-select__native {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}

/* The edit views and report export use the same calendar. Its visible value is readonly only because
   Flatpickr owns input: selected dates are content, while ::placeholder keeps the empty hint muted. */
#report-export-form input.form-control.ms-input-data.js-datepicker-input[readonly],
#notice-form input.form-control.ms-input-data.js-datepicker-input[readonly],
#dedalo-student-form input.form-control.ms-input-data.js-datepicker-input[readonly],
#dedalo-teacher-form input.form-control.ms-input-data.js-datepicker-input[readonly],
#piltra-create-form input.form-control.ms-input-data.js-datepicker-input[readonly],
.detail-page:is(.acta-edit, .detail-page--signup-request) input.form-control.ms-input-data.js-datepicker-input[readonly] {
  background-color: var(--ms-bg);
  color: var(--ms-text);
}

/* Match the student detail's action card exactly on the acta editor. The generic detail shell leaves
   more inset around its actions, which makes otherwise identical full-width buttons look narrower. */
.detail-page.acta-edit .detail-page__actions-card > .card-header {
  gap: 0.5rem;
}

.detail-page.acta-edit .detail-page__actions-card > .card-body {
  padding: 1rem;
}

/* With «Todos sin excepción» active, the collapsed picker contributes no height. Its switch therefore has
   no trailing gap; the gap returns only when the picker opens underneath it. */
.seat-create__all-toggle {
  margin-bottom: 0;
  transition: margin-bottom 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.seat-create__all-toggle:has(+ [data-seat-types].is-open) {
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .seat-create__all-toggle {
    transition: none;
  }
}
/* Seat-create validation is intentionally local. These guided editors mirror the Students single and
   deliberately opt into its field contract without changing unrelated wizard or detail forms. */
.seat-create .acta-create__search,
.acta-create .acta-create__search,
.watchduty-create .acta-create__search,
.course-create .acta-create__search,
.curriculum-create .acta-create__search,
.nac-page .acta-create__search,
.dailyorder-wizard .acta-create__search {
  max-width: 100%;
}
.seat-create .seat-create__type-search,
.acta-create .seat-create__type-search,
.watchduty-create .seat-create__type-search,
.course-create .seat-create__type-search,
.curriculum-create .seat-create__type-search,
.nac-page .seat-create__type-search,
.dailyorder-wizard .seat-create__type-search {
  max-width: 100%;
}
.seat-create .seat-create__select-all-label,
.seat-create .seat-create__type-option,
.acta-create .seat-create__select-all-label,
.acta-create .seat-create__type-option,
.watchduty-create .seat-create__select-all-label,
.watchduty-create .seat-create__type-option,
.course-create .seat-create__select-all-label,
.course-create .seat-create__type-option,
.curriculum-create .seat-create__select-all-label,
.curriculum-create .seat-create__type-option,
.nac-page .seat-create__select-all-label,
.nac-page .seat-create__type-option,
.dailyorder-wizard .seat-create__select-all-label,
.dailyorder-wizard .seat-create__type-option {
  cursor: pointer;
}
.seat-create .seat-create__type-option,
.acta-create .seat-create__type-option,
.watchduty-create .seat-create__type-option,
.course-create .seat-create__type-option,
.curriculum-create .seat-create__type-option,
.nac-page .seat-create__type-option,
.dailyorder-wizard .seat-create__type-option {
  width: 100%;
  padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x) !important;
}
.seat-create .seat-create__type-empty-state:not(.d-none),
.acta-create .seat-create__type-empty-state:not(.d-none),
.watchduty-create .seat-create__type-empty-state:not(.d-none),
.course-create .seat-create__type-empty-state:not(.d-none),
.curriculum-create .seat-create__type-empty-state:not(.d-none),
.nac-page .seat-create__type-empty-state:not(.d-none),
.dailyorder-wizard .seat-create__type-empty-state:not(.d-none) {
  border-top-width: 1px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.seat-create .seat-create__type-field,
.acta-create .seat-create__type-field,
.watchduty-create .seat-create__type-field,
.course-create .seat-create__type-field,
.curriculum-create .seat-create__type-field,
.nac-page .seat-create__type-field,
.dailyorder-wizard .seat-create__type-field {
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-sm);
}
.seat-create .seat-create__type-field.is-invalid, .seat-create .seat-create__type-field.input-validation-error,
.acta-create .seat-create__type-field.is-invalid,
.acta-create .seat-create__type-field.input-validation-error,
.watchduty-create .seat-create__type-field.is-invalid,
.watchduty-create .seat-create__type-field.input-validation-error,
.course-create .seat-create__type-field.is-invalid,
.course-create .seat-create__type-field.input-validation-error,
.curriculum-create .seat-create__type-field.is-invalid,
.curriculum-create .seat-create__type-field.input-validation-error,
.nac-page .seat-create__type-field.is-invalid,
.nac-page .seat-create__type-field.input-validation-error,
.dailyorder-wizard .seat-create__type-field.is-invalid,
.dailyorder-wizard .seat-create__type-field.input-validation-error {
  border-color: var(--ms-error);
  box-shadow: none;
}
.seat-create .acta-tree__help,
.acta-create .acta-tree__help,
.watchduty-create .acta-tree__help,
.course-create .acta-tree__help,
.curriculum-create .acta-tree__help,
.nac-page .acta-tree__help,
.dailyorder-wizard .acta-tree__help {
  display: flex;
  align-items: center;
  cursor: help;
}
.seat-create .acta-tree > .list-group,
.acta-create .acta-tree > .list-group,
.watchduty-create .acta-tree > .list-group,
.course-create .acta-tree > .list-group,
.curriculum-create .acta-tree > .list-group,
.nac-page .acta-tree > .list-group,
.dailyorder-wizard .acta-tree > .list-group {
  --bs-list-group-bg: var(--ms-surface);
  overflow: hidden;
  border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
  border-bottom-width: 0;
}
.seat-create .acta-tree > .list-group > .list-group-item,
.acta-create .acta-tree > .list-group > .list-group-item,
.watchduty-create .acta-tree > .list-group > .list-group-item,
.course-create .acta-tree > .list-group > .list-group-item,
.curriculum-create .acta-tree > .list-group > .list-group-item,
.nac-page .acta-tree > .list-group > .list-group-item,
.dailyorder-wizard .acta-tree > .list-group > .list-group-item {
  border-width: 0 0 var(--bs-list-group-border-width);
  border-radius: 0;
}
.seat-create .acta-tree__filters,
.acta-create .acta-tree__filters,
.watchduty-create .acta-tree__filters,
.course-create .acta-tree__filters,
.curriculum-create .acta-tree__filters,
.nac-page .acta-tree__filters,
.dailyorder-wizard .acta-tree__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.seat-create .acta-tree__groups-toggle,
.acta-create .acta-tree__groups-toggle,
.watchduty-create .acta-tree__groups-toggle,
.course-create .acta-tree__groups-toggle,
.curriculum-create .acta-tree__groups-toggle,
.nac-page .acta-tree__groups-toggle,
.dailyorder-wizard .acta-tree__groups-toggle {
  width: 100%;
}
.seat-create .acta-tree__groups-toggle + .dropdown-menu,
.acta-create .acta-tree__groups-toggle + .dropdown-menu,
.watchduty-create .acta-tree__groups-toggle + .dropdown-menu,
.course-create .acta-tree__groups-toggle + .dropdown-menu,
.curriculum-create .acta-tree__groups-toggle + .dropdown-menu,
.nac-page .acta-tree__groups-toggle + .dropdown-menu,
.dailyorder-wizard .acta-tree__groups-toggle + .dropdown-menu {
  min-width: 100%;
  width: max-content;
  max-width: min(36rem, 90vw);
}
.seat-create .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.acta-create .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.watchduty-create .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.course-create .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.curriculum-create .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.nac-page .acta-tree__groups-toggle + .dropdown-menu .dropdown-item,
.dailyorder-wizard .acta-tree__groups-toggle + .dropdown-menu .dropdown-item {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.seat-create .acta-tree__course-field,
.acta-create .acta-tree__course-field,
.watchduty-create .acta-tree__course-field,
.course-create .acta-tree__course-field,
.curriculum-create .acta-tree__course-field,
.nac-page .acta-tree__course-field,
.dailyorder-wizard .acta-tree__course-field {
  min-width: 16rem;
}
.seat-create .acta-tree__course-field .form-label,
.acta-create .acta-tree__course-field .form-label,
.watchduty-create .acta-tree__course-field .form-label,
.course-create .acta-tree__course-field .form-label,
.curriculum-create .acta-tree__course-field .form-label,
.nac-page .acta-tree__course-field .form-label,
.dailyorder-wizard .acta-tree__course-field .form-label {
  margin-bottom: 0.25rem;
}
.seat-create .acta-tree__flat,
.acta-create .acta-tree__flat,
.watchduty-create .acta-tree__flat,
.course-create .acta-tree__flat,
.curriculum-create .acta-tree__flat,
.nac-page .acta-tree__flat,
.dailyorder-wizard .acta-tree__flat {
  padding: 0.375rem 1rem 0.375rem 3rem;
}
.seat-create .acta-tree__typed,
.acta-create .acta-tree__typed,
.watchduty-create .acta-tree__typed,
.course-create .acta-tree__typed,
.curriculum-create .acta-tree__typed,
.nac-page .acta-tree__typed,
.dailyorder-wizard .acta-tree__typed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem) minmax(10rem, 14rem);
  column-gap: 1rem;
  align-items: center;
}
.seat-create .acta-tree__typed > ul,
.acta-create .acta-tree__typed > ul,
.watchduty-create .acta-tree__typed > ul,
.course-create .acta-tree__typed > ul,
.curriculum-create .acta-tree__typed > ul,
.nac-page .acta-tree__typed > ul,
.dailyorder-wizard .acta-tree__typed > ul {
  grid-column: 1/-1;
}
.seat-create .acta-tree__typed select.ms-input-data, .seat-create .acta-tree__typed select.ms-input-data + .ms-select,
.acta-create .acta-tree__typed select.ms-input-data,
.acta-create .acta-tree__typed select.ms-input-data + .ms-select,
.watchduty-create .acta-tree__typed select.ms-input-data,
.watchduty-create .acta-tree__typed select.ms-input-data + .ms-select,
.course-create .acta-tree__typed select.ms-input-data,
.course-create .acta-tree__typed select.ms-input-data + .ms-select,
.curriculum-create .acta-tree__typed select.ms-input-data,
.curriculum-create .acta-tree__typed select.ms-input-data + .ms-select,
.nac-page .acta-tree__typed select.ms-input-data,
.nac-page .acta-tree__typed select.ms-input-data + .ms-select,
.dailyorder-wizard .acta-tree__typed select.ms-input-data,
.dailyorder-wizard .acta-tree__typed select.ms-input-data + .ms-select {
  width: 100%;
}
.seat-create .acta-tree__typed:not(.acta-tree__typed-head),
.acta-create .acta-tree__typed:not(.acta-tree__typed-head),
.watchduty-create .acta-tree__typed:not(.acta-tree__typed-head),
.course-create .acta-tree__typed:not(.acta-tree__typed-head),
.curriculum-create .acta-tree__typed:not(.acta-tree__typed-head),
.nac-page .acta-tree__typed:not(.acta-tree__typed-head),
.dailyorder-wizard .acta-tree__typed:not(.acta-tree__typed-head) {
  padding-right: 1rem;
}
.seat-create .acta-tree__subjects,
.acta-create .acta-tree__subjects,
.watchduty-create .acta-tree__subjects,
.course-create .acta-tree__subjects,
.curriculum-create .acta-tree__subjects,
.nac-page .acta-tree__subjects,
.dailyorder-wizard .acta-tree__subjects {
  margin: 0 0 0.5rem 4.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--ms-border);
}
.seat-create .acta-tree--name-only .acta-tree__typed,
.acta-create .acta-tree--name-only .acta-tree__typed,
.watchduty-create .acta-tree--name-only .acta-tree__typed,
.course-create .acta-tree--name-only .acta-tree__typed,
.curriculum-create .acta-tree--name-only .acta-tree__typed,
.nac-page .acta-tree--name-only .acta-tree__typed,
.dailyorder-wizard .acta-tree--name-only .acta-tree__typed {
  grid-template-columns: minmax(0, 1fr);
}
.seat-create .acta-tree--no-speciality .acta-tree__typed,
.acta-create .acta-tree--no-speciality .acta-tree__typed,
.watchduty-create .acta-tree--no-speciality .acta-tree__typed,
.course-create .acta-tree--no-speciality .acta-tree__typed,
.curriculum-create .acta-tree--no-speciality .acta-tree__typed,
.nac-page .acta-tree--no-speciality .acta-tree__typed,
.dailyorder-wizard .acta-tree--no-speciality .acta-tree__typed {
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
}
.seat-create .acta-tree__typed select:disabled + .ms-select,
.acta-create .acta-tree__typed select:disabled + .ms-select,
.watchduty-create .acta-tree__typed select:disabled + .ms-select,
.course-create .acta-tree__typed select:disabled + .ms-select,
.curriculum-create .acta-tree__typed select:disabled + .ms-select,
.nac-page .acta-tree__typed select:disabled + .ms-select,
.dailyorder-wizard .acta-tree__typed select:disabled + .ms-select {
  opacity: 0.45;
}
.seat-create .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.acta-create .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.watchduty-create .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.course-create .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.curriculum-create .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.nac-page .acta-tree__typed select:disabled + .ms-select .dropdown-menu,
.dailyorder-wizard .acta-tree__typed select:disabled + .ms-select .dropdown-menu {
  display: none;
}
.seat-create .acta-tree__assign-note,
.acta-create .acta-tree__assign-note,
.watchduty-create .acta-tree__assign-note,
.course-create .acta-tree__assign-note,
.curriculum-create .acta-tree__assign-note,
.nac-page .acta-tree__assign-note,
.dailyorder-wizard .acta-tree__assign-note {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.seat-create .acta-tree__assign-note[hidden],
.acta-create .acta-tree__assign-note[hidden],
.watchduty-create .acta-tree__assign-note[hidden],
.course-create .acta-tree__assign-note[hidden],
.curriculum-create .acta-tree__assign-note[hidden],
.nac-page .acta-tree__assign-note[hidden],
.dailyorder-wizard .acta-tree__assign-note[hidden] {
  display: none;
}
.seat-create .acta-tree__assign-note .material-symbols-outlined,
.acta-create .acta-tree__assign-note .material-symbols-outlined,
.watchduty-create .acta-tree__assign-note .material-symbols-outlined,
.course-create .acta-tree__assign-note .material-symbols-outlined,
.curriculum-create .acta-tree__assign-note .material-symbols-outlined,
.nac-page .acta-tree__assign-note .material-symbols-outlined,
.dailyorder-wizard .acta-tree__assign-note .material-symbols-outlined {
  font-size: 1.1rem;
}
.seat-create .acta-tree__contents,
.acta-create .acta-tree__contents,
.watchduty-create .acta-tree__contents,
.course-create .acta-tree__contents,
.curriculum-create .acta-tree__contents,
.nac-page .acta-tree__contents,
.dailyorder-wizard .acta-tree__contents {
  display: contents;
}
.seat-create .acta-tree__kind-icon,
.acta-create .acta-tree__kind-icon,
.watchduty-create .acta-tree__kind-icon,
.course-create .acta-tree__kind-icon,
.curriculum-create .acta-tree__kind-icon,
.nac-page .acta-tree__kind-icon,
.dailyorder-wizard .acta-tree__kind-icon {
  margin-right: 0.25rem;
  color: var(--ms-text-muted);
  font-size: 1.05rem;
  vertical-align: -0.2em;
}
.seat-create .acta-tree__typed-cell,
.acta-create .acta-tree__typed-cell,
.watchduty-create .acta-tree__typed-cell,
.course-create .acta-tree__typed-cell,
.curriculum-create .acta-tree__typed-cell,
.nac-page .acta-tree__typed-cell,
.dailyorder-wizard .acta-tree__typed-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}
.seat-create .acta-tree__typed-head,
.acta-create .acta-tree__typed-head,
.watchduty-create .acta-tree__typed-head,
.course-create .acta-tree__typed-head,
.curriculum-create .acta-tree__typed-head,
.nac-page .acta-tree__typed-head,
.dailyorder-wizard .acta-tree__typed-head {
  padding: 0.375rem 1rem 0.375rem 3rem;
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 767.98px) {
  .seat-create .acta-tree__typed,
  .acta-create .acta-tree__typed,
  .watchduty-create .acta-tree__typed,
  .course-create .acta-tree__typed,
  .curriculum-create .acta-tree__typed,
  .nac-page .acta-tree__typed,
  .dailyorder-wizard .acta-tree__typed {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.5rem;
  }
  .seat-create .acta-tree__typed-head,
  .acta-create .acta-tree__typed-head,
  .watchduty-create .acta-tree__typed-head,
  .course-create .acta-tree__typed-head,
  .curriculum-create .acta-tree__typed-head,
  .nac-page .acta-tree__typed-head,
  .dailyorder-wizard .acta-tree__typed-head {
    display: none;
  }
}
.seat-create .acta-tree__group,
.acta-create .acta-tree__group,
.watchduty-create .acta-tree__group,
.course-create .acta-tree__group,
.curriculum-create .acta-tree__group,
.nac-page .acta-tree__group,
.dailyorder-wizard .acta-tree__group {
  background-color: var(--bs-tertiary-bg);
  font-weight: 500;
}
.seat-create .acta-tree__course,
.acta-create .acta-tree__course,
.watchduty-create .acta-tree__course,
.course-create .acta-tree__course,
.curriculum-create .acta-tree__course,
.nac-page .acta-tree__course,
.dailyorder-wizard .acta-tree__course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.seat-create .acta-tree__course select.ms-input-data, .seat-create .acta-tree__course select.ms-input-data + .ms-select,
.acta-create .acta-tree__course select.ms-input-data,
.acta-create .acta-tree__course select.ms-input-data + .ms-select,
.watchduty-create .acta-tree__course select.ms-input-data,
.watchduty-create .acta-tree__course select.ms-input-data + .ms-select,
.course-create .acta-tree__course select.ms-input-data,
.course-create .acta-tree__course select.ms-input-data + .ms-select,
.curriculum-create .acta-tree__course select.ms-input-data,
.curriculum-create .acta-tree__course select.ms-input-data + .ms-select,
.nac-page .acta-tree__course select.ms-input-data,
.nac-page .acta-tree__course select.ms-input-data + .ms-select,
.dailyorder-wizard .acta-tree__course select.ms-input-data,
.dailyorder-wizard .acta-tree__course select.ms-input-data + .ms-select {
  width: auto;
  min-width: 16rem;
  max-width: 100%;
}
.seat-create .acta-tree__cell,
.acta-create .acta-tree__cell,
.watchduty-create .acta-tree__cell,
.course-create .acta-tree__cell,
.curriculum-create .acta-tree__cell,
.nac-page .acta-tree__cell,
.dailyorder-wizard .acta-tree__cell {
  flex: 0 0 9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.seat-create .acta-tree__head,
.acta-create .acta-tree__head,
.watchduty-create .acta-tree__head,
.course-create .acta-tree__head,
.curriculum-create .acta-tree__head,
.nac-page .acta-tree__head,
.dailyorder-wizard .acta-tree__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem 0.25rem 3.75rem;
  border-bottom: 1px solid var(--ms-border);
}
.seat-create .acta-tree__sort,
.acta-create .acta-tree__sort,
.watchduty-create .acta-tree__sort,
.course-create .acta-tree__sort,
.curriculum-create .acta-tree__sort,
.nac-page .acta-tree__sort,
.dailyorder-wizard .acta-tree__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ms-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: start;
}
.seat-create .acta-tree__sort .material-symbols-outlined,
.acta-create .acta-tree__sort .material-symbols-outlined,
.watchduty-create .acta-tree__sort .material-symbols-outlined,
.course-create .acta-tree__sort .material-symbols-outlined,
.curriculum-create .acta-tree__sort .material-symbols-outlined,
.nac-page .acta-tree__sort .material-symbols-outlined,
.dailyorder-wizard .acta-tree__sort .material-symbols-outlined {
  font-size: 1rem;
}
.seat-create .acta-tree__sort.is-sorted,
.acta-create .acta-tree__sort.is-sorted,
.watchduty-create .acta-tree__sort.is-sorted,
.course-create .acta-tree__sort.is-sorted,
.curriculum-create .acta-tree__sort.is-sorted,
.nac-page .acta-tree__sort.is-sorted,
.dailyorder-wizard .acta-tree__sort.is-sorted {
  color: var(--ms-text);
}
.seat-create .acta-tree__sort:focus-visible,
.acta-create .acta-tree__sort:focus-visible,
.watchduty-create .acta-tree__sort:focus-visible,
.course-create .acta-tree__sort:focus-visible,
.curriculum-create .acta-tree__sort:focus-visible,
.nac-page .acta-tree__sort:focus-visible,
.dailyorder-wizard .acta-tree__sort:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 2px;
  border-radius: var(--ms-radius-sm);
}
.seat-create .acta-tree__sort--name,
.acta-create .acta-tree__sort--name,
.watchduty-create .acta-tree__sort--name,
.course-create .acta-tree__sort--name,
.curriculum-create .acta-tree__sort--name,
.nac-page .acta-tree__sort--name,
.dailyorder-wizard .acta-tree__sort--name {
  flex: 1 1 auto;
}
.seat-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.acta-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.watchduty-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.course-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.curriculum-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.nac-page .acta-tree--paged [data-acta-tree-module]:not(.d-none),
.dailyorder-wizard .acta-tree--paged [data-acta-tree-module]:not(.d-none) {
  animation: actaTreeRowIn 160ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .seat-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .acta-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .watchduty-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .course-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .curriculum-create .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .nac-page .acta-tree--paged [data-acta-tree-module]:not(.d-none),
  .dailyorder-wizard .acta-tree--paged [data-acta-tree-module]:not(.d-none) {
    animation: none;
  }
}
@media (max-width: 575.98px) {
  .seat-create .acta-tree--paged .acta-tree__cell,
  .acta-create .acta-tree--paged .acta-tree__cell,
  .watchduty-create .acta-tree--paged .acta-tree__cell,
  .course-create .acta-tree--paged .acta-tree__cell,
  .curriculum-create .acta-tree--paged .acta-tree__cell,
  .nac-page .acta-tree--paged .acta-tree__cell,
  .dailyorder-wizard .acta-tree--paged .acta-tree__cell {
    display: none;
  }
}
.seat-create .acta-create__required-group.is-invalid, .seat-create .acta-create__required-group.input-validation-error,
.acta-create .acta-create__required-group.is-invalid,
.acta-create .acta-create__required-group.input-validation-error,
.watchduty-create .acta-create__required-group.is-invalid,
.watchduty-create .acta-create__required-group.input-validation-error,
.course-create .acta-create__required-group.is-invalid,
.course-create .acta-create__required-group.input-validation-error,
.curriculum-create .acta-create__required-group.is-invalid,
.curriculum-create .acta-create__required-group.input-validation-error,
.nac-page .acta-create__required-group.is-invalid,
.nac-page .acta-create__required-group.input-validation-error,
.dailyorder-wizard .acta-create__required-group.is-invalid,
.dailyorder-wizard .acta-create__required-group.input-validation-error {
  border-color: var(--ms-error) !important;
  box-shadow: none;
}
.seat-create .acta-create__required-group.is-invalid ~ .invalid-feedback,
.acta-create .acta-create__required-group.is-invalid ~ .invalid-feedback,
.watchduty-create .acta-create__required-group.is-invalid ~ .invalid-feedback,
.course-create .acta-create__required-group.is-invalid ~ .invalid-feedback,
.curriculum-create .acta-create__required-group.is-invalid ~ .invalid-feedback,
.nac-page .acta-create__required-group.is-invalid ~ .invalid-feedback,
.dailyorder-wizard .acta-create__required-group.is-invalid ~ .invalid-feedback {
  display: block;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])) {
  padding-right: var(--ms-field-end, 0.9rem);
  border-color: var(--ms-border);
  background-image: none;
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]) {
  --bs-form-select-bg-icon: none;
  padding-right: 2.5rem;
  border-color: var(--ms-border);
  background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data.is-valid:not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])):focus {
  border-color: var(--ms-primaryColor);
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) {
  border-color: var(--ms-border);
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]):checked {
  border-color: var(--ms-primary);
  background-color: var(--ms-primary);
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .form-check-input:valid:not([aria-invalid=true]) ~ .form-check-label {
  color: var(--ms-text);
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]),
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid) {
  border-color: var(--ms-error);
  background-image: none;
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .seat-create__type-field .form-check-input:invalid:focus {
  border-color: var(--ms-error);
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(input.form-control.ms-input-data.is-invalid,
input.form-control.ms-input-data.input-validation-error,
textarea.form-control.ms-input-data.is-invalid,
textarea.form-control.ms-input-data.input-validation-error,
select.form-select.ms-input-data.is-invalid,
select.form-select.ms-input-data.input-validation-error,
input.form-control.ms-input-data[aria-invalid=true],
textarea.form-control.ms-input-data[aria-invalid=true],
select.form-select.ms-input-data[aria-invalid=true]):focus,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:invalid,
textarea.form-control.ms-input-data:invalid,
select.form-select.ms-input-data:invalid):focus {
  border-color: var(--ms-error);
  outline: none;
  box-shadow: none;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated .student-detail__clearable-field:has(.ms-input-data:invalid) ~ .invalid-feedback {
  display: block;
}
.seat-create .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.acta-create .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.watchduty-create .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.course-create .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.curriculum-create .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.nac-page .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error,
.dailyorder-wizard .nac-wizard-form.was-validated .nac-wizard-start-options:has(input[name=Start]:invalid) ~ #nac-wizard-start-client-error {
  display: block;
}
.seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before,
.dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form) :is(.field-validation-error, .invalid-feedback)::before {
  content: "* ";
}
.seat-create #office-name-client-error,
.acta-create #office-name-client-error,
.watchduty-create #office-name-client-error,
.course-create #office-name-client-error,
.curriculum-create #office-name-client-error,
.nac-page #office-name-client-error,
.dailyorder-wizard #office-name-client-error {
  font-size: 0.72rem;
}

[data-bs-theme=dark] .seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .seat-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .acta-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .watchduty-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .course-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .curriculum-create :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .nac-page :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
[data-bs-theme=dark] .dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])),
html.dark .dailyorder-wizard :is(.seat-create-form, .acta-create-form, .watchduty-create-form, .curriculum-wizard-form, .course-wizard-form, .nac-wizard-form, .dailyorder-wizard-form).was-validated :is(input.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
textarea.form-control.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true]),
select.form-select.ms-input-data:valid:not(:focus):not(.is-invalid):not(.input-validation-error):not([aria-invalid=true])) {
  border-color: transparent;
}

/* The curriculum wizard's workbook index: every plan of the uploaded file as a section of the review
   step, sibling to «Datos del plan» below it — not an alert, because it is navigation and not a
   message. Its rows are the panel's .ms-rowlist; only what is particular to a queue lives here.

   Every row gets the same padding and pulls back to the text edge, so the plan in hand can wear a
   ground without the first and last rows (which .ms-rowlist trims flush) coming out lopsided. */
.curriculum-queue {
  /* The meta rides on the title's line, centred on it: .cm-h2 carries a 2px top margin meant for a
     title sitting under its kicker, which here only pushed the title off the meta's line. */
}
.curriculum-queue .curriculum-queue__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
}
.curriculum-queue .curriculum-queue__head .cm-h2 {
  margin: 0;
}
.curriculum-queue {
  /* The name is not a link here — the row's one action is its «Ver» — so it must not answer to the
     pointer the way .ms-rowlist's linked subjects do. */
}
.curriculum-queue .ms-rowlist__subject:hover {
  color: var(--ms-text);
}
.curriculum-queue .ms-rowlist__item,
.curriculum-queue .ms-rowlist__item:first-child,
.curriculum-queue .ms-rowlist__item:last-child {
  position: relative;
  align-items: center;
  padding: 0.55rem 0.5rem;
  margin-inline: -0.5rem;
  border-bottom: 0;
  border-radius: var(--ms-radius);
}
.curriculum-queue {
  /* The divider as a line of its own, inset to the text edge — as .ms-rowlist--linked draws it, and
     for the same reason: a border follows the corner radius the ground needs, and curls at both ends. */
}
.curriculum-queue .ms-rowlist__item::before {
  content: "";
  position: absolute;
  inset: auto 0.5rem 0;
  border-bottom: 1px solid var(--ms-rule);
  pointer-events: none;
}
.curriculum-queue .ms-rowlist__item:last-child::before {
  content: none;
}
.curriculum-queue {
  /* A number in the disc until the plan has an outcome; then the outcome's own glyph. */
}
.curriculum-queue .ms-rowlist__mark {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.curriculum-queue {
  /* Where the reviewer IS: the tint the panel's lists use for the row under the pointer, held. Not
     weight — the settled rule is that weight is the last thing to carry hierarchy. */
}
.curriculum-queue .ms-rowlist__item.is-current {
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
}

/* The read-only preview of one plan of an uploaded workbook (_SheetPreview.cshtml, an .ms-dialog--wide).
   Its facts are the wizard summary's (.seat-create__summary-fact: the label over the value) and its table
   wears the listings' dress through the shared mixins; what lives here is only how they are arranged. */
.curriculum-preview {
  /* The title on its own, full width: a sentence, and often a long one. Under it the four short facts
     in one row, divided the way the summary divides its pair. */
}
.curriculum-preview .curriculum-preview__facts {
  margin-top: 1rem;
}
.curriculum-preview .curriculum-preview__fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ms-rule);
}
.curriculum-preview .curriculum-preview__fact-row > .seat-create__summary-fact {
  padding-inline: 1rem;
}
.curriculum-preview .curriculum-preview__fact-row > .seat-create__summary-fact:first-child {
  padding-left: 0;
}
.curriculum-preview .curriculum-preview__fact-row > .seat-create__summary-fact:last-child {
  padding-right: 0;
}
.curriculum-preview {
  /* Two by two on a phone. The summary's divider is «every fact after the first», which in two
     columns would draw one down the left edge of the second row. */
}
@media (max-width: 767.98px) {
  .curriculum-preview .curriculum-preview__fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .curriculum-preview .curriculum-preview__fact-row > .seat-create__summary-fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .curriculum-preview .curriculum-preview__fact-row > .seat-create__summary-fact:nth-child(even) {
    padding-right: 0;
  }
}
.curriculum-preview .curriculum-preview__subjects {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ms-rule);
}
.curriculum-preview {
  /* The listings' table, without DataTables: see listing-table-surface / -cells in _mixins.scss. */
}
.curriculum-preview .curriculum-preview__table {
  border-color: var(--ms-border);
  --bs-table-bg: var(--ms-surface);
  background-color: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.8rem;
  font-weight: 400;
}
.curriculum-preview .curriculum-preview__table thead th {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: calc(0.04em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
  color: var(--ms-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;
  vertical-align: middle;
}
.curriculum-preview .curriculum-preview__table tbody td {
  padding: 0.95rem 0.75rem;
  height: calc(2 * 1.5 * 1em + 2 * 0.95rem);
  vertical-align: middle;
  font-size: inherit;
  font-weight: 400;
  color: var(--ms-text);
  /* The dashboard tables' hairline, declaration for declaration: mixed off --ms-text so the
     one line is right in both themes — dark ink on the light card, light ink on the night one.
     --ms-border cannot do this: at night it is DARKER than the card and draws a shadow into
     the surface instead of a line on it. */
  border-bottom: 1px solid color-mix(in srgb, var(--ms-text) 10%, transparent);
}
.curriculum-preview .curriculum-preview__table {
  /* The last row closes against the card, not against a line. */
}
.curriculum-preview .curriculum-preview__table tbody tr:last-child > td {
  border-bottom: 0;
}
.curriculum-preview {
  /* The header stays in view while the body scrolls: a long plan is read far below the column names.
     No .table-responsive around the table on purpose — its overflow would become the scroller the
     header sticks to, and that one never scrolls vertically.

     ⚠️ A sticky header sticks to the scroller's CONTENT edge, inside its padding: with the dialog body's
     0.5rem top padding, the rows scrolled past showed through that strip above the header. So this body
     has no top padding, and the description, its first line, carries the space instead. */
}
.curriculum-preview.ms-dialog__body {
  padding-top: 0;
}
.curriculum-preview > .ms-dialog__description:first-child {
  padding-top: 0.5rem;
}
.curriculum-preview .curriculum-preview__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.curriculum-preview {
  /* One line per course and module over its subjects. A caption, not a heading: the label voice, in
     the case the data was written in — a module name is a value, and uppercasing it shows the reader
     something it is not. The band is mixed off the text, so it is a shade darker by day and a shade
     lighter by night without a second rule. */
}
.curriculum-preview .curriculum-preview__group > th {
  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;
  --bs-table-bg: color-mix(in srgb, var(--ms-text) 4%, var(--ms-surface));
  background: color-mix(in srgb, var(--ms-text) 4%, var(--ms-surface));
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ms-text) 10%, transparent);
}
.curriculum-preview .curriculum-preview__figure {
  font-variant-numeric: tabular-nums;
}

/* htmx's request indicators, on every page of the panel. htmx used to inject these three rules as a <style> of its
   own, which the content policy refuses (includeIndicatorStyles is off in _Layout's htmx-config); they went to
   site.scss on 26/10/2026, a stylesheet the panel never loads, and every .htmx-indicator — the spinners of
   «Asignar especialidad», «Cambiar» and «Desvincular Especialidad», the roster's filters… — spun at rest since. */
.htmx-indicator {
  opacity: 0;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
  transition: opacity 200ms ease-in;
}

/* Seat wizard request state and loading feedback -----------------------------------------------------
   htmx puts .htmx-request on the element that ISSUED the request — in the wizards that is the button
   («Siguiente», «Crear guardia», «Añadir documentos», a «Quitar»…), so the spinner appears exactly where
   the click happened. The icon steps aside and a border-circle spins in its slot, keeping the button the
   same size; pointer-events off so an upload cannot be double-submitted. */
/* Three ways a button ends up "in flight": it issued the request itself (hx-post on the button), its FORM
   did (hx-post on the form — the little Quitar/Eliminar/Añadir forms), or it is the DESIGNATED indicator
   of a form it sits outside of (the aside's Guardar, wired with hx-indicator). All three read the same. */
.rule-wizard .ms-button.htmx-request,
.detail-page .ms-button.htmx-request,
#response-targets .ms-button.htmx-request,
.student-detail--person-actions .student-detail__actions-card .ms-button.htmx-request,
.ms-button[data-ms-download].htmx-request,
.acta-create .ms-button.htmx-request,
.watchduty-create .ms-button.htmx-request,
.rule-wizard form.htmx-request .ms-button[type=submit],
.detail-page form.htmx-request .ms-button[type=submit],
.student-detail--person-actions .student-detail__actions-card form.htmx-request .ms-button[type=submit],
#seat-wizard:has(#seat-create-form.htmx-request) .seat-create__request-button,
#acta-wizard:has(#acta-wizard-form.htmx-request) .acta-create__request-button,
#rule-wizard:has(#rule-wizard-form.htmx-request) .kitchen-rule-create__request-button,
#watchduty-wizard:has(#watchduty-wizard-form.htmx-request) .watchduty-create__request-button,
#curriculum-wizard:has(#curriculum-wizard-form.htmx-request) .curriculum-create__request-button,
#nac-wizard:has(#nac-wizard-form.htmx-request) .nac-wizard__request-button,
#dailyorder-wizard:has(form.htmx-request) .dailyorder-wizard__request-button,
#schedule-import-wizard:has(form.htmx-request) .schedule-import__request-button,
#student-import-wizard:has(form.htmx-request) .student-import__request-button {
  pointer-events: none;
}
.rule-wizard .ms-button.htmx-request .ms-button__icon,
.detail-page .ms-button.htmx-request .ms-button__icon,
#response-targets .ms-button.htmx-request .ms-button__icon,
.student-detail--person-actions .student-detail__actions-card .ms-button.htmx-request .ms-button__icon,
.ms-button[data-ms-download].htmx-request .ms-button__icon,
.acta-create .ms-button.htmx-request .ms-button__icon,
.watchduty-create .ms-button.htmx-request .ms-button__icon,
.rule-wizard form.htmx-request .ms-button[type=submit] .ms-button__icon,
.detail-page form.htmx-request .ms-button[type=submit] .ms-button__icon,
.student-detail--person-actions .student-detail__actions-card form.htmx-request .ms-button[type=submit] .ms-button__icon,
#seat-wizard:has(#seat-create-form.htmx-request) .seat-create__request-button .ms-button__icon,
#acta-wizard:has(#acta-wizard-form.htmx-request) .acta-create__request-button .ms-button__icon,
#rule-wizard:has(#rule-wizard-form.htmx-request) .kitchen-rule-create__request-button .ms-button__icon,
#watchduty-wizard:has(#watchduty-wizard-form.htmx-request) .watchduty-create__request-button .ms-button__icon,
#curriculum-wizard:has(#curriculum-wizard-form.htmx-request) .curriculum-create__request-button .ms-button__icon,
#nac-wizard:has(#nac-wizard-form.htmx-request) .nac-wizard__request-button .ms-button__icon,
#dailyorder-wizard:has(form.htmx-request) .dailyorder-wizard__request-button .ms-button__icon,
#schedule-import-wizard:has(form.htmx-request) .schedule-import__request-button .ms-button__icon,
#student-import-wizard:has(form.htmx-request) .student-import__request-button .ms-button__icon {
  display: none;
}
.rule-wizard .ms-button.htmx-request::before,
.detail-page .ms-button.htmx-request::before,
#response-targets .ms-button.htmx-request::before,
.student-detail--person-actions .student-detail__actions-card .ms-button.htmx-request::before,
.ms-button[data-ms-download].htmx-request::before,
.acta-create .ms-button.htmx-request::before,
.watchduty-create .ms-button.htmx-request::before,
.rule-wizard form.htmx-request .ms-button[type=submit]::before,
.detail-page form.htmx-request .ms-button[type=submit]::before,
.student-detail--person-actions .student-detail__actions-card form.htmx-request .ms-button[type=submit]::before,
#seat-wizard:has(#seat-create-form.htmx-request) .seat-create__request-button::before,
#acta-wizard:has(#acta-wizard-form.htmx-request) .acta-create__request-button::before,
#rule-wizard:has(#rule-wizard-form.htmx-request) .kitchen-rule-create__request-button::before,
#watchduty-wizard:has(#watchduty-wizard-form.htmx-request) .watchduty-create__request-button::before,
#curriculum-wizard:has(#curriculum-wizard-form.htmx-request) .curriculum-create__request-button::before,
#nac-wizard:has(#nac-wizard-form.htmx-request) .nac-wizard__request-button::before,
#dailyorder-wizard:has(form.htmx-request) .dailyorder-wizard__request-button::before,
#schedule-import-wizard:has(form.htmx-request) .schedule-import__request-button::before,
#student-import-wizard:has(form.htmx-request) .student-import__request-button::before {
  content: "";
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ms-wizard-spin 0.6s linear infinite;
}

#seat-wizard:has(#seat-create-form.htmx-request) .student-detail__actions-list .ms-button[type=submit],
#acta-wizard:has(#acta-wizard-form.htmx-request) .student-detail__actions-list .ms-button[type=submit],
#watchduty-wizard:has(#watchduty-wizard-form.htmx-request) .student-detail__actions-list .ms-button[type=submit],
#curriculum-wizard:has(#curriculum-wizard-form.htmx-request) .student-detail__actions-list .ms-button[type=submit],
#nac-wizard:has(#nac-wizard-form.htmx-request) button[type=submit][form=nac-wizard-form],
#dailyorder-wizard:has(form.htmx-request) .ms-button[type=submit],
#schedule-import-wizard:has(form.htmx-request) .student-detail__actions-list .ms-button[type=submit],
#student-import-wizard:has(form.htmx-request) .student-detail__actions-list .ms-button[type=submit] {
  pointer-events: none;
}

/* The rest of the step quietens while a move is in flight — but only when it takes long enough to
   notice: the delay keeps a fast step change from flashing. */
.rule-wizard:has(.htmx-request) > .card-body,
#watchduty-detail .detail-section:has(.htmx-request) > .card-body,
#watchduty-detail form.htmx-request .detail-section > .card-body {
  opacity: 0.65;
  transition: opacity 0.15s ease 0.25s;
}

/* Chip-as-button (AdminDocuments «Desactivado»): not an .ms-button, so the wizard spinner rules above
   don't reach it — while its form's request is in flight the chip dims and locks instead. */
.detail-page form.htmx-request .badge {
  pointer-events: none;
  opacity: 0.55;
}

@keyframes ms-wizard-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Less motion: no spinner spin — the dimmed button and body already say "working". */
@media (prefers-reduced-motion: reduce) {
  .rule-wizard .ms-button.htmx-request::before,
  .detail-page .ms-button.htmx-request::before,
  .student-detail--person-actions .student-detail__actions-card .ms-button.htmx-request::before,
  .ms-button[data-ms-download].htmx-request::before,
  .rule-wizard form.htmx-request .ms-button[type=submit]::before,
  .detail-page form.htmx-request .ms-button[type=submit]::before,
  .student-detail--person-actions .student-detail__actions-card form.htmx-request .ms-button[type=submit]::before,
  #seat-wizard:has(#seat-create-form.htmx-request) .seat-create__request-button::before,
  #acta-wizard:has(#acta-wizard-form.htmx-request) .acta-create__request-button::before,
  #rule-wizard:has(#rule-wizard-form.htmx-request) .kitchen-rule-create__request-button::before,
  #watchduty-wizard:has(#watchduty-wizard-form.htmx-request) .watchduty-create__request-button::before,
  #curriculum-wizard:has(#curriculum-wizard-form.htmx-request) .curriculum-create__request-button::before,
  #nac-wizard:has(#nac-wizard-form.htmx-request) .nac-wizard__request-button::before,
  #dailyorder-wizard:has(form.htmx-request) .dailyorder-wizard__request-button::before,
  #schedule-import-wizard:has(form.htmx-request) .schedule-import__request-button::before,
  #student-import-wizard:has(form.htmx-request) .student-import__request-button::before {
    animation: none;
  }
  .rule-wizard:has(.htmx-request) > .card-body,
  #watchduty-detail .detail-section:has(.htmx-request) > .card-body,
  #watchduty-detail form.htmx-request .detail-section > .card-body {
    transition: none;
  }
}
.kitchen-rule-create .rule-wizard .form-label,
.kitchen-rule-create .rule-wizard label.btn {
  text-transform: none;
  letter-spacing: calc(0em + var(--ms-a11y-letter-add, 0em));
}

.rule-wizard input.form-control.ms-input-data.js-datepicker-input[data-clear-field-type=time][readonly]:not(:disabled) {
  color: var(--ms-text);
}
.rule-wizard .form-label--required::after {
  content: " *";
}
.rule-wizard__days {
  --rule-day-size: 2.75rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.25rem;
  overflow-x: auto;
}
.rule-wizard__days > .btn {
  box-sizing: border-box;
  flex: 0 0 var(--rule-day-size);
  width: var(--rule-day-size);
  min-width: var(--rule-day-size);
  max-width: var(--rule-day-size);
  height: var(--rule-day-size);
  min-height: var(--rule-day-size);
  max-height: var(--rule-day-size);
  border-radius: 50%;
  font-weight: 700;
}
.rule-wizard {
  /* &__dot is gone: the wizard's stepper is now the shared .ms-steps, which paints its own dots from
     the school's colour. Nothing else here knew about the steps. */
  /* Raw Bootstrap switches keep the wizard's legacy enlarged metrics. Shared toggle cards already own
     their padding and track placement; applying this rule to them pulled the track into the left edge. */
}
.rule-wizard .form-switch:not(.ms-toggle-card) {
  padding-left: 3.25em;
}
.rule-wizard .form-switch:not(.ms-toggle-card) .form-check-input {
  width: 2.75em;
  height: 1.45em;
  margin-left: -3.25em;
  margin-top: 0.1em;
  border-radius: 1em;
}
.rule-wizard .form-switch:not(.ms-toggle-card) .form-check-label {
  padding-top: 0.15em;
}

[data-bs-theme=dark] :is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination),
html.dark :is(.ms-pagination, .dataTables_paginate .pagination, .dt-paging .pagination) {
  border-color: transparent;
  background: var(--ms-bg);
}

/* --- Navigation: one screen, revealed when it is actually ready --------------------------------
   A boosted navigation replaces #ms-content and the browser paints it immediately — but this app
   FINISHES a screen after that paint: DataTables wraps its table, select-menu.js builds its menus,
   the date fields become calendars. What was seen was the raw screen for a frame or two and then the
   finished one, which reads as a flicker and as "it rendered twice".
   The View Transitions API does not help here, and made it worse: its snapshot is taken at swap time
   — the half-built state — and the outgoing screen stays legible underneath while it cross-fades.

   So the swap is held instead. The incoming screen arrives invisible, the upgrades run on it, and it
   is revealed in one piece on the next frame. One entrance, always the same, and never a glimpse of
   the machinery. */
/* The state lives on <html>, never on #ms-content itself. htmx SETTLES the attributes of an element
   whose id survives a swap — class among them (htmx.config.attributesToSettle) — so a class added to
   the incoming #ms-content between the swap and the settle is wiped by the outgoing element's own
   class list a few milliseconds later. That is why the hold appeared to do nothing: it was applied,
   painted, and then quietly reverted. The root element is not swapped, so it cannot be settled. */
html.ms-nav-holding #ms-content {
  opacity: 0;
  /* Nothing inside can be clicked while it is not on screen yet. */
  pointer-events: none;
}

html.ms-nav-entering #ms-content {
  /* Longer and gentler: an ease-out that decelerates all the way in (0.22, 0.61, 0.36, 1) instead of
     the app's springier curve, which lands the last frames almost at once and reads as a snap. */
  animation: ms-nav-in 360ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  /* The scale is drawn crisply rather than resampled from a scaled bitmap. */
  transform-origin: center top;
  will-change: opacity, transform;
}

/* The screen MATERIALISES: it fades in while growing the last hair of its size. No displacement —
   a long page that slides reads as the layout moving, which is what we were trying to get rid of. */
@keyframes ms-nav-in {
  from {
    opacity: 0;
    transform: scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* One entrance per navigation. The screens that animate themselves in ([data-ms-animate-in], the list
   card, the table's row stagger) were doing it ON TOP of the page's own entrance, so the same content
   faded twice with two different curves. While a navigation is in flight they stand down. */
html.ms-navigating .ms-swap-in,
html.ms-navigating [data-ms-animate-in],
html.ms-navigating .pl-card,
html.ms-navigating .pl-datatable[data-ms-datatable],
html.ms-navigating .pl-datatable.ms-rows-in > tbody > tr {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* A navigation that takes long enough to notice says so, at the top of the content area: an
   indeterminate hairline that only appears after ~150ms, so a fast screen never flashes a bar. */
.ms-nav-progress {
  position: fixed;
  top: var(--ms-navbar-height, 56px);
  right: 0;
  left: 0;
  z-index: 1040;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ms-nav-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-color, var(--ms-primary)), transparent);
  transform: translateX(-100%);
}
.ms-nav-progress.is-busy {
  opacity: 1;
}
.ms-nav-progress.is-busy::after {
  animation: ms-nav-progress 1s linear infinite;
}
.ms-nav-progress {
  /* A navigation that declared itself heavy (data-ms-loader-now) raises the bar in the frame the click
     happened, with no fade: the fade exists to soften a bar that appears mid-wait, and here there is no
     doubt there IS a wait. Fading in over 150ms would also land the bar at half opacity right when the
     main thread starts parsing the incoming screen — and a frozen half-drawn bar says nothing. */
}
.ms-nav-progress.is-immediate {
  transition: none;
}

@keyframes ms-nav-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
/* Motion is a nicety here, never information: with it turned off the screen simply appears. */
@media (prefers-reduced-motion: reduce) {
  html.ms-nav-entering #ms-content {
    animation: none;
  }
  .ms-nav-progress {
    transition: none;
  }
  .ms-nav-progress.is-busy::after {
    animation: none;
  }
}
/* ── Search highlight (cardfilter.js) ──────────────────────────────────────
   The match is marked by its BACKGROUND, not by anything done to the letters: same face, same weight,
   same ink, so a highlighted word still reads as the word it is. An underline was tried and dropped —
   at this size it sits on the descenders and reads as part of the letterforms rather than behind them.

   The tint is --brand-color, which _Layout sets per school from Tenant.PrimaryColor, so the mark that
   says "this is what you typed" speaks with the same voice as the rest of that school's panel. Kept
   translucent so it works over both themes and never fights the text on top of it. No padding: a
   highlight must not move the words it highlights.

   Scoped to the filter's own regions — a <mark> written by hand in content is not this. */
[data-card-filter-text] mark {
  padding: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-color) 25%, transparent);
  color: inherit;
}

/* --- Dropdown panels: ONE skin for the whole app ------------------------------------------------
   The table filters (.pf-menu) and the app's own select (.ms-select__menu) had each been given the
   house look, but everything else — the profile menu, the help panel, any Bootstrap dropdown a page
   opens — kept Bootstrap's defaults: a white-ish card with its own radius and shadow, which at night
   was a pale slab on a dark screen. The skin belongs to the component, not to the three places that
   remembered to ask for it, so it lives here and those keep only what is really theirs (their width,
   their option list, their search box). */
.ms-theme .dropdown-menu {
  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));
  color: var(--ms-text);
  font-size: 0.85rem;
}
.ms-theme .dropdown-menu .dropdown-item {
  border-radius: var(--ms-radius-sm);
  padding: 0.45rem 0.6rem;
  color: var(--ms-text);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ms-theme .dropdown-menu .dropdown-item:hover, .ms-theme .dropdown-menu .dropdown-item:focus {
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
  color: var(--ms-text);
}
.ms-theme .dropdown-menu .dropdown-item.active, .ms-theme .dropdown-menu .dropdown-item:active {
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
  color: var(--ms-primary);
}
.ms-theme .dropdown-menu .dropdown-item.disabled, .ms-theme .dropdown-menu .dropdown-item:disabled {
  color: var(--ms-text-muted);
}
.ms-theme .dropdown-menu .dropdown-divider {
  margin: 0.3rem 0;
  border-top-color: var(--ms-border);
}
.ms-theme .dropdown-menu .dropdown-header {
  padding: 0.35rem 0.6rem;
  color: var(--ms-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: calc(0.05em + var(--ms-a11y-letter-add, 0em));
  text-transform: uppercase;
}

/* Opening and closing. Bootstrap toggles a class and the panel is simply there — the abruptness is
   that there is no in-between state at all. `display` is part of the transition (allow-discrete) so
   the panel stays rendered while it leaves, @starting-style gives the opening frame somewhere to
   come FROM, and site.js holds Bootstrap's hide back until the exit has played: without that hold
   Bootstrap disposes Popper on the spot, the panel loses the transform that placed it, and it jumps
   to the corner of its container for the length of the animation.

   The box only fades: these panels are positioned by Popper, which does it with a transform, and
   animating the menu's own transform fights it (that is what once made a menu fly in from a corner).
   The movement is carried by the CONTENTS.

   The filters and the app's select run their own version of this — they hold Bootstrap's hide back
   from script to animate the exit too — so they are left alone here. */
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu) {
  opacity: 0;
  transition: opacity 140ms ease, display 140ms allow-discrete;
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu) > * {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu).show {
  opacity: 1;
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu).show > * {
  opacity: 1;
  transform: none;
}
@starting-style {
  .ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu).show {
    opacity: 0;
  }
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu) {
  /* The exit. By now Bootstrap has already dropped .show, so the panel is kept on screen by this
     rule alone — pinned where it was by the placement site.js puts back — and fades out from there. */
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu).is-hiding {
  display: block;
  opacity: 0;
  pointer-events: none;
}
.ms-theme .dropdown-menu:not(.pf-menu):not(.ms-select__menu).is-hiding > * {
  opacity: 0;
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .ms-theme .dropdown-menu,
  .ms-theme .dropdown-menu > * {
    transition: none;
  }
}
/* Night: a panel painted on the card's own surface dissolves into it. One shade above, with a real
   shadow — the fix the table filters already carried, now the rule for every panel. */
[data-bs-theme=dark] .ms-theme .dropdown-menu,
html.dark .ms-theme .dropdown-menu {
  border-color: 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);
}

/* Night: the well lifts off the card instead of sinking below it, and the dashed edge is drawn with
   light — a border made of the light theme's grey disappears here. */
[data-bs-theme=dark] .ms-dropzone,
html.dark .ms-dropzone {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
  background: color-mix(in srgb, #ffffff 4%, transparent);
  color: var(--ms-text);
}

[data-bs-theme=dark] .ms-dropzone:not(.ms-dropzone--readonly):hover,
html.dark .ms-dropzone:not(.ms-dropzone--readonly):hover {
  border-color: var(--ms-primary);
  background: color-mix(in srgb, var(--ms-primary) 8%, transparent);
}

[data-bs-theme=dark] .ms-dropzone__empty,
html.dark .ms-dropzone__empty {
  color: var(--ms-text-muted);
}

/* Night: the filled well keeps its green identity, but at night a tint has to be stronger to register at
   all. Declared after the generic dark rule above, which would otherwise flatten it back to the empty look. */
[data-bs-theme=dark] .ms-dropzone--filled,
html.dark .ms-dropzone--filled {
  border-color: color-mix(in srgb, var(--ms-success) 45%, transparent);
  background: color-mix(in srgb, var(--ms-success) 14%, transparent);
}

/* A filled well keeps its success identity on hover instead of inheriting the generic primary border. */
[data-bs-theme=dark] .ms-dropzone--filled:not(.ms-dropzone--readonly):hover,
html.dark .ms-dropzone--filled:not(.ms-dropzone--readonly):hover {
  border-color: color-mix(in srgb, var(--ms-success) 45%, transparent);
  background: color-mix(in srgb, var(--ms-success) 14%, transparent);
}

[data-bs-theme=dark] .ms-dropzone--filled .ms-dropzone__empty,
html.dark .ms-dropzone--filled .ms-dropzone__empty {
  color: var(--ms-text);
}

[data-bs-theme=dark] .ms-dropzone--filled .ms-dropzone__empty-icon,
html.dark .ms-dropzone--filled .ms-dropzone__empty-icon {
  background: color-mix(in srgb, var(--ms-success) 22%, transparent);
  color: color-mix(in srgb, var(--ms-success) 80%, #ffffff);
}

/* Night: the icon tile needs more of its colour to survive on a dark well. */
[data-bs-theme=dark] .ms-dropzone__empty-icon,
html.dark .ms-dropzone__empty-icon {
  background: color-mix(in srgb, var(--ms-primary) 20%, transparent);
  color: color-mix(in srgb, var(--ms-primary) 65%, #ffffff);
}

[data-bs-theme=dark] .ms-dropzone:not(.ms-dropzone--readonly):hover .ms-dropzone__empty-icon,
[data-bs-theme=dark] .ms-dropzone.is-dragover .ms-dropzone__empty-icon,
html.dark .ms-dropzone:not(.ms-dropzone--readonly):hover .ms-dropzone__empty-icon,
html.dark .ms-dropzone.is-dragover .ms-dropzone__empty-icon {
  background: color-mix(in srgb, var(--ms-primary) 30%, transparent);
}

/* --- File field: the app's own, because the native one cannot be dressed ------------------------
   A file input renders its own button AND its own "no file chosen" text, both of them the browser's.
   The input stays (it is what carries the file and the accessibility) hidden behind a well that shows
   a button and the chosen name; site.js fills the name in. Used by the allergy report and by anything
   that needs a single file inside a form. */
.ms-file-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.5rem 0 0.4rem;
  border: 1px solid color-mix(in srgb, var(--ms-border) 80%, transparent);
  border-radius: var(--ms-radius-sm);
  background-color: color-mix(in srgb, var(--ms-bg) 82%, var(--ms-surface));
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.ms-file-field:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 35%, var(--ms-border));
}
.ms-file-field:focus-within {
  border-color: var(--ms-primary);
}
.ms-file-field {
  /* Reachable by keyboard and by screen readers; only its box is gone. */
}
.ms-file-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ms-file-field__button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.7rem;
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.8rem;
  font-weight: 500;
}
.ms-file-field__button .material-symbols-outlined {
  font-size: 1rem;
}
.ms-file-field:hover .ms-file-field__button {
  color: var(--ms-primary);
}
.ms-file-field__name {
  min-width: 0;
  overflow: hidden;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-file-field__name.is-chosen {
  color: var(--ms-text);
}

/* Shut from the server or by the field it excludes (a press note's cover, closed while the note carries
   an image URL): the well has to LOOK unavailable, not just refuse the click. */
.ms-file-field.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}

.ms-file-field.is-invalid .ms-file-field__name {
  color: var(--bs-danger, #dc3545);
}

.ms-file-field:has(.ms-file-field__input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
}

[data-bs-theme=dark] .ms-file-field,
html.dark .ms-file-field {
  border-color: transparent;
  background-color: var(--ms-bg);
}

[data-bs-theme=dark] .ms-file-field__button,
html.dark .ms-file-field__button {
  background: color-mix(in srgb, #ffffff 8%, var(--ms-surface));
}

/* --- Session ended overlay -------------------------------------------------------------------
   Shown when a session is cut server-side (a password change revokes the cookies that predate it)
   before sending the person to the login. Built to read as Blazor's connection-lost dialog, which the
   panel already teaches people to recognise; it cannot reuse it, because that one lives in a shadow root
   Blazor owns and only appears on screens carrying a component. Same tokens, so it follows the theme in
   both modes without a dark-specific block. */
.ms-session-ended {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The same scrim the reconnect overlay uses. */
  background-color: color-mix(in srgb, var(--ms-bg) 72%, transparent);
}

.ms-session-ended__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 16rem;
  max-width: min(92vw, 24rem);
  padding: 1.75rem 2rem;
  text-align: center;
  color: var(--ms-text);
  background-color: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg, 0.5rem);
  box-shadow: var(--ms-shadow-modal);
}

.ms-session-ended__spinner {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.35rem;
  border: 3px solid color-mix(in srgb, var(--ms-primary) 25%, transparent);
  border-top-color: var(--ms-primary);
  border-radius: 50%;
  animation: ms-session-ended-spin 0.8s linear infinite;
}

.ms-session-ended__title {
  margin: 0;
  font-weight: 600;
}

.ms-session-ended__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ms-text-muted, #6c757d);
}

@keyframes ms-session-ended-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Somebody who has asked for less motion still needs the dialog; only the spin goes. */
@media (prefers-reduced-motion: reduce) {
  .ms-session-ended__spinner {
    animation: none;
  }
}
/* =========================================================================
   REQUESTS — the two chips, with October's palette
   =========================================================================
   Two different facts, two families: .mn-req-status says WHERE the paperwork
   stands (the four colours October tints the row with) and .mn-req-report says
   WHAT the head of destination reported (the three of its own column). The
   colours live in variables.scss, so the dot in the table and these chips
   cannot drift apart.

   October's seven tones are light —meant for paper and for a white
   backoffice—, so the text is ALWAYS dark, in both themes. A chip that flipped
   to light text over that same pale yellow in dark mode would stop being
   readable; here the chip is a coloured sticker, and a sticker does not change
   colour with the room.
   ========================================================================= */
.badge.mn-req-status,
.badge.mn-req-report {
  color: #1a1a1a;
  font-weight: 600;
  /* The border draws the outline the pale background cannot give on a dark panel. */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.badge.mn-req-status--waiting {
  background-color: var(--mn-req-waiting);
}

.badge.mn-req-status--in-progress {
  background-color: var(--mn-req-in-progress);
}

.badge.mn-req-status--accepted {
  background-color: var(--mn-req-accepted);
}

.badge.mn-req-status--rejected {
  background-color: var(--mn-req-rejected);
}

/* October's green (#008000) is dark: dark text cannot be read on it, so that
   chip —and only that one— carries white text. The other two are light. */
.badge.mn-req-report--approved {
  background-color: var(--mn-req-report-approved);
  color: #fff;
}

.badge.mn-req-report--objected {
  background-color: var(--mn-req-report-objected);
}

.badge.mn-req-report--pending {
  background-color: var(--mn-req-report-pending);
}

/* --- Correcciones académicas: el track de estado ------------------------------------------------
   Un cambio de estado (aceptar/rechazar) intercambia el track con una View Transition, de modo que el
   navegador interpola entre la versión vieja y la nueva: el color se desplaza del chip que se abandona
   al que se entra en vez de parpadear la página entera. Cada chip lleva su propio view-transition-name
   (ms-track-<estado>), así que el navegador sabe qué chip es "el mismo" a ambos lados del cambio.

   Sin soporte de View Transitions el intercambio ocurre igual, solo que instantáneo. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
}

.ms-track__chip {
  /* El chip que acaba de pasar estrena su check: entra creciendo desde el centro. */
}
.ms-track__chip .ms-track__check {
  animation: ms-track-check 260ms ease-out both;
  transform-origin: center;
}

@keyframes ms-track-check {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Quien ha pedido menos movimiento ve el cambio, no el viaje. */
@media (prefers-reduced-motion: reduce) {
  .ms-track__chip .ms-track__check {
    animation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
/* ── Night headings: ink made of light ──────────────────────────────────────────────────────────
   In dark the PAGE title is painted with a gradient clipped to the glyphs (white → --ms-titleRampDark, the palette's own),
   instead of a flat grey. Only the page title takes it: body copy, values and labels stay solid ink,
   otherwise the screen turns into a light show.

   The gradient spans the ELEMENT, so on a block heading it was the box's width that decided where
   the blue arrived, not the words': a short title sat entirely in the white end and a long one ran
   into the blue half way through. Every heading that carries it is therefore sized to its own text
   (`width: fit-content`), so the ramp starts and ends on the glyphs and every title — one word or
   five — finishes on the same blue.

   The two .card-header variants are the exception and keep solid ink: they are flex ROWS whose right
   side carries a chip pushed there with ms-auto, so shrinking them to their text would drag the chip
   back to the middle of the card.

   Anything that is not text-in-the-title — the section icons, the chips riding next to a title —
   opts back out with its own -webkit-text-fill-color, because the clip applies to every glyph
   inside the element, its descendants included. */
[data-bs-theme=dark] :is(.pl-title, .cm-title, .cm-h2),
html.dark :is(.pl-title, .cm-title, .cm-h2) {
  background-image: linear-gradient(128.82deg, #fff 1%, var(--ms-titleRampDark) 99.69%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* The ramp measures the TEXT, not the column it sits in. */
  width: fit-content;
  max-width: 100%;
}

/* Icons keep their own ink (the section orange, the chevrons), chips keep theirs. Every chip that
   can sit in one of these headings has to be listed here: the heading paints its own text with a
   clipped gradient, and a child left out of this list inherits `-webkit-text-fill-color:
   transparent` and comes out as an empty pill in dark mode -- which is exactly what
   .student-detail__identity did on the detail pages. */
[data-bs-theme=dark] :is(.pl-title, .cm-title, .cm-h2) :is(.material-symbols-outlined, .badge, .pl-total, .cm-status-badge, .student-detail__identity),
html.dark :is(.pl-title, .cm-title, .cm-h2) :is(.material-symbols-outlined, .badge, .pl-total, .cm-status-badge, .student-detail__identity) {
  background-image: none;
  -webkit-text-fill-color: currentColor;
}

/* The dashboard/profile shell colours its own headings (`.ms-theme .cm-shell .cm-title`, the
   panel-scoped `.cm-h2`), which outranks the block above — the gradient has to be repeated at
   that depth to reach them. */
[data-bs-theme=dark] .ms-theme .cm-shell :is(.pl-title, .cm-title, .cm-h2),
html.dark .ms-theme .cm-shell :is(.pl-title, .cm-title, .cm-h2) {
  background-image: linear-gradient(128.82deg, #fff 1%, var(--ms-titleRampDark) 99.69%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  max-width: 100%;
}

[data-bs-theme=dark] .ms-theme .cm-shell :is(.pl-title, .cm-title, .cm-h2) :is(.material-symbols-outlined, .badge, .pl-total, .cm-status-badge, .student-detail__identity),
html.dark .ms-theme .cm-shell :is(.pl-title, .cm-title, .cm-h2) :is(.material-symbols-outlined, .badge, .pl-total, .cm-status-badge, .student-detail__identity) {
  background-image: none;
  -webkit-text-fill-color: currentColor;
}

/* The two flex-row headers keep solid ink (see the note above): one legible colour, the same the
   dashboard already gives its headings. Repeated inside .cm-shell, which colours its own. */
[data-bs-theme=dark] :is(.detail-section > .card-header, .detail-page__actions-card > .card-header),
html.dark :is(.detail-section > .card-header, .detail-page__actions-card > .card-header),
[data-bs-theme=dark] .ms-theme .cm-shell :is(.detail-section > .card-header, .detail-page__actions-card > .card-header),
html.dark .ms-theme .cm-shell :is(.detail-section > .card-header, .detail-page__actions-card > .card-header) {
  background-image: none;
  color: var(--cm-dashboard-text, #eff1f3);
  -webkit-text-fill-color: currentColor;
}

.ms-applying {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--ms-bg) 55%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 140ms ease;
}
.ms-applying.is-visible {
  opacity: 1;
}

.ms-applying__card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(26rem, 100%);
  padding: 1rem 1.25rem;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.ms-applying__spinner {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid color-mix(in srgb, var(--ms-orange) 30%, transparent);
  border-top-color: var(--ms-orange);
  border-radius: 50%;
  animation: ms-applying-spin 0.7s linear infinite;
}

.ms-applying__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ms-applying__title {
  color: var(--ms-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.ms-applying__message {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

@keyframes ms-applying-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-applying {
    transition: none;
  }
  .ms-applying__spinner {
    animation-duration: 2.4s;
  }
}
/* ── Empty state ──────────────────────────────────────────────────────────────────────────────────
   A card whose body has nothing to show yet. The maintenance history built its own out of Bootstrap
   utilities (`text-center py-5` plus an inline font-size), and it came out with the glyph adrift on
   the left and a title in bold — the two things this design language does not do. It is a shape
   every listing eventually needs, so it lives here as a component rather than on one screen.

   It reads as a column with one voice per line: a quiet glyph, then WHAT is missing, then WHY the
   page exists at all. The hierarchy is carried by size and colour, as everywhere else — the title
   is 500 because it labels, the explanation is 400 because it is read, and nothing is bold. */
.ms-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

/* The glyph sits in a tile instead of floating bare at 2.5rem: at that size a lone outline icon
   reads as a broken image, and the tile gives it a footprint the eye can land on. The wash is mixed
   off the text token, so it inverts with the theme instead of needing a dark override. */
.ms-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--ms-radius-lg);
  background: color-mix(in srgb, var(--ms-text) 6%, transparent);
  color: var(--ms-text-muted);
}
.ms-empty__icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.ms-empty__title {
  margin: 0;
  color: var(--ms-text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* The measure is what makes this readable: a full-card line of muted 0.8rem is a paragraph nobody
   finishes. Capped and centred, it stays three or four short lines. */
.ms-empty__text {
  max-width: 34rem;
  margin: 0;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Anything the screen offers to DO about the emptiness goes last, after a little more air than the
   lines above give each other, so it does not read as a third line of copy. */
.ms-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Bootstrap's .text-warning utility (--bs-warning, #D97706) only reaches 3.32:1 on a light background —
   fine for a small icon accent, short of the 4.5:1 WCAG 1.4.3 floor once it colors a readable label
   too (e.g. "Sin documento" rows). Use this instead wherever the warning color wraps actual text. */
.text-warning-a11y {
  color: var(--ms-warning-text) !important;
}

/* --- Maintenance dashboard ----------------------------------------------------------------------
   The section's one screen that somebody opens without a question. Four shapes it needed and the
   panel did not have: a list of things falling due, a single big figure, a bar comparison, and a
   chart drawn on the server.

   Every colour is a token, so the whole block inverts with the theme instead of being redefined at
   night — the mistake that made the profile's dividers vanish in dark mode. */
/* The cards stack, and they need to READ as a stack. `.card.detail-section` only carries its
   bottom margin inside a `.detail-page`, and this screen is a `.person-list`, so the four cards came
   out welded into one slab with the section headers doing the only separating. Same 1.25rem the
   detail pages use — the gap is the design's, not this screen's. */
:is(.person-list--dashboard, .person-list--costs, .person-list--armoury) > :is(.card.detail-section, .card.pl-card) {
  margin-bottom: 1.25rem;
}

:is(.person-list--dashboard, .person-list--costs, .person-list--armoury) > :is(.card.detail-section, .card.pl-card):last-child {
  margin-bottom: 0;
}

/* The screen's ROW shape, used by both of its lists: things falling due, and orders nobody has
   touched. A mark on the left, the subject and what it is in the middle, and on the right the lapse
   over the date it counts from. Left and right are both two lines, loud over quiet, so the row has a
   spine instead of a title with a sentence trailing off the far edge. */
.ms-rowlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Aligned to the FIRST line, not centred on the pair. The mark and the date both belong to the
   subject; centring them across a two-line block floated them into the gap between the name and its
   kind, which is the misalignment — nothing on the row shared a baseline with anything else.
   `1.25rem` is the subject's own line box, so the three columns now sit on one line. */
.ms-rowlist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ms-rule);
  font-size: 0.8rem;
  line-height: 1.25rem;
}

.ms-rowlist__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ms-rowlist__item:first-child {
  padding-top: 0;
}

/* --- A list whose rows ARE the link ------------------------------------------------------------
   The whole row answers to the pointer, not just the four words of the title. The link is stretched
   over the row with an inset ::after rather than by wrapping the <li> in an <a>: the row holds a
   heading, a state and two dates, and swallowing all of it into one anchor is what makes a screen
   reader read the entire block as the name of a link.

   Uniform padding on every row here, unlike the plain list above: the first and last rows trim their
   padding to sit flush against the card, and a row with no top padding wears a lopsided ground the
   moment it has one. */
.ms-rowlist--linked > .ms-rowlist__item {
  position: relative;
  padding: 0.7rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--ms-radius);
  /* The divider stops being this row's own border: a border follows the corner radius the hover
     ground needs, so both ends of every rule curved away from the row below it. It is drawn instead
     as a straight line of its own, inset back to the text edge the rest of the panel's rules use. */
  border-bottom: 0;
  transition: background-color 0.15s ease;
}

.ms-rowlist--linked > .ms-rowlist__item::before {
  content: "";
  position: absolute;
  inset: auto 0.5rem 0;
  border-bottom: 1px solid var(--ms-rule);
  pointer-events: none;
}

.ms-rowlist--linked > .ms-rowlist__item:last-child::before {
  content: none;
}

.ms-rowlist--linked > .ms-rowlist__item:first-child {
  padding-top: 0.7rem;
}

.ms-rowlist--linked > .ms-rowlist__item:last-child {
  padding-bottom: 0.7rem;
}

/* :focus-within as well as :hover — the row is reachable by keyboard through the link inside it, and
   a ground that only answers to the mouse leaves that reader with nothing. */
/* A translucent tint rather than one of the surface tokens: these rows sit on the card in one list
   and inside a well in the other, and a ground stated as a colour can only be right on one of them.
   10%, not the 6% this started at — over a well that is already off-white, 6% of primary was a
   difference the eye had to be told about. */
.ms-rowlist--linked > .ms-rowlist__item:hover,
.ms-rowlist--linked > .ms-rowlist__item:focus-within {
  background: color-mix(in srgb, var(--ms-primary) 10%, transparent);
}

/* The title answers with the row, not only when the pointer is on the four words themselves — which
   is what made a row-wide target still feel like a text link. */
.ms-rowlist--linked > .ms-rowlist__item:hover .ms-rowlist__subject,
.ms-rowlist--linked > .ms-rowlist__item:focus-within .ms-rowlist__subject {
  color: var(--ms-primary);
}

.ms-rowlist--linked .ms-rowlist__subject::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .ms-rowlist--linked > .ms-rowlist__item {
    transition: none;
  }
}
/* --- A list of people laid out as a grid --------------------------------------------------------
   For a roster that is only names (a promotion's students): one column of names on a wide card was a
   table with nothing but its first column. The rows flow into as many columns as fit, and with no
   second line to separate there are no rules between them — the hover ground marks the row. */
.ms-rowlist--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  column-gap: 1rem;
  row-gap: 0.15rem;
}

.ms-rowlist--grid > .ms-rowlist__item {
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-bottom: 0;
}

.ms-rowlist--grid > .ms-rowlist__item:first-child,
.ms-rowlist--grid > .ms-rowlist__item:last-child {
  padding-block: 0.45rem;
}

.ms-rowlist--grid > .ms-rowlist__item::before {
  content: none;
}

.ms-rowlist--grid:not(.ms-rowlist--linked) > .ms-rowlist__item {
  margin-inline: -0.5rem;
}

/* A person's name and surnames each take a capital, whatever case the record stored. */
.ms-rowlist__subject--name {
  text-transform: capitalize;
}

/* The mark in a token of its own tint, the shape the panel already uses for a monogram: a loose icon
   on a white row is a glyph floating in space, and it was carrying the whole state of the row on
   nothing but its colour. The disc gives the colour somewhere to live and the row a left edge. */
.ms-rowlist__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ms-text-muted) 10%, transparent);
  color: var(--ms-text-muted);
}
.ms-rowlist__mark .material-symbols-outlined {
  font-size: 1.05rem;
  line-height: 1;
}

/* Three tones, which is what colour can carry honestly here: already wrong, about to be, and
   stopped. An ITV that expired is not the same call to action as one due in seven weeks. */
.ms-rowlist__item.is-danger .ms-rowlist__mark {
  background: color-mix(in srgb, var(--ms-danger) 12%, transparent);
  color: var(--ms-danger);
}

.ms-rowlist__item.is-warn .ms-rowlist__mark {
  background: color-mix(in srgb, var(--ms-warning) 14%, transparent);
  color: var(--ms-warning);
}

/* Two more, for lists whose rows are steps rather than deadlines (a workbook's plans): done, and the
   one in hand. Additive — the lists above never set them. */
.ms-rowlist__item.is-ok .ms-rowlist__mark {
  background: color-mix(in srgb, var(--ms-success) 14%, transparent);
  color: var(--ms-success);
}

.ms-rowlist__item.is-info .ms-rowlist__mark {
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
  color: var(--ms-primary);
}

.ms-rowlist__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.ms-rowlist__subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-text);
  /* 400: this is a value being read, not a label doing the rotulado. The tone of the mark and the
     sentence on the right already carry the urgency — see the profile screen's settled weights. */
  font-weight: 400;
  text-decoration: none;
}

.ms-rowlist__subject:hover {
  color: var(--ms-primary);
}

.ms-rowlist__what {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1rem;
}

/* The right column mirrors the left: two lines, loud over quiet. Tabular figures so several rows
   line up down the column instead of each date starting wherever its digits fall. */
.ms-rowlist__when {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* How far off it is — the thing the row is actually for, so it carries the tone. */
.ms-rowlist__lapse {
  color: var(--ms-text);
  font-size: 0.8rem;
  line-height: 1.25rem;
}

.ms-rowlist__item.is-danger .ms-rowlist__lapse {
  color: var(--ms-danger);
}

.ms-rowlist__item.is-warn .ms-rowlist__lapse {
  color: var(--ms-warning);
}

.ms-rowlist__on {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1rem;
}

/* One figure that IS the answer: the money, big, with what it covers underneath so the number is
   never read without its span. */
.ms-figure {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ms-figure__value {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ms-text);
  font-variant-numeric: tabular-nums;
}

.ms-figure__label {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
}

/* Bars from a common baseline, not a pie: comparing lengths is the one comparison the eye does well,
   and there is no radius here worth the reader's arithmetic. */
.ms-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* --- The inventory label -------------------------------------------------------------------------
   A QR is read by a camera hunting dark modules on a light ground, and the margin around it — the
   quiet zone — is part of the symbol, not padding. So the plate is white in BOTH themes: on the navy
   card the code was sitting on a dark quiet zone, which is a label a phone can fail to see. This is
   the one place in the panel that does not invert, and it does not invert on purpose. */
.ms-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--ms-radius);
  background: #ffffff;
}

.ms-qr__code {
  display: block;
  width: 100%;
  /* The plate's own width, less its quiet zone: the label is read by a camera across a room, and a
     cap that leaves the card half empty is holding the symbol below the size the space allows. */
  max-width: 18rem;
  height: auto;
  /* A small bitmap blown up: smoothing turns crisp modules into grey mush, which is the one thing a
     scanner cannot forgive. */
  image-rendering: pixelated;
}

.ms-qr__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.75rem;
  text-align: center;
}

.ms-qr__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;
}

/* The code is DATA, so it is not uppercased and it is set to line up: somebody reads this against the
   sticker on the thing, character by character. */
.ms-qr__code-text {
  color: var(--ms-text);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* The piltra QR as a button that opens its enlarged copy: no UA chrome, the image keeps its own size. */
.piltra-qr-zoom {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.piltra-qr-zoom:focus-visible {
  outline: 2px solid var(--ms-primary);
  outline-offset: 2px;
}

/* The enlarged piltra QR: as big as the viewport lets it be, so it can be projected or read across
   a room. */
.piltra-qr-dialog__plate {
  padding: 1.5rem;
}

.piltra-qr-dialog__code {
  max-width: min(28rem, 70vh);
}

/* Who is carrying a weapon, under the chip that says it is out. Its own two lines because the name is
   the thing somebody may have to act on, and it had been living in `.form-text` — the smallest,
   quietest type the panel has, turned red when overdue, which is the least legible way to write it. */
.ms-holder {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.4rem;
  margin-top: 0.3rem;
}

.ms-holder__name {
  color: var(--ms-text);
  font-size: 0.8rem;
}

.ms-holder__since {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* --- The arms review ------------------------------------------------------------------------------
   The rack as one object: a well holding what there is to look for, with its own head, and the act of
   signing for it kept below a rule. Loose checkboxes on the card said nothing about where the looking
   ended and the recording began. */
.ms-review {
  border-radius: var(--ms-radius);
  background: var(--ms-bg);
  border: 1px solid var(--ms-border);
  overflow: hidden;
}

/* Night: the well separates by tone, so the hairline goes — the inversion every field in the panel
   makes. */
[data-bs-theme=dark] .ms-review,
html.dark .ms-review {
  border-color: transparent;
}

.ms-review__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ms-text) 8%, transparent);
}

.ms-review__caption {
  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;
}

.ms-review__count {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* A link, not a button: it changes what is ticked, it does not submit anything, and dressing it as a
   button would put a second thing to press beside the one that records the review. */
.ms-review__all {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ms-primary);
  font-size: 0.72rem;
  cursor: pointer;
}

.ms-review__all:hover {
  text-decoration: underline;
}

.ms-review__list {
  padding: 0.5rem 0.6rem;
}

/* The code is data beside the name: quiet, and set to line up down the column. */
.ms-review__code {
  margin-left: 0.35rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* A weapon that is already out. It stays tickable — somebody may genuinely have found it back in the
   rack, and that disagreement is exactly what a review is for — but it says what the register thinks
   before anybody ticks it. */
.ms-review__out {
  display: block;
  color: var(--ms-warning);
  font-size: 0.72rem;
  line-height: 1rem;
}

/* --- Handing a weapon over ------------------------------------------------------------------------
   The dialog's own two pieces: what is being handed over, and who it was picked for. Everything else
   in it is the panel's — the search pill, the row list, the dialog shell. */
.ms-issue__subject {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ms-radius);
  background: var(--ms-bg);
}

.ms-issue__subject-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;
  flex: 1 0 100%;
}

.ms-issue__subject-name {
  color: var(--ms-text);
  font-size: 0.9375rem;
}

/* The code is data, so it keeps its case and lines its digits up. */
.ms-issue__subject-code {
  color: var(--ms-text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* The person picked, said in words beside the button that acts on it. */
.ms-issue__chosen {
  margin-right: auto;
  color: var(--ms-text-muted);
  font-size: 0.8rem;
}

/* The chosen row holds its ground after the pointer leaves — a hover that vanishes is not a choice
   somebody can check before they press Entregar. */
.ms-rowlist--linked > .ms-rowlist__item.is-chosen {
  background: color-mix(in srgb, var(--ms-primary) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ms-primary) 45%, transparent);
}

.ms-rowlist--linked > .ms-rowlist__item.is-chosen .ms-rowlist__subject {
  color: var(--ms-primary);
}

/* Rows inside the dialog are picked, not followed, so the whole row is the target and it says so. */
#issue-people > .ms-rowlist__item {
  cursor: pointer;
}

/* A ceiling as well as a page. The page keeps the pane a fixed height on a normal screen; this stops
   a short window — a laptop at 700px, the dialog's own chrome above and below it — from pushing the
   confirm button off the bottom, which is the one control that must never be out of reach. */
#issue-people {
  max-height: min(24rem, 42vh);
  /* The rows bleed 0.5rem past their own box so the hover ground is wider than the text (see
     `.ms-rowlist--linked`). Inside a scroll container that bleed IS overflow, which is where the
     horizontal bar came from. The padding gives the bleed somewhere to live inside the box. */
  padding-inline: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-color, var(--ms-primary)) 35%, transparent) transparent;
}

/* The pager: two of the panel's icon buttons and what is between them, said in words. */
.ms-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ms-pager__count {
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.ms-pager .pl-filter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Card note ----------------------------------------------------------------------------------
   What a card is about, said before its contents and sized like the caveat it is. Body-size text
   running the full width of a wide card is a paragraph the reader has to finish before reaching the
   thing they came for; at label size and capped, it is read or skipped at a glance. */
.ms-cardnote {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1.15rem;
}

/* --- The spending band -------------------------------------------------------------------------
   The figure and the caveat side by side: the number is the answer, the paragraph is the small print,
   and stacking them made the reader work through the small print to reach the answer. On a narrow
   card they stack back, in that order. */
.ms-spend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.ms-spend__total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ms-spend__value {
  color: var(--ms-text);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ms-spend__span {
  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;
}

/* The small print, and sized like it: capped so it wraps into a block beside the figure instead of
   running the full width of a wide card as one long line nobody tracks to the end of. */
.ms-spend__note {
  flex: 1 1 22rem;
  max-width: 34rem;
  margin: 0;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
  line-height: 1.15rem;
}

/* A row is its own line — label and amount above, the bar full width beneath — rather than three
   columns sharing one. The bars all start at the same place and run the same distance, which is the
   only reason to draw them at all. */
.ms-bars__row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.ms-bars__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.ms-bars__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-text);
}

.ms-bars__track {
  height: 0.5rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-text-muted) 20%, transparent);
  overflow: hidden;
}

/* The rail is the same object at night, so it is mixed the same way — but against a navy card 20% of
   the muted ink disappears, and an invisible rail is the empty rows losing their line altogether. */
[data-bs-theme=dark] .ms-bars__track,
html.dark .ms-bars__track {
  background: color-mix(in srgb, var(--ms-text) 16%, transparent);
}

.ms-bars__fill {
  display: block;
  height: 100%;
  border-radius: var(--ms-radius-pill);
  background: var(--ms-primary);
}

.ms-bars__value {
  flex: 0 0 auto;
  color: var(--ms-text);
  font-variant-numeric: tabular-nums;
}

/* The share, quiet and after the money: it explains the bar, it is not a second figure. */
.ms-bars__share {
  margin-left: 0.4rem;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
}

/* A category that cost nothing keeps its line AND its rail: an empty track at full length is the
   reading — nothing was spent here — and hiding it left a gap that looked like a bar failing to draw.
   Only the words go quiet, so the eye still lands on the categories that have something in them. */
.ms-bars__row.is-empty .ms-bars__label,
.ms-bars__row.is-empty .ms-bars__value {
  color: var(--ms-text-muted);
}

/* The activity chart. Drawn on the server as plain SVG — no library, no canvas, no script — so it
   survives an htmx swap and inherits the theme through these tokens. */
.ms-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.ms-chart__axis {
  stroke: var(--ms-rule);
  stroke-width: 1;
}

.ms-chart__grid {
  stroke: var(--ms-rule);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.ms-chart__tick,
.ms-chart__label {
  fill: var(--ms-text-muted);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.ms-chart__label {
  text-anchor: middle;
}

.ms-chart__bar.is-opened {
  fill: var(--ms-primary);
}

/* Closed is the same hue at rest, lighter: the pair is one story told twice, not two subjects. */
.ms-chart__bar.is-closed {
  fill: color-mix(in srgb, var(--ms-primary) 35%, transparent);
}

.ms-chart__legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--ms-text-muted);
}

.ms-chart__key {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ms-chart__key::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
}

.ms-chart__key.is-opened::before {
  background: var(--ms-primary);
}

.ms-chart__key.is-closed::before {
  background: color-mix(in srgb, var(--ms-primary) 35%, transparent);
}

/* One entry per line with its date on the right — the scan list's other shape, for when each row
   carries a fact of its own rather than only a name. */
.ms-scanlist--rows {
  grid-template-columns: 1fr;
}

.ms-scanlist--rows > li {
  border-bottom: 1px solid var(--ms-rule);
}

.ms-scanlist--rows > li:last-child {
  border-bottom: 0;
}

.ms-scanlist__aside {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--ms-text-muted);
  font-size: 0.72rem;
}

/* A counter tile that has something to say. The tint is the whole signal — the figure keeps the
   size and weight every other tile has, because a number that grows when it is bad is a number
   somebody learns to read as a shape instead of a quantity. */
.cm-counter-card.is-warn,
.cm-counters .cm-counter-card.is-warn {
  border-color: color-mix(in srgb, var(--ms-warning) 45%, transparent);
  background: color-mix(in srgb, var(--ms-warning) 8%, transparent);
}

/* At night the tint has to be mixed INTO the card, not laid over it: 8% of amber on `transparent`
   over a navy panel is 92% of the navy showing through, which is why the one tile that is supposed to
   be warning-coloured came out as the only grey slab on the screen. The border goes for the reason
   every dark card here drops its outline, and the amber label and figure carry the state instead. */
/* At night these tiles sit INSIDE a card, not on the shell. `--ms-surface` is what that card is
   already painted, so the four tiles dissolved into their own container and only the outlined one
   could be found. They become a recessed well instead — the same `--ms-bg` the fold below them uses,
   which is how dark treats an inner panel throughout this application.

   Scoped to this screen: on the control panel the tiles sit on the shell gradient, where the surface
   tone is the one that separates them and this would flatten them instead. */
[data-bs-theme=dark] :is(.person-list--dashboard, .person-list--costs, .detail-page) .cm-counters .cm-counter-card,
html.dark :is(.person-list--dashboard, .person-list--costs, .detail-page) .cm-counters .cm-counter-card {
  /* Published as a token so the warn tile below can follow the ground its neighbours are on without
     either rule having to know which screen it is. */
  --ms-tile-ground: var(--ms-bg);
  background: var(--ms-tile-ground);
}

[data-bs-theme=dark] :is(.person-list--dashboard, .person-list--costs, .detail-page) .cm-counters a.cm-counter-card:hover,
html.dark :is(.person-list--dashboard, .person-list--costs, .detail-page) .cm-counters a.cm-counter-card:hover {
  background: color-mix(in srgb, var(--ms-primary) 14%, var(--ms-bg));
}

/* At night the state is a RING, not a wash. Amber mixed into navy at any percentage low enough to
   keep the figure legible comes out as mud — which is what the tinted ground did on the one tile that
   is supposed to be the readable one. So the card keeps the ground every other tile has and says what
   it is with an outline and an amber mark: colour where colour is legible, and nowhere else. */
[data-bs-theme=dark] :is(.cm-counter-card, .cm-counters .cm-counter-card).is-warn,
html.dark :is(.cm-counter-card, .cm-counters .cm-counter-card).is-warn {
  border-color: transparent;
  /* Whatever ground its neighbours are standing on — the card's well when the tiles are inside a
     card, the surface when they sit on the page. The ring is what marks this one out, and a tile
     also lifted off the ground would be saying the same thing twice in two different languages. */
  background: var(--ms-tile-ground, var(--ms-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ms-warning) 55%, transparent);
}

[data-bs-theme=dark] :is(.cm-counter-card, .cm-counters .cm-counter-card).is-warn .cm-counter-icon,
html.dark :is(.cm-counter-card, .cm-counters .cm-counter-card).is-warn .cm-counter-icon {
  color: var(--ms-warning);
}

/* A field the sheet REPORTS rather than asks for: same height and rhythm as an input so a form does not
   go ragged where a value stopped being editable, but obviously not a box you can type in. Used where a
   value became the consequence of a recorded fact — a weapon's holder, its last review. */
.ms-readout {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0;
  color: var(--ms-text);
  font-size: 0.875rem;
}

/* ── Acta imprimible ────────────────────────────────────────────────────────
   Preview of the document that ActaRepository renders as PDF and AutoFirma signs. It keeps a paper
   palette in both themes deliberately: this is not a panel surface, it is a sheet of paper, and the
   night theme inverting it would show the reader something the printer never produces. Only the frame
   around it follows the theme. */
.acta-sheet {
  --acta-ink: #111;
  --acta-rule: #333;
  background: #fff;
  color: var(--acta-ink);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-md);
  padding: 1.25rem;
  font-size: 0.8125rem;
}
.acta-sheet .acta-sheet__title {
  text-align: center;
  font-weight: 500;
}
.acta-sheet .acta-sheet__banner {
  background: #d0d0d0;
  border: 2px solid #000;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem;
  margin-top: 0.25rem;
}
.acta-sheet .acta-sheet__date {
  text-align: center;
  margin: 0.75rem 0 0.5rem;
}
.acta-sheet .acta-sheet__info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.1rem 0.75rem;
  margin: 0.75rem 0;
}
.acta-sheet .acta-sheet__info dt {
  font-weight: 500;
}
.acta-sheet .acta-sheet__info dd {
  margin: 0;
}
.acta-sheet {
  /* A wide record scrolls inside its own sheet; the page never scrolls sideways. */
}
.acta-sheet .acta-sheet__scroll {
  overflow-x: auto;
}
.acta-sheet .acta-sheet__grades {
  width: 100%;
  border-collapse: collapse;
}
.acta-sheet .acta-sheet__grades th, .acta-sheet .acta-sheet__grades td {
  border: 1px solid var(--acta-rule);
  padding: 0.2rem 0.4rem;
}
.acta-sheet .acta-sheet__grades thead th {
  background: #d1d5da;
  text-align: center;
  font-weight: 500;
}
.acta-sheet .acta-sheet__grades .acta-sheet__c {
  text-align: center;
}
.acta-sheet .acta-sheet__grades .acta-sheet__none {
  text-align: center;
  padding: 1.25rem;
  color: #555;
}
.acta-sheet .acta-sheet__grades .acta-sheet__agg td {
  background: #ffff0b;
  font-weight: 500;
}
.acta-sheet .acta-sheet__signatures {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.6875rem;
}
.acta-sheet .acta-sheet__signatures td {
  border: 1px solid var(--acta-rule);
  padding: 0.3rem;
  vertical-align: middle;
}
.acta-sheet .acta-sheet__signatures .acta-sheet__sig-role td {
  font-weight: 500;
}
.acta-sheet .acta-sheet__signatures .acta-sheet__sig-name td {
  background: #e1e0e0;
}
.acta-sheet .acta-sheet__signed,
.acta-sheet .acta-sheet__pending {
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.acta-sheet .acta-sheet__signed {
  color: #0c5ab2;
  border: 1px solid #0c5ab2;
}
.acta-sheet .acta-sheet__signed-date {
  font-weight: 500;
}
.acta-sheet {
  /* An old October act's hand-drawn signature, at the size October printed it (utils/test_export.php). */
}
.acta-sheet .acta-sheet__drawn {
  display: block;
  margin: 0 auto 4px;
  max-width: 150px;
  max-height: 80px;
}
.acta-sheet {
  /* What is still missing has to look missing: an empty box, not a blank cell. */
}
.acta-sheet .acta-sheet__pending {
  color: #767676;
  border: 1px dashed #b5b5b5;
}
.acta-sheet .acta-sheet__official {
  width: 40%;
  margin: 0.75rem auto 0;
  padding: 0.25rem;
  text-align: center;
  font-weight: 500;
  color: #0c5ab2;
  border: 2px solid #0c5ab2;
}

/* ---------------------------------------------------------------------------
   Acta editor on a phone: the grade grid is 794px of table inside a 397px card, so it already
   scrolls sideways — but scrolling to reach the score field took the student's name off screen,
   and the table had shrunk the score inputs to 34px, which is not a target a thumb can hit.

   Two moves, both only below the tablet breakpoint (the fitted desktop grid is the approved design):
   the table takes its natural width so the 7rem the header asks for is actually honoured, and the
   student column pins to the left edge so you always see whose grade you are typing. The id column
   slides underneath it, which is why the pinned cells need an opaque ground of their own.
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .detail-page.acta-edit #notas-table {
    width: max-content;
    min-width: 100%;
  }
  .detail-page.acta-edit .acta-create__grades-head > tr > th:nth-child(2),
  .detail-page.acta-edit #notas-table > tbody > tr > td[data-acta-student-name] {
    position: sticky;
    left: 0;
    background-color: var(--ms-surface);
  }
  .detail-page.acta-edit #notas-table > tbody > tr > td[data-acta-student-name] {
    z-index: 1;
    box-shadow: inset -1px 0 0 var(--ms-rule);
  }
  .detail-page.acta-edit #notas-table input[data-acta-score] {
    min-width: 5rem;
    min-height: 44px;
  }
}
/* El calendario de comidas se dibuja con .table-bordered, que toma sus líneas de --bs-table-border-color
   → --ms-border (#1f2937). De noche ese tono es MÁS OSCURO que la tarjeta, así que la rejilla entera
   —que en esta pantalla ES la información: qué día, qué servicio— se desvanecía.
   Se cambia la VARIABLE que la utilidad lee, no el borde: así no hay que pelear con su !important. */
[data-bs-theme=dark] .meal-calendar,
html.dark .meal-calendar {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

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

/* Dining calendar on a phone: seven day columns plus the service column in 440px left each day 36px,
   and a 36px column holds none of what a meal card carries — measured cells wanted 80, 88, 90 and
   108px and simply ran over the column beside them. Squeezing the week to keep it all on screen only
   worked while the columns were wide enough to read.

   So below the tablet breakpoint the grid takes a width that fits its content and the card scrolls
   sideways, with the service column pinned so a row is always identifiable — the same pattern the
   acta grid uses. Above it, nothing changes: the fitted week is the approved design.
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .meal-calendar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .meal-calendar__table {
    width: max-content;
    min-width: 100%;
  }
  .meal-calendar__table .meal-calendar__day {
    width: 9.5rem;
  }
  .meal-calendar__table .meal-calendar__corner,
  .meal-calendar__table .meal-calendar__service {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ms-surface);
    box-shadow: inset -1px 0 0 var(--ms-rule);
  }
}
/* The wizard's step indicator is a nowrap row of equal steps, each floored at 4.5rem: six of them
   want 432px and a phone card gives 376, so the last step was drawn past the right edge of the
   screen — on a six-step wizard, the one step you cannot see is the one that tells you where the
   wizard ends. Below the tablet breakpoint the row scrolls, the same move .ms-segment makes with the
   tab strips it cannot fit. Above it nothing changes: the row fits and never scrolls. */
@media (max-width: 767.98px) {
  .ms-steps {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
    margin-top: -0.25rem;
    scrollbar-width: thin;
  }
}
/* The switch draws at 29×16px — the size it should be, and half the 44px a finger needs (WCAG 2.5.5).
   Growing the control would fix the target and break the drawing, and the drawing is approved; so the
   TARGET grows and the control does not. The overlay is centred on the switch and purely invisible:
   it adds the missing 15px of reach on each side and nothing else.

   On an input this rides on `appearance: none`, which Bootstrap already sets on .form-check-input —
   that is what makes a checkbox render pseudo-elements at all. Where a browser declines, the switch
   is exactly as it is today: the enhancement is additive, so it cannot regress anything.

   Only on touch-sized screens. On the desktop the pointer is precise and the row spacing is tighter,
   where a 44px invisible box around every switch would start eating its neighbours' clicks. */
@media (max-width: 767.98px) {
  .form-switch .form-check-input {
    position: relative;
  }
  .form-switch .form-check-input::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
}
[data-bs-theme=dark] .seat-create__summary,
[data-bs-theme=dark] .seat-create__summary-header,
[data-bs-theme=dark] .seat-create__summary-fact + .seat-create__summary-fact,
[data-bs-theme=dark] .seat-create__summary-access,
[data-bs-theme=dark] .seat-create__summary-metrics,
[data-bs-theme=dark] .seat-stat + .seat-stat, html.dark .seat-create__summary,
html.dark .seat-create__summary-header,
html.dark .seat-create__summary-fact + .seat-create__summary-fact,
html.dark .seat-create__summary-access,
html.dark .seat-create__summary-metrics,
html.dark .seat-stat + .seat-stat {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

@keyframes actaTreeRowIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.grade-template-gap {
  display: grid;
  gap: 0.6rem;
}

.grade-template-gap + .grade-template-gap {
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color);
}

.grade-template-gap__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.grade-template-gap__list {
  margin: 0;
  padding-left: 1.1rem;
}
.grade-template-gap__list li + li {
  margin-top: 0.2rem;
}
