/* Rijschool Van Nederland - shared components and page surfaces */

.rn-eyebrow {
  display: inline-block;
  color: var(--rijschool-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rn-dashboard,
.students-v2-page,
.lessons-page,
.exams-page,
.instructors-page,
.intake-index-page,
.payments-page,
.package-list-grid,
.more-menu-grid {
  min-width: 0;
}

.rn-dashboard {
  display: grid;
  gap: 20px;
}

.rn-dashboard__welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.rn-dashboard__welcome h2 {
  margin: 5px 0 4px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.rn-dashboard__welcome p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.rn-dashboard__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.rn-dashboard__date i {
  color: var(--rijschool-blue);
}

.rn-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rn-metric {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-metric__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
}

.rn-metric > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rn-metric strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-metric div span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-metric--blue .rn-metric__icon { background: #eaf1fb; color: var(--rijschool-blue); }
.rn-metric--orange .rn-metric__icon { background: #fff0e9; color: var(--van-nederland-orange); }
.rn-metric--waiting .rn-metric__icon { background: #fff7df; color: #a16207; }
.rn-metric--success .rn-metric__icon { background: #eaf8ef; color: var(--success); }
.rn-metric--danger .rn-metric__icon { background: #feeeee; color: var(--danger); }
.rn-metric--neutral .rn-metric__icon { background: #f1f4f8; color: var(--text-secondary); }

.rn-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  align-items: start;
  gap: 16px;
}

.rn-dashboard__aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rn-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
}

.rn-panel__header--compact {
  padding: 15px 16px 12px;
}

.rn-panel__header h2 {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.015em;
}

.rn-link,
.rn-icon-link {
  color: var(--rijschool-blue) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.rn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 3px;
  white-space: nowrap;
}

.rn-icon-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d8e3f0;
  border-radius: 9px;
}

.rn-planning-list {
  display: grid;
}

.rn-planning-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f4;
  border-left: 3px solid transparent;
}

.rn-planning-item:last-child {
  border-bottom: 0;
}

.rn-planning-item.status-waiting {
  border-left-color: var(--warning);
  background: #fffdf7;
}

.rn-planning-item.status-confirmed {
  border-left-color: var(--success);
  background: #fbfefc;
}

.rn-planning-item.status-declined {
  border-left-color: var(--danger);
  background: #fffafa;
}

.rn-planning-item__time {
  display: grid;
  gap: 1px;
  color: var(--text-secondary);
  font-size: 11px;
}

.rn-planning-item__time strong {
  color: var(--text-primary);
  font-size: 13px;
}

.rn-planning-item__main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rn-planning-item__main strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-planning-item__main span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-planning-item__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.rn-status-badge,
.rn-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.rn-status-badge--status-waiting { background: #fff2cf; color: #9a6700; }
.rn-status-badge--status-confirmed { background: #e7f7ed; color: #147a38; }
.rn-status-badge--status-declined { background: #fde8e8; color: #b42318; }
.rn-status-badge--status-confirmed,
.rn-status-badge--status-waiting,
.rn-status-badge--status-declined { border: 1px solid transparent; }

.rn-type-badge--type-chip-lesson { background: #eaf1fb; color: var(--rijschool-blue); }
.rn-type-badge--type-chip-exam { background: #fff0e9; color: #c7461f; }

.rn-empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 44px 20px;
  text-align: center;
}

.rn-empty-state__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 11px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
}

.rn-empty-state strong {
  color: var(--text-primary);
  font-size: 13px;
}

.rn-empty-state > span:last-child {
  color: var(--text-secondary);
  font-size: 12px;
}

.rn-quick-actions {
  display: grid;
  gap: 8px;
  padding: 0 12px 13px;
}

.rn-quick-action {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rn-quick-action:hover {
  border-color: #c4d5e8;
  background: #fbfdff;
  transform: translateY(-1px);
}

.rn-quick-action > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
}

.rn-quick-action--blue > span { background: #eaf1fb; color: var(--rijschool-blue); }
.rn-quick-action--orange > span { background: #fff0e9; color: var(--van-nederland-orange); }
.rn-quick-action--neutral > span { background: #f1f4f8; color: var(--text-secondary); }

.rn-quick-action > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.rn-quick-action strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-quick-action small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-quick-action > i {
  color: var(--text-muted);
  font-size: 11px;
}

.rn-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 0 13px 14px;
}

.rn-week-day {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  padding: 7px 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 10px;
  text-decoration: none;
}

.rn-week-day strong {
  color: var(--text-primary);
  font-size: 13px;
}

.rn-week-day:hover {
  border-color: #cddbea;
  background: #f7faff;
}

.rn-week-day.is-today {
  border-color: var(--rijschool-blue);
  background: var(--rijschool-blue);
  color: #fff;
}

.rn-week-day.is-today strong {
  color: #fff;
}

.rn-week-summary {
  display: grid;
  gap: 8px;
  padding: 12px 16px 15px;
  border-top: 1px solid var(--border);
}

.rn-week-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}

.rn-week-summary strong {
  color: var(--text-primary);
  font-size: 13px;
}

/* Shared list/card styling for administration pages */
.students-v2-page,
.lessons-page,
.exams-page,
.instructors-page,
.intake-index-page,
.payments-page {
  display: grid;
  gap: 16px;
}

.students-v2-header,
.exams-hero,
.instructors-hero,
.payments-hero,
.package-hero-card,
.more-header-card,
.page-header-card,
.intake-hero-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.students-v2-header,
.exams-hero,
.instructors-hero,
.payments-hero,
.package-hero-card,
.more-header-card,
.page-header-card,
.intake-hero-card {
  min-height: 0 !important;
  padding: 19px 20px !important;
}

.students-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.students-v2-header h1,
.exams-hero__title,
.instructors-title,
.payments-hero h1,
.package-hero-card .dashboard-title,
.more-header-card .dashboard-title,
.page-header-card .dashboard-title,
.intake-hero-card .hero-title {
  margin: 4px 0 4px;
  color: var(--text-primary) !important;
  font-size: 22px !important;
  font-weight: 750 !important;
  letter-spacing: -.025em;
}

.students-v2-header p,
.exams-hero__subtitle,
.instructors-subtitle,
.payments-hero p,
.package-hero-card .dashboard-subtitle,
.more-header-card .dashboard-subtitle,
.intake-hero-card .hero-subtitle {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.students-v2-header__eyebrow,
.exams-hero__label,
.instructors-label,
.payments-hero__label,
.package-hero-label,
.dashboard-greeting,
.intake-hero-eyebrow {
  color: var(--rijschool-blue) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.students-v2-header__illustration,
.exams-hero::after,
.instructors-hero::after {
  display: none !important;
}

.students-v2-create-btn,
.exams-add-button,
.instructors-cta-btn,
.payments-add-button,
.package-hero-action,
.luxury-btn,
.students-v2-create-btn--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--rijschool-blue) !important;
  border-radius: 9px !important;
  background: var(--rijschool-blue) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 160ms ease, transform 160ms ease;
}

.students-v2-create-btn:hover,
.exams-add-button:hover,
.instructors-cta-btn:hover,
.payments-add-button:hover,
.package-hero-action:hover,
.luxury-btn:hover {
  background: #0b3e7f !important;
  transform: translateY(-1px);
}

.students-v2-stats,
.payments-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.students-v2-stat-card,
.payments-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.students-v2-stat-card__label,
.payments-summary-card span {
  color: var(--text-secondary);
  font-size: 11px;
}

.students-v2-stat-card__value,
.payments-summary-card strong {
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 750;
}

.students-v2-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.students-v2-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.students-v2-search i {
  color: var(--text-muted);
}

.students-v2-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-size: 12px;
}

.students-v2-status-filter {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
}

.students-v2-card[hidden] {
  display: none;
}

.students-v2-list,
.instructors-list,
.exams-list,
.payments-list,
.module-list-grid,
.package-list-grid,
.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.students-v2-card,
.instructor-card,
.exam-card,
.payment-card,
.module-list-card,
.package-card,
.more-menu-card,
.lessons-list .lesson-card {
  min-width: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-md) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.students-v2-card,
.instructor-card,
.exam-card,
.payment-card,
.module-list-card,
.package-card,
.more-menu-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.students-v2-card:hover,
.instructor-card:hover,
.exam-card:hover,
.payment-card:hover,
.module-list-card:hover,
.package-card:hover,
.more-menu-card:hover {
  border-color: #c3d4e8 !important;
  box-shadow: 0 7px 18px rgba(23, 32, 51, .08) !important;
  transform: translateY(-1px);
}

.students-v2-card {
  position: relative;
  padding: 15px;
}

.students-v2-card__link {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.students-v2-card__top,
.exam-card__header,
.instructor-card-header,
.payment-card__header,
.package-card__top,
.module-list-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.students-v2-card__avatar,
.exam-avatar,
.instructor-avatar,
.payment-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 12px;
  font-weight: 750;
}

.students-v2-card__identity,
.exam-card__identity,
.instructor-info,
.payment-card__identity,
.package-card__heading {
  min-width: 0;
}

.students-v2-card__identity h3,
.exam-student-name,
.instructor-name,
.payment-card__identity h3,
.package-card__heading h3,
.module-title {
  overflow: hidden;
  margin: 0;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.students-v2-card__status,
.instructor-status,
.exam-type,
.payment-status,
.package-status,
.status-badge {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.students-v2-card__status--active,
.status-badge-success,
.payment-status--paid,
.package-status--active,
.instructor-status--active { background: #e7f7ed !important; color: #147a38 !important; }
.students-v2-card__status--inactive,
.status-badge-warning,
.payment-status--unpaid,
.package-status--inactive,
.instructor-status--inactive { background: #fff2cf !important; color: #9a6700 !important; }
.payment-status--partially-paid { background: #fff0e9 !important; color: #c7461f !important; }

.students-v2-card__meta,
.exam-card__info,
.instructor-actions,
.payment-card__info,
.module-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.students-v2-card__meta p,
.exam-info-row,
.instructor-info-row,
.payment-info-row,
.module-subtitle,
.module-meta,
.payment-date,
.package-card__eyebrow {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
}

.students-v2-card__meta p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.students-v2-card__meta i,
.exam-info-row i,
.instructor-info-row i,
.payment-info-row i {
  color: var(--rijschool-blue);
}

.students-v2-card__menu {
  position: absolute;
  top: 11px;
  right: 11px;
}

.students-v2-card__menu-btn,
.student-more-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
}

.students-v2-card__dropdown,
.student-menu-list,
.dropdown-menu {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(23, 32, 51, .12) !important;
}

.students-v2-card__dropdown .dropdown-item,
.student-menu-list .dropdown-item,
.dropdown-menu .dropdown-item {
  font-size: 12px;
}

/* Studenten page */
.students-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.students-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 160px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(14, 76, 154, .08) 0%, rgba(234, 243, 255, .92) 44%, rgba(255, 255, 255, .98) 100%);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .04);
}

.students-hero__content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.students-hero__eyebrow {
  color: var(--rijschool-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.students-hero h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.students-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.students-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.students-hero__create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--van-nederland-orange);
  border-radius: 10px;
  background: var(--van-nederland-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(241, 90, 41, .18);
  transition: transform 160ms ease, background-color 160ms ease;
}

.students-hero__create-btn:hover {
  background: #dd4d1f;
  color: #fff;
  transform: translateY(-1px);
}

.students-hero__create-btn--inline {
  min-height: 40px;
}

.students-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.students-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .04);
}

.students-stat-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #eaf3ff;
  color: var(--rijschool-blue);
  font-size: 18px;
}

.students-stat-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.students-stat-card__label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.students-stat-card__value {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.students-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.students-toolbar__search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .03);
}

.students-toolbar__search i {
  color: var(--text-muted);
  font-size: 14px;
}

.students-toolbar__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
}

.students-toolbar__search input::placeholder {
  color: var(--text-muted);
}

.students-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.students-toolbar__select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(15, 31, 61, .03);
}

.students-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .03);
  text-align: center;
}

.students-empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #eaf3ff;
  color: var(--rijschool-blue);
  font-size: 22px;
}

.students-empty-state h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.students-empty-state p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.students-table-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .04);
}

