.menu-toggle,
.nav-heading,
.nav-backdrop {
  display: none;
}

.topbar-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  white-space: nowrap;
}

.topbar-user strong {
  font-size: 13px;
}

.topbar-user-meta {
  color: #b9c9c3;
  font-size: 11px;
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}

.page {
  padding-top: var(--space-6);
  padding-bottom: calc(var(--space-6) * 2);
}

.page-heading {
  margin-bottom: var(--space-5);
}

.offline-banner {
  display: block;
  padding: 10px 16px;
  color: #7d694f;
  background: #fbf3df;
  border-bottom: 1px solid #e8d9ab;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.offline-banner[hidden] {
  display: none;
}

.error-page {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.error-panel {
  width: min(100%, 560px);
  padding: 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
}

.error-code {
  margin-bottom: 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 30px;
}

.error-panel > p:not(.eyebrow) {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-heading {
  margin-bottom: var(--space-4);
}

.page-heading > div > :last-child,
.section-heading > div > :last-child {
  margin-bottom: 0;
}

.form-stack,
.form-grid {
  gap: var(--space-4);
}

.form-stack label,
.form-grid label,
.filter-bar label,
.toolbar-form label,
.officer-date-filter label,
.birth-date-fields label {
  gap: var(--space-2);
}

.filter-bar {
  gap: var(--space-3);
}

.stats {
  margin-bottom: var(--space-6);
}

fieldset {
  border: 1px solid var(--line);
  padding: 14px;
}

legend {
  font-weight: 800;
}

.birth-date-field,
.form-fieldset {
  min-width: 0;
  margin: 0;
}

.birth-date-fields {
  display: grid;
  grid-template-columns: minmax(72px, .7fr) minmax(120px, 1.4fr) minmax(90px, 1fr);
  gap: 8px;
}

.birth-date-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.birth-date-fields select {
  width: 100%;
  min-width: 0;
}

.session-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.recurring .check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check input {
  width: auto;
}

.weekday-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.settings-section {
  background: white;
  border-top: 3px solid var(--green);
  padding: var(--space-5);
}

.wide-setting {
  grid-column: 1 / -1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 42px;
}

.tag-list span {
  background: #edf5f1;
  padding: 5px 8px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: var(--space-4);
}

.no-pad {
  padding: 0;
}

.officer-list small {
  display: block;
  color: var(--muted);
}

.officer-page {
  padding-top: var(--space-2);
}

.officer-page .page-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.officer-page .page-heading h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.session-complete-tag {
  color: #3f6b27;
  font-weight: 700;
}

.officer-progress-chip {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 12px;
  color: var(--muted);
  background: #edf1ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.officer-sessions {
  display: grid;
  gap: var(--space-3);
}

.officer-toolbar {
  position: sticky;
  top: var(--topbar-height, 68px);
  z-index: 6;
  background: var(--paper);
  padding-bottom: 2px;
  margin-bottom: -2px;
}

.officer-session-dates {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: var(--space-2);
  padding: var(--space-2);
  background: #fff;
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.officer-session-dates::-webkit-scrollbar {
  display: none;
}

.officer-session-dates .date-box {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.officer-session-dates .date-box.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  scroll-snap-align: center;
}

.officer-session-dates .date-box.active span {
  color: rgba(255, 255, 255, .78);
}

.officer-session-dates .date-box.not-open {
  color: #8a5a1f;
  background: #f8e9df;
  border-color: #f0a860;
}

.officer-session-dates .date-box.not-open span {
  color: #8a5a1f;
}

.officer-session-dates .date-box.not-open.active {
  box-shadow: inset 0 0 0 2px #8a5a1f;
}

.officer-summary {
  margin-bottom: var(--space-3);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-3);
}

.officer-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.officer-summary-heading::-webkit-details-marker {
  display: none;
}

.officer-summary-heading::after {
  content: "Lihat +";
  flex-shrink: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.officer-summary[open] .officer-summary-heading::after {
  content: "Sembunyikan −";
}

.officer-summary-badge {
  padding: 3px 8px;
  color: #8a5a1f;
  background: #f8e9df;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.officer-summary-body {
  margin-top: var(--space-3);
}

.officer-summary-note {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 11.5px;
}

.officer-missing-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.officer-pending {
  margin-bottom: var(--space-3);
}

.officer-pending-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 8px;
  color: #fff;
  background: #8a5a1f;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(138, 90, 31, .3);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.officer-pending-toggle::-webkit-details-marker {
  display: none;
}

.officer-pending-toggle::after {
  content: "Tampilkan +";
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .4);
  font-size: 12px;
  font-weight: 700;
}

.officer-pending[open] .officer-pending-toggle::after {
  content: "Sembunyikan −";
}

.officer-pending-toggle:hover {
  background: #74491a;
}

.officer-pending-toggle:focus-visible {
  outline: 3px solid rgba(214, 167, 57, .6);
  outline-offset: 2px;
}

.officer-pending-toggle-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.officer-pending[open] .officer-pending-notice {
  margin-top: var(--space-2);
}

.notice-banner.officer-pending-notice {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: 0;
}

.officer-pending-notice .officer-missing-dates {
  margin-bottom: 0;
}

.date-box.missing {
  color: #8a5a1f;
  background: #f8e9df;
  border-color: #f0a860;
}

.date-box.missing span {
  color: #8a5a1f;
}

.officer-ranking-wrap {
  height: auto;
  max-height: 320px;
}

/* Session tabs (switch between classes on a multi-class day) */
.session-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-2);
  padding-bottom: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.session-tabs::-webkit-scrollbar {
  display: none;
}

