:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #d9e2ef;
  --line-strong: #c7d3e4;
  --text: #20314d;
  --muted: #64748b;

  --primary: #87a3e8;
  --primary-hover: #7696e1;
  --soft: #f6edf0;
  --soft-border: #e4d7dd;
  --ghost: #ffffff;

  --pastel-green: #d9f3e4;
  --pastel-orange: #ffe7d1;
  --pastel-red: #f8d7da;
  --pastel-yellow: #fff4c9;
  --pastel-blue: #dcecff;

  --sidebar-bg: #eef3fb;
  --sidebar-border: #d8e2f0;

  --shadow: 0 8px 24px rgba(32, 49, 77, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;

  display: flex;
  flex-direction: column;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, #a9bcf4, #89a4e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 22px;
}

.brand-card h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.brand-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.menu-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s ease;
}

.menu-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.menu-btn.is-active {
  background: #e6eefc;
  border-color: #b8caf1;
  font-weight: 700;
}

.main-content {
  padding: 28px;
  min-width: 0;
  overflow-x: hidden;
}

.card {
  min-width: 0;
}

#view-registratie {
  min-width: 0;
}

#view-registratie .card {
  min-width: 0;
  overflow-x: hidden;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

#pageTitle {
  font-size: 28px;
  margin-bottom: 8px;
}

#pageSubtitle {
  color: var(--muted);
  margin-bottom: 0;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  min-height: 180px;
}

.card-topline {
  color: #7b8ba8;
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.primary-btn,
.soft-btn,
.ghost-btn,
.icon-btn,
.mode-btn {
  cursor: pointer;
  border-radius: 14px;
  font-size: 16px;
  transition: 0.2s ease;
}

.primary-btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.soft-btn {
  border: 1px solid var(--soft-border);
  background: var(--soft);
  color: #d73d61;
  padding: 12px 16px;
  font-weight: 700;
}

.ghost-btn {
  border: 1px solid var(--line-strong);
  background: var(--ghost);
  color: var(--text);
  padding: 12px 16px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: white;
  width: 42px;
  height: 42px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

label span {
  display: block;
  margin-bottom: 8px;
  color: #6b7b95;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
}

textarea {
  min-height: 62px;
  resize: vertical;
}

.notice-box {
  margin-top: 16px;
  background: #f8fbff;
  border: 1px dashed #cfd8e6;
  border-radius: 16px;
  padding: 14px 16px;
  color: #5e708f;
}

.logo-preview-box {
  margin-top: 18px;
}

.logo-preview-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.logo-preview {
  border: 1px dashed #cfd8e6;
  background: #f8fbff;
  border-radius: 18px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.logo-preview img {
  max-width: 200px;
  max-height: 110px;
  display: none;
}

.logo-preview img.has-logo {
  display: block;
}

.logo-placeholder {
  color: #7d8da8;
}

.toolbar-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toolbar-row-wrap {
  flex-wrap: wrap;
}

.classlist-box,
.periods-box {
  margin-top: 18px;
}

.simple-list {
  margin: 0;
  padding: 0;
}

.leerling-empty {
  list-style: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fbff;
  color: #667085;
  border: 1px dashed #cfd8e6;
}

.leerling-item {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
}

.leerling-naam {
  font-weight: 700;
  color: #243447;
}

.leerling-acties {
  display: flex;
  gap: 8px;
}

.actie-btn {
  border: none;
  background: white;
  border-radius: 10px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.actie-verwijder {
  color: #c0392b;
}

.actie-bewerk {
  color: #516883;
}

.period-add-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.period-item {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.period-meta {
  color: #60728f;
  font-size: 14px;
}

.registration-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 18px;
}

.sticky-toolbar {
  position: sticky;
  top: 16px;
  z-index: 20;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.toolbar-field-group {
  min-width: 160px;
}

#view-registratie .primary-btn,
#view-registratie .soft-btn {
  padding: 10px 14px;
}

#view-registratie .toolbar-field-group label {
  margin-bottom: 6px;
}

#view-registratie input[type="text"],
#view-registratie input[type="date"],
#view-registratie select {
  padding: 10px 12px;
}

.toolbar-field-group {
  min-width: 180px;
}

.mode-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mode-btn {
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--text);
  padding: 12px 16px;
}

.mode-btn.is-active {
  background: #d9f0e4;
  border-color: #bfe0cd;
  font-weight: 700;
}

.table-scroll-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 62vh;
  max-width: 100%;
  width: 100%;
  background: white;
}

