/* De Bedrijfsnavigator, huisstijl uit boek + website.
   Kleuren: petrol #2E3A42 (boek), licht #F5F3EE, fasekleuren
   taupe #B9B4A7, turquoise #58ACBC, groen #59A889, rood #BA656C, oranje #E2952D.
   Typografie: Poppins (koppen, hoofdletters, letterafstand), Roboto (lopende tekst). */

:root {
  --petrol: #2e3a42;
  --petrol-diep: #232d34;
  --inkt: #11181c;
  --papier: #f5f3ee;
  --wit: #ffffff;
  --taupe: #b9b4a7;
  --turquoise: #58acbc;
  --groen: #59a889;
  --rood: #ba656c;
  --oranje: #e2952d;
  --lijn: #ddd8cd;
  --schaduw: 0 10px 30px rgba(17, 24, 28, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--inkt);
  background: var(--papier);
}
h1, h2, h3, .knop, .fase-chip, th {
  font-family: "Poppins", Helvetica, Arial, sans-serif;
}
h1 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 0 0 .4rem; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin: 0 0 .8rem; }
a { color: #2b7686; }

/* de bergfoto als achtergrond, sterk verlicht zodat hij niet opvalt */
body:not(.auth-body)::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("brand/berg-achtergrond.jpg");
  background-image: image-set(url("brand/berg-achtergrond.avif") type("image/avif"),
                              url("brand/berg-achtergrond.jpg") type("image/jpeg"));
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  opacity: .10; filter: saturate(.5) blur(1.5px);
}
html { scroll-behavior: smooth; }

