/* Havenvereniging Ooldelende - designsysteem
   Nautisch: diep zeebluis als basis, helmertgrijs als neutraal,
   een accent voor acties. Bewust zonder CSS-framework. */

:root {
  --marine-900: #071a2c;
  --marine-800: #0b2a45;
  --marine-700: #113a5c;
  --marine-600: #1a4d78;
  --marine-500: #24628f;
  --marine-400: #3d84b3;
  --marine-200: #a8c8de;
  --marine-100: #dceaf3;
  --marine-50:  #f0f6fa;

  --brass-600: #a97c2a;
  --brass-500: #c9962f;
  --brass-400: #e0b45c;
  --brass-100: #fbf1dc;

  --green-600: #1d7a4f;
  --green-100: #dff2e7;
  --red-600:   #b32d2d;
  --red-100:   #fbe4e4;
  --amber-600: #a06a12;
  --amber-100: #fdf0d9;

  --grey-900: #14202b;
  --grey-700: #3d4d5c;
  --grey-500: #6b7c8b;
  --grey-300: #b9c6d1;
  --grey-200: #dde5ec;
  --grey-100: #eef3f7;
  --grey-50:  #f7fafc;
  --white:    #fff;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 44, .06), 0 1px 3px rgba(7, 26, 44, .08);
  --shadow: 0 4px 6px -1px rgba(7, 26, 44, .07), 0 2px 4px -2px rgba(7, 26, 44, .06);
  --shadow-lg: 0 12px 24px -6px rgba(7, 26, 44, .13), 0 6px 8px -6px rgba(7, 26, 44, .08);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.018em; color: var(--marine-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.024em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--marine-600); text-decoration-color: var(--marine-200); text-underline-offset: 3px; }
a:hover { color: var(--marine-800); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

:focus-visible {
  outline: 3px solid var(--brass-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--marine-800); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Kolomdiagram voor het kasboek ---------- */
.chart { display: flex; align-items: flex-end; gap: .5rem; height: 160px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; }
.chart__bars { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; justify-content: center; }
.chart__bar { width: 40%; max-width: 16px; border-radius: 3px 3px 0 0; min-height: 0; }
.chart__bar--in { background: var(--green-600); }
.chart__bar--uit { background: var(--red-600); }
.chart__label { font-size: .72rem; color: var(--grey-500); }
.chart__key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; vertical-align: -1px; }
.chart__key--in { background: var(--green-600); }
.chart__key--uit { background: var(--red-600); margin-left: .5rem; }

[data-panel].is-hidden { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header / navigatie ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--marine-700); stroke-width: 2; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand__txt strong { color: var(--marine-900); font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; }
.brand__txt small { color: var(--grey-500); font-size: .78rem; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > a:not(.btn) {
  color: var(--grey-700); text-decoration: none; font-weight: 500; font-size: .94rem;
  padding: .5rem .7rem; border-radius: 6px;
}
.nav > a:not(.btn):hover { color: var(--marine-800); background: var(--marine-50); }

.burger {
  display: none; width: 42px; height: 38px; border: 1px solid var(--grey-200);
  background: var(--white); border-radius: 8px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--marine-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--grey-200);
    padding: .75rem 1.25rem 1.25rem; gap: .2rem; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .22s ease; max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .75rem .5rem; font-size: 1rem; }
  .nav .btn { width: 100%; margin-top: .5rem; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .94rem; line-height: 1.2;
  padding: .78rem 1.3rem; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .06s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--marine-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--marine-800); color: var(--white); }