.registratie-tabel {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  width: max-content;
  max-width: none;
}

.registratie-tabel th,
.registratie-tabel td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
  background: white;
}

.registratie-tabel thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #eef3fb;
  color: #253a62;
}

.registratie-tabel thead th:first-child {
  left: 0;
  z-index: 30;
  background: #eef3fb;
}

.registratie-tabel td:first-child,
.registratie-tabel th:first-child {
  position: sticky;
  left: 0;
  min-width: 260px;
  width: 260px;
  background: #f7faff;
  z-index: 20;
  box-shadow: 2px 0 0 #d9e2ef;
}

.registratie-dagkolom,
.registratie-dagcel,
.registratie-start-cell {
  min-width: 230px;
  width: 230px;
  max-width: 230px;
}

.registratie-hint-kolom {
  color: #6d7f9c;
  background: #eef3fb;
}

.registratie-start-cell {
  color: #64748b;
  background: #ffffff;
  line-height: 1.6;
}

.registratie-tabel tr:first-child th:first-child {
  z-index: 12;
}

.name-cell {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.name-cell-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.name-actions .ghost-btn {
  padding: 8px 10px;
  font-size: 13px;
}

.column-top {
  font-weight: 700;
  margin-bottom: 6px;
}

.column-sub {
  color: #6d7f9c;
  font-size: 13px;
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-select {
  border-radius: 12px;
  font-weight: 700;
}

.status-op-tijd {
  background: var(--pastel-green);
}

.status-te-laat {
  background: var(--pastel-orange);
}

.status-niet-in-orde {
  background: var(--pastel-red);
}

.status-onvolledig {
  background: var(--pastel-yellow);
}

.status-afwezig {
  background: var(--pastel-blue);
}

.help-modal[hidden] {
  display: none;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 49, 77, 0.38);
}

.help-dialog {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 7vh auto 0;
  background: white;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(32, 49, 77, 0.18);
  overflow: hidden;
}

.help-header,
.help-footer {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-footer {
  border-bottom: none;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.help-body {
  padding: 22px;
  color: #42526b;
  line-height: 1.6;
}

.pdf-note {
  color: #66788f;
  font-size: 13px;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .grid.two-columns,
  .form-grid.two,
  .period-add-grid,
  .period-item {
    grid-template-columns: 1fr;
  }

  .page-header,
  .registration-toolbar {
    flex-direction: column;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .toolbar-field-group {
    min-width: 100%;
  }
}
/* LOGO FIX (NIET UITREKKEN) */
.logo-preview img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* PDF LOGO */
.pdf-logo {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

/* STATUS KLEUREN */
.status-select.status-op-tijd {
  background: #d9f3e4;
}
.status-select.status-te-laat {
  background: #ffe7d1;
}
.status-select.status-niet-in-orde {
  background: #f8d7da;
}
.status-select.status-onvolledig {
  background: #fff4c9;
}
.status-select.status-afwezig {
  background: #dcecff;
}
/* Popup rapportperiode bewerken: niet transparant */
#periodeEditModal .help-backdrop {
  background: rgba(32, 49, 77, 0.48);
}

#periodeEditModal .help-dialog {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 24px 60px rgba(32, 49, 77, 0.22);
}

/* Instelling drempel iets netter */
#extraOpvolgingDrempelInput {
  max-width: 140px;
}
#leerlingModal .help-backdrop,
#uitschrijfModal .help-backdrop,
#schooljaarModal .help-backdrop {
  background: rgba(32, 49, 77, 0.48);
}

#leerlingModal .help-dialog,
#uitschrijfModal .help-dialog,
#schooljaarModal .help-dialog {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 24px 60px rgba(32, 49, 77, 0.22);
}
.dashboard-stack {
  display: grid;
  gap: 20px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero-left,
.dashboard-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-hero-text {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.dashboard-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dashboard-highlight-box {
  height: 100%;
  border: 1px solid #d8e3f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.dashboard-highlight-label {
  font-size: 14px;
  color: #6f80a0;
  font-weight: 700;
  margin-bottom: 10px;
}

.dashboard-highlight-value {
  font-size: 30px;
  font-weight: 800;
  color: #243b6b;
}

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

.stat-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  color: #70819f;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.stat-value {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: #243b6b;
  margin-bottom: 10px;
}

.stat-note {
  color: var(--muted);
  font-size: 14px;
}

.dashboard-bottom-grid {
  align-items: start;
}

.dashboard-panel {
  min-height: 100%;
}

.dashboard-steps,
.dashboard-rules {
  display: grid;
  gap: 14px;
}

.dashboard-step,
.dashboard-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 16px;
}

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

