/* ============================================================
   Goedkeuren (M1): één bak voor alles wat op jou wacht.
   Lijst links (per soort), detailpaneel rechts, voetregel met toetsen.
   Alleen bestaande tokens; licht en donker via de tokens.
   ============================================================ */

.gk { display: flex; flex-direction: column; gap: 14px; }
.gk .dash-head { margin-bottom: 2px; }
.gk-balk { display: flex; gap: 6px; flex-wrap: wrap; }
.gk-chip--nul { opacity: .6; }

.gk-melding { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--text-2); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); }
.gk-melding svg { color: var(--amber); flex-shrink: 0; }


.gk-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 16px; align-items: start; }

/* ---- lijst ---- */
.gk-lijst { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px); overflow: clip; box-shadow: var(--shadow); }
.gk-groep + .gk-groep { border-top: 1px solid var(--line-strong); }
.gk-groep__kop { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.gk-groep__kop svg { color: var(--brand); }
.gk-groep__kop em { font-style: normal; margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; line-height: 18px; text-align: center; font-size: 11px; letter-spacing: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.gk-rij { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: transparent; font: inherit; color: var(--text); text-align: left; cursor: pointer; box-shadow: inset 3px 0 0 transparent; }
.gk-groep__kop + .gk-rij { border-top: 0; }
.gk-rij:hover { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.gk-rij.is-actief { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.gk-rij:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gk-rij__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gk-rij__t b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-rij__t i { font-style: normal; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-rij .stl, .gk-status { flex-shrink: 0; }
.gk-status { font-size: 11.5px; color: var(--text-2); }
/* h88 slice b: status plus zzp-blokkade onder elkaar in de lijstrij */
.gk-status-set { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gk-paneel__kop .gk-status-set { align-items: flex-start; }

/* ---- detailpaneel ---- */
.gk-paneel { scroll-margin-bottom: 64px; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px); box-shadow: var(--shadow); max-height: calc(100vh - 200px); overflow: auto; }
.gk-paneel__kop { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gk-paneel__titel { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--text); }
.gk-velden { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 13px; }
.gk-velden dt { color: var(--text-2); }
.gk-velden dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gk-tekst { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-wrap; }
.gk-noot, .gk-uitleg { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.gk-uitleg { padding-left: 10px; border-left: 2px solid var(--line-strong); }

.gk-knoppen { display: flex; gap: 8px; flex-wrap: wrap; }
.gk-knoppen .btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px; }
.gk-knoppen .btn[disabled] { opacity: .5; cursor: not-allowed; }
.gk-knoppen kbd, .gk-voet kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; font-family: inherit; font-size: 10.5px; font-weight: 600; line-height: 1; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line-strong); }
.gk-knoppen .btn--brand kbd { color: inherit; background: color-mix(in srgb, var(--surface) 18%, transparent); border-color: color-mix(in srgb, var(--surface) 40%, transparent); }
.gk-knop--neg { background: var(--neg); border-color: var(--neg); }
.gk-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }

.gk-afwijs { scroll-margin-bottom: 64px; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.gk-afwijs label { font-size: 12.5px; font-weight: 500; color: var(--text); }
.gk-afwijs label span { font-weight: 400; color: var(--text-2); margin-left: 6px; }
.gk-afwijs textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 76px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; }
.gk-afwijs textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.gk-fout { font-size: 12.5px; color: var(--neg); }

/* ---- bevestiging en voetregel ---- */
.gk-bevestiging { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 12px; background: var(--text); color: var(--surface); font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.gk-bevestiging svg { color: var(--pos); flex-shrink: 0; }
.gk-bevestiging.is-fout svg { color: var(--neg); }
.gk-bevestiging button { border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent); background: transparent; color: var(--surface); font: inherit; font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.gk-bevestiging button:hover { background: color-mix(in srgb, var(--surface) 12%, transparent); }

.gk-voet { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); font-size: 12px; color: var(--text-2); }
.gk-voet span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 760px), (hover: none) { .gk-voet, .gk-knoppen kbd { display: none; } }

/* ---- dashboardkaart ---- */
.gk-kaart { width: 100%; display: flex; align-items: center; gap: 18px; padding: 4px 0 2px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.gk-kaart__n { font-size: 40px; font-weight: 200; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gk-kaart__r { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.gk-kaart__r > span { display: flex; justify-content: space-between; gap: 10px; }
.gk-kaart__r em { font-style: normal; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.gk-kaart:hover .gk-kaart__n { color: var(--brand); }
.gk-kaart__zacht { margin: 0; font-size: 13px; color: var(--text-3); }

html[data-theme="dark"] .gk-rij.is-actief { box-shadow: inset 3px 0 0 #8BB1C8; }
html[data-theme="dark"] .gk-groep__kop svg { color: #8BB1C8; }
html[data-theme="dark"] .gk-kaart:hover .gk-kaart__n { color: #8BB1C8; }

/* Smal scherm: eerst de lijst, na kiezen alleen het item (zie smalGekozen). */
.gk-terug { display: none; }
@media (max-width: 1100px) {
  .gk-raster { grid-template-columns: minmax(0, 1fr); }
  .gk-paneel { position: static; max-height: none; }
  .gk-raster:not(.is-gekozen) > .gk-paneel { display: none; }
  .gk-raster.is-gekozen > .gk-lijst { display: none; }
  .gk-terug { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
}
