/* Gedeelde basis voor werkplek en portaal. Kleuren staan in werkplek.css / portaal.css. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--tekst); background: var(--achtergrond); line-height: 1.5; overflow-x: hidden; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; }
[hidden] { display: none !important; }
.verborgen-label { position: absolute; left: -9999px; }

.kaart { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 20px; }
.veld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.veld label { font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--tekst); padding: 11px 12px; border: 1px solid var(--rand-invoer); border-radius: 8px; background: #fff; width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
button, .knop { font: inherit; font-size: 15px; font-weight: 600; min-height: 46px; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:disabled { opacity: .6; cursor: wait; }
.knop-primair { background: var(--primair); color: #fff; }
.knop-accent { background: var(--accent); color: var(--accent-tekst); }
.knop-rustig { background: #fff; color: var(--tekst); border-color: var(--rand-invoer); }
.knop-link { background: none; border: none; color: var(--link); padding: 8px 0; min-height: 44px; font-weight: 500; text-decoration: underline; }
.melding { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.melding-fout { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3C2C2; }
.melding-goed { background: #E6F2EA; color: #1F5A33; border: 1px solid #BFDCC8; }
.melding-info { background: var(--info-bg); color: var(--tekst); border: 1px solid var(--rand); }

.tabelbox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--zacht); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1px solid var(--rand); white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid #EEF2F6; vertical-align: middle; }
.label { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #EEF2F6; color: #33495C; white-space: nowrap; }

/* Inlogscherm */
.inlog-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.inlog { width: 100%; max-width: 420px; }
.inlog h1 { margin: 0 0 6px; font-size: 24px; }
.inlog p.sub { margin: 0 0 20px; color: var(--zacht); font-size: 15px; }
.inlog .knop-primair, .inlog .knop-accent { width: 100%; }

/* Kop met knoppenrij (indeling zoals het MHH Dashboard) */
.kop { background: #fff; border-bottom: 1px solid var(--rand); }
.kop-binnen { max-width: 1360px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.merk { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.merk-blok { width: 38px; height: 38px; border-radius: 10px; background: var(--primair); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.merk-naam { font-weight: 700; font-size: 15px; }
.merk-sub { font-size: 12px; color: var(--zacht); }
.menu { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 600px; }
.menu a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--menu-bg); color: var(--tekst); text-decoration: none; font-size: 14px; font-weight: 500; }
.menu a[aria-current="page"] { background: var(--primair); color: #fff; font-weight: 600; }
.gebruiker { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-tekst); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.inhoud { max-width: 1360px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.inhoud h1 { margin: 0; font-size: 26px; }
.rij { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rij > .veld { flex: 1 1 200px; margin-bottom: 0; }

@media (max-width: 640px) {
  .kop-binnen { padding: 10px 12px; }
  .menu { flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .menu a { white-space: nowrap; }
  .inhoud { padding: 18px 12px 40px; }
  .inhoud h1 { font-size: 22px; }
}
