:root {
    --bg: #f4f5fa;
    --surface: #ffffff;
    --surface-2: #f6f7fb;
    --surface-3: #eceef5;
    --border: #e5e7f0;
    --border-strong: #d3d7e3;
    --text: #0f1324;
    --muted: #6a7089;
    --accent: #5b4cf0;
    --accent-soft: #efedfe;
    --accent-ring: rgba(91, 76, 240, .18);
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #c050e8 100%);
    --ok: #0b9467;
    --ok-soft: #e2f7ee;
    --bad: #e11d48;
    --bad-soft: #ffe9ee;
    --warn: #b96300;
    --warn-soft: #fff2db;
    --side-bg: #0d1020;
    --side-text: #9ca2c0;
    --side-hover: rgba(255, 255, 255, .06);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 19, 36, .04), 0 6px 20px -8px rgba(15, 19, 36, .10);
    --shadow-lg: 0 28px 64px -16px rgba(15, 19, 36, .30), 0 2px 6px rgba(15, 19, 36, .06);
    --topbar-bg: rgba(244, 245, 250, .78);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0c16;
        --surface: #121526;
        --surface-2: #171a2e;
        --surface-3: #1f2339;
        --border: #242842;
        --border-strong: #323857;
        --text: #e9ebf7;
        --muted: #9097b6;
        --accent: #9b8cff;
        --accent-soft: #252347;
        --accent-ring: rgba(155, 140, 255, .25);
        --ok: #3dd6a0;
        --ok-soft: #10302a;
        --bad: #ff7a93;
        --bad-soft: #3a1623;
        --warn: #fbbf4a;
        --warn-soft: #352912;
        --side-bg: #070912;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-lg: 0 28px 64px -12px rgba(0, 0, 0, .7);
        --topbar-bg: rgba(10, 12, 22, .75);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.6rem; margin: 0; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; font-weight: 650; letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
