/* =====================================================================
   Emyris BackOffice – applicatie-stijl
   Kleuren: Emyris-palet (rood #DF2449 / #B31C38 / #6E0019, leisteen #D9DFE3 / #657782 / #434F59)
   ===================================================================== */

:root {
    --brand: #DF2449;
    --brand-600: #B31C38;
    --brand-900: #6E0019;
    --brand-50: #fdf0f2;
    --slate-900: #172026;
    --slate-800: #1f2b33;
    --slate-700: #434F59;
    --slate-600: #425159;
    --slate-500: #657782;
    --slate-300: #b7c2c9;
    --slate-200: #D9DFE3;
    --slate-100: #eef1f3;
    --slate-50: #F3F5F7;
    --white: #ffffff;
    --text: #1d262c;
    --text-muted: #657782;
    --success: #1f8a4c;
    --success-50: #e9f6ee;
    --warning: #b26b00;
    --warning-50: #fff6e5;
    --danger: #c42b2b;
    --danger-50: #fdecec;
    --info: #1f6fb2;
    --info-50: #e9f2fb;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 32, .06);
    --shadow: 0 1px 3px rgba(16, 24, 32, .08), 0 4px 12px rgba(16, 24, 32, .05);
    --sidebar-w: 264px;
    --sidebar-w-collapsed: 64px;
    --topbar-h: 60px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.text-warning { color: var(--warning); }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.page-loading {
    display: grid; place-items: center; min-height: 40vh; color: var(--text-muted);
}

/* DevExpress primaire knoppen in huisstijl (Fluent-thema) */
.dxbl-btn.dxbl-btn-primary {
    --dxbl-btn-bg: var(--brand);
    --dxbl-btn-border-color: var(--brand);
    --dxbl-btn-hover-bg: var(--brand-600);
    --dxbl-btn-hover-border-color: var(--brand-600);
    --dxbl-btn-active-bg: var(--brand-600);
}
.dxbl-btn .icon { margin-right: 2px; }
.dxbl-btn > span + span, .dxbl-btn .icon + span { margin-left: 6px; }

/* =====================================================================
   App-shell
   ===================================================================== */

.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
    transition: grid-template-columns .2s ease;
}
.app--collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }

/* ---------- Sidebar */
.sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    background: var(--slate-900);
    color: #c9d3d9;
    overflow: hidden;
    border-right: 1px solid #0d1418;
}

