/* Dashboard v2: wizard Nieuw event (D4, 2026-10-11). Elke regel begint met ".v2 ".
   Hergebruikt het witte kader .v2-blok (shell.css), de veldbouwers (gegevens.css), de checklist (overzicht.css)
   en de templaterijen (overzicht.css). Hier staat enkel wat de wizard zelf toevoegt: kop, stappenbalk,
   keuzekaarten, samenvatting, toegangscode en de knoppenrij. */

.v2 .v2-wizard { max-width: 760px; padding: 24px; }

/* ---------------- Kop ---------------- */
.v2 .v2-wz-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.v2 .v2-wz-kop { flex-wrap: wrap; }
.v2 .v2-wz-titelblok { flex: 0 0 auto; white-space: nowrap; }
.v2 .v2-wz-kopacties { margin-left: auto; }
.v2 .v2-wz-teller { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.v2 .v2-wz-kopacties { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.v2 .v2-wz-sluit { min-height: 36px; }

/* ---------------- Stappenbalk ---------------- */
.v2 .v2-wz-stappen { display: flex; align-items: center; margin: 0 0 24px; padding: 0; list-style: none; }
.v2 .v2-wz-stap { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.v2 .v2-wz-stap:not(:last-child) { flex: 1 1 auto; }
.v2 .v2-wz-stap:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 10px; height: 2px; margin: 0 10px; border-radius: 2px; background: var(--line); }
.v2 .v2-wz-stap.is-klaar:not(:last-child)::after { background: #b9dfc6; }
.v2 .v2-wz-bol { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 2px solid #c8c8cf; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); }
.v2 .v2-wz-bol svg { width: 14px; height: 14px; }
.v2 .v2-wz-stap.is-actief { color: var(--ink); }
.v2 .v2-wz-stap.is-actief .v2-wz-bol { border-color: transparent; background: var(--grad); color: #fff; }
.v2 .v2-wz-stap.is-klaar .v2-wz-bol { border-color: transparent; background: #dff3e6; color: #166534; }
.v2 .v2-wz-stapnaam { white-space: nowrap; }
.v2 .v2-wz-staptitel { display: none; margin: 0 0 16px; font-size: 20px; font-weight: 700; line-height: 1.3; outline: none; }

/* Onder 760 px blijft enkel de naam van de huidige stap staan, onder 560 px alleen de bollen en de titel eronder. */
@media (max-width: 759px) {
  .v2 .v2-wz-stap:not(.is-actief) .v2-wz-stapnaam { display: none; }
}
@media (max-width: 559px) {
  .v2 .v2-wizard { padding: 18px 16px; }
  /* Met de bewaarstatus erbij past de kop niet op een regel: status links, Sluiten rechts, onder de titel. */
  .v2 .v2-wizard[data-bewaar] .v2-wz-kopacties { width: 100%; justify-content: space-between; }
  .v2 .v2-wz-stapnaam { display: none !important; }
  .v2 .v2-wz-staptitel { display: block; }
  .v2 .v2-wz-stappen { margin-bottom: 18px; }
}

/* ---------------- Inhoud ---------------- */
.v2 .v2-wz-body { display: flex; flex-direction: column; gap: 20px; }
.v2 .v2-wz-body > * { min-width: 0; }
.v2 .v2-wz-skelet { height: 72px; border-radius: 12px; }
.v2 .v2-wizard .v2-velden > .v2-snelkeuze { margin-top: -10px; }
.v2 .v2-wz-verplicht::after { content: " *"; color: #c81e1e; }
.v2 .v2-wz-galerij { display: flex; flex-direction: column; gap: 10px; }
.v2 .v2-wz-fout { margin: 16px 0 0; font-size: 13px; line-height: 1.4; color: #c81e1e; }
.v2 .v2-wz-fout[hidden] { display: none; }

/* ---------------- Stap 2: keuzekaarten ---------------- */
.v2 .v2-wz-opties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2 .v2-wz-opties[hidden] { display: none; }
.v2 .v2-wz-optie { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2 .v2-wz-optie:hover:not(:disabled) { border-color: #d4d4da; background: var(--bg); }
.v2 .v2-wz-optie:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }
.v2 .v2-wz-optie:disabled { opacity: .55; cursor: wait; }
.v2 .v2-wz-optie-label { font-size: 15px; font-weight: 700; }
.v2 .v2-wz-optie-sub { font-size: 12px; line-height: 1.35; color: var(--muted); }
.v2 .v2-wz-tpllijst:empty { display: none; }
.v2 .v2-wz-tpllijst .v2-tpl-lijst { margin-bottom: 0; }
@media (max-width: 759px) { .v2 .v2-wz-opties { grid-template-columns: minmax(0, 1fr); } .v2 .v2-wz-optie { min-height: 72px; } }

/* Stap 2, deel Startscherm: de bouwer uit de tab Ontwerp, zonder eigen kaart en kop (de wizard heeft die al)
   en met bediening boven het voorbeeld: in 712 px past 340 + 28 + een voorbeeld van 344 px niet fijn. */
.v2 .v2-wz-startscherm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.v2 .v2-wz-startscherm > * { max-width: 100%; }
.v2 .v2-wz-subkop { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.v2 .v2-wz-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.v2 .v2-wz-startscherm > .v2-ss { align-self: stretch; padding: 0; border: none; border-radius: 0; margin: 0; }
.v2 .v2-wz-startscherm .v2-ss-kop { display: none; }
.v2 .v2-wz-startscherm .v2-ss-werk { grid-template-columns: minmax(0, 1fr); }
/* Eén kolom: het voorbeeld eerst, anders staat het onder een paar duizend pixels keuzes en zie je niet wat
   een klik doet. Op een breed scherm blijft het onder de kopbalk (60 px) staan terwijl je de keuzes doorloopt. */
.v2 .v2-wz-startscherm .v2-ss-voorbeeld { order: -1; position: sticky; top: 60px; z-index: 2; padding: 8px 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.v2 .v2-wz-startscherm .v2-ss-schermen { max-width: 560px; }
@media (max-width: 1099px) { .v2 .v2-wz-startscherm .v2-ss-voorbeeld { position: static; border-bottom: none; } }

/* ---------------- Stap 5: samenvatting en code ---------------- */
.v2 .v2-wz-samenvatting { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.v2 .v2-wz-sv-rij { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 16px; border-top: 1px solid var(--line); }
.v2 .v2-wz-sv-rij:first-child { border-top: none; }
.v2 .v2-wz-sv-label { margin: 0; font-size: 13px; color: var(--muted); }
.v2 .v2-wz-sv-waarde { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; }
.v2 .v2-wz-sv-waarde > span { min-width: 0; overflow-wrap: anywhere; }
.v2 .v2-wz-sv-leeg { font-weight: 400; color: var(--muted); }
.v2 .v2-wz-sv-wijzig { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 36px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.v2 .v2-wz-sv-wijzig:hover { color: var(--ink); }
.v2 .v2-wz-sv-wijzig:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; border-radius: 4px; }
.v2 .v2-wz-checklist { margin: 0; }

.v2 .v2-wz-codeblok { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.v2 .v2-wz-codelabel { font-size: 13px; color: var(--muted); }
.v2 .v2-wz-coderij { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2 .v2-wz-code { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  .v2 .v2-wz-code { font-size: 34px; }
  .v2 .v2-wz-sv-rij { grid-template-columns: 84px minmax(0, 1fr); padding: 4px 14px; }
}

/* ---------------- Knoppenrij ---------------- */
.v2 .v2-wz-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.v2 .v2-wz-voet-links, .v2 .v2-wz-voet-rechts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.v2 .v2-wz-voet-rechts { margin-left: auto; justify-content: flex-end; }
.v2 .v2-wz-knop { min-height: 44px; padding-left: 22px; padding-right: 22px; }
@media (max-width: 559px) {
  .v2 .v2-wz-voet { flex-direction: column; align-items: stretch; margin-top: 20px; padding-top: 16px; }
  .v2 .v2-wz-voet-rechts { order: -1; flex-direction: column-reverse; align-items: stretch; margin-left: 0; }
  .v2 .v2-wz-voet-links { flex-direction: column; align-items: stretch; }
  .v2 .v2-wz-knop { width: 100%; min-height: 48px; }
}