.students-table-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.students-table-shell__header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.students-desktop-table-wrap {
  overflow-x: auto;
}

.students-desktop-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
}

.students-desktop-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafd;
  color: #53627a;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.students-desktop-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f7;
  color: var(--text-primary);
  font-size: 13px;
  vertical-align: middle;
}

.students-desktop-table tbody tr:hover {
  background: #f7faff;
}

.students-table__student-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.students-table__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--rijschool-blue);
  font-size: 12px;
  font-weight: 800;
}

.students-table__student-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.students-table__contact {
  display: grid;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-table__category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: #eaf3ff;
  color: #1557a6;
  font-size: 12px;
  font-weight: 700;
}

.students-table__muted {
  color: var(--text-secondary);
  font-size: 12px;
}

.students-table__progress {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.students-table__progress-bar {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e5eaf2;
}

.students-table__progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: var(--rijschool-blue);
}

.students-table__progress-text {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.students-table__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.students-table__status--active {
  background: #e7f7ed;
  color: #22a35a;
}

.students-table__status--inactive {
  background: #f1f4f8;
  color: #6b7a99;
}

.students-table__actions {
  position: relative;
}

.students-table__actions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
}

.students-table__dropdown {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 31, 61, .12);
}

.students-mobile-list {
  display: none;
}

.students-mobile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .04);
}

.students-mobile-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.students-mobile-card__top .students-table__actions {
  width: auto;
  margin-left: auto;
  flex: 0 0 auto;
}

.students-mobile-card__identity {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.students-mobile-card__identity h3 {
  overflow: hidden;
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.students-mobile-card__meta {
  display: grid;
  gap: 8px;
}

.students-mobile-card__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-mobile-card__meta strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.students-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.students-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.students-pagination__btn--active {
  border-color: var(--rijschool-blue);
  background: var(--rijschool-blue);
  color: #fff;
}

.students-v2-card[hidden],
.students-mobile-card[hidden] {
  display: none !important;
}

.students-v2-page,
.lessons-page,
.exams-page,
.instructors-page,
.intake-index-page,
.payments-page {
  display: grid;
  gap: 16px;
}

.students-v2-header,
.exams-hero,
.instructors-hero,
.payments-hero,
.package-hero-card,
.more-header-card,
.page-header-card,
.intake-hero-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.students-v2-header,
.exams-hero,
.instructors-hero,
.payments-hero,
.package-hero-card,
.more-header-card,
.page-header-card,
.intake-hero-card {
  min-height: 0 !important;
  padding: 19px 20px !important;
}

.students-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.students-v2-header h1,
.exams-hero__title,
.instructors-title,
.payments-hero h1,
.package-hero-card .dashboard-title,
.more-header-card .dashboard-title,
.page-header-card .dashboard-title,
.intake-hero-card .hero-title {
  margin: 4px 0 4px;
  color: var(--text-primary) !important;
  font-size: 22px !important;
  font-weight: 750 !important;
  letter-spacing: -.025em;
}

.students-v2-header p,
.exams-hero__subtitle,
.instructors-subtitle,
.payments-hero p,
.package-hero-card .dashboard-subtitle,
.more-header-card .dashboard-subtitle,
.intake-hero-card .hero-subtitle {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.students-v2-header__eyebrow,
.exams-hero__label,
.instructors-label,
.payments-hero__label,
.package-hero-label,
.dashboard-greeting,
.intake-hero-eyebrow {
  color: var(--rijschool-blue) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.students-v2-header__illustration,
.exams-hero::after,
.instructors-hero::after {
  display: none !important;
}

.students-v2-create-btn,
.exams-add-button,
.instructors-cta-btn,
.payments-add-button,
.package-hero-action,
.luxury-btn,
.students-v2-create-btn--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--rijschool-blue) !important;
  border-radius: 9px !important;
  background: var(--rijschool-blue) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 160ms ease, transform 160ms ease;
}

.students-v2-create-btn:hover,
.exams-add-button:hover,
.instructors-cta-btn:hover,
.payments-add-button:hover,
.package-hero-action:hover,
.luxury-btn:hover {
  background: #0b3e7f !important;
  transform: translateY(-1px);
}

.students-v2-stats,
.payments-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.students-v2-stat-card,
.payments-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.students-v2-stat-card__label,
.payments-summary-card span {
  color: var(--text-secondary);
  font-size: 11px;
}

.students-v2-stat-card__value,
.payments-summary-card strong {
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 750;
}

.students-v2-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.students-v2-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.students-v2-search i {
  color: var(--text-muted);
}

.students-v2-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-size: 12px;
}

.students-v2-status-filter {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
}

.students-v2-card[hidden] {
  display: none;
}

.students-v2-list,
.instructors-list,
.exams-list,
.payments-list,
.module-list-grid,
.package-list-grid,
.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.students-v2-card,
.instructor-card,
.exam-card,
.payment-card,
.module-list-card,
.package-card,
.more-menu-card,
.lessons-list .lesson-card {
  min-width: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-md) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.students-v2-card,
.instructor-card,
.exam-card,
.payment-card,
.module-list-card,
.package-card,
.more-menu-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.students-v2-card:hover,
.instructor-card:hover,
.exam-card:hover,
.payment-card:hover,
.module-list-card:hover,
.package-card:hover,
.more-menu-card:hover {
  border-color: #c3d4e8 !important;
  box-shadow: 0 7px 18px rgba(23, 32, 51, .08) !important;
  transform: translateY(-1px);
}

.students-v2-card {
  position: relative;
  padding: 15px;
}

.students-v2-card__link {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.students-v2-card__top,
.exam-card__header,
.instructor-card-header,
.payment-card__header,
.package-card__top,
.module-list-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.students-v2-card__avatar,
.exam-avatar,
.instructor-avatar,
.payment-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 12px;
  font-weight: 750;
}

.students-v2-card__identity,
.exam-card__identity,
.instructor-info,
.payment-card__identity,
.package-card__heading {
  min-width: 0;
}

.students-v2-card__identity h3,
.exam-student-name,
.instructor-name,
.payment-card__identity h3,
.package-card__heading h3,
.module-title {
  overflow: hidden;
  margin: 0;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.students-v2-card__status,
.instructor-status,
.exam-type,
.payment-status,
.package-status,
.status-badge {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.students-v2-card__status--active,
.instructor-status--active,
.payment-status--paid,
.status-badge--success {
  background: #e7f7ed !important;
  color: #22a35a !important;
}

.students-v2-card__status--inactive,
.instructor-status--inactive,
.payment-status--overdue,
.status-badge--muted {
  background: #f1f4f8 !important;
  color: #6b7a99 !important;
}

.students-v2-card__meta,
.exam-card__meta,
.payment-card__meta,
.package-card__meta {
  display: grid;
  gap: 6px;
}

.students-v2-card__meta p,
.exam-card__meta p,
.payment-card__meta p,
.package-card__meta p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-v2-card__meta i,
.exam-card__meta i,
.payment-card__meta i,
.package-card__meta i {
  color: var(--text-muted);
  font-size: 12px;
}

.students-v2-card__menu,
.students-table__actions {
  position: relative;
}

.students-table__actions {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

.students-v2-card__menu {
  position: absolute;
  top: 12px;
  right: 12px;
}

.students-v2-card__menu-btn,
.students-table__actions-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
}

.students-v2-card__dropdown,
.students-table__dropdown {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(23, 32, 51, .12) !important;
}

.students-v2-card__dropdown .dropdown-item,
.students-table__dropdown .dropdown-item {
  font-size: 12px;
}

.students-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.students-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.students-pagination__btn--active {
  border-color: var(--rijschool-blue);
  background: var(--rijschool-blue);
  color: #fff;
}

.students-v2-card[hidden],
.students-mobile-card[hidden] {
  display: none !important;
}

@media (min-width: 992px) {
  .students-desktop-table-wrap {
    display: block;
  }

  .students-mobile-list {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .students-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .students-toolbar__filters {
    width: 100%;
  }

  .students-toolbar__select {
    width: 100%;
  }

  .students-desktop-table-wrap {
    display: none;
  }

  .students-mobile-list {
    display: grid;
    gap: 12px;
  }

  .students-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .students-page {
    gap: 12px;
  }

  .students-hero,
  .instructors-hero {
    min-height: 0;
    padding: 14px;
    border-color: #1a3c72 !important;
    background: linear-gradient(150deg, #1f4fa3 0%, #193d7d 100%) !important;
  }

  .students-hero__eyebrow,
  .students-hero h1,
  .students-hero p {
    color: #f6f9ff;
  }

  .students-hero h1 {
    font-size: 21px;
  }

  .students-stats {
    grid-template-columns: 1fr;
  }

  .students-stat-card {
    min-height: 76px;
    padding: 12px;
  }

  .students-table-shell {
    padding: 12px;
  }
}

/* Shared admin table surfaces */
.students-page,
.payments-page,
.instructors-page,
.intake-index-page,
.lesson-packages-page,
.cars-page,
.desktop-whatsapp-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.students-table-shell,
.students-hero,
.students-stats,
.students-toolbar,
.students-empty-state,
.desktop-whatsapp-header,
.desktop-whatsapp-stats,
.desktop-whatsapp-layout,
.desktop-whatsapp-conversations,
.desktop-whatsapp-chat,
.student-card,
.payment-card,
.instructor-card,
.package-card,
.intake-student-item,
.module-list-card,
.luxury-card,
.rn-panel,
.rn-report-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 31, 61, .04);
}

.students-table-shell,
.students-hero,
.students-stats,
.students-toolbar,
.students-empty-state,
.desktop-whatsapp-header,
.desktop-whatsapp-stats,
.desktop-whatsapp-layout,
.desktop-whatsapp-conversations,
.desktop-whatsapp-chat,
.student-card,
.payment-card,
.instructor-card,
.package-card,
.intake-student-item,
.module-list-card,
.rn-report-card {
  padding: 16px;
}

.students-table-shell__header,
.desktop-whatsapp-side-header,
.rn-report-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.students-table-shell__header h2,
.desktop-whatsapp-side-header h2,
.rn-report-card__header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.students-table__status--active,
.status-badge-success,
.payment-status--paid,
.package-status--active,
.package-status--completed,
.payment-status--partially-paid {
  background: #e7f7ed !important;
  color: #22a35a !important;
}

.students-table__status--inactive,
.payment-status--unpaid,
.package-status--cancelled,
.package-status--rejected,
.instructor-status--inactive {
  background: #f1f4f8 !important;
  color: #6b7a99 !important;
}

.students-table__category,
.lesson-filter-chip.is-active,
.exam-filter-chip.is-active,
.filter-chip.is-active {
  background: #eaf3ff !important;
  color: #1557a6 !important;
}

.students-table__dropdown,
.student-menu-list,
.desktop-whatsapp-dropdown {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(15, 31, 61, .12) !important;
}

.students-table__actions-btn,
.student-more-btn,
.desktop-whatsapp-conversation-item,
.desktop-whatsapp-tab,
.students-toolbar__select {
  border: 1px solid var(--border);
  background: var(--surface);
}

.students-table__actions-btn,
.student-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-secondary);
}

.students-desktop-table-wrap {
  overflow-x: auto;
}

.students-desktop-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.students-desktop-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafd;
  color: #53627a;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.students-desktop-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f7;
  color: var(--text-primary);
  font-size: 13px;
  vertical-align: middle;
}