small, .sub { font-size: .82em; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.hint { color: var(--muted); font-size: .84rem; margin: .6rem 0; }
.empty { color: var(--muted); text-align: center; padding: 2rem !important; }
::selection { background: var(--accent-ring); }

/* ---------- opstart en aanmelden ---------- */
.boot, .center-screen {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 16px; text-align: center;
    background:
        radial-gradient(600px 400px at 15% 10%, rgba(99, 102, 241, .22), transparent 70%),
        radial-gradient(500px 400px at 85% 90%, rgba(192, 80, 232, .18), transparent 70%),
        var(--bg);
}
.loading-progress { width: 5rem; height: 5rem; }
.loading-progress circle { fill: none; stroke: var(--surface-3); stroke-width: .5rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: #7c5cf5; stroke-linecap: round; stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { color: var(--muted); font-weight: 500; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Laden"); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.login {
    width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: .8rem; text-align: left; padding: 2.25rem;
    box-shadow: var(--shadow-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px);
}
.login h1 { font-size: 1.6rem; margin-top: .4rem; }
.btn.btn-google { height: 44px; background: #fff; color: #1f1f1f; border-color: #dadce0; box-shadow: none; }
.btn.btn-google:hover:not(:disabled) { background: #f7f8f8; }

.logo {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -.03em;
    box-shadow: 0 6px 16px -4px rgba(124, 92, 245, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.logo.lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; }

.spinner { width: 28px; height: 28px; margin: 2.5rem auto; border: 3px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- knoppen en invoer ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    height: 36px; padding: 0 .95rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 19, 36, .05); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, filter .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -6px rgba(110, 80, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover:not(:disabled) { background: var(--grad); border-color: transparent; filter: brightness(1.08) saturate(1.1); box-shadow: 0 10px 24px -6px rgba(110, 80, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); }
.btn-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.btn-ok:hover:not(:disabled) { background: var(--ok-soft); border-color: var(--ok); }
.btn-link { border: 0; background: none; color: var(--accent); padding: 0 .4rem; box-shadow: none; }
.btn-link:hover:not(:disabled) { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn-block { width: 100%; height: 44px; }
.btn-sm { height: 30px; padding: 0 .7rem; font-size: .84rem; border-radius: 8px; }
.icon-btn { display: inline-grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .25rem .4rem; border-radius: 8px; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

input, select, textarea {
    font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    height: 38px; padding: 0 .75rem; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
select {
    appearance: none; padding-right: 2rem; cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .55rem center / 16px;
}
textarea { height: auto; padding: .6rem .75rem; resize: vertical; line-height: 1.5; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
input:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus) { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
input[type=checkbox]:focus { box-shadow: none; }
input:disabled, select:disabled, textarea:disabled { background-color: var(--surface-2); color: var(--muted); border-color: var(--border); cursor: default; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.w-sm { width: 84px; }
.w-md { width: 124px; }

.form { display: grid; gap: 1rem; }
.form-2 { grid-template-columns: 1fr 1fr; }
.form label, .form .label { display: flex; flex-direction: column; gap: .35rem; }
.form label > span, .label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.form .wide { grid-column: 1 / -1; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: .55rem; cursor: pointer; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.norms { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.norms label { gap: .15rem; text-align: center; }
.switch { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); white-space: nowrap; cursor: pointer; }

.alert { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .6rem 0; font-weight: 500; }
.alert-info { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }

/* ---------- schil: zijbalk en bovenbalk ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1rem; padding: 18px 14px;
    background: var(--side-bg); color: var(--side-text); z-index: 30;
    background-image: radial-gradient(300px 220px at 0% 0%, rgba(124, 92, 245, .22), transparent 70%);
}
.brand { display: flex; align-items: center; gap: .65rem; padding: 4px 6px 10px; color: #fff; font-weight: 750; font-size: 1.02rem; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5d6386; padding: 1rem .75rem .4rem; }
.nav-label:first-child { padding-top: .25rem; }
.sidebar nav a {
    position: relative; display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 10px;
    color: var(--side-text); font-weight: 550; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s;
}
.sidebar nav a:hover { background: var(--side-hover); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(124, 92, 245, .28), rgba(124, 92, 245, .08)); color: #fff; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.sidebar svg, .topbar svg, .user svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a.active svg { color: #b9a8ff; }
.user { display: flex; align-items: center; gap: .65rem; padding: .7rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.user-name { color: #fff; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mail { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .icon-btn { color: var(--side-text); }
.user .icon-btn:hover { background: var(--side-hover); color: #fff; }
.avatar {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .02em;
}
.avatar.sm { width: 28px; height: 28px; font-size: .68rem; }
.scrim { display: none; }

/* ---------- administratie: altijd zichtbaar, in de eigen kleur ---------- */
.shell .sidebar { box-shadow: inset 4px 0 0 var(--adm); }
.shell .topbar { box-shadow: inset 0 4px 0 var(--adm); }
.adm { position: relative; }
.adm-current, .adm-choice {
    display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .6rem; border-radius: 12px; font: inherit; text-align: left; cursor: pointer;
}
.adm-current { border: 1px solid color-mix(in srgb, var(--adm) 55%, transparent); background: color-mix(in srgb, var(--adm) 22%, transparent); color: #fff; }
.adm-current:hover:not(:disabled) { background: color-mix(in srgb, var(--adm) 32%, transparent); }
.adm-current:disabled { cursor: default; opacity: 1; }
.adm-current svg { margin-left: auto; }
.adm-mark {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
    background: var(--adm); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: -.02em;
}
.adm-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.adm-text strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-text small { font-size: .7rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-current .adm-text small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
/* Lange namen over twee regels in de zijbalk, niet afgekapt. */
.adm-current .adm-text strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.adm-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; gap: 4px; padding: 6px;
    border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.adm-menu .hint { margin: .3rem .4rem .2rem; font-size: .72rem; }
.adm-choice { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.adm-choice:hover { border-color: var(--adm); background: color-mix(in srgb, var(--adm) 8%, var(--surface)); }
.adm-choices { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0 .6rem; }
.adm-chip {
    display: inline-flex; align-items: center; gap: .4rem; max-width: 16rem; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: .8rem; font-weight: 700; color: var(--adm); background: color-mix(in srgb, var(--adm) 12%, transparent); border: 1px solid color-mix(in srgb, var(--adm) 35%, transparent);
}
.adm-chip::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--adm); }
.color-pick { display: flex; flex-wrap: wrap; gap: .45rem; padding-top: .35rem; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); background: var(--adm); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--adm); }
.modal-head h2 { flex: 1; }
.modal-head .adm-chip { margin-right: .6rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
    height: 64px; padding: 0 32px; background: var(--topbar-bg); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border);
}
.today { color: var(--muted); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.today::first-letter { text-transform: uppercase; }
.menu-toggle { display: none; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }

.content { padding: 28px 32px 56px; width: 100%; max-width: 1440px; margin: 0 auto; animation: rise .25s ease-out; }
.toolbar { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar input[type=search] { width: 260px; }

.tabs {
    display: flex; gap: 2px; width: fit-content; max-width: 100%; padding: 4px; margin-bottom: 1rem; overflow-x: auto;
    background: var(--surface-3); border-radius: 12px;
}
.tab {
    border: 0; background: none; padding: .45rem .95rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
    border-radius: 9px; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 19, 36, .12); }
.audit { font-size: .8rem; margin: -.6rem 0 1rem; }

/* ---------- tabellen ---------- */
.table-wrap, .grid-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    background: var(--surface-2); padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--border); border-bottom: 0; background: var(--surface-2); font-weight: 600; }
.table.clickable tbody tr { cursor: pointer; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table.clickable tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table tr.selected { background: var(--accent-soft) !important; }
.table tr.inactive { opacity: .5; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.num-l, .num { font-variant-numeric: tabular-nums; }
span.num { color: var(--muted); font-size: .85em; }
.table .desc { max-width: 320px; }
.edit-table td { vertical-align: middle; padding: .45rem .6rem; }
.card .table { border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: .8rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--surface-3); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-goedgekeurd { background: var(--ok-soft); color: var(--ok); }
.badge-afgekeurd { background: var(--bad-soft); color: var(--bad); }
.badge-status-open { background: var(--ok-soft); color: var(--ok); }
.badge-status-offerte { background: var(--warn-soft); color: var(--warn); }
.badge-status-gesloten, .badge-status-gereed { background: var(--surface-3); color: var(--muted); }
.tag { font-size: .72rem; font-weight: 650; padding: .1rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.dot { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font-size: .68rem; font-weight: 800; }

/* ---------- weekscherm ---------- */
.week-nav { display: flex; gap: .35rem; align-items: center; }
.date-pick { width: 156px; }
.week-title { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.week-title .muted { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.emp-pick { width: 230px; }
.week-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.week-total { font-size: 1.05rem; }

.week-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.week-grid th, .week-grid td { border-bottom: 1px solid var(--border); padding: .45rem .45rem; }
.week-grid thead th { background: var(--surface-2); font-size: .78rem; color: var(--muted); font-weight: 650; position: relative; padding-top: .7rem; padding-bottom: .7rem; }
.week-grid .col-proj { width: 34%; text-align: left; padding-left: .9rem; }
.week-grid .col-day { text-align: center; }
.week-grid .col-total { width: 76px; text-align: right; font-variant-numeric: tabular-nums; padding-right: .9rem; }
.week-grid thead .is-today { color: var(--accent); }
.week-grid thead .is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.week-grid .weekend { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.week-grid thead th.weekend { background: var(--surface-3); }
.week-grid .cell { text-align: center; font-variant-numeric: tabular-nums; }
.week-grid tfoot td { background: var(--surface-2); font-weight: 650; border-bottom: 0; padding-top: .65rem; padding-bottom: .65rem; }
.proj-row td { background: var(--surface); }
.proj-row .col-proj { padding-top: .7rem; font-weight: 600; }
.proj-sum { color: var(--muted); font-size: .9em; }
.phase-row .indent { padding-left: 3.1rem; display: inline-block; color: var(--muted); }
.week-grid .add { visibility: hidden; border: 1px dashed var(--border-strong); background: none; color: var(--muted); border-radius: 7px; width: 28px; height: 24px; cursor: pointer; line-height: 1; transition: color .15s, border-color .15s, background .15s; }
.week-grid tr:hover .add, .week-grid thead th:hover .add, .week-grid .add:focus { visibility: visible; }
.week-grid thead .add { visibility: visible; border: 0; margin-left: .2rem; }
.week-grid .add:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.star { border: 0; background: none; cursor: pointer; color: var(--border-strong); font-size: 1rem; padding: 0 .2rem; transition: color .15s, transform .15s; }
.star:hover { transform: scale(1.15); }
.star.on { color: #f5a524; }

.chip {
    display: inline-block; min-width: 50px; margin: 1px; padding: .2rem .45rem; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; background: var(--accent-soft); color: var(--accent);
    transition: border-color .15s, transform .1s, box-shadow .15s;
}
.chip:hover { border-color: var(--accent); box-shadow: 0 4px 12px -4px var(--accent-ring); transform: translateY(-1px); }
.chip-goedgekeurd { background: var(--ok-soft); color: var(--ok); }
.chip-goedgekeurd:hover { border-color: var(--ok); }
.chip-afgekeurd { background: var(--bad-soft); color: var(--bad); }
.chip-afgekeurd:hover { border-color: var(--bad); }
.chip-nb { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(127, 127, 127, .14) 5px 7px); }

.day-badge { display: inline-block; min-width: 52px; padding: .12rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 600; }
.day-badge.ok { background: var(--ok-soft); color: var(--ok); }
.day-badge.short { background: var(--bad-soft); color: var(--bad); }
.day-badge.neutral { background: var(--surface); }
.day-badge.none { color: var(--muted); }
.legend { margin-top: 1rem; font-size: .8rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; color: var(--muted); }
.legend .chip { min-width: 0; cursor: default; margin-left: .6rem; }
.legend .chip:hover { transform: none; box-shadow: none; }

.day-view { display: none; }
.day-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: .9rem; }
.day-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: .5rem 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.day-tab.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.day-tab .day-badge { min-width: 0; padding: 0 .3rem; font-size: .7rem; }
.day-item { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; padding: .85rem 1rem; margin-bottom: .5rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow); }


/* ---------- agenda in het weekscherm (BE-06) ---------- */
.agenda-row td { background: var(--accent-soft); vertical-align: top; }
.agenda-cell { padding: .3rem !important; }
.agenda-item { display: block; width: 100%; text-align: left; margin: 0 0 .25rem; padding: .25rem .4rem; border: 1px dashed var(--accent); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .76rem; line-height: 1.25; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9.5rem; }
.agenda-item:hover { border-style: solid; }
.agenda-item.booked { border: 1px solid var(--border); color: var(--muted); text-decoration: line-through; opacity: .75; }
.agenda-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
.agenda-item.booked .agenda-time { color: var(--muted); }
.agenda-day { max-width: none; white-space: normal; padding: .6rem .8rem; font-size: .9rem; display: flex; gap: .5rem; align-items: baseline; }
.agenda-day small { margin-left: auto; }
/* ---------- uren controleren ---------- */
.filters { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.quick { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.filter-row label { display: flex; flex-direction: column; gap: .3rem; min-width: 150px; }
.filter-row label > span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.bulk { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; padding: .55rem .7rem; border-radius: 12px; background: var(--accent-soft); }
.bulk > span { color: var(--accent); font-weight: 600; margin-right: .4rem; }
.euro { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 700; transition: all .15s; }
.euro.on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.euro:disabled { cursor: default; opacity: .6; }

/* ---------- zoeken ---------- */
.gsearch { position: relative; width: 420px; flex-shrink: 1; min-width: 140px; }
.gsearch input {
    height: 40px; padding-left: 2.4rem; border-color: var(--border); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .8rem center / 17px;
}
.gsearch input:focus { background-color: var(--surface); }
.gsearch input::-webkit-search-cancel-button { cursor: pointer; }
.gsearch-panel {
    position: absolute; left: 0; top: calc(100% + 8px); width: min(520px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; z-index: 30;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: rise .15s ease-out;
}
.gsearch-group { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .65rem .7rem .3rem; }
.gsearch-hit, .gsearch-all {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left;
    border: 0; background: none; color: var(--text); font: inherit; padding: .5rem .7rem; border-radius: 9px; cursor: pointer;
}
.gsearch-hit.active { background: var(--accent-soft); }
.gsearch-hit.active .gsearch-title { color: var(--accent); }
.gsearch-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gsearch-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gsearch-all { flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 6px; padding-top: .65rem; color: var(--accent); font-weight: 600; }
.gsearch-all:hover { background: var(--surface-2); }
.gsearch-empty { padding: .8rem .7rem; color: var(--muted); }
kbd { font: 600 .7rem/1 Inter, ui-monospace, monospace; padding: .2rem .4rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--surface); }
.count { display: inline-block; min-width: 20px; padding: 0 .4rem; margin-left: .3rem; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }

/* ---------- notities en activiteit ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.section-title { margin-top: 0; }
.narrow { max-width: 680px; }
.contact-links { display: flex; gap: .45rem; }
.note-new { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.note-actions { display: flex; align-items: center; gap: .45rem; }
.note-list, .feed { list-style: none; margin: 0; padding: 0; }
.note { padding: .9rem 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .4rem; animation: rise .2s ease-out; }
.note-head { display: flex; align-items: center; gap: .55rem; font-size: .88rem; min-width: 0; }
.note-head > b { white-space: nowrap; }
.note-head > .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.note-head .btn-link { padding: 0 .3rem; height: 24px; flex-shrink: 0; }
@media (hover: hover) {
    .note-head .btn-link { opacity: 0; transition: opacity .15s; }
    .note:hover .note-head .btn-link, .note-head .btn-link:focus-visible { opacity: 1; }
}
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc(28px + .55rem); }
.btn-link.danger { color: var(--bad); }
.feed-day { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .6rem; }
.feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem 0; }
.feed-item { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: .75rem 1.1rem; transition: background .12s; }
.feed-item:hover { background: var(--surface-2); }
.feed-item:not(:last-child)::after { content: ""; position: absolute; left: calc(1.1rem + 13px); top: calc(.75rem + 32px); bottom: -.75rem; width: 2px; background: var(--border); }
.feed-body { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 3px; }
.feed-body .tag { margin: 0 .25rem; }
.feed-detail { color: var(--muted); font-size: .84rem; margin-top: .3rem; padding: .4rem .6rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.feed-time { font-size: .78rem; font-variant-numeric: tabular-nums; padding-top: 5px; }
.w-filter { width: 190px; }

/* ---------- dialoog ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 20, .5); backdrop-filter: blur(4px); z-index: 40; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.modal {
    position: fixed; z-index: 41; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out;
}
.modal.modal-lg { width: min(780px, calc(100vw - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-body { padding: 1.2rem 1.4rem; overflow-y: auto; }
.modal-foot { display: flex; gap: .55rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 20px 20px; }

.combo { position: relative; }
.combo-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 5px; list-style: none; max-height: 290px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.combo-list li { display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; }
.combo-list li:hover { background: var(--accent-soft); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 38px; padding: 0 .25rem 0 .75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 500; }
.copy { margin-top: 1.1rem; border-top: 1px solid var(--border); padding-top: .85rem; }
.copy summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.copy-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.copy-row input { width: 164px; }

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px);
    background: rgba(15, 19, 36, .92); color: #fff; backdrop-filter: blur(10px); padding: .75rem 1.15rem; border-radius: 12px;
    font-weight: 500; box-shadow: var(--shadow-lg); animation: toast .25s ease-out;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.toast-error { background: var(--bad); }

#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; color: #222; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- smaller scherm en telefoon (MO-01) ---------- */
@media (max-width: 1100px) {
    .today { display: none; }
}

@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease-out; box-shadow: var(--shadow-lg); }
    .nav-open .sidebar { transform: none; }
    .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(8, 10, 20, .5); backdrop-filter: blur(2px); animation: fade .15s ease-out; }
    .menu-toggle { display: inline-grid; }
    .topbar { padding: 0 16px; gap: .7rem; }
    .gsearch { flex: 1; width: auto; }
    .topbar .adm-chip { max-width: 9rem; }
    .content { padding: 20px 16px 40px; }
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    h1 { font-size: 1.35rem; }
    .w-filter { flex: 1; }
    .grid-wrap { display: none; }
    .day-view { display: block; }
    .week-head .switch { display: none; }
    .form-2, .row3 { grid-template-columns: 1fr; }
    .toolbar input[type=search], .emp-pick, .date-pick { width: 100%; }
    .filter-row label { min-width: calc(50% - .35rem); flex: 1; }
    .card { padding: 1rem; }
    .login { padding: 1.75rem; }
}

/* ---------- facturen ---------- */
.ind { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 2px; border-radius: 6px; font-size: .68rem; font-weight: 700; background: var(--surface-3); color: var(--muted); opacity: .55; }
.ind.on { background: var(--ok-soft); color: var(--ok); opacity: 1; }
.invoice-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.invoice-lines .group-row td { background: var(--surface-2); font-weight: 650; padding-top: .55rem; padding-bottom: .55rem; }
.invoice-lines tfoot td { background: var(--surface); border-top: 0; font-weight: 500; padding-top: .35rem; padding-bottom: .35rem; }
.invoice-lines tfoot tr:first-child td { border-top: 1px solid var(--border); padding-top: .7rem; }
.invoice-lines tfoot .grand td { font-size: 1.1rem; font-weight: 750; padding-bottom: .8rem; }
.num-input { text-align: right; }
.spec { margin-top: 1.5rem; }
.spec summary { cursor: pointer; font-weight: 650; margin-bottom: .75rem; }
.logo-pick { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.logo-pick img { max-height: 56px; max-width: 220px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.logo-pick input[type=file] { height: auto; padding: .45rem; }
@media (max-width: 900px) { .invoice-head { grid-template-columns: 1fr; } }
.list-filters { margin-bottom: 1rem; align-items: flex-end; }
.list-filters label:first-child { flex: 1; min-width: 220px; }
.invoice-lines td:first-child { min-width: 240px; }
.proposal-project { min-width: 220px; }

/* ---------- onkosten en factuurschema ---------- */
.form-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .money-row, .money-row { display: grid; grid-template-columns: 5rem 1fr auto 1fr auto 1fr; align-items: center; gap: .5rem; }
.money-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.money-row .op { color: var(--muted); }
.section-head { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .6rem; }
.section-head h3 { margin: 0; flex: 1; }
.entry-expenses { margin-top: 1rem; border-top: 1px solid var(--border); }
.entry-expenses .section-head { margin-top: .9rem; }
.table.compact td, .table.compact th { padding: .4rem .55rem; }
.schedule-line { padding: .9rem 1rem; margin-bottom: .75rem; }
.schedule-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.schedule-head .muted { font-size: .82rem; }
.invoice-lines .kind { font-weight: 600; }
@media (max-width: 900px) { .form-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .money-row { grid-template-columns: 1fr 1fr 1fr; } .money-row .op { display: none; } .money-label { grid-column: 1 / -1; } }

/* ---------- pdf-viewer: de ingebouwde viewer van de browser in een groot venster ---------- */
.modal.modal-pdf { width: min(1100px, calc(100vw - 24px)); height: calc(100vh - 32px); }
.modal.modal-pdf .modal-body { padding: 0; flex: 1; overflow: hidden; display: flex; }
.pdf-frame { width: 100%; height: 100%; border: 0; background: var(--surface-2); }
@media (max-width: 760px) { .modal.modal-pdf { height: calc(100vh - 16px); } }

/* ---------- factuur verzenden ---------- */
.send-panel { display: flex; align-items: flex-end; gap: .6rem; padding: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.send-panel label { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 240px; }
.send-panel label > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.sends { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .3rem; font-size: .86rem; }
.sends li { display: flex; gap: .55rem; flex-wrap: wrap; color: var(--muted); }
.sends li > span:first-child { color: var(--ok, #16a34a); font-weight: 700; }
.sends li.failed > span:first-child, .bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }

/* ---------- verlof en tijd voor tijd ---------- */
.inline-label { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.align-end { display: flex; align-items: flex-end; }
.hours-input { width: 6.5rem; text-align: right; }
.note-input { width: 100%; min-width: 9rem; }
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: .5rem; }
.balance { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: var(--surface-2); }
.balance-label { display: block; font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.balance-value { display: block; font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; margin: .2rem 0 .6rem; }
.balance dl { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; margin: 0; font-size: .86rem; }
.balance dt { color: var(--muted); }
.balance dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.absence-row td { background: var(--surface-2); }
.absence-row a { color: inherit; text-decoration: none; }
.chip.absence { text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.chip.absence.chip-open { border-style: dashed; }
a.day-item { color: inherit; text-decoration: none; }

/* ---------- rapportages ---------- */
.reports { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.report-list { display: flex; flex-direction: column; gap: .1rem; position: sticky; top: 5rem; }
.report-list .nav-label { color: var(--muted); padding-left: .6rem; }
.report-link { text-align: left; background: none; border: 0; padding: .45rem .6rem; border-radius: 8px; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.report-link:hover { background: var(--surface-3); }
.report-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.report-head { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .8rem; }
.report-head h2 { margin: 0; }
.report-head p { margin: .2rem 0 0; }
.report-table tr.clickable { cursor: pointer; }
.report-table tr.report-heading td { font-weight: 700; background: var(--surface-2); }
@media (max-width: 900px) {
    .reports { grid-template-columns: 1fr; }
    .report-list { position: static; flex-direction: row; flex-wrap: wrap; gap: .3rem; }
    .report-list .nav-label { width: 100%; padding: .5rem 0 0; }
    .report-link { border: 1px solid var(--border); background: var(--surface); }
}

/* ---------- labels ---------- */
.label-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .5rem; margin: .1rem .25rem .1rem 0; border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap;
    background: color-mix(in srgb, var(--lbl) 14%, var(--surface)); color: color-mix(in srgb, var(--lbl) 82%, var(--text)); border: 1px solid color-mix(in srgb, var(--lbl) 30%, transparent); }
.label-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 .1rem; font-size: .7rem; opacity: .7; }
.label-chip button:hover { opacity: 1; }
.label-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-height: 34px; }
.label-picker .label-add { width: auto; min-width: 7rem; padding-top: .2rem; padding-bottom: .2rem; font-size: .82rem; }
.label-filter { width: auto; }
.label-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--lbl); vertical-align: middle; }

/* ---------- bijlagen ---------- */
.attachments { display: flex; flex-direction: column; gap: .35rem; }
.att-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: .3rem .6rem; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.att-row.pending { border-style: dashed; background: var(--surface-2); grid-template-columns: auto minmax(0, 1fr) auto auto; }
.att-type { font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: .2rem .35rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); min-width: 2.6rem; text-align: center; }
.att-name { border: 0; background: none; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
button.att-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.att-meta { font-size: .78rem; white-space: nowrap; }
.att-empty { margin: .2rem 0; }
.icon-btn.confirm { color: var(--bad); font-size: .78rem; font-weight: 650; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop.busy { cursor: progress; opacity: .7; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop small { font-size: .74rem; }
.att-image { flex: 1; display: grid; place-items: center; overflow: auto; background: var(--surface-2); }
.att-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.att-head { margin: 1.1rem 0 .5rem; font-size: .95rem; }

/* ---------- contactmomenten ---------- */
.moment-form { margin-bottom: 1rem; padding: 1rem 1.1rem; background: var(--surface-2); }
.moment-form .note-actions { margin-top: .8rem; }
.form .span-2 { grid-column: span 2; }
.new-contact { display: flex; flex-direction: column; gap: .4rem; padding: .8rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.new-contact .hint { margin: 0; }
.moment .note-head > a { white-space: nowrap; font-weight: 600; }
.moment-kind { flex-shrink: 0; }
.section-title.notes-title { margin-top: 1.6rem; }
.moment .note-text { padding-left: 0; }
@media (max-width: 640px) { .form .span-2 { grid-column: 1 / -1; } }
.form h3.section-title:not(:first-child) { margin-top: .9rem; }
.form .private-head + .hint { margin-top: -.4rem; }
.contact-links { flex-wrap: wrap; }
.att-clip { color: var(--muted); font-size: .8rem; white-space: nowrap; }
@media (max-width: 640px) {
    .att-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .att-meta { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
}

@media print {
    .sidebar, .topbar, .no-print, .toast, .scrim { display: none !important; }
    .shell, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
    body { background: #fff !important; color: #000 !important; }
    .reports { display: block; }
    .card { box-shadow: none !important; border: 0 !important; }
    .table-wrap { overflow: visible !important; }
}
