/* Dashboard v2: blok "Startscherm" in de tab Ontwerp (2026-10-22, dash/events/startscherm/blok.js).
   Elke regel begint met ".v2 ". Links de bediening, rechts het voorbeeld dat meeschuift. */

.v2 .v2-ss-statusrij { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 24px; margin: 6px 0 4px; }
.v2 .v2-ss-status { margin: 0; font-size: 13px; color: var(--muted); }
.v2 .v2-ss-status[data-soort="ok"] { color: #166534; }
.v2 .v2-ss-status[data-soort="fout"] { color: #b42318; }
.v2 .v2-ss-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.v2 .v2-ss-werk { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.v2 .v2-ss-werk[hidden] { display: none; }
.v2 .v2-ss-velden { display: grid; gap: 22px; min-width: 0; }
.v2 .v2-ss-groep { display: grid; gap: 10px; min-width: 0; }
.v2 .v2-ss-groepkop { margin: 0; font-size: 13px; font-weight: 700; }
.v2 .v2-ss-opties { display: grid; gap: 10px; }
.v2 .v2-ss-opties[hidden], .v2 .v2-ss-rij2[hidden] { display: none; }
.v2 .v2-ss-rij2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.v2 .v2-ss-knoprij { display: flex; flex-wrap: wrap; gap: 8px; }
.v2 .v2-ss-schuif { display: grid; gap: 4px; min-width: 0; }
.v2 .v2-ss-lab { font-size: 13px; font-weight: 500; }
.v2 .v2-ss-schuif input[type="range"] { width: 100%; accent-color: #EB2027; }

/* Tegels: zes kolommen, elke tegel neemt er 2 of 3 (blok.js zet de span, de laatste rij is altijd vol). */
.v2 .v2-ss-raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.v2 .v2-ss-tegel { display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.v2 .v2-ss-tegel canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: #eee; }
.v2 .v2-ss-raster-knoppen .v2-ss-tegel canvas { aspect-ratio: 8 / 3; }
.v2 .v2-ss-tegel-label { padding: 0 2px 2px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2 .v2-ss-tegel[aria-pressed="true"] { border-color: #EB2027; box-shadow: 0 0 0 2px #fbd5c9; }
.v2 .v2-ss-tegel:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }

/* AI-voorstellen: drie tegels naast elkaar, onder elkaar op een smal scherm (blok.js zet de span, de laatste rij is vol). */
.v2 .v2-ss-groep[hidden], .v2 .v2-ss-raster[hidden], .v2 .v2-ss-ai-bestand[hidden] { display: none; }
.v2 .v2-ss-ai-tekst { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
.v2 .v2-ss-ai-tekst:focus { outline: none; border-color: #EB2027; box-shadow: 0 0 0 3px rgba(235, 32, 39, .12); }
.v2 .v2-ss-ai-bestand { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.v2 .v2-ss-ai-naam { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .v2-ss-ai-tegel .v2-ss-tegel-label { white-space: normal; }
.v2 .v2-ss-ai-uitleg { padding: 0 2px 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
@media (max-width: 559px) {
  .v2 .v2-ss-ai-raster { grid-template-columns: minmax(0, 1fr); }
  .v2 .v2-ss-ai-tegel { grid-column: auto !important; }
}

.v2 .v2-ss-stalen { display: flex; flex-wrap: wrap; gap: 8px; }
.v2 .v2-ss-staal { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; }
.v2 .v2-ss-staal[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #EB2027; }

.v2 .v2-ss-voorbeeld { position: sticky; top: 84px; display: grid; gap: 12px; min-width: 0; }
.v2 .v2-ss-vkop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.v2 .v2-ss-schermen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr); gap: 28px; align-items: end; padding: 7px; }
.v2 .v2-ss-scherm { margin: 0; display: grid; gap: 14px; min-width: 0; }
.v2 .v2-ss-cv { display: block; width: 100%; height: auto; border-radius: 10px; background: #222; box-shadow: 0 0 0 7px #1d1d22, 0 14px 30px rgba(0, 0, 0, .18); }
.v2 .v2-ss-scherm figcaption { font-size: 12px; color: var(--muted); }
.v2 .v2-ss-scherm.v2-ss-dit figcaption { color: var(--ink); font-weight: 600; }

@media (max-width: 1099px) {
  .v2 .v2-ss-werk { grid-template-columns: minmax(0, 1fr); }
  .v2 .v2-ss-voorbeeld { position: static; order: -1; }
}
@media (max-width: 559px) {
  .v2 .v2-ss-schermen { grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr); gap: 20px; }
  .v2 .v2-ss-rij2 { grid-template-columns: minmax(0, 1fr); }
}

/* Icoon per knop: kolommen vullen de breedte (340 px bediening, gsm), geen vaste breedtes dus geen horizontaal scrollen. */
.v2 .v2-ss-subkop { margin: 0; font-size: 12.5px; font-weight: 700; }
/* Flex met groei in plaats van een raster: elke rij is vol, ook de laatste van een groep (een onvolledige
   laatste rij deelt de breedte), op elke breedte. De kop van een groep neemt een eigen regel. Vaste hoogte,
   zodat een verbrede tegel geen hoge blok wordt. */
.v2 .v2-ss-iconen { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v2 .v2-ss-icoonkop { flex: 0 0 100%; margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.v2 .v2-ss-icoon { flex: 1 1 52px; height: 58px; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; font: inherit; }
.v2 .v2-ss-icoon svg { display: block; width: 100%; height: 100%; max-width: 30px; max-height: 30px; }
.v2 .v2-ss-icoon-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; line-height: 1.1; }
.v2 .v2-ss-icoon:has(.v2-ss-icoon-label) { padding: 6px 2px; }
.v2 .v2-ss-icoon[aria-pressed="true"] { border-color: #EB2027; box-shadow: 0 0 0 2px #fbd5c9; }
.v2 .v2-ss-icoon:focus-visible { outline: 2px solid #EB2027; outline-offset: 2px; }
