/* =====================================================================
   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;
}
/* ByClaude 18-11-2026: in- en uitklappen alleen op brede schermen; op smal scherm werkt het menu als overlay (zie @media 900px) */
@media (min-width: 901px) {
    .app--collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
}
.iconbtn--mobile, .sidebar-backdrop { display: none; }

/* ---------- 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 (ByClaude 18-11-2026: alleen op brede schermen) */
@media (min-width: 901px) {
    .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--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; white-space: pre-line; } /* ByClaude 17-11-2026 21:45: regelafbrekingen in de vraag tonen (zoals MessageDlg) */

/* ---------- 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 {
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px clamp(24px, 6vw, 72px);
}
.auth__brand { min-height: 56px; margin-bottom: 28px; }
.auth__brand img { max-height: 56px; max-width: 220px; }
.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: 28px; }
.auth__subtitle { margin: 6px 0 24px; color: var(--text-muted); }
.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; }
.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;
}
.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: 10px; height: 44px; border: 1px solid #8c8c8c; border-radius: 8px; background: #fff; color: #5e5e5e; font-weight: 600; text-decoration: none !important; }
.auth__ms:hover { background: #f3f3f3; }
.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 { margin-top: 40px; color: var(--text-muted); font-size: 12px; }

.auth__visual {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(219, 36, 72, .55), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(100, 120, 132, .55), transparent 60%),
        linear-gradient(160deg, #1f2b33 0%, #172026 100%);
    color: var(--white);
    display: flex; align-items: flex-end;
}
.auth__visual::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.auth__visual-inner { position: relative; z-index: 1; padding: 64px; max-width: 560px; }
.auth__visual-inner h2 { font-size: 34px; line-height: 1.15; }
.auth__visual-inner p { color: #c9d3d9; font-size: 16px; }

/* =====================================================================
   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; }
    /* ByClaude 18-11-2026: menu buiten beeld; hamburger opent het als overlay onder de bovenbalk, backdrop sluit het weer.
       De inhoud krijgt zo de volle breedte (ook op 768 px). */
    .app, .app--collapsed { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
        position: fixed; z-index: 50; left: 0; top: var(--topbar-h); bottom: 0;
        width: min(var(--sidebar-w), 86vw); height: auto;
        transform: translateX(-100%); visibility: hidden;
        transition: transform .2s ease, visibility 0s linear .2s;
    }
    .sidebar__brand { display: none; }
    .app--mobile-open .sidebar {
        transform: none; visibility: visible; transition: transform .2s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }
    .app--mobile-open .sidebar-backdrop {
        display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 49; background: rgba(16, 24, 32, .45);
    }
    .topbar { z-index: 60; }
    .iconbtn--desktop { display: none; }
    .iconbtn--mobile { display: grid; }
    .page { padding: 16px; }
    .page--full { padding: 12px; }
    .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; }

/* ByClaude 11-11-2026: lijsten volgens C:\Source\MD\opmaak.md §8, in Emyris-kleuren:
   kolomkop met een lichte tint (filterregel eronder blijft wit), lage regels, om-en-om licht getint. */
html body .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header,
html body .datagrid .grid-hdr {
    background: var(--brand-50) !important;
    color: var(--brand-900) !important;
    border-color: #F2D3DA !important;
    border-bottom: 1px solid #EBC0CA !important;
    font-weight: 600 !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: var(--brand-900) !important; }