.btn--accent { background: var(--brass-500); color: var(--marine-900); }
.btn--accent:hover { background: var(--brass-400); color: var(--marine-900); }
.btn--ghost { background: transparent; color: var(--marine-700); border-color: var(--marine-200); }
.btn--ghost:hover { background: var(--marine-50); color: var(--marine-800); border-color: var(--marine-400); }
.btn--danger { background: var(--red-600); color: #fff; }
.btn--danger:hover { background: #922424; color: #fff; }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 700px); display: flex; align-items: center;
  padding: clamp(4rem, 11vw, 7.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  background: var(--marine-900);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,26,44,.72) 0%, rgba(7,26,44,.55) 40%, rgba(7,26,44,.82) 100%),
    linear-gradient(100deg, rgba(7,26,44,.7) 0%, rgba(7,26,44,.15) 60%);
}
.hero__in { max-width: 46rem; color: #fff; }
.hero h1 { color: #fff; margin-bottom: 1rem; text-wrap: balance; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 38rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 3rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.6); }
.hero__meta dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* ---------- Secties ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--grey-50); }
.section--marine { background: var(--marine-900); color: rgba(255,255,255,.86); }
.section--marine h2, .section--marine h3 { color: #fff; }

.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__head p { color: var(--grey-500); font-size: 1.05rem; margin: 0; }
.section--marine .section__head p { color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .85rem;
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brass-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass-500); border-radius: 2px; }
.section--marine .eyebrow { color: var(--brass-400); }
.section--marine .eyebrow::before { background: var(--brass-400); }

/* Tekst + afbeelding */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__badge {
  position: absolute; right: -1rem; bottom: -1.25rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem; max-width: 15rem;
}
.split__badge strong { display: block; color: var(--marine-800); font-size: 1.6rem; line-height: 1.1; }
.split__badge span { font-size: .8rem; color: var(--grey-500); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { order: -1; } .split__badge { right: 1rem; } }

.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .97rem; }
.feature-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--brass-500); stroke-width: 2.2; }

/* Kaarten */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--marine-200); }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--marine-50); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--marine-700); stroke-width: 1.9; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--grey-500); font-size: .94rem; }

/* Nieuws & agenda */
.post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post__media { aspect-ratio: 16 / 9; background: var(--marine-50); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; font-size: .8rem; color: var(--grey-500); }
.post__body h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.post__body p { margin: 0 0 1.1rem; font-size: .92rem; flex: 1; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: .28rem .6rem; border-radius: 5px;
  background: var(--marine-50); color: var(--marine-700);
}
.tag--brass { background: var(--brass-100); color: var(--brass-600); }
.tag--green { background: var(--green-100); color: var(--green-600); }
.tag--red   { background: var(--red-100);   color: var(--red-600); }
.tag--amber { background: var(--amber-100); color: var(--amber-600); }
.tag--grey  { background: var(--grey-100);  color: var(--grey-700); }
.tag--blue  { background: var(--marine-100); color: var(--marine-700); }
.tag--muted { background: var(--grey-200);  color: var(--grey-700); }

.event { display: flex; gap: 1.1rem; align-items: flex-start; }
.event__datum {
  flex: none; width: 62px; text-align: center; padding: .6rem .3rem;
  background: var(--marine-800); color: #fff; border-radius: var(--radius);
}
.event__datum d, .event__datum dt { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.event__datum dd, .event__datum .m { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.event__body { min-width: 0; }
.event__body h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.event__body p { margin: 0; font-size: .88rem; color: var(--grey-500); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }

.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-200);
  box-shadow: var(--shadow); background: var(--grey-100); aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 21px; height: 21px; flex: none; margin-top: 3px; fill: none; stroke: var(--marine-600); stroke-width: 1.9; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--grey-500); margin-bottom: .1rem; }

/* ---------- Formulieren ---------- */
.field { margin-bottom: 1.1rem; }
.field > label, .label {
  display: block; margin-bottom: .4rem;
  font-size: .86rem; font-weight: 600; color: var(--grey-700);
}
.req { color: var(--red-600); }
.hint { margin: .35rem 0 0; font-size: .8rem; color: var(--grey-500); }