.students-desktop-table tbody tr:hover {
  background: #f7faff;
}

.students-table__student-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.students-table__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--rijschool-blue);
  font-size: 12px;
  font-weight: 800;
}

.students-table__student-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.students-table__contact {
  display: grid;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}

.students-table__muted {
  color: var(--text-secondary);
  font-size: 12px;
}

.students-table__progress {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.students-table__progress-bar {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e5eaf2;
}

.students-table__progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: var(--rijschool-blue);
}

.students-table__progress-text {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.students-mobile-list {
  display: none;
}

@media (min-width: 992px) {
  .students-desktop-table-wrap {
    display: block;
  }

  .students-mobile-list {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .students-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .students-toolbar,
  .students-hero,
  .students-table-shell,
  .desktop-whatsapp-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .students-toolbar__filters,
  .students-toolbar__select {
    width: 100%;
  }

  .students-desktop-table-wrap,
  .desktop-whatsapp-conversations {
    width: 100%;
  }

  .students-mobile-list {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 767.98px) {
  .students-stats {
    grid-template-columns: 1fr;
  }

  .students-hero,
  .students-table-shell,
  .students-empty-state,
  .desktop-whatsapp-header,
  .desktop-whatsapp-stats,
  .desktop-whatsapp-layout,
  .desktop-whatsapp-conversations,
  .desktop-whatsapp-chat,
  .intake-index-page .intake-toolbar-card,
  .intake-index-page .intake-summary,
  .intake-index-page .student-card,
  .instructors-page .instructor-card,
  .payments-page .payment-card,
  .lesson-packages-page .package-card,
  .cars-page .module-list-card {
    padding: 14px;
  }
}

/* Lessons and filters */
.lessons-search,
.exams-search,
.payments-search,
.intake-toolbar-card,
.agenda-filter-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-md) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.lessons-search,
.exams-search,
.payments-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 10px 0 13px;
}

.lessons-search > i,
.exams-search > i,
.payments-search > i {
  color: var(--text-muted);
}

.lessons-search input,
.exams-search input,
.payments-search input,
.intake-search-input,
.lesson-filter-select,
.exam-filter-select {
  min-width: 0;
  min-height: 38px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: var(--text-primary);
  font-size: 12px;
}

.lessons-search input,
.exams-search input,
.payments-search input {
  flex: 1 1 auto;
}

.lessons-search input::placeholder,
.exams-search input::placeholder,
.payments-search input::placeholder {
  color: var(--text-muted);
}

.lessons-filter-button,
.exams-filter-button,
.payments-filter-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: #f7faff !important;
  color: var(--rijschool-blue) !important;
}

.lesson-filter-chips,
.exam-filter-chips,
.intake-filter-chips,
.payments-filter-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.lesson-filter-chips::-webkit-scrollbar,
.exam-filter-chips::-webkit-scrollbar,
.intake-filter-chips::-webkit-scrollbar,
.payments-filter-chips::-webkit-scrollbar { display: none; }

.lesson-filter-chip,
.exam-filter-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none;
  white-space: nowrap;
}

.lesson-filter-chip.is-active,
.exam-filter-chip.is-active,
.filter-chip.is-active {
  border-color: var(--rijschool-blue) !important;
  background: var(--rijschool-blue) !important;
  color: #fff !important;
}

.lessons-list,
.exams-list,
.payments-list {
  min-width: 0;
}

.lessons-results-header,
.exams-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.lessons-results-title,
.exams-results-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 750;
}

.lesson-card,
.exam-card,
.payment-card {
  padding: 14px !important;
}

.lesson-card__link {
  color: inherit;
  text-decoration: none;
}

.lesson-card__header,
.exam-card__header,
.payment-card__header {
  align-items: center;
}

.lesson-card__title-group,
.exam-card__identity,
.payment-card__identity {
  min-width: 0;
}

.lesson-student-name {
  display: block;
  overflow: hidden;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-type,
.exam-type {
  background: #eaf1fb !important;
  color: var(--rijschool-blue) !important;
}

.exam-card__schedule,
.lesson-card__schedule {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.lesson-card__schedule-row,
.exam-time-block,
.payment-card__amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}

.lesson-card__schedule-row strong,
.exam-time-block strong,
.payment-card__amount strong {
  color: var(--text-primary);
  font-weight: 700;
}

.lesson-meta-row,
.exam-card__info,
.payment-card__info {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.lesson-meta-item,
.exam-info-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 11px;
}

.lessons-page--student {
  display: grid;
  gap: 14px;
}

.student-lessons-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.95rem, 2vw, 2.35rem);
  font-weight: 800;
}

.student-lessons-hero p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
}

.student-lessons-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #dbe6f6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 31, 61, .08);
}

.student-lessons-tab.lesson-filter-chip {
  min-height: 54px;
  border: 0 !important;
  border-right: 1px solid #e6edf9 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
}

.student-lessons-tab.lesson-filter-chip:last-child {
  border-right: 0 !important;
}

.student-lessons-tab.lesson-filter-chip.is-active {
  background: linear-gradient(135deg, #1f6ad7 0%, #174ea8 100%) !important;
  color: #fff !important;
}

.lessons-list--student {
  display: grid;
  gap: 12px;
}

.lesson-card--student {
  padding: 0 !important;
  border: 1px solid #dbe6f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 31, 61, .09);
}

.lesson-card__link--student {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  padding: 14px;
}

.student-lesson-card__date-block {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 98px;
  border-radius: 15px;
  background: #edf4ff;
  border: 1px solid #dbe6f6;
}

.student-lesson-card__weekday,
.student-lesson-card__month {
  color: #1f6ad7;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}

.student-lesson-card__date-block strong {
  color: #1f6ad7;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.student-lesson-card__content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.student-lesson-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-lesson-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.student-lesson-card__status {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.student-lesson-card__status.lesson-status--planned {
  background: #e9f1ff;
  color: #1f6ad7;
}

.student-lesson-card__status.lesson-status--completed {
  background: #e8f8ef;
  color: #15803d;
}

.student-lesson-card__status.lesson-status--cancelled {
  background: #ffecea;
  color: #dc2626;
}

.student-lesson-card__meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 1.05rem;
}

.student-lesson-card__meta strong {
  color: #475569;
  font-weight: 700;
}

.student-lesson-card__meta i {
  color: #64748b;
  font-size: .95rem;
}

.student-lesson-card__chevron {
  color: #1f4fa0;
  font-size: 1.75rem;
  align-self: center;
}

.lessons-page--student .lesson-filter-sheet,
.lessons-page--student .lessons-results-header {
  display: none;
}

.payment-card__amount {
  margin-top: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.payment-card__amount div {
  display: grid;
  gap: 2px;
}

.payment-card__amount span {
  color: var(--text-secondary);
  font-size: 10px;
}

.payment-card__actions,
.exam-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.payment-action,
.exam-action,
.module-actions .btn,
.package-progress__meta .btn {
  min-height: 30px;
  padding: 0 9px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.payment-action--details,
.exam-action-details,
.package-progress__meta .btn-primary,
.module-actions .btn-outline-primary {
  border-color: #cbdced !important;
  color: var(--rijschool-blue) !important;
}

.payment-action--edit,
.exam-action-edit {
  color: var(--van-nederland-orange) !important;
}

.payment-action--delete,
.exam-action-delete,
.module-actions .btn-outline-danger {
  color: var(--danger) !important;
}

/* Instructors, intake, packages, cars, reports, settings and More */
.instructor-card,
.exam-card,
.payment-card,
.module-list-card,
.package-card,
.more-menu-card {
  padding: 14px !important;
}

.instructor-card-header,
.module-list-header,
.package-card__top {
  justify-content: flex-start;
}

.instructor-info-row,
.payment-info-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 7px;
}

.instructor-license {
  color: var(--text-secondary) !important;
  font-size: 11px !important;
}

.instructor-actions,
.module-actions {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.intake-index-page .intake-summary,
.intake-index-page .search-card,
.intake-index-page .hero-card {
  border-color: var(--border) !important;
  border-radius: var(--rn-radius-md) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.intake-index-page .students-table-shell,
.intake-index-page .students-desktop-table-wrap,
.intake-index-page .students-table-shell__header,
.intake-index-page .students-desktop-table {
  width: 100%;
}

.intake-index-page .students-table-shell {
  margin: 0;
}

.intake-index-page .students-desktop-table {
  min-width: 900px;
}

.package-card__top {
  align-items: center;
}

.package-badge {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center;
  border-radius: 9px !important;
  background: #eaf1fb !important;
  color: var(--rijschool-blue) !important;
  font-size: 11px !important;
  font-weight: 750;
}

.package-metrics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.package-metric {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfcfe;
}

.package-metric small,
.package-metric span {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
}

.package-metric strong {
  display: inline-block;
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 18px;
}

.package-progress {
  margin-top: 13px;
}

.package-progress__bar {
  height: 6px !important;
  border-radius: 99px !important;
  background: #e9eef5 !important;
}

.package-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rijschool-blue) !important;
}

.package-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 10px;
}

.more-menu-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  gap: 8px;
  text-decoration: none;
}

