* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-family-base: 'Segoe UI', Arial, sans-serif;
  --color-accent: #e94eae;
  --color-titlebar: #2c3e50;
  --color-bg: #e8edf0;
  --color-card: #ffffff;
  --color-text: #2c3e50;
  --color-text-soft: rgba(44, 62, 80, 0.45);
  --color-success: #27ae60;
  --color-danger: #e74c3c;
  --color-school-bg: #f0f4f7;
}

body {
  font-family: var(--font-family-base);
  background: var(--color-bg);
  color: var(--color-text);
}

/* -------------------------------------------------------------------------- */
/* Index page                                                                  */
/* -------------------------------------------------------------------------- */

body.page-index {
  --np-btn: clamp(40px, calc((100vh - 551px) / 4), 110px);
  --accent: var(--color-accent);
  --titelbalk: var(--color-titlebar);
  --roosterscherm_achtergrond: var(--color-card);
  --roosterscherm_tekst: var(--color-text);
  --numpad_achtergrond: var(--color-titlebar);
  --numpad_knop: rgba(255, 255, 255, 0.12);
  --numpad_knop_tekst: #ffffff;
  --lettertype: var(--font-family-base);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (orientation: landscape) {
  body.page-index {
    --np-btn: clamp(40px, calc((100vh - 102px) / 4), 110px);
  }
}

#main {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
}

@media (orientation: landscape) {
  #main {
    flex-direction: row;
  }
}

#upper {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: clamp(10px, 2vh, 24px) clamp(8px, 1.5vw, 18px) clamp(6px, 1.2vh, 14px);
  overflow: hidden;
}

@media (orientation: landscape) {
  #upper {
    padding: clamp(8px, 1.8vh, 20px) clamp(4px, 0.8vw, 10px) clamp(8px, 1.8vh, 20px)
      clamp(6px, 1.2vw, 14px);
    flex: 0 0 75%;
    width: 75%;
  }
}

#kaart {
  background: var(--roosterscherm_achtergrond);
  color: var(--roosterscherm_tekst);
  border-radius: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(14px, 2.8vh, 32px) clamp(10px, 1.8vw, 24px) clamp(12px, 2.2vh, 26px);
}

#titelscherm {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.t-logo {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.t-rooster {
  color: var(--roosterscherm_tekst);
}

.t-ding {
  color: var(--accent);
}

.t-sep {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.4;
  margin: 6px 0;
}

.t-school {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--roosterscherm_tekst);
  opacity: 0.55;
  letter-spacing: 0.01em;
}

.t-groet {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--roosterscherm_tekst);
  opacity: 0.35;
  font-style: italic;
}

#invoer-scherm {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.invoer-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roosterscherm_tekst);
  opacity: 0.3;
}

.invoer-getal {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  min-height: 1.2em;
}

.invoer-getal::after {
  content: '|';
  animation: blink 1s step-end infinite;
  opacity: 0.5;
  margin-left: 4px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0;
  }
}

#invoer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

#rooster-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

#rooster-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

#rooster-datum {
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--accent);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

#timer-track {
  flex: 1;
  height: 7px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

#timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 60%, transparent),
    var(--accent)
  );
  border-radius: 4px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: width 1s linear;
  position: relative;
}

#rooster-body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

#rooster-tabel-wrap {
  height: 100%;
  overflow-y: auto;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

#rooster-tabel-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(1.1rem, 3.2vh, 2.2rem);
  font-weight: 500;
}

#rooster-tabel-wrap thead tr {
  background: linear-gradient(
    135deg,
    var(--titelbalk),
    color-mix(in srgb, var(--titelbalk) 80%, #000)
  );
  color: #fff;
}

#rooster-tabel-wrap thead th {
  padding: clamp(8px, 1.4vh, 16px) clamp(10px, 1.2vw, 20px);
  text-align: left;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.7vh, 1.05rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

#rooster-tabel-wrap thead th:first-child {
  border-radius: 10px 0 0 0;
}

#rooster-tabel-wrap thead th:last-child {
  border-radius: 0 10px 0 0;
}

#rooster-tabel-wrap tbody tr {
  border-bottom: 1px solid #eef1f4;
  height: clamp(48px, 9vh, 110px);
}

#rooster-tabel-wrap tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.018);
}

#rooster-tabel-wrap tbody tr:last-child {
  border-bottom: none;
}

#rooster-tabel-wrap tbody td {
  padding: clamp(8px, 1.8vh, 18px) clamp(10px, 1.2vw, 20px);
  color: var(--roosterscherm_tekst);
  white-space: nowrap;
  overflow: hidden;
}

.uur-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: clamp(34px, 5vh, 60px);
  height: clamp(34px, 5vh, 60px);
  font-size: clamp(0.95rem, 2.4vh, 1.5rem);
  font-weight: 800;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 50%, transparent);
}

.vervallen td {
  text-decoration: line-through;
  opacity: 0.4;
}

.gewijzigd {
  background: #ffe0e0;
}