.session-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 96px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.session-tab strong,
.session-tab span {
  display: block;
}

.session-tab strong {
  font-size: 13px;
  line-height: 1.2;
}

.session-tab span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.session-tab.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.session-tab.active span {
  color: rgba(255, 255, 255, .74);
}

.session-tab.saved::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.session-tab.active.saved::after {
  background: var(--gold);
}

/* One panel per session/class; JS shows only the active one */
.officer-session-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.officer-session-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.officer-session-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.officer-session-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.officer-session-heading .all-present {
  flex-shrink: 0;
}

.session-gate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-3);
  padding: 9px 12px;
  background: #fbf3df;
  border: 1px solid #e8d9ab;
  border-radius: 8px;
  color: #7d694f;
  font-size: 13px;
  line-height: 1.4;
}

.session-gate.past {
  background: #f0f4f3;
  border-color: #ccd8d5;
  color: #4e625d;
}

.session-message {
  flex: 1;
  min-width: 0;
}

.session-message strong {
  font-weight: 800;
}

.edit-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #aabbb7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.edit-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.roster-tools {
  padding: 0 0 var(--space-2);
}

.roster-tools label,
.roster-tools input {
  display: block;
  width: 100%;
}

form[data-session-locked] .quick-status {
  opacity: .55;
}

.roster-scroll {
  max-height: calc(100dvh - var(--topbar-height, 68px) - 210px);
  min-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-color: #b8c8c3 transparent;
}

.roster-columns,
.roster-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  column-gap: var(--space-2);
  padding-inline: var(--space-2);
}

.roster-columns-status,
.quick-status {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: var(--space-1);
}