.dashboard-step p,
.dashboard-rule p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dfeaff;
  color: #365491;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .dashboard-hero,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-hero-simple {
  grid-template-columns: 1.4fr 0.7fr;
}

.dashboard-bottom-grid {
  align-items: start;
}

.dashboard-panel {
  min-height: 100%;
}

.dashboard-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dashboard-highlight-box {
  min-height: 180px;
}

.dashboard-step,
.dashboard-rule {
  background: #fbfcff;
}

@media (max-width: 1100px) {
  .dashboard-hero-simple {
    grid-template-columns: 1fr;
  }
}
.menu-btn-dashboard {
  background: #eef4ff;
  border-color: #d8e6ff;
}

.menu-btn-instellingen {
  background: #fff6e8;
  border-color: #f4dfb8;
}

.menu-btn-klaslijst {
  background: #eefaf1;
  border-color: #d6ebda;
}

.menu-btn-rapportperiodes {
  background: #fff4f7;
  border-color: #efd7df;
}

.menu-btn-registratie {
  background: #f5f2ff;
  border-color: #ddd6f6;
}

.menu-btn-dashboard:hover,
.menu-btn-dashboard.is-active {
  background: #dfeafe;
  border-color: #c9dbff;
}

.menu-btn-instellingen:hover,
.menu-btn-instellingen.is-active {
  background: #fdeecf;
  border-color: #edd8a9;
}

.menu-btn-klaslijst:hover,
.menu-btn-klaslijst.is-active {
  background: #dff3e4;
  border-color: #cce4d2;
}

.menu-btn-rapportperiodes:hover,
.menu-btn-rapportperiodes.is-active {
  background: #fde7ee;
  border-color: #ebcfd9;
}

.menu-btn-registratie:hover,
.menu-btn-registratie.is-active {
  background: #ebe6ff;
  border-color: #d8cff5;
}
/* DASHBOARD RUSTIGER MAKEN */
.dashboard-single-block {
  max-width: 920px;
}

.dashboard-panel-narrow {
  max-width: 920px;
}

.dashboard-hero-simple {
  grid-template-columns: 1.5fr 0.65fr;
}

.dashboard-highlight-box {
  min-height: 140px;
  padding: 20px;
}

.dashboard-highlight-value {
  font-size: 24px;
}

.dashboard-step {
  padding: 12px 14px;
}

.dashboard-step p {
  margin-top: 4px;
}

/* ZACHTE PASTELKLEUREN LINKS */
.menu-btn-dashboard {
  background: #edf4ff !important;
  border-color: #d9e6fb !important;
}

.menu-btn-instellingen {
  background: #fff5e8 !important;
  border-color: #f1dfbf !important;
}

.menu-btn-klaslijst {
  background: #eef9f0 !important;
  border-color: #d9eadc !important;
}

.menu-btn-rapportperiodes {
  background: #fff1f5 !important;
  border-color: #edd7df !important;
}

.menu-btn-registratie {
  background: #f4f1ff !important;
  border-color: #ddd7f3 !important;
}

.menu-btn-dashboard:hover,
.menu-btn-dashboard.is-active {
  background: #ddeafe !important;
  border-color: #c9daf9 !important;
}

.menu-btn-instellingen:hover,
.menu-btn-instellingen.is-active {
  background: #fceccf !important;
  border-color: #ecd8ab !important;
}

