/* Dashboard v2: Instellingen (D5, 2026-10-11). De zijtabs en het paneel staan in detail.css (D1); hier de kaarten
   van Toegang, Winkel, Booth-standaarden en Updates. Elke regel begint met ".v2 ". */

/* ---------------- Kaart ---------------- */
.v2 .v2-instsectie > .v2-ik,
.v2 .v2-instsectie > .v2-ik-plek { max-width: 760px; }
.v2 .v2-ik-plek { margin-bottom: 16px; }
.v2 .v2-ik-plek > .v2-blok { margin-bottom: 0; }
.v2 .v2-ik-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.v2 .v2-ik-titel { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.v2 .v2-ik-rechts { display: flex; align-items: center; flex: 0 0 auto; }
.v2 .v2-ik-body > :last-child { margin-bottom: 0; }
.v2 .v2-ik-sub { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.v2 .v2-ik-sub[hidden] { display: none; }
.v2 .v2-ik-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v2 .v2-ik-gat { height: 14px; }
.v2 .v2-ik-leeg { text-align: center; }
.v2 .v2-ik-leeg .muted { margin-bottom: 12px; }

/* De bewaarstatus in de kaartkop: rustig, geen eigen kader. */
.v2 .v2-ik-status { min-height: 0; padding: 0; border: none; border-radius: 0; background: transparent; font-size: 12px; color: var(--muted); }
.v2 .v2-ik-status[data-status="fout"] { color: #b3141a; }
.v2 .v2-ik-status .bewaarstatus-knop { margin-left: 6px; }

/* ---------------- Velden ---------------- */
.v2 .v2-ik-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v2 .v2-ik-raster3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) {
  .v2 .v2-ik-raster, .v2 .v2-ik-raster3 { grid-template-columns: minmax(0, 1fr); }
}
.v2 .v2-ik-veld-hoofd { position: relative; }
/* De stand staat rechts op de labelregel; bij een schakelaar ernaast. */
.v2 .v2-ik-veld .v2-ik-stand { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; color: var(--muted); }
.v2 .v2-ik-veld .v2-ik-stand[data-stand="bewaard"] { color: #15803D; }
.v2 .v2-ik-veld .v2-ik-stand svg { width: 14px; height: 14px; }
.v2 .v2-ik-veld-rij .v2-ik-veld-hoofd { display: flex; align-items: center; gap: 12px; }
.v2 .v2-ik-veld-rij .v2-ik-stand { position: static; }
.v2 .v2-ik-fout { margin: 5px 0 0; font-size: 12px; line-height: 1.4; color: #c81e1e; }
.v2 .v2-ik-fout[hidden] { display: none; }
.v2 .v2-ik-hulp { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.v2 .v2-ik-smal { max-width: 360px; }
.v2 .v2-ik-niets { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- Kaartkeuze ---------------- */
.v2 .v2-ik-keuze { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 679px) { .v2 .v2-ik-keuze { grid-template-columns: minmax(0, 1fr); } }
.v2 .v2-ik-keuze.v2-ik-keuze-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 479px) { .v2 .v2-ik-keuze.v2-ik-keuze-2 { grid-template-columns: minmax(0, 1fr); } }
.v2 .v2-ik-gastrechts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
/* Kaart Gastengalerij: de kop mag op een smalle gsm afbreken, de status komt dan onder de schakelaar in plaats van buiten de kaart. */
.v2 .v2-ik-kop-gast { flex-wrap: wrap; }
.v2 .v2-ik-kop-gast .v2-ik-rechts { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.v2 .v2-ik-kop-gast .v2-ik-gastrechts { min-width: 0; }
.v2 .v2-ik-veld[hidden] { display: none; }
.v2 .v2-ik-keuze-kaart { display: flex; flex-direction: column; justify-content: center; gap: 2px; 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-ik-keuze-kaart:hover { border-color: #d4d4da; }
.v2 .v2-ik-keuze-kaart:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }
.v2 .v2-ik-keuze-kaart[aria-checked="true"] { border-color: transparent; background: var(--grad); color: #fff; }
.v2 .v2-ik-keuze-titel { font-size: 14px; font-weight: 600; }
.v2 .v2-ik-keuze-sub { font-size: 12px; line-height: 1.35; color: var(--muted); }
.v2 .v2-ik-keuze-kaart[aria-checked="true"] .v2-ik-keuze-sub { color: rgba(255, 255, 255, .88); }

/* ---------------- Updates en thuisnetwerken ---------------- */
.v2 .v2-ik-regel { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.v2 .v2-ik-regel:first-child { padding-top: 0; }
.v2 .v2-ik-regel-label { color: var(--muted); }
.v2 .v2-ik-dropbox-regels .v2-ik-regel:last-child { border-bottom: 0; }
.v2 .v2-ik-regel-waarde { font-weight: 600; text-align: right; }
.v2 .v2-ik-regel + .v2-ik-acties { margin-top: 16px; }
.v2 .v2-netwerk { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.v2 .v2-netwerk:first-child { padding-top: 0; }
.v2 .v2-netwerk:last-child { border-bottom: none; padding-bottom: 0; }
.v2 .v2-netwerk-naam { font-weight: 600; }
.v2 .v2-netwerk-ip { color: var(--muted); }
.v2 .v2-netwerk .btn { margin-left: auto; flex: 0 0 auto; }

/* ---------------- Pakketten ---------------- */
.v2 .v2-pakketlijst { display: flex; flex-direction: column; gap: 8px; }
.v2 .v2-pakket { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.v2 .v2-pakket:hover { border-color: #d4d4da; background: var(--bg); }
.v2 .v2-pakket:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }
.v2 .v2-pakket-uit .v2-pakket-naam { opacity: .55; }
.v2 .v2-pakket-naam { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.v2 .v2-pakket-meta { flex: 0 0 auto; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 479px) {
  .v2 .v2-pakket { flex-direction: column; align-items: flex-start; gap: 2px; }
  .v2 .v2-pakket-meta { text-align: left; }
}

/* Het pakket-formulier in een dialoog (dash/dialoog.js). */
.v2 .v2-pakketkaart { max-width: 460px; }
.v2 .v2-pakketvorm { margin-bottom: 18px; }
.v2 .v2-pakketduo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 14px; }
.v2 .v2-pakketduo .ui-tf { margin-bottom: 0; }
.v2 .v2-pakketschakelaars { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.v2 .dialoog-links { margin-right: auto; }
.v2 .v2-pakket-weg { color: #c81e1e; }
@media (max-width: 479px) {
  .v2 .v2-pakketduo { grid-template-columns: minmax(0, 1fr); }
  .v2 .dialoog-links { margin-right: 0; order: 3; width: 100%; }
}

/* ---------------- Mails, Betalingen en MCP ---------------- */
.v2 .v2-ik-stapel > .v2-blok { margin-bottom: 16px; }
.v2 .v2-ik-stapel > .v2-blok:last-child { margin-bottom: 0; }
/* Sleutelveld: invoer en acties op één rij, onder elkaar op smalle schermen. */
.v2 .v2-ik-geheim { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; margin-bottom: 18px; }
.v2 .v2-ik-geheim .ui-tf { flex: 1 1 260px; min-width: 0; margin: 0; }
.v2 .v2-ik-geheim .v2-ik-acties { flex: 0 0 auto; margin-top: 25px; flex-wrap: nowrap; }
@media (max-width: 599px) { .v2 .v2-ik-geheim .v2-ik-acties { margin-top: 0; } }
.v2 .v2-ik-geheim .btn { height: 40px; padding: 0 16px; }
.v2 .v2-ik-body > .v2-ik-fout { margin: -6px 0 14px; }
.v2 .v2-ik-body > .v2-ik-acties { margin-bottom: 14px; }
.v2 .v2-ik-uitkomst { margin: 0 0 18px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.v2 .v2-ik-uitkomst[hidden] { display: none; }
.v2 .v2-ik-uitkomst[data-ok="nee"] { color: #c81e1e; }
.v2 .v2-ik-body .ui-sec { margin-top: 4px; }
.v2 .v2-ik-body .ui-sec-body { padding-bottom: 6px; }
.v2 .v2-ik-stappen { margin: 0 0 8px; padding-left: 20px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.v2 .v2-ik-stappen li + li { margin-top: 4px; }
.v2 .v2-ik-stappen a, .v2 .v2-ik-check a { color: inherit; text-decoration: underline; }

.v2 .v2-ik-check { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.v2 .v2-ik-check-rij { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.v2 .v2-ik-check-merk { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #ececf0; color: #4b4b53; font-size: 12px; font-weight: 700; }
.v2 .v2-ik-check-merk svg { width: 12px; height: 12px; }
.v2 .v2-ik-check-rij[data-ok="ja"] .v2-ik-check-merk { background: #dff3e6; color: #166534; }
.v2 .v2-ik-check-rij[data-ok="nee"] .v2-ik-check-merk { background: #fde2e2; color: #c81e1e; }

.v2 .v2-ik-kopieerlijst { display: flex; flex-direction: column; gap: 8px; }
.v2 .v2-ik-kopieer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.v2 .v2-ik-kopieer code { min-width: 0; overflow-wrap: anywhere; }
.v2 .v2-ik-kopieer .btn { flex: 0 0 auto; }

.v2 .v2-ik-nieuw { margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.v2 .v2-ik-nieuw[hidden] { display: none; }
.v2 .v2-ik-nieuw-tekst { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.v2 .v2-ik-nieuw .ui-tf { margin-bottom: 12px; }

.v2 .v2-ik-sleutels { margin-bottom: 20px; }
.v2 .v2-sleutel { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.v2 .v2-sleutel:first-child { padding-top: 0; }
.v2 .v2-sleutel:last-child { border-bottom: none; }
.v2 .v2-sleutel-tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2 .v2-sleutel-naam { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.v2 .v2-sleutel-meta { font-size: 12px; color: var(--muted); }
.v2 .v2-sleutel .btn { margin-left: auto; flex: 0 0 auto; }
.v2 .v2-sleutel-uit .v2-sleutel-naam { opacity: .55; }
.v2 .v2-ik-mcpvorm { margin-bottom: 0; }
@media (max-width: 479px) {
  .v2 .v2-sleutel { flex-wrap: wrap; }
  .v2 .v2-sleutel .btn { margin-left: 0; }
}
