/* PUUR! Portaal — glass UI in PUUR! huisstijl */
:root {
    --purple: #56415E;
    --purple-700: #45334c;
    --purple-900: #2c1f31;
    --purple-400: #7a5b86;
    --purple-100: #eee8f1;
    --purple-50: #f7f4f8;
    --green: #98BF46;
    --green-700: #6d8f2b;
    --green-100: #eef5dd;
    --ink: #231a27;
    --ink-2: #4a3f4f;
    --muted: #7d7282;
    --line: rgba(86, 65, 94, .12);
    --glass: rgba(255, 255, 255, .62);
    --glass-strong: rgba(255, 255, 255, .82);
    --glass-border: rgba(255, 255, 255, .75);
    --shadow: 0 10px 30px -12px rgba(44, 31, 49, .22), 0 2px 6px -2px rgba(44, 31, 49, .08);
    --shadow-lg: 0 30px 60px -20px rgba(44, 31, 49, .35);
    --danger: #dc2626;
    --danger-bg: #fdecec;
    --warning: #d97706;
    --warning-bg: #fff4e0;
    --info: #2563eb;
    --info-bg: #e8f0fe;
    --success: #4d7c0f;
    --success-bg: #eef5dd;
    --radius: 20px;
    --radius-sm: 12px;
    --font-head: 'Cambay', system-ui, sans-serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: #efeaf1;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none !important; }

/* Achtergrond met zachte kleurvlekken */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(135deg, #f4f0f6 0%, #ebe4ef 45%, #eef3e4 100%); }
.bg-scene .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg-scene .b1 { width: 620px; height: 620px; background: #b89cc4; top: -180px; left: -120px; }
.bg-scene .b2 { width: 520px; height: 520px; background: #c9e08f; bottom: -200px; right: -100px; opacity: .5; }
.bg-scene .b3 { width: 380px; height: 380px; background: #8e6f9b; top: 40%; left: 45%; opacity: .25; }
.bg-scene .b4 { width: 300px; height: 300px; background: #98BF46; top: 10%; right: 20%; opacity: .18; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple-900); margin: 0; line-height: 1.15; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-700); }
p { margin: 0; }

/* Glass */
.glass {
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.glass-strong { background: var(--glass-strong); }
.glass-dark {
    background: linear-gradient(145deg, rgba(86, 65, 94, .92), rgba(44, 31, 49, .9));
    backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.glass-dark h1, .glass-dark h2, .glass-dark h3 { color: #fff; }

/* App shell */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.sidebar-inner { height: 100%; display: flex; flex-direction: column; padding: 18px 12px; border-radius: 24px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 10px 18px; }
.brand img { width: 100%; height: auto; max-width: 200px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; transition: all .15s; }
.nav a:hover { background: rgba(255, 255, 255, .7); color: var(--purple); }
.nav a.active { background: var(--purple); color: #fff; box-shadow: 0 8px 18px -8px rgba(86, 65, 94, .7); }
.nav a .ico { width: 18px; height: 18px; flex: none; }
.nav a .count { margin-left: auto; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.nav a.active .count { background: rgba(255, 255, 255, .25); }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .55); }
.sidebar-user .meta { flex: 1; min-width: 0; }
.sidebar-user .meta b { display: block; font-size: 13px; }
.sidebar-user .meta span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { padding: 22px 28px 60px 8px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.topbar .crumbs { color: var(--muted); font-size: 13px; }
.topbar .crumbs a { color: var(--muted); }
.search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.search input { width: 100%; padding: 11px 16px 11px 40px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .7); backdrop-filter: blur(12px); font: inherit; outline: none; }
.search input:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px rgba(86, 65, 94, .1); }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; padding: 6px; max-height: 360px; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.search-results a:hover, .search-results a.hl { background: var(--purple-100); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 6px; }

/* Grid helpers */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 600; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 16px; }
.pad { padding: 20px 22px; }
.pad-s { padding: 14px 16px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-head h3 { display: flex; align-items: center; gap: 9px; }
.card-head h3 .ico { width: 18px; color: var(--purple-400); }
.card-body { padding: 16px 22px 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s; white-space: nowrap; background: rgba(255, 255, 255, .75); color: var(--purple); border-color: var(--line); }
.btn:hover { background: #fff; box-shadow: var(--shadow); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 8px 18px -8px rgba(86, 65, 94, .6); }
.btn-primary:hover { background: var(--purple-700); color: #fff; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 8px 18px -8px rgba(152, 191, 70, .8); }
.btn-green:hover { background: var(--green-700); color: #fff; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #f7c9c9; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .6); box-shadow: none; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-xs { padding: 3px 8px; font-size: 11.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
    width: 100%; font: inherit; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .8); color: var(--ink); outline: none; transition: all .15s;
}
.input:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px rgba(86, 65, 94, .1); background: #fff; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; }
.check input { accent-color: var(--purple); width: 16px; height: 16px; }

/* Segmented / tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .5); border: 1px solid var(--glass-border); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tabs button .ico { width: 15px; }
.tabs button.on { background: #fff; color: var(--purple); box-shadow: 0 4px 12px -6px rgba(44, 31, 49, .3); }
.tabs button .badge { font-size: 10.5px; }

/* Chips & badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--purple-100); color: var(--purple); white-space: nowrap; line-height: 1.4; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-100); color: var(--green-700); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.orange { background: var(--warning-bg); color: var(--warning); }
.badge.blue { background: var(--info-bg); color: var(--info); }
.badge.gray { background: #eceaee; color: #6b6470; }
.badge.outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.prod-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: #fff; white-space: nowrap; letter-spacing: .01em; }

/* Avatar */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex: none; position: relative; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.avatar .away { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--warning); border: 2px solid #fff; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; }
.client-mark { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; flex: none; background: linear-gradient(135deg, var(--purple-400), var(--purple)); }
.client-mark.ez { background: linear-gradient(135deg, #b5d46f, var(--green-700)); }
.client-mark.vof { background: linear-gradient(135deg, #f0b35a, #c2410c); }
.client-mark.np { background: linear-gradient(135deg, #7dd3fc, #0e7490); }
.client-mark.lg { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }

/* Tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { position: relative; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .2s, box-shadow .2s; color: var(--ink); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tile .tile-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--purple); box-shadow: 0 10px 20px -10px var(--purple); }
.tile .tile-ico .ico { width: 22px; height: 22px; }
.tile h3 { margin-top: 16px; }
.tile p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.tile .tile-stat { position: absolute; top: 18px; right: 18px; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--purple-900); opacity: .85; }
.tile::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; bottom: -60px; background: var(--tile-accent, var(--purple)); opacity: .08; }

/* Hero */
.hero { padding: 26px 28px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/img/kantoor.webp') center/cover; opacity: .16; mix-blend-mode: luminosity; }
.hero > * { position: relative; }
.hero .stat { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.hero .stat-label { font-size: 12px; opacity: .75; }

/* Lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); transition: all .15s; }
.task:hover { background: #fff; box-shadow: var(--shadow); }
.task + .task { margin-top: 8px; }
.task.overdue { border-left: 3px solid var(--danger); }
.task .task-main { flex: 1; min-width: 0; }
.task .task-title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task .task-sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Tables */
.table-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: rgba(250, 248, 251, .92); backdrop-filter: blur(8px); z-index: 1; }
.tbl th.sortable { cursor: pointer; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, .55); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr:last-child td { border-bottom: 0; }

/* Alerts / reminders */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid; }
.alert .ico { width: 20px; flex: none; margin-top: 1px; }
.alert.danger { background: rgba(253, 236, 236, .85); border-color: #f5c2c2; color: #7f1d1d; }
.alert.warning { background: rgba(255, 244, 224, .85); border-color: #f7d9a8; color: #7c4a03; }
.alert.info { background: rgba(232, 240, 254, .85); border-color: #c5d7fb; color: #1e3a8a; }
.alert.success { background: rgba(238, 245, 221, .85); border-color: #d2e5a8; color: #3f6212; }
.alert b { display: block; margin-bottom: 2px; }
.alert .actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Progress */
.progress { height: 6px; border-radius: 99px; background: rgba(86, 65, 94, .1); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--purple-400), var(--green)); }
.steps { display: flex; gap: 3px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: rgba(86, 65, 94, .12); }
.steps span.on { background: var(--purple-400); }
.steps span.done { background: var(--green); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(44, 31, 49, .35); backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 620px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(24px); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid #fff; animation: pop .18s ease-out; }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 6px; }
.modal-body { padding: 14px 24px 8px; }
.modal-foot { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(44, 31, 49, .25); backdrop-filter: blur(3px); z-index: 90; animation: fade .15s; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); z-index: 91; overflow: auto; background: rgba(255, 255, 255, .9); backdrop-filter: blur(24px); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid #fff; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* Toasts */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--purple-900); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; display: flex; gap: 10px; align-items: center; animation: pop .2s; max-width: 420px; }
.toast.error { background: #991b1b; }
.toast .ico { width: 18px; }

/* Timeline */
.composer { padding: 16px 18px; }
.composer textarea { border: 0; background: transparent; box-shadow: none; padding: 6px 2px; min-height: 70px; font-size: 14.5px; }
.composer textarea:focus { box-shadow: none; background: transparent; }
.composer-types { display: flex; gap: 4px; flex-wrap: wrap; }
.composer-types button { border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.composer-types button .ico { width: 14px; }
.composer-types button.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.dropzone { border: 1.5px dashed rgba(86, 65, 94, .3); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; cursor: pointer; background: rgba(255, 255, 255, .4); }
.dropzone.over { border-color: var(--green); background: var(--green-100); }
.suggest { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(152, 191, 70, .16), rgba(86, 65, 94, .08)); border: 1px solid rgba(152, 191, 70, .45); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--purple-100), rgba(86, 65, 94, .05)); }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-dot { position: absolute; left: -30px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .8); }
.tl-dot .ico { width: 14px; height: 14px; }
.tl-card { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); }
.tl-card.pinned { border-color: rgba(152, 191, 70, .6); background: linear-gradient(135deg, rgba(238, 245, 221, .9), rgba(255, 255, 255, .8)); }
.tl-card.status { background: transparent; border: 0; padding: 6px 4px; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head b { font-size: 13.5px; }
.tl-meta { font-size: 11.5px; color: var(--muted); }
.tl-body { margin-top: 6px; white-space: pre-line; color: var(--ink-2); line-height: 1.55; font-size: 13.5px; }
.tl-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mail-head { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.attachment { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 9px; background: var(--purple-50); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.attachment .ico { width: 14px; }

/* AI summary */
.ai-card { position: relative; overflow: hidden; }
.ai-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(152, 191, 70, .25), transparent 45%), radial-gradient(circle at 100% 100%, rgba(122, 91, 134, .3), transparent 50%); pointer-events: none; }
.ai-card > * { position: relative; }
.ai-headline { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.ai-bullets { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ai-bullets li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; font-size: 13.5px; }
.ai-bullets li .ico { width: 16px; flex: none; margin-top: 2px; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); }
.ai-tag .ico { width: 13px; }

/* Product status blocks on client card */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.prod-card { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); cursor: pointer; transition: all .15s; }
.prod-card:hover { background: #fff; box-shadow: var(--shadow); }
.prod-card .title { font-weight: 700; font-size: 13px; }
.prod-card .when { font-size: 11.5px; color: var(--muted); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .38); border: 1px solid rgba(255, 255, 255, .7); min-height: 300px; transition: background .15s; }
.kcol.drop { background: rgba(152, 191, 70, .18); border-color: var(--green); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 700; font-size: 13px; }
.kcard { padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; margin-bottom: 8px; cursor: grab; box-shadow: 0 3px 10px -6px rgba(44, 31, 49, .25); transition: transform .12s; }
.kcard:hover { transform: translateY(-1px); }
.kcard.late { border-left: 3px solid var(--danger); }

/* Week planner */
.week-grid { display: grid; grid-template-columns: 200px repeat(5, minmax(0, 1fr)); gap: 6px; }
.week-grid .wh { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; }
.week-grid .wh.today { color: var(--purple); }
.load-bar { height: 8px; border-radius: 99px; background: rgba(86, 65, 94, .1); overflow: hidden; }
.load-bar > span { display: block; height: 100%; border-radius: 99px; }
.person-row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.person-row:last-child { border-bottom: 0; }
.mini-task { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 10px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(86, 65, 94, .1); font-size: 12px; margin: 0 6px 6px 0; cursor: pointer; }
.mini-task:hover { border-color: var(--purple-400); }
.mini-task.late { border-color: #f5c2c2; background: #fff6f6; }

/* Month timeline (gantt-lite) */
.gantt { display: grid; grid-template-columns: 240px repeat(12, minmax(46px, 1fr)); font-size: 12px; }
.gantt .gh { padding: 8px 4px; text-align: center; font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.gantt .gh.now { color: var(--purple); background: rgba(86, 65, 94, .06); border-radius: 8px 8px 0 0; }
.gantt .gl { padding: 7px 8px; border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt .gc { border-bottom: 1px solid var(--line); position: relative; }
.gantt .gc.now { background: rgba(86, 65, 94, .06); }
.gbar { position: absolute; top: 6px; bottom: 6px; border-radius: 7px; color: #fff; font-size: 10.5px; font-weight: 700; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; cursor: pointer; }

/* Matrix */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.cap { display: inline-flex; gap: 3px; }
.cap button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); font: inherit; font-size: 10.5px; font-weight: 800; color: #b9b1bd; cursor: pointer; padding: 0; }
.cap button.on.p { background: var(--green); border-color: var(--green); color: #fff; }
.cap button.on.r { background: var(--info); border-color: var(--info); color: #fff; }
.cap button.on.t { background: var(--purple); border-color: var(--purple); color: #fff; }
.cap button:disabled { cursor: default; }

/* Toggle */
.toggle { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d9d3dc; border: 0; cursor: pointer; transition: background .15s; flex: none; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(16px); }
.toggle:disabled { opacity: .5; cursor: not-allowed; }

/* KPI */
.kpi { padding: 16px 18px; }
.kpi .v { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--purple-900); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .d { font-size: 12px; font-weight: 700; }
.up { color: var(--green-700); }
.down { color: var(--danger); }

/* Bars chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar-pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .bar { width: 42%; max-width: 18px; border-radius: 5px 5px 2px 2px; transition: height .4s; }
.bars .bar.cur { background: linear-gradient(180deg, var(--purple-400), var(--purple)); }
.bars .bar.prev { background: rgba(152, 191, 70, .55); }
.bars .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; }

.checkgrid { display: grid; grid-template-columns: 110px repeat(9, 1fr); gap: 4px; font-size: 11.5px; align-items: center; }
.checkgrid .h { text-align: center; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 10.5px; }
.checkgrid .c { height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.checkgrid .c.ok { background: var(--green-100); color: var(--green-700); }
.checkgrid .c.no { background: var(--danger-bg); color: var(--danger); }
.checkgrid .c.busy { background: var(--warning-bg); color: var(--warning); }
.checkgrid .c .ico { width: 13px; }

.logo-exact { height: 18px; }
.fg-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #e1141d; font-size: 13px; }
.fg-logo .fgmark { width: 22px; height: 22px; border-radius: 6px; background: #e1141d; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; }
.fg-logo span.name { color: var(--ink); font-weight: 700; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--purple-100); margin-bottom: 8px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-weight: 500; }

.lock-note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: rgba(86, 65, 94, .05); }
.lock-note .ico { width: 14px; }

.status-opts { display: grid; gap: 6px; }
.status-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); cursor: pointer; text-align: left; font: inherit; width: 100%; }
.status-opt:hover:not(:disabled) { border-color: var(--purple-400); background: #fff; }
.status-opt.current { border-color: var(--purple); background: var(--purple-50); }
.status-opt:disabled { cursor: not-allowed; opacity: .75; background: rgba(245, 243, 246, .6); }
.status-opt .reason { font-size: 11.5px; color: var(--danger); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.status-opt .reason .ico { width: 12px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-visual { position: relative; margin: 18px; border-radius: 28px; overflow: hidden; background: url('/img/kantoor.webp') center/cover; display: flex; align-items: flex-end; }
.login-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44, 31, 49, .05) 20%, rgba(44, 31, 49, .85)); }
.login-visual .inner { position: relative; z-index: 1; padding: 40px; color: #fff; }
.login-visual h1 { color: #fff; font-size: 40px; max-width: 520px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card { width: 100%; max-width: 460px; padding: 32px; }
.quick-users { display: grid; gap: 6px; max-height: 330px; overflow: auto; padding-right: 4px; }
.quick-user { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); cursor: pointer; text-align: left; font: inherit; transition: all .15s; width: 100%; }
.quick-user:hover { background: #fff; border-color: var(--purple-400); transform: translateX(3px); }
.quick-user .role { font-size: 11.5px; color: var(--muted); }

.ico { display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1200px) {
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .main { padding: 16px; }
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-visual { min-height: 220px; }
    .person-row { grid-template-columns: 1fr; }
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.avatar:has(img) { background: #ddd !important; }
.dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); align-items: start; }
@media (max-width: 1150px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid > .stack { position: static !important; } }
.bignum { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--purple-900); }
.search > .ico, .search .search > .ico { z-index: 2; pointer-events: none; }

/* Toegangspoort (DOS + Matrix) */
.gate { position: fixed; inset: 0; z-index: 500; background: #000; color: #33ff66; font-family: 'VT323', 'Courier New', monospace; font-size: 24px; line-height: 1.25; cursor: text; transition: opacity .9s ease; }
.gate::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px); }
.gate canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.gate.raining canvas { opacity: 1; }
.gate.raining .gate-screen { opacity: 0; transition: opacity .5s; }
.gate.dissolve { opacity: 0; }
.gate-screen { position: relative; padding: 40px 48px; text-shadow: 0 0 6px rgba(51, 255, 102, .6); max-width: 900px; }
.gate-screen pre { font: inherit; margin: 0; white-space: pre-wrap; }
.gate-prompt { margin-top: 4px; }
.gate-cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gate-msg { margin-top: 14px; min-height: 30px; }
.gate-msg.err { color: #ff5555; text-shadow: 0 0 6px rgba(255, 85, 85, .6); }
.gate-msg.ok { color: #eaffea; }
.gate-btn { margin-top: 10px; font: inherit; color: #000; background: #33ff66; border: 0; padding: 2px 14px; cursor: pointer; }
.gate-btn:hover { background: #eaffea; }
.gate input { position: absolute; opacity: 0; width: 1px; height: 1px; left: -100px; }
.gate-screen.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.login-wrap { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1), filter 1s ease; }
.login-wrap.locked { opacity: 0; transform: scale(.92); filter: blur(12px); }

/* AI-geletterdheidstest */
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: 14.5px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75); cursor: pointer; transition: all .15s; color: var(--ink); }
.quiz-opt:hover:not(:disabled) { border-color: var(--purple-400); background: #fff; transform: translateX(3px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt .ico { width: 20px; height: 20px; }
.quiz-letter { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--purple-100); color: var(--purple); }
.quiz-opt.right { border-color: var(--green); background: var(--green-100); color: var(--green-700); font-weight: 600; }
.quiz-opt.right .quiz-letter { background: var(--green); color: #fff; }
.quiz-opt.wrong { border-color: #f5c2c2; background: var(--danger-bg); color: var(--danger); }
.quiz-opt.wrong .quiz-letter { background: var(--danger); color: #fff; }
.quiz-opt.dim { opacity: .55; }
.quiz-score { font-family: var(--font-head); font-size: 72px; font-weight: 700; line-height: 1; }
.quiz-score small { font-size: 28px; opacity: .5; }
.quiz-score.ok { color: var(--green-700); }
.quiz-score.bad { color: var(--danger); }

/* Tabelkop volgt de afgeronde hoeken van de glass-kaart */
.glass > .table-wrap:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.glass > .tbl { border-radius: var(--radius); overflow: hidden; }
.glass > .table-wrap:first-child .tbl thead th:first-child, .glass > .tbl thead th:first-child { border-top-left-radius: var(--radius); }
.glass > .table-wrap:first-child .tbl thead th:last-child, .glass > .tbl thead th:last-child { border-top-right-radius: var(--radius); }
.tbl th { background: rgba(250, 248, 251, .75); }