.more-menu-card h2 {
  margin: 0;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.more-menu-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
}

.more-menu-card--logout .more-menu-icon {
  background: #feeeee;
  color: var(--danger);
}

.page-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.page-section .lesson-card {
  display: grid;
  gap: 8px;
  min-height: 102px;
  align-content: center;
  padding: 15px !important;
}

.page-section .lesson-card h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.page-section .lesson-meta {
  margin: 0;
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 750;
}

.agenda-filter-card {
  padding: 16px !important;
}

.agenda-filter-card form,
.agenda-filter-form {
  display: grid;
  gap: 12px;
}

.agenda-filter-form .form-control,
.rn-body .form-control,
.rn-body .form-select {
  min-height: 40px;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: var(--surface) !important;
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: none !important;
}

.agenda-filter-form .form-control:focus,
.rn-body .form-control:focus,
.rn-body .form-select:focus {
  border-color: var(--rijschool-blue) !important;
  box-shadow: 0 0 0 3px rgba(14, 76, 154, .12) !important;
}

/* Identity and account pages */
.rn-auth-body {
  min-height: 100vh;
  background: var(--background) !important;
}

.rn-auth-body .auth-page {
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--background) !important;
}

.rn-auth-body .auth-card {
  max-width: 410px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .08) !important;
}

.rn-auth-body .auth-logo {
  display: flex;
  width: min(240px, 80%);
  height: auto;
  margin: 0 auto 16px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rn-auth-body .auth-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rn-auth-body .auth-brand h1 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.025em;
}

.rn-auth-body .auth-brand p {
  color: var(--text-secondary);
  font-size: 13px;
}

.rn-auth-body .auth-form input,
.rn-auth-body .auth-form .form-control {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 13px;
}

.rn-auth-body .auth-form input:focus,
.rn-auth-body .auth-form .form-control:focus {
  border-color: var(--rijschool-blue);
  box-shadow: 0 0 0 3px rgba(14, 76, 154, .12);
}

.rn-auth-body .auth-submit {
  min-height: 42px;
  border-radius: 9px;
  background: var(--rijschool-blue);
  font-size: 13px;
  box-shadow: none;
}

.rn-auth-body .auth-links a {
  color: var(--rijschool-blue);
  font-size: 12px;
}

.rn-app-content > .settings-page {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 0;
}

.rn-app-content .settings-hero,
.rn-app-content .settings-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.rn-app-content .settings-hero {
  padding: 19px 20px !important;
  background: var(--surface) !important;
}

.rn-app-content .settings-hero__label {
  color: var(--rijschool-blue) !important;
  font-size: 11px;
}

.rn-app-content .settings-hero h1 {
  margin: 4px 0;
  color: var(--text-primary) !important;
  font-size: 22px;
  font-weight: 750;
}

.rn-app-content .settings-hero p {
  color: var(--text-secondary) !important;
  font-size: 13px;
}

.rn-app-content .settings-tab {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 11px;
}

.rn-app-content .settings-tab.active,
.rn-app-content .settings-tab.is-active {
  border-color: var(--rijschool-blue);
  background: var(--rijschool-blue);
  box-shadow: none;
}

.rn-app-content .settings-card {
  padding: 18px;
}

.rn-app-content .settings-card form {
  display: grid;
  gap: 12px;
}

.rn-app-content .settings-card input,
.rn-app-content .settings-card select,
.rn-app-content .settings-card textarea,
.rn-app-content .settings-card .form-control {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 13px;
}

.rn-app-content .settings-card input:focus,
.rn-app-content .settings-card select:focus,
.rn-app-content .settings-card textarea:focus,
.rn-app-content .settings-card .form-control:focus {
  border-color: var(--rijschool-blue);
  box-shadow: 0 0 0 3px rgba(14, 76, 154, .12);
}

.rn-app-content .settings-card button[type="submit"],
.rn-app-content .settings-card .btn {
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--rijschool-blue);
  box-shadow: none;
  font-size: 12px;
}

.rn-body .alert {
  border-radius: 9px;
  border-width: 1px;
  font-size: 12px;
}

