.skip-link:focus {
  position: fixed;
  z-index: 1031;
  inset: .75rem auto auto .75rem;
}

.operator-sidebar-header {
  /* Align with the combined menu and link padding. */
  padding-inline-start: 1rem;
}

@container operator-sidebar (max-width: 5rem) {
  .operator-sidebar-header {
    padding-inline-start: 0;
  }
}

#institution-main:focus,
#institution-main > .page-view:focus {
  outline: none;
}

#institution-main .table-responsive:focus-visible {
  outline: 2px solid var(--tblr-primary);
  outline-offset: 2px;
}

.institution-workbench {
  --workbench-divider: var(--vben-border);
  --workbench-tint: var(--vben-primary-soft);
  display: grid;
  gap: var(--tblr-spacer-3);
}

.workbench-overview,
.workbench-panel {
  min-width: 0;
}

.workbench-overview {
  padding: 1.25rem 1.5rem;
}

.workbench-project-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
}

.workbench-overview dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  text-align: center;
}

.workbench-overview dl > div {
  min-width: 5.25rem;
  padding-inline: 1rem;
}

.workbench-overview dl > div + div {
  border-inline-start: 1px solid var(--workbench-divider);
}

.workbench-overview dt {
  color: var(--tblr-secondary-color);
  font-weight: 400;
}

.workbench-overview dd {
  margin: .25rem 0 0;
  color: var(--brand-navy);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.2;
}

.workbench-columns,
.workbench-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--tblr-spacer-3);
}

.workbench-panel-header {
  justify-content: space-between;
  gap: .5rem;
  min-height: 3.5rem;
  border-block-end: 0;
}

.workbench-projects,
.workbench-shortcuts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-block-start: 1px solid var(--workbench-divider);
  border-radius: 0 0 var(--tblr-border-radius) var(--tblr-border-radius);
}

.workbench-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workbench-shortcuts {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}

.workbench-project,
.workbench-shortcut {
  min-width: 0;
  box-shadow: 1px 0 var(--workbench-divider), 0 1px var(--workbench-divider);
}

.workbench-project {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 9rem;
  padding: 1rem;
}

.workbench-project h3 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.workbench-project h3 a:hover {
  text-decoration: none;
}

.workbench-icon {
  display: inline-grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .5rem;
  background: var(--workbench-tint);
  color: var(--brand-blue-dark);
}

.workbench-icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.workbench-project-detail,
.workbench-project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .375rem;
}

.workbench-project-detail {
  margin-block: .875rem;
  color: var(--tblr-secondary-color);
  font-size: .8125rem;
}

.workbench-project-footer {
  align-self: end;
}

.workbench-shortcut {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .5rem;
  padding: 1rem .5rem;
  color: var(--tblr-body-color);
  text-align: center;
}

.workbench-reminders li + li {
  border-block-start: 1px solid var(--workbench-divider);
}

.workbench-reminders {
  overflow: hidden;
  border-block-start: 1px solid var(--workbench-divider);
  border-radius: 0 0 var(--tblr-border-radius) var(--tblr-border-radius);
}

.workbench-reminder {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  color: var(--tblr-body-color);
}