/* Beschrijvingslijst voor detailpagina's */
.deflist { display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: .45rem .8rem; margin: 0; font-size: .9rem; }
.deflist dt { color: var(--grey-500); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.deflist dd { margin: 0; word-break: break-word; }

/* Opsomming met vinkje, voor uitleg in panelen */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; color: var(--grey-700); }
.feature-list li { position: relative; padding-left: 1.5rem; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: .55rem; height: .3rem; border-left: 2px solid var(--brass-500);
  border-bottom: 2px solid var(--brass-500); transform: rotate(-45deg);
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], input[type=search], input[type=url],
select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--grey-900);
  padding: .68rem .85rem; border: 1px solid var(--grey-300); border-radius: 8px;
  background: var(--white); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7c8b' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px;
  padding-right: 2.3rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--marine-500);
  box-shadow: 0 0 0 3px var(--marine-100);
}
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red-600); }
::placeholder { color: #9aabb9; }

.help { font-size: .82rem; color: var(--grey-500); margin-top: .35rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; gap: 0; } }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--marine-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.btn-row--end { justify-content: flex-end; }

/* Berichten / flash */
.flash {
  padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-size: .93rem; font-weight: 500; border: 1px solid transparent;
}
.flash--success { background: var(--green-100); color: var(--green-600); border-color: #b9e2cb; }
.flash--error   { background: var(--red-100);   color: var(--red-600);   border-color: #f0bcbc; }
.flash--info    { background: var(--marine-100); color: var(--marine-800); border-color: var(--marine-200); }
.flash--warn    { background: var(--amber-100); color: var(--amber-600); border-color: #f0d5a5; }

/* ---------- Auth pagina ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

.auth__main { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth__card { width: min(100%, 420px); }
.auth__card h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth__sub { color: var(--grey-500); margin-bottom: 2rem; font-size: .95rem; }

.auth__aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem; color: #fff; background: var(--marine-900);
}
.auth__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,44,.55), rgba(7,26,44,.9)); z-index: 1; }
.auth__aside > div { position: relative; z-index: 2; max-width: 26rem; }
.auth__aside h2 { color: #fff; font-size: 1.5rem; }
.auth__aside p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }
.auth__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.auth__list li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: rgba(255,255,255,.9); }
.auth__list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brass-400); stroke-width: 2.4; }

.pw-meter { height: 5px; border-radius: 3px; background: var(--grey-200); overflow: hidden; margin-top: .5rem; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .25s, background-color .25s; }

/* ---------- App-shell (portaal + bestuur) ---------- */
.app { display: grid; grid-template-columns: 254px 1fr; min-height: 100dvh; background: var(--grey-50); }
@media (max-width: 940px) { .app { grid-template-columns: 1fr; } }

.app__side {
  background: var(--marine-900); color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
}
.app__brand {
  display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none;
}
.app__brand svg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--brass-400); stroke-width: 2; }
.app__brand strong { color: #fff; font-size: .93rem; line-height: 1.25; display: block; }
.app__brand small { color: rgba(255,255,255,.45); font-size: .72rem; }

.app__nav { flex: 1; overflow-y: auto; padding: 1rem .85rem; }
.app__group { margin-bottom: 1.5rem; }
.app__group > span {
  display: block; padding: 0 .55rem .5rem; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35);
}
.app__nav a {
  display: flex; align-items: center; gap: .7rem; padding: .58rem .6rem; margin-bottom: 1px;
  border-radius: 7px; color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .89rem; font-weight: 500; transition: background-color .13s, color .13s;
}
.app__nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; }
.app__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.app__nav a.is-active { background: var(--marine-600); color: #fff; }
.app__nav .pill { margin-left: auto; background: var(--brass-500); color: var(--marine-900); font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 20px; }

.app__user { padding: 1rem 1.35rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: .7rem; }
.app__user .avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass-500); color: var(--marine-900); font-weight: 700; font-size: .85rem;
}
.app__user div { min-width: 0; }
.app__user strong { display: block; color: #fff; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__user small { color: rgba(255,255,255,.45); font-size: .74rem; }
.app__user a { margin-left: auto; color: rgba(255,255,255,.5); display: grid; place-items: center; flex: none; }
.app__user a:hover { color: #fff; }
.app__user a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.app__main { min-width: 0; display: flex; flex-direction: column; }

.app__top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .9rem clamp(1rem, 3vw, 2rem); background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200);
}
.app__top h1 { font-size: 1.22rem; margin: 0; }
.app__top .burger { margin-left: auto; }
.app__body { padding: clamp(1.25rem, 3vw, 2rem); flex: 1; }