@media (min-width: 1280px) {
  .rn-dashboard__metrics {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .rn-dashboard__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .rn-dashboard__welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid #1a3c72;
    border-radius: 16px;
    background: linear-gradient(150deg, #1f4fa3 0%, #193d7d 100%);
  }

  .rn-dashboard__welcome .rn-eyebrow,
  .rn-dashboard__welcome h2,
  .rn-dashboard__welcome p {
    color: #f6f9ff;
  }

  .rn-dashboard__welcome h2 {
    margin-top: 2px;
    font-size: 21px;
  }

  .rn-dashboard__welcome .rn-dashboard__date {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    color: #f6f9ff;
  }

  .rn-dashboard__welcome .rn-dashboard__date i {
    color: #f6f9ff;
  }

  .rn-dashboard__metrics,
  .students-v2-stats,
  .payments-summary,
  .page-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-dashboard__grid,
  .rn-dashboard__aside {
    grid-template-columns: 1fr;
  }

  .rn-planning-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rn-planning-item__badges {
    grid-column: 2;
    justify-content: flex-start;
  }

  .students-v2-list,
  .instructors-list,
  .exams-list,
  .payments-list,
  .module-list-grid,
  .package-list-grid,
  .more-menu-grid,
  .intake-index-page .intake-student-list {
    grid-template-columns: 1fr;
  }

  .students-v2-header,
  .package-hero-card,
  .more-header-card,
  .page-header-card,
  .intake-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .intake-index-page .students-table-shell,
  .intake-index-page .students-desktop-table-wrap,
  .intake-index-page .students-table-shell__header {
    width: 100%;
  }

  .students-v2-create-btn,
  .exams-add-button,
  .instructors-cta-btn,
  .payments-add-button,
  .package-hero-action {
    width: 100%;
  }

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

  .package-progress__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .rn-dashboard__metrics,
  .students-v2-stats,
  .payments-summary,
  .page-section {
    gap: 8px;
  }

  .rn-metric {
    min-height: 68px;
    padding: 10px;
  }

  .rn-metric__icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .rn-metric strong {
    font-size: 17px;
  }

  .rn-metric div span {
    font-size: 10px;
  }
}

/* Consistent form treatment */
.form-shell-card,
.student-form-card,
.student-login-card,
.payment-add-card,
.payment-details-card,
.payment-edit-state-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.form-shell-card,
.agenda-filter-card,
.student-form-card,
.student-login-card,
.payment-add-card,
.payment-details-card {
  padding: 18px !important;
}

.agenda-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.agenda-filter-form > .rn-form-validation,
.agenda-filter-form > .text-danger:only-child,
.agenda-filter-form > .alert,
.agenda-filter-form > .form-actions,
.agenda-filter-form > button,
.agenda-filter-form > .btn,
.agenda-filter-form > .rn-form-actions,
.rn-form-field--full {
  grid-column: 1 / -1;
}

.rn-form-field,
.form-grid-group,
.payment-form-group,
.agenda-filter-form > div:not(.rn-form-validation):not(.text-danger):not(.alert) {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.rn-form-field label,
.form-grid-group .form-label,
.payment-form-group label,
.agenda-filter-form > label,
.agenda-filter-form .form-label {
  margin: 0;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.rn-form-field .text-danger,
.form-grid-group .text-danger,
.payment-form-group .text-danger,
.agenda-filter-form .text-danger {
  font-size: 11px;
}

.rn-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
}

.rn-form-actions .btn,
.agenda-filter-form > .btn,
.agenda-filter-form > button {
  min-height: 38px;
}

.student-create-page,
.payment-edit-page {
  display: grid;
  gap: 16px;
}

.student-create-hero,
.payment-edit-hero {
  padding: 19px 20px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.student-create-hero h1,
.payment-edit-hero h1 {
  margin: 4px 0;
  color: var(--text-primary) !important;
  font-size: 22px !important;
  font-weight: 750 !important;
}

.student-create-hero p,
.payment-edit-hero p {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}

.student-create-hero__label,
.payment-edit-hero__label {
  color: var(--rijschool-blue) !important;
  font-size: 11px !important;
  font-weight: 750;
  letter-spacing: .07em;
}

.student-create-form {
  display: grid;
  gap: 14px;
}

.student-form-card__header,
.student-login-card__header,
.payment-add-card header,
.payment-details-card header {
  margin-bottom: 15px;
}

.student-form-card__header span,
.student-login-card__header span,
.payment-add-card header > span,
.payment-details-card header > span {
  color: var(--rijschool-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

.student-form-card__header h2,
.student-login-card__header h2,
.payment-add-card header h2,
.payment-details-card header h2 {
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.student-form-card__header p,
.student-login-card__header p,
.payment-add-card header p,
.payment-details-card header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.student-form-grid,
.student-login-grid,
.payment-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.student-form-group,
.student-login-fields .student-form-group,
.payment-form-group {
  display: grid;
  gap: 6px;
}

.student-form-group label,
.student-login-fields label,
.payment-form-group label {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.student-form-control,
.student-password-field .student-form-control {
  min-height: 40px;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: var(--surface) !important;
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: none !important;
}

textarea.student-form-control {
  min-height: 92px;
  resize: vertical;
}

.student-form-control:focus {
  border-color: var(--rijschool-blue) !important;
  box-shadow: 0 0 0 3px rgba(14, 76, 154, .12) !important;
}

.student-login-toggle,
.login-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.student-create-actions,
.payment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.student-create-save,
.student-create-cancel,
.payment-edit-actions .luxury-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--rijschool-blue);
  border-radius: 9px;
  background: var(--rijschool-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.student-create-cancel,
.payment-edit-actions .btn-outline-secondary {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
}

.payment-edit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.payment-edit-summary > div {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.payment-edit-summary span {
  color: var(--text-secondary);
  font-size: 11px;
}

.payment-edit-summary strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .agenda-filter-form,
  .student-form-grid,
  .student-login-grid,
  .payment-form-grid,
  .payment-edit-summary {
    grid-template-columns: 1fr;
  }

  .student-create-actions,
  .payment-edit-actions {
    flex-direction: column-reverse;
  }

  .student-create-save,
  .student-create-cancel,
  .payment-edit-actions .btn {
    width: 100%;
  }
}

/* Detail surfaces and reporting */
.rn-body .luxury-card {
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-detail-page,
.rn-report-page,
.student-overview-page,
.lesson-packages-page {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.rn-detail-hero,
.rn-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-detail-hero h1,
.rn-report-hero h1 {
  margin: 5px 0 4px;
  color: var(--text-primary);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.025em;
}

.rn-detail-hero p,
.rn-report-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.rn-detail-hero__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.rn-detail-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 18px;
}

.rn-detail-hero__alert {
  flex: 1 1 100%;
  margin: 0 !important;
}

.rn-detail-hero__action {
  flex: 0 0 auto;
}

.rn-status-badge--info {
  border: 1px solid #d8e3f0;
  background: #eaf1fb;
  color: var(--rijschool-blue);
}

.rn-detail-card,
.rn-report-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-detail-card__header,
.rn-report-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.rn-detail-card__header h2,
.rn-report-card__header h2 {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.rn-detail-card__header > i,
.rn-report-card__header > i {
  color: var(--rijschool-blue);
  font-size: 18px;
}

.rn-detail-list {
  margin: 0;
  padding: 0 18px;
}

.rn-detail-list > div {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
}

.rn-detail-list > div:last-child {
  border-bottom: 0;
}

.rn-detail-list dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.rn-detail-list dt i {
  width: 18px;
  color: var(--rijschool-blue);
  text-align: center;
}

.rn-detail-list dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.student-overview-hero {
  display: grid;
  gap: 14px;
  padding: 20px !important;
}

.student-overview-hero__top {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.student-overview-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 15px;
  font-weight: 800;
}

.student-overview-hero__identity {
  min-width: 0;
}

.student-overview-label,
.package-hero-label {
  margin: 0;
  color: var(--rijschool-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.student-overview-hero .dashboard-title {
  overflow: hidden;
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 23px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-overview-hero .dashboard-subtitle {
  overflow: hidden;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-body .detail-list-card {
  display: grid;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}

.rn-body .detail-row {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: start;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f4;
  color: var(--text-primary);
  font-size: 13px;
}

.rn-body .detail-row:last-child {
  border-bottom: 0;
}

.rn-body .detail-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.student-account-actions-card {
  padding: 14px 18px !important;
}

.student-logout-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #f1c8c8;
  border-radius: 9px;
  background: #fffafa;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.package-summary-shell {
  display: grid;
  gap: 14px;
  padding: 18px !important;
}

.package-summary-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-summary-shell h3 {
  margin: 4px 0 2px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.package-summary-shell__header > div > span:last-child {
  color: var(--text-secondary);
  font-size: 12px;
}

.package-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.package-summary-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
}

.package-summary-card--primary {
  border-color: #cbdced;
  background: #f7faff;
}

.package-summary-card small,
.package-summary-card span {
  color: var(--text-secondary);
  font-size: 10px;
}

.package-summary-card strong {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 750;
}

.package-status--completed,
.package-status--active,
.package-status--paid {
  background: #e7f7ed !important;
  color: #147a38 !important;
}

.package-status--cancelled,
.package-status--rejected {
  background: #fde8e8 !important;
  color: #b42318 !important;
}

.package-status--pending,
.package-status--waiting,
.package-status--inactive {
  background: #fff2cf !important;
  color: #9a6700 !important;
}

.student-payment-history-card {
  padding: 0 !important;
  overflow: hidden;
}

.payment-history-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.payment-history-card > header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.payment-history-card > header span,
.payment-history-card > header div > span {
  color: var(--text-secondary);
  font-size: 11px;
}

.payment-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.payment-overview-box {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
}

.payment-overview-box span {
  color: var(--text-secondary);
  font-size: 10px;
}

.payment-overview-box strong {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.payment-history-timeline {
  display: grid;
  gap: 0;
  padding: 6px 18px 10px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.payment-history-item:last-child {
  border-bottom: 0;
}

.payment-history-item__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px #e7f7ed;
}

.payment-history-item strong,
.payment-history-item span,
.payment-history-item p,
.payment-history-item small {
  display: block;
  margin: 0;
}

.payment-history-item strong {
  color: var(--text-primary);
  font-size: 13px;
}

.payment-history-item span,
.payment-history-item p,
.payment-history-item small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.payment-history-item p {
  color: var(--text-primary);
}

.lesson-details-page,
.payment-details-page {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.lesson-details-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-back-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--rijschool-blue);
}

.lesson-details-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 750;
}

.lesson-student-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.lesson-student-avatar,
.lesson-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 12px;
  font-weight: 750;
}

.lesson-student-main {
  min-width: 0;
  flex: 1 1 auto;
}

.lesson-student-name {
  overflow: hidden;
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-student-type {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.lesson-status,
.lesson-inline-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.lesson-status--planned,
.lesson-inline-status--planned { background: #eaf1fb; color: var(--rijschool-blue); }
.lesson-status--completed,
.lesson-inline-status--completed { background: #e7f7ed; color: #147a38; }
.lesson-status--cancelled,
.lesson-inline-status--cancelled { background: #fde8e8; color: #b42318; }

.lesson-info-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-lg);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.lesson-info-row {
  display: grid;
  grid-template-columns: 28px minmax(105px, .7fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: start;
  padding: 13px 18px;
  border-bottom: 1px solid #edf0f4;
}

.lesson-info-row:last-child {
  border-bottom: 0;
}

.lesson-info-icon {
  color: var(--rijschool-blue);
  font-size: 14px;
  text-align: center;
}

.lesson-info-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.lesson-info-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.lesson-info-value.empty {
  color: var(--text-muted);
  font-weight: 500;
}

.lesson-notes-value {
  white-space: pre-wrap;
}

.lesson-actions,
.payment-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-actions form {
  display: flex;
}

.lesson-action-btn,
.payment-details-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.lesson-action-edit,
.payment-details-action--edit {
  border-color: #cbdced;
  color: var(--rijschool-blue);
}

.lesson-action-cancel,
.payment-details-action--delete {
  border-color: #f1c8c8;
  background: #fffafa;
  color: var(--danger);
}

.lesson-action-complete {
  border-color: #bfe4ca;
  background: #f7fdf9;
  color: #147a38;
}

.payment-details-hero {
  padding: 19px 20px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.payment-details-hero__label,
.payment-details-card__label {
  color: var(--rijschool-blue) !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

.payment-details-hero h1 {
  margin: 5px 0 4px;
  color: var(--text-primary);
  font-size: 23px;
  font-weight: 750;
}

.payment-details-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.payment-details-summary-card,
.payment-progress-card,
.payment-details-card {
  min-width: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.payment-details-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}

.payment-details-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 13px;
  font-weight: 750;
}

.payment-details-summary-card > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.payment-details-summary-card > div:nth-child(2) > span {
  color: var(--text-secondary);
  font-size: 11px;
}

.payment-details-summary-card h1 {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-progress-card,
.payment-details-card {
  padding: 17px 18px !important;
}

.payment-progress-card__header,
.payment-progress-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-progress-card__header span,
.payment-progress-card__footer span {
  color: var(--text-secondary);
  font-size: 11px;
}

.payment-progress-card__header strong,
.payment-progress-card__footer strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.payment-progress-card__percentage {
  color: var(--rijschool-blue) !important;
  font-size: 12px !important;
  font-weight: 750;
}

.payment-progress {
  height: 7px;
  margin: 15px 0 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef5;
}

.payment-progress > div {
  height: 100%;
  border-radius: inherit;
  background: var(--rijschool-blue);
}

.payment-details-card h2 {
  margin: 5px 0 15px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.payment-info-list {
  display: grid;
  gap: 10px;
}

.payment-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.payment-info-row i {
  width: 16px;
  flex: 0 0 auto;
  color: var(--rijschool-blue);
  text-align: center;
}

.payment-details-page > .payment-history-card {
  padding: 0 !important;
  overflow: hidden;
}

.payment-details-actions {
  justify-content: flex-end;
}

.payment-details-action--back {
  margin-right: auto;
}

.package-hero-card--details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.package-hero-stack {
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
}

.package-hero-note {
  color: var(--text-secondary);
  font-size: 11px;
}

.package-detail-card {
  padding: 18px !important;
}

.package-detail-card h2 {
  margin: 0 0 13px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.package-hours-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.package-hours-form > label {
  grid-column: 1 / -1;
}

.package-hours-form > button {
  grid-column: auto;
}

.package-lesson-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.package-lesson-stats > div {
  display: grid;
  min-width: 120px;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfcfe;
}

.package-lesson-stats small {
  color: var(--text-secondary);
  font-size: 10px;
}

.package-lesson-stats strong {
  color: var(--text-primary);
  font-size: 18px;
}

.package-lesson-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.package-lesson-list__item {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) minmax(100px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
  color: var(--text-secondary);
  font-size: 11px;
}

.package-lesson-list__item strong {
  color: var(--text-primary);
  font-size: 12px;
}

.package-lesson-list__item small {
  color: var(--text-secondary);
  font-size: 10px;
}

.rn-report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rn-report-stat {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 14px 48px 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--rn-radius-md);
  background: var(--surface);
  box-shadow: var(--rn-shadow-sm);
}

.rn-report-stat span {
  color: var(--text-secondary);
  font-size: 11px;
}

.rn-report-stat strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-report-stat > i {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
}

.rn-report-stat--blue > i { background: #eaf1fb; color: var(--rijschool-blue); }
.rn-report-stat--orange > i { background: #fff0e9; color: var(--van-nederland-orange); }
.rn-report-stat--success > i { background: #e7f7ed; color: var(--success); }
.rn-report-stat--neutral > i { background: #f1f4f8; color: var(--text-secondary); }

.rn-report-card__header {
  padding-bottom: 15px;
}

.rn-workload-list {
  display: grid;
  gap: 0;
  padding: 4px 18px 8px;
}

.rn-workload-row {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
}

.rn-workload-row:last-child {
  border-bottom: 0;
}

.rn-workload-row__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rn-workload-row__label strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-workload-row__label span {
  color: var(--text-secondary);
  font-size: 10px;
}

.rn-workload-row__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef5;
}

.rn-workload-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rijschool-blue);
}

@media (max-width: 767.98px) {
  .rn-detail-hero,
  .rn-report-hero,
  .package-hero-card--details {
    align-items: flex-start;
    flex-direction: column;
  }

  .rn-detail-hero .rn-status-badge,
  .rn-detail-hero__action,
  .package-hero-stack {
    align-self: stretch;
  }

  .rn-detail-hero__action,
  .package-hero-stack {
    justify-items: start;
    text-align: left;
  }

  .rn-detail-hero__action {
    width: 100%;
  }

  .rn-detail-list > div,
  .rn-body .detail-row {
    grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr);
    gap: 10px;
  }

  .package-summary-grid,
  .rn-report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-summary-shell__header,
  .payment-details-summary-card,
  .lesson-student-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .payment-details-summary-card > .payment-status,
  .lesson-student-summary > .lesson-status {
    margin-left: 52px;
  }

  .lesson-info-row {
    grid-template-columns: 25px minmax(95px, .7fr) minmax(0, 1.3fr);
    padding-inline: 14px;
  }

  .lesson-actions,
  .payment-details-actions {
    flex-direction: column;
  }

  .lesson-actions form,
  .lesson-action-btn,
  .payment-details-action {
    width: 100%;
  }

  .payment-details-action--back {
    margin-right: 0;
  }

  .package-hours-form {
    grid-template-columns: 1fr;
  }

  .package-hours-form > button {
    grid-column: 1 / -1;
  }

  .package-lesson-list__item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .package-lesson-list__item small {
    grid-column: 2;
  }

  .rn-workload-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .lessons-page--student {
    gap: 10px;
  }

  .lessons-page--student .student-lessons-hero h1 {
    font-size: 2rem;
  }

  .lessons-page--student .student-lessons-hero p {
    font-size: .95rem;
  }

  .lessons-page--student .student-lessons-tabs {
    border-radius: 14px;
  }

  .lessons-page--student .student-lessons-tab.lesson-filter-chip {
    min-height: 44px;
    font-size: .86rem !important;
  }

  .lessons-page--student .lesson-card__link--student {
    grid-template-columns: 60px minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 10px;
  }

  .lessons-page--student .student-lesson-card__date-block {
    min-height: 70px;
    border-radius: 11px;
  }

  .lessons-page--student .student-lesson-card__weekday,
  .lessons-page--student .student-lesson-card__month {
    font-size: .78rem;
  }

  .lessons-page--student .student-lesson-card__date-block strong {
    font-size: 1.55rem;
  }

  .lessons-page--student .student-lesson-card__title {
    font-size: 1.2rem;
  }

  .lessons-page--student .student-lesson-card__status {
    min-height: 22px;
    padding: 0 7px;
    font-size: .62rem;
  }

  .lessons-page--student .student-lesson-card__meta {
    font-size: .95rem;
    gap: 6px;
  }

  .lessons-page--student .student-lesson-card__meta i {
    font-size: .82rem;
  }

  .lessons-page--student .student-lesson-card__chevron {
    font-size: 1.15rem;
  }

  .rn-detail-hero,
  .rn-report-hero,
  .student-overview-hero,
  .package-summary-shell,
  .payment-details-hero,
  .payment-progress-card,
  .payment-details-card {
    padding-inline: 14px !important;
  }

  .rn-detail-list,
  .payment-history-timeline,
  .rn-workload-list {
    padding-inline: 14px;
  }

  .rn-detail-list > div,
  .rn-body .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .package-summary-grid,
  .rn-report-stat-grid,
  .payment-overview-grid {
    grid-template-columns: 1fr;
  }

  .lesson-info-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .lesson-info-value {
    grid-column: 2;
  }

  .payment-details-summary-card > .payment-status,
  .lesson-student-summary > .lesson-status {
    margin-left: 0;
  }
}

/* Student-facing portal uses the same compact brand system. */
.student-home-page--lux {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.student-desktop-hero {
  display: none;
}

.student-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.student-dashboard-pill,
.student-section-card {
  min-width: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--rn-radius-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--rn-shadow-sm) !important;
}

.student-dashboard-pill {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 13px 12px 13px 47px;
}

.student-dashboard-pill__icon {
  position: absolute;
  top: 13px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
}

.student-dashboard-pill span {
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.2;
}

.student-dashboard-pill strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-dashboard-pill--agreed {
  border-color: #1f4b95 !important;
  background: linear-gradient(150deg, #1f5db8 0%, #184589 100%) !important;
}

.student-dashboard-pill--purchased {
  border-color: #b6501f !important;
  background: linear-gradient(150deg, #cf652d 0%, #a54618 100%) !important;
}

.student-dashboard-pill--used {
  border-color: #1f7b44 !important;
  background: linear-gradient(150deg, #279955 0%, #1b6f3d 100%) !important;
}

.student-dashboard-pill--planned {
  border-color: #4b3ca3 !important;
  background: linear-gradient(150deg, #6250ca 0%, #44358f 100%) !important;
}

.student-dashboard-pill--remaining {
  border-color: #a66e16 !important;
  background: linear-gradient(150deg, #c68a1b 0%, #8f6110 100%) !important;
}

.student-dashboard-pill--outstanding {
  border-color: #8a1126 !important;
  background: linear-gradient(150deg, #a21a31 0%, #6f0f22 100%) !important;
}

.student-dashboard-pill--agreed span,
.student-dashboard-pill--agreed strong,
.student-dashboard-pill--purchased span,
.student-dashboard-pill--purchased strong,
.student-dashboard-pill--used span,
.student-dashboard-pill--used strong,
.student-dashboard-pill--planned span,
.student-dashboard-pill--planned strong,
.student-dashboard-pill--remaining span,
.student-dashboard-pill--remaining strong,
.student-dashboard-pill--outstanding span,
.student-dashboard-pill--outstanding strong {
  color: #f8fbff;
}

.student-dashboard-pill--agreed .student-dashboard-pill__icon,
.student-dashboard-pill--purchased .student-dashboard-pill__icon,
.student-dashboard-pill--used .student-dashboard-pill__icon,
.student-dashboard-pill--planned .student-dashboard-pill__icon,
.student-dashboard-pill--remaining .student-dashboard-pill__icon,
.student-dashboard-pill--outstanding .student-dashboard-pill__icon {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.student-section-card {
  overflow: hidden;
}

.student-section-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--border);
}

.student-section-card__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.student-section-card__title-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #eaf1fb;
  color: var(--rijschool-blue);
  font-size: 13px;
}

.student-section-card__header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}

.student-section-card__header a {
  color: var(--rijschool-blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.student-section-card__body {
  padding: 14px 18px;
}

.student-pending-lessons-list {
  display: grid;
  gap: 8px;
}

.student-next-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--rijschool-blue);
  border-radius: 10px;
  background: #fbfcfe;
}

.student-next-item--clickable {
  cursor: pointer;
}


.student-home-page .student-next-item--status-confirmed {
  background: #15803d !important;
  border-color: #15803d !important;
  border-left-color: #166534 !important;
}

.student-home-page .student-next-item--status-declined {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  border-left-color: #991b1b !important;
}

.student-home-page .student-next-item--status-waiting {
  background: #ea580c !important;
  border-color: #ea580c !important;
  border-left-color: #c2410c !important;
}

.student-home-page .student-next-item--status-confirmed .student-next-item__type,
.student-home-page .student-next-item--status-confirmed .student-next-item__schedule,
.student-home-page .student-next-item--status-confirmed .student-next-item__instructor,
.student-home-page .student-next-item--status-confirmed .student-next-item__location,
.student-home-page .student-next-item--status-declined .student-next-item__type,
.student-home-page .student-next-item--status-declined .student-next-item__schedule,
.student-home-page .student-next-item--status-declined .student-next-item__instructor,
.student-home-page .student-next-item--status-declined .student-next-item__location,
.student-home-page .student-next-item--status-waiting .student-next-item__type,
.student-home-page .student-next-item--status-waiting .student-next-item__schedule,
.student-home-page .student-next-item--status-waiting .student-next-item__instructor,
.student-home-page .student-next-item--status-waiting .student-next-item__location {
  color: #fff;
}

.student-home-page .student-next-item--status-confirmed .student-next-item__type i,
.student-home-page .student-next-item--status-confirmed .student-next-item__schedule i,
.student-home-page .student-next-item--status-confirmed .student-next-item__instructor i,
.student-home-page .student-next-item--status-confirmed .student-next-item__location i,
.student-home-page .student-next-item--status-declined .student-next-item__type i,
.student-home-page .student-next-item--status-declined .student-next-item__schedule i,
.student-home-page .student-next-item--status-declined .student-next-item__instructor i,
.student-home-page .student-next-item--status-declined .student-next-item__location i,
.student-home-page .student-next-item--status-waiting .student-next-item__type i,
.student-home-page .student-next-item--status-waiting .student-next-item__schedule i,
.student-home-page .student-next-item--status-waiting .student-next-item__instructor i,
.student-home-page .student-next-item--status-waiting .student-next-item__location i,
.student-home-page .student-next-item--status-confirmed .student-next-item__side .bi-chevron-right,
.student-home-page .student-next-item--status-declined .student-next-item__side .bi-chevron-right,
.student-home-page .student-next-item--status-waiting .student-next-item__side .bi-chevron-right {
  color: rgba(255, 255, 255, .92);
}

.student-home-page .student-next-item--status-confirmed .student-next-item__date-block,
.student-home-page .student-next-item--status-declined .student-next-item__date-block,
.student-home-page .student-next-item--status-waiting .student-next-item__date-block {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .35);
}

.student-home-page .student-next-item--status-confirmed .student-next-item__date-block strong,
.student-home-page .student-next-item--status-confirmed .student-next-item__date-block span,
.student-home-page .student-next-item--status-declined .student-next-item__date-block strong,
.student-home-page .student-next-item--status-declined .student-next-item__date-block span,
.student-home-page .student-next-item--status-waiting .student-next-item__date-block strong,
.student-home-page .student-next-item--status-waiting .student-next-item__date-block span {
  color: #fff;
}

.student-next-item__top,
.student-next-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.student-next-item__type,
.student-next-item__instructor,
.student-next-item__location,
.student-next-item__schedule {
  margin: 0;
}

.student-next-item__type {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}

.student-next-item__type i,
.student-next-item__instructor i,
.student-next-item__location i {
  margin-right: 5px;
  color: var(--rijschool-blue);
}

.student-next-item__schedule {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 750;
}

.student-next-item__instructor,
.student-next-item__location {
  color: var(--text-secondary);
  font-size: 11px;
}

.student-next-item__status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.student-next-item__status--waiting { background: #fff2cf; color: #9a6700; }
.student-next-item__status--confirmed { background: #e7f7ed; color: #147a38; }
.student-next-item__status--declined { background: #fde8e8; color: #b42318; }

.student-next-item__date-block {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 74px;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
}

.student-next-item__date-block strong {
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.student-next-item__date-block span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.student-next-item__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.student-next-item__side {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: end;
}

.student-next-item__side .bi-chevron-right {
  color: var(--text-muted);
  font-size: 13px;
}

.student-next-item--compact-row .student-next-item__schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.student-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 700;
}

.student-action-btn i {
  margin-right: 0 !important;
}

.student-action-btn--confirm {
  background: var(--rijschool-blue) !important;
  border-color: var(--rijschool-blue) !important;
}

.student-action-btn--decline {
  border-color: #f1c8c8 !important;
  background: #fffafa !important;
  color: var(--danger) !important;
}

.student-next-item__actions--hero,
.student-next-item__actions--compact {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(340px, 100%);
  gap: 8px;
  align-items: stretch;
  justify-self: center;
}

.student-next-item__actions--compact {
  grid-column: 1 / -1;
}

.student-next-item__actions--hero form,
.student-next-item__actions--compact form {
  display: block !important;
  width: 100%;
  min-width: 0;
}

.student-next-item__actions--hero form.d-inline,
.student-next-item__actions--compact form.d-inline {
  display: block !important;
  width: 100%;
}

.student-next-item__actions--compact .student-action-btn,
.student-next-item__actions--hero .student-action-btn {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px !important;
  font-size: 12px;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.lesson-action-confirm {
  border-color: #bfe4ca;
  background: #f7fdf9;
  color: #147a38;
}

.student-package-item {
  display: grid;
  gap: 8px;
}

.student-package-item__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.student-package-item__head strong {
  color: var(--text-primary);
  font-size: 14px;
}

.student-package-item__head span,
.student-package-item p {
  color: var(--text-secondary);
  font-size: 11px;
}

.student-package-item p {
  margin: 0;
}

.student-package-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef5;
}

.student-package-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rijschool-blue);
}

@media (min-width: 1024px) {
  .student-home-page--lux {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .student-desktop-hero,
  .student-dashboard-strip {
    grid-column: 1 / -1;
  }

  .student-desktop-hero {
    position: relative;
    display: grid;
    min-height: 166px;
    overflow: hidden;
    border: 1px solid #1f4c9b;
    border-radius: 18px;
    background: linear-gradient(115deg, #0f4aa1 0%, #1e5fc0 42%, #f7faff 42.5%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(15, 49, 109, .12);
  }

  .student-desktop-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 16px solid rgba(249, 115, 22, .9);
    opacity: .4;
    pointer-events: none;
  }

  .student-desktop-hero__content {
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 5px;
    max-width: 56%;
    padding: 20px 24px;
  }

  .student-desktop-hero__eyebrow {
    color: rgba(235, 244, 255, .9);
    font-size: 14px;
    font-weight: 650;
  }

  .student-desktop-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
  }

  .student-desktop-hero p {
    margin: 0;
    color: rgba(235, 244, 255, .95);
    font-size: 14px;
    line-height: 1.45;
  }

  .student-desktop-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8a2a 0%, #f15a29 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
  }

  .student-section-card__header {
    padding: 14px 18px;
  }

  .student-section-card__header a {
    font-size: 14px;
    font-weight: 700;
  }

  .student-section-card__title-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 14px;
  }

  .student-empty-state__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid #d6e3f6;
    background: #fff;
    color: var(--rijschool-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .student-dashboard-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .student-dashboard-pill {
    flex: 0 0 178px;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(15, 31, 61, .06) !important;
    overflow: hidden;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "icon value";
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
  }

  .student-dashboard-pill::after {
    display: none;
  }

  .student-dashboard-pill strong {
    grid-area: value;
    font-size: 16px;
  }

  .student-dashboard-pill span {
    grid-area: label;
    font-size: 10px;
  }

  .student-dashboard-pill .student-dashboard-pill__icon {
    grid-area: icon;
    position: static;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    box-shadow: 0 3px 8px rgba(15, 31, 61, .15);
  }

  .student-next-item--compact-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .student-next-item--compact-row .student-next-item__date-block {
    width: 78px;
    min-height: 62px;
  }

  .student-next-item--compact-row .student-next-item__instructor {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .student-section-card__header h2 {
    font-size: 19px;
    letter-spacing: -.02em;
  }

  .student-section-card--hero,
  .student-section-card--recent,
  .student-section-card--package {
    min-height: 100%;
  }

  .student-next-item__actions--hero,
  .student-next-item__actions--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(360px, 100%);
    gap: 8px;
    justify-self: center;
  }

  .student-next-item__actions--hero form,
  .student-next-item__actions--compact form {
    width: 100%;
    min-width: 0;
  }

  .student-next-item__actions--hero .student-action-btn,
  .student-next-item__actions--compact .student-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 9px !important;
    font-size: 12px;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .student-dashboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .student-home-page .student-next-item--status-confirmed {
    background: #15803d !important;
    border-color: #15803d !important;
    border-left-color: #166534 !important;
  }

  .student-home-page .student-next-item--status-declined {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    border-left-color: #991b1b !important;
  }

  .student-home-page .student-next-item--status-waiting {
    background: #ea580c !important;
    border-color: #ea580c !important;
    border-left-color: #c2410c !important;
  }

  .student-home-page .student-next-item--status-confirmed .student-next-item__type,
  .student-home-page .student-next-item--status-confirmed .student-next-item__schedule,
  .student-home-page .student-next-item--status-confirmed .student-next-item__instructor,
  .student-home-page .student-next-item--status-confirmed .student-next-item__location,
  .student-home-page .student-next-item--status-declined .student-next-item__type,
  .student-home-page .student-next-item--status-declined .student-next-item__schedule,
  .student-home-page .student-next-item--status-declined .student-next-item__instructor,
  .student-home-page .student-next-item--status-declined .student-next-item__location,
  .student-home-page .student-next-item--status-waiting .student-next-item__type,
  .student-home-page .student-next-item--status-waiting .student-next-item__schedule,
  .student-home-page .student-next-item--status-waiting .student-next-item__instructor,
  .student-home-page .student-next-item--status-waiting .student-next-item__location,
  .student-home-page .student-next-item--status-confirmed .student-next-item__date-block strong,
  .student-home-page .student-next-item--status-confirmed .student-next-item__date-block span,
  .student-home-page .student-next-item--status-declined .student-next-item__date-block strong,
  .student-home-page .student-next-item--status-declined .student-next-item__date-block span,
  .student-home-page .student-next-item--status-waiting .student-next-item__date-block strong,
  .student-home-page .student-next-item--status-waiting .student-next-item__date-block span,
  .student-home-page .student-next-item--status-confirmed .student-next-item__side .bi-chevron-right,
  .student-home-page .student-next-item--status-declined .student-next-item__side .bi-chevron-right,
  .student-home-page .student-next-item--status-waiting .student-next-item__side .bi-chevron-right {
    color: #fff !important;
  }

  .student-home-page .student-next-item--status-confirmed .student-next-item__type i,
  .student-home-page .student-next-item--status-confirmed .student-next-item__schedule i,
  .student-home-page .student-next-item--status-confirmed .student-next-item__instructor i,
  .student-home-page .student-next-item--status-confirmed .student-next-item__location i,
  .student-home-page .student-next-item--status-declined .student-next-item__type i,
  .student-home-page .student-next-item--status-declined .student-next-item__schedule i,
  .student-home-page .student-next-item--status-declined .student-next-item__instructor i,
  .student-home-page .student-next-item--status-declined .student-next-item__location i,
  .student-home-page .student-next-item--status-waiting .student-next-item__type i,
  .student-home-page .student-next-item--status-waiting .student-next-item__schedule i,
  .student-home-page .student-next-item--status-waiting .student-next-item__instructor i,
  .student-home-page .student-next-item--status-waiting .student-next-item__location i {
    color: rgba(255, 255, 255, .92) !important;
  }

  .student-home-page .student-next-item--status-confirmed .student-next-item__date-block,
  .student-home-page .student-next-item--status-declined .student-next-item__date-block,
  .student-home-page .student-next-item--status-waiting .student-next-item__date-block {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .35) !important;
  }

  .student-dashboard-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .student-dashboard-strip::-webkit-scrollbar {
    display: none;
  }

  .student-dashboard-pill {
    flex: 0 0 min(40vw, 150px);
    min-height: 72px;
    padding: 10px;
    gap: 3px;
    scroll-snap-align: start;
  }

  .student-dashboard-pill__icon {
    position: static;
    top: auto;
    left: auto;
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    border-radius: 7px;
    font-size: 11px;
    justify-self: start;
  }

  .student-dashboard-pill span {
    font-size: 9px;
  }

  .student-dashboard-pill strong {
    font-size: 13px;
  }

  .student-section-card__body {
    padding: 12px;
  }

  .student-section-card--recent .student-section-card__header {
    padding: 8px 10px;
  }

  .student-section-card--recent .student-section-card__title-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 10px;
  }

  .student-section-card--recent .student-section-card__header h2 {
    font-size: 19px;
  }

  .student-section-card--recent .student-section-card__header a {
    font-size: 10px;
  }

  .student-section-card--recent .student-section-card__body {
    padding: 6px 8px;
  }

  .student-section-card--recent .student-pending-lessons-list {
    gap: 5px;
  }

  .student-section-card--recent .student-next-item--compact-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 8px;
  }

  .student-section-card--recent .student-next-item__date-block {
    width: 46px;
    min-height: 40px;
    border-radius: 7px;
  }

  .student-section-card--recent .student-next-item__date-block strong {
    font-size: 14px;
  }

  .student-section-card--recent .student-next-item__date-block span {
    font-size: 7px;
    letter-spacing: .2px;
  }

  .student-section-card--recent .student-next-item__schedule {
    gap: 4px;
    font-size: 11px;
  }

  .student-section-card--recent .student-next-item__instructor {
    font-size: 9px;
  }

  .student-section-card--recent .student-next-item__side {
    gap: 3px;
    justify-items: end;
  }

  .student-section-card--recent .student-next-item__actions--compact {
    grid-column: 1 / -1;
    margin-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(300px, 100%);
    gap: 7px;
    justify-self: center;
  }

  .student-section-card--recent .student-next-item__actions--compact .student-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 9px !important;
    gap: 6px;
  }

  .student-section-card--recent .student-next-item__side .bi-chevron-right {
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .student-dashboard-pill {
    flex-basis: min(38vw, 132px);
  }
}

@media (max-width: 767.98px) {
  .rn-dashboard__metrics,
  .students-stats,
  .more-menu-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .rn-dashboard__metrics::-webkit-scrollbar,
  .students-stats::-webkit-scrollbar,
  .more-menu-grid::-webkit-scrollbar {
    display: none;
  }

  .rn-dashboard__metrics > .rn-metric,
  .students-stats > .students-stat-card,
  .more-menu-grid > .more-menu-card,
  .more-menu-grid > .more-logout-form {
    flex: 0 0 min(68vw, 230px);
    scroll-snap-align: start;
  }

  .more-menu-grid > .more-logout-form {
    margin: 0;
  }

  .more-menu-grid > .more-logout-form > .more-menu-card {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .rn-app-content h1,
  .rn-app-content .h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .rn-app-content h2,
  .rn-app-content .h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .rn-app-content h3,
  .rn-app-content .h3 {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
  }

  .rn-app-content h4,
  .rn-app-content .h4,
  .rn-app-content h5,
  .rn-app-content .h5,
  .rn-app-content h6,
  .rn-app-content .h6 {
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.35;
  }

  .rn-app-content p,
  .rn-app-content li,
  .rn-app-content label,
  .rn-app-content a,
  .rn-app-content button,
  .rn-app-content input,
  .rn-app-content select,
  .rn-app-content textarea,
  .rn-app-content td,
  .rn-app-content th,
  .rn-app-content small,
  .rn-app-content span {
    font-size: .86rem;
  }

  .rn-app-content strong,
  .rn-app-content b {
    font-weight: 700;
  }

  .rn-app-content .rn-metric strong,
  .rn-app-content .students-stat-card__value {
    font-size: 1.2rem;
    font-weight: 750;
  }

  .rn-app-content .rn-metric div span,
  .rn-app-content .students-stat-card__label {
    font-size: .75rem;
    font-weight: 600;
  }
}

@media (max-width: 767.98px) {
  .rn-dashboard__metrics > .rn-metric,
  .students-page .students-stats > .students-stat-card {
    border-width: 1px;
    box-shadow: 0 10px 24px rgba(15, 31, 61, .2);
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .rn-dashboard__metrics > .rn-metric {
    min-height: 70px;
    padding: 8px;
    flex: 0 0 min(42vw, 150px);
  }

  .students-page .students-stats > .students-stat-card,
  .instructors-page .students-stats > .students-stat-card {
    min-height: 70px;
    padding: 8px;
    flex: 0 0 min(42vw, 150px);
  }

  .students-page .students-stats,
  .instructors-page .students-stats {
    gap: 8px;
  }

  .rn-dashboard__metrics > .rn-metric > div,
  .students-page .students-stats > .students-stat-card .students-stat-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .rn-dashboard__metrics > .rn-metric .rn-metric__icon,
  .students-page .students-stats > .students-stat-card .students-stat-card__icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
  }

  .rn-dashboard__metrics > .rn-metric strong,
  .students-page .students-stats > .students-stat-card .students-stat-card__value {
    order: 1;
    margin: 0;
    font-size: 1.02rem;
    color: #f8fbff;
  }

  .rn-dashboard__metrics > .rn-metric div span,
  .students-page .students-stats > .students-stat-card .students-stat-card__label {
    order: 2;
    font-size: .72rem;
    line-height: 1.2;
    color: #f8fbff;
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(1),
  .students-page .students-stats > .students-stat-card:nth-child(1) {
    border-color: #2959ad;
    background: linear-gradient(160deg, #2f63be 0%, #1f4c9b 100%);
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(2),
  .students-page .students-stats > .students-stat-card:nth-child(2) {
    border-color: #c8622d;
    background: linear-gradient(160deg, #dc7138 0%, #b54f1b 100%);
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(3),
  .students-page .students-stats > .students-stat-card:nth-child(3) {
    border-color: #c19a22;
    background: linear-gradient(160deg, #d4ad2e 0%, #a8861a 100%);
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(4),
  .students-page .students-stats > .students-stat-card:nth-child(4) {
    border-color: #2f8f57;
    background: linear-gradient(160deg, #3aa968 0%, #2b7d4d 100%);
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(5) {
    border-color: #b84a4a;
    background: linear-gradient(160deg, #d05a5a 0%, #a33a3a 100%);
  }

  .rn-dashboard__metrics > .rn-metric:nth-child(6),
  .rn-dashboard__metrics > .rn-metric:nth-child(7) {
    border-color: #4f6085;
    background: linear-gradient(160deg, #5f739e 0%, #41526f 100%);
  }
}


/* Keep intake summary cards in one scrollable row at every screen size. */
.intake-index-page .students-stats.intake-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 12px;
}

.intake-index-page .students-stats.intake-summary > .students-stat-card {
  flex: 1 0 140px;
  min-width: 140px;
  width: auto;
  scroll-snap-align: start;
}

.intake-index-page .students-stats.intake-summary::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.intake-index-page .students-stats.intake-summary::-webkit-scrollbar-thumb {
  background: #a6b4ca;
  border-radius: 999px;
}

.intake-index-page .students-stats.intake-summary:focus-visible {
  outline: 2px solid #2959ad;
  outline-offset: 3px;
}

/* These pages use their data tables on mobile as well as desktop. */
@media (max-width: 991.98px) {
  .intake-index-page .students-table-shell,
  .lesson-packages-page .students-table-shell,
  .intake-index-page .intake-student-list {
    min-width: 0;
    max-width: 100%;
  }

  .intake-index-page .students-desktop-table-wrap,
  .lesson-packages-page .students-desktop-table-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .intake-index-page .students-desktop-table-wrap:focus-visible,
  .lesson-packages-page .students-desktop-table-wrap:focus-visible {
    outline: 2px solid #2959ad;
    outline-offset: -2px;
  }
}

/* Compact mobile tables: name, a small status badge, and the action menu. */
@media (max-width: 767.98px) {
  .intake-index-page .intake-table,
  .lesson-packages-page .packages-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .intake-index-page .intake-table :is(th, td):nth-child(2),
  .intake-index-page .intake-table :is(th, td):nth-child(3),
  .lesson-packages-page .packages-table :is(th, td):nth-child(1),
  .lesson-packages-page .packages-table :is(th, td):nth-child(3),
  .lesson-packages-page .packages-table :is(th, td):nth-child(4),
  .lesson-packages-page .packages-table :is(th, td):nth-child(5),
  .lesson-packages-page .packages-table :is(th, td):nth-child(6) {
    display: none;
  }

  .intake-index-page .intake-table :is(th, td),
  .lesson-packages-page .packages-table :is(th, td) {
    padding: 10px 6px;
  }

  .intake-index-page .intake-table :is(th, td):nth-child(4),
  .lesson-packages-page .packages-table :is(th, td):nth-child(7) {
    width: 90px;
  }

  .intake-index-page .intake-table :is(th, td):last-child,
  .lesson-packages-page .packages-table :is(th, td):last-child {
    width: 40px;
    text-align: right;
  }

  .intake-index-page .intake-table .students-table__avatar,
  .lesson-packages-page .packages-table .students-table__avatar {
    display: none;
  }

  .intake-index-page .intake-table .students-table__student-name,
  .lesson-packages-page .packages-table .students-table__student-name {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .intake-index-page .intake-table .students-table__status,
  .lesson-packages-page .packages-table .students-table__status {
    font-size: 9px;
    padding: 3px 5px;
    white-space: normal;
    line-height: 1.25;
  }
}

/* Match student directory typography to the compact intake list. */
:is(.students-directory-page, .instructors-page) .students-mobile-card__identity h3 {
  font-size: 13px;
}
:is(.students-directory-page, .instructors-page) .students-mobile-card__meta,
:is(.students-directory-page, .instructors-page) .students-mobile-card__meta strong {
  font-size: 12px;
}
@media (max-width: 767.98px) {
  :is(.students-directory-page, .instructors-page) .students-mobile-card__identity h3,
  :is(.students-directory-page, .instructors-page) .students-table__student-name {
    font-size: 12px;
    line-height: 1.4;
  }
  :is(.students-directory-page, .instructors-page) .students-table__status {
    font-size: 9px;
    padding: 3px 5px;
    line-height: 1.25;
  }
}