.sidebar__brand {
    display: flex; align-items: center; gap: 12px;
    height: var(--topbar-h); padding: 0 16px;
    color: var(--white); text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex: none;
}
.sidebar__brand img {
    width: 34px; height: 34px; object-fit: contain;
    background: var(--white); border-radius: 8px; padding: 3px;
}
.sidebar__brand-mark {
    width: 34px; height: 34px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    background: var(--brand); color: var(--white); font-weight: 700;
}
.sidebar__brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sidebar__brand-text strong { font-size: 15px; }
.sidebar__brand-text small {
    color: #8fa0aa; font-size: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar__search {
    margin: 12px 12px 4px;
    display: flex; align-items: center; gap: 8px;
    padding: 0 10px; height: 36px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    color: #8fa0aa;
}
.sidebar__search input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: var(--white); font: inherit;
}
.sidebar__search input::placeholder { color: #7d8e98; }
.sidebar__search:focus-within { border-color: rgba(255, 255, 255, .25); }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 8px 16px; scrollbar-width: thin; scrollbar-color: #33434d transparent; }
.sidebar__empty { padding: 12px; color: #7d8e98; }

.navgroup { margin-bottom: 2px; }
.navgroup__head {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px;
    background: none; border: 0; border-radius: 8px;
    color: #c9d3d9; font: inherit; font-weight: 500; text-align: left;
    cursor: pointer;
}
.navgroup__head:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.navgroup__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navgroup__chev { transition: transform .15s ease; opacity: .6; }
.navgroup--open .navgroup__chev { transform: rotate(180deg); }
.navgroup--open > .navgroup__head { color: var(--white); }

.navgroup__items { padding: 2px 0 6px 18px; position: relative; }
.navgroup__items::before {
    content: ""; position: absolute; left: 19px; top: 2px; bottom: 8px;
    width: 1px; background: rgba(255, 255, 255, .08);
}

.navitem {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px 7px 14px;
    margin-left: 2px;
    border-radius: 7px;
    color: #a9b6be; text-decoration: none !important;
    white-space: nowrap; overflow: hidden;
}
.navitem span:not(.navitem__todo) { overflow: hidden; text-overflow: ellipsis; }
.navitem .icon { opacity: .75; }
.navitem:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.navitem.active {
    background: rgba(200, 32, 63, .16);
    color: var(--white); font-weight: 500;
}
.navitem.active::before {
    content: ""; position: absolute; left: -2px; top: 7px; bottom: 7px;
    width: 3px; border-radius: 3px; background: var(--brand);
}
.navitem.active .icon { opacity: 1; color: #ff8aa0; }
.navitem__todo {
    margin-left: auto; width: 6px; height: 6px; border-radius: 50%;
    background: #55666f; flex: none;
}

.sidebar__footer {
    padding: 10px 16px; font-size: 11px; color: #61737d;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Ingeklapt */
.app--collapsed .sidebar__brand-text,
.app--collapsed .sidebar__search,
.app--collapsed .navgroup__title,
.app--collapsed .navgroup__chev,
.app--collapsed .navgroup__items,
.app--collapsed .sidebar__footer { display: none; }
.app--collapsed .sidebar__brand { justify-content: center; padding: 0; }
.app--collapsed .navgroup__head { justify-content: center; padding: 10px 0; }

/* ---------- Main + topbar */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 20;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px 0 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--slate-200);
}
.app--test .topbar { background: #fff8d6; border-bottom-color: #f0d36b; }
.topbar__spacer { flex: 1; }
.topbar__event { display: flex; align-items: center; gap: 8px; }
.topbar__event label { font-size: 12px; color: var(--text-muted); }
.topbar__event-combo { width: 240px; }

.iconbtn {
    width: 36px; height: 36px; border-radius: 8px;
    display: grid; place-items: center;
    background: none; border: 0; color: var(--slate-600); cursor: pointer;
}
.iconbtn:hover { background: var(--slate-100); color: var(--text); text-decoration: none; }

.badge {
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 999px;
}
.badge--warning { background: #ffe58a; color: #6b4b00; }
.badge--info { background: var(--info-50); color: var(--info); }

.usermenu { position: relative; }
.usermenu__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px 4px 4px; border-radius: 999px;
    background: none; border: 1px solid transparent; cursor: pointer; font: inherit; color: var(--text);
}
.usermenu__btn:hover { background: var(--slate-100); }
.usermenu__name { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.usermenu__name small { color: var(--text-muted); font-size: 12px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--slate-600); color: var(--white);
    font-size: 12px; font-weight: 600;
}
.usermenu__backdrop { position: fixed; inset: 0; z-index: 30; }
.usermenu__panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 31;
    min-width: 220px; padding: 6px;
    background: var(--white); border: 1px solid var(--slate-200);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.usermenu__panel form { margin: 0; }
.usermenu__item {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 7px;
    background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.usermenu__item:hover { background: var(--slate-100); text-decoration: none; }
.usermenu__item--danger { color: var(--danger); }

.content { flex: 1; min-width: 0; }

/* =====================================================================
   Pagina's
   ===================================================================== */

.page { padding: 24px 28px 40px; max-width: 1280px; }
.page--full { max-width: none; }
.page--narrow { max-width: 560px; }
.page--edit { max-width: 1320px; padding-top: 0; }

.page__header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 18px;
}
.page__subtitle { margin: 4px 0 0; color: var(--text-muted); }
.page__actions { display: flex; gap: 8px; }

.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.card--spaced { margin-top: 16px; }
.card__header {
    display: flex; align-items: center; gap: 10px;
    margin: -4px 0 14px;
}
.card__header h3 { flex: 1; }
.card__header-actions { display: flex; gap: 6px; }
.card__body { display: block; }
.card__footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.card__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hint { color: var(--text-muted); font-size: 12px; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; }
.alert--error { background: var(--danger-50); color: var(--danger); border: 1px solid #f5c6c6; }
.alert--success { background: var(--success-50); color: var(--success); border: 1px solid #bfe3cd; }
.alert--warning { background: #fff8e6; color: #8a5a00; border: 1px solid #f3dca4; }

.notice {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 24px; padding: 14px 16px;
    background: var(--info-50); color: #194d78;
    border: 1px solid #cfe2f4; border-radius: var(--radius);
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile {
    display: flex; gap: 14px; align-items: center;
    padding: 18px; background: var(--white);
    border: 1px solid var(--slate-200); border-radius: var(--radius);
    color: var(--text); text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--slate-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile__icon {
    width: 44px; height: 44px; border-radius: 10px; flex: none;
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand);
}
.tile__body { display: flex; flex-direction: column; gap: 2px; }
.tile__body small { color: var(--text-muted); }

.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 64px 24px; color: var(--text-muted);
}
.empty-state h1, .empty-state h3 { color: var(--text); }
.empty-state code { font-size: 12px; background: var(--slate-100); padding: 2px 8px; border-radius: 4px; }
.empty-state--inline { padding: 48px 24px; }

.error-card { margin: 32px; padding: 24px; background: var(--white); border: 1px solid #f5c6c6; border-radius: var(--radius); }

.pill {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500;
    background: var(--slate-100); color: var(--slate-600);
}
.pill--muted { margin-left: 8px; font-size: 11px; }
.pill--danger { background: var(--danger-50); color: var(--danger); }

/* ---------- Lijstschermen */
.filterbar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    padding: 14px 16px; margin-bottom: 12px;
    background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
}
.filterbar--compact { padding: 10px 14px; }
.filterbar__item { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.filterbar__item label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.filterbar__item > .segmented { align-self: flex-start; }
.filterbar__item--grow { flex: 1; min-width: 220px; }
.filterbar__actions { display: flex; gap: 6px; margin-left: auto; }

.gridcard {
    background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
    overflow: hidden;
}
.datagrid { border: 0 !important; }
.datagrid--compact { min-height: 160px; }
.row-inactive td { color: #8a979f !important; }
.cell-strong { font-weight: 400; }

/* ---------- Bewerkschermen */
.editbar {
    position: sticky; top: var(--topbar-h); z-index: 10;
    display: flex; align-items: center; gap: 14px;
    margin: 0 -28px 16px; padding: 16px 28px;
    background: rgba(246, 248, 249, .95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--slate-200);
}
.editbar__back {
    width: 36px; height: 36px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--slate-200); background: var(--white); color: var(--slate-600);
}
.editbar__back:hover { text-decoration: none; background: var(--slate-100); }
.editbar__title { flex: 1; min-width: 0; }
.editbar__title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editbar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.editbar__actions { display: flex; gap: 8px; }

.edittabs { background: transparent; }
.tabbody { padding: 18px 0 8px; }

.form .form-group {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.required::after { content: " *"; color: var(--brand); }

.inline-fields { display: flex; align-items: center; gap: 8px; width: 100%; }
.inline-fields .grow { flex: 1; min-width: 0; }
.w-postcode { width: 110px; flex: none; }
.w-houseno { width: 90px; flex: none; }
.w-time { width: 120px; flex: none; }
.w-prefix { width: 140px; flex: none; }
.w-amount { max-width: 200px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }

.logo-editor { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-editor__preview {
    width: 220px; height: 110px; flex: none;
    display: grid; place-items: center;
    border: 1px dashed var(--slate-300); border-radius: var(--radius-sm);
    background:
        linear-gradient(45deg, var(--slate-50) 25%, transparent 25%, transparent 75%, var(--slate-50) 75%),
        linear-gradient(45deg, var(--slate-50) 25%, transparent 25%, transparent 75%, var(--slate-50) 75%);
    background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.logo-editor__preview img { max-width: 210px; max-height: 100px; }
.logo-editor__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.filebtn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--slate-300); background: var(--white);
    cursor: pointer; font-weight: 500;
}
.filebtn:hover { background: var(--slate-50); }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.qr { display: flex; align-items: center; gap: 16px; }
.qr img { width: 120px; height: 120px; image-rendering: pixelated; border: 1px solid var(--slate-200); border-radius: 6px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

.dual-list { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.dual-list__buttons { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dual-list__box { height: 340px; width: 100%; }

.confirm__body { padding: 4px 0; line-height: 1.5; }

/* ---------- Toasts */
.toasts {
    position: fixed; right: 20px; bottom: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    min-width: 260px; max-width: 420px;
    padding: 12px 12px 12px 16px;
    border-radius: var(--radius);
    background: var(--slate-800); color: var(--white);
    box-shadow: 0 8px 24px rgba(16, 24, 32, .2);
    animation: toast-in .18s ease-out;
}
.toast span { flex: 1; }
.toast--success { border-left: 4px solid #3ccf7a; }
.toast--info { border-left: 4px solid #5aa9ec; }
.toast--warning { border-left: 4px solid #f2b13c; }
.toast--error { border-left: 4px solid #ff6b6b; }
.toast__close { background: none; border: 0; color: #9fb0ba; cursor: pointer; padding: 4px; display: grid; }
.toast__close:hover { color: var(--white); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Inloggen
   ===================================================================== */

.auth {
    min-height: 100vh;
    display: grid; grid-template-columns: minmax(380px, 520px) 1fr;
    background: var(--white);
}
.auth__panel {
    position: relative;
    display: flex; flex-direction: column;
    padding: 40px clamp(24px, 6vw, 72px) 32px;
}
.auth__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.auth__brand { display: flex; align-items: center; gap: 14px; }
.auth__brand img { width: 52px; height: 52px; }
.auth__brand span { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.auth__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.auth__eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, #F7A21B, var(--brand)); }
.auth__badge {
    align-self: flex-start; margin-bottom: 12px;
    padding: 4px 10px; border-radius: 999px;
    background: #ffe58a; color: #6b4b00; font-size: 12px; font-weight: 600;
}
.auth__title { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.auth__title span { background: linear-gradient(90deg, #F26B21, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__subtitle { margin: 14px 0 36px; color: var(--text-muted); font-size: 16px; }
.auth__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth__note i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31, 138, 76, .15); }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth__alert {
    margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--danger-50); color: var(--danger); border: 1px solid #f5c6c6;
}
.auth__info {
    margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--info-50); color: #194d78; border: 1px solid #cfe2f4;
}
.auth__hint { margin: -6px 0 0; font-size: 12px; color: var(--text-muted); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 500; font-size: 13px; }
.auth .field input {
    height: 42px; padding: 0 12px;
    font: inherit; font-size: 15px; color: var(--text);
    border: 1px solid var(--slate-300); border-radius: 8px;
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.auth .field input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 32, 63, .15); }
.field .validation-message { color: var(--danger); font-size: 12px; }
.otp-input { letter-spacing: .5em; font-size: 22px !important; text-align: center; }

.auth__submit {
    height: 44px; margin-top: 4px;
    border: 0; border-radius: 8px;
    background: var(--brand); color: var(--white);
    font: inherit; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: background .15s;
}
.auth__submit:hover { background: var(--brand-600); }
.auth__submit--link { display: grid; place-items: center; text-decoration: none !important; }
.auth__link { align-self: center; font-size: 13px; }
.auth__divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--text-muted); font-size: 12px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; border-top: 1px solid var(--slate-200); }
.auth__ms {
    display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px;
    border-radius: 12px; background: linear-gradient(90deg, #F26B21, var(--brand)); color: #fff !important;
    font-weight: 600; font-size: 15px; text-decoration: none !important;
    box-shadow: 0 12px 24px -12px rgba(223, 36, 73, .7); transition: transform .15s, box-shadow .15s;
}
.auth__ms:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(223, 36, 73, .8); }
.auth__ms svg { width: 24px; height: 24px; padding: 3px; border-radius: 4px; background: #fff; }
.ms-tenants { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-section .form-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.auth__footer { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12px; }
.auth__footer a { color: var(--text-muted); }

.auth__visual {
    position: relative; overflow: hidden; margin: 16px 16px 16px 0; border-radius: 28px; color: #fff;
    background:
        radial-gradient(700px 500px at 18% 12%, rgba(255, 214, 120, .85), transparent 60%),
        radial-gradient(800px 600px at 95% 95%, rgba(120, 10, 40, .75), transparent 60%),
        linear-gradient(135deg, #F7A21B 0%, #F26B21 32%, #E8423A 58%, #DF2449 78%, #A8173A 100%);
}
.auth__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 22px 22px; mix-blend-mode: soft-light; }
.auth__stripes { position: absolute; right: -140px; top: -180px; width: 860px; height: 1300px; transform: rotate(-24deg); display: flex; gap: 28px; }
.auth__stripes i { display: block; width: 118px; height: 100%; border-radius: 60px; }
.auth__stripes i:nth-child(1) { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 236, 190, .38) 45%, rgba(255, 255, 255, 0)); }
.auth__stripes i:nth-child(2) { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .26) 52%, rgba(255, 255, 255, 0)); }
.auth__stripes i:nth-child(3) { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 210, 220, .22) 58%, rgba(255, 255, 255, 0)); }
.auth__stripes i:nth-child(4) { background: linear-gradient(180deg, rgba(31, 43, 51, 0), rgba(31, 43, 51, .28) 62%, rgba(31, 43, 51, 0)); }
.auth__glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; right: 8%; top: 10%; background: radial-gradient(circle, rgba(255, 236, 190, .35), transparent 68%); filter: blur(10px); }
.auth__veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(110, 0, 25, .45) 0%, transparent 45%); }
.auth__claim {
    position: absolute; left: clamp(32px, 5vw, 64px); bottom: clamp(32px, 5vw, 64px); max-width: 620px;
    font-size: clamp(40px, 4.2vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em;
    text-shadow: 0 6px 30px rgba(110, 0, 25, .35);
}
.auth__claim span { border-bottom: 6px solid rgba(255, 214, 120, .9); padding-bottom: 2px; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1100px) {
    .usermenu__name { display: none; }
    .topbar__event-combo { width: 180px; }
}

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth__visual { display: none; }
    .app, .app--collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
    .app:not(.app--collapsed) .sidebar {
        position: fixed; z-index: 50; width: var(--sidebar-w);
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }
    .page { padding: 16px; }
    .editbar { margin: 0 -16px 12px; padding: 12px 16px; flex-wrap: wrap; }
    .dual-list { grid-template-columns: 1fr; }
    .dual-list__buttons { flex-direction: row; }
    .topbar__event label { display: none; }
}

/* ------------------------------------------------------------ Lijsten, dialogen en tabbladen onder records */
.datalist { margin-bottom: 14px; }
.datalist__title { display: flex; align-items: baseline; gap: 8px; margin-right: 8px; }
.datalist__title h3 { margin: 0; font-size: 15px; font-weight: 600; }
.filter-select { min-width: 200px; }
.filterbar .dxbl-checkbox { align-self: center; }
.w-80 { width: 80px !important; flex: none; }
.w-120 { width: 120px !important; flex: none; }
.w-150 { width: 150px !important; flex: none; }
.w-180 { width: 180px !important; flex: none; }
.w-320 { width: 320px !important; max-width: 100%; flex: none; }
.w-search { width: 260px !important; flex: none !important; }
.grow { flex: 1; }
.pad { padding: 16px; }
.inline-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.field-hint { display: block; margin-top: 4px; }
.readonly-value { padding: 6px 0; }

.record-dialog .dxbl-modal-body { padding-top: 8px; }
.dialog-tabs { margin-top: -4px; }
.dialog-tabbody { padding: 14px 2px 4px; }
.dialog-tabbody .filterbar { background: var(--slate-50); }

.dual-list--wide { margin-top: 4px; }
.dual-list h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.dual-list .datalist { margin-bottom: 0; }

.upload-button {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--slate-300); background: var(--white);
    cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.upload-button:hover { background: var(--slate-50); }
.upload-button.is-busy { opacity: .6; cursor: progress; }
.upload-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 96px;
  padding: 14px; border: 2px dashed var(--slate-300); border-radius: var(--radius-sm); background: var(--slate-50); color: var(--slate-600); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; }
.upload-drop:hover { border-color: var(--slate-500); }
.upload-drop.is-over { border-color: var(--brand); background: var(--brand-50); color: var(--brand-900); }
.upload-drop.is-busy { opacity: .6; cursor: progress; }
.upload-drop.is-disabled { opacity: .5; cursor: not-allowed; }
.upload-drop__text { font-weight: 500; font-size: 13px; }
.upload-drop__hint { font-size: 12px; color: var(--text-muted); }
.upload-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border: 1px solid var(--slate-200); border-radius: 999px; background: var(--slate-50);
    font: inherit; font-size: 13px; cursor: pointer;
}
.chip:hover { background: var(--brand-50); border-color: var(--brand); }
.message-meta { display: grid; gap: 2px; font-size: 13px; margin-bottom: 8px; }
.message-body { width: 100%; height: 55vh; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: #fff; }
.report-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) {
    .report-layout, .dual-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Medewerker */
.section-title { margin: 8px 0 10px; font-size: 15px; font-weight: 600; }
.text-success { color: var(--success); }
.cols--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.employee-general { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.employee-general__form { display: grid; gap: 4px; }
.employee-general__side { position: sticky; top: 12px; }
.profile-photo { display: grid; gap: 10px; justify-items: center; }
.profile-photo img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 1px solid var(--slate-200); }
.profile-photo__empty { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-100); color: var(--slate-500); }
.profile-photo__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
@media (max-width: 1100px) { .employee-general { grid-template-columns: 1fr; } .employee-general__side { position: static; } }
.actionbar { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.simple-table th, .simple-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--slate-200); }
.simple-table th { color: var(--text-muted); font-weight: 600; }
.nomargin { margin: 0; }
.w-80 { width: 80px; }
.filterbar__item--checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }

/* ------------------------------------------------------------ Locatieplanning */
.segmented { display: inline-flex; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button { border: 0; background: var(--white); padding: 6px 14px; font: inherit; font-weight: 500; cursor: pointer; color: var(--slate-700); }
.segmented button + button { border-left: 1px solid var(--slate-300); }
.segmented button { white-space: nowrap; }
.segmented button.is-active { background: var(--slate-800); color: #fff; }
.lp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.lp-scroll { overflow: auto; max-height: calc(100vh - 280px); background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.lp-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; table-layout: fixed; }
.lp-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--slate-700); color: #fff; font-weight: 400; padding: 8px 6px; text-align: center; min-width: 140px; }
.lp-grid .lp-rowhead { position: sticky; left: 0; z-index: 1; background: var(--slate-700); color: #fff; width: 120px; min-width: 120px; text-align: left; padding: 4px 8px; font-weight: 400; white-space: nowrap; }
.lp-grid thead .lp-rowhead { z-index: 3; }
.lp-grid td { border-bottom: 1px solid var(--slate-100); border-right: 1px solid var(--slate-100); height: 46px; padding: 3px 6px; vertical-align: top; cursor: pointer; overflow: hidden; }
.lp-grid tr.lp-weekstart td, .lp-grid tr.lp-weekstart th { border-top: 2px solid var(--slate-800); }
.lp-grid tr.lp-today .lp-rowhead { background: var(--brand); }
.lp-empty:hover { background: var(--slate-50); }
.lp-empty.is-selected { background: var(--brand-50); outline: 2px solid var(--brand); outline-offset: -2px; }
.lp-event { background: #dbe7f3; color: var(--text); }
.lp-event.lp-cont { border-top-color: transparent; }
.lp-event.is-selected { outline: 2px solid var(--slate-900); outline-offset: -2px; }
.lp-event.lp-catering { box-shadow: inset 6px 0 0 #DB2448; }
.lp-event.lp-podium { box-shadow: inset -6px 0 0 #81007F; }
.lp-event.lp-catering.lp-podium { box-shadow: inset 6px 0 0 #DB2448, inset -6px 0 0 #81007F; }
.lp-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.lp-holiday { color: #ffd54d; font-style: italic; font-size: 11px; }
.lp-side { position: sticky; top: 12px; }
.lp-details dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 8px; margin: 0 0 10px; font-size: 13px; }
.lp-details dt { color: var(--text-muted); }
.lp-details dd { margin: 0; }
.lp-details h4 { margin: 12px 0 6px; font-size: 13px; }
.lp-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed var(--slate-200); }
@media (max-width: 1100px) { .lp-layout { grid-template-columns: 1fr; } .lp-side { position: static; } }

/* =====================================================================
   Strakkere bewerkschermen – hiërarchie met het Emyris-palet
   - sectiekoppen: klein, kapitaal, leisteen-donker met rode accentstreep
   - veldlabels: leisteen-midden, waarden: donker
   - tabbladen: rode onderstreping op het actieve tabblad
   ===================================================================== */

/* Gedeelde sectiekop (formuliergroepen, kaarten, lijsttitels) */
.form .form-group .fg-header,
.card__header h3,
.datalist__title h3 {
    position: relative;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--slate-700) !important;
}
.form .form-group .fg-header {
    background: var(--slate-50) !important;
    border-bottom: 1px solid var(--slate-200) !important;
    padding: 10px 16px 10px 20px !important;
    border-radius: var(--radius) var(--radius) 0 0;
    min-height: 0 !important;
}
.form .form-group .fg-header::before,
.card__header h3::before,
.datalist__title h3::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 3px; height: 14px; margin-top: -7px; border-radius: 2px;
    background: var(--brand);
}
.form .form-group .fg-header::before { left: 10px; }
.card__header h3, .datalist__title h3 { padding-left: 11px; }

.form .form-group {
    overflow: hidden;
    border-color: var(--slate-200);
    box-shadow: 0 1px 2px rgba(67, 79, 89, .06);
}

/* Veldlabels gedempt, waarden donker */
.fl-cap, .form .dxbl-fl-cpt, .field-label {
    color: var(--slate-500) !important;
    font-size: 13px;
}
.field-label { display: block; margin-bottom: 4px; font-weight: 500; }
.required::after { content: " *"; color: var(--brand); font-weight: 700; }
.readonly-value { color: var(--slate-700); font-weight: 500; }

/* Kaarten: zelfde opbouw als formuliergroepen */
.card { border-color: var(--slate-200); box-shadow: 0 1px 2px rgba(67, 79, 89, .06); }
.card__header {
    margin: -20px -20px 16px; padding: 10px 20px;
    background: var(--slate-50); border-bottom: 1px solid var(--slate-200);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Kopbalk van een record */
.editbar { background: rgba(255, 255, 255, .96); }
.editbar__title h1 { color: var(--slate-700); }
.editbar__meta { gap: 6px; }
.meta-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 999px;
    background: var(--slate-100); color: var(--slate-700);
    font-size: 12px; font-weight: 500;
}
.meta-chip .icon { color: var(--slate-500); }
.meta-chip--id { background: var(--slate-700); color: #fff; letter-spacing: .02em; }
.editbar__meta > .muted { margin-left: 4px; font-size: 12px; }

/* Tabbladen: rustig leisteen, actief = rood onderstreept */
.edittabs [role=tab] { color: var(--slate-500) !important; font-weight: 500; }
.edittabs [role=tab]:hover { color: var(--slate-700) !important; }
.edittabs [role=tab][aria-selected=true] {
    color: var(--slate-700) !important; font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--brand);
}
.edittabs [role=tablist] { border-bottom: 1px solid var(--slate-200); }

/* Lijst met titel/werkbalk: één kaart (balk + grid aan elkaar) */
.datalist--joined .filterbar {
    margin-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom-color: var(--slate-200);
    background: var(--white);
}
.datalist--joined .gridcard { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.dialog-tabbody .datalist--joined .filterbar { background: var(--slate-50); }
.count-pill {
    display: inline-grid; place-items: center;
    min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px;
    background: var(--slate-100); color: var(--slate-700);
    font-size: 11px; font-weight: 700;
}

/* Gridkop: leisteen-licht, kleine kapitalen */
.datagrid .grid-hdr {
    background: var(--slate-50) !important;
    color: var(--slate-700) !important;
    font-size: 12px; font-weight: 600 !important;
    text-transform: uppercase; letter-spacing: .04em;
}
.datagrid tr.dxbl-grid-selected-row td,
.datagrid .dxbl-grid-selected-row > td { background: var(--brand-50) !important; }

/* Regel 'Toevoegen  [n] × [rol]' in een lijstbalk */
.addline {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 4px 6px 4px 12px; border-radius: var(--radius-sm);
    background: var(--slate-50); border: 1px solid var(--slate-200);
}
.addline__label { font-size: 12px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; }
.addline__x { color: var(--slate-500); font-weight: 600; }
.addline__role { width: 280px; flex: none; }
.addline .w-80 { width: 72px; flex: none; }

/* Primaire knop: palet-rood, hover donkerder */
.dxbl-btn.dxbl-btn-primary {
    --dxbl-btn-bg: var(--brand);
    --dxbl-btn-border-color: var(--brand);
    --dxbl-btn-hover-bg: var(--brand-600);
    --dxbl-btn-hover-border-color: var(--brand-600);
    --dxbl-btn-active-bg: var(--brand-900);
    --dxbl-btn-active-border-color: var(--brand-900);
}

/* Uitlijning losse kaarten/lijsten met de DevExpress-formuliergroepen */
.tabbody > .card, .tabbody > .datalist { margin: 12px 3px 0; }
.tabbody > .datalist:last-child { margin-bottom: 8px; }
.card__header { padding: 10px 16px 10px 10px; }
.card__header h3, .datalist__title h3 { padding-left: 10px; line-height: 18px; }
.datalist--joined .filterbar { padding-left: 10px; }

/* DevExpress Fluent-accent op Emyris-rood (i.p.v. blauw): focusranden, selectie, actieve tab, checkboxen */
:root {
    --dxbl-accent-color-10: #fdeef1;
    --dxbl-accent-color-20: #fbd9e0;
    --dxbl-accent-color-30: #f7bccb;
    --dxbl-accent-color-40: #f29fb3;
    --dxbl-accent-color-50: #ec7f99;
    --dxbl-accent-color-60: #e8607f;
    --dxbl-accent-color-70: #e44466;
    --dxbl-accent-color-80: #e13357;
    --dxbl-accent-color-90: #DF2449;
    --dxbl-accent-color-100: #C81F41;
    --dxbl-accent-color-110: #B31C38;
    --dxbl-accent-color-120: #96172F;
    --dxbl-accent-color-130: #7E1228;
    --dxbl-accent-color-140: #6E0019;
    --dxbl-accent-color-150: #520013;
    --dxbl-accent-color-160: #38000D;
    --dxbl-accent-color-170: #1f0007;
}

/* Sectiekoppen donker (leisteen #434F59) met witte tekst en rode accentstreep */
html body .form .form-group .fg-header,
html body .card .card__header {
    background: var(--slate-700) !important;
    border-bottom-color: var(--slate-700) !important;
}
html body .form .form-group .fg-header,
html body .form .form-group .fg-header *,
html body .card .card__header h3 { color: #fff !important; }
html body .card .card__header .iconbtn { color: #fff; }
html body .card .card__header-actions .dxbl-btn { background: #fff; }

/* Dubbele lijsten (toegewezen ↔ beschikbaar) */
.dual-list h4 {
    margin: 0 0 8px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500);
}
.tabbody > .dual-list {
    background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(67, 79, 89, .06); padding: 16px 20px; margin: 4px 3px 0;
}
.card--section .dual-list + .dxbl-checkbox, .dual-list .dxbl-checkbox { margin-top: 8px; }

/* Dubbele lijsten: twee panelen (toegewezen = rode rand, beschikbaar = leisteen) met knoppen in het midden */
.dual-list > div:not(.dual-list__buttons) {
    display: flex; flex-direction: column;
    background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px; padding: 12px;
}
.dual-list > div:first-child { border-top: 3px solid var(--brand); }
.dual-list > div:last-child { border-top: 3px solid var(--slate-500); }
.dual-list h4 { color: var(--slate-700); }
.dual-list .gridcard { flex: 1; border-radius: 6px; }
.dual-list .datalist { margin-bottom: 0; }
.dual-list__buttons { justify-content: center; }
.dual-list__buttons .dxbl-btn { width: 100%; justify-content: center; border-radius: 999px; white-space: nowrap; font-size: 13px; }
.dual-list__buttons .dxbl-btn:not(:disabled) { background: #fff; border-color: var(--slate-500); color: var(--slate-700); }
.dual-list__buttons .dxbl-btn:not(:disabled):first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
.dual-list__buttons .dxbl-btn:not(:disabled):first-child:hover { background: var(--brand-600); border-color: var(--brand-600); }
@media (min-width: 901px) {
    .dual-list { grid-template-columns: 1fr 140px 1fr; gap: 0; }
    .dual-list__buttons { padding: 0 12px; }
}
.tabbody > .dual-list { padding: 16px; }

/* Gridkoppen: leisteen-midden (#657782) met witte tekst */
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header,
html body .datagrid .grid-hdr {
    background: var(--slate-500) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .18) !important;
    font-weight: 400 !important;
    text-transform: none !important; letter-spacing: 0 !important;
}
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header *,
html body .datagrid .grid-hdr * { color: #fff !important; }
.filterbar .filter-select { width: 220px !important; flex: none; }

html body .dxbl-grid td { font-weight: 400; }

/* ------------------------------------------------------------ Planning (planbord) */
.segmented--sm button { padding: 5px 10px; font-size: 13px; }
.w-period { width: 260px; flex: none; }
.filterbar--extra { margin-top: -6px; background: var(--slate-50); }
.pb-refreshed { margin-right: 4px; }
.pb-infobar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.pb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--slate-700); }
.pb-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .12); margin-right: -4px; vertical-align: middle; }
.pb-conflicts { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-conflict { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--brand-50); color: var(--brand-600); border: 1px solid #f3c2cc; cursor: help; }
.pb-conflict--info { background: var(--slate-100); color: var(--slate-700); border-color: var(--slate-200); }

.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.pb-scroll { overflow: auto; max-height: calc(100vh - 290px); background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.pb-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.pb-grid th, .pb-grid td { width: 178px; min-width: 178px; max-width: 178px; }

.pb-head {
    position: sticky; top: 0; z-index: 2; vertical-align: top; text-align: left;
    padding: 8px 9px; background: var(--slate-700); color: #fff; font-weight: 400;
    border-right: 1px solid rgba(255, 255, 255, .12); cursor: pointer; line-height: 1.35;
}
.pb-head:hover { background: #3a454e; }
.pb-head.is-selected { box-shadow: inset 0 -3px 0 var(--brand); }
.pb-head__date { color: #c9d3d9; font-size: 11px; text-transform: capitalize; }
.pb-head__time { font-size: 13px; }
.pb-head__holiday { color: #ffd54d; font-size: 11px; font-style: italic; }
.pb-head__title { margin-top: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-head__sub, .pb-head__loc, .pb-head__company { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-head__sub { color: #c9d3d9; }
.pb-head__loc { color: #9fd8e8; }
.pb-head__company { color: #b9e3b0; }
.pb-count { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; margin-top: 6px; padding: 2px 6px; border-radius: 4px; font-size: 12px; background: rgba(255, 255, 255, .12); }
.pb-count--ok { background: rgba(122, 196, 104, .28); }
.pb-count--under { background: #1d5fd1; }
.pb-count--over { background: #e06a1b; }
.pb-count--hiring { margin-top: 3px; font-size: 11px; }
.pb-count__coord { opacity: .85; }
.pb-count__hours { margin-left: auto; opacity: .9; }

.pb-cell, .pb-none { height: 58px; padding: 4px 7px; vertical-align: top; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.pb-none { background: repeating-linear-gradient(135deg, var(--slate-50), var(--slate-50) 6px, #eef1f3 6px, #eef1f3 12px); }
.pb-cell { cursor: pointer; line-height: 1.3; overflow: hidden; }
.pb-cell:hover { filter: brightness(.96); }
.pb-cell.is-selected { box-shadow: inset 0 0 0 3px var(--slate-700); }
.pb-cell--norole { box-shadow: inset 3px 0 0 #ff0000, inset -2px 0 0 #ff0000; }
.pb-cell--employee { box-shadow: inset 0 0 0 2px var(--brand); }
.pb-newday { border-left: 3px solid var(--slate-700) !important; }
.pb-cell__top { display: flex; justify-content: space-between; gap: 4px; }
.pb-cell__time { font-size: 11px; opacity: .9; }
.pb-cell__marks { display: inline-flex; gap: 2px; }
.pb-cell__name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-cell__role { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-mark {
    display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 3px;
    font-size: 10px; font-weight: 600; line-height: 1; background: rgba(255, 255, 255, .9); color: var(--slate-700);
}
.pb-legend .pb-mark { border: 1px solid var(--slate-200); }
.pb-mark--remark { background: #fff311; color: #3a3a00; font-style: italic; }
.pb-mark--warn { background: #ff9700; color: #fff; }

.pb-side { position: sticky; top: 12px; padding-top: 20px; }
.pb-details { font-size: 13px; }
.pb-details__title { font-size: 15px; font-weight: 500; color: var(--slate-700); margin-bottom: 8px; }
.pb-details dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 8px; margin: 0 0 12px; }
.pb-details dt { color: var(--text-muted); }
.pb-details dd { margin: 0; }
.pb-details h4 { margin: 14px 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.pb-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.pb-actions { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.pb-actions .dxbl-btn { justify-content: center; }
.pb-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pb-actions--footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--slate-200); }
.pb-remark { white-space: pre-wrap; padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; background: var(--slate-50); border: 1px solid var(--slate-200); font-size: 12px; }
.pb-remark small { display: block; color: var(--slate-500); font-size: 11px; margin-bottom: 2px; }
@media (max-width: 1200px) { .pb-layout { grid-template-columns: 1fr; } .pb-side { position: static; } }

/* Keuzedialogen planning */
.picker-options { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.picker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.picker-side { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px; padding: 10px; max-height: 520px; overflow: auto; }
.picker-side h4, .picker-title { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.picker-side tr.is-weekend td { background: #eceff1; }
.picker-side tr.is-absence td { color: var(--danger); }
.picker-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------------------------------------------ Planning DS */
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ds-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ds-scroll { overflow: auto; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.ds-scroll--top { height: 52vh; min-height: 220px; resize: vertical; }
.ds-scroll--bottom { max-height: 38vh; }
.ds-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.ds-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--slate-700); color: #fff; font-weight: 400; padding: 6px 8px; text-align: left; vertical-align: bottom; }
.ds-grid .ds-name { position: sticky; left: 0; z-index: 2; background: var(--slate-700); color: #fff; font-weight: 400; padding: 5px 8px; text-align: left; vertical-align: top; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-grid thead .ds-name, .ds-grid thead .ds-hours { z-index: 4; }
.ds-grid .ds-hours { position: sticky; left: 210px; z-index: 2; background: #56636c; color: #fff; padding: 5px 6px; vertical-align: top; display: table-cell; white-space: nowrap; }
.ds-grid .ds-hours span { display: inline-block; width: 50px; text-align: right; }
.ds-grid tbody .ds-name, .ds-grid tbody .ds-hours { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ds-hours--head span { font-size: 11px; color: #d6dde1; }
.ds-h--ok { color: #9be89b; }
.ds-h--short { color: #ffb86b; }
.ds-h--minmax { color: #ffe066; }
.ds-cat { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: #ffe066; color: #3a3000; font-size: 11px; }
.ds-day { text-transform: capitalize; }
.ds-day__name { font-size: 11px; color: #c9d3d9; }
.ds-grid td.ds-sunday, .ds-grid th.ds-sunday { border-right: 3px solid var(--slate-700); }
.ds-grid td.ds-weekend { background-color: #f6f7f8; }
.ds-cell { vertical-align: top; padding: 2px; border-bottom: 1px solid var(--slate-100); border-right: 1px solid var(--slate-100); cursor: pointer; height: 34px; }
.ds-cell:hover { background: var(--slate-50); }
.ds-cell.is-selected { box-shadow: inset 0 0 0 2px var(--slate-700); }
.ds-grid tr.is-rowsel > .ds-name { background: var(--brand-600); }
.ds-grid tr.is-planning > .ds-name { background: var(--brand); }
.ds-block { border-radius: 4px; padding: 2px 6px; margin-bottom: 2px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ds-block__sub { font-size: 11px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-block--absent { background: #FFC5C5; color: #2b0000; }
.ds-block--avail { background: #CDFFCD; color: #0b2d0b; }
.ds-empty { padding: 24px; text-align: center; color: var(--text-muted); }
.ds-legend-sep { width: 1px; height: 16px; background: var(--slate-200); margin: 0 4px; }
.ds-checks-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.ds-planbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--brand-50); border: 1px solid #f3c2cc; color: var(--brand-900); }
.ds-planbar span { flex: 1; }

.ds-grid--ed .ds-name--blank { background: var(--slate-50); border-right: 1px solid var(--slate-200); }
.ds-edcell { vertical-align: top; padding: 3px; border-bottom: 1px solid var(--slate-100); border-right: 1px solid var(--slate-100); }
.ds-ed { border-radius: 5px; padding: 4px 7px; cursor: pointer; line-height: 1.3; font-size: 11px; position: relative; }
.ds-ed:hover { filter: brightness(.95); }
.ds-ed.is-selected { box-shadow: 0 0 0 2px var(--slate-700); }
.ds-ed.is-target { box-shadow: 0 0 0 2px #16a34a; }
.ds-ed.is-target.is-rolemismatch { box-shadow: 0 0 0 2px #dc2626; }
.ds-ed.is-full { opacity: .45; cursor: not-allowed; }
.ds-ed--complete { background: #006B3E; color: #fff; }
.ds-ed--open { background: #FFE733; color: #1d1d00; }
.ds-ed--hiring { background: #FFAA1C; color: #1d1200; }
.ds-ed__time { opacity: .9; }
.ds-ed__title { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-ed__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.ds-ed__count { position: absolute; right: 6px; top: 4px; font-weight: 600; }

.ds-side { max-height: calc(100vh - 140px); overflow: auto; }
.ds-valist { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; margin-bottom: 8px; }
.ds-varow { border-radius: 5px; padding: 4px 8px; cursor: pointer; font-size: 12px; line-height: 1.3; }
.ds-varow.is-selected { box-shadow: inset 0 0 0 2px var(--slate-700); }
.ds-varow__top { display: flex; justify-content: space-between; font-size: 11px; opacity: .9; }
.ds-varow__name { font-weight: 500; }
.ds-varow__role { font-size: 11px; opacity: .9; }
.ds-item { border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; font-size: 12px; line-height: 1.35; }
.ds-item__top { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; opacity: .9; }
.ds-item__actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.ds-item__actions .dxbl-btn { font-size: 12px; padding: 2px 8px; }
@media (max-width: 1200px) { .ds-layout { grid-template-columns: 1fr; } }
.ds-grid td.ds-cell[draggable=true], .ds-grid th.ds-name[draggable=true] { cursor: grab; }
.ds-ed.is-drophover { box-shadow: 0 0 0 3px #16a34a, 0 4px 12px rgba(22, 163, 74, .35); transform: scale(1.02); }
.ds-ed.is-drophover.is-rolemismatch { box-shadow: 0 0 0 3px #dc2626, 0 4px 12px rgba(220, 38, 38, .35); }
.picker-side td:first-child, .picker-side td:nth-child(2) { white-space: nowrap; }

/* Planning DS: planregels van de gekozen dienst links in het dienstenoverzicht (grdEDVA) */
.ds-grid--ed td.ds-edva { background: var(--slate-50); color: var(--text, #1f2933); white-space: normal; padding: 0; border-right: 1px solid var(--slate-200); vertical-align: top; }
.ds-edva__inner { position: sticky; top: 30px; padding: 6px; max-height: calc(38vh - 40px); overflow: auto; }
.ds-edva__head { display: flex; flex-direction: column; margin-bottom: 6px; }
.ds-edva__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-edva__meta { font-size: 11px; color: var(--slate-500); }
.ds-edva__empty { font-size: 12px; color: var(--slate-500); padding: 4px 2px; }
.ds-edva .ds-valist { max-height: none; margin-bottom: 0; }
.ds-varow.is-target { box-shadow: 0 0 0 2px #16a34a; }
.ds-varow.is-target.is-rolemismatch { box-shadow: 0 0 0 2px #dc2626; }

/* ===================================================================== Dashboard (fraDashboard) */
.page--dash { max-width: 1680px; }
.dash-header .page__subtitle::first-letter { text-transform: uppercase; }
.dash-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.dash-kpi { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: var(--white); border: 1px solid var(--slate-200); border-radius: 999px; color: var(--text-muted); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.dash-kpi:hover { border-color: var(--slate-300); box-shadow: var(--shadow-sm); color: var(--text); }
.dash-kpi__num { font-size: 17px; font-weight: 600; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.dash-kpi.is-hot { border-color: #f3c3cd; background: var(--brand-50); color: var(--brand-900); }
.dash-kpi.is-hot .dash-kpi__num { color: var(--brand); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.dash-panel { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.dash-panel--attention { border-color: #f3c3cd; }
.dash-panel__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--slate-700); color: #fff; min-height: 46px; }
.dash-panel__head h3 { margin: 0; font-size: 14px; font-weight: 500; color: #fff; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-panel__icon { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 6px; background: rgba(255, 255, 255, .12); flex: none; }
.dash-panel__count { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.dash-panel__count.is-hot { background: var(--brand); }
.dash-panel__headextra { display: flex; align-items: center; }
.dash-panel__headextra .dash-headselect { width: 150px; }
.dash-panel__headextra .dxbl-checkbox, .dash-panel__headextra label { color: #fff; font-size: 12px; }
.dash-panel__body { max-height: 320px; overflow: auto; }
.dash-panel__detail { border-top: 1px solid var(--slate-100); padding: 8px 14px; background: var(--slate-50); }
.dash-panel__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--slate-100); }
.dash-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 26px 14px; color: var(--text-muted); font-size: 13px; }
.dash-empty .icon { color: var(--success); }
.dash-memo { white-space: pre-wrap; font-size: 12.5px; color: var(--text); max-height: 120px; overflow: auto; }

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list > li { padding: 8px 14px; border-bottom: 1px solid var(--slate-100); cursor: pointer; font-size: 13px; border-left: 3px solid transparent; }
.dash-list > li:last-child { border-bottom: 0; }
.dash-list > li:hover { background: var(--slate-50); }
.dash-list > li.is-selected { background: var(--brand-50); border-left-color: var(--brand); }
.dash-list > li.is-today { background: var(--brand-50); }
.dash-list > li.is-today .dash-row__main { color: var(--brand-900); font-weight: 600; }
.dash-list > li.is-expired .dash-row__meta { color: var(--danger); font-weight: 500; }
.dash-list > li.is-missing .dash-row__meta { color: #7b2fa0; font-weight: 500; }
.dash-row { display: flex; align-items: center; gap: 10px; }
.dash-row__main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dash-row__col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-row__meta { flex: none; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dash-row__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-clamp { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dash-tag { display: inline-block; padding: 0 7px; border-radius: 4px; background: var(--slate-100); color: var(--slate-600); font-size: 11px; line-height: 18px; white-space: nowrap; }
.dash-tag--warn { background: var(--warning-50); color: var(--warning); }
.dash-tag--idkaart { background: var(--info-50); color: var(--info); }
.dash-tag--vaardigheid { background: #f3ecf8; color: #7b2fa0; }
.dash-tag--contract { background: var(--warning-50); color: var(--warning); }
.dash-date { flex: none; width: 40px; text-align: center; border: 1px solid var(--slate-200); border-radius: 6px; line-height: 1.1; padding: 3px 0; }
.dash-date__d { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.dash-date__m { display: block; font-size: 10px; text-transform: uppercase; color: var(--text-muted); }
.dash-occ { flex: none; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--slate-100); color: var(--slate-600); }
.dash-occ.is-full { background: var(--success-50); color: var(--success); }
.dash-occ.is-partial { background: var(--warning-50); color: var(--warning); }
.dash-occ.is-empty { background: var(--danger-50); color: var(--danger); }
.dash-settings { display: flex; flex-direction: column; gap: 6px; }
.dash-settings__row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--slate-100); cursor: pointer; }

/* Verlof accorderen (frmHourHolidaySchedulesToHourAttendances) */
.hol { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 14px; min-height: 60vh; }
.hol-emps { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); overflow: auto; max-height: 72vh; display: flex; flex-direction: column; }
.hol-emps__head { background: var(--slate-700); color: #fff; padding: 7px 10px; font-size: 13px; position: sticky; top: 0; }
.hol-emp { text-align: left; border: 0; border-bottom: 1px solid var(--slate-100); background: none; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.hol-emp:hover { background: var(--slate-50); }
.hol-emp.is-selected { background: var(--brand-50); color: var(--brand-900); box-shadow: inset 3px 0 0 var(--brand); }
.hol-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hol-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hol-tablewrap { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); overflow: auto; max-height: 44vh; }
.hol-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hol-table th { position: sticky; top: 0; background: var(--slate-500); color: #fff; font-weight: 400; text-align: left; padding: 6px 8px; white-space: nowrap; }
.hol-table td { padding: 5px 8px; border-bottom: 1px solid var(--slate-100); white-space: nowrap; }
.hol-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.hol-table tbody tr { cursor: pointer; user-select: none; }
.hol-table tbody tr:hover { background: var(--slate-50); }
.hol-table tbody tr.is-selected { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.hol-table tbody tr.is-skip td { color: var(--text-muted); text-decoration: line-through; }
.hol-table tbody tr.is-skip td:last-child { text-decoration: none; }
.hol-remark { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hol-type { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11.5px; background: var(--success-50); color: var(--success); }
.hol-type--n, .hol-type--w { background: var(--info-50); color: var(--info); }
.hol-type--i { background: var(--warning-50); color: var(--warning); }
.hol-type--x { background: var(--danger-50); color: var(--danger); }
.hol-type--s { background: var(--danger); color: #fff; }
.hol-edit { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 12px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--slate-50); }
.hol-edit__group { display: flex; flex-direction: column; gap: 6px; }
.hol-edit__group--fields { flex-direction: row; flex-wrap: wrap; gap: 14px; align-items: flex-end; flex: 1; }
.hol-edit__group--fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.hol-edit__label { font-size: 12px; color: var(--text-muted); }
.hol-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.hol-hours { width: 110px; }
.hol-reason { flex: 1; min-width: 220px; }
.hol-info { border-left: 1px solid var(--slate-200); padding-left: 14px; overflow: auto; max-height: 72vh; font-size: 12.5px; }
.hol-info__title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.hol-info h4 { font-size: 12px; font-weight: 500; color: var(--text-muted); margin: 14px 0 6px; }
.hol-bal { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.hol-bal__head { background: var(--slate-100); padding: 4px 8px; font-weight: 500; }
.hol-bal dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 0; padding: 6px 8px; }
.hol-bal dt { color: var(--text-muted); }
.hol-bal dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hol-bal .strong { font-weight: 600; color: var(--text); }
.hol-bal .neg { color: var(--danger); }
.hol-mini { list-style: none; margin: 0; padding: 0; }
.hol-mini li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--slate-100); }
.hol-mini li > span:first-child { flex: none; min-width: 80px; }
.hol-mini .num { margin-left: auto; font-variant-numeric: tabular-nums; }
.hol-mini .ellipsis { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hol-slot { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); margin-bottom: 10px; }
.hol-slot__head { padding: 6px 10px; background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
.hol-slot__row { display: grid; grid-template-columns: 20px 170px 1fr auto; gap: 8px; align-items: center; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.hol-slot__row.is-disabled { color: var(--text-muted); cursor: default; }
.hol-slot__row .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .hol { grid-template-columns: 1fr; } .hol-info { border-left: 0; padding-left: 0; } }

/* Mutaties via de app (frmPersonChanges) */
.pc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; min-height: 50vh; }
.pc-list { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); overflow: auto; max-height: 70vh; display: flex; flex-direction: column; }
.pc-item { display: flex; flex-direction: column; text-align: left; border: 0; border-bottom: 1px solid var(--slate-100); background: none; padding: 8px 10px; font: inherit; cursor: pointer; }
.pc-item:hover { background: var(--slate-50); }
.pc-item.is-selected { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.pc-item__name { font-size: 13px; color: var(--text); }
.pc-item__date { font-size: 11.5px; color: var(--text-muted); }
.pc-compare__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.pc-compare__title { font-size: 16px; font-weight: 600; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-table th { background: var(--slate-500); color: #fff; font-weight: 400; text-align: left; padding: 6px 10px; }
.pc-table td { padding: 6px 10px; border-bottom: 1px solid var(--slate-100); }
.pc-table__cap { color: var(--text-muted); width: 150px; }
.pc-table tr.is-changed td { background: var(--warning-50); }
.pc-table tr.is-changed td:last-child { font-weight: 500; }
.pc-badge { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--warning); color: #fff; font-size: 10.5px; vertical-align: middle; }

/* Dashboard: alle panelen even hoog; lijst scrolt binnen het paneel, knoppenbalk blijft onderaan */
.dash-grid { align-items: stretch; }
.dash-panel { height: 430px; }
.dash-panel__body { flex: 1 1 auto; min-height: 0; max-height: none; }
.dash-panel__detail { flex: none; max-height: 96px; overflow: auto; }
.dash-panel__detail .dash-memo { max-height: none; }
.dash-panel__foot { flex: none; margin-top: auto; }
.dash-empty { height: 100%; }

/* Verlof accorderen: middelste grid breder, filters naast elkaar */
.hol { grid-template-columns: 170px minmax(0, 1fr) 240px; gap: 12px; }
.hol-filters .filter-select { width: 220px; flex: none; }
.hol-tablewrap { max-height: 52vh; }
.hol-table th, .hol-table td { padding-left: 6px; padding-right: 6px; }
.hol-remark { max-width: 170px; }
.hol { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 10px; }
.hol-remark { max-width: 140px; }
.hol-table { font-size: 12px; }
/* compactere regels: verlofscherm en dashboardlijsten */
.hol-table td { padding-top: 2px; padding-bottom: 2px; line-height: 1.35; }
.hol-table th { padding-top: 4px; padding-bottom: 4px; }
.hol-type { line-height: 16px; padding: 0 6px; }
.dash-list > li { padding-top: 5px; padding-bottom: 5px; }
.dash-row__sub { margin-top: 0; }
/* dashboard: nog compactere regels */
.dash-list > li { padding-top: 3px; padding-bottom: 3px; line-height: 1.3; font-size: 12.5px; }
.dash-row__sub { font-size: 11.5px; line-height: 1.25; }
.dash-tag { line-height: 16px; }
.dash-date { padding: 1px 0; width: 36px; }
.dash-date__d { font-size: 13px; }
.dash-occ { padding: 0 8px; }

/* Alle grids: lagere regels */
html body .dxbl-grid .dxbl-grid-table > tbody > tr:not(.dxbl-grid-filter-row) > td { padding-top: 3px !important; padding-bottom: 3px !important; line-height: 1.35; }
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header { padding-top: 6px !important; padding-bottom: 6px !important; }
html body .dxbl-grid .dxbl-grid-filter-row > td { padding-top: 2px !important; padding-bottom: 2px !important; }
.pill--success { background: var(--success-50); color: var(--success); }
.va-qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); }
.va-qty .field-label { margin: 0; }
.card--section > .datalist { margin: 0; }
.loc-listbox { height: 190px; }

/* Actiebalk (bijv. medewerker: uitnodiging, rooster mailen): lichtgrijze strook zodat het duidelijk knoppen zijn */
.actionbar { align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.actionbar__label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
html body .actionbar .actionbar__btn { background: var(--white); border-color: var(--slate-300); color: var(--slate-700); font-weight: 500; }
html body .actionbar .actionbar__btn:hover:not(:disabled) { border-color: var(--slate-500); background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); }
.actionbar .actionbar__btn .icon { color: var(--slate-500); }
/* Locaties: vinkje voor elk item in de keuzelijst */
.loc-check { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 1.5px solid var(--slate-300); border-radius: 3px; background: var(--white); }
.loc-check.is-on { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--white); }

/* CRM → Tarieven: relaties links, tarieven rechts */
.tariff-layout { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tariff-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tariff-right .card--section .tabbody { padding: 0; }
@media (max-width: 1200px) { .tariff-layout { grid-template-columns: 1fr; } }

/* Velden kiezen */
.fc-list { display: flex; flex-direction: column; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 2px; border-bottom: 1px solid var(--slate-100); }
.fc-row.is-off { color: var(--text-muted); }
.fc-move { display: inline-flex; gap: 2px; }
.fc-move button { border: 1px solid var(--slate-200); background: var(--white); border-radius: 4px; width: 24px; height: 22px; font-size: 9px; color: var(--slate-600); cursor: pointer; padding: 0; }
.fc-move button:hover:not(:disabled) { border-color: var(--slate-500); color: var(--text); }
.fc-move button:disabled { opacity: .35; cursor: default; }
.fieldchooser .dxbl-modal-footer .fc-reset { margin-right: auto; }
.picker-side { max-height: 64vh; }

/* Tarieven: tabbladen in de kaart */
.tariff-tabs { padding: 4px 14px 0; }
.tariff-tabs .tabbody { padding: 12px 0 14px; }
.tariff-layout .card--section > .datalist .filterbar { flex-wrap: wrap; }
.tariff-layout .filter-select { width: 170px; }

/* Draaiboek: info uit de lijst */
.info-grid { display: grid; grid-template-columns: 160px 1fr 160px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.info-grid dt { color: var(--text-muted); }
.info-grid dd { margin: 0; color: var(--text); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 140px 1fr; } }

/* Medewerker kiezen: rechterlijst compacter en breder, kop in dezelfde stijl als de gridkoppen */
.picker-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.picker-side { padding: 0; overflow: auto; background: var(--white); }
.picker-side h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 10px; background: var(--slate-500); color: #fff; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.picker-side > .muted { padding: 10px; }
.picker-side .simple-table { width: 100%; font-size: 12px; }
.picker-side .simple-table td { padding: 3px 8px; line-height: 1.3; vertical-align: top; border-bottom: 1px solid var(--slate-100); }
.picker-side .simple-table td:last-child { width: 100%; }

/* Celkleuren (OnDrawColumnCell uit Delphi) */
html body .dxbl-grid td.cell-overlap { background: #9e9e9e !important; color: #fff !important; }
html body .dxbl-grid td.cell-available { background: #67AE00 !important; color: #fff !important; }
html body .dxbl-grid td.cell-contract-full { background: #80FF80 !important; color: #000 !important; }
html body .dxbl-grid td.cell-contract-open { background: #FFA851 !important; color: #000 !important; }
.dash-panel__hide { border: 0; background: transparent; color: rgba(255,255,255,.55); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.dash-panel__hide:hover { color: #fff; }
.dash-panel__iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm); background: transparent; color: #fff; cursor: pointer; padding: 0; }
.dash-panel__iconbtn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.dash-panel__iconbtn-badge { position: absolute; right: 2px; top: 2px; stroke-width: 3; }
.dash-row__iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: #fff; color: #2e9e55; cursor: pointer; padding: 0; flex: none; }
.dash-row__iconbtn:hover:not(:disabled) { background: #eaf6ee; border-color: #2e9e55; }
.dash-row__iconbtn:disabled { opacity: .5; cursor: default; }
/* Dashboard: panelen slepen aan de kop */
.dash-panel__head[draggable=true] { cursor: grab; }
.dash-panel__head[draggable=true]:active { cursor: grabbing; }
.dash-panel.is-dragover { box-shadow: 0 0 0 3px var(--brand); }

/* ===================================================================== Locatieplanning – rustiger raster (itemkleuren blijven ongewijzigd) */
.lp-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.lp-scroll { max-height: calc(100vh - 260px); box-shadow: var(--shadow-sm); }
.lp-grid { font-size: 11.5px; }
.lp-grid thead th { background: var(--slate-500); padding: 7px 6px; min-width: 132px; line-height: 1.25; font-size: 12px; vertical-align: middle; border-right: 1px solid rgba(255,255,255,.12); }
.lp-grid thead .lp-rowhead { background: var(--slate-700); }
/* datumkolom licht i.p.v. een donkere balk */
.lp-grid tbody .lp-rowhead { background: var(--slate-50); color: var(--text); width: 92px; min-width: 92px; padding: 4px 8px; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.lp-day { display: flex; flex-direction: column; line-height: 1.15; }
.lp-dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.lp-date { font-size: 13px; font-weight: 600; color: var(--text); }
.lp-holiday { color: var(--brand-600); font-style: normal; font-size: 10.5px; margin-top: 2px; }
.lp-grid tr.lp-weekend td.lp-empty { background: #f7f8fa; }
.lp-grid tr.lp-weekend .lp-rowhead { background: #eceff2; }
.lp-grid tr.lp-today .lp-rowhead { background: var(--brand-50); box-shadow: inset 4px 0 0 var(--brand); }
.lp-grid tr.lp-today .lp-dow, .lp-grid tr.lp-today .lp-date { color: var(--brand-900); }
/* scheidingen: week duidelijk, dag subtiel, extra regels binnen een dag niet */
.lp-grid tr.lp-weekstart td, .lp-grid tr.lp-weekstart th { border-top: 2px solid var(--slate-500); }
.lp-grid tr.lp-daystart:not(.lp-weekstart) td, .lp-grid tr.lp-daystart:not(.lp-weekstart) th { border-top: 1px solid var(--slate-200); }
.lp-grid td { height: 42px; border-bottom-color: transparent; border-right: 1px solid var(--slate-100); }
.lp-empty:hover { background: var(--slate-100) !important; }
/* items: eigen kleur blijft, alleen nettere tekst en een witte rand als scheiding */
.lp-event { border-right: 2px solid #fff !important; border-bottom: 1px solid rgba(255,255,255,.6) !important; padding: 3px 6px !important; line-height: 1.25; }
.lp-event.lp-cont { border-top: 0 !important; }
.lp-title { font-weight: 600; font-size: 11.5px; }
.lp-sub { font-size: 11px; opacity: .9; }
.lp-event.is-selected { outline: 2px solid var(--slate-900); outline-offset: -2px; box-shadow: 0 0 0 1px #fff inset; }
/* Locatieplanning: gekozen lege dag als één blok */
.lp-grid td.lp-empty.is-selected { outline: none; background: var(--brand-50) !important; box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.lp-grid td.lp-empty.is-selected.sel-top { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 2px 0 var(--brand); }
.lp-grid td.lp-empty.is-selected.sel-bottom { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 -2px 0 var(--brand); }
.lp-grid td.lp-empty.is-selected.sel-top.sel-bottom { box-shadow: inset 0 0 0 2px var(--brand); }

/* HRM – verlof / overuren */
.att-filters { flex-wrap: wrap; border-bottom: 1px solid var(--slate-100); }
.att-filters .w-120 { width: 110px; }
.att-current { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.att-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 10px 12px 12px; }
.att-box { border: 1px solid var(--slate-200); border-radius: 8px; padding: 8px 12px; background: var(--slate-50, #f8fafc); }
.att-box h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.att-box dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 12px; }
.att-box dt { color: var(--text-muted); }
.att-box dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.att-box .att-saldo { font-weight: 700; color: var(--text); border-top: 1px solid var(--slate-200); padding-top: 3px; margin-top: 2px; }
.att-box dd.att-saldo.is-neg { color: #c62828; }
.att-week { display: flex; gap: 8px; flex-wrap: wrap; }
.att-day { display: flex; flex-direction: column; gap: 2px; width: 70px; font-size: 12px; color: var(--text-muted); }

/* Verlofkaart (afdrukbaar) */
.leavecard { font-size: 13px; color: #111; }
.leavecard__head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #334155; padding-bottom: 8px; margin-bottom: 12px; }
.leavecard__head h2 { margin: 0 0 4px; font-size: 20px; }
.leavecard__who { font-size: 15px; font-weight: 600; }
.leavecard__cat { margin: 16px 0 6px; font-size: 14px; }
.leavecard__table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.leavecard__table th, .leavecard__table td { border-bottom: 1px solid #e2e8f0; padding: 4px 6px; text-align: left; }
.leavecard__table th { background: #f1f5f9; font-weight: 600; font-size: 12px; }
.leavecard__table .num { text-align: center; font-variant-numeric: tabular-nums; }
.leavecard__table .strong, .leavecard__table tfoot td { font-weight: 700; }
.print-body .leavecard__table th { background: #eee; }

/* HRM – jaaroverzicht (celkleuren uit Delphi) */
.datagrid td.cell-under { background: #FF0000 !important; color: #fff !important; }
.datagrid td.cell-text-green { color: #008000 !important; font-weight: 600; }
.datagrid td.cell-text-red { color: #c00000 !important; font-weight: 600; }

/* HRM – verlof jaaroverzicht (kleuren zoals grdDataDrawCell in Delphi) */
.yo-scroll { overflow: auto; max-height: calc(100vh - 260px); border-top: 1px solid var(--slate-200); }
.yo-table { border-collapse: separate; border-spacing: 0; font-size: 11px; }
.yo-table th, .yo-table td { border-right: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); padding: 0 2px; height: 22px; min-width: 42px; text-align: center; white-space: nowrap; }
.yo-table thead th { position: sticky; top: 0; z-index: 2; background: var(--slate-500); color: #fff; font-weight: 400; line-height: 1.2; padding: 3px 2px; }
.yo-table thead th.yo-holiday { background: #8a8a8a; }
.yo-table .yo-wk { opacity: .75; }
.yo-table .yo-fix { position: sticky; z-index: 1; background: var(--white); text-align: left; }
.yo-table thead .yo-fix { z-index: 3; background: var(--slate-600, #475569); }
.yo-table .yo-fix-1 { left: 0; min-width: 190px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.yo-table .yo-fix-2 { left: 190px; min-width: 70px; }
.yo-table .yo-fix-3 { left: 260px; min-width: 70px; border-right: 2px solid var(--slate-300); }
.yo-table td.num, .yo-table .yo-fix.num { text-align: center; }
.yo-table .yo-week { border-left: 1px solid #000; }
.yo-table td.yo-weekend { background: var(--slate-50, #f8fafc); }
.yo-table td.yo-holiday { background: #BFBFBF; }
.yo-table td.yo-V, .yo-cell.yo-V { background: #FFFF00; color: #000; }
.yo-table td.yo-Z, .yo-cell.yo-Z { background: #FF0000; color: #fff; }
.yo-table td.yo-I, .yo-cell.yo-I { background: #000; color: #fff; }
.yo-table td.yo-X { background: #000; color: #000; }
.yo-table td.yo-other, .yo-cell.yo-other { background: #006B3E; color: #fff; }
.yo-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-left: 12px; flex-wrap: wrap; }
.yo-cell { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 16px; font-size: 10px; border-radius: 3px; margin-left: 6px; }
.yo-cell.yo-holiday { background: #BFBFBF; }

/* HRM dashboard */
.hrm-hours { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hrm-hours th { position: sticky; top: 0; background: var(--slate-500); color: #fff; font-weight: 400; text-align: left; padding: 5px 8px; }
.hrm-hours td { padding: 3px 8px; border-bottom: 1px solid var(--slate-100); }
.hrm-hours .num { text-align: center; font-variant-numeric: tabular-nums; }
.hrm-hours tr.is-current td { background: var(--slate-50, #f1f5f9); font-weight: 600; }
.hrm-total { display: grid; grid-template-columns: 1fr 90px 90px; width: 100%; font-size: 12.5px; }
.hrm-total strong { text-align: right; font-variant-numeric: tabular-nums; }
.tariff-layout.att-layout--single { grid-template-columns: minmax(0, 1fr); }
.sick-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.hr-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .sick-layout, .hr-layout { grid-template-columns: 1fr; } }

/* HRM – maand exports */
.datagrid td.cell-over { background: #FFFF00 !important; color: #000 !important; }
.datagrid td.cell-lime { background: #00FF00 !important; color: #000 !important; }
.export-filters { flex-wrap: wrap; border-bottom: 1px solid var(--slate-100); }
.export-filters .export-period { width: 260px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; align-items: center; }
.export-sep { width: 1px; height: 22px; background: var(--slate-200); margin: 0 4px; }
.export-busy { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; margin-left: auto; }
.export-busy .spinner { width: 12px; height: 12px; border: 2px solid var(--slate-300); border-top-color: var(--slate-600, #475569); border-radius: 50%; animation: exspin .8s linear infinite; }
@keyframes exspin { to { transform: rotate(360deg); } }
.export-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.export-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.export-tabs .tabbody { padding: 8px 0 0; }
@media (max-width: 1200px) { .export-layout { grid-template-columns: 1fr; } }
.salary-employee { break-inside: avoid; margin-bottom: 18px; }
.salary-sum { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.salary-sum strong { color: #111; margin-left: 4px; }
.export-actionbar { display: flex; margin: 12px 0; }
.export-main .export-tabs { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 0 12px 12px; min-width: 0; }
.export-main .export-tabs .tabbody { overflow-x: auto; }
.page--full .export-main { margin-top: 0; }
.att-top { margin-bottom: 12px; }
.att-top .att-filters { border-bottom: 0; }
.att-actionbar { display: flex; margin: 0; }
.ort-sub { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ort-sub__hint { padding: 10px 12px; border: 1px dashed var(--slate-300); border-radius: var(--radius); }

/* Actiebalk: uitgeschakelde knoppen duidelijk grijs */
html body .actionbar .actionbar__btn:disabled,
html body .actionbar .actionbar__btn.dxbl-disabled { background: var(--slate-50, #f8fafc); color: var(--slate-400, #94a3b8); border-color: var(--slate-200); opacity: .6; cursor: not-allowed; box-shadow: none; }
html body .actionbar .actionbar__btn:disabled .icon { color: var(--slate-300, #cbd5e1); }

/* Gekleurde cellen blijven leesbaar in een geselecteerde regel */
.datagrid tr.dxbl-grid-selected-row td.cell-under, .datagrid .dxbl-grid-selected-row > td.cell-under { background: #FF0000 !important; color: #fff !important; }
.datagrid tr.dxbl-grid-selected-row td.cell-over, .datagrid .dxbl-grid-selected-row > td.cell-over { background: #FFFF00 !important; color: #000 !important; }
.datagrid tr.dxbl-grid-selected-row td.cell-lime, .datagrid .dxbl-grid-selected-row > td.cell-lime { background: #00FF00 !important; color: #000 !important; }
.datagrid tr.dxbl-grid-selected-row td.cell-text-red, .datagrid .dxbl-grid-selected-row > td.cell-text-red { color: #c00000 !important; }
.datagrid tr.dxbl-grid-selected-row td.cell-text-green, .datagrid .dxbl-grid-selected-row > td.cell-text-green { color: #008000 !important; }
.datagrid tr.dxbl-grid-selected-row > td:first-child, .datagrid .dxbl-grid-selected-row > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

/* HRM – urenregistratie samenvatting */
.hr-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--slate-700); color: #fff; border-left: 4px solid var(--danger, #c8102e); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.hr-summary__name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.hr-summary__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-summary__meta .meta-chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.hr-summary__kpis { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.hr-kpi { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 6px 10px;
    background: rgba(255, 255, 255, .08); border-radius: 6px; }
.hr-kpi__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.hr-kpi__value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hr-summary__status { display: flex; flex-direction: column; justify-content: center; gap: 4px; margin-left: 4px; }
.hr-pill--open { background: rgba(255, 255, 255, .15); color: #fff; }
.hr-pill--warn { background: #fef3c7; color: #92400e; }

/* Dashboards – KPI-tegels */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.stat-tile { position: relative; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 12px 14px 12px 16px; overflow: hidden; }
.stat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--slate-300); }
.stat-tile--accent::before { background: var(--brand); }
.stat-tile--success::before { background: var(--success); }
.stat-tile--danger::before { background: var(--danger); }
.stat-tile--warning::before { background: #f59e0b; }
.stat-tile.is-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat-tile.is-clickable:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08)); }
.stat-tile__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.stat-tile__value { font-size: 24px; font-weight: 600; color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-tile__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-tile__sub .is-up { color: var(--success); font-weight: 600; }
.stat-tile__sub .is-down { color: var(--danger); font-weight: 600; }

/* Dashboards – grafieken */
.bc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-muted); padding: 8px 12px 4px; }
.bc-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.bc-legend__item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.bc-h { display: flex; flex-direction: column; gap: 7px; padding: 8px 12px 12px; }
.bc-h__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 54px; align-items: center; gap: 8px; font-size: 12.5px; }
.bc-h__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-h__track { display: flex; height: 16px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.bc-h__seg { height: 100%; }
.bc-h__total { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bc-v { display: flex; align-items: stretch; gap: 6px; padding: 8px 12px 6px; }
.bc-v__col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bc-v__bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--slate-200); }
.bc-v__bar { flex: 1; max-width: 16px; border-radius: 2px 2px 0 0; min-height: 1px; }
.bc-v__label { text-align: center; font-size: 11px; color: var(--text-muted); padding-top: 3px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-table th { position: sticky; top: 0; background: var(--slate-500); color: #fff; font-weight: 400; text-align: left; padding: 5px 8px; cursor: default; }
.dash-table th.is-sortable { cursor: pointer; }
.dash-table td { padding: 3px 8px; border-bottom: 1px solid var(--slate-100); }
.dash-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.dash-table tfoot td { font-weight: 600; border-top: 2px solid var(--slate-200); background: var(--slate-50, #f8fafc); position: sticky; bottom: 0; }
.dash-panel--wide { grid-column: span 2; }
@media (max-width: 900px) { .dash-panel--wide { grid-column: auto; } }

/* Offerte → factuur */
.qi-table-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--slate-200); border-radius: 6px; margin-top: 8px; }
.qi-table .qi-check { width: 34px; text-align: center; }
.qi-table tr.is-done td { color: var(--text-muted); }

/* Artikelen kiezen (offerte/factuur) */
.ap-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; min-height: 50vh; }
.ap-groups { list-style: none; margin: 0; padding: 0; border: 1px solid var(--slate-200); border-radius: 6px; overflow: auto; max-height: 64vh; }
.ap-groups li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.ap-groups li:hover { background: var(--slate-50, #f8fafc); }
.ap-groups li.is-active { background: var(--slate-700); color: #fff; }
.ap-grid-wrap { overflow: auto; max-height: 64vh; border: 1px solid var(--slate-200); border-radius: 6px; }
.ap-grid td { vertical-align: middle; }
.ap-grid tr.is-picked td { background: #fffbea; }
.ap-num { width: 96px; margin-left: auto; }
.ap-num.is-hl input { background: #fff7c2; }
.ap-dt { width: 170px; }
.ap-total { margin-right: auto; }
@media (max-width: 800px) { .ap-layout { grid-template-columns: 1fr; } }

/* Offerteregel uitrollen */
.ro-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ro-days { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ro-month { flex-wrap: wrap; gap: 6px; align-items: center; }
.ro-list ul { list-style: none; margin: 0; padding: 0; max-height: 56vh; overflow: auto; }
.ro-list li { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.ro-list li.is-skipped span:first-child { text-decoration: line-through; color: var(--text-muted); }
.ro-flag { font-size: 11px; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 1px 8px; }
.ro-del { margin-left: auto; border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; }
.ro-del:hover { color: var(--danger); }
@media (max-width: 800px) { .ro-layout { grid-template-columns: 1fr; } }
.ro-w70 { width: 70px; } .ro-w80 { width: 80px; } .ro-w110 { width: 110px; } .ro-w120 { width: 120px; } .ro-w170 { width: 170px; }

/* Financieel – urenregistratie */
.hrl-filters { margin-bottom: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.hrl-frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hrl-stepper { display: inline-flex; align-items: center; gap: 4px; }
.hrl-period { width: 260px !important; flex: none; }
.hrl-date { width: 130px !important; flex: none; }
.hrl-sep { width: 1px; height: 22px; background: var(--slate-200); margin: 0 4px; }
.hrl-fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1300px) { .hrl-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hrl-frow--chips { gap: 6px; }
.hrl-chip { border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-700); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; line-height: 18px; }
.hrl-chip:hover { border-color: var(--slate-500); }
.hrl-chip.is-on { background: var(--slate-800); border-color: var(--slate-800); color: #fff; }
.flip { display: inline-flex; transform: scaleX(-1); }
.hrl-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.hrl-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-left: 8px; }
.hrl-plan, .datagrid td.hrl-c-plan { background: #669999 !important; color: #fff; }
.hrl-actual, .datagrid td.hrl-c-actual { background: #55AA55 !important; color: #fff; }
.datagrid td.hrl-c-worked { background: #116611 !important; color: #fff; }
.hrl-over { background: #FF0000; }
.hrl-under, .datagrid td.hrl-c-under { background: #FF8040 !important; color: #fff; }

/* Facturen */
.datagrid td.inv-hl { background: #ffffa0 !important; }

/* Declaratie: formulier links, bijlage met voorbeeld rechts */
.decl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .decl-layout { grid-template-columns: 1fr; } }
.decl-preview { display: flex; flex-direction: column; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); min-height: 420px; }
.decl-preview__head { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; background: var(--slate-700); color: #fff; }
.decl-preview__title { font-weight: 600; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; border-left: 3px solid var(--brand); padding-left: 8px; }
.decl-preview__head .att-current { color: #e2e8f0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.decl-preview__actions { margin-left: auto; display: inline-flex; gap: 2px; }
.decl-preview__actions .btn-link { color: #fff; background: none; border: 0; padding: 5px; border-radius: 4px; cursor: pointer; }
.decl-preview__actions .btn-link:hover { background: rgba(255,255,255,.12); }
.decl-preview__actions .btn-link--danger:hover { background: var(--danger); }
.decl-preview__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--slate-50); min-height: 0; }
.decl-preview__img { max-width: 100%; max-height: 62vh; object-fit: contain; box-shadow: 0 1px 4px rgba(15,23,42,.15); background: #fff; }
.decl-preview__frame { width: 100%; height: 62vh; border: 0; background: #fff; }
.decl-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.decl-drop { padding: 0 2px; }

/* Werkvoorraad (financieel dashboard) */
.work-list > li { display: flex; align-items: center; gap: 10px; }
.work-list > li.is-done { color: var(--text-muted); }
.work-list__count { min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--slate-100); font-weight: 600; font-variant-numeric: tabular-nums; }
.work-list__count.warning { background: #fef3c7; color: #92400e; }
.work-list__count.accent { background: var(--brand-50); color: var(--brand-900); }
.work-list__count.danger { background: #fee2e2; color: #991b1b; }
.work-list__text { flex: 1; }
.work-list__amount { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dash-table tr.is-link { cursor: pointer; }
.dash-table tr.is-link:hover td { background: var(--slate-50); }

/* Groepsregel aanklikbaar: selecteert alle regels in de groep */
.datagrid .grid-group--select { cursor: pointer; }
.datagrid .grid-group--select:hover > td { background: var(--brand-50) !important; }
.dash-table--nowrap { table-layout: auto; }
.dash-table--nowrap td, .dash-table--nowrap th { white-space: nowrap; }
.dash-table--nowrap td.cell-ellipsis { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.selbar { display: flex; align-items: center; gap: 6px; padding: 4px 2px 6px; font-size: 12.5px; }
.selbar__btn { border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-700); border-radius: 999px; padding: 2px 10px; font: inherit; cursor: pointer; }
.selbar__btn:hover:not(:disabled) { border-color: var(--slate-500); }
.selbar__btn:disabled { opacity: .45; cursor: default; }
.selbar__count { color: var(--text-muted); margin-left: 4px; }
.selbar__hint { margin-left: auto; color: var(--text-muted); }
/* Groepsregel: (deels) geselecteerd — label direct achter de groepsnaam */
.datagrid .grp-all > td, .datagrid .grp-all { background: var(--brand-50) !important; }
.datagrid .grp-all > td[colspan]::after, .datagrid .grp-some > td[colspan]::after {
  display: inline-block; margin-left: 10px; padding: 0 9px; border-radius: 999px; vertical-align: 1px;
  font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.datagrid .grp-all > td[colspan]::after { content: "✓ alles geselecteerd"; background: var(--brand); color: #fff; }
.datagrid .grp-some > td[colspan]::after { content: "deels geselecteerd"; background: var(--slate-200); color: var(--slate-700); }
/* Filterregel in genereer-dialogen: alles op één regel */
.gen-filters { flex-wrap: nowrap; }
.gen-filters .filter-select { width: auto !important; flex: 1 1 0; min-width: 110px; }
.gen-filters .w-150 { width: 128px !important; }
.gen-filters .dxbl-checkbox { white-space: nowrap; }

/* Communicatie */
.msg-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1000px) { .msg-layout { grid-template-columns: 1fr; } }
.msg-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0 8px; font-size: 12px; }
.msg-keywords .hrl-chip { font-size: 11.5px; padding: 1px 8px; }
.text-danger { color: var(--danger); }
.mt-8 { margin-top: 8px; }
.send-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .send-layout { grid-template-columns: 1fr; } }
.send-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.send-step { font-weight: 600; font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.send-opts { display: flex; flex-direction: column; gap: 6px; }
.send-opt { display: flex; align-items: center; gap: 10px; }
.send-opt .muted { min-width: 120px; }
.send-select { width: 260px !important; flex: none; }
.send-select--wide { width: 420px !important; }

/* Logistiek */
.ps-scan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); }
.ps-hint { margin: 6px 0 10px; font-size: 12.5px; }
.ps-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.re-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; margin-top: 8px; }
@media (max-width: 1000px) { .ps-layout, .re-extra { grid-template-columns: 1fr; } }
.re-serial-add { display: flex; gap: 8px; padding: 8px 10px; }
.datagrid td.cell-ok { background: #15803d !important; color: #fff; }
.datagrid td.cell-warn { color: var(--danger); font-weight: 600; }
.msg-kw { cursor: grab; }
.msg-kw:active { cursor: grabbing; }
/* Datum + tijd: compacte invoer zodat de tijd zichtbaar blijft */
.dt-edit input { font-variant-numeric: tabular-nums; letter-spacing: -0.1px; padding-left: 6px !important; padding-right: 2px !important; text-overflow: clip !important; }
/* Ingebouwde bestandsviewer */
.file-viewer .dxbl-modal-body { padding: 0 !important; display: flex; background: var(--slate-100); }
.file-viewer__frame { flex: 1; width: 100%; height: 100%; min-height: 70vh; border: 0; background: #fff; }
.file-viewer__img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.file-viewer__img img { max-width: 100%; max-height: 78vh; object-fit: contain; box-shadow: 0 2px 8px rgba(15,23,42,.18); background: #fff; }
.file-viewer__link { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; text-decoration: none; }

/* Instellingen */
.set-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .set-layout { grid-template-columns: 1fr; } }
.set-nav { position: sticky; top: 12px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 8px; max-height: calc(100vh - 110px); overflow: auto; }
.set-nav__search { padding: 0 4px 8px; }
.set-nav__group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 12px 10px 4px; }
.set-nav__item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--slate-700); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; }
.set-nav__item:hover { background: var(--slate-50); }
.set-nav__item.is-active { background: var(--brand-50); color: var(--brand-900); font-weight: 600; border-left-color: var(--brand); }
.set-nav__empty { padding: 8px 10px; }
.set-content { min-width: 0; }
.set-content__head { margin-bottom: 12px; }
.set-content__head h1 { margin: 2px 0 2px; font-size: 22px; }
.set-content__group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.set-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .set-two { grid-template-columns: 1fr; } }
.set-sub { margin: 0 0 6px; font-size: 14px; }
.set-form { max-width: 980px; }
.set-form__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.set-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: center; }
.set-row--wide { align-items: start; }
.set-row__label { font-size: 13px; color: var(--slate-600); }
.set-row--wide .set-row__label { padding-top: 6px; }
.set-row__input { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 640px; }
.set-row--wide .set-row__input { max-width: none; }
@media (max-width: 800px) { .set-row { grid-template-columns: 1fr; } }
.set-form__footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--slate-100); background: var(--slate-50); }
.set-logo { display: flex; gap: 16px; align-items: center; }
.set-logo__img { width: 230px; height: 110px; border: 1px dashed var(--slate-300); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; }
.set-logo__img img { max-width: 210px; max-height: 100px; }
.set-logo__actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mb-6 { margin-bottom: 6px; }
.rights-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.rights-users__search { padding: 8px 10px; }
.rights-users__list { max-height: 62vh; overflow: auto; }
.rights-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.rights-groups { padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rights-group { border: 1px solid var(--slate-200); border-radius: 6px; padding: 8px 10px; }
.rights-group__head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.rights-item { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; cursor: pointer; }
.pick-two { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.pick-two__head { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.pick-two__buttons { display: flex; flex-direction: column; gap: 8px; }

/* ---- Dienst uitrollen (EventDateRolloutDialog) ---- */
.ro2-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; min-height: 420px; }
.ro2-left { display: flex; flex-direction: column; gap: 12px; }
.ro2-block { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ro2-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ro2-types { flex-wrap: wrap; }
.ro2-opts { display: flex; flex-direction: column; gap: 8px; }
.ro2-radio, .ro2-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ro2-radio input { margin: 0; }
.ro2-days { display: flex; gap: 4px; flex-wrap: wrap; }
.ro2-num { width: 74px !important; flex: none !important; }
.ro2-time { width: 92px !important; flex: none !important; }
.ro2-date { width: 160px !important; flex: none !important; }
.ro2-sel { width: 120px !important; flex: none !important; }
.ro2-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.ro2-right { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ro2-clear { margin-left: auto; font-size: 12px; font-weight: 400; }
.ro2-empty { padding: 20px 0; text-align: center; }
.ro2-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 58vh; }
.ro2-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-bottom: 1px solid var(--slate-100); font-size: 13px; flex-wrap: wrap; }
.ro2-list li.has-note { background: #fff8e6; }
.ro2-date-txt { font-variant-numeric: tabular-nums; min-width: 110px; }
.ro2-note { color: var(--warning); font-size: 12px; }
.ro2-del { margin-left: auto; color: var(--danger); }
@media (max-width: 800px) { .ro2-layout { grid-template-columns: 1fr; } }

/* ---- Batch wijzigen (EventDateBatchDialog) ---- */
.bw-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.bw-f { width: 170px !important; flex: none !important; }
.bw-gap { margin-left: 10px; }
.bw-tabs { margin: 4px 0 8px; }
.bw-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 14px; }
.bw-opts { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 62vh; padding-right: 4px; }
.bw-opt { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 8px; }
.bw-opt.bw-sub { padding-left: 18px; grid-template-columns: 152px minmax(0, 1fr); }
.bw-opt--box { grid-template-columns: 1fr; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 6px 8px; }
.bw-opt--danger { grid-template-columns: 1fr; color: var(--danger); border-top: 1px solid var(--slate-200); padding-top: 8px; }
.bw-row { display: flex; align-items: center; gap: 8px; }
.bw-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-top: 6px; }
@media (max-width: 900px) { .bw-layout { grid-template-columns: 1fr; } }

/* ---- Conflict- en planningsoverzichten ---- */
button.pb-conflict { cursor: pointer; font: inherit; font-size: 12px; }
button.pb-conflict:hover { filter: brightness(0.96); text-decoration: underline; }
.po-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.po-count { margin-right: auto; }
.po-acked { color: var(--danger) !important; }

/* ---- Lijst + voorbeeld naast elkaar (offerte documenten e.d.) ---- */
.doc-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.doc-split > .decl-preview { position: sticky; top: 8px; min-height: 70vh; }
.doc-split .decl-preview__frame { height: 72vh; }
@media (max-width: 1100px) { .doc-split { grid-template-columns: 1fr; } }

/* ---- Nieuwe functionaliteiten ---- */
.wn-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.wn-versions { position: sticky; top: 8px; max-height: calc(100vh - 140px); overflow: auto; }
.wn-versions ul { list-style: none; margin: 0; padding: 4px; }
.wn-versions button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border: 0; background: none; padding: 7px 10px; border-radius: var(--radius-sm); font: inherit; cursor: pointer; text-align: left; }
.wn-versions button:hover { background: var(--slate-50); }
.wn-versions button.is-active { background: var(--slate-800); color: #fff; }
.wn-versions button.is-active .muted { color: #cbd5e1; }
.wn-versions__date { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.wn-items { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wn-title { margin: 0 0 4px; font-size: 18px; }
.wn-module .card__header { display: flex; align-items: center; gap: 8px; }
.wn-item + .wn-item { border-top: 1px solid var(--slate-100); margin-top: 10px; padding-top: 10px; }
.wn-text { white-space: pre-wrap; }
@media (max-width: 800px) { .wn-layout { grid-template-columns: 1fr; } .wn-versions { position: static; max-height: none; } }

/* ---- Instellingen: databaseversie ---- */
.dbv { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.dbv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dbv-name { font-weight: 600; font-size: 15px; }
.dbv h4 { margin: 12px 0 2px; }
.dbv-ctx { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; margin: 0; }
.dbv-ctx dt { color: var(--text-muted); }
.dbv-ctx dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---- Mutatielog / historie ---- */
.audit-list { display: flex; flex-direction: column; gap: 8px; }
.audit-group { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--white); }
.audit-group__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.audit-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.audit-badge--I { background: var(--success-50); color: var(--success); }
.audit-badge--U { background: var(--brand-50); color: var(--brand-600); }
.audit-badge--D { background: var(--danger-50); color: var(--danger); }
.audit-change { display: grid; grid-template-columns: 200px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; padding: 3px 0; border-top: 1px solid var(--slate-100); font-size: 13px; }
.audit-col { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-old { color: var(--slate-600); text-decoration: line-through; text-decoration-color: rgba(100,116,139,.5); overflow-wrap: anywhere; }
.audit-new { overflow-wrap: anywhere; }
.audit-arrow { color: var(--text-muted); }
.audit-record summary { cursor: pointer; font-size: 13px; color: var(--slate-700); }
.audit-fields { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2px 8px; font-size: 12.5px; margin-top: 6px; }
.audit-fields span:nth-child(even) { overflow-wrap: anywhere; }
@media (max-width: 700px) { .audit-change { grid-template-columns: 1fr; } .audit-arrow { display: none; } }
.dialog-history-btn { margin-right: auto; }
.ml-bar { margin-bottom: 10px; }
.ml-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ml-config td { vertical-align: middle; }
.ml-excl { width: 260px !important; }
.text-danger { color: var(--danger); }

/* ---- Rechten (Instellingen → Rechten) ---- */
.ra-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ra-layout { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ra-side { flex: 1 1 240px; max-width: 290px; overflow: hidden; }
.ra-side__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--slate-200); }
.ra-list { list-style: none; margin: 0; padding: 0; max-height: 65vh; overflow: auto; }
.ra-list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--slate-100); cursor: pointer; font-size: 14px; }
.ra-list li:hover { background: var(--slate-50); }
.ra-list li.is-selected { background: var(--slate-800); color: #fff; }
.ra-list li.is-selected .muted, .ra-list li.is-selected .ra-sub { color: #cbd5e1; }
.ra-sub { font-size: 12px; color: var(--text-muted); }
.ra-tag { font-size: 11px; background: var(--slate-100); color: var(--slate-600); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.ra-main { flex: 999 1 620px; min-width: 0; overflow: hidden; }
.ra-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--slate-200); }
.ra-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.ra-field--grow { flex: 1 1 240px; }
.ra-side__head .inline-row { gap: 6px; margin-bottom: 0; flex-wrap: nowrap; white-space: nowrap; }
.ra-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--slate-200); border-radius: 6px; background: transparent; color: #c0262d; cursor: pointer; }
.ra-icon-btn:hover:not(:disabled) { background: #fdecec; border-color: #f3b5b5; }
.ra-icon-btn:disabled { color: var(--slate-300, #cbd5e1); cursor: default; }
.ra-form { display: grid; grid-template-columns: 110px minmax(0, 560px); gap: 8px 12px; align-items: center; }
.ra-form > label { font-size: 13px; color: var(--text-muted); }
.ra-members { padding: 12px 16px; border-bottom: 1px solid var(--slate-200); display: flex; flex-direction: column; gap: 8px; }
.ra-members__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ra-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ra-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--slate-100); font-size: 13px; }
.ra-chip button { border: 0; background: transparent; font: inherit; color: var(--slate-500); cursor: pointer; padding: 0 2px; }
.ra-chip--dark { background: var(--slate-800); color: #fff; }
.ra-chip--dark button { color: #cbd5e1; }
.ra-matrix-wrap { overflow-x: auto; }
.ra-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.ra-matrix th { background: var(--slate-600); color: #fff; font-weight: 600; padding: 7px 8px; text-align: center; white-space: nowrap; }
.ra-matrix td { border-bottom: 1px solid var(--slate-100); padding: 5px 8px; text-align: center; }
.ra-matrix .l { text-align: left; }
.ra-matrix tr.grp td { background: var(--slate-50); font-weight: 600; text-align: left; color: var(--slate-700); }
.ra-matrix tr.off td { color: var(--slate-400, #94a3b8); }
.ra-matrix tr.warn td { background: #fff8e6; }
.ra-matrix input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--slate-800); }
.ra-extra { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 12.5px; white-space: nowrap; }
.ra-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--slate-50); }
.ra-ovr { display: flex; gap: 10px; align-items: center; padding: 5px 10px; border-radius: var(--radius-sm); font-size: 13px; }
.ra-ovr--plus { background: var(--success-50); }
.ra-ovr--plus strong { color: var(--success); }
.ra-ovr--min { background: var(--danger-50); }
.ra-ovr--min strong { color: var(--danger); }
.ra-ovr .btn-link { margin-left: auto; color: var(--danger); }
.ra-ovr-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ra-yes { color: var(--success); font-weight: 600; }
.ra-lvl { display: inline-block; min-width: 22px; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.ra-lvl--W { background: var(--slate-800); color: #fff; }
.ra-lvl--B { background: var(--slate-200); color: var(--slate-700); }
.ra-lvl--E { background: #fff3d6; color: #8a5a00; }
.ra-lvl--- { color: var(--slate-300); }
.ra-picker { max-height: 50vh; overflow: auto; margin-top: 8px; display: flex; flex-direction: column; }
.ra-pick { display: flex; gap: 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--slate-100); font-size: 14px; cursor: pointer; }
.w-300 { width: 300px !important; flex: none !important; }

/* ------------------------------------------------------------------ DVPortal */
.page--wide { max-width: none; }
.content--full { padding: 0; min-height: 100vh; }

/* Celkleuren in grids (OnDrawColumnCell in Delphi) */
.cell-danger { background: #dc2626 !important; color: #fff !important; }
.cell-warning { background: #fde047 !important; color: #111 !important; }
.cell-success { background: #16a34a !important; color: #fff !important; }
.cell-info { background: #dbeafe !important; color: #1e3a8a !important; }
.cell-muted { color: #94a3b8 !important; }
.cell-hidden { color: transparent !important; }
.cell-bold { font-weight: 700; }

/* Dashboard-tegels */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.dash-card { background: var(--surface, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.dash-card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dash-card--wide { grid-column: 1 / -1; }

/* Afdrukbare werkbon */
.print-sheet { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 32px; font-size: 13px; }
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet td, .print-sheet th { border: 1px solid #94a3b8; padding: 6px 8px; vertical-align: top; text-align: left; }
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .content, .main { padding: 0 !important; margin: 0 !important; }
    /* zonder zijbalk niet meer in het 2-koloms raster: anders valt de inhoud in de (smalle) zijbalkkolom */
    .app, .app--collapsed { display: block !important; }
    .toasts { display: none !important; }
    .content, .main { width: auto !important; max-width: none !important; overflow: visible !important; }
}

/* ---- Techniek: Veeam / OTP / SMS ---- */
.otp-card, .sms-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 10px; padding: 16px 18px; margin-top: 12px; }
.otp-result { margin-top: 16px; text-align: center; }
.otp-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.otp-code { font-size: 40px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; cursor: pointer; margin: 4px 0 10px; }
.otp-timer { height: 6px; border-radius: 999px; background: var(--slate-200); overflow: hidden; }
.otp-timer__bar { height: 100%; background: var(--success); transition: width 1s linear; }
.otp-timer--low .otp-timer__bar { background: var(--danger); }
.otp-sub { margin-top: 8px; font-size: 13px; color: var(--text-muted); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sms-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sms-password { display: flex; gap: 8px; align-items: center; }
.sms-password__box { flex: 1; font-family: ui-monospace, Consolas, monospace; }

/* ------------------------------------------------------------ Uren (HourLineDialog, weekuren, planning, verlofkaart, pakbonnen) */
.hl-project { display: flex; gap: 6px; align-items: center; width: 100%; }
.hl-project__combo { flex: 1; min-width: 0; }
.hl-check { display: flex; align-items: center; gap: 10px; }
.hl-todo textarea { background: #fffbea; }
.uren-year { min-width: 110px; width: 110px; }
.uren-week { min-width: 0; }
.uren-weeknav { display: flex; gap: 4px; align-items: center; }
.uren-weeknav__spin { width: 80px; }
.uren-period { display: inline-block; padding: 6px 0; font-weight: 500; white-space: nowrap; }
.uren-planning { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.uren-planning__side { padding: 12px; }
.uren-planning__main { min-width: 0; }
.uren-emps { display: flex; flex-direction: column; gap: 2px; max-height: 75vh; overflow-y: auto; }
.uren-emps__item { text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: var(--radius-sm); font: inherit; cursor: pointer; color: var(--slate-700); }
.uren-emps__item:hover { background: var(--slate-100); }
.uren-emps__item--active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.uren-emps__item:disabled { cursor: default; opacity: .7; }
.uren-pdf { display: flex; min-height: 75vh; }
.uren-pdf__frame { flex: 1; width: 100%; min-height: 75vh; border: 0; background: #fff; }
.uren-scan__row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.uren-scan__row .field-label { margin: 0; }
.uren-scan__input { height: 36px; padding: 0 10px; min-width: 260px; font: inherit; font-size: 15px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); }
.uren-scan__input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 32, 63, .15); }
.uren-scan__log textarea { font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 900px) { .uren-planning { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Werkbonnen / Algemeen (wb-) */
.wb-layout { display: flex; gap: 16px; align-items: flex-start; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wb-hours { flex: none; width: 44px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.wb-hours.is-open { width: 320px; }
.wb-hours__toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: var(--slate-700); color: #fff; padding: 10px 12px; cursor: pointer; font: inherit; white-space: nowrap; }
.wb-hours:not(.is-open) .wb-hours__toggle span { display: none; }
.wb-hours__body { max-height: 75vh; overflow: auto; padding: 8px 12px; font-size: 13px; }
.wb-hours__line { padding: 8px 0; border-bottom: 1px solid var(--slate-100); }
.wb-planbord__update { align-self: center; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.wb-planbord .datagrid td { height: 30px; }

.wb-dash__headbtn { margin-left: auto; border: 1px solid var(--slate-200); background: transparent; border-radius: 6px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wb-qotd { margin: 0 0 8px; font-style: italic; font-size: 15px; line-height: 1.45; }
.wb-qotd__by { color: var(--text-muted); font-size: 12px; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wb-table th { text-align: left; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--slate-200); padding: 4px 6px; }
.wb-table td { border-bottom: 1px solid var(--slate-100); padding: 4px 6px; }
.wb-table .r { text-align: center; }
.wb-table tr.wb-today td { font-weight: 600; }
.wb-red { color: #dc2626; font-weight: 600; }
.wb-ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-dash__emp { width: 220px; }
.wb-dash__memo { white-space: pre-wrap; font-size: 12.5px; min-height: 40px; max-height: 120px; overflow: auto; margin-top: 8px; padding: 8px 10px; background: var(--slate-50); border-radius: 6px; }
.wb-hoursgrid { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.wb-hoursgrid th, .wb-hoursgrid td { padding: 2px 4px; text-align: right; }
.wb-hoursgrid thead th, .wb-hoursgrid tbody th { background: #647884; color: #fff; text-align: left; font-weight: 500; white-space: nowrap; }
.wb-hoursgrid thead th { text-align: center; }
.wb-hoursgrid .tot { border-left: 1px solid #000; }
.wb-hoursgrid tr.wk-cust td, .wb-hoursgrid tr.wk-int td { background: #D9DFE3; }
.wb-hoursgrid tr.wk-int { font-style: italic; }
.wb-hoursgrid tr.wk-tot td, .wb-hoursgrid tr.wk-tot th { font-weight: 700; border-bottom: 1px solid #000; }

.wb-docs { display: flex; gap: 16px; align-items: stretch; }
.wb-docs__list { flex: none; width: 300px; display: flex; flex-direction: column; }
.wb-docs__items { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; max-height: 65vh; }
.wb-docs__items li { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.wb-docs__items li:hover { background: var(--slate-50); }
.wb-docs__items li.is-selected { background: var(--slate-800); color: #fff; }
.wb-docs__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wb-docs__view { flex: 1; min-width: 0; padding: 0; overflow: hidden; }
.wb-docs__view iframe { width: 100%; height: 78vh; border: 0; display: block; }
.wb-docs__view > .muted { padding: 20px; }

.wb-settings { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.wb-settings__actions { display: flex; flex-direction: column; gap: 10px; }
.wb-settings__action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.wb-print__bar { max-width: 800px; margin: 0 auto 12px; display: flex; justify-content: flex-end; }
.wb-print__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.wb-print__title { margin: 0; font-size: 26px; }
.wb-print__company { color: #475569; }
.print-sheet table.wb-print__meta { width: auto; }
.print-sheet .wb-print__meta th { background: #f1f5f9; white-space: nowrap; }
.print-sheet .wb-print__block { margin-bottom: 14px; }
.print-sheet .wb-print__block th { background: #f1f5f9; }
.wb-print__lbl { width: 170px; color: #475569; }
.wb-print__text { white-space: pre-wrap; min-height: 80px; }
.wb-print__write { height: 180px; }
.wb-print__row td { height: 26px; }
.wb-print__signbox { height: 70px; }
@media print {
    .wb-print.page { padding: 0 !important; max-width: none; }
    .print-sheet { padding: 0; max-width: none; }
    .print-sheet .wb-print__block th, .print-sheet .wb-print__meta th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 900px) {
    .wb-layout, .wb-docs { flex-direction: column; }
    .wb-hours, .wb-hours.is-open, .wb-docs__list { width: 100%; }
}

/* ------------------------------------------------------------------ Administratie (abonnementen, XSP, artikelen) */
/* Delphi-kleuren: $000080FF = oranje, $0080FF80 = lichtgroen, $00FFFF80 = lichtblauw */
.abo-cell-orange { background: #ff8000 !important; color: #fff !important; }
.abo-cell-green { background: #80ff80 !important; color: #111 !important; }
.abo-cell-cyan { background: #80ffff !important; color: #111 !important; }
.abo-cell-cyan--hidden { color: #80ffff !important; }
.abo-sep-left { border-left: 1px solid #000 !important; }
.abo-sep-top { border-top: 1px solid #000 !important; }
.abo-import { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.xsp-layout { display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 16px; align-items: start; }
.art-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.art-suppliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 12px; }
@media (max-width: 1100px) {
    .xsp-layout, .art-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Relaties (klantgegevens, projecten, taken) */
.cust-memo, .prj-memo { white-space: pre-line; }
.prj-lines { margin-top: 14px; }
.prj-print__bar { margin-bottom: 12px; }
.print-sheet h2 { margin: 0 0 12px; }
.print-sheet .prj-print__info { margin-bottom: 16px; }
.print-sheet .prj-print__info th { width: 160px; background: #f1f5f9; }
.tasks-layout { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
.tasks-layout__left, .tasks-layout__right { min-width: 0; }
@media (max-width: 1100px) { .tasks-layout { grid-template-columns: 1fr; } }
.gridtools { display: inline-flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------------ Dashboard DVPortal (Emyris-stijl) */
.page--dash .dash-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.dash-panel--wide { grid-column: span 2; }
@media (max-width: 900px) { .dash-panel--wide { grid-column: auto; } }
.dash-headbtn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.dash-headbtn:hover { background: rgba(255,255,255,.24); }
.dash-tag--dtc { background: var(--info-50); color: var(--info); }
.dash-tag--goor { background: #f3ecf8; color: #7b2fa0; }
.dash-days { flex: none; min-width: 52px; text-align: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--slate-100); color: var(--slate-600); }
.dash-days.is-warn { background: var(--warning-50); color: var(--warning); }
.dash-days.is-bad { background: var(--danger-50); color: var(--danger); font-weight: 600; }
.dash-status { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dash-status.is-ok { background: var(--success); }
.dash-status.is-bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.dash-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--brand); }
.rot-270 { transform: rotate(-90deg); }
.dash-quote { margin: 0; padding: 22px 22px 18px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dash-quote blockquote { margin: 0 0 12px; font-size: 19px; line-height: 1.45; font-style: italic; color: var(--text); }
.dash-quote figcaption { font-size: 13px; color: var(--text-muted); }
.dash-hours { width: calc(100% - 20px); margin: 10px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.dash-hours th { font-weight: 500; color: var(--text-muted); text-align: center; padding: 2px 2px 6px; }
.dash-hours thead th { border-bottom: 1px solid var(--slate-200); }
.dash-hours tbody tr { border-bottom: 1px solid var(--slate-200); }
.dash-hours tbody tr:last-child { border-bottom: 0; }
.dash-hours tbody th { text-align: left; color: var(--text); white-space: nowrap; padding: 4px 8px 4px 0; vertical-align: middle; }
.dash-hours td { padding: 4px 2px; vertical-align: middle; }
.dash-hours .tot { text-align: right; padding-left: 10px; color: var(--text); border-left: 1px solid var(--slate-200); }
.dash-hours .tot .dash-hcell__c, .dash-hours .tot .dash-hcell__i { display: block; }
.dash-hcell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 30px; height: 36px;
              border: 1px solid var(--slate-200); border-radius: 6px; line-height: 1.15; }
.dash-hcell__c { font-weight: 500; min-height: 14px; }
.dash-hcell__i { font-size: 10.5px; font-style: italic; color: var(--text-muted); min-height: 12px; }
.dash-hcell.h-0 { background: var(--slate-50); }
.dash-hcell.h-we { background: transparent; border-style: dashed; }
.dash-hcell.h-1, .dash-hours__scale i.h-1 { background: #e0ecfb; border-color: #c9dcf6; }
.dash-hcell.h-2, .dash-hours__scale i.h-2 { background: #b7d3f6; border-color: #9cc1f0; }
.dash-hcell.h-3, .dash-hours__scale i.h-3 { background: #7fb0ee; border-color: #5f9be8; color: #0b2a55; }
.dash-hcell.h-4, .dash-hours__scale i.h-4 { background: #3b82f6; border-color: #2563eb; color: #fff; }
.dash-hcell.h-3 .dash-hcell__i { color: #1e3f6e; }
.dash-hcell.h-4 .dash-hcell__i { color: #dbeafe; }
.dash-hours__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 0 14px 10px; font-size: 11px; color: var(--text-muted); }
.dash-hours__legend b { font-weight: 600; color: var(--text); }
.dash-hours__scale { display: inline-flex; align-items: center; gap: 3px; }
.dash-hours__scale i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid; }
.dash-hours__scale small { margin-left: 4px; font-size: 10.5px; }

/* ------------------------------------------------------------------ Compacte grids (DVPortal): één slag kleiner, lagere rijen */
html body .dxbl-grid { font-size: 12px; --dxbl-grid-font-size: 12px; }
html body .dxbl-grid .dxbl-grid-table > tbody > tr:not(.dxbl-grid-filter-row) > td { padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.3; font-size: 12px; }
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 12px; }
html body .dxbl-grid .dxbl-grid-filter-row > td { padding-top: 1px !important; padding-bottom: 1px !important; }
html body .dxbl-grid .dxbl-grid-filter-row input { font-size: 12px; }
html body .dxbl-grid .dxbl-grid-group-row > td, html body .dxbl-grid .dxbl-grid-footer-row > td { font-size: 12px; padding-top: 2px !important; padding-bottom: 2px !important; }
html body .dxbl-grid .dxbl-pager { font-size: 12px; }

/* ------------------------------------------------------------------ Algemene documenten (doc-) */
.doc-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: stretch; height: calc(100vh - 190px); min-height: 480px; }
@media (max-width: 1000px) { .doc-layout { grid-template-columns: 1fr; height: auto; } .doc-preview { height: 70vh; } }
.doc-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
.doc-list__tools { display: flex; flex-direction: column; gap: 8px; }
.doc-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--text-muted); }
.doc-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 13px; background: transparent; color: var(--text); }
.doc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-cats button { border: 1px solid var(--slate-200); background: var(--white); border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--text-muted); }
.doc-cats button.is-active { background: var(--slate-700); border-color: var(--slate-700); color: #fff; }
.doc-items { flex: 1; min-height: 0; overflow: auto; margin: 0 -4px; }
.doc-group { display: flex; justify-content: space-between; padding: 10px 6px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.doc-group span { font-weight: 500; }
.doc-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.doc-item:hover { background: var(--slate-50); }
.doc-item.is-selected { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.doc-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-item__title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-item__meta { font-size: 11px; color: var(--text-muted); }
.doc-ext { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; border-radius: 6px; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--slate-500); letter-spacing: .02em; }
.doc-ext--pdf { background: #d93025; }
.doc-ext--word { background: #2b579a; }
.doc-ext--excel { background: #217346; }
.doc-ext--ppt { background: #c43e1c; }
.doc-ext--img { background: #7b2fa0; }
.doc-ext--zip { background: #8a6d3b; }
.doc-ext--big { width: 64px; height: 76px; font-size: 15px; border-radius: 10px; }
.doc-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.doc-preview__head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--slate-100); }
.doc-preview__title { flex: 1; min-width: 0; }
.doc-preview__title h2 { margin: 0 0 2px; font-size: 16px; }
.doc-preview__title p { margin: 0; font-size: 12px; color: var(--text-muted); }
.doc-preview__descr { margin-top: 6px !important; color: var(--text) !important; white-space: pre-wrap; }
.doc-preview__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.doc-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); color: var(--text); cursor: pointer; }
.doc-btn:hover { background: var(--slate-50); }
.doc-btn--danger { color: var(--danger); }
.doc-replace .upload-button { height: 32px; }
.doc-preview__body { flex: 1; min-height: 0; background: var(--slate-50); }
.doc-preview__body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.doc-preview__img { height: 100%; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
.doc-preview__img img { max-width: 100%; box-shadow: var(--shadow-sm); background: #fff; }
.doc-preview__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); padding: 24px; text-align: center; }

/* ------------------------------------------------------------------ Schermvullende lijsten (page--full + DataList Fill) */
.page--full { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding-bottom: 16px; }
.page--full > * { flex: none; }
.page--full > .datalist--fill, .page--full > .fill { flex: 1 1 0; min-height: 320px; display: flex; flex-direction: column; margin-bottom: 0; }
.datalist--fill .gridcard, .fill > .gridcard { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.datalist--fill .gridcard > .dxbl-grid, .fill > .gridcard > .dxbl-grid { flex: 1 1 0; min-height: 0; }
.page--full .page__header { margin-bottom: 12px; }

/* Meerdere schermvullende lijsten in één .fill (onder elkaar of naast elkaar), elk in een .fill__col */
.fill--stack { gap: 12px; }
.page--full > .fill--stack { min-height: 640px; }
.fill__col { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; min-height: 0; }
.fill__col > .datalist--fill { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.fill__col > .section-title { flex: none; }
.art-hint { margin: 8px 0 0; }

/* Master/detail naast elkaar in één .fill: smalle zijkolom links, detail rechts (scrolt zelf als nodig) */
.page--full > .fill--split { flex-direction: row; gap: 16px; }
.fill__col--side { flex: 0 0 400px; }
.fill__col--scroll { overflow-y: auto; }
@media (max-width: 1100px) { .page--full > .fill--split { flex-direction: column; min-height: 640px; } .fill__col--side { flex: 1 1 0; } }
.fill__col > .datalist--fill ~ .datalist--fill { margin-top: 12px; }
.page--full > .xsp-fill { min-height: 720px; }
@media (max-width: 1100px) { .page--full > .xsp-fill { min-height: 1200px; } }
.page--full > .otp-card, .page--full > .sms-card { width: 100%; max-width: 560px; margin-top: 0; }
.fill__col--narrow { flex: 0 0 240px; }
.fill__col > .gridcard { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.fill__col > .gridcard > .dxbl-grid { flex: 1 1 0; min-height: 0; }
.fill__col > .uren-planning__side { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.fill__col > .uren-planning__side .uren-emps { flex: 1 1 0; min-height: 0; max-height: none; }
@media (max-width: 1100px) { .fill__col--narrow { flex: none; } .fill__col > .uren-planning__side .uren-emps { max-height: 240px; } }
.fill > .uren-pdf, .fill > .uren-pdf .uren-pdf__frame { min-height: 0; }
.fill > .uren-pdf .uren-pdf__frame { flex: 1 1 0; }
.fill__col > .wb-remarks { flex: none; }
.fill--split > .wb-hours { align-self: flex-start; }
@media (max-width: 1100px) { .fill--split > .wb-hours, .fill--split > .wb-hours.is-open { width: 100%; } }
.fill__col--scroll > * { flex: none; }

/* ------------------------------------------------------------------ WeekCalendar (Components/Shared/WeekCalendar.razor) + Planning */
.fill__col > .wcal { flex: 1 1 0; min-height: 0; }
.wcal {
    position: relative; display: flex; flex-direction: column; min-height: 0;
    background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden; user-select: none; -webkit-user-select: none;
    --wcal-gutter: 52px; --wcal-min-col: 110px;
}
.wcal-scroll { flex: 1 1 0; min-height: 0; overflow: auto; }
.wcal-row {
    display: grid; grid-template-columns: var(--wcal-gutter) repeat(7, minmax(var(--wcal-min-col), 1fr));
    min-width: calc(var(--wcal-gutter) + 7 * var(--wcal-min-col));
}
.wcal-top { position: sticky; top: 0; z-index: 3; background: var(--white); box-shadow: 0 1px 0 var(--slate-200); }
.wcal-gutter { border-right: 1px solid var(--slate-200); }
.wcal-row > .wcal-gutter + * { border-left: 0 !important; }

.wcal-dayhead { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px 6px; border-left: 1px solid var(--slate-200); }
.wcal-dayhead__name { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.wcal-dayhead__date {
    display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px;
    border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--slate-700);
}
.wcal-dayhead.wcal-today .wcal-dayhead__name { color: var(--brand); }
.wcal-dayhead.wcal-today .wcal-dayhead__date { background: var(--brand); color: #fff; font-size: 14px; }
.wcal-dayhead { flex-wrap: wrap; }
.wcal-dayhead__holiday {
    flex-basis: 100%; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis;
    font-size: 11px; font-weight: 600; color: var(--warning, #b26b00);
}
.wcal-dayhead.wcal-holiday, .wcal-allday.wcal-holiday { background: color-mix(in srgb, var(--warning, #b26b00) 8%, #fff); }
.wcal-off {
    position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none;
    background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warning, #b26b00) 10%, transparent) 0 6px, transparent 6px 12px);
}
.wcal-absence {
    position: absolute; z-index: 0; pointer-events: none; overflow: hidden; padding: 2px 4px;
    border-left: 3px solid var(--slate-400, #94a3b8); border-radius: var(--radius-sm);
    background: repeating-linear-gradient(135deg, var(--slate-100) 0 5px, rgba(255, 255, 255, .6) 5px 10px);
    font-size: 11px; line-height: 1.25; color: var(--text-muted);
}
.wcal-absence--holiday {
    border-left-color: var(--warning, #b26b00); color: var(--warning, #b26b00);
    background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warning, #b26b00) 12%, transparent) 0 6px, rgba(255, 255, 255, .6) 6px 12px);
}
.wcal-absence span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }

.wcal-row--allday { border-top: 1px solid var(--slate-100); }
.wcal-allday__label { padding: 7px 6px 0 0; font-size: 11px; line-height: 1.2; text-align: right; color: var(--text-muted); }
.wcal-allday {
    display: flex; flex-direction: column; gap: 2px; min-height: 30px; max-height: 96px; overflow-y: auto; padding: 3px;
    border-left: 1px solid var(--slate-200);
}
.wcal-chip {
    display: flex; align-items: center; gap: 4px; flex: none; padding: 2px 6px; border-radius: 4px; cursor: pointer;
    font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden;
    background: color-mix(in srgb, var(--wcal-accent, var(--slate-500)) 12%, #fff);
    border-left: 3px solid var(--wcal-accent, var(--slate-500));
}
.wcal-chip__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

.wcal-body { position: relative; }
.wcal-times { position: relative; }
.wcal-time {
    position: absolute; right: 6px; transform: translateY(-50%);
    font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wcal-time:first-child { transform: none; padding-top: 2px; }
.wcal-day { position: relative; border-left: 1px solid var(--slate-200); }
.wcal-weekend { background: var(--slate-50); }
.wcal-day.wcal-weekend .wcal-slot { border-top-color: var(--slate-200); }
.wcal-day.wcal-today { background: rgba(223, 36, 73, .03); }
.wcal-slot { border-top: 1px dashed var(--slate-100); }
.wcal-slot--hour { border-top: 1px solid var(--slate-200); }
.wcal-slot:first-child { border-top-color: transparent; }
.wcal-slot:hover { background: var(--brand-50); }

.wcal-item {
    position: absolute; z-index: 1; overflow: hidden; padding: 2px 6px 2px 7px; cursor: pointer;
    border-radius: var(--radius-sm); font-size: 12px; line-height: 1.3; color: var(--text);
    background: color-mix(in srgb, var(--wcal-accent, var(--slate-500)) 11%, #fff);
    border: 1px solid color-mix(in srgb, var(--wcal-accent, var(--slate-500)) 28%, #fff);
    border-left: 3px solid var(--wcal-accent, var(--slate-500));
    box-shadow: var(--shadow-sm);
}
.wcal-item:hover { z-index: 2; box-shadow: var(--shadow); }
.wcal-item.is-selected, .wcal-chip.is-selected { outline: 2px solid var(--brand); outline-offset: -1px; z-index: 2; }
.wcal-item__head { display: flex; align-items: center; gap: 4px; }
.wcal-item__time {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 11px; color: var(--slate-600); font-variant-numeric: tabular-nums;
}
.wcal-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wcal-item__sub {
    overflow: hidden; color: var(--slate-600); word-break: break-word;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.wcal-badge {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--slate-500); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
/* planning met een datum in het verleden (nog niet uitgevoerd): gearceerd, tijd in rood */
.wcal-item--late { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(196, 43, 43, .07) 6px 12px); }
.wcal-item--late .wcal-item__time, .wcal-chip.wcal-item--late .wcal-chip__title { color: var(--danger); }

.wcal-now { position: absolute; left: 0; right: 0; z-index: 2; height: 0; border-top: 2px solid var(--brand); pointer-events: none; }
.wcal-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.wcal-loading {
    position: absolute; top: 10px; right: 14px; z-index: 4; padding: 4px 10px; border-radius: 999px;
    background: var(--slate-700); color: #fff; font-size: 12px; pointer-events: none;
}

.wcal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 6px 0; }
.wcal-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-700); white-space: nowrap; }
.wcal-legend__item::before {
    content: ""; width: 12px; height: 12px; border-radius: 3px;
    background: color-mix(in srgb, var(--wcal-accent, var(--slate-500)) 15%, #fff); border-left: 3px solid var(--wcal-accent, var(--slate-500));
}
.wcal-legend__item--late::before {
    background: repeating-linear-gradient(135deg, #fff 0 3px, rgba(196, 43, 43, .25) 3px 5px); border-left-color: var(--danger);
}
.planning-weeknav, .planning-legend-item { min-width: 0; }

/* ------------------------------------------------------------------ Paginatitel en -knoppen in de topbar (PageHeader) */
.topbar__title { display: flex; align-items: baseline; gap: 12px; min-width: 0; overflow: hidden; }
.topbar__h1 { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; color: var(--text); }
.topbar__subtitle { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__actions:empty { display: none; }
.topbar--planbord { padding-left: 20px; }
@media (max-width: 1100px) { .topbar__subtitle { display: none; } }
.page--full { padding-top: 14px; }

/* ------------------------------------------------------------------ Compactere formulieren (DxFormLayout) */
html body .dxbl-fl { --dxbl-fl-row-spacing: 6px; --dxbl-fl-item-spacing-y: 6px; row-gap: 6px; }
html body .dxbl-fl .dxbl-fl-item, html body .dxbl-fl .dxbl-fl-group-body > .dxbl-row > * { padding-top: 2px !important; padding-bottom: 2px !important; margin-bottom: 0 !important; }
html body .dxbl-fl .dxbl-row { row-gap: 4px; --bs-gutter-y: 4px; }
html body .dxbl-fl .dxbl-fl-ctrl, html body .dxbl-fl .dxbl-fl-cpt { min-height: 0; }
html body .dxbl-fl .dxbl-fl-cpt { padding-top: 4px; padding-bottom: 4px; }

/* Instellingen: bredere kaarten, knoppen even breed, uitleg ernaast op één regel */
.wb-settings { max-width: 1100px !important; width: 100%; }
.wb-settings__action { display: flex !important; align-items: center; gap: 14px; flex-wrap: nowrap !important; }
.wb-settings__action .dxbl-btn { flex: none; width: 240px; justify-content: flex-start; }
.wb-settings__action .hint { flex: 1; min-width: 0; margin: 0 !important; }

/* afwezig: periode over meerdere dagen */
.dash-date--range { border-left: 3px solid #3b82f6; }
.dash-list li.is-today .dash-date { border-color: #93c5fd; background: #eff6ff; }

/* Alle secundaire knoppen (DevExpress Secondary, gevuld of outline) + losse lijstknoppen: lichtgrijs */
.dxbl-btn[class*="-secondary"]:not(.dxbl-btn-link),
.selbar__btn {
    background: var(--slate-100, #f1f5f9) !important; border: 1px solid var(--slate-200, #e2e8f0) !important; color: var(--text, #1e293b) !important;
    box-shadow: none !important;
}
.dxbl-btn[class*="-secondary"]:not(.dxbl-btn-link):hover:not(:disabled),
.selbar__btn:hover:not(:disabled) { background: var(--slate-200, #e2e8f0) !important; border-color: var(--slate-300, #cbd5e1) !important; }
.dxbl-btn[class*="-secondary"]:not(.dxbl-btn-link):active:not(:disabled),
.selbar__btn:active:not(:disabled) { background: var(--slate-300, #cbd5e1) !important; }
.dxbl-btn[class*="-secondary"]:disabled, .selbar__btn:disabled { opacity: .55; }
.dxbl-btn[class*="-secondary"] svg { color: var(--slate-500, #64748b); }

/* Weekkalender: tijdvak selecteren door te slepen */
.wcal-body { user-select: none; -webkit-user-select: none; }
.wcal-body.is-dragging, .wcal-body.is-dragging .wcal-slot, .wcal-body.is-dragging .wcal-item { cursor: ns-resize; }
.wcal-body.is-dragging .wcal-item { pointer-events: none; }
.wcal-selection {
    position: absolute; left: 2px; right: 2px; z-index: 3; pointer-events: none;
    background: rgba(59, 130, 246, .16); border: 1.5px solid #3b82f6; border-radius: 6px;
    display: flex; align-items: flex-start; padding: 3px 6px;
}
.wcal-selection span { font-size: 11px; font-weight: 600; color: #1d4ed8; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 4px; }

/* Weekuren: medewerkerkeuze niet over de hele breedte */
.filterbar .filterbar__item.uren-employee { flex: 0 0 240px !important; width: 240px !important; max-width: 240px; }

/* Documenten: uploadvak onderaan de lijst */
.doc-list__upload { flex: none; padding-top: 10px; border-top: 1px solid var(--slate-100); }

/* Dashboard: kleine actieknoppen per regel (SSL / Azure) */
.dash-rowbtns { display: inline-flex; gap: 2px; margin-left: 6px; flex: none; opacity: .35; transition: opacity .15s; }
.dash-list li:hover .dash-rowbtns, .dash-rowbtns:focus-within { opacity: 1; }
.dash-rowbtn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0;
               border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--slate-500); cursor: pointer; }
.dash-rowbtn:hover:not(:disabled) { background: var(--slate-100); border-color: var(--slate-200); color: var(--text); }
.dash-rowbtn--danger:hover:not(:disabled) { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.dash-rowbtn:disabled { cursor: default; }
.icon.spin { animation: exspin .8s linear infinite; }

/* Losse formulierkaart (SMS, OTP) met de donkere kop zoals bij Instellingen */
.page--full > .form-card { width: 100%; max-width: 640px; margin-top: 0; flex: none; }

/* Uren afgelopen 4 weken: past altijd in het paneel (geen horizontale scrollbalk) */
.dash-hours { table-layout: fixed; width: calc(100% - 16px); margin: 8px; font-size: 11.5px; }
.dash-hours thead th:first-child, .dash-hours tbody th { width: 44px; }
.dash-hours thead th.tot, .dash-hours td.tot { width: 46px; padding-left: 6px; }
.dash-hours td { padding: 3px 1px; }
.dash-hcell { min-width: 0; height: 34px; }
.dash-hcell__i { font-size: 10px; }
.dash-panel__body:has(> .dash-hours) { overflow-x: hidden; }

/* Instellingen: inhoud rechts naast het menu */
.page--full > .set-layout { flex: 1 1 auto; min-height: 0; }
.set-content .wb-settings { max-width: 1100px; }
.set-content > .datalist { max-width: 900px; }
.set-content .ra-layout, .set-content .ra-two { max-width: 1400px; }

/* Dashboard SSL/Azure: regel selecteren (knoppen in de kop), dubbelklik = wijzigen */
.dash-list--select li { cursor: pointer; }
.dash-list--select li.is-selected { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.dash-headbtn:disabled { opacity: .35; cursor: default; background: rgba(255,255,255,.08); }
.set-layout { grid-template-columns: 290px minmax(0, 1fr); }
.set-nav__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .set-layout { grid-template-columns: 1fr; } }

/* Weekuren: totaalregel per dag lichtgrijs vanaf de kolom Uren */
.dxbl-grid td.grid-total-cell, .dxbl-grid .grid-total-cell { background: var(--slate-100, #f1f5f9) !important; font-weight: 600; }

/* Weekkalender: blok verplaatsen / eindtijd slepen */
.wcal-item { cursor: grab; }
.wcal-item__resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.wcal-item__resize::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .15s; }
.wcal-item:hover .wcal-item__resize::after { opacity: .35; }
.wcal-item.is-ghosted { opacity: .35; }
.wcal-selection--move { background: rgba(59, 130, 246, .22); border-style: dashed; z-index: 4; }

/* Datumfilter in de filterrij */
.datefilter.is-invalid .dxbl-text-edit { border-color: #dc2626 !important; box-shadow: 0 0 0 1px #dc2626 inset; }
.datefilter .dxbl-text-edit { width: 100%; }
.wcal-item__resize--top { top: 0; bottom: auto; }
.wcal-item__resize--top::after { top: 2px; bottom: auto; }

/* Abo overzicht: verschilkleuren altijd zichtbaar (ook op geselecteerde/gehoverde regels, zoals in Delphi) */
html body .datagrid td.abo-cell-orange, html body .datagrid .dxbl-grid-selected-row > td.abo-cell-orange { background: #ff8000 !important; color: #fff !important; }
html body .datagrid td.abo-cell-green,  html body .datagrid .dxbl-grid-selected-row > td.abo-cell-green  { background: #80ff80 !important; color: #111 !important; }
html body .datagrid td.abo-cell-cyan,   html body .datagrid .dxbl-grid-selected-row > td.abo-cell-cyan   { background: #80ffff !important; color: #111 !important; }
html body .datagrid td.cell-danger,     html body .datagrid .dxbl-grid-selected-row > td.cell-danger     { background: #ff0000 !important; color: #fff !important; }
html body .datagrid td.cell-warning,    html body .datagrid .dxbl-grid-selected-row > td.cell-warning    { background: #fde047 !important; color: #111 !important; }

/* Bekijken als (simulatie door beheerder) */
.usermenu__sim { padding: 8px 12px 10px; border-top: 1px solid var(--slate-100); display: flex; flex-direction: column; gap: 4px; }
.usermenu__sim label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.usermenu__sim select { width: 100%; padding: 5px 6px; border: 1px solid var(--slate-200); border-radius: 6px; font-size: 13px; background: #fff; }
.usermenu__sim small { color: var(--text-muted); font-size: 11px; line-height: 1.3; }
.simbar { display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: #fef3c7; border-bottom: 1px solid #fcd34d; color: #78350f; font-size: 13px; }
.simbar span { flex: 1; }
.simbar__btn { border: 1px solid #f59e0b; background: #fff; color: #78350f; border-radius: 6px; padding: 4px 10px; font-weight: 600; cursor: pointer; }
.simbar__btn:hover { background: #fffbeb; }

/* Rechten (DVPortal-aanvullingen) */
.ra-main__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--slate-200); }
.ra-fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.ra-fields label, .ra-person label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.ra-fields .ra-grow { flex: 1 1 260px; }
.ra-fields .ra-small { width: 90px; }
.ra-input { padding: 6px 8px; border: 1px solid var(--slate-200); border-radius: 6px; font-size: 13px; color: var(--text); background: #fff; }
.ra-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: 13px !important; color: var(--text) !important; }
.ra-matrix td:first-child { text-align: left; }
.ra-matrix tr.ra-matrix__group td { background: var(--slate-50); font-weight: 600; text-align: left; color: var(--slate-700); }
.ra-rowtoggle { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.ra-rowtoggle:hover { text-decoration: underline; }
.ra-persons__tools { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ra-persons__tools .ra-input { width: 260px; }
.ra-persons { width: 100%; border-collapse: collapse; font-size: 13px; }
.ra-persons th { background: var(--slate-600); color: #fff; font-weight: 600; padding: 7px 10px; text-align: left; }
.ra-persons td { padding: 6px 10px; border-bottom: 1px solid var(--slate-100); }
.ra-persons tbody tr { cursor: pointer; }
.ra-persons tbody tr:hover { background: var(--brand-50); }
.ra-persons .center { text-align: center; }
.ra-scope { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.ra-scope--own { background: var(--slate-100); color: var(--slate-700); }
.ra-scope--loc { background: #dbeafe; color: #1e40af; }
.ra-scope--all { background: #dcfce7; color: #166534; }
.ra-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.ra-person { display: flex; flex-direction: column; gap: 12px; }
.ra-person__block { display: flex; flex-direction: column; gap: 6px; }
.ra-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 22px; }
.pad-x { padding: 0 14px; }

/* Rechten: extra acties netjes in kolommen, links uitgelijnd */
.ra-matrix td.ra-extras-cell { text-align: left; min-width: 360px; }
.ra-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.ra-extras .ra-extra { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-extras__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 4px 0 3px; }
.ra-extras + .ra-extras__title { margin-top: 8px; }
.dxbl-grid td.grid-week-total, .dxbl-grid .grid-week-total { background: var(--slate-200, #e2e8f0) !important; font-weight: 700; }

/* Klantgegevens: alle tabbladen even hoog als Gewerkte uren (filter + grid van 58vh) */
.cust-dialog .dialog-tabbody { min-height: calc(58vh + 90px); }

/* Bekijken als: gele balk telt mee in de hoogte van schermvullende pagina's */
.simbar { height: 38px; box-sizing: border-box; flex: none; white-space: nowrap; overflow: hidden; }
.simbar span { overflow: hidden; text-overflow: ellipsis; }
.main.is-sim .page--full { height: calc(100vh - var(--topbar-h) - 38px); }

/* Rechten → persoon: strak uitgelijnd */
.ra-person { gap: 14px; }
.ra-person > label { font-weight: 600; color: var(--text) !important; font-size: 13px !important; }
.ra-person select.ra-input { font-weight: 400; }
.ra-person__block { gap: 6px; }
.ra-person__block > strong { font-size: 13px; }
.ra-person .ra-check { margin: 0; line-height: 1.35; }
.ra-person .ra-check input { margin: 0; flex: none; width: 15px; height: 15px; accent-color: var(--slate-800); }
.ra-person .ra-radio { align-items: flex-start !important; }
.ra-person .ra-radio input { margin-top: 2px; }
.ra-person .ra-radio b { font-weight: 600; }
.ra-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.ra-grid3--indent { padding-left: 23px; margin-bottom: 2px; }
.ra-grid3 .ra-check span, .ra-grid3 .ra-check { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================== Projecten (overzicht, project, taak) */
.pj-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; flex: 1 1 auto; min-height: 0; }
@media (max-width: 1000px) { .pj-layout { grid-template-columns: 1fr; } }
.pj-side { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 8px; overflow: auto; }
.pj-side__title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 12px 10px 4px; }
.pj-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--slate-200); border-radius: 8px; padding: 0 9px; background: var(--slate-50); color: var(--slate-500); }
.pj-search input { border: 0; background: transparent; padding: 7px 0; font-size: 13px; width: 100%; outline: none; color: var(--text); }
.pj-search--inline { width: 280px; background: #fff; }
.pj-list { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13px;
           color: var(--slate-700); cursor: pointer; text-align: left; border-left: 3px solid transparent; }
.pj-list span:not(.pj-list__count) { flex: 1; }
.pj-list:hover { background: var(--slate-50); }
.pj-list.is-active { background: var(--brand-50); color: var(--brand-900); font-weight: 600; border-left-color: var(--brand); }
.pj-list__count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 20px; }
.pj-list.is-active .pj-list__count { background: var(--brand); color: #fff; }

.pj-main, .pj-panel { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.pj-panel { flex: 1 1 auto; }
.pj-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--slate-200); flex-wrap: wrap; }
.pj-toolbar__spacer { flex: 1; }
.pj-tablewrap { flex: 1 1 auto; overflow: auto; }

.pj-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pj-table thead th { position: sticky; top: 0; z-index: 1; background: var(--slate-50); color: var(--slate-600); font-weight: 600; text-align: left;
                     padding: 9px 10px; border-bottom: 1px solid var(--slate-200); white-space: nowrap; }
.pj-table td { padding: 8px 10px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.pj-table .r { text-align: center; }
.pj-row:hover td { background: #fafbfc; }
.pj-row.is-late td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.pj-row.is-done .pj-name { color: var(--text-muted); text-decoration: line-through; }
.pj-c-exp, .pj-c-fav, .pj-c-check { width: 30px; text-align: center; padding-left: 6px !important; padding-right: 0 !important; }
.pj-exp { border: 0; background: none; cursor: pointer; color: var(--slate-500); font-size: 13px; transition: transform .15s; display: inline-block; padding: 2px 4px; }
.pj-exp.is-open { transform: rotate(90deg); }
.pj-star { border: 0; background: none; cursor: pointer; color: var(--slate-300, #cbd5e1); font-size: 16px; line-height: 1; padding: 2px; }
.pj-star.is-on { color: #f59e0b; }
.pj-star--big { font-size: 22px; }
.pj-name { color: var(--text); font-weight: 600; text-decoration: none; }
.pj-name:hover { color: var(--brand); text-decoration: underline; }
.pj-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.pj-person { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pj-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--slate-700);
             color: #fff; font-size: 10.5px; font-weight: 700; flex: none; }
.pj-late { color: #dc2626; font-weight: 600; }

.pj-status { display: inline-block; min-width: 92px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.pj-status--sm { min-width: 70px; padding: 1px 8px; font-size: 11.5px; }
.pj-status--new { background: #fef3c7; color: #92400e; }
.pj-status--planned { background: #dbeafe; color: #1e40af; }
.pj-status--busy { background: #1f6fb2; color: #fff; }
.pj-status--hold { background: #fed7aa; color: #9a3412; }
.pj-status--hold-rel { background: #fde2e4; color: #9f1239; }
.pj-status--done { background: #dcfce7; color: #166534; }
.pj-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.pj-prio::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--slate-400, #94a3b8); }
.pj-prio--normaal::before { background: #f59e0b; }
.pj-prio--hoog::before { background: #dc2626; }

.pj-bar { position: relative; width: 120px; height: 18px; border-radius: 4px; background: var(--slate-100); overflow: hidden; }
.pj-bar--inline { display: inline-block; vertical-align: middle; margin-left: 8px; width: 100px; }
.pj-bar__fill { position: absolute; inset: 0 auto 0 0; background: #1f6fb2; }
.pj-bar__fill.is-warn { background: #f59e0b; }
.pj-bar__fill.is-over { background: #dc2626; }
.pj-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 600; line-height: 18px; color: var(--slate-800); }

.pj-detailrow > td { background: var(--slate-50); padding: 4px 10px 10px; }
.pj-subtable { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid var(--slate-200); border-radius: 6px; }
.pj-subtable td { padding: 5px 10px; border-bottom: 1px solid var(--slate-100); }
.pj-subtable a { color: var(--text); }
.pj-subtable a.is-done { color: var(--text-muted); text-decoration: line-through; }
.pj-sub-phase { width: 140px; color: var(--text-muted); }

/* projectkop + eigenschappen */
.pj-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; flex-wrap: wrap; }
.pj-back { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--slate-200);
           background: #fff; color: var(--slate-700); text-decoration: none; font-size: 18px; }
.pj-back:hover { background: var(--slate-50); }
.pj-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--slate-800); color: #fff; }
.pj-head__icon--task { background: var(--brand); }
.pj-head__title { flex: 1; min-width: 260px; }
.pj-head__title h2 { margin: 2px 0; font-size: 20px; }
.pj-head__no { font-size: 12.5px; color: var(--slate-600); }
.pj-head__no a { color: var(--slate-700); }
.pj-head__sub { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }
.pj-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pj-props { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--white);
            border: 1px solid var(--slate-200); border-radius: var(--radius); }
.pj-props label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); min-width: 150px; }
.pj-props__stat { display: flex; flex-direction: column; gap: 4px; font-size: 12px; padding: 0 6px; }
.pj-props__stat strong { font-size: 14px; color: var(--text); }
.pj-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--slate-200); margin-bottom: 10px; }
.pj-tabs button { border: 0; background: none; padding: 8px 2px; font: inherit; font-size: 14px; color: var(--slate-600); cursor: pointer; border-bottom: 2px solid transparent; }
.pj-tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.pj-phase td { background: var(--slate-700); color: #fff; font-weight: 600; cursor: pointer; padding: 7px 10px; }
.pj-phase .pj-exp { color: #fff; }
.pj-phase__meta { margin-left: 12px; font-weight: 400; color: #cbd5e1; font-size: 12px; }
.pj-phase__add { margin-left: 12px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 5px; font-size: 11.5px; padding: 1px 8px; cursor: pointer; }
.pj-phase__add:hover { background: rgba(255,255,255,.12); }
.pj-wrap { white-space: pre-wrap; }
.pj-total td { font-weight: 700; background: var(--slate-100); }
.pj-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pj-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.pj-form__wide { grid-column: 1 / -1; }

/* taakpagina */
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .pt-layout { grid-template-columns: minmax(0, 1fr) 320px; } .pt-mid { grid-column: 1; } .pt-right { grid-column: 2; grid-row: 1 / span 2; } }
@media (max-width: 900px) { .pt-layout { grid-template-columns: 1fr; } .pt-right { grid-column: auto; } }
.pt-mid, .pt-right { display: flex; flex-direction: column; gap: 14px; }
.pt-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 12px 14px; }
.pt-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.pt-note { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.pt-note textarea { flex: 1; resize: vertical; }
.pt-item { border: 1px solid var(--slate-200); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.pt-item--time { border-left: 3px solid #1f6fb2; }
.pt-item--note { border-left: 3px solid var(--slate-400, #94a3b8); }
.pt-item--info { border-left: 3px solid #f59e0b; background: #fffbeb; }
.pt-item__head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.pt-item__when { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.pt-item__text { white-space: pre-wrap; font-size: 13px; color: var(--slate-800); }
.pt-tag { padding: 1px 8px; border-radius: 5px; background: #dbeafe; color: #1e40af; font-size: 11.5px; font-weight: 600; }
.pt-tag--note { background: var(--slate-100); color: var(--slate-600); }
.pt-todo-add { display: flex; gap: 6px; margin-bottom: 8px; }
.pt-todo-add input { flex: 1; }
.pt-iconbtn { width: 32px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--slate-100); cursor: pointer; color: var(--slate-700); }
.pt-iconbtn:disabled { opacity: .5; cursor: default; }
.pt-todos { list-style: none; margin: 0; padding: 0; }
.pt-todos li { display: flex; align-items: flex-start; gap: 6px; padding: 6px 2px; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.pt-todos li label { display: flex; align-items: flex-start; gap: 8px; flex: 1; cursor: pointer; }
.pt-todos li input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--slate-800); flex: none; }
.pt-todos li.is-done span { color: var(--text-muted); text-decoration: line-through; }
.pt-todos__by { font-size: 10px; font-weight: 700; color: var(--slate-500); background: var(--slate-100); border-radius: 999px; padding: 1px 6px; }
.pt-todos__del { border: 0; background: none; color: var(--slate-400, #94a3b8); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.pt-todos__del:hover { color: #dc2626; }
.pt-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.pt-dl dt { color: var(--text-muted); }
.pt-dl dd { margin: 0; }
.pt-timer { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pt-timer__clock { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .03em; color: var(--slate-800); }
.pt-form { display: flex; flex-direction: column; gap: 10px; }
.pt-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.pt-form__row { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 8px; }
.pt-form__row--checks { display: flex; gap: 16px; }
.pt-form textarea { resize: vertical; }
.page--full > .pj-layout { flex: 1 1 0; min-height: 420px; }

/* Nieuwe taak: to-do's direct invoeren */
.pj-form__cap { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pj-newtodos { list-style: none; margin: 0 0 6px; padding: 0; max-height: 160px; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: 6px; }
.pj-newtodos li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 13px; border-bottom: 1px solid var(--slate-100, #f1f5f9); }
.pj-newtodos li:last-child { border-bottom: 0; }
.pj-newtodos li > span:nth-child(2) { flex: 1 1 auto; }
.pj-newtodos__box { width: 14px; height: 14px; border: 1.5px solid var(--slate-300, #cbd5e1); border-radius: 3px; flex: 0 0 auto; }
.pj-newtodos__del { border: 0; background: none; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.pj-newtodos__del:hover { color: var(--danger, #dc2626); }
.pj-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 13px !important; color: var(--text) !important; }
.pj-check input { margin-top: 3px; }
.pj-opentasks { margin: 0; padding-left: 18px; font-size: 13px; max-height: 220px; overflow-y: auto; }
.pj-opentasks li { padding: 2px 0; }
.pj-followups { display: flex; flex-direction: column; gap: 4px; }
.pj-followups .pj-check { margin: 0; }
.pj-fu { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle; }
.pj-planned { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle; white-space: nowrap; text-decoration: none; }
.pj-planned.is-future { background: #dcfce7; color: #166534; }
dd > .pj-planned, .dash-row__sub > .pj-planned { margin-left: 0; }
a.pj-planned:hover { filter: brightness(.95); }

/* Projecttemplates */
.pj-side__title { display: flex; align-items: center; justify-content: space-between; }
.pj-side__back { font-size: 11.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); text-decoration: none; }
.pj-side__back:hover { color: var(--primary, #c8102e); }
.pj-side__add { padding: 12px 4px 4px; }
.tpl-body { padding: 14px 16px 18px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.tpl-head { max-width: 900px; margin-bottom: 16px; }
.tpl-tasks td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
.tpl-tasks .ra-input { width: 100%; }
.tpl-tasks textarea.ra-input { resize: vertical; font-size: 12.5px; }
.tpl-sub { margin-top: 6px; }
.tpl-fu { display: flex !important; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px !important; white-space: nowrap; }
.tpl-fu input { margin: 0; }
.tpl-actions { white-space: nowrap; text-align: right; }
.tpl-btn { width: 26px; height: 26px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); color: var(--slate-600); cursor: pointer; font-size: 13px; line-height: 1; }
.tpl-btn:hover:not(:disabled) { background: var(--slate-100, #f1f5f9); }
.tpl-btn:disabled { opacity: .4; cursor: default; }
.tpl-btn--del:hover:not(:disabled) { color: var(--danger, #dc2626); border-color: var(--danger, #dc2626); }
.tpl-add { margin-top: 10px; }
.dash-list > li.dash-click { cursor: pointer; }
.dash-list > li.dash-click:hover { background: var(--slate-50, #f8fafc); }
.pj-plan { margin-left: 6px; padding: 1px 5px; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--slate-400, #94a3b8); cursor: pointer; vertical-align: middle; line-height: 1; opacity: 0; }
.pj-row:hover .pj-plan { opacity: 1; }
.pj-plan:hover { color: var(--primary, #c8102e); border-color: var(--slate-200); background: var(--white); }
.dash-list > li.is-today .dash-row__meta { color: #d97706; font-weight: 600; }
.dash-list > li.dash-click.is-expired .dash-row__meta { font-weight: 600; }

/* Management: uren alle medewerkers */
.page--full > .mh-layout { flex: 1 1 0; min-height: 360px; display: flex; gap: 16px; }
.mh-wrap { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.mh-layout.has-detail .mh-wrap { flex: 1 1 55%; }
.mh-detail { flex: 0 0 44%; min-width: 380px; display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.mh-detail__grid { flex: 1 1 0; min-height: 0; border: 0; border-radius: 0; }
.mh-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.mh-close:hover { color: var(--brand); }
@media (max-width: 1200px) { .page--full > .mh-layout { flex-direction: column; } .mh-detail { flex: 0 0 auto; min-height: 420px; min-width: 0; } }
.mh-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mh-table th, .mh-table td { padding: 6px 10px; text-align: center; border-bottom: 1px solid var(--slate-100); border-right: 1px solid var(--slate-100); white-space: nowrap; }
.mh-table thead th { position: sticky; top: 0; z-index: 2; background: var(--slate-700); color: #fff; font-weight: 600; min-width: 72px; }
.mh-table thead .mh-loc { font-weight: 400; font-size: 10.5px; opacity: .7; }
.mh-table .mh-week { position: sticky; left: 0; z-index: 1; background: var(--slate-50); text-align: left; font-weight: 600; color: var(--slate-700); }
.mh-table thead .mh-week { z-index: 3; background: var(--slate-700); color: #fff; }
.mh-table tbody .mh-loc { font-weight: 400; font-size: 10.5px; color: var(--text-muted); }
.mh-table td { min-width: 72px; }
.mh-cell { cursor: pointer; transition: box-shadow .1s; }
.mh-cell:hover { box-shadow: inset 0 0 0 2px var(--slate-300); }
.mh-cell.is-selected { box-shadow: inset 0 0 0 2px var(--brand); }
.mh-val { display: block; font-weight: 600; color: var(--text); }
.mh-int { display: block; font-size: 10.5px; font-style: italic; color: var(--slate-500); }
/* rustige grijstinten (huisstijl-slate), rood alleen voor selectie en huidige week */
.mh-h1 { background: #f6f8f9; }
.mh-h2 { background: #e8edf0; }
.mh-h3 { background: #d4dce1; }
.mh-h4 { background: #b9c5cd; }
.mh-h4 .mh-int { color: var(--slate-700); }
.mh-table .mh-total { font-weight: 700; background: var(--slate-100); color: var(--text); }
.mh-table thead .mh-total { background: var(--slate-800); color: #fff; }
.mh-table .mh-total--int, .mh-table .mh-foot-int { font-style: italic; color: var(--slate-500); }
.mh-table tbody tr.is-current .mh-week { color: var(--brand); }
.mh-table tfoot td, .mh-table tfoot th { background: var(--slate-100); font-weight: 600; }
.mh-table tfoot tr:first-child td, .mh-table tfoot tr:first-child th { border-top: 2px solid var(--slate-300); }
.mh-legend { padding: 10px 12px; }
/* Uren medewerkers: weeknummers links en totalen rechts donkerder dan de cellen, lichter dan de kop */
.mh-table tbody .mh-week, .mh-table tfoot .mh-week { background: var(--slate-200); color: var(--slate-800); }
.mh-table tbody .mh-total, .mh-table tfoot .mh-total { background: var(--slate-200); color: var(--slate-800); }
.mh-table tbody .mh-total .mh-int, .mh-table .mh-total--int { color: var(--slate-600); }
.mh-table tbody .mh-week .mh-loc { color: var(--slate-600); }
.mh-table tbody .mh-week, .mh-table tbody .mh-total { border-bottom-color: #cbd3d9; }
/* Dashboard-urenpaneel: dezelfde grijstinten als Management → Uren medewerkers */
.dash-hcell.h-1, .dash-hours__scale i.h-1 { background: #f6f8f9; border-color: #e3e8ec; }
.dash-hcell.h-2, .dash-hours__scale i.h-2 { background: #e8edf0; border-color: #d4dce1; }
.dash-hcell.h-3, .dash-hours__scale i.h-3 { background: #d4dce1; border-color: #bfcad1; color: var(--text); }
.dash-hcell.h-4, .dash-hours__scale i.h-4 { background: #b9c5cd; border-color: #a3b2bc; color: var(--text); }
.dash-hcell.h-3 .dash-hcell__i, .dash-hcell.h-4 .dash-hcell__i { color: var(--slate-700); }
/* Uren medewerkers: tussentotaal per locatie/team */
.mh-table .mh-sub { background: #e4e9ec; color: var(--slate-800); border-right: 2px solid var(--slate-300); }
.mh-table thead .mh-sub { background: var(--slate-600); color: #fff; border-right-color: var(--slate-600); }
.mh-table .mh-sub .mh-val { font-weight: 700; }
.mh-table .mh-sub .mh-int { color: var(--slate-600); }
.mh-table tfoot td .mh-val { font-weight: 600; }
.dxbl-popup .me-auto, .me-auto { margin-right: auto !important; }

/* Uren medewerkers – rustige opzet: witte cellen, balkje per cel, lichte tussentotalen */
.mh-table td, .mh-table th { border-right: 0; border-bottom: 1px solid var(--slate-100); }
.mh-table .mh-h0, .mh-table .mh-h1, .mh-table .mh-h2, .mh-table .mh-h3, .mh-table .mh-h4 { background: var(--white); }
.mh-table .mh-h4 .mh-val, .mh-table .mh-h4 .mh-int { color: inherit; }
.mh-table tbody tr:nth-child(even) td.mh-cell { background: #fbfcfc; }
.mh-table tbody tr:hover td.mh-cell { background: var(--slate-50); }
.mh-cell { position: relative; padding-bottom: 10px !important; }
.mh-cell .mh-val { color: var(--text); }
.mh-bar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--slate-100); display: flex; overflow: hidden; }
.mh-bar i { display: block; height: 100%; }
.mh-bar__c { background: var(--slate-700); }
.mh-bar__i { background: var(--slate-300); }
.mh-cell.is-selected { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-50) !important; }
/* kop: één kleur; tussentotalen en totaal herkenbaar aan een scheidingslijn */
.mh-table thead th, .mh-table thead .mh-sub, .mh-table thead .mh-week { background: var(--slate-700); color: #fff; border-right: 0; }
.mh-table thead .mh-total { background: var(--slate-800); }
.mh-table .mh-sub { background: var(--slate-50); color: var(--text); border-left: 1px solid var(--slate-200); border-right: 2px solid var(--slate-200); }
.mh-table thead .mh-sub { border-left-color: var(--slate-600); border-right-color: var(--slate-600); }
.mh-table tbody .mh-total, .mh-table tfoot .mh-total { background: var(--slate-100); color: var(--text); border-left: 2px solid var(--slate-200); }
.mh-table tbody .mh-week, .mh-table tfoot .mh-week { background: var(--white); color: var(--text); border-right: 1px solid var(--slate-200); }
.mh-table tbody .mh-week .mh-loc { color: var(--text-muted); }
.mh-table tbody tr.is-current .mh-week { color: var(--brand); }
.mh-table tfoot td, .mh-table tfoot th { background: var(--slate-50); }
.mh-table tfoot .mh-week { background: var(--slate-50); }

/* Taken templates */
.tt-table td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.tt-desc { white-space: pre-line; max-width: 720px; }
.tt-kind { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 20px; }
.tt-kind--ed { background: var(--slate-100); color: var(--slate-700); }
.tt-kind--co { background: var(--info-50); color: var(--info); }
.tt-kind--ch { background: var(--success-50); color: var(--success); }
.tt-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px 4px 0; padding: 0 8px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); font-size: 12px; line-height: 20px; }
.tt-chip--edit button { border: 0; background: none; padding: 0 0 0 2px; color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1; }
.tt-chip--edit button:hover { color: var(--danger); }
.tt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 6px 8px 2px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); min-height: 38px; }
.tt-chipinput { flex: 1 1 140px; border: 0; outline: 0; padding: 2px 4px 6px; font: inherit; font-size: 13px; }
.tt-presets { margin-top: 6px; font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tt-presets button { border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 999px; padding: 1px 10px; font-size: 12px; cursor: pointer; color: var(--text); }
.tt-presets button:hover { border-color: var(--slate-300); background: var(--white); }
.tt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tt-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); cursor: pointer; text-align: left; font: inherit; }
.tt-seg button strong { font-size: 13px; color: var(--text); }
.tt-seg button small { font-size: 11.5px; color: var(--text-muted); }
.tt-seg button:hover { border-color: var(--slate-300); }
.tt-seg button.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-50); }
.tt-assets { align-self: end; padding-bottom: 8px; }
.tt-actions { white-space: nowrap; text-align: right; }
.tt-actions .tpl-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }

/* Taken: templates toewijzen door te klikken */
.tt-assign { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .tt-assign { grid-template-columns: 1fr; } }
.tt-assign__col { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.tt-assign__col:first-child { border-top: 3px solid var(--brand); }
.tt-assign__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); }
.tt-assign__head .muted { margin-left: auto; }
.tt-assign__search { margin-left: auto; max-width: 220px; }
.tt-assign__list { display: flex; flex-direction: column; padding: 6px; gap: 4px; max-height: 60vh; overflow-y: auto; }
.tt-assign__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: var(--text); }
.tt-assign__item:hover { background: var(--slate-50); border-color: var(--slate-200); }
.tt-assign__item.is-assigned { background: var(--brand-50); }
.tt-assign__item.is-assigned:hover { border-color: #f3c0cb; }
.tt-assign__name { flex: 1 1 auto; }
.tt-assign__item:disabled { opacity: .6; cursor: wait; }
.tt-assign__n { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.tt-assign__go { width: 18px; text-align: center; color: var(--slate-500); font-weight: 600; flex: 0 0 auto; }
.tt-assign__item:hover .tt-assign__go { color: var(--brand); }
.tt-assign__item.is-assigned svg { color: var(--brand); flex: 0 0 auto; }
.tt-chipadd { flex: 0 0 auto; margin: 0 0 4px 4px; padding: 2px 10px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--slate-50); font: inherit; font-size: 12px; cursor: pointer; color: var(--text); }
.tt-chipadd:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--white); }
.tt-chipadd:disabled { opacity: .5; cursor: default; }


/* Templates toewijzen: kop zoals de formuliergroepen (donker leisteen, witte tekst, rode accentstreep) */
.tt-assign__col:first-child { border-top: 1px solid var(--slate-200); }
.tt-assign__head { position: relative; background: var(--slate-700); border-bottom-color: var(--slate-700); color: #fff; padding: 10px 12px 10px 22px; }
.tt-assign__head::before { content: ""; position: absolute; left: 10px; top: 50%; width: 3px; height: 14px; margin-top: -7px; border-radius: 2px; background: var(--brand); }
.tt-assign__head strong { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; }
.tt-assign__head .muted { color: rgba(255, 255, 255, .7) !important; }
.tt-assign__head .pj-list__count { background: rgba(255, 255, 255, .18); color: #fff; }
.tt-assign__head .pj-search { background: #fff; }
.tt-assign__item.is-assigned { background: var(--slate-50); border-color: var(--slate-200); }
.tt-assign__item.is-assigned:hover { border-color: var(--slate-300); background: var(--white); }
/* Taken: relatielijst als zijlijst */
.fill__col--side > .tt-custs { flex: 1 1 0; min-height: 0; overflow-y: auto; }
.tt-cust { align-items: center; }
.tt-cust__name { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; text-align: left; }
.tt-cust__name small { font-size: 11px; color: var(--text-muted); }
/* Taken: relatie met project */
.tt-noproject { color: var(--warning) !important; font-weight: 500; }
.tt-custhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tt-custhead .section-title { margin: 0 0 2px; }
.tt-custhead__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.tt-cust__name small { display: flex; align-items: center; gap: 6px; flex-direction: row; }
.tt-tag-warn { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--warning-50); color: var(--warning); font-size: 10.5px; font-weight: 600; line-height: 16px; }
/* Taken: knoppen bovenin de relatielijst, zoals de lijstknoppen elders (+ Nieuw, wijzigen, verwijderen) */
.tt-sidebar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 2px 2px 10px; }
.tt-sidebar-tools > .dxbl-btn-primary, .tt-sidebar-tools > button:first-child { margin-right: auto; }
.pj-main.tt-main { padding: 14px 16px; overflow: auto; }
.pj-main.tt-main > .dash-empty { margin: auto; }
.tt-cust__name small span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Taken: toewijzen compacter (niet over de hele breedte) */
.tt-assign { grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: start; }
@media (max-width: 1000px) { .tt-assign { grid-template-columns: minmax(0, 560px); } }
.tt-assign__list { padding: 4px; gap: 2px; max-height: 62vh; }
.tt-assign__item { padding: 6px 10px; font-size: 12.5px; }
.tt-assign__head { padding-top: 8px; padding-bottom: 8px; }
.tt-assign__item:not(.is-assigned) .tt-assign__n { opacity: .8; }
/* Voortgang bij certificaten controleren */
.ssl-progress { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; padding: 4px 10px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--slate-50); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.ssl-progress__spin { width: 14px; height: 14px; border: 2px solid var(--slate-300); border-top-color: var(--brand); border-radius: 50%; animation: ssl-spin .8s linear infinite; }
@keyframes ssl-spin { to { transform: rotate(360deg); } }
.ssl-progress__bar { width: 110px; height: 6px; border-radius: 3px; background: var(--slate-200); overflow: hidden; }
.ssl-progress__bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.sidebar__brand-logo { width: 34px; height: 34px; flex: none; object-fit: contain; }
.sidebar__footer { font-variant-numeric: tabular-nums; }

/* FocusOnNavigate zet focus op de h1: geen focuskader tonen */
h1:focus, h1:focus-visible { outline: none; }

/* Maildomeinen (SPF/DMARC/DKIM): rustige tinten, geen felle kleuren */
html body .datagrid td.mail-ok,   html body .datagrid .dxbl-grid-selected-row > td.mail-ok   { background: #f0fdf4 !important; color: #166534 !important; }
html body .datagrid td.mail-warn, html body .datagrid .dxbl-grid-selected-row > td.mail-warn { background: #fffbeb !important; color: #92400e !important; }
html body .datagrid td.mail-err,  html body .datagrid .dxbl-grid-selected-row > td.mail-err  { background: #fef2f2 !important; color: #991b1b !important; }
.mail-conn { font-size: 12.5px; margin-right: 4px; white-space: nowrap; }

.mail-detail { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mail-detail__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 13px; }
.mail-detail__row > span { color: var(--slate-500); font-weight: 600; }
.mail-detail__row code { display: block; margin-top: 4px; padding: 6px 8px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 4px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.mail-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--slate-100); color: var(--slate-600); }
.mail-badge--ok { background: #dcfce7; color: #166534; }
.mail-badge--warn { background: #fef3c7; color: #92400e; }
.mail-badge--err { background: #fee2e2; color: #991b1b; }
.mail-hist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mail-hist th, .mail-hist td { padding: 5px 8px; border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: top; }
.mail-hist th { color: var(--slate-500); font-weight: 600; }
.mail-hist__remarks { color: var(--slate-600); }

/* Projecten: filterrij onder de kolomkoppen (zelfde gedrag als de filterrij van de DataList) */
.pj-table thead tr.pj-filterrow th { top: 37px; padding: 4px 6px; background: #fff; }
.pj-filterrow input { width: 100%; min-width: 60px; height: 26px; padding: 2px 6px; font: inherit; font-size: 12px; font-weight: 400;
                      border: 1px solid var(--slate-200); border-radius: 4px; background: #fff; color: var(--text); }
.pj-filterrow input:focus { outline: none; border-color: var(--slate-400, #94a3b8); }

/* Groepskoppen in lijsten (bijv. "Licentie: ...", "Afdeling: ...") iets donkerder zodat ze opvallen */
html body .datagrid .dxbl-grid-group-row > td { background: var(--slate-100) !important; color: var(--slate-700, #334155) !important; font-weight: 600; }
html body .datagrid tr.grp-top > td, html body .datagrid .grp-top > td { background: var(--slate-200) !important; color: var(--slate-800, #1f2937) !important; }
/* Dashboard: SharePoint-opslag (oranje = bijna vol, rood = overschreden) */
.dash-status.is-warn { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.dash-tag--bad { background: var(--danger-50); color: var(--danger); font-weight: 600; }

/* roostervrij / verlof / ziek / feestdag in urenoverzichten */
.dash-hcell { position: relative; }
.dash-hcell.is-off { background: repeating-linear-gradient(135deg, var(--slate-100) 0 5px, #fff 5px 10px); }
.dash-hcell__mark { font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.mh-off { display: block; font-size: 10px; color: var(--slate-500); white-space: nowrap; }
.dash-tag--holiday { background: color-mix(in srgb, var(--warning, #b26b00) 12%, #fff); color: var(--warning, #b26b00); font-weight: 600; }

/* herhalende planning (terugkeerpatroon / reeks) */
.rec-box { border: 1px solid var(--slate-200); border-radius: var(--radius-sm, 6px); padding: 8px 12px 10px; margin: 0 0 10px; }
.rec-box legend { width: auto; float: none; padding: 0 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rec-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rec-row > label { font-size: 13px; color: var(--text-muted); }
.rec-time { width: 110px; }
.rec-num { width: 64px; display: inline-block; padding: 2px 6px; margin: 0 4px; }
.rec-sel { width: auto; display: inline-block; padding: 2px 6px; margin: 0 4px; }
.rec-pattern { display: flex; gap: 16px; }
.rec-kinds { display: flex; flex-direction: column; gap: 6px; min-width: 120px; padding-right: 14px; border-right: 1px solid var(--slate-200); }
.rec-detail { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rec-radio { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin: 2px 0; }
.rec-line { font-size: 13px; }
.rec-days { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 12px; font-size: 13px; }
.rec-day { display: flex; align-items: center; gap: 5px; }
.rec-summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; background: var(--slate-50); font-size: 13px; }
.rec-intro { margin: 0 0 10px; font-size: 13px; }
.rec-scopes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rec-note { line-height: 1.4; }
.hl-series { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; border-radius: 6px; background: var(--brand-50, #fdeef1); font-size: 13px; }
.hl-series button { margin-left: auto; }

/* Beheeroverzicht: statuscellen als bolletje i.p.v. getal */
html body .datagrid td.bo-status { font-size: 0 !important; }
html body .datagrid td.bo-status::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }

/* ---------- Backups-dashboard (laatste 14 Veeam-runs per job) */
.bk-search { height: 32px; padding: 0 10px; border: 1px solid var(--slate-200); border-radius: 6px; font: inherit; }
.bk-table td { vertical-align: middle; }
.bk-table .num { text-align: center; }
.bk-hint { font-weight: 400; font-size: 11px; }
.bk-bar { display: inline-flex; gap: 3px; }
.bk-cell {
    display: inline-block; width: 16px; height: 22px; border-radius: 3px; border: 0; padding: 0;
    background: var(--slate-200); cursor: default; vertical-align: middle;
}
button.bk-cell { cursor: pointer; transition: transform .08s; }
button.bk-cell:hover { transform: scale(1.18); }
.bk-cell.is-selected { outline: 2px solid #1d2b36; outline-offset: 1px; }
.bk-cell--ok { background: #2fa35a; }
.bk-cell--warn { background: #f0a020; }
.bk-cell--err { background: #d93838; }
.bk-cell--run { background: repeating-linear-gradient(45deg, #7aa7d6, #7aa7d6 4px, #a9c7e8 4px, #a9c7e8 8px); }
.bk-cell--none { background: #9aa6ae; }
.bk-cell--empty { background: transparent; border: 1px dashed var(--slate-200); }
.bk-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; }
.bk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend .bk-cell { width: 12px; height: 14px; }
.bk-detail__status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.bk-detail__status--ok { background: #2fa35a; }
.bk-detail__status--warn { background: #f0a020; }
.bk-detail__status--err { background: #d93838; }
.bk-detail__status--run { background: #4f86c6; }
.bk-detail__status--none { background: #9aa6ae; }
.bk-detail .simple-table th { width: 130px; }
.bk-detail__msg { margin-top: 12px; white-space: pre-wrap; }
.bk-detail__raw { margin-top: 12px; }
.bk-detail__raw pre { max-height: 260px; overflow: auto; background: #f6f8f9; padding: 8px; border-radius: 6px; font-size: 11px; }
/* backups: omgeving (backupserver / Veeam Data Cloud) als tag achter "Waar draait het" */
.bk-env { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.bk-env--own { background: #e6eef5; color: #2b4a63; }
.bk-env--abcom { background: #f3e8fb; color: #6a2f8f; }
.bk-env--cloud { background: #dcfce7; color: #166534; }
.bk-org { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bk-org--dv { background: #e6eef5; color: #2b4a63; }
.bk-org--abcom { background: #f3e8fb; color: #6a2f8f; }

/* ---------- Instellingen → Achtergrondtaken */
.bt-task { padding: 12px 16px; border-top: 1px solid var(--slate-200); }
.bt-task:first-of-type { border-top: 0; }
.bt-task__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bt-task__actions { margin-left: auto; }
.bt-task__table { margin-top: 8px; }
.bt-task__table th { width: 150px; }
.bt-imports { margin: 8px 0 4px; }
.pad-x { padding: 8px 16px 0; }
.bt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9aa6ae; vertical-align: middle; }
.bt-dot--ok { background: #2fa35a; }
.bt-dot--warn { background: #f0a020; }
.bt-dot--err { background: #d93838; }
.bt-dot--run { background: #4f86c6; animation: bt-pulse 1s infinite alternate; }
.bt-dot--wait { background: #c8d0d5; }
.bt-dot--off { background: #e3e7ea; border: 1px solid #c8d0d5; }
@keyframes bt-pulse { from { opacity: 1; } to { opacity: .35; } }
.bk-org--doetinchem { background: #e6eef5; color: #2b4a63; }
.bk-org--goor { background: #e7f4ea; color: #24603a; }
.bk-org--onbekend { background: #f1f3f4; color: #6b7780; }
.dash-kpi.is-ok { border-color: #bfe3cd; background: var(--success-50); color: #1b5e37; }
.dash-kpi.is-ok .dash-kpi__num { color: var(--success); }
.dash-kpi:not([href]) { cursor: default; }
.dash-kpi.is-warn { border-color: #f3dca4; background: #fff8e6; color: #7a5200; }
.dash-kpi.is-warn .dash-kpi__num { color: var(--warning); }
.dash-kpi__sep { color: var(--slate-300); }
.dash-kpi .dash-kpi__num--err { color: var(--brand); }
.dash-kpi .dash-kpi__num--warn { color: var(--warning); }
.dash-kpi .dash-kpi__num--info { color: var(--slate-500); }
.bt-dot--pulse { animation: bt-pulse 1s infinite alternate; }
.bk-bulk { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.bk-bulk__row { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---------- Dashboard: statustegels bovenaan (groen = in orde, oranje = aandacht, rood = actie) */
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.dash-tiles__title { font-size: 14px; font-weight: 600; color: var(--text); margin: 4px 0 8px; }
.dash-tile {
    display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--slate-200); background: var(--white); color: var(--text); text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.dash-tile[href]:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.dash-tile:not([href]) { cursor: default; }
.dash-tile__cat { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dash-tile__main { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.dash-tile__main b { font-size: 28px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--white); border: 1px solid var(--slate-200); white-space: nowrap; }
.dash-chip--err { color: var(--brand); border-color: #f3c3cd; }
.dash-chip--warn { color: #b26b00; border-color: #f3dca4; }
.dash-chip--info { color: #8a5a00; border-color: #f3dca4; }
.dash-chip--ok { color: var(--success); border-color: #bfe3cd; }
.dash-chip--tag { color: var(--text-muted); }
.dash-tile.is-hot { background: #fdf0f2; border-color: #f3c3cd; }
.dash-tile.is-hot .dash-tile__main b { color: var(--brand); }
.dash-tile.is-warn { background: #fff8e6; border-color: #f3dca4; }
.dash-tile.is-warn .dash-tile__main b { color: var(--warning); }
.dash-tile.is-ok { background: var(--success-50); border-color: #bfe3cd; }
.dash-tile.is-ok .dash-tile__main b, .dash-tile.is-ok .dash-tile__main { color: var(--success); }
.bk-dayruns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.bk-dayrun { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--slate-200); border-radius: 999px; background: var(--white); font-size: 12px; cursor: pointer; }
.bk-dayrun .bk-cell { width: 10px; height: 12px; }
.bk-dayrun.is-selected { border-color: #1d2b36; font-weight: 600; }
.data-asof { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; align-self: center; }
.data-asof b { font-weight: 600; }
.data-asof--old { color: var(--danger); }
.period-combo { width: 180px; }
/* Instellingen → Achtergrondtaken: één regel per taak */
.bt-tasks { margin: 4px 0 8px; }
.bt-tasks td { vertical-align: top; }
.bt-tasks .c { text-align: center; }
.bt-tasks .nowrap { white-space: nowrap; }
.bt-tasks__name { min-width: 260px; }
.bt-tasks__name .hint { margin-top: 2px; }

/* =====================================================================
   Wat is nieuw (melding na inloggen + Instellingen → Wat is nieuw)
   ===================================================================== */
.rn-list { display: flex; flex-direction: column; }
.rn-item { position: relative; padding: 16px 20px 18px 28px; border-top: 1px solid var(--slate-200); }
.rn-item:first-child { border-top: 0; }
.rn-item::before { content: ""; position: absolute; left: 12px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); }
.rn-item.is-unread::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(223, 36, 73, .15); }
.rn-item.is-draft { background: var(--slate-50); }
.rn-item__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.rn-item__date { font-weight: 600; }
.rn-item__actions { margin-left: auto; display: flex; gap: 4px; }
.rn-item__title { margin: 6px 0 4px; font-size: 16px; }
.rn-item__body { color: var(--text); font-size: 14px; line-height: 1.55; }
.rn-item__body p { margin: 0 0 6px; }
.rn-item__body ul { margin: 4px 0 0; padding-left: 20px; }
.rn-item__body li { margin: 2px 0; }
.rn-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--slate-100); color: var(--slate-600); }
.rn-tag--nieuw { background: linear-gradient(90deg, #F26B21, var(--brand)); color: #fff; }
.rn-tag--verbeterd { background: #fff1e0; color: #a5520a; }
.rn-tag--opgelost { background: #e6f4ec; color: var(--success); }
.rn-tag--draft { background: #ffe58a; color: #6b4b00; }
.rn-tag--new { background: var(--brand-50); color: var(--brand); }
.rn-popup .rn-list { max-height: min(60vh, 560px); overflow-y: auto; margin: 0 -16px; }
.rn-popup__intro { margin-bottom: 6px; color: var(--text-muted); }
.rn-settings__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* Bestandsvenster (FileViewer): pdf/afbeelding binnen DVPortal */
.file-viewer .dxbl-modal-body { padding: 0; display: flex; }
.file-viewer__frame { flex: 1; width: 100%; height: 100%; min-height: 70vh; border: 0; background: var(--slate-100); }
.file-viewer__img { flex: 1; display: grid; place-items: center; overflow: auto; background: var(--slate-100); padding: 16px; }
.file-viewer__img img { max-width: 100%; max-height: 100%; }

/* Cel waar je op kunt klikken voor details (bijv. MS365 → Zonder MFA) */
.cell-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.mfa-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mfa-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--slate-50); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* Aantal regels links in de werkbalk van een lijst */
.datalist__count { font-size: 13px; white-space: nowrap; align-self: center; }
.bk-link__combo { width: min(420px, 100%); }

/* Backups: mail over een run */
.bk-mail { display: flex; flex-direction: column; gap: 6px; }
.bk-mail label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.bk-mail__quick { display: flex; gap: 6px; }
.bk-mail__quick .dash-chip { cursor: pointer; border: 0; }
.bk-mailbtn { margin-right: auto; }
.bk-mail__table { border-collapse: collapse; font-size: 13px; }
.bk-mail__table th { text-align: left; font-weight: 500; color: var(--text-muted); padding: 4px 16px 4px 0; white-space: nowrap; vertical-align: top; border-bottom: 1px solid var(--slate-100); }
.bk-mail__table td { padding: 4px 0; border-bottom: 1px solid var(--slate-100); }

/* ---------- Nieuws voor collega's (dashboard, bovenbalk, Instellingen → Nieuws) */
.newsbtn { position: relative; color: var(--brand); }
.newsbtn__count {
    position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.newsbtn .icon { animation: news-ring 2.4s ease-in-out 3; transform-origin: 50% 2px; }
@keyframes news-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }

.news-list > li.is-unread { background: var(--brand-50); border-left-color: var(--brand); }
.news-list > li.is-unread .dash-row__main { font-weight: 600; color: var(--brand-900); }
.news-list .rn-tag { margin-right: 4px; font-size: 10px; padding: 1px 6px; vertical-align: 1px; }
.news-list__img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; background: var(--slate-100); box-shadow: 0 0 0 1px var(--slate-200); }
.dash-panel--news .dash-panel__headextra { gap: 6px; }
.news-badge { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); }
    display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
    padding: 10px 12px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; cursor: pointer;
    font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.news-popup .dxbl-modal-content, .news-popup .dxbl-popup-content { border: 0; border-radius: 12px; overflow: hidden; }
.news-popup .dxbl-modal-body { padding: 0 !important; }
.news-view { display: flex; flex-direction: column; max-height: min(86vh, 900px); }
.news-view__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; background: var(--slate-700); color: #fff; box-shadow: inset 0 -3px 0 var(--brand); flex: none; }
.news-view__icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand); color: #fff; flex: none; }
.news-view__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-view__titles h2 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; line-height: 1.25; }
.news-view__titles span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.news-view__titles span::first-letter { text-transform: uppercase; }
.news-view__close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; flex: none; }
.news-view__close:hover { background: rgba(255, 255, 255, .24); }
.news-view__body { padding: 20px 24px; overflow-y: auto; font-size: 15px; line-height: 1.6; }
.news-view__body p { margin: 0 0 10px; }
.news-view__body p:has(> br:only-child) { margin: 0; height: .5em; }
.news-view__body img { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 10px; box-shadow: 0 2px 10px rgba(16, 24, 32, .12); }
.news-view__body a { color: var(--brand); font-weight: 500; }
.news-view__body h1, .news-view__body h2, .news-view__body h3 { margin: 14px 0 6px; line-height: 1.3; }
.news-view__body ul, .news-view__body ol { margin: 4px 0 10px; padding-left: 22px; }
.news-view__body table { border-collapse: collapse; margin: 10px 0; }
.news-view__body td, .news-view__body th { border: 1px solid var(--slate-200); padding: 4px 8px; }
.news-view__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--slate-200); background: var(--slate-50); flex: none; }
.news-view__pos { font-size: 12px; color: var(--text-muted); }
.news-view__done { margin-left: auto; }
.icon--flip { transform: scaleX(-1); }
.news-popup__body img { max-width: 100%; height: auto; border-radius: 8px; }
.news-popup__body h1, .news-popup__body h2, .news-popup__body h3 { margin: 10px 0 6px; }
.news-popup__body table { border-collapse: collapse; }
.news-popup__body td, .news-popup__body th { border: 1px solid var(--slate-200); padding: 4px 8px; }

.news-admin__table td { vertical-align: top; }
.news-admin__thumb { width: 56px; }
.news-admin__thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.news-admin__excerpt { font-size: 12px; margin-top: 2px; }
.news-admin__btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); color: var(--slate-600); cursor: pointer; margin-left: 4px; }
.news-admin__btn:hover { background: var(--slate-100); color: var(--text); }
.news-admin__btn--danger:hover { background: #fde8ec; color: var(--brand); border-color: #f3c3cd; }
.news-admin__reads { background: none; border: 0; padding: 2px 8px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--brand); font-weight: 600; }
.news-admin__reads:hover { background: var(--brand-50); }
.news-admin__table tbody tr:hover { background: var(--slate-50); }
.news-readers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-readers h4 { margin: 0 0 6px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.news-readers ul { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: 8px; }
.news-readers li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.news-readers li:last-child { border-bottom: 0; }
.news-readers li .muted { white-space: nowrap; font-size: 12px; }
@media (max-width: 640px) { .news-readers { grid-template-columns: 1fr; } }
.news-edit__checks { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.news-edit__toolbar { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.news-edit__toolbar .hint { font-size: 12px; }

/* ---------- Werkbalk boven een lijst (aantal + knoppen): donker, net als de sectiekoppen van de kaarten */
html body .datalist--joined > .filterbar {
    background: var(--slate-700) !important;
    border-color: var(--slate-700) !important;
    color: #fff;
}
html body .datalist--joined > .filterbar .datalist__count,
html body .datalist--joined > .filterbar .muted { color: rgba(255, 255, 255, .85) !important; }
html body .datalist--joined > .filterbar .datalist__title h3 { color: #fff !important; }
html body .datalist--joined > .filterbar .count-pill { background: rgba(255, 255, 255, .16); color: #fff; }
html body .datalist--joined > .filterbar .filterbar__item label,
html body .datalist--joined > .filterbar .dxbl-checkbox,
html body .datalist--joined > .filterbar .dxbl-checkbox label,
html body .datalist--joined > .filterbar > label { color: rgba(255, 255, 255, .85); }
/* knoppen wit op de donkere balk (zoals in de kaartkoppen) */
html body .datalist--joined > .filterbar .dxbl-btn.dxbl-btn-outline-secondary,
html body .datalist--joined > .filterbar .dxbl-btn-outline-secondary { background: #fff; }
html body .datalist--joined > .filterbar .dxbl-btn:disabled,
html body .datalist--joined > .filterbar .dxbl-btn.dxbl-disabled { background: rgba(255, 255, 255, .55); }
html body .datalist--joined > .filterbar .dxbl-btn-outline-danger { background: #fff; }

/* Planbord-kiosk (/planbord/goor): alleen het grid, schermvullend */
.kiosk { min-height: 100vh; background: var(--bg, #f3f4f6); }
.page--full.kiosk-page { height: 100vh; padding: 10px 12px; }
/* planbord: tekst bovenaan de cel als een rij door lange werkzaamheden hoger wordt */
.wb-planbord .datagrid td { vertical-align: top; }

/* DataList: opnieuw laden (filter/status gewisseld) → oude regels grijs met een laadmelding erover */
.gridcard { position: relative; }
.gridcard--loading .dxbl-grid { opacity: .35; pointer-events: none; transition: opacity .1s; }
.gridcard__loading { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 6px; background: var(--surface, #fff); box-shadow: 0 2px 10px rgba(0,0,0,.15); font-weight: 600; font-size: 13px; }
.gridcard__spin { width: 14px; height: 14px; border: 2px solid #ccc; border-top-color: var(--accent, #e30613); border-radius: 50%; animation: gridspin .7s linear infinite; }
@keyframes gridspin { to { transform: rotate(360deg); } }

/* ---------- Timer ("Toggl") in de bovenbalk en Mijn timers */
.togglebtn { position: relative; width: auto; min-width: 36px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.togglebtn--running { background: var(--success-50); color: var(--success); }
.togglebtn--running:hover { background: #d8efe1; color: var(--success); }
.togglebtn--running .icon { animation: tt-pulse 2s ease-in-out infinite; }
@keyframes tt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.togglebtn__time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.togglebtn__label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.togglebtn__count {
    position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: var(--slate-500, #64748b); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 900px) { .togglebtn__label { display: none; } }
.tt-current { border: 1px solid var(--slate-200); border-radius: 10px; padding: 12px 14px; }
.tt-current--running { border-color: #bfe3cd; background: var(--success-50); }
.tt-current__head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.tt-current__time { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 110px; }
.tt-current--running .tt-current__time { color: var(--success); }
.tt-current__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 8px 0 4px; }
.tt-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tt-actions__spacer { flex: 1; }
.tt-start { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; font-size: 13px; }
.tt-link { font-size: 12.5px; margin-left: 8px; cursor: pointer; }
.tt-list { margin-top: 14px; }
.tt-list__title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tt-item { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; border-bottom: 1px solid var(--slate-100); }
.tt-item:hover { background: var(--slate-100); }
.tt-item__time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 70px; }
.tt-item__what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 10px;
    border-radius: 10px; background: var(--slate-100); }
.tt-clock--running { background: var(--success-50); }
.tt-clock__time { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--slate-600); }
.tt-clock--running .tt-clock__time { color: var(--success); }
.tt-clock--running .tt-clock__state { background: var(--success); color: #fff; }
.tt-footlink { font-size: 13px; }
.togglebtn__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 200px; }
.togglebtn__rel, .togglebtn__proj { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.togglebtn__rel { font-size: 12.5px; font-weight: 600; }
.togglebtn__proj { font-size: 11px; opacity: .8; }
.togglebtn--running { height: 40px; }
.tt-quick { margin-bottom: 10px; }
.tt-quick__title { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.tt-quick__list { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-quick__btn {
    display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 6px 10px;
    border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; text-align: left;
}
.tt-quick__btn:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand); }
.tt-quick__btn .icon { flex: none; color: var(--success); }
.tt-quick__btn.is-active { background: var(--success-50); border-color: #bfe3cd; cursor: default; }
.tt-quick__btn:disabled:not(.is-active) { opacity: .6; cursor: default; }
.tt-quick__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tt-quick__text strong, .tt-quick__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-quick__text strong { font-size: 12.5px; }
.tt-quick__text small { font-size: 11px; color: var(--text-muted); }
.tt-quick__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tt-quick__btn { max-width: none; width: 100%; }
@media (max-width: 600px) { .tt-quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tt-badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.tt-readybtn .tt-badge { background: #fff; color: var(--brand); }
.tt-quick__btn { min-height: 46px; }
.tt-quick__btn--empty { border-style: dashed; background: transparent; cursor: default; }
.tt-quick__btn--empty small { white-space: normal; }
.tt-quick__text small { font-size: 10.5px; }
.mg-row { border-bottom: 1px solid var(--slate-100); padding: 8px 0; }
.mg-head { display: flex; align-items: center; gap: 10px; }
.mg-spacer { flex: 1; }
.mg-list { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; word-break: break-word; user-select: all; }

/* Veeam Data Cloud: status in de detailpopup */
.vdc-st { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #e0ecff; color: #1e3a8a; }
.vdc-st--ok { background: #e7f6ec; color: #166534; }
.vdc-st--warn { background: #fffbeb; color: #92400e; }
.vdc-st--err { background: #fef2f2; color: #991b1b; }

/* Dashboard: tegel staat er al, gegevens worden nog geladen */
.stat-tile.is-loading::before { background: #cbd5e1; }
.stat-tile.is-loading .stat-tile__value { color: #94a3b8; animation: stat-tile-pulse 1.2s ease-in-out infinite; }
@keyframes stat-tile-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Projectpagina: tabblad Documenten (lijst links, voorbeeld rechts) */
.pj-docs { height: calc(100vh - 360px); min-height: 480px; }

/* Management → Facturatie: totaal per locatie boven de lijst (klik = filteren) */
.fact-sum { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.fact-sum__item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 150px; padding: 8px 14px; border: 1px solid var(--slate-200);
    border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; text-align: left; }
.fact-sum__item:hover { border-color: var(--slate-300); }
.fact-sum__item.is-active { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.fact-sum__loc { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.fact-sum__item strong { font-size: 18px; }

/* ---- SLA-rapportage (Management → SLA-rapportages): op het scherm als A4-vellen, afdrukken per vel ---- */
.print-only { display: none; }
.sla-bar { position: sticky; top: var(--topbar-h); z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 8px;
    background: var(--bg, #f1f5f9); }
.sla-bar__title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sla-bar__nav, .sla-bar__actions { display: flex; gap: 8px; }
.sla-bar__actions { margin-left: auto; }
.sla-doc { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 40px; }
.sla-sheet { position: relative; width: 210mm; max-width: 100%; min-height: 297mm; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); border-radius: 4px;
    padding: 10mm 10mm 16mm; color: #1e293b; font-size: 12.5px; line-height: 1.45; }
.sla-pageno { position: absolute; left: 10mm; right: 10mm; bottom: 8mm; text-align: center; font-size: 10.5px; color: #94a3b8;
    border-top: 1px solid #e2e8f0; padding-top: 4px; }
.sla-sheet h2 { font-size: 17px; margin: 0 0 10px; color: #0f2a43; border-bottom: 2px solid #c8102e; padding-bottom: 4px; }
.sla-sheet h2 + h2, .sla-sheet p + h2, .sla-sheet div + h2 { margin-top: 22px; }
.sla-sheet h3 { font-size: 13.5px; margin: 16px 0 6px; color: #0f2a43; }
.sla-head { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.sla-head img { width: 44px; height: 44px; }
.sla-head h1 { margin: 2px 0; font-size: 20px; color: #0f2a43; }
.sla-head__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #c8102e; font-weight: 700; }
.sla-head__meta { color: #64748b; }
.sla-note { background: #fffbeb; color: #92400e; padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; }
.sla-lights { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sla-light { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.sla-light__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; background: #cbd5e1; }
.sla-light--ok .sla-light__dot { background: #16a34a; }
.sla-light--warn .sla-light__dot { background: #f59e0b; }
.sla-light--err .sla-light__dot { background: #dc2626; }
.sla-light__subject { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.sla-light__value { font-size: 16px; font-weight: 700; }
.sla-light__note { color: #64748b; font-size: 11.5px; }
.sla-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 10px; }
.sla-kpis > div { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.sla-kpis span { display: block; font-size: 11px; color: #64748b; }
.sla-kpis strong { font-size: 18px; }
.sla-kpis em { display: block; font-style: normal; font-size: 11px; }
.sla-up { color: #16a34a; } .sla-down { color: #dc2626; }
.sla-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sla-cols--main-left { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
.sla-cols--main-left .sla-table--narrow { min-width: 230px; }
.sla-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 11.5px; }
.sla-table th { text-align: left; font-weight: 700; font-size: 11px; color: #1e293b; border-bottom: 1px solid #94a3b8; padding: 4px 6px; }
.sla-table td { border-bottom: 1px solid #eef2f7; padding: 4px 6px; vertical-align: top; }
.sla-table .num { text-align: right; white-space: nowrap; }
.sla-table--narrow { width: auto; min-width: 260px; }
.sla-warn { background: #fffbeb; color: #92400e; } .sla-err { background: #fef2f2; color: #991b1b; }
.sla-warn-t { color: #b45309; } .sla-err-t { color: #b91c1c; }
.sla-small { font-size: 11px; color: #64748b; }
.sla-bars { display: flex; flex-direction: column; gap: 5px; }
.sla-bars__row { display: grid; grid-template-columns: 90px 1fr 34px; gap: 8px; align-items: center; }
.sla-bars__label { font-size: 11.5px; color: #475569; }
.sla-bars__track { height: 12px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.sla-bars__fill { display: block; height: 100%; background: #0f2a43; }
.sla-bars__value { text-align: right; font-weight: 600; }
.sla-edit { width: 100%; font: inherit; padding: 8px 10px; border: 1px dashed #94a3b8; border-radius: 6px; background: #f8fafc; resize: vertical; }
.sla-text { white-space: pre-wrap; }
.sla-foot { margin-top: 24px; padding-top: 8px; border-top: 1px solid #e2e8f0; font-size: 10.5px; color: #94a3b8; }
@media (max-width: 900px) { .sla-kpis { grid-template-columns: 1fr 1fr; } .sla-cols { grid-template-columns: 1fr; } }
@media print {
    /* 1 cm rondom; paginanummer "1 / 6" onderaan (echte afgedrukte pagina's) */
    @page { size: A4; margin: 10mm;
        @bottom-center { content: counter(page) " / " counter(pages); font-family: Inter, Arial, sans-serif; font-size: 9pt; color: #94a3b8; } }
    .sla-pageno { display: none; }
    .print-only { display: block; }
    .sla-page-wrap { padding: 0 !important; max-width: none !important; }
    .sla-doc { gap: 0; padding: 0; display: block; }
    .sla-sheet { width: auto; min-height: 0; box-shadow: none; border-radius: 0; padding: 0; page-break-after: always; break-after: page; }
    .sla-sheet:last-child { page-break-after: auto; break-after: auto; }
    .sla-sheet, .sla-light, .sla-bars__fill, .sla-light__dot, .sla-warn, .sla-err { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sla-table tr, .sla-light, .sla-kpis > div { break-inside: avoid; }
}
.sla-period { margin: -6px 0 10px; font-size: 11.5px; color: #64748b; }
/* SLA-rapport: datums, tijden en getallen nooit over twee regels */
.sla-table .nowrap, .sla-table td.num, .sla-table th { white-space: nowrap; }
/* SLA-rapport: groepskop (bijv. server) met de regels eronder ingesprongen */
.sla-table tr.sla-group td { font-weight: 700; color: #0f2a43; background: #f1f5f9; border-bottom: 1px solid #cbd5e1; padding-top: 5px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sla-table td.sla-indent { padding-left: 18px; }
.sla-table tr.sla-group { break-after: avoid; }

/* SLA-rapport: managementsamenvatting */
.sla-intro { font-size: 12.5px; line-height: 1.55; color: #334155; margin: 4px 0 12px; }
.sla-kpiband { display: flex; border: 1px solid #e2e8f0; border-radius: 8px; margin: 0 0 14px; overflow: hidden; }
.sla-kpiband > div { flex: 1; padding: 10px 12px; border-left: 1px solid #e2e8f0; text-align: center; }
.sla-kpiband > div:first-child { border-left: 0; }
.sla-kpiband b { display: block; font-size: 20px; color: #0f172a; }
.sla-kpiband span { display: block; font-size: 10.5px; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.sla-status td { vertical-align: top; }
.sla-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.sla-badge--ok { background: #dcfce7; color: #166534; }
.sla-badge--warn { background: #fef3c7; color: #92400e; }
.sla-badge--err { background: #fee2e2; color: #991b1b; }
.sla-badge--na { background: #f1f5f9; color: #475569; }
.sla-legend { font-size: 10.5px; color: #64748b; margin: 6px 0 12px; }
@media print { .sla-badge, .sla-kpiband { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.sla-table td { vertical-align: middle; }
.sla-table th.center, .sla-table td.center { text-align: center; }
.sla-score-input { width: 72px; text-align: center; border: 1px dashed #94a3b8; border-radius: 4px; padding: 2px 4px; background: #f8fafc; font: inherit; }
.sla-token { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 6px; }
.sla-token__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sla-token__row { display: flex; gap: 8px; }
.sla-token__row input { flex: 1; min-width: 0; }

/* SLA-rapport versturen: mail links, PDF-voorbeeld rechts */
.sla-send { display: grid; grid-template-columns: minmax(360px, 1fr) 1.1fr; gap: 16px; min-height: 70vh; }
.sla-send__body { width: 100%; font: inherit; line-height: 1.45; resize: vertical; }
.sla-send__preview { border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; overflow: hidden; display: flex; }
.sla-send__preview iframe { flex: 1; width: 100%; min-height: 70vh; border: 0; }
@media (max-width: 1000px) { .sla-send { grid-template-columns: 1fr; } }
.sla-kpis strong.sla-kpi-text { font-size: 13px; display: block; padding-top: 4px; }
.sla-bars--wide .sla-bars__row { grid-template-columns: 160px 1fr 40px; } .sla-bars--wide .sla-bars__label { white-space: nowrap; }
.sla-age th, .sla-age td { padding-left: 4px; padding-right: 4px; }
.sla-age th + th, .sla-age td + td { border-left: 1px solid #e2e8f0; }
.sla-age th:last-child, .sla-age td:last-child { border-left: 2px solid #cbd5e1; }
.sla-vlines th + th, .sla-vlines td + td { border-left: 1px solid #e2e8f0; }
.sla-vlines .sla-vsep { border-left: 2px solid #cbd5e1 !important; }

/* SLA-rapport: alle kerncijferblokken in dezelfde stijl als de band op de samenvatting (getal groot, label eronder) */
.sla-kpis { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin: 6px 0 12px; }
.sla-kpis > div { flex: 1 1 0; min-width: 110px; border: 0; border-left: 1px solid #e2e8f0; border-radius: 0; padding: 10px 12px;
    display: flex; flex-direction: column; align-items: center; text-align: center; }
.sla-kpis > div:first-child { border-left: 0; }
.sla-kpis strong { order: 1; font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.sla-kpis span { order: 2; display: block; font-size: 10.5px; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.sla-kpis em { order: 3; font-size: 10.5px; color: #94a3b8; }
.sla-kpis strong.sla-kpi-text { font-size: 14px; padding-top: 3px; }
@media (max-width: 900px) { .sla-kpis { display: flex; } .sla-kpis > div { flex-basis: 45%; } }

/* SLA-rapport: grafiekjes naast elkaar in gelijke kaartjes */
.sla-charts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 14px; }
.sla-chart { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; break-inside: avoid; }
.sla-chart__title { font-size: 10.5px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.sla-chart .sla-bars__row { grid-template-columns: 64px 1fr 26px; gap: 6px; }
.sla-chart .sla-bars__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sla-chart .sla-bars__track { height: 8px; border-radius: 4px; }
.sla-chart .sla-bars__fill { border-radius: 4px; }
.sla-bars__row.is-current .sla-bars__fill { background: #c8102e; }
.sla-bars__row.is-current .sla-bars__label, .sla-bars__row.is-current .sla-bars__value { color: #0f172a; font-weight: 700; }
@media print { .sla-bars__row.is-current .sla-bars__fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* SLA-rapport: tussenkopjes duidelijker (rood accentstreepje links, iets groter, meer ruimte erboven) */
.sla-sheet h3 { font-size: 14px; font-weight: 700; color: #0f2a43; margin: 22px 0 8px; padding: 2px 0 2px 9px;
    border-left: 3px solid #c8102e; line-height: 1.3; break-after: avoid; }
.sla-sheet h3 + p, .sla-sheet h3 + table { margin-top: 4px; }
@media print { .sla-sheet h3 { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* … met een lichte balk over de hele breedte */
.sla-sheet h3 { background: #f1f5f9; padding: 5px 10px; border-radius: 0 4px 4px 0; }

/* SLA-rapport: opslag Microsoft 365 */
.sla-storage { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin: 6px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.sla-storage__row { display: grid; grid-template-columns: 210px 1fr auto; gap: 10px; align-items: center; }
.sla-storage__label { font-size: 12px; color: #475569; }
.sla-storage__track { height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.sla-storage__fill { display: block; height: 100%; border-radius: 5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sla-storage__fill--ok { background: #0f2a43; } .sla-storage__fill--warn { background: #d97706; } .sla-storage__fill--err { background: #c8102e; }
.sla-storage__value { font-weight: 600; white-space: nowrap; }
.sla-storage__plain { grid-column: 2 / 4; font-weight: 600; }
.sla-sub { font-size: 13px; font-weight: 600; color: #0f2a43; margin: 14px 0 4px; }
.sla-storage__row { grid-template-columns: minmax(150px, 210px) 1fr auto; }
.sla-lic { width: auto; min-width: 60%; }
.sla-lic td:first-child { white-space: nowrap; padding-right: 32px; }
/* MS365 tenants: venster extern gedeeld (vaste kolommen, lange paden breken af) */
.share-table { table-layout: fixed; width: 100%; }
.share-table td { overflow-wrap: anywhere; vertical-align: top; }
.share-table th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* datumkiezer (DevExpress): weeknummers vet en goed leesbaar */
.dxbl-calendar-week-number { --dxbl-calendar-week-number-opacity: 1; font-weight: 700; opacity: 1 !important; border-right: 1px solid #cbd5e1; color: #64748b; }
/* lege kop boven de weeknummers ook met streep, dagnamen in hoofdletters */
.dxbl-calendar-days-of-week > :first-child { border-right: 1px solid #cbd5e1; }
.dxbl-calendar-days-of-week { text-transform: uppercase; font-weight: 600; }
/* de week van vandaag licht gemarkeerd */
.dxbl-calendar-week-row:has(.dxbl-calendar-today) { background: #e8f1fb; }
/* DxDateEdit in formulieren met ra-input-velden: zelfde breedte als de andere velden */
label > .ra-dateedit { display: block; width: 100%; margin-top: 2px; }