.menu-btn-klaslijst:hover,
.menu-btn-klaslijst.is-active {
  background: #def1e2 !important;
  border-color: #cfe3d3 !important;
}

.menu-btn-rapportperiodes:hover,
.menu-btn-rapportperiodes.is-active {
  background: #fbe4eb !important;
  border-color: #e7ced8 !important;
}

.menu-btn-registratie:hover,
.menu-btn-registratie.is-active {
  background: #eae4ff !important;
  border-color: #d6cdf1 !important;
}
/* LINKSBOVEN: KEUZEMENU + SCHOOLJAAR */
.top-left-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* KEUZEMENU KNOP */
.keuzemenu-btn {
  background: #1A3A5C;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.keuzemenu-btn:hover {
  background: #2c5d8a;
}

/* SCHOOLJAAR BLOK */
.schooljaar-box {
  background: #eef4ff;
  border: 1px solid #d8e6ff;
  border-radius: 16px;
  padding: 12px 14px;
}

.schooljaar-label {
  display: block;
  font-size: 12px;
  color: #6f80a0;
  font-weight: 700;
  margin-bottom: 4px;
}

#schooljaarDisplay {
  font-size: 16px;
  font-weight: 700;
  color: #243b6b;
}
/* UITLEGBLOKKEN IN HET SCHERM */
.uitleg-open-row {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-start;
}

.uitleg-panel {
  margin-bottom: 18px;
  border: 1px solid #d8e2f0;
  border-radius: 18px;
  background: #f8fbff;
  overflow: hidden;
}

.uitleg-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #edf4ff;
  border-bottom: 1px solid #d8e2f0;
}

.uitleg-panel-body {
  padding: 16px;
  color: #4d617f;
  line-height: 1.7;
}

.uitleg-toggle-btn {
  padding: 9px 12px;
  font-size: 14px;
}

.uitleg-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #d7e3f5;
  background: #eef4ff;
  color: #28456f;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.uitleg-open-btn:hover {
  background: #e3edff;
  border-color: #c8d8f1;
}

.hidden {
  display: none !important;
}

/* REGISTRATIE LEEGTOESTAND */
.registratie-empty {
  padding: 26px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
}

.registratie-empty-cell {
  padding: 0 !important;
}
/* SCHOOLJAAR */
.schooljaar-select {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 10px;
  border: 1px solid #c7d3e4;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #ffffff;
  color: #20314d;
}

.schooljaar-btn {
  width: 100%;
  margin-top: 2px;
}

.schooljaar-info {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #5f7394;
}
/* TESTFASE BANNER */
.testfase-banner {
  background: #fff4e5;
  border-bottom: 1px solid #f0d5a8;
  color: #7a5a1e;
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.testfase-banner span:first-child {
  font-weight: 700;
}
/* INSTELLINGEN – VISUELE POLISH */
.instellingen-card {
  max-width: 1200px;
}

.instellingen-intro {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fbff, #f1f6ff);
  border: 1px solid #dbe6f5;
  border-radius: 18px;
}

.instellingen-intro h3 {
  margin-bottom: 8px;
  font-size: 24px;
  color: #243b6b;
}

.instellingen-intro p {
  margin-bottom: 0;
  color: #5f7394;
  line-height: 1.7;
}

.instellingen-stack {
  display: grid;
  gap: 20px;
}

.instellingen-blok {
  background: #fbfdff;
  border: 1px solid #dbe6f3;
  border-radius: 22px;
  padding: 22px;
}

.instellingen-blok-header {
  margin-bottom: 18px;
}

.instellingen-blok-header h4 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #243b6b;
}

.instellingen-blok-header p {
  margin-bottom: 0;
  color: #6b7b95;
  line-height: 1.6;
}

.instellingen-kleine-info {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px dashed #cfd8e6;
  border-radius: 14px;
  color: #60728f;
  line-height: 1.6;
}

.instellingen-opvolging-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.instellingen-smal-veld input {
  max-width: 160px;
}

.instellingen-uitleg-box {
  background: #f6faff;
  border-style: solid;
}

