/* Dashboard v2: de tabs Gegevens, Booth en print, Klant en gasten en de veldbouwers uit dash/events/eventvelden.js.
   (D2, 2026-10-11) Elke regel begint met ".v2 ". Het kader `.v2-blok` staat in shell.css. */

/* ---------------- Blokken en rijen ---------------- */
.v2 .v2-formblok { max-width: 760px; }
.v2 .v2-blokkop { margin: 0 0 16px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.v2 .v2-subkop { margin: 0; font-size: 14px; font-weight: 700; }
.v2 .v2-velden { display: flex; flex-direction: column; gap: 18px; }
.v2 .v2-velden .ui-tf, .v2 .v2-velden .v2-veld { margin-bottom: 0; }
.v2 .v2-rij2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.v2 .v2-rij2 > * { min-width: 0; margin-bottom: 0; }
@media (max-width: 559px) { .v2 .v2-rij2 { grid-template-columns: minmax(0, 1fr); } }
.v2 .v2-veld-inhoud { min-width: 0; }
.v2 .v2-veld-smal { max-width: 180px; }

/* De datumkiezer in een veld: dezelfde hoogte als de tekstvelden. */
.v2 .v2-veld .dk-wrap { width: 100%; }
.v2 .v2-veld .dk-trigger { width: 100%; min-height: 40px; }

/* Snelkeuzes onder de datums */
.v2 .v2-snelkeuze { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v2 .v2-snelkeuze .btn { min-height: 36px; }

/* ---------------- Boekingsnummer en Lumo ---------------- */
.v2 .v2-lumo { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.v2 .v2-lumo[hidden] { display: none; }
.v2 .v2-lumo-ok { color: #15803D; }
.v2 .v2-lumo-let-op { color: #c81e1e; }

/* ---------------- Toegangscode en kopieerrijen ---------------- */
.v2 .v2-coderij, .v2 .v2-kopieerrij { display: flex; align-items: flex-start; gap: 8px; }
.v2 .v2-coderij > .ui-tf, .v2 .v2-kopieerrij > .ui-tf { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
/* Knoppen op de hoogte van het invoerveld: het label (18 px) en de ruimte eronder (5 px) zitten erboven. */
.v2 .v2-codeknoppen { display: flex; gap: 8px; margin-top: 23px; }
.v2 .v2-kopieerknop { margin-top: 23px; }
.v2 .v2-codeknoppen .btn, .v2 .v2-kopieerknop { min-height: 40px; white-space: nowrap; }
@media (max-width: 559px) {
  .v2 .v2-coderij { flex-wrap: wrap; }
  .v2 .v2-coderij > .ui-tf { flex: 1 1 100%; }
  .v2 .v2-codeknoppen { margin-top: 0; }
}

/* ---------------- Kaarten: printer en gastengalerij ---------------- */
.v2 .v2-kaarten { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .v2 .v2-kaarten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 480px) { .v2 .v2-kaarten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 480px) { .v2 .v2-kaarten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v2 .v2-keuzekaart { display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2 .v2-keuzekaart:hover { border-color: #d4d4da; }
.v2 .v2-keuzekaart:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }
.v2 .v2-keuzekaart-label { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.v2 .v2-keuzekaart-sub { font-size: 12px; line-height: 1.35; color: var(--muted); }
.v2 .v2-keuzekaart[aria-checked="true"] { border-color: transparent; background: var(--grad); color: #fff; }
.v2 .v2-keuzekaart[aria-checked="true"] .v2-keuzekaart-sub { color: rgba(255,255,255,.88); }

/* ---------------- Schakelaars en timers ---------------- */
.v2 .v2-schakelaarveld { margin-bottom: 0; }
.v2 .v2-schakelaarrij { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 36px; }
.v2 .v2-timers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.v2 .v2-timers[hidden] { display: none; }
@media (max-width: 559px) { .v2 .v2-timers { grid-template-columns: minmax(0, 1fr); } }
.v2 .v2-lege-booth { margin: 0; font-size: 14px; }
.v2 .v2-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.v2 .v2-link:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; border-radius: 4px; }

/* ---------------- Galerijmail en gastengalerij ---------------- */
.v2 .v2-galerijstatus { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.v2 .v2-velden > .btn { align-self: flex-start; min-height: 40px; }
.v2 .v2-gastkeuze, .v2 .v2-gastlink { min-width: 0; }
.v2 .v2-gastlink:empty { display: none; }
.v2 .v2-skelet-keuze { height: 76px; border-radius: 12px; }

/* ---------------- Inschrijvingen ---------------- */
.v2 .v2-tellers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.v2 .v2-teller { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.v2 .v2-teller-label { font-size: 13px; color: #55555c; }
.v2 .v2-teller-waarde { font-size: 26px; font-weight: 700; line-height: 1.2; }
.v2 .v2-teller-sub { font-size: 12px; color: var(--muted); }
.v2 .v2-gastkop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.v2 .btn.is-uit { pointer-events: none; opacity: .45; }
.v2 .v2-contactteller { font-size: 14px; }
.v2 .v2-gastlijst { list-style: none; margin: 0; padding: 0; }
.v2 .v2-gastrij { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.v2 .v2-gastrij:first-child { border-top: none; }
.v2 .v2-gast-wie, .v2 .v2-gast-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; overflow-wrap: anywhere; }
.v2 .v2-gast-naam { font-weight: 600; }
.v2 .v2-gast-mail, .v2 .v2-gast-meta .muted { font-size: 13px; color: var(--muted); }
.v2 .v2-gast-weg { color: #c81e1e; border-color: #e8b4b4; }
.v2 .v2-gastnoot { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 559px) {
  .v2 .v2-gastrij { grid-template-columns: minmax(0, 1fr) auto; }
  .v2 .v2-gast-meta { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
}

/* ---------------- Gastengalerij: schakelaar in de kop en twee kaarten ---------------- */
.v2 .v2-galerijkop { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 16px; }
.v2 .v2-galerijkop > .v2-blokkop, .v2 .v2-galerijkop > .v2-subkop { margin: 0; }
.v2 .v2-galerijschakelaar { position: relative; display: flex; align-items: center; gap: 10px; }
/* De bewaarstatus neemt geen ruimte in: de schakelaar blijft voor, tijdens en na het bewaren op dezelfde plek. */
.v2 .v2-galerijschakelaar .ui-tf-stand { position: absolute; top: 100%; right: 0; margin-top: 1px; line-height: 14px; white-space: nowrap; }
/* Het label houdt de breedte van de langste tekst (Aan of Uit), rechts uitgelijnd: de schakelaar verspringt niet als het label wisselt. */
.v2 .v2-galerijschakelaar .ed-f-switch-label { text-align: right; }
.v2 .v2-galerijschakelaar .ed-f-switch-label::after { content: attr(data-breed); display: block; height: 0; overflow: hidden; visibility: hidden; }
.v2 .v2-galerijschakelaar .ed-f-switch, .v2 .v2-ik-rechts .ed-f-switch { flex-direction: row-reverse; padding: 0; }
.v2 .v2-galerijkeuze { min-width: 0; }
.v2 .v2-galerijkeuze .v2-veld { margin-bottom: 0; }
.v2 .v2-galerij-uit { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.v2 .v2-galerijkeuze [hidden] { display: none; }
.v2 .v2-wz-galerij .v2-galerijkop { margin: 0 0 4px; }
.v2 .ui-tf[hidden] { display: none; }