#rooster-tabel-wrap td.vak {
  font-weight: 600;
}

#numpad-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 1.5vw, 18px) clamp(10px, 2vh, 24px);
  flex-shrink: 0;
}

@media (orientation: landscape) {
  #numpad-outer {
    padding: clamp(8px, 1.8vh, 20px) clamp(8px, 1.8vw, 20px) clamp(8px, 1.8vh, 20px)
      clamp(4px, 0.8vw, 10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 25%;
    width: 25%;
    align-self: stretch;
  }
}

#numpad-card {
  background: var(--numpad_achtergrond);
  border-radius: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  padding: clamp(10px, 1.8vh, 20px) clamp(12px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vh, 12px);
  width: 100%;
}

@media (orientation: landscape) {
  #numpad-card {
    height: 100%;
  }
}

#numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.np-btn {
  background: var(--numpad_knop);
  color: var(--numpad_knop_tekst);
  border: none;
  border-radius: 14px;
  font-size: calc(var(--np-btn) * 0.38);
  font-weight: 800;
  font-family: var(--lettertype);
  padding: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  cursor: pointer;
  transition: background 0.1s, transform 0.08s;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-btn:hover {
  background: var(--numpad_knop_hover, rgba(255, 255, 255, 0.22));
}

.np-btn:active {
  transform: scale(0.93);
}

.numpad-inactief .np-btn:not(#wis-btn) {
  opacity: 0.25;
  pointer-events: none;
}

.numpad-inactief .np-btn:not(#wis-btn):active {
  transform: none;
}

.np-btn.accent-btn {
  background: var(--accent);
  color: #fff;
  font-size: max(11px, calc(var(--np-btn) * 0.2));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.np-btn.accent-btn:hover {
  filter: brightness(1.1);
}

.np-btn.reset-btn {
  background: #22c55e;
  color: #fff;
  font-size: max(11px, calc(var(--np-btn) * 0.2));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.np-btn.reset-btn:hover {
  filter: brightness(1.1);
}

.np-btn.del-btn {
  font-size: calc(var(--np-btn) * 0.3);
  color: rgba(255, 255, 255, 0.65);
}

#zoek-btn {
  font-size: max(11px, calc(var(--np-btn) * 0.2));
  color: #6b7280;
  font-weight: 700;
  background: #ffffff !important;
  width: var(--np-btn);
  height: var(--np-btn);
  aspect-ratio: 1 / 1;
  padding: 0;
}

#status-balk {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 3px 16px;
  font-size: clamp(0.6rem, 1.2vh, 0.72rem);
  color: var(--numpad_knop_tekst);
  opacity: 0.55;
  background: transparent;
}

#modus-registratie {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--numpad_achtergrond);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#reg-kaart {
  background: #34495e;
  border-radius: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 40px);
  width: min(420px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#reg-kaart h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

#reg-kaart h1 span {
  color: var(--accent);
}

#reg-kaart p.reg-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -10px;
}

.reg-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 5px;
}

.reg-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  font-family: var(--lettertype);
  outline: none;
  transition: border-color 0.15s;
}

.reg-input:focus {
  border-color: var(--accent);
}

#reg-code-btn,
#reg-submit {
  width: 100%;
  padding: 12px 18px;
  background: #e94eae;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  font-family: var(--lettertype);
  letter-spacing: -0.01em;
}

#reg-code-btn:hover,
#reg-submit:hover {
  opacity: 0.9;
}

#reg-code-btn:active,
#reg-submit:active {
  opacity: 0.8;
}

#reg-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reg-input option {
  background: #2c3e50;
  color: #fff;
}

#reg-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--lettertype);
  cursor: pointer;
  transition: filter 0.15s;
  margin-top: 4px;
}

#reg-submit:hover {
  filter: brightness(1.1);
}

#reg-submit:active {
  transform: scale(0.98);
}

#reg-status {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/* Dashboard page                                                              */
/* -------------------------------------------------------------------------- */

body.page-dashboard {
  --accent: var(--color-accent);
  --titelbalk: var(--color-titlebar);
  --bg: var(--color-bg);
  --kaart: var(--color-card);
  --tekst: var(--color-text);
  --tekst-zacht: var(--color-text-soft);
  --groen: var(--color-success);
  --rood: var(--color-danger);
  --school-bg: var(--color-school-bg);
  background: var(--bg);
  color: var(--tekst);
  min-height: 100vh;
}

header {
  background: var(--titelbalk);
  color: #fff;
  padding: 10px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

header h1 span {
  color: var(--accent);
}

.header-left {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
}

.header-center {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex: 0 0 180px;
  width: 180px;
  min-height: 24px;
}

.customer-statusbar {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.1;
}

.customer-statusbar.status-problem {
  color: #ffd1d1;
}

#refresh-status {
  font-size: 0.76rem;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
  margin-top: 0;
}

#refresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--groen);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kaart-rij {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.kaart {
  background: var(--kaart);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}