.instellingen-logo-box {
  margin-top: 18px;
}

.instellingen-logo-preview {
  min-height: 210px;
}

.instellingen-logo-preview img {
  max-width: 220px;
  max-height: 160px;
}

@media (max-width: 900px) {
  .instellingen-opvolging-grid {
    grid-template-columns: 1fr;
  }
}

#pdfKlasBtn,
#pdfAlleLeerlingenBtn {
  background: #fff7fa;
  border-color: #f0d7df;
  color: #c93b61;
  font-weight: 700;
}

#pdfKlasBtn:hover,
#pdfAlleLeerlingenBtn:hover {
  background: #fdeef3;
  border-color: #e8c4d0;
}

#plakLijstBtn {
  font-weight: 700;
  border-radius: 14px;
}

#plakLijstBtn:hover {
  background: #eef4ff;
  border-color: #c8d8f1;
}

/* REGISTRATIE – COMPACTERE BOVENBALK */
.registratie-topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.registratie-uitleg-row {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.registratie-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 0;
}

.registration-toolbar {
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.toolbar-left,
.toolbar-right {
  gap: 10px;
}

.registratie-datum-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: nowrap;
}

.registratie-datum-veld {
  min-width: 150px;
}

#view-registratie .toolbar-field-group label {
  margin-bottom: 6px;
}

#view-registratie input[type="text"],
#view-registratie input[type="date"],
#view-registratie select {
  padding: 10px 12px;
}

#view-registratie .primary-btn,
#view-registratie .soft-btn {
  padding: 10px 14px;
}

#pdfKlasBtn,
#pdfAlleLeerlingenBtn {
  background: #fff7fa;
  border-color: #f0d7df;
  color: #c93b61;
  font-weight: 700;
}

#pdfKlasBtn:hover,
#pdfAlleLeerlingenBtn:hover {
  background: #fdeef3;
  border-color: #e8c4d0;
}

@media (max-width: 900px) {
  .registratie-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .registratie-datum-row {
    flex-wrap: wrap;
  }
}

.klaslijst-uitleg {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  color: #4d617f;
  font-size: 14px;
  line-height: 1.6;
}

#plakLijstBtn {
  background: #eef4ff;
  border: 1px solid #c8d8f1;
  color: #28456f;
  font-weight: 700;
}

#clearKlaslijstBtn {
  background: #fff1f3;
  border: 1px solid #efcfd7;
  color: #b43b57;
  font-weight: 700;
}
#pdfZwartWitBtn {
  background: #f5f5f5;
  border-color: #d2d2d2;
  color: #444;
  font-weight: 700;
}

#pdfZwartWitBtn:hover {
  background: #ebebeb;
  border-color: #bfbfbf;
}

#pdfKlasZwartWitBtn,
#pdfAlleLeerlingenZwartWitBtn {
  background: #f2f2f2;
  border-color: #cfcfcf;
  color: #444;
  font-weight: 700;
}

#pdfKlasZwartWitBtn:hover,
#pdfAlleLeerlingenZwartWitBtn:hover {
  background: #e7e7e7;
  border-color: #bdbdbd;
}

.pdf-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pdf-loading-overlay.hidden {
  display: none;
}

.pdf-loading-box {
  background: white;
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  color: #20314d;
  min-width: 320px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.pdf-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #dbe6f3;
  border-top: 4px solid #3b6fd8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.pdf-loading-bar {
  width: 100%;
  height: 12px;
  background: #edf2fa;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.pdf-loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #87a3e8, #3b6fd8);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pdf-loading-bar-fill.is-indeterminate {
  width: 42%;
  animation: pdfLoadingIndeterminate 1.2s ease-in-out infinite;
}

.pdf-loading-percent {
  margin-top: 10px;
  font-size: 13px;
  color: #5f7394;
  min-height: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pdfLoadingIndeterminate {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(240%);
  }
}

.privacy-box {
  margin-top: auto;
  padding-top: 20px;
}

#privacyModal .help-backdrop {
  background: rgba(32, 49, 77, 0.48);
}

#privacyModal .help-dialog {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 24px 60px rgba(32, 49, 77, 0.22);
}