.roster-columns {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.roster-columns-status span {
  text-align: center;
}

.roster-row {
  border-top: 1px solid #edf1ef;
  padding-block: 6px;
}

.roster-name {
  min-width: 0;
}

.roster-name strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-filled-by {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.reason-note {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #1e4f8f;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  }

  .status-dot:active {
    transform: scale(.92);
  }
}

.status-dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-dot:has(input:focus-visible) {
  outline: 3px solid rgba(24, 112, 84, .25);
  outline-offset: 2px;
}

.status-dot.status-1:has(input:checked) { border-color: #8fbc7c; color: white; background: #3f6b27; }
.status-dot.status-2:has(input:checked) { border-color: #f0a860; color: white; background: #8a5a1f; }
.status-dot.status-3:has(input:checked) { border-color: #6f9ceb; color: white; background: #1e4f8f; }
.status-dot.status-4:has(input:checked) { border-color: #d17fc0; color: white; background: #7a3470; }

form[data-session-locked] .status-dot {
  border-color: #d7dfdd;
  color: var(--muted);
  background: #e9edec;
  cursor: not-allowed;
}

form[data-session-locked] .status-dot:has(input:checked) {
  border-color: #5f6c68;
  color: white;
  background: #5f6c68;
}

.roster-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0 0;
  margin-top: var(--space-2);
  background: white;
  border-top: 1px solid var(--line);
}

.roster-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.roster-summary span {
  padding: 4px 7px;
  background: #edf1ef;
  border-radius: 3px;
  font-size: 11px;
}

.roster-summary .pending {
  color: #7a3470;
  background: #f8ecec;
}

/* Reason dialog content (chrome is the shared dialog{} rule in app.css) */
.dialog-body {
  padding: 20px;
}

.dialog-kicker {
  margin: 0 0 4px;
  color: #1e4f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dialog-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.dialog-help {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reason-input {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #bccbc7;
  border-radius: 8px;
  resize: vertical;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.reason-input[aria-invalid="true"] {
  border-color: #b64b55;
  box-shadow: 0 0 0 3px rgba(182, 75, 85, .12);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  min-height: 22px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.field-error {
  color: #b64b55;
  font-weight: 700;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 8px;
}

.dialog-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dialog-button.primary {
  border-color: #1e4f8f;
  background: #1e4f8f;
  color: white;
}

.chart-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.segmented-control {
  display: inline-flex;
  margin: 0;
  padding: 3px;
  background: #edf1ef;
  border: 0;
  border-radius: 5px;
}

.chart-figure {
  margin: 0;
}

.chart-status-legend {
  justify-content: center;
  margin: var(--space-2) 0 0;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--muted);
}

.legend-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-status strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  font-size: 11px;
}

.legend-status.status-1 strong { background: #3f6b27; }
.legend-status.status-2 strong { background: #8a5a1f; }
.legend-status.status-3 strong { background: #1e4f8f; }
.legend-status.status-4 strong { background: #7a3470; }

.segmented-control button {
  min-height: 36px;
  padding: 6px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--green-dark);
  background: white;
  box-shadow: 0 1px 3px rgba(20, 47, 39, .12);
}

.segmented-control button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.segmented-control button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.chart-toolbar label {
  display: grid;
  gap: var(--space-1);
  min-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-toolbar label[hidden] {
  display: none;
}

.chart-toolbar select {
  min-height: 38px;
  padding: 7px 10px;
}

.chart-empty {
  display: grid;
  min-height: 280px;
  margin: 0;
  place-items: center;
  color: var(--muted);
}

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

.report-table {
  min-width: 680px;
  table-layout: fixed;
}

.report-table th,
.report-table td {
  padding: var(--space-2) 10px;
  line-height: 1.3;
}

.report-table th {
  background: #f7f8f5;
  font-size: 10px;
}

.report-table th:first-child {
  width: 108px;
}

.report-table-actions {
  display: none;
}

.report-table th:nth-child(2) {
  width: auto;
}

.report-table th:nth-child(n + 3):not(:last-child) {
  width: 60px;
}

.report-table th:last-child {
  width: 88px;
}

.report-table th:nth-child(n + 3),
.report-table td:not(.report-date):not(.report-activity) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.report-table tbody tr:hover td {
  background: #f7faf8;
}

.report-date {
  vertical-align: top;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.report-activity strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.report-activity small {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.report-rate {
  color: var(--green-dark);
  font-size: 13px;
}

.self-contact {
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
}

.self-contact summary {
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 16px;
}

.personal-page {
  max-width: 860px;
}

.form-page {
  max-width: 980px;
}

.page-form {
  display: grid;
  gap: var(--space-4);
}

.form-section {
  padding: var(--space-5);
  background: white;
  border-top: 3px solid var(--green);
}

.form-section h2 {
  margin-bottom: var(--space-4);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.date-field {
  display: grid;
  gap: 6px;
  max-width: 260px;
  font-size: 12px;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(360px, 1.2fr);
  gap: var(--space-4);
  align-items: start;
}

.assigned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assigned-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 10px;
  background: #edf5f1;
  border-radius: 3px;
}

.assigned-chip form {
  display: contents;
}

.assigned-chip.has-presensi {
  background: #fbf0da;
}

.confirm-presensi {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #8a6415;
}

.confirm-presensi input {
  width: 14px;
  height: 14px;
}

.assigned-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}

.assigned-remove:hover {
  color: var(--coral);
}

.schedule-page {
  padding-top: 34px;
}

.schedule-page .page-heading {
  margin-bottom: 20px;
}

.period-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.period-picker {
  position: relative;
  min-width: 150px;
  min-height: 39px;
}

.period-picker-trigger {
  width: 100%;
  min-height: 39px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.period-picker-trigger:hover,
.period-picker-trigger:focus-visible {
  border-color: var(--green);
  background: #f4f7f5;
}

.period-picker-trigger strong {
  min-width: 150px;
  text-align: center;
}

.period-picker-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 50%;
  width: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 12px;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(24, 48, 42, .16);
}

.period-picker-panel[hidden] {
  display: none;
}

.period-picker-panel label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.period-picker-panel select,
.period-picker-panel input {
  width: 100%;
}

.period-picker-panel .button {
  grid-column: 1 / -1;
}

.schedule-group + .schedule-group {
  margin-top: 24px;
}

.schedule-month + .schedule-month {
  margin-top: 32px;
}

.schedule-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}

.schedule-month-heading h2 {
  margin: 0;
  font-size: 21px;
}

.schedule-month-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.schedule-group-heading h2,
.schedule-group-heading h3 {
  margin: 0;
  font-size: 18px;
}

.schedule-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.participant-table-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.participant-group-heading {
  align-items: center;
  min-height: 54px;
  margin-bottom: 0;
  padding: 10px 12px;
  background: white;
  border-left: 3px solid var(--green);
  cursor: pointer;
  list-style: none;
}

.participant-group-heading::-webkit-details-marker {
  display: none;
}

.participant-group-heading:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.participant-group-heading h2 {
  flex: 1;
  min-width: 0;
}

.participant-group[open] > .participant-group-heading {
  margin-bottom: 8px;
}

.participant-group-toggle {
  min-width: 88px;
  text-align: right;
}

.participant-group-toggle::after {
  content: " +";
  font-size: 16px;
}

.participant-group-toggle .hide-label,
.participant-group[open] .participant-group-toggle .show-label {
  display: none;
}

.participant-group[open] .participant-group-toggle .hide-label {
  display: inline;
}

.participant-group[open] .participant-group-toggle::after {
  content: " −";
}

.participant-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.participant-counts .participant-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex: 0 0 100px;
  gap: 4px;
  padding: 7px 10px;
  color: #315047;
  background: #edf2ef;
  border: 1px solid #d9e2dd;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1;
}

.participant-counts .participant-count.total {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.participant-counts .participant-count.male {
  color: #1e4f8f;
  background: #e8f1f5;
  border-color: #cddfe8;
}

.participant-counts .participant-count.female {
  color: #7a3470;
  background: #f8ecec;
  border-color: #ead2d4;
}

.participant-counts .participant-count span {
  color: inherit;
  font-size: 11px;
}

.compact-events .event-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 14px;
}

.compact-events .event-row time {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 48px;
}

.compact-events .event-row time strong {
  font-size: 22px;
  line-height: 1;
}

.compact-events .event-row time span {
  font-size: 10px;
  line-height: 1.2;
}

.compact-events .event-main h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.event-place {
  color: var(--muted);
  font-size: 12px;
}

.series-period {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.assignment-status {
  padding: 3px 6px;
  color: #8a5a1f;
  background: #f8e9df;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.assignment-status.assigned {
  color: #3f6b27;
  background: #e4f2ec;
}

.compact-events .session-chip {
  margin: 0;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.4;
}

.compact-events .event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-self: center;
}

.attendance-links {
  grid-column: 2 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.attendance-links summary {
  width: fit-content;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.attendance-links summary span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  margin-left: 4px;
  place-items: center;
  color: var(--ink);
  background: #edf1ef;
  border-radius: 3px;
}

.attendance-link-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.attendance-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #f4f7f5;
  border: 1px solid var(--line);
}

.attendance-link-row > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attendance-link-row strong {
  font-size: 12px;
}

.attendance-link-row small {
  color: var(--muted);
}

.attendance-link-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.danger-section {
  border-top-color: var(--coral);
}

.series-dates {
  grid-column: 2 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 4px;
}

.date-box {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--ink);
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
}

.date-box:hover,
.date-box:focus-visible {
  border-color: var(--green);
  background: #e7f2ed;
}

.date-box strong {
  font-size: 13px;
  line-height: 1;
}

.date-box span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.compact-events .button.small {
  padding: 6px 10px;
  font-size: 12px;
}

.form-stack .check-row,
.form-grid .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.form-stack .check-row input,
.form-grid .check-row input {
  width: auto;
  margin: 0;
}

.assignment-preview {
  padding: 10px 12px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.assignment-preview-count {
  margin: 0;
  font-weight: 800;
  color: var(--green);
}

.assignment-preview-names {
  margin: 4px 0 0;
  color: var(--muted);
}

.assignment-cross-class-warning.notice-banner {
  margin-top: 0;
}

.secure-panel {
  max-width: 620px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.revealed-contact {
  font: 2.2rem Georgia, serif;
  overflow-wrap: anywhere;
}

.inline-icon {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.protected-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.toolbar-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: white;
  border-top: 3px solid var(--gold);
}

.toolbar-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.toolbar-form label[hidden] {
  display: none;
}

.place-form {
  grid-template-columns: 1.1fr 1.8fr .7fr .7fr auto;
}

.officer-form {
  grid-template-columns: repeat(7, minmax(140px, 1fr)) auto;
}

.officer-form .button {
  white-space: nowrap;
}

.settings-table td:nth-child(2) {
  color: var(--muted);
}

.table-action {
  text-align: right;
}

.order-input {
  width: 84px;
  min-height: 38px;
  text-align: center;
}

.class-order-form .form-actions {
  margin-top: 12px;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-label {
  display: inline-block;
  padding: 4px 8px;
  background: #eceeeb;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.status-label.active {
  color: #3f6b27;
  background: #e4f2ec;
}

.attribute-labels { display: flex; flex-wrap: wrap; gap: .35rem; }
.attribute-labels .status-label { margin: 0; }
.attribute-labels .pendatang { background: #e7f2ea; color: #1e6037; }
.attribute-fieldset { margin: 0; }
.attribute-options { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.attribute-options .checkbox-row { align-self: auto; min-height: auto; padding: 4px 0; border: none; }
.attribute-options small { display: block; color: var(--muted); }
.participant-attributes-form { margin-top: var(--space-4); }
.bulk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.bulk-toolbar select {
  flex: 0 1 360px;
  width: min(360px, 100%);
  min-width: 0;
}
.bulk-toolbar > label:not(.sr-only),
.form-grid .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-toolbar > label:not(.sr-only) {
  flex: 0 0 auto;
  white-space: nowrap;
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.form-grid .checkbox-row {
  align-self: end;
  min-height: 44px;
}

.form-grid .checkbox-row > span {
  display: grid;
  gap: 2px;
}

.form-grid .checkbox-row small {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.form-links {
  margin: var(--space-4) 0 0;
}

.dashboard-caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-label {
  margin: 32px 0 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.kpi-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.kpi-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.kpi-value {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.kpi-value small {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-left: 4px;
}

.kpi-value.rate-warn,
.detail-kpi b.rate-warn {
  color: #8a5a1f;
}

.kpi-value.rate-bad,
.detail-kpi b.rate-bad {
  color: #7a3470;
}

[id] {
  scroll-margin-top: calc(var(--topbar-height, 68px) + 16px);
}

.kpi-sub {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.kpi-sub strong {
  color: var(--ink);
}

.status-label.warn {
  color: #8a5a1f;
  background: #f8e9df;
}

.notice-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fbf3df;
  border: 1px solid #e8d9ab;
  border-radius: 8px;
}

.notice-banner-left {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.notice-banner-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: white;
  font-weight: 900;
  font-size: 13px;
}

.notice-banner-body strong {
  display: block;
  font-size: 13px;
}

.notice-banner-body span {
  display: block;
  margin-top: 3px;
  color: #7d694f;
  font-size: 12px;
  line-height: 1.5;
}

.notice-banner-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.notice-banner-meta strong {
  color: #8a5a1f;
  font-size: 16px;
  margin-right: 3px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-3);
  align-items: stretch;
}

.chart-panel h2 {
  margin: 0;
  font-size: 15px;
}

.panel-caption {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.static-field {
  display: grid;
  gap: 4px;
}

.static-field-label {
  font-size: 12px;
  font-weight: 800;
}

.static-field strong {
  font-size: 15px;
}

.static-field small {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
}

.dashboard-panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-progress {
  height: 240px;
}

.chart-compare {
  height: 340px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: var(--space-2);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend .dot.green {
  background: var(--green);
}

.chart-legend .dot.gold {
  background: var(--gold);
}

.chart-legend .dot.gray {
  background: var(--line);
}

.chart-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.class-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.class-tab {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.class-tab:hover {
  border-color: #b9cdc3;
  color: var(--ink);
}

.class-tab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

.class-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
}

.class-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.class-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.class-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.data-status {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8e9df;
  color: #8a5a1f;
  white-space: nowrap;
}

.data-status.complete {
  background: #e4f2ec;
  color: #3f6b27;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.detail-kpi {
  background: #f7f9f8;
  border: 1px solid #edf1ef;
  border-radius: 8px;
  padding: var(--space-3);
}

.detail-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.detail-kpi b {
  font-size: 19px;
  font-weight: 900;
}

.detail-kpi b small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-left: 3px;
}

.detail-kpi-note {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-3);
  min-width: 0;
}

.detail-box h3 {
  margin: 0;
  font-size: 13px;
}

.detail-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.detail-chart {
  height: 210px;
}

.ranking-table-wrap {
  height: 210px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 8px;
}

.ranking-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11.5px;
}

.ranking-table th {
  text-align: left;
  padding: 5px 4px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
}

.ranking-table td {
  padding: 5px 4px;
  border-bottom: 1px solid #edf1ef;
  overflow: hidden;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-table col.col-num {
  width: 18px;
}

.ranking-table col.col-status {
  width: 20px;
}

.ranking-table col.col-total {
  width: 36px;
}

.ranking-table col.col-rate {
  width: 34px;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  color: var(--muted);
}

.ranking-table th:nth-child(n+3),
.ranking-table td:nth-child(n+3) {
  text-align: right;
  white-space: nowrap;
}

.ranking-table th:nth-child(7),
.ranking-table td:nth-child(7) {
  border-left: 1px solid var(--line);
}

.ranking-table td.status-1 {
  color: #3f6b27;
}

.ranking-table td.status-2 {
  color: #8a5a1f;
}

.ranking-table td.status-3 {
  color: #1e4f8f;
}

.ranking-table td.status-4 {
  color: #7a3470;
}

.ranking-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-scroll {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.composition-table thead th {
  position: sticky;
  top: 0;
}

.composition-table th:first-child,
.composition-table td:first-child {
  color: inherit;
}

.composition-table th:nth-child(n+2),
.composition-table td:nth-child(n+2) {
  text-align: right;
  white-space: nowrap;
}

.empty-inline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  padding: 20px 0;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
.brand-mark,
.stats strong,
.event-row time strong,
.date-tile strong,
.revealed-contact {
  font-family: "Roboto", sans-serif;
}

@media (max-width: 760px) {
  .topbar-user-meta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topbar > form {
    margin-left: 0;
  }

  .topbar nav {
    position: fixed;
    z-index: 41;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: min(84vw, 320px);
    padding: 18px;
    background: var(--green-dark);
    box-shadow: -18px 0 45px rgba(8, 27, 21, .25);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms;
  }

  .topbar nav a {
    padding: 13px 12px;
    font-size: 16px;
  }

  .nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 4px 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .nav-close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    border: 0;
    background: rgba(8, 27, 21, .55);
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .topbar nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-open .nav-backdrop {
    display: block;
  }

  .session-fields {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .wide-setting {
    grid-column: auto;
  }

  .officer-session-panel {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  .roster-columns,
  .roster-row {
    grid-template-columns: minmax(90px, 1fr) auto;
    column-gap: var(--space-1);
  }

  .roster-columns-status,
  .quick-status {
    grid-template-columns: repeat(4, 36px);
  }

  .status-dot {
    width: 34px;
    height: 34px;
  }

  .officer-date-filter {
    width: 100%;
  }

  .officer-date-filter label,
  .officer-date-filter input {
    width: 100%;
  }

  .roster-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .roster-submit .button {
    width: 100%;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: var(--space-4);
  }

  .settings-section {
    padding: var(--space-4);
  }

  .toolbar-form,
  .place-form,
  .officer-form {
    grid-template-columns: 1fr;
  }

  .toolbar-form .button {
    width: 100%;
  }

  .toolbar-form {
    padding: var(--space-3);
  }

  .settings-table {
    min-width: 0;
  }

  .report-table-wrap {
    margin-right: calc(var(--space-4) * -1);
  }

  .chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control,
  .chart-toolbar label {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

  .table-wrap th:first-child,
  .table-wrap td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: white;
    box-shadow: 1px 0 var(--line);
  }

  .table-wrap th:first-child {
    z-index: 2;
    background: #f7f8f5;
  }

  .report-table th:first-child,
  .report-table .report-date {
    position: sticky;
    left: 0;
    z-index: 1;
    background: white;
    box-shadow: 1px 0 var(--line);
  }

  .report-table th:first-child {
    z-index: 2;
    background: #f7f8f5;
  }

  .report-table td.report-activity:first-child {
    position: static;
    box-shadow: none;
  }

  .report-table-actions {
    display: block;
    margin-bottom: 8px;
  }

  .report-table-wrap:not(.show-detail) .detail-col {
    display: none;
  }

  .settings-table th:nth-child(2),
  .settings-table td:nth-child(2) {
    display: none;
  }

  .settings-table th,
  .settings-table td {
    padding: 12px 10px;
  }

  .schedule-page {
    padding-top: 28px;
  }

  .period-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .period-picker,
  .period-picker input {
    width: 100%;
  }

  .participant-group-heading {
    flex-wrap: wrap;
  }

  .participant-group-heading h2 {
    flex: 1;
  }

  .participant-group-toggle {
    min-width: auto;
  }

  .participant-counts {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
    gap: 4px;
  }

  .participant-counts .participant-count {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 4px;
    font-size: 14px;
  }

  .participant-counts .participant-count span {
    font-size: 10px;
  }

  .compact-events .event-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .compact-events .event-row time {
    min-height: 44px;
  }

  .compact-events .event-main {
    grid-column: 2;
  }

  .compact-events .event-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .compact-events .series-dates {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
  }

  .compact-events .attendance-links {
    grid-column: 1 / -1;
  }

  .attendance-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .attendance-link-actions .button {
    flex: 1 1 0;
    text-align: center;
  }

  .compact-events .button.small {
    padding: 6px 8px;
  }

  .kpi-grid,
  .detail-kpis,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .class-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .class-tab {
    flex: 0 0 auto;
  }

  .notice-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-compare {
    height: 320px;
  }
}