/* Hind lokaal (OFL), geen Google Fonts: geen externe verzoeken vanuit de praktijk. */
@font-face { font-family: 'Hind'; font-weight: 300; font-style: normal; font-display: swap; src: url('/static/fonts/Hind-Light.ttf') format('truetype'); }
@font-face { font-family: 'Hind'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/Hind-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Hind'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/Hind-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Hind'; font-weight: 700; font-style: normal; font-display: swap; src: url('/static/fonts/Hind-SemiBold.ttf') format('truetype'); }

:root {
    --grey: #707271;
    --yellow: #FFDA00;
    --surface: #F8FAFC;
    --line: #e5e7eb;
    --ink: #3f4140;
}
* { box-sizing: border-box; }
body { font-family: 'Hind', 'Calibri', Arial, sans-serif; margin: 0; color: var(--ink); background-color: var(--surface); }
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url('/static/pattern_tile.png'); background-size: 190px; background-repeat: repeat;
    opacity: 0.30;
    -webkit-mask-image: linear-gradient(to top right, #000 0%, #000 22%, rgba(0,0,0,0) 78%);
            mask-image: linear-gradient(to top right, #000 0%, #000 22%, rgba(0,0,0,0) 78%);
}
a { color: var(--grey); }

.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 20px; color: var(--grey); }
.wordmark .dot { color: var(--yellow); }
.brand small { color: var(--grey); font-size: 12px; }
.topbar nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.topbar nav a { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 3px; background: #eef1f4; padding: 4px; border-radius: 11px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; color: var(--grey); white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.nav-link svg { width: 15px; height: 15px; opacity: .75; }
.nav-link:hover { background: #e2e6ea; color: #000; }
.nav-link.active { background: #fff; color: var(--grey); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.nav-link.active svg { color: var(--yellow); opacity: 1; }
.profile { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grey); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.who { color: #9aa0a0; font-weight: 500; font-size: 12.5px; }
@media (max-width: 760px) { .who { display: none; } }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 22px 60px; }
.container.narrow { max-width: 460px; }
body.auth main.container { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }

h1 { font-size: 26px; color: var(--grey); margin: 0 0 4px; }
h2 { font-size: 18px; color: var(--grey); }
.sub { color: #8b9090; margin: 0 0 20px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.04); padding: 22px; margin-bottom: 18px; }
.card h2 { margin-top: 0; }

label { display: block; font-size: 12.5px; color: var(--grey); font-weight: 600; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
    width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,218,0,.25); }
textarea { resize: vertical; min-height: 60px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn { display: inline-block; font-family: inherit; font-weight: 600; font-size: 14px; border: none; border-radius: 9px; padding: 10px 18px; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.btn-primary { background: var(--yellow); color: var(--grey); }
.btn-primary:hover { background: #e6c500; }
.btn-secondary { background: var(--grey); color: #fff; }
.btn-secondary:hover { background: #5c5e5d; }
.btn-ghost { background: #fff; color: var(--grey); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1f2f3; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.error { background: #fdecea; border: 1px solid #f5c6cb; color: #a12a2a; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; margin-bottom: 12px; }
.notice { background: #fffbea; border: 1px solid #f3e3a3; color: #6b5c00; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; margin-bottom: 12px; overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--grey); font-weight: 600; background: #fbfbfc; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-actief { background: #e6f6ec; color: #1c7a44; }
.tag-uitgenodigd { background: #fff4d6; color: #8a6d00; }
.tag-concept { background: #eef1f4; color: #5b6470; }
.tag-in_review { background: #fff4d6; color: #8a6d00; }
.tag-vastgesteld { background: #e6f6ec; color: #1c7a44; }
.tag-actueel { background: var(--yellow); color: var(--grey); margin-left: 6px; }
.brand .logo-img { height: 48px; display: block; }

.muted { color: #9aa0a0; }
.right { text-align: right; }
.flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- toevoegingen 2026-11: rollen, twee sites, mobiel ---- */
.tag-inactief { background: #fdecea; color: #a12a2a; }
.tag-groen { background: #e6f6ec; color: #1c7a44; }
.tag-oranje { background: #fff4d6; color: #8a6d00; }
.tag-rood { background: #fdecea; color: #a12a2a; }
.tag-grijs { background: #eef1f4; color: #5b6470; }
.nav-switch { color: #000; }
.notice-link input { margin: 6px 0 4px; font-size: 12.5px; }
.notice-link small { display: block; }
.fielderror { color: #a12a2a; font-size: 12.5px; margin: 3px 0 6px; font-weight: 600; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: #d9534f; background: #fff8f8; }
.inline-form { display: inline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label, label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); margin: 6px 0; }
.choice { display: block; width: 100%; text-align: left; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; border: 1px solid var(--line); }
.brandlogo { max-width: 220px; max-height: 60px; object-fit: contain; display: block; margin: 6px 0; background: #fff; border: 1px solid var(--line); padding: 4px; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
    .topbar { padding: 10px 16px; flex-wrap: wrap; }
    .brand .logo-img { height: 36px; }
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 11px; }
    .nav-toggle span { display: block; height: 2px; background: var(--grey); border-radius: 2px; }
    .topbar nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
    .topbar nav.open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-link { padding: 12px 14px; }
    .container { padding: 18px 16px 48px; }
    .grid2, .row2 { grid-template-columns: 1fr; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    h1 { font-size: 22px; }
}