.kaart-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  margin-bottom: 6px;
}

.kaart-waarde {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tekst);
  line-height: 1;
}

.kaart-waarde.accent {
  color: var(--accent);
}

.kaart-sub {
  font-size: 0.76rem;
  color: var(--tekst-zacht);
  margin-top: 4px;
}

.sectie {
  background: var(--kaart);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin-bottom: 0;
}

.sectie-header {
  padding: 0 28px;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sectie-header.tools {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.sectie-title {
  justify-self: start;
}

.sectie-actions {
  display: none;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.sectie-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: var(--tekst);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.tool-btn:hover {
  background: #f7f9fb;
}

.tool-btn.edit {
  padding: 6px 8px;
  min-width: 30px;
  text-align: center;
}

.tool-btn.destruct {
  border-color: rgba(231, 76, 60, 0.35);
  color: #c0392b;
  background: #fff6f5;
}

.tool-btn.neutral {
  border-color: rgba(44, 62, 80, 0.2);
}

.tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.req-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.req-tabel thead th {
  padding: 9px 16px;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.req-tabel thead th.school-col {
  text-align: left;
}

.req-tabel tr.school-rij {
  background: var(--school-bg);
  cursor: pointer;
}

.req-tabel tr.school-rij:hover {
  background: color-mix(in srgb, var(--school-bg) 88%, #ffffff);
}

.req-tabel tr.school-rij td {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.school-naam-cel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.school-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  color: var(--tekst-zacht);
  transition: transform 0.14s ease;
}

.school-toggle.ingeklapt {
  transform: rotate(-90deg);
}

.school-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.req-tabel tr.device-rij td {
  padding: 8px 16px 8px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--tekst);
}

.req-tabel tr.device-rij.verborgen {
  display: none;
}

.req-tabel tr.device-rij:last-child td {
  border-bottom: none;
}

.device-naam {
  color: var(--tekst);
  font-size: 0.87rem;
}

.device-activiteit {
  font-size: 0.72rem;
  color: var(--tekst-zacht);
  margin-top: 1px;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.select-col {
  width: 34px;
  text-align: center;
}

.select-col input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--accent);
}

.select-col.hidden {
  display: none;
}

.num-school {
  font-weight: 700;
  color: var(--tekst);
}

.num-device {
  color: var(--tekst);
}

.cache-rijen {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cache-rij {
  display: grid;
  grid-template-columns: 130px minmax(220px, 3fr) 56px minmax(170px, 1fr) 80px;
  align-items: center;
  gap: 14px;
  font-size: 0.87rem;
}

.cache-naam {
  font-weight: 600;
}

.progress-track {
  height: 7px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--groen);
  transition: width 0.5s ease;
}

.progress-fill.middel {
  background: var(--accent);
}

.progress-fill.laag {
  background: var(--rood);
}

.cache-pct {
  font-weight: 700;
  font-size: 0.85rem;
  text-align: right;
}

.cache-meta {
  font-size: 0.72rem;
  color: var(--tekst-zacht);
  text-align: right;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-groen {
  background: #d5f5e3;
  color: var(--groen);
}

.badge-grijs {
  background: #eee;
  color: #aaa;
}

#waarschuwing {
  display: none;
  background: #fef3ec;
  border: 2px solid #e9a04e;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#waarschuwing.kritiek {
  background: #fdecea;
  border-color: #e74c3c;
}

#waarschuwing.verborgen {
  display: none;
}

.waarschuwing-icoon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.waarschuwing-tekst strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.waarschuwing-tekst span {
  font-size: 0.82rem;
  opacity: 0.75;
}

#laad-indicator {
  text-align: center;
  padding: 60px;
  color: var(--tekst-zacht);
  font-size: 0.95rem;
}

#fout-melding {
  display: none;
  background: #fdecea;
  border: 1.5px solid #f5c6cb;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--rood);
  font-size: 0.88rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 35, 46, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-kaart {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.modal-kop {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tekst);
}

.modal-inhoud {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
}

.modal-info {
  color: var(--tekst);
  line-height: 1.45;
}

.modal-lijst {
  max-height: 132px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafcfe;
  font-size: 0.8rem;
  color: var(--tekst-zacht);
  white-space: pre-line;
}

.modal-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
}

.modal-input {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.94rem;
  outline: none;
}

.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 160, 78, 0.2);
}

.modal-fout {
  display: none;
  color: #c0392b;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-knoppen {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 16px;
}

footer {
  text-align: center;
  padding: 22px;
  font-size: 0.73rem;
  color: var(--tekst-zacht);
}

@media (max-width: 640px) {
  .kaart-rij {
    grid-template-columns: 1fr;
  }

  .cache-rij {
    grid-template-columns: 1fr 1fr;
  }

  .cache-rij .progress-track,
  .cache-rij .cache-meta {
    display: none;
  }

  .req-tabel thead th:nth-child(3) {
    display: none;
  }

  .req-tabel td:nth-child(3) {
    display: none;
  }
}
