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

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

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

* { box-sizing: border-box; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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; }

/* ---------- 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__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; }
    .app, .app--collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
    .app:not(.app--collapsed) .sidebar {
        position: fixed; z-index: 50; width: var(--sidebar-w);
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }
    .page { padding: 16px; }
    .editbar { margin: 0 -16px 12px; padding: 12px 16px; flex-wrap: wrap; }
    .dual-list { grid-template-columns: 1fr; }
    .dual-list__buttons { flex-direction: row; }
    .topbar__event label { display: none; }
}

/* ------------------------------------------------------------ Lijsten, dialogen en tabbladen onder records */
.datalist { margin-bottom: 14px; }
.datalist__title { display: flex; align-items: baseline; gap: 8px; margin-right: 8px; }
.datalist__title h3 { margin: 0; font-size: 15px; font-weight: 600; }
.filter-select { min-width: 200px; }
.filterbar .dxbl-checkbox { align-self: center; }
.w-150 { width: 150px; }
.w-180 { width: 180px; }
.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; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ------------------------------------------------------------ Planning DS */
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ds-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ds-scroll { overflow: auto; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.ds-scroll--top { height: 52vh; min-height: 220px; resize: vertical; }
.ds-scroll--bottom { max-height: 38vh; }
.ds-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.ds-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--slate-700); color: #fff; font-weight: 400; padding: 6px 8px; text-align: left; vertical-align: bottom; }
.ds-grid .ds-name { position: sticky; left: 0; z-index: 2; background: var(--slate-700); color: #fff; font-weight: 400; padding: 5px 8px; text-align: left; vertical-align: top; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-grid thead .ds-name, .ds-grid thead .ds-hours { z-index: 4; }
.ds-grid .ds-hours { position: sticky; left: 210px; z-index: 2; background: #56636c; color: #fff; padding: 5px 6px; vertical-align: top; display: table-cell; white-space: nowrap; }
.ds-grid .ds-hours span { display: inline-block; width: 50px; text-align: right; }
.ds-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 var(--brand); }
.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 var(--brand), 0 4px 12px rgba(223, 36, 73, .35); transform: scale(1.02); }
.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 var(--brand); }

/* ===================================================================== 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); }