/* paginaovergangen: de berg vliegt van het dashboard naar de zijbalk (en terug) */
@view-transition { navigation: auto; }
::view-transition { pointer-events: none; }
.dash-berg { view-transition-name: berg; }
.zijnav-paneel { view-transition-name: berg; }
::view-transition-group(berg) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.45, 0, .2, 1);
}
::view-transition-old(berg), ::view-transition-new(berg) {
  height: 100%; width: 100%; object-fit: cover; overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.inhoud { max-width: 1180px; margin: 0 auto; padding: 1.6rem 1.4rem 4rem; }

/* ------------------------------------------------------------- zijnavigatie met de berg */
.app-layout { display: block; }
body.heeft-zijnav .app-layout {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0;
  max-width: 1420px; margin: 0 auto;
}
body.heeft-zijnav .inhoud { max-width: 1180px; width: 100%; }
.zijnav { padding: 1.6rem 0 1.6rem 1.4rem; }
.zijnav-paneel {
  position: sticky; top: 76px;
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-diep) 100%);
  border-radius: 14px; padding: .9rem .9rem .6rem; box-shadow: var(--schaduw);
}
.zijnav-kop { display: flex; justify-content: space-between; align-items: baseline; padding: 0 .2rem .4rem; }
.zijnav-titel {
  color: var(--wit); font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
}
.zijnav-pct { color: var(--oranje); font-family: "Poppins", sans-serif; font-weight: 700; font-size: .95rem; }
.bergnav { width: 100%; height: auto; display: block; }
.bergnav-nummer { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 12px; fill: #1d2b33; }
.bergnav-label { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 12px; fill: #fff; letter-spacing: .5px; }
.berg-punt:hover .bergnav-label { opacity: 1; }
/* fase-lijst onder de berg: de expliciete navigatie */
.zijnav-lijst { display: flex; flex-direction: column; gap: .15rem; padding: .5rem 0 .2rem; }
.zijnav-item {
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
  color: rgba(255,255,255,.8); font-size: .8rem; padding: .38rem .5rem; border-radius: 8px;
  border: 1px solid transparent;
}
.zijnav-item:hover { background: rgba(255,255,255,.1); color: var(--wit); }
.zijnav-item.actief { background: rgba(255,255,255,.14); color: var(--wit); border-color: rgba(255,255,255,.22); }
.zijnav-item .dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .68rem; color: #1d2b33;
}
.zijnav-item-titel { flex: 1; font-weight: 500; line-height: 1.15; }
.zijnav-item-tel { font-size: .7rem; opacity: .7; font-family: "Poppins", sans-serif; }
.zijnav-item-tel.af { color: #8fd6b8; opacity: 1; font-weight: 700; }
.scroll-ring { transition: opacity .25s; }

/* routepagina */
.route-fase { scroll-margin-top: 76px; }
.route-fase .fase-kop { margin-top: 1.8rem; }
.route-fase:first-of-type .fase-kop { margin-top: 0; }
.route-scheiding { display: flex; justify-content: center; padding: .6rem 0 .2rem; }
.route-scheiding svg { width: 46px; height: 36px; opacity: .8; }
.route-top { margin-top: 2rem; }
.route-top-paneel { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 2rem; }
.route-top-paneel h2 { color: var(--wit); margin-bottom: .3rem; }
.route-top-paneel p { color: rgba(255,255,255,.75); margin: 0; max-width: 520px; }
.route-top-vlag { width: 54px; height: 54px; flex-shrink: 0; }
.route-top-paneel .knop { margin-left: auto; flex-shrink: 0; }

.zijnav-voet { display: flex; gap: .4rem; padding-top: .5rem; }
.zijnav-voet a {
  flex: 1; text-align: center; color: rgba(255,255,255,.75); text-decoration: none;
  font-family: "Poppins", sans-serif; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em;
  padding: .4rem .3rem; border-radius: 7px; border: 1px solid rgba(255,255,255,.25);
}
.zijnav-voet a:hover, .zijnav-voet a.actief { background: rgba(255,255,255,.14); color: var(--wit); }
@media (min-width: 1081px) {
  body.heeft-zijnav .topnav .fase-link { display: none; }
}
@media (max-width: 1080px) {
  body.heeft-zijnav .app-layout { display: block; }
  .zijnav { display: none; }
}

/* ------------------------------------------------------------- topbalk (wit, zoals de website) */
.topbar {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--wit); color: var(--inkt);
  border-bottom: 1px solid var(--lijn); box-shadow: 0 2px 10px rgba(17,24,28,.04);
  padding: .55rem 1.4rem; position: sticky; top: 0; z-index: 40;
}
.topbar-logo img { height: 42px; display: block; }
.topnav { display: flex; gap: .2rem; flex-wrap: wrap; flex: 1; }
.topnav a {
  color: #45525b; text-decoration: none; font-size: .82rem;
  font-family: "Poppins", sans-serif; letter-spacing: .05em; text-transform: uppercase;
  padding: .45rem .6rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .4rem;
}
.topnav a:hover { background: #eef1f5; color: var(--inkt); }
.topnav a.actief { background: var(--petrol); color: var(--wit); }
.topnav .fase-link .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fase-kleur); display: inline-block; }
.topbar-user { display: flex; align-items: center; gap: .8rem; font-size: .85rem; }
.org-naam { font-weight: 700; }
.user-naam { opacity: .7; }
.uitloggen { color: #6b7780; font-size: .8rem; }

/* ------------------------------------------------------------- flash */
.flash-houder { max-width: 1180px; margin: 1rem auto 0; padding: 0 1.4rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .5rem; font-size: .92rem; }
.flash-fout { background: #f6e3e5; color: #7c2f38; border: 1px solid #e5bfc4; }
.flash-ok { background: #e2efe9; color: #275c49; border: 1px solid #bcded0; }

/* ------------------------------------------------------------- knoppen */
.knop {
  display: inline-block; border: 1.5px solid var(--petrol); color: var(--petrol);
  background: transparent; padding: .55rem 1.1rem; border-radius: 8px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
}
.knop:hover { background: rgba(46,58,66,.07); }
.knop-primair { background: var(--oranje); border-color: var(--oranje); color: var(--wit); }
.knop-primair:hover { background: #ce7f14; border-color: #ce7f14; }
.knop-klein { padding: .35rem .7rem; font-size: .72rem; }

/* ------------------------------------------------------------- auth */
/* dezelfde bergfoto als de rest van de app, hier prominent met een petrol-overlay */
.auth-body { background: var(--petrol-diep); }
.auth-body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: url("brand/berg-achtergrond.jpg");
  background-image: image-set(url("brand/berg-achtergrond.avif") type("image/avif"),
                              url("brand/berg-achtergrond.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.auth-body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(46,58,66,.62) 0%, rgba(46,58,66,.38) 45%, rgba(35,45,52,.72) 100%);
}
.auth-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; }
.auth-kaart {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.65); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(17,24,28,.35);
  padding: 2.6rem 2.6rem 2.2rem; width: 100%; max-width: 460px; position: relative; z-index: 2;
  animation: auth-verschijn .45s ease-out both;
}
@keyframes auth-verschijn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.auth-logo { display: block; height: 52px; margin: 0 auto 1.4rem; }
.auth-kaart h1 { font-size: 1.3rem; }
.auth-sub { margin: 0 0 1.6rem; color: #4c5a63; }
.auth-form label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: .92rem; }
.auth-form input {
  width: 100%; margin-top: .35rem; padding: .75rem .85rem; border: 1.5px solid var(--lijn);
  border-radius: 10px; font-size: 1rem; background: var(--wit); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input:focus {
  outline: none; border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(88,172,188,.25);
}
.auth-form .knop {
  width: 100%; margin-top: .6rem; padding: .85rem; border-radius: 10px; font-size: .85rem;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.auth-form .knop-primair:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(226,149,45,.35); }
.auth-wissel { font-size: .9rem; margin-top: 1.4rem; }
.veld-hint { font-size: .82rem; color: #6b7780; margin: .2rem 0 .8rem; }
.veld-hint-inline { font-weight: 400; font-size: .8rem; color: #6b7780; }
.tab-schakelaar { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.tab {
  flex: 1; padding: .55rem; border: 1.5px solid var(--lijn); background: var(--wit);
  border-radius: 10px; font-family: "Poppins", sans-serif; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer; font-weight: 600; color: #5a6771;
}
.tab.actief { border-color: var(--petrol); background: var(--petrol); color: var(--wit); }

/* ------------------------------------------------------------- welkomstanimatie na inloggen */
.login-splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-diep) 100%);
  animation: splash-weg .6s ease 2.1s forwards;
}
.login-splash .splash-berg { width: min(320px, 70vw); height: auto; }
.splash-pad {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: splash-teken 1.1s ease-out .15s forwards;
}
.splash-vlag {
  transform-box: fill-box; transform-origin: 0% 100%; transform: scale(0);
  animation: splash-vlag-pop .4s cubic-bezier(.34, 1.56, .64, 1) 1.15s forwards;
}
.splash-tekst {
  margin: 1.2rem 0 0; opacity: 0; color: var(--wit);
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .1em;
  animation: splash-tekst-op .5s ease .7s forwards;
}
.splash-sub {
  margin: .3rem 0 0; opacity: 0; color: rgba(255,255,255,.65); font-size: .95rem;
  animation: splash-tekst-op .5s ease .95s forwards;
}
@keyframes splash-teken { to { stroke-dashoffset: 0; } }
@keyframes splash-vlag-pop { to { transform: scale(1); } }
@keyframes splash-tekst-op { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splash-weg { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .login-splash { display: none; }
}

/* ------------------------------------------------------------- dashboard */
body.dashboard-pagina .inhoud { max-width: 1560px; }
.dash { display: grid; grid-template-columns: 2.1fr 1fr; gap: 1.4rem; align-items: stretch; }
.dash-berg { display: flex; flex-direction: column; }
.dash-berg .berg { margin-top: auto; }
.paneel-donker {
  background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-diep) 100%);
  color: var(--wit); border-radius: 16px; box-shadow: var(--schaduw);
}
.dash-berg { padding: 1.8rem 1.8rem 0; overflow: hidden; }
.dash-kop h1 { color: var(--wit); }
.dash-pct { color: var(--oranje); }
.dash-kop p { color: rgba(255,255,255,.75); margin: 0 0 .6rem; }
.berg { width: 100%; height: auto; display: block; }
.berg-label { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 17px; fill: #fff; letter-spacing: 2px; }
.berg-sublabel { font-family: "Poppins", sans-serif; font-size: 11.5px; fill: #fff; letter-spacing: 1.5px; }
.berg-punt { cursor: pointer; }
.berg-punt:hover circle { opacity: 1; }
.puls { animation: puls 2.2s ease-out infinite; transform-origin: center; }
@keyframes puls { 0% { opacity: 1; } 70% { opacity: .25; } 100% { opacity: 1; } }
.wolk { animation: drijf 46s ease-in-out infinite alternate; }
.wolk-2 { animation-duration: 64s; animation-delay: -20s; }
@keyframes drijf { from { transform: translateX(-26px); } to { transform: translateX(38px); } }
.vlag { animation: wapper 3.4s ease-in-out infinite; transform-origin: 450px 32px; }
@keyframes wapper { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.92); } }
#klimmer { transition: transform 1.2s cubic-bezier(.45, 0, .2, 1); }
.positie-ring {
  fill: #e2952d; transform-box: fill-box; transform-origin: center;
  animation: positie-puls 2.4s ease-out infinite;
}
@keyframes positie-puls {
  0% { transform: scale(.5); opacity: .55; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.klimmer-label {
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 12.5px;
  fill: #e2952d; letter-spacing: 1px; paint-order: stroke; stroke: #2e3a42; stroke-width: 3px;
}

.dash-zij { display: flex; flex-direction: column; gap: 1.4rem; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: 0 3px 14px rgba(17,24,28,.05); }
.kaart-breed { grid-column: 1 / -1; }
.kaart-sub { font-size: .9rem; color: #5a6771; margin-top: -.4rem; }
.kaart .knop { margin-top: .8rem; }

.voortgang-rij { display: flex; align-items: center; gap: .7rem; padding: .42rem 0; text-decoration: none; color: inherit; }
.voortgang-titel { flex: 1.4; font-size: .86rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.voortgang-titel .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.voortgang-balk { flex: 1; height: 8px; background: var(--papier); border-radius: 6px; overflow: hidden; }
.voortgang-balk span { display: block; height: 100%; border-radius: 6px; }
.voortgang-cijfer { font-size: .78rem; color: #6b7780; min-width: 2.6rem; text-align: right; }

.a4-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .8rem 0 .2rem; }
.a4-mini-kolom {
  font-size: .68rem; text-align: center; padding: .9rem .3rem; border: 1.5px dashed var(--lijn);
  border-radius: 8px; color: #8a949c; font-family: "Poppins", sans-serif; letter-spacing: .03em;
}
.a4-mini-kolom.af { border-style: solid; border-color: var(--groen); color: #275c49; background: #ecf5f0; }

.team-lijst { list-style: none; margin: 0; padding: 0; }
.team-lijst li { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; font-size: .92rem; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: var(--wit);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.rol-chip {
  margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--papier); border: 1px solid var(--lijn); padding: .15rem .5rem; border-radius: 20px; color: #5a6771;
}
.team-lijst .rol-chip { margin-left: auto; }

/* ------------------------------------------------------------- fase */
.fase-kop { padding: 2rem 2.2rem; display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.fase-kop h1 { color: var(--wit); }
.fase-chip {
  display: inline-block; background: var(--fase-kleur, var(--taupe)); color: #1d2b33;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; padding: .25rem .7rem; border-radius: 20px; margin-bottom: .7rem;
}
.fase-ondertitel { color: var(--fase-kleur, var(--taupe)); font-family: "Poppins", sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .8rem; }
.fase-intro { color: rgba(255,255,255,.82); max-width: 620px; margin: 0; font-size: .97rem; }
.fase-score { text-align: right; min-width: 170px; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; color: rgba(255,255,255,.8); font-size: .85rem; }
.fase-score-groot { font-family: "Poppins", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--wit); line-height: 1; }
.fase-score-groot em { font-style: normal; font-size: 1.2rem; opacity: .6; }
.fase-score .voortgang-balk { width: 100%; flex: 0 0 8px; background: rgba(255,255,255,.15); }

.sectie { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 1.6rem 1.8rem; margin-bottom: 1.4rem; }
.sectie h2 { display: flex; align-items: center; gap: .6rem; }
.sectie-nummer { color: #1d2b33; font-size: .72rem; padding: .2rem .55rem; border-radius: 6px; letter-spacing: .05em; }
.theorie { max-width: 760px; }
.theorie p, .theorie li { font-size: .95rem; color: #303b42; }
.theorie table { border-collapse: collapse; margin: .8rem 0; font-size: .88rem; }
.theorie th, .theorie td { border: 1px solid var(--lijn); padding: .45rem .7rem; text-align: left; vertical-align: top; }
.theorie th { background: var(--papier); font-size: .78rem; letter-spacing: .04em; }

.opdracht-lijst { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.opdracht-item {
  display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit;
  border: 1.5px solid var(--lijn); border-radius: 10px; padding: .75rem 1rem; background: var(--wit);
}
.opdracht-item:hover { border-color: var(--petrol); }
.opdracht-item.af { background: #f2f7f4; border-color: #cfe4da; }
.opdracht-status {
  width: 34px; height: 34px; border-radius: 50%; background: var(--fase-kleur); color: #1d2b33;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: "Poppins", sans-serif; flex-shrink: 0;
}
.opdracht-item.af .opdracht-status { background: var(--groen); color: var(--wit); }
.opdracht-info { flex: 1; display: flex; flex-direction: column; }
.opdracht-info small { color: #5a6771; }
.opdracht-meta { font-size: .74rem; color: #8a949c; }
.a4-chip { background: var(--petrol); color: var(--wit); font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 5px; letter-spacing: .08em; }
.fase-navigatie { display: flex; justify-content: space-between; margin-top: 1.6rem; }

/* ------------------------------------------------------------- opdracht */
.kruimel { font-size: .84rem; color: #6b7780; margin-bottom: 1rem; display: flex; gap: .5rem; }
.opdracht-kop { margin-bottom: 1.6rem; }
.opdracht-kop .fase-chip { background: var(--fase-kleur); }
.opdracht-kop p { color: #45525b; max-width: 700px; }
#opdracht-form { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 1.6rem 1.8rem; }
.veld { margin-bottom: 1.5rem; }
.veld > label { display: block; font-weight: 600; font-family: "Poppins", sans-serif; font-size: .88rem; margin-bottom: .35rem; }
.veld textarea, .veld input[type="text"], .veld select {
  width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--lijn); border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fdfcfa;
}
.veld textarea:focus, .veld input:focus, .veld select:focus { outline: 2px solid var(--turquoise); border-color: var(--turquoise); }
.veld-select select { max-width: 320px; }

.tabel-wrap { overflow-x: auto; border: 1px solid var(--lijn); border-radius: 10px; }
.invultabel { border-collapse: collapse; width: 100%; font-size: .88rem; }
.invultabel th {
  background: var(--petrol); color: var(--wit); font-size: .7rem; letter-spacing: .05em;
  text-transform: uppercase; padding: .5rem .6rem; text-align: left; white-space: nowrap;
}
.invultabel td { border-bottom: 1px solid var(--lijn); padding: .25rem .3rem; background: var(--wit); }
.invultabel input[type="text"], .invultabel select, .invultabel input[type="number"] {
  width: 100%; min-width: 90px; border: 1px solid transparent; background: transparent;
  padding: .4rem .4rem; font-size: .9rem; font-family: inherit; border-radius: 6px;
}
.invultabel .kol-breed input { min-width: 200px; }
.invultabel input:focus, .invultabel select:focus { outline: none; border-color: var(--turquoise); background: #fdfcfa; }
.invultabel input.vast { font-weight: 600; color: var(--petrol); }
.invultabel input[type="number"] { min-width: 58px; max-width: 74px; text-align: center; }
.invultabel .kol-status, .invultabel .kol-check { text-align: center; min-width: 34px; }
.invultabel td.kol-status, .invultabel td.kol-check { text-align: center; }
.kol-som { text-align: center; font-weight: 700; background: var(--papier) !important; min-width: 60px; }
.kol-acties { width: 34px; }
.rij-weg { border: 0; background: transparent; color: #b5636c; font-size: 1.1rem; cursor: pointer; padding: .2rem .45rem; border-radius: 6px; }
.rij-weg:hover { background: #f6e3e5; }
.rij-erbij { margin-top: .6rem; }

.status-knop {
  width: 26px; height: 26px; border-radius: 6px; border: 1.5px dashed #c9c3b6; background: transparent; cursor: pointer;
}
.status-knop.status-groen { background: var(--groen); border: 0; }
.status-knop.status-oranje { background: var(--oranje); border: 0; }
.status-knop.status-rood { background: var(--rood); border: 0; }

.schaal { border: 1px solid var(--lijn); border-radius: 10px; padding: .4rem 1rem; background: var(--wit); }
.schaal-rij { display: flex; align-items: center; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid #eee9df; }
.schaal-rij:last-of-type { border-bottom: 0; }
.schaal-stelling { flex: 1; font-size: .92rem; }
.schaal-knoppen { display: flex; gap: .3rem; }
.schaal-knop {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--lijn); background: var(--wit);
  cursor: pointer; font-family: "Poppins", sans-serif; font-size: .8rem; color: #5a6771;
}
.schaal-knop.gekozen { background: var(--turquoise); border-color: var(--turquoise); color: var(--wit); font-weight: 700; }
.schaal-som { font-size: .85rem; color: #5a6771; padding: .5rem 0 .3rem; }

/* ------------------------------------------------------------- modellen in hun echte vorm */
.model { display: grid; gap: .7rem; margin-top: .3rem; }
.model-vak {
  border: 1.5px solid var(--lijn); border-top: 4px solid var(--vak-kleur, var(--taupe));
  border-radius: 10px; background: var(--wit); padding: .65rem .75rem .5rem;
  display: flex; flex-direction: column; min-height: 130px;
}
.model-vak h4 {
  margin: 0; font-family: "Poppins", sans-serif; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--inkt);
}
.model-vak small { color: #7d8890; font-size: .74rem; margin: .1rem 0 .3rem; }
.model-vak textarea {
  border: 0 !important; background: transparent !important; flex: 1; resize: vertical;
  padding: .15rem 0 !important; font-size: .9rem; min-height: 64px;
}
.model-vak textarea:focus { outline: none !important; }
.model-vak:focus-within { border-color: var(--vak-kleur, var(--turquoise)); box-shadow: 0 0 0 1px var(--vak-kleur, var(--turquoise)); }

/* SWOT: 2x2 kwadrant */
.model-swot { grid-template-columns: 1fr 1fr; }

/* Confrontatiematrix: 2x2 */
.model-confrontatie { grid-template-columns: 1fr 1fr; }

/* DESTEP: 6 tegels */
.model-destep { grid-template-columns: repeat(3, 1fr); }

/* Porter: kruisvorm met concurrenten in het midden */
.model-porter {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: ". toetreders ." "leveranciers concurrenten afnemers" ". substituten .";
}
.model-porter .vak-toetreders { grid-area: toetreders; }
.model-porter .vak-leveranciers { grid-area: leveranciers; }
.model-porter .vak-concurrenten { grid-area: concurrenten; background: var(--petrol); }
.model-porter .vak-concurrenten h4, .model-porter .vak-concurrenten small { color: var(--wit); }
.model-porter .vak-concurrenten small { color: rgba(255,255,255,.65); }
.model-porter .vak-concurrenten textarea { color: var(--wit); }
.model-porter .vak-afnemers { grid-area: afnemers; }
.model-porter .vak-substituten { grid-area: substituten; }

/* 7S: shared values in het hart */
.model-zevens {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "strategie structuur systeem" "stijl shared staf" ". skills .";
}
.model-zevens .vak-strategie { grid-area: strategie; }
.model-zevens .vak-structuur { grid-area: structuur; }
.model-zevens .vak-systeem { grid-area: systeem; }
.model-zevens .vak-stijl { grid-area: stijl; }
.model-zevens .vak-shared { grid-area: shared; background: var(--petrol); }
.model-zevens .vak-shared h4 { color: var(--wit); }
.model-zevens .vak-shared small { color: rgba(255,255,255,.65); }
.model-zevens .vak-shared textarea { color: var(--wit); }
.model-zevens .vak-staf { grid-area: staf; }
.model-zevens .vak-skills { grid-area: skills; }

/* Business Model Canvas: het klassieke Strategyzer-raster */
.model-bmc {
  grid-template-columns: repeat(10, 1fr); gap: .55rem;
  grid-template-areas:
    "partners partners activiteiten activiteiten proposities proposities relaties relaties segmenten segmenten"
    "partners partners resources resources proposities proposities kanalen kanalen segmenten segmenten"
    "kosten kosten kosten kosten kosten inkomsten inkomsten inkomsten inkomsten inkomsten";
}
.model-bmc .model-vak { min-height: 110px; }
.model-bmc .vak-partners { grid-area: partners; }
.model-bmc .vak-activiteiten { grid-area: activiteiten; }
.model-bmc .vak-resources { grid-area: resources; }
.model-bmc .vak-waardeproposities { grid-area: proposities; }
.model-bmc .vak-klantrelaties { grid-area: relaties; }
.model-bmc .vak-kanalen { grid-area: kanalen; }
.model-bmc .vak-klantsegmenten { grid-area: segmenten; }
.model-bmc .vak-kosten { grid-area: kosten; }
.model-bmc .vak-inkomsten { grid-area: inkomsten; }

@media (max-width: 860px) {
  .model-bmc { grid-template-columns: 1fr 1fr; grid-template-areas: none; }
  .model-bmc .model-vak { grid-area: auto !important; }
  .model-porter, .model-zevens { grid-template-columns: 1fr; grid-template-areas: none; }
  .model-porter .model-vak, .model-zevens .model-vak { grid-area: auto !important; }
  .model-destep { grid-template-columns: 1fr 1fr; }
}

.opdracht-voet {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--lijn);
  padding-top: 1rem; margin-top: .4rem;
}
.opslag-status { font-size: .8rem; color: #8a949c; }
.opslag-status.bezig { color: var(--oranje); }
.opslag-status.ok { color: #275c49; }
.klaar-schakel { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; cursor: pointer; }
.klaar-schakel input { width: 20px; height: 20px; accent-color: var(--groen); }

/* ------------------------------------------------------------- A4 */
.a4-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 1.4rem; }
.a4-kop p { color: #45525b; max-width: 640px; }
.a4-blad {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 4px; box-shadow: var(--schaduw);
  max-width: 1120px; margin: 0 auto; padding: 2.2rem 2.4rem;
}
.a4-blad-kop { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--petrol); padding-bottom: .8rem; margin-bottom: 1.4rem; }
.a4-blad-titel { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; }
.a4-blad-sub { color: #6b7780; font-size: .85rem; }
.a4-kolommen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.a4-kolom { border-top: 5px solid var(--kleur); background: #fbfaf7; border-radius: 0 0 10px 10px; padding: .9rem 1rem 1.1rem; }
.a4-kolom h2 { font-size: .9rem; color: var(--petrol); }
.a4-kolom h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7780; margin: .9rem 0 .25rem; font-weight: 600; }
.a4-kolom p, .a4-kolom li { font-size: .86rem; color: #303b42; margin: .2rem 0; }
.a4-waarden, .a4-indicatoren { padding-left: 1.1rem; margin: .3rem 0; }
.a4-acties { padding-left: 1.2rem; margin: .3rem 0; }
.a4-acties li, .a4-waarden li { margin-bottom: .5rem; }
.a4-leeg { color: #8a949c; font-style: italic; }

/* ------------------------------------------------------------- monitor */
.pagina-sub { color: #45525b; max-width: 720px; margin-bottom: 1.6rem; }
.monitor-tabel { border-collapse: collapse; width: 100%; font-size: .85rem; }
.monitor-tabel th { background: var(--petrol); color: var(--wit); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: .45rem .5rem; text-align: left; }
.monitor-tabel td { border-bottom: 1px solid var(--lijn); padding: .4rem .5rem; text-align: center; }
.monitor-tabel td.monitor-naam, .monitor-tabel td:first-child { text-align: left; }
.monitor-naam { font-weight: 500; }
.status-vlak { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: #eee9df; vertical-align: middle; }
.status-vlak.status-groen { background: var(--groen); }
.status-vlak.status-oranje { background: var(--oranje); }
.status-vlak.status-rood { background: var(--rood); }
.monitor-legenda { display: flex; gap: 1.6rem; margin-top: 1rem; font-size: .85rem; color: #5a6771; align-items: center; }
.monitor-legenda span { display: inline-flex; align-items: center; gap: .45rem; }

/* ------------------------------------------------------------- admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.invite-code {
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .12em;
  background: var(--papier); border: 2px dashed var(--taupe); border-radius: 10px;
  padding: .8rem 1rem; text-align: center; margin: .6rem 0 1rem; user-select: all;
}
.rij-form { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.rij-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; font-weight: 500; flex: 1; min-width: 160px; }
.rij-form input, .rij-form select { padding: .55rem .6rem; border: 1.5px solid var(--lijn); border-radius: 8px; font-size: .95rem; font-family: inherit; }
.beheer-tabel { border-collapse: collapse; width: 100%; font-size: .9rem; }
.beheer-tabel th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7780; border-bottom: 2px solid var(--lijn); padding: .5rem .6rem; }
.beheer-tabel td { border-bottom: 1px solid #eee9df; padding: .55rem .6rem; vertical-align: middle; }
.beheer-tabel tr.inactief td { opacity: .5; }
.beheer-acties { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.beheer-acties form { display: inline-flex; gap: .3rem; }
.ww-form input { padding: .3rem .5rem; border: 1.5px solid var(--lijn); border-radius: 6px; font-size: .8rem; width: 150px; }

/* ------------------------------------------------------------- print (A4) */
@media print {
  .topbar, .a4-kop button, .flash-houder, .topnav, .zijnav, body::before, body::after { display: none !important; }
  body.heeft-zijnav .app-layout { display: block; }
  body { background: #fff; }
  .inhoud { padding: 0; max-width: none; }
  .a4-kop { margin: 0 0 .6rem; }
  .a4-blad { box-shadow: none; border: 0; padding: 0; }
}

/* ------------------------------------------------------------- responsief */
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .a4-kolommen { grid-template-columns: 1fr 1fr; }
  .fase-kop { flex-direction: column; gap: 1rem; }
}
@media (max-width: 640px) {
  .a4-kolommen { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
}
