/* Admin in de stijl van de wizard van Changing Life: wit, zwart, geel, kaarten met een afgesneden hoek. */
:root { --inkt: #1b2026; --grijs: #606a74; --bg: #f4f6f7; --lijn: #e1e5e9; --veld: #cbd3d9; --geel: #ffe110; --groen: #0c793d; --groen-zacht: #e5f5eb; --rood: #c8102e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--inkt); font: 400 14px/1.45 "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; }
h2 { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.sub { margin: 0; color: var(--grijs); }
.licht { color: var(--grijs); font-weight: 400; }
button, input, select { font: inherit; }

.kaart { background: #fff; border: 1px solid var(--lijn); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); padding: 22px 24px; margin-bottom: 14px; }
.merk { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.merk-blok { display: grid; place-items: center; width: 40px; height: 40px; background: #111; color: #fff; font-size: 13px; letter-spacing: 0; }

.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 22px; border: 0; border-radius: 99px; font-weight: 700; cursor: pointer; }
.knop.geel { background: var(--geel); color: #000; }
.knop.zwart { background: #111; color: #fff; }
.knop.rand { background: #fff; color: var(--inkt); border: 1px solid var(--veld); }
.knop.breed { width: 100%; }
.knop:hover { filter: brightness(.96); }
.knop:focus-visible, .nav:focus-visible, .link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--geel), 0 0 0 4px #111; }
.knop:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }

.veld { display: block; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.veld input, .veld select { display: block; width: 100%; min-height: 43px; margin-top: 5px; padding: 9px 12px; background: #fff; border: 1px solid var(--veld); border-radius: 6px; color: var(--inkt); font-size: 13px; font-weight: 400; outline: none; }
.veld input:focus { border-color: #111; box-shadow: 0 0 0 3px var(--geel); }
.veld .cl-kl, .veld .cl-dk { margin-top: 5px; }
.veld .cl-dk input { margin-top: 0; }
.melding { min-height: 18px; margin: 4px 0 8px; color: var(--rood); font-size: 12px; font-weight: 700; }

/* Inloggen */
.inlog { min-height: 100svh; display: grid; place-items: center; padding: 20px 12px; }
.inlog-kaart { width: 100%; max-width: 440px; padding: 28px 28px 22px; }
.inlog-kaart .merk { margin-bottom: 26px; }
.inlog-kaart .sub { margin-bottom: 18px; }
.dev { margin: 14px 0 0; padding: 10px 12px; background: var(--geel); font-size: 12px; font-weight: 700; }
.dev a { color: #000; }

/* Opbouw */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100svh; }
aside { display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; background: #fff; border-right: 1px solid var(--lijn); }
nav { display: grid; gap: 4px; }
.nav { text-align: left; padding: 11px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--inkt); font-weight: 700; cursor: pointer; }
.nav:hover { background: #f0f2f4; }
.nav.actief { background: #111; color: #fff; }
.wie { margin-top: auto; font-size: 12px; }
.wie-naam { font-weight: 800; margin-bottom: 4px; }
main { padding: 30px 34px 60px; min-width: 0; max-width: 1040px; }
.scherm { display: none; }
.scherm.actief { display: block; }
.kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.keuzes { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keuzes legend { padding: 0; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.keuzes label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--veld); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.keuzes label:has(input:checked) { background: #111; border-color: #111; color: #fff; }
.keuzes input { position: absolute; opacity: 0; }
.keuzes label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--geel); }
.knoppen { display: flex; justify-content: flex-end; gap: 10px; }

.rij { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rij-naam { font-weight: 800; font-size: 15px; }
.rij-info { color: var(--grijs); font-size: 12px; margin-top: 3px; }
.pil { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 5px; background: #eef0f2; color: var(--grijs); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.pil.aan { background: var(--groen-zacht); color: var(--groen); }
.schakel { position: relative; flex: none; width: 48px; height: 28px; }
.schakel input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.schakel span { position: absolute; inset: 0; border-radius: 99px; background: #cfd4d9; transition: background .15s; }
.schakel span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.schakel input:checked + span { background: var(--groen); }
.schakel input:checked + span::after { transform: translateX(20px); }
.schakel input:focus-visible + span { box-shadow: 0 0 0 3px var(--geel), 0 0 0 4px #111; }
.leeg { color: var(--grijs); padding: 6px 0; }

.uitnodiging { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lijn); }
.uitnodiging p { margin: 0 0 10px; }
.kopieer { display: flex; gap: 8px; }
.kopieer input { flex: 1; min-width: 0; min-height: 43px; padding: 9px 12px; border: 1px solid var(--veld); border-radius: 6px; background: #f8f9fa; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 90px); padding: 12px 20px; border-radius: 99px; background: #111; color: #fff; font-weight: 700; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; transition: transform .2s ease; }
.toast.zicht { transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  aside { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--lijn); overflow-x: auto; }
  nav { display: flex; }
  .wie { margin: 0 0 0 auto; white-space: nowrap; }
  .wie-naam { display: none; }
  aside .merk span:last-child { display: none; }
  main { padding: 20px 16px 60px; }
  .raster { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .schakel span, .schakel span::after, .toast { transition: none; } }