.workbench-reminder-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.workbench-reminder-copy > span {
  display: block;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.institution-workbench time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.workbench-reminder time {
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.workbench-project:hover,
.workbench-shortcut:hover,
.workbench-reminder:hover {
  background: var(--workbench-tint);
  color: var(--brand-navy);
  text-decoration: none;
}

.workbench-project:has(a:focus-visible),
.workbench-shortcut:focus-visible,
.workbench-reminder:focus-visible {
  outline: 2px solid var(--tblr-primary);
  outline-offset: -2px;
}

@media (min-width: 1200px) {
  .workbench-columns {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

@media (max-width: 767.98px) {
  .workbench-overview {
    padding: 1rem;
  }

  .workbench-overview dl > div {
    min-width: 0;
    padding-inline: .375rem;
  }

  .workbench-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .workbench-projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-project {
    min-height: auto;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 0;
}

.facts > div {
  min-width: 0;
}

.facts dt {
  color: var(--tblr-secondary-color);
  font-size: var(--tblr-font-size-sm);
  font-weight: var(--tblr-font-weight-normal);
}

.facts dd {
  margin: .25rem 0 0;
  overflow-wrap: anywhere;
}

.date-range {
  font-variant-numeric: tabular-nums;
}

.date-range span {
  color: var(--tblr-secondary-color);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
  gap: .5rem;
}

.metrics dd {
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .5rem;
  margin-bottom: .75rem;
}

.inline-form .form-field {
  flex: 1 1 9rem;
  max-width: 21rem;
}

.roster-action + .roster-action {
  margin-top: .75rem;
}

details.row-actions {
  display: block;
  min-width: 5.5rem;
  white-space: normal;
}

.row-actions[open] {
  min-width: 12rem;
}

.row-actions .form-field {
  flex-basis: 100%;
}

.point-row {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) minmax(5rem, .65fr) minmax(7rem, 1fr) auto;
  align-items: end;
  gap: .5rem;
  padding-bottom: .75rem;
}

.point-row + .point-row {
  padding-top: .75rem;
  border-top: 1px solid var(--tblr-border-color);
}

.prose, .report-list p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.score-points, .report-list {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.score-points li + li, .report-list li + li {
  margin-top: .5rem;
}

.institution-content-list {
  overflow: hidden;
}

.institution-content-list .table {
  min-width: 30rem;
}

.institution-content-list .table :is(th, td):first-child,
.institution-content-list .cell-stack {
  text-align: start;
}

.institution-content-list .date-cell {
  white-space: nowrap;
}

.code-dialog code {
  overflow-wrap: anywhere;
}

.login-scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  inline-size: fit-content;
  max-inline-size: 100%;
  margin-inline: auto;
}

.login-code {
  place-items: center;
  width: min(100%, 14.75rem);
  aspect-ratio: 1;
}

.login-status {
  /* Status messages wrap within the width set by the scan instructions. */
  contain: inline-size;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.operator-notification-avatar .icon {
  width: 1rem;
  height: 1rem;
}

#notice[role="alert"] {
  --tblr-toast-color: var(--vben-danger);
}

@media (max-width: 767.98px) {
  .form-grid, .point-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .point-row > .btn {
    justify-self: start;
  }
}
.exam-metrics, .exam-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}

.exam-metrics dt { color: var(--tblr-secondary); font-weight: normal; }
.exam-metrics dd { font-size: 1.125rem; font-weight: 600; margin: 0; }
.exam-breakdown > * { min-width: 0; }
.exam-preserved { white-space: pre-wrap; overflow-wrap: anywhere; }

.student-record-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.student-record-filters .form-field { min-width: min(100%, 9rem); }
.student-record-filters .form-label { margin-bottom: 0.25rem; }
.student-record-filters .btn-list { margin-bottom: 0; }

.student-directory-filters {
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding-block: 0.25rem;
}

.student-directory-filters .form-field {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
}

.student-directory-filters .form-label {
  flex: none;
  margin-bottom: 0;
  white-space: nowrap;
}

.student-directory-filters .form-control { width: 11.25rem; }
.student-directory-filters .form-select { width: 9rem; }
.student-directory-filters .btn-list {
  flex: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.student-avatar { flex: none; object-fit: cover; }
.student-profile-editor { margin-top: 0.75rem; }
.student-profile-editor summary { cursor: pointer; }
.student-profile-facts dt { color: var(--tblr-secondary); font-weight: 500; }
.student-profile-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.student-note-form { margin-top: 0.75rem; }
.student-note-form summary { cursor: pointer; }
.student-followups { margin-top: 0.75rem; }
.student-followups article { border-top: 1px solid var(--tblr-border-color); padding: 0.875rem 0; }
.student-followups article:last-child { padding-bottom: 0; }
.student-timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.student-timeline li { border-top: 1px solid var(--tblr-border-color); padding: 0.875rem 0; }
.student-timeline li:last-child { padding-bottom: 0; }
.student-note-content { display: grid; gap: 0.5rem; }
.student-note-content dt { color: var(--tblr-secondary); font-weight: 500; }
.student-note-content dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.homeroom-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