.app__menu-btn { display: none; }
@media (max-width: 940px) {
  .app__side {
    position: fixed; inset: 0 auto 0 0; width: 254px; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .app.is-nav-open .app__side { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .app__menu-btn { display: flex; }
}
@media (min-width: 941px) { .app__scrim { display: none; } }
.app__scrim {
  position: fixed; inset: 0; background: rgba(7,26,44,.5); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.app.is-nav-open .app__scrim { opacity: 1; pointer-events: auto; }

/* Statistieken */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--grey-500); margin: 0 0 .3rem; }
.stat__value { font-size: 1.75rem; font-weight: 700; color: var(--marine-800); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.stat__foot { font-size: .8rem; color: var(--grey-500); margin: .25rem 0 0; }
.stat--alert .stat__value { color: var(--red-600); }
.stat--good  .stat__value { color: var(--green-600); }

/* Panelen */
.panel {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--grey-200); background: var(--grey-50);
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1rem; }
.panel__head .btn { margin-left: auto; }
.panel__body { padding: 1.4rem; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 1rem 1.4rem; border-top: 1px solid var(--grey-200); background: var(--grey-50); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--grey-200); vertical-align: middle; }
table.data thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--grey-500);
  background: var(--grey-50); font-weight: 700; white-space: nowrap; position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--marine-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .nowrap { white-space: nowrap; }
table.data .act { text-align: right; white-space: nowrap; }
table.data td a { font-weight: 500; }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--grey-500); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 1rem; fill: none; stroke: var(--grey-300); stroke-width: 1.6; }
.empty h3 { color: var(--grey-700); margin-bottom: .3rem; }
.empty p { margin: 0 0 1.2rem; font-size: .92rem; }

/* Toolbar / filters */
.toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.toolbar input[type=search], .toolbar select { width: auto; min-width: 165px; }
.toolbar .grow { flex: 1; min-width: 190px; }

/* Berichten thread */
.thread { display: grid; gap: 1rem; }
.msg { padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--grey-50); border: 1px solid var(--grey-200); max-width: 80%; }
.msg--bestuur { background: var(--marine-50); border-color: var(--marine-200); margin-left: auto; }
.msg__head { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; font-size: .8rem; color: var(--grey-500); }
.msg__head strong { color: var(--marine-800); font-size: .88rem; }
.msg__body { font-size: .94rem; white-space: pre-wrap; }

/* Documenten */
.doc-item {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.4rem;
  border-bottom: 1px solid var(--grey-200); text-decoration: none; color: inherit;
}
.doc-item:last-child { border-bottom: 0; }
.doc-item:hover { background: var(--marine-50); }
.doc-item svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--marine-600); stroke-width: 1.7; }
.doc-item__name { font-weight: 600; font-size: .94rem; }
.doc-item__meta { font-size: .8rem; color: var(--grey-500); }

/* Paginering */
.pager { display: flex; gap: .35rem; align-items: center; padding: 1rem 1.4rem; border-top: 1px solid var(--grey-200); flex-wrap: wrap; }
.pager a, .pager span {
  padding: .35rem .7rem; border-radius: 6px; font-size: .88rem; text-decoration: none;
  border: 1px solid var(--grey-200); color: var(--grey-700);
}
.pager .is-current { background: var(--marine-700); border-color: var(--marine-700); color: #fff; font-weight: 600; }
.pager .is-disabled { opacity: .4; }

/* Utilities */
.muted { color: var(--grey-500); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; }
.flex { display: flex; } .between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* Print: factuur */
@media print {
  .site-header, .site-footer, .app__side, .app__top, .no-print, .btn { display: none !important; }
  body, .app { background: #fff; }
  .app { grid-template-columns: 1fr; }
  .panel { border: 0; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}