html body .dxbl-grid .dxbl-grid-filter-row > td { background: #fff !important; }
/* om-en-om (laatste cijfer van data-visible-index, blijft kloppen bij virtueel scrollen); selectie houdt eigen kleur */
html body .dxbl-grid .dxbl-grid-table > tbody > tr:is([data-visible-index$="1"], [data-visible-index$="3"], [data-visible-index$="5"],
    [data-visible-index$="7"], [data-visible-index$="9"]):not([aria-selected="true"]):not(.dxbl-grid-selected-row) > td { background-color: #F6F8F9; }
html body .dxbl-grid .dxbl-grid-table > tbody > tr[data-visible-index]:not([aria-selected="true"]):not(.dxbl-grid-selected-row):hover > td { background-color: var(--slate-100); }
html body .dxbl-grid .dxbl-grid-table > tbody > tr[data-visible-index] > td { line-height: 1.3; }
.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: right; 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; }
/* 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: right; 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; }
/* ByClaude 17-11-2026 21:45: oranje als Delphi ($000099FF = #FF9900): ziekte-uren dagen met verlof, gedeeltelijk ziek bij inplannen */
.datagrid td.cell-skipped-leave, .datagrid td.cell-sick-partial,
html body .dxbl-grid td.cell-skipped-leave, html body .dxbl-grid td.cell-sick-partial { background: #FF9900 !important; color: #fff !important; }
.datagrid td.cell-sick-full, html body .dxbl-grid td.cell-sick-full { background: #FF0000 !important; color: #fff !important; }
table.hrm-hours tr.row-skipped-leave td { background: #FF9900; color: #fff; }
.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: right; padding-right: 6px; }
.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: right; 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-skipped-leave, .datagrid .dxbl-grid-selected-row > td.cell-skipped-leave,
.datagrid tr.dxbl-grid-selected-row td.cell-sick-partial, .datagrid .dxbl-grid-selected-row > td.cell-sick-partial { background: #FF9900 !important; color: #fff !important; } /* ByClaude 17-11-2026 21:45 */
.datagrid tr.dxbl-grid-selected-row td.cell-sick-full, .datagrid .dxbl-grid-selected-row > td.cell-sick-full { background: #FF0000 !important; color: #fff !important; } /* ByClaude 17-11-2026 21:45 */
.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: right; 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; }

/* =====================================================================
   ByClaude 18-11-2026 – UX-review ronde 1
   ===================================================================== */

/* Gedeelde laadindicator: spinner + skeleton; ook alle bestaande "Laden…" (.page-loading) krijgen een spinner */
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.loading-ind { padding: 28px 24px; color: var(--text-muted); }
.loading-ind--compact { padding: 14px 12px; }
.loading-ind__row, .page-loading { display: flex; align-items: center; gap: 10px; }
.loading-ind__spinner, .page-loading::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--slate-200); border-top-color: var(--brand); animation: ld-spin .8s linear infinite;
}
.page-loading { justify-content: center; }
.skeleton { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.skeleton__line { height: 14px; border-radius: 6px; background: var(--slate-100); animation: ld-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .loading-ind__spinner, .page-loading::before, .skeleton__line { animation: none; } }

/* Lege toestand */
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.empty-state--inline p { max-width: 520px; margin: 0; }

/* Formulieren: velden met een brede waarde krijgen een minimumbreedte, zodat datums, keuzelijsten en korte velden niet worden afgekapt */
.form .fl-item--narrow { min-width: 0; }
.form [class*="dxbl-date-edit"], .form [class*="dxbl-time-edit"] { min-width: 9.5rem; }
.form .dt-edit { min-width: 12.5rem; }
.form [class*="dxbl-combo-box"], .form [class*="dxbl-combobox"] { min-width: 6rem; }
.form .fl-item--narrow input { min-width: 4.5rem; }

/* Tabbladen die allemaal zichtbaar moeten blijven: wrappen naar meerdere regels (geen scrollpijltjes) */
.edittabs--wrap [role=tablist] { flex-wrap: wrap; overflow: visible; }
.edittabs--wrap [role=tab] { white-space: nowrap; }

/* Urenregistratie: alleen afwijkingen kleuren, in zachte tinten */
.datagrid td.hrl-dev-over, html body .dxbl-grid td.hrl-dev-over { background: #fbe3e1 !important; color: #8a1f17 !important; font-weight: 600; }
.datagrid td.hrl-dev-under, html body .dxbl-grid td.hrl-dev-under { background: #fff0d6 !important; color: #7a4a00 !important; font-weight: 600; }
.hrl-legend .hrl-over { background: #fbe3e1; border: 1px solid #e8a39b; }
.hrl-legend .hrl-under { background: #fff0d6; border: 1px solid #e6bd7a; }
.hrl-more { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-700);
    border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.hrl-more:hover { border-color: var(--slate-500); }
.hrl-more__chev { transition: transform .15s ease; }
.hrl-more.is-open .hrl-more__chev { transform: rotate(180deg); }
.actionbar--compact { padding: 4px 10px; margin-bottom: 8px; }

/* Smal scherm: lijsten en filterbalken gebruiken de volle breedte */
@media (max-width: 900px) {
    .filterbar { padding: 10px; }
    .filterbar__item { min-width: 0; flex: 1 1 140px; }
    .filterbar__actions { margin-left: 0; flex-wrap: wrap; }
    .hrl-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hrl-legend { margin-left: 0; }
    .gridcard, .datagrid { max-width: 100%; }
    .topbar { padding: 0 12px 0 8px; }
}

/* ByClaude 18-11-2026 (ronde 2) */
.iconbtn.iconbtn--mobile { display: none; }
@media (max-width: 900px) {
    .iconbtn.iconbtn--mobile { display: grid; }
    .iconbtn.iconbtn--desktop { display: none; }
    .segmented { flex-wrap: wrap; max-width: 100%; }
    .segmented button { flex: 1 1 auto; }
    .filterbar__item { max-width: 100%; }
}
.selhint { align-self: center; font-size: 12.5px; }
.hrl-group { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* ByClaude 18-11-2026 (ronde 2): veldbreedteklassen */
.fw { width: 100%; min-width: 0; }
.fw--s { max-width: 9rem; }
.fw--m { max-width: 16rem; }
.fw--l { max-width: none; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 3px; }
.dxbl-fl-item:has(.field-error) input { border-color: var(--danger) !important; }
