/* Bestuursportaal V.V. Woudenberg — clubkleuren geel/zwart */

:root {
  --ink: #1d1d1b;          /* zwart (sidebar, tekst) */
  --yellow: #f5d327;       /* clubgeel */
  --yellow-2: #e9c514;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #62625d;
  --eyebrow: #6a694f;
  --border: #e2e2dc;
  --line: #d6d6cf;
  --red: #b42318;
  --green: #1e7a46;
  --radius: 6px;
  --sidebar: 300px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.5 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.text-red { color: var(--red) !important; }
.underline { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.underline:hover { text-decoration-thickness: 2px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--eyebrow);
}

/* ---------- Knoppen & formulieren ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 4px; border: 1px solid transparent;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); }
.btn-primary:hover:not(:disabled) { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn-outline { background: var(--surface); border-color: var(--line); }
.btn .icon { width: 16px; height: 16px; }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.btn-danger { background: var(--surface); border-color: #efc4bf; color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-link { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; color: var(--text); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 700; }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 211, 39, .6); }
input:disabled, select:disabled, textarea:disabled { background: #fafaf8; color: var(--text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-error { color: var(--red); font-size: 13px; }
.form-error:empty { display: none; }

/* ---------- Merk ---------- */

.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { width: 56px; height: 56px; flex: none; }
.brand-text { display: grid; gap: 4px; line-height: 1.1; }
.brand-text strong { color: #fff; font-size: 17px; letter-spacing: -.01em; }
.brand-text small { color: #cfcfc8; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }

.tagline { display: grid; gap: 10px; color: #c9c9c2; }
.tagline-bar { width: 32px; height: 4px; background: var(--yellow); margin-bottom: 16px; }
.tagline strong { color: #fff; font-size: 15px; }
.tagline p { line-height: 1.6; }
.tagline small { font-size: 13px; color: #a3a39c; margin-top: 8px; }

/* ---------- Inloggen ---------- */

.login { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 40%) 1fr; }
.login-brand {
  background: var(--ink) url("../img/vvw-logo-watermerk.png") no-repeat right -110px bottom -110px / 460px;
  padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.login-form h1 { font-size: 33px; font-weight: 800; letter-spacing: -.03em; }
.login-form .lead { color: var(--muted); margin-bottom: 8px; }

/* ---------- Layout ---------- */

.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column; padding: 32px 18px 32px;
  background: var(--ink) url("../img/vvw-logo-watermerk.png") no-repeat right -80px bottom -80px / 210px;
  color: #e4e4de; overflow-y: auto;
}
.sidebar > .brand { padding: 0 2px; margin-bottom: 56px; }
.nav-heading { padding: 0 20px; margin-bottom: 18px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: #bdbdb5; }
#nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; white-space: nowrap; border-radius: 4px; font-size: 14px; color: #e9e9e4; transition: background .15s; }
.nav-link .icon { width: 16px; height: 16px; opacity: .85; }
.nav-link:hover { background: rgba(255, 255, 255, .07); }
.nav-link.active { background: var(--yellow); color: var(--ink); font-weight: 700; }
.nav-link.active .icon { opacity: 1; }
.sidebar .tagline { margin-top: auto; padding: 48px 20px 0; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding: 0 48px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; gap: 20px; font-size: 14px; min-width: 0; flex: 1; white-space: nowrap; }
#crumb { display: flex; gap: 20px; min-width: 0; }
#crumb > span:last-child, #crumb:not(:has(span)) { overflow: hidden; text-overflow: ellipsis; }
.crumbs span[aria-hidden], #crumb span[aria-hidden] { color: #b5b5ae; }
.nowrap { white-space: nowrap; }
.crumbs span[aria-hidden] { color: #b5b5ae; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; white-space: nowrap; flex: none; }
.menu-btn { display: none; }
#content { flex: 1; width: 100%; max-width: 1480px; padding: 56px 48px 64px; outline: none; }
.footer {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 48px; padding: 28px 0 32px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.backdrop { display: none; }

/* ---------- Paginakop ---------- */

.page-head { margin-bottom: 36px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.page-head .lead { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Kaarten ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.stack { display: grid; gap: 16px; align-content: start; }
.empty { color: var(--muted); font-size: 15px; padding: 28px 24px; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.stat { display: grid; gap: 10px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
.stat:hover { border-color: var(--ink); }
.stat-label { font-size: 14px; color: #3b3b37; }
.stat-value { font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-foot { color: #3b3b37; }
.stat:hover .stat-foot { text-decoration: underline; text-underline-offset: 4px; }

.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.columns .card + .block-head { margin-top: 36px; }
.block-head h2 { font-size: 19px; font-weight: 700; }

.meeting { display: grid; gap: 10px; justify-items: start; padding: 28px; }
.meeting h3 { font-size: 17px; }
.meeting p { font-size: 15px; color: #3b3b37; }
.meeting .btn { margin-top: 4px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--border); }
.rows button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px;
}
.rows button:hover { background: #fbfbf8; }
.rows button > span:first-child { display: grid; gap: 2px; min-width: 0; }
.rows small { color: var(--muted); font-size: 13px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-yellow { background: #fbefb0; color: #5c4b00; }
.badge-green { background: #dcefe3; color: #17613a; }
.badge-red { background: #f8dcd9; color: #8f1c13; }
.badge-amber { background: #fbe3c8; color: #8a4b09; }
.badge-blue { background: #dfe8f7; color: #1a3f7d; }
.badge-grey { background: #ececE7; color: #4d4d48; }
.badge-dark { background: var(--ink); color: #fff; }

/* ---------- Secties met tabellen ---------- */

.section + .section { margin-top: 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: 19px; font-weight: 700; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 36px; width: 220px; min-height: 38px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--ink); }

.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; border-bottom: 1px solid var(--border); padding: 0; background: #fafaf7; }
.table th button, .table thead th:not(:has(button)) {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 14px 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.table thead th:not(:has(button)) { display: table-cell; }
.table th button { cursor: pointer; }
.table th button:hover { color: var(--text); }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-id] { cursor: pointer; }
.table tbody tr[data-id]:hover { background: #fbfbf8; }
.table td.primary { font-weight: 700; }
.empty-row td { text-align: center; color: var(--muted); padding: 44px 20px; }

/* Bestuursleden als kaarten */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { all: unset; box-sizing: border-box; display: flex; gap: 18px; align-items: flex-start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .15s; }
.person:hover, .person:focus-visible { border-color: var(--ink); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 4px; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 15px; }
.person-body { display: grid; gap: 4px; min-width: 0; }
.person-body .eyebrow { font-size: 11px; letter-spacing: .16em; }
.person-body strong { font-size: 15px; }
.person-body span { overflow-wrap: anywhere; }

/* ---------- Kalender (FullCalendar in huisstijl) ---------- */

.cal-filters { display: grid; gap: 18px; padding: 24px 28px; margin-bottom: 24px; }
.cal-filter-top { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cal-season select { min-width: 200px; font-weight: 700; }
.cal-range { display: grid; gap: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; padding-bottom: 2px; }
.cal-add { margin-left: auto; }
.cal-filter-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.cal-filters label { font-size: 12.5px; gap: 6px; }
.cal-filters input, .cal-filters select { min-height: 40px; font-size: 14px; }
.cal-filters select { font-weight: 700; }

.cal-tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cal-tab-group { display: flex; gap: 10px; }
.cal-tab-group .btn { min-height: 38px; padding: 0 16px; }
.cal-tab-group .btn-outline { font-weight: 400; }
#cal-count { font-size: 13px; }

.cal-nav { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.cal-nav h2 { min-width: 220px; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cal-nav .btn { font-weight: 500; }
.cal-arrow { width: 46px; font-size: 16px !important; }

.fc {
  --fc-border-color: var(--border);
  --fc-page-bg-color: var(--surface);
  --fc-neutral-bg-color: #efefeb;
  --fc-today-bg-color: #fffbe6;
  --fc-list-event-hover-bg-color: #fffbe6;
  font-size: 14px;
}
.fc .fc-scrollgrid { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fc .fc-col-header-cell { background: #efefe9; padding: 11px 0; }
.fc .fc-col-header-cell-cushion { color: var(--text); font-size: 13px; font-weight: 700; text-transform: capitalize; text-decoration: none; }
.fc .fc-daygrid-day-frame { min-height: 112px; }
.fc .fc-day-other { background: #f1f1ee; }
.fc .fc-day-other .cal-day-num { color: #9a9a93; opacity: 1; }
.fc .fc-daygrid-day-top { flex-direction: row; display: block; }
.fc .fc-daygrid-day-number { display: block; width: 100%; padding: 12px 14px 6px; color: var(--text); text-decoration: none; }
.fc .fc-day-other .fc-daygrid-day-top { opacity: 1; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.fc .fc-day-today .cal-day-num { background: var(--yellow); border-radius: 3px; padding: 0 6px; margin-left: -6px; font-weight: 800; }
.cal-day-add { border: 0; background: none; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 3px; }
.cal-day-add:hover { background: var(--yellow); color: var(--ink); }
.cal-day-add:focus-visible { outline: 2px solid var(--ink); }

/* Items: zachte achtergrond met gekleurde balk links, tijd boven de titel.
   De kleur komt van de categorie (Beheer) via --c-bar / --c-tint. */
.ev-cat { --c-bar: #8a8a83; --c-tint: #efefeb; }
.fc .fc-daygrid-event.ev-cat {
  display: grid; gap: 1px; margin: 3px 10px 4px; padding: 5px 8px;
  background: var(--c-tint); border: 0; border-left: 4px solid var(--c-bar); border-radius: 3px;
  color: var(--text); white-space: normal; cursor: pointer;
}
.fc .fc-daygrid-event.ev-cat:hover { filter: brightness(.97); }
/* Ook items zonder tijd (hele dag) in donkere tekst; FullCalendar maakt die standaard wit. */
.fc .ev-cat .fc-event-main, .fc .fc-daygrid-event .ev-title { color: var(--text); }
.fc .fc-daygrid-event .ev-time { font-size: 11.5px; color: var(--c-bar); }
/* Eén regel per titel; past het niet, dan eindigt de titel op "…" (volledige titel bij aanwijzen). */
.fc .fc-daygrid-event.ev-cat { min-width: 0; overflow: hidden; }
.fc .fc-daygrid-event .ev-time, .fc .fc-daygrid-event .ev-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc .fc-daygrid-event .ev-title { font-size: 12.5px; line-height: 1.4; }
.fc .is-cancelled .ev-title { text-decoration: line-through; opacity: .65; }
.fc .fc-list { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fc .fc-list-day-cushion { background: #efefe9; }
.fc .fc-list-day-text { display: inline-block; color: var(--text); text-decoration: none; font-weight: 700; }
.fc .fc-list-day-text::first-letter { text-transform: uppercase; }
.fc .fc-list-event { cursor: pointer; }
.fc .fc-list-event-time { color: var(--muted); white-space: nowrap; }
.fc .fc-list-event.ev-cat .fc-list-event-dot { border-color: var(--c-bar); }
.fc .fc-list-event .ev-title { display: block; font-weight: 700; }
.fc .fc-list-event .ev-loc { display: block; color: var(--muted); font-size: 13px; }
.fc .fc-list-empty { background: var(--surface); }

@media (max-width: 960px) {
  .cal-filters { padding: 22px 18px; }
  .cal-filter-row { grid-template-columns: 1fr; gap: 16px; }
  .cal-add { margin-left: 0; width: 100%; }
  .fc .fc-daygrid-day-frame { min-height: 90px; }
  .fc .fc-daygrid-event.ev-cat { margin: 2px 4px; padding: 4px 6px; }
  .fc .fc-daygrid-event .ev-title { font-size: 11.5px; }
  .fc .fc-daygrid-day-number { padding: 8px 6px 4px; }
}
@media (max-width: 720px) {
  .cal-nav { gap: 10px; flex-wrap: wrap; }
  .cal-nav h2 { order: -1; flex-basis: 100%; min-width: 0; font-size: 18px; text-align: left; }
  .cal-arrow { width: 48px; }
  .cal-tab-group .btn { font-size: 13px; }
  .cal-day-add { display: none; }
  .fc .fc-daygrid-event.ev-cat { margin: 2px 2px; padding: 3px 4px; border-left-width: 3px; }
  .fc .fc-daygrid-event .ev-time { display: none; }
  .fc .fc-daygrid-event .ev-title { font-size: 11px; }
  .fc .fc-col-header-cell-cushion { font-size: 12.5px; }
}

/* ---------- Vergadering & updates per bestuursfunctie ---------- */

.pre { white-space: pre-wrap; line-height: 1.7; }
.meeting-progress { font-size: 14px !important; color: var(--muted) !important; }
.meeting-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: -20px 0 40px; }
.summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.summary > span:first-child { margin-right: 8px; }
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s ease; }

.updates { display: grid; gap: 16px; }
.update { display: grid; gap: 14px; padding: 24px 28px; border-left: 4px solid var(--line); }
.update.status-op-koers { border-left-color: var(--green); }
.update.status-aandachtspunt { border-left-color: #d97706; }
.update.status-knelpunt { border-left-color: var(--red); }
.update.missing { background: #fafaf7; border-style: dashed; border-left-style: solid; }
.update header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.update h3 { font-size: 16px; }
.update header small { color: var(--muted); }
.update footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.file .icon { width: 16px; height: 16px; }
.files small { color: var(--muted); }
.attachments { display: grid; gap: 10px; }
.attachments .label { font-size: 13px; font-weight: 700; }
.upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 400; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within .btn { outline: 2px solid var(--ink); outline-offset: 2px; }
.upload small { font-size: 12.5px; }

/* Kleurlabels en -stalen (kalendercategorieën) */
.chip { display: inline-flex; align-items: center; padding: 2px 9px 2px 7px; border-left: 4px solid var(--c-bar, #8a8a83);
  background: var(--c-tint, #efefeb); border-radius: 3px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 4px; vertical-align: middle;
  background: var(--c-bar, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }

/* ---------- Seizoenen ---------- */

.season-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 22px 26px; margin-bottom: 24px; border-left: 4px solid var(--yellow); }
.season-now { display: grid; gap: 2px; }
.season-now .eyebrow { font-size: 11px; }
.season-now strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.season-now .muted { font-size: 12.5px; }
.season-progress { display: grid; gap: 6px; }
.season-progress .progress { margin: 0; }
.season-progress small { color: var(--muted); font-size: 12.5px; }
.season-links { display: grid; gap: 6px; justify-items: end; font-size: 13px; }
.season-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -12px 0 28px; }
.season-select select { min-height: 38px; font-weight: 700; width: auto; padding-right: 32px; }
.season-dates { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn:disabled { cursor: not-allowed; }
@media (max-width: 720px) {
  .season-card { grid-template-columns: 1fr; gap: 14px; }
  .season-links { justify-items: start; }
}

/* ---------- Beheer: overzicht met tegels en subnavigatie ---------- */

.admin-group { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 16px; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.admin-tile { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 6px 18px; align-items: start; padding: 26px 28px; transition: border-color .15s; }
.admin-tile:hover, .admin-tile:focus-visible { border-color: var(--ink); }
.tile-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; background: var(--ink); color: var(--yellow); }
.tile-icon .icon { width: 22px; height: 22px; }
.tile-body { display: grid; gap: 6px; }
.tile-body strong { font-size: 16px; }
.tile-body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tile-arrow { font-size: 19px; transition: transform .15s; }
.admin-tile:hover .tile-arrow { transform: translateX(3px); }
.tile-count { grid-column: 2; font-size: 13px; font-weight: 700; }
.tile-count:empty { display: none; }

.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: -16px 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 7px 12px; border-radius: 4px; font-size: 13px; color: var(--text); }
.subnav a:hover { background: rgba(0, 0, 0, .05); }
.subnav a.active { background: var(--yellow); font-weight: 700; }
@media (max-width: 720px) {
  .admin-tiles { grid-template-columns: 1fr; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; }
  .subnav a { white-space: nowrap; }
}

/* ---------- Documenten: Google Drive-verkenner ---------- */

.drive-card { padding: 0; overflow: hidden; }
.drive-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--border); background: #fafaf7; }
.drive-path { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; min-width: 0; }
.drive-path .btn-link { text-decoration: underline; text-underline-offset: 3px; }
.drive-path [aria-current] { font-weight: 700; }
.drive-path span[aria-hidden] { color: #b5b5ae; }
.drive-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drive-tools .search input { width: 220px; }
.drive-status:empty { display: none; }
.drive-status { padding: 10px 22px 0; }
.drive-msg { padding: 28px 22px; }
.drive-items { list-style: none; margin: 0; padding: 0; }
.drive-items li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 80px 76px; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.drive-items li:last-child { border-bottom: 0; }
.drive-items li:hover { background: #fbfbf8; }
.drive-name { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; min-width: 0; }
.drive-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-name:hover span, .drive-name:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.drive-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.is-folder .drive-name { font-weight: 700; }
.is-folder .drive-name .icon { color: #b38f00; fill: #fbefb0; }
.drive-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.drive-actions { display: flex; justify-content: flex-end; gap: 4px; }
.icon-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; color: var(--text); }
.icon-link:hover { background: rgba(0, 0, 0, .06); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.drive-empty { display: flex; gap: 16px; align-items: flex-start; padding: 28px; }
.drive-empty > .icon { width: 32px; height: 32px; color: var(--muted); }
.drive-empty p { margin-top: 4px; }
.drive-picker { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.drive-picker .drive-items li { grid-template-columns: minmax(0, 1fr) 90px 90px; }
.drive-picker .drive-items li .drive-meta:nth-of-type(2) { display: none; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; }
.upload .btn { font-size: 13px; }
.setup ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.55; }
.select-all { user-select: all; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .drive-bar { padding: 14px 16px; }
  .drive-tools, .drive-tools .search { width: 100%; }
  .drive-tools .search input { width: 100%; }
  .drive-items li { grid-template-columns: minmax(0, 1fr) auto; padding: 0 16px; }
  .drive-items li .drive-meta { display: none; }
}

/* ---------- Beheer: menuvolgorde ---------- */

.menu-order { list-style: none; margin: 0; padding: 6px 0; }
.menu-order li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--border); background: var(--surface); cursor: grab; }
.menu-order li:last-child { border-bottom: 0; }
.menu-order li:hover { background: #fbfbf8; }
.menu-order li.dragging { opacity: .5; background: #fffbe6; }
.menu-order .grip { color: #b5b5ae; display: inline-grid; }
.menu-order .grip .icon { width: 16px; height: 16px; }
.menu-pos { width: 22px; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.menu-label { flex: 1; }
.menu-move { display: flex; gap: 2px; }
.menu-move .icon-btn { width: 32px; height: 32px; }
.menu-move .icon-btn svg { width: 18px; height: 18px; }
.menu-move .icon-btn:disabled { opacity: .3; cursor: default; }
.swatch-sm { width: 16px; height: 16px; }

/* ---------- Rollen & rechten ---------- */

.table td.rights { min-width: 340px; }
@media (max-width: 720px) { .table td.rights { min-width: 0; } }
.cell-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.notice { padding: 12px 14px; background: #fbefb0; border-radius: 4px; font-size: 13px; }
.small { font-size: 12.5px; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix th[scope="row"] { text-align: left; font-weight: 400; white-space: nowrap; }
.matrix thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #fafaf7; }
.matrix thead th:first-child { text-align: left; }
.matrix-all { background: #fffbe6; }
.matrix-all th[scope="row"] { font-weight: 700 !important; }
.matrix input { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.matrix input:disabled { cursor: default; }
.check-beheer { font-weight: 700; }

/* ---------- Opgemaakte tekst en editor ---------- */

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 10px; line-height: 1.65; }
.rich h3 { font-size: 16px; margin: 18px 0 8px; }
.rich h4 { font-size: 14px; margin: 14px 0 6px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 22px; line-height: 1.65; }
.rich li { margin: 2px 0; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }

.rte { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-weight: 400; }
.rte:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 211, 39, .6); }
.rte-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: #fafaf7; border-radius: 4px 4px 0 0; }
.rte-btn { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 3px; background: none; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.rte-btn:hover { background: rgba(0, 0, 0, .06); }
.rte-btn.on { background: var(--yellow); }
.rte-btn:focus-visible { outline: 2px solid var(--ink); }
.rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rte-link { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.rte-link input { width: 220px; min-height: 30px; padding: 4px 8px; font-size: 12.5px; }
.rte-area { min-height: 150px; max-height: 360px; overflow-y: auto; padding: 10px 12px; outline: none; font-size: 14px; }
.rte-area.rte-compact { min-height: 90px; }
.rte-readonly .rte-area { background: #fafaf7; min-height: 0; }

/* ---------- Dialoog ---------- */

dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
dialog::backdrop { background: rgba(29, 29, 27, .6); }
.dialog-form { display: grid; gap: 22px; padding: 28px 32px; }
.dialog-form header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 4px solid var(--yellow); }
.dialog-form h2 { font-size: 19px; font-weight: 800; }
.dialog-form footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.meta { color: var(--muted); font-size: 12.5px; }

.details { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details dd.pre { white-space: pre-wrap; line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  padding: 14px 20px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 700;
  border-left: 4px solid var(--yellow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-left-color: #f04438; }

/* ---------- Responsief ---------- */

@media (max-width: 1360px) {
  .topbar-user #user-label { display: none; }
}

@media (max-width: 1180px) {
  .columns { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .topbar { padding: 0 16px; min-height: 64px; gap: 10px; }
  .topbar-user { gap: 14px; }
  .crumbs { gap: 10px; }
  #content { padding: 32px 16px 48px; }
  .footer { margin: 0 16px; }
  .stats { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .stat { padding: 24px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 16px; background-image: none; }
  .login-brand .tagline { display: none; }
}

@media (max-width: 720px) {
  .crumbs a, .crumbs span[aria-hidden] { display: none; }
  .topbar-user .underline { display: none; }
  .search, .search input { width: 100%; }
  .toolbar { width: 100%; }
  .toolbar .search { flex: 1 1 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
  .dialog-form { padding: 22px 18px; }
  .block-head { flex-wrap: wrap; }

  /* Tabellen als kaartjes */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .table td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
  .table td.primary { display: block; text-align: left; font-size: 15px; padding-bottom: 6px; }
  .table td.primary::before, .empty-row td::before { content: none; }
  .empty-row td { display: block; text-align: center; }
}

/* Formulieren: tussenkoppen en toelichting */
.form-sub { margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* Contractmanagement */
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.stats-4 .stat { padding: 20px 22px; }
.stats-4 .stat-value { font-size: 26px; }
.stats-4 .stat-foot { font-size: 12.5px; color: var(--muted); }
.stat.stat-alert { border-left: 4px solid #d97706; }
.money-in { color: var(--green); }
.money-out { color: var(--text); }
.text-amber { color: #8a4b09 !important; }
.toolbar select { min-height: 40px; width: auto; font-size: 13px; }
.lock .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--muted); }
@media (max-width: 1100px) { .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .stats.stats-4 { grid-template-columns: 1fr; } .toolbar select { flex: 1 1 auto; } }

/* Tabbladen binnen een pagina (bijv. Actiepunten | Besluiten) */
.page-tabs { margin: 0 0 20px; }
.page-tabs button { border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 4px; cursor: pointer; color: var(--text); }
.page-tabs button:hover { background: rgba(0, 0, 0, .05); }
.page-tabs button.active { background: var(--yellow); font-weight: 700; }
.tab-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: rgba(0, 0, 0, .08); font-size: 11.5px; font-weight: 700; text-align: center; }

/* Bladeren door lange lijsten */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.pager-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager .btn-sm { min-width: 32px; padding: 0 8px; justify-content: center; }
.pager .icon { width: 16px; height: 16px; }

/* Actiepunten doorzetten naar een nieuw seizoen */
.carry-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.carry-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; }
.carry-list li { padding: 10px 12px; border-top: 1px solid var(--line); }
.carry-list li:first-child { border-top: 0; }
.carry-list .toggle { align-items: flex-start; font-weight: 400; }
.carry-list .toggle span { display: grid; gap: 2px; }
.carry-all { margin-top: 12px; }
.carry-note { color: #8a4b09; }
.carry-info { margin-top: 12px; }

/* Iconen in de bovenbalk (Uitleg & contact, Beheer) */
.top-icons { display: inline-flex; gap: 4px; }
.top-icon .icon { width: 20px; height: 20px; }
.top-icon.active { background: var(--yellow); }

/* Uitleg & contact */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.help-card { padding: 22px 24px; display: grid; gap: 12px; align-content: start; }
.help-card h2 { font-size: 17px; }
.help-contact { display: grid; gap: 2px; }
.help-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.help-links li { display: flex; align-items: center; gap: 8px; }
.help-links .icon { width: 16px; height: 16px; color: var(--muted); }
.help-rights { list-style: none; margin: 0; padding: 0; }
.help-rights li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.help-rights li:first-child { border-top: 0; }
.help-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.help-page { display: flex; gap: 12px; padding: 16px 18px; align-items: flex-start; transition: border-color .15s; }
.help-page:hover { border-color: var(--ink); }
.help-page .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.help-page span { display: grid; gap: 4px; }
.help-page small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.help-tips { padding: 20px 24px; }
.help-tips li { margin: 6px 0; }
.contact-form { padding: 22px 24px; max-width: 760px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
@media (max-width: 720px) { .help-grid { grid-template-columns: 1fr; } }
