:root {
    --cms-primary: #2563eb;
    --cms-primary-dark: #1d4ed8;
    --cms-primary-soft: #eff6ff;
    --cms-button-bg: #2563eb;
    --cms-button-bg-hover: #1d4ed8;
    --cms-accent: #14b8a6;
    --cms-danger: #dc2626;
    --cms-warning: #d97706;
    --cms-success: #15803d;
    --cms-sidebar: #111827;
    --cms-sidebar-soft: #1f2937;
    --cms-canvas: #f3f6fb;
    --cms-surface: #ffffff;
    --cms-text: #172033;
    --cms-muted: #64748b;
    --cms-border: #dbe3ee;
    --cms-radius: 12px;
    --cms-radius-sm: 8px;
    --cms-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --cms-sidebar-width: 272px;
    --cms-topbar-height: 44px;
    --cms-content-gutter: clamp(18px, 3vw, 42px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 0 !important; background: var(--cms-canvas); }

body.cms-admin {
    min-width: 0;
    margin: 0;
    color: var(--cms-text);
    background: var(--cms-canvas);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

body.cms-admin a { color: var(--cms-primary-dark); text-underline-offset: 2px; }
body.cms-admin a:hover { color: var(--cms-primary); }
body.cms-admin img { max-width: 100%; height: auto; }

.cms-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cms-skip-link {
    position: fixed;
    z-index: 100000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--cms-radius-sm);
    background: #fff;
    box-shadow: var(--cms-shadow);
    transform: translateY(-150%);
}
.cms-skip-link:focus { transform: translateY(0); }

#menu2 {
    position: fixed;
    z-index: 1100;
    inset: 0 0 auto var(--cms-sidebar-width);
    width: auto;
    height: var(--cms-topbar-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 22px;
    border: 0;
    border-bottom: 1px solid var(--cms-border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    backdrop-filter: blur(12px);
}

#menu2 ul { display: flex; align-items: center; gap: 4px; float: none; height: auto; margin: 0; padding: 0; }
#menu2 ul li { float: none; margin: 0; line-height: 1; list-style: none; }
#menu2 a.level1:link, #menu2 a.level1:visited {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 7px;
    color: #475569;
    font: 600 13px/1.2 inherit;
    text-decoration: none;
}
#menu2 a.level1:hover, #menu2 a.level1:focus-visible { color: var(--cms-primary-dark); background: var(--cms-primary-soft); }

.cms-shell { width: 100%; min-height: 100vh; margin: 0; text-align: left; }

#header.cms-sidebar {
    position: fixed;
    z-index: 1200;
    inset: 0 auto 0 0;
    width: var(--cms-sidebar-width);
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    color: #dbeafe;
    background: linear-gradient(180deg, var(--cms-sidebar) 0%, #172033 100%);
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.12);
}

.cms-brand {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#logowp { position: static; float: none; width: 170px; }
#logowp img { display: block; max-width: 160px; max-height: 43px; object-fit: contain; object-position: left center; }
body.cms-admin .cms-nav-toggle { display: none; }

#menu1 {
    position: static;
    float: none;
    width: 100%;
    height: auto;
    padding: 14px 12px 118px;
}

#menu1 ul { display: block; height: auto; margin: 0; padding: 0; }
#menu1 ul li { display: block; float: none; margin: 2px 0; line-height: 1.3; list-style: none; }
#menu1 a.level1:link, #menu1 a.level1:visited {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #cbd5e1;
    font: 600 14px/1.25 inherit;
    text-shadow: none;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
#menu1 a.level1:hover, #menu1 a.level1:focus-visible { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
#menu1 a.level1.active, #menu1 a.level1.hassub.hasactivesub {
    padding: 9px 12px;
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, rgba(37,99,235,.72), rgba(20,184,166,.48));
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

#menu1 ul li ul,
#menu1 ul li.active ul,
#menu1 ul li.hasactivesub ul {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 4px 0 8px 12px;
    padding: 3px 0 3px 12px;
    overflow: visible;
    border-left: 1px solid rgba(148,163,184,.25);
}
#menu1 ul li.active ul, #menu1 ul li.hasactivesub ul { display: block; }
#menu1 li.level2 { display: block; padding: 0; }
#menu1 a.level2:link, #menu1 a.level2:visited {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    color: #94a3b8;
    font: 500 13px/1.3 inherit;
    text-decoration: none;
}
#menu1 a.level2:hover, #menu1 a.level2.active { color: #fff; background: rgba(255,255,255,.07); }

#headertitel {
    position: fixed;
    z-index: 2;
    inset: auto auto 0 0;
    width: var(--cms-sidebar-width);
    display: grid;
    gap: 2px;
    padding: 15px 18px 18px;
    color: #94a3b8;
    background: linear-gradient(180deg, rgba(23,32,51,0), #172033 22%);
    text-shadow: none;
}
#headertitel span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#headertitel span.headertitel_titel { color: #f8fafc; font-size: 13px; font-weight: 700; text-transform: none; }
#headertitel span.headertitel_versie { font-size: 11px; font-style: normal; }
#headertitel .headertitel_gebruiker { font-size: 12px; }

#content {
    position: relative;
    float: none;
    width: auto;
    min-width: 0;
    min-height: calc(100vh - 44px);
    margin: 0 0 0 var(--cms-sidebar-width);
    padding: calc(var(--cms-topbar-height) + 28px) var(--cms-content-gutter) 42px;
    overflow-x: auto;
    color: var(--cms-text);
    background: var(--cms-canvas);
    font-family: inherit;
}

#content > h1:first-child, #content > form > h1:first-child { margin-top: 0; }
#content h1 { margin: 0 0 18px; color: #0f172a; font-size: clamp(22px, 2vw, 30px); font-weight: 750; letter-spacing: -.025em; }
#content h2 { margin: 22px 0 10px; color: #263449; font-size: 18px; font-weight: 700; }
#content h3 { color: #334155; font-size: 15px; font-weight: 700; }

#content div.modulemenu {
    position: relative;
    z-index: 20;
    top: auto;
    left: auto;
    width: auto;
    min-height: 46px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -28px;
    margin-right: calc(0px - var(--cms-content-gutter));
    margin-bottom: 26px;
    margin-left: calc(0px - var(--cms-content-gutter));
    padding: 7px var(--cms-content-gutter);
    overflow-x: auto;
    border-bottom: 1px solid var(--cms-border);
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 18px rgba(15,23,42,.04);
    backdrop-filter: blur(10px);
}

#content div.modulemenu:empty {
    display: none;
}

#content div.modulemenu > a {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--cms-accent);
    border-radius: 50%;
    color: #fff !important;
    background: var(--cms-accent) !important;
    box-shadow: 0 3px 9px rgba(20, 184, 166, .24);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

#content div.modulemenu > a:hover,
#content div.modulemenu > a:focus-visible {
    border-color: #0f766e;
    color: #fff !important;
    background: #0f766e !important;
}

#content div.modulemenu > a[href*="idbi=0"] > img,
#content div.modulemenu > a[href*="action=copyinhoud"] > img,
#content div.modulemenu > a[href*="action=pasteinhoud"] > img,
#content div.modulemenu > a[href*="action=cleanvervallen"] > img {
    display: none;
}

#content div.modulemenu > a.modulemenu-action::before,
#content div.modulemenu > a[href*="idbi=0"]::before,
#content div.modulemenu > a[href*="action=copyinhoud"]::before,
#content div.modulemenu > a[href*="action=pasteinhoud"]::before,
#content div.modulemenu > a[href*="action=cleanvervallen"]::before {
    font-size: 22px;
    font-weight: 750;
    line-height: 1;
}

#content div.modulemenu > a.modulemenu-add::before,
#content div.modulemenu > a[href*="idbi=0"]::before { content: "+"; }
#content div.modulemenu > a.modulemenu-copy::before,
#content div.modulemenu > a[href*="action=copyinhoud"]::before { content: "⧉"; }
#content div.modulemenu > a.modulemenu-paste::before,
#content div.modulemenu > a[href*="action=pasteinhoud"]::before { content: "↧"; }
#content div.modulemenu > a.modulemenu-clean::before,
#content div.modulemenu > a[href*="action=cleanvervallen"]::before { content: "×"; }

body.cms-admin a.blokselector,
body.cms-admin span.blokselectorNONACT {
    width: auto;
    min-width: 32px;
    height: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    padding: 2px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #e2e8f0;
    box-shadow: none;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-shadow: none;
    vertical-align: middle;
}

body.cms-admin span.blokselectorNONACT {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.cms-admin a.blokselector:hover,
body.cms-admin a.blokselector:focus-visible {
    color: var(--cms-primary-dark);
    background: var(--cms-primary-soft);
    border-color: #93c5fd;
    box-shadow: none;
}

body.cms-admin a.blokselector:active {
    color: #fff;
    background: var(--cms-primary);
    border-color: var(--cms-primary);
    box-shadow: none;
}

body.cms-admin a.voorbeeldweergave img {
    width: auto;
    height: 16px;
    margin-top: 0 !important;
}

body.cms-admin .menureg-manage-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    line-height: 1;
    vertical-align: middle;
}

body.cms-admin .menureg-manage-icon > a {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.cms-admin .menureg-manage-icon img {
    width: auto;
    max-width: 19px;
    height: auto;
    max-height: 16px;
    display: block;
}

#content form, #content .selectiedivCMS, #bloksettings, #uploadform {
    border-color: var(--cms-border);
    border-radius: var(--cms-radius);
}

.cms-login-form {
    width: min(100%, 460px);
    margin: clamp(30px, 8vh, 100px) auto;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--cms-border);
    background: var(--cms-surface);
    box-shadow: var(--cms-shadow);
}
.cms-login #header, .cms-login #menu2, .cms-login #footer { display: none; }
.cms-login #content {
    min-height: 100vh;
    margin: 0;
    padding: clamp(18px, 5vw, 60px);
    background:
        radial-gradient(circle at 12% 15%, rgba(37,99,235,.16), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(20,184,166,.13), transparent 32%),
        var(--cms-canvas);
}
.cms-login-form h1 { margin-bottom: 24px !important; }
.cms-login-form table, .cms-login-form tbody, .cms-login-form tr, .cms-login-form td { display: block; width: 100%; }
.cms-login-form td { padding: 0 0 16px; color: #334155; font-weight: 650; }
.cms-login-form input:not([type="submit"]) { width: 100%; margin-top: 6px; }
.cms-login-form input[type="submit"] { width: 100%; margin-top: 4px; }
.cms-password-field { position: relative; display: block; }
body.cms-admin .cms-password-field input { padding-right: 48px; }
body.cms-admin button.cms-password-toggle {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 34px;
    min-height: 30px;
    padding: 3px;
    color: #475569;
    background: transparent;
    box-shadow: none;
}
body.cms-admin button.cms-password-toggle:hover { color: var(--cms-primary); background: var(--cms-primary-soft); }

body.cms-admin input[type="text"], body.cms-admin input[type="email"], body.cms-admin input[type="password"],
body.cms-admin input[type="search"], body.cms-admin input[type="number"], body.cms-admin input[type="date"],
body.cms-admin input[type="time"], body.cms-admin select, body.cms-admin textarea {
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: var(--cms-text);
    background: #fff;
    font: 500 14px/1.35 inherit;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: border-color .15s, box-shadow .15s;
}
body.cms-admin textarea { min-height: 100px; resize: vertical; }
body.cms-admin input:focus, body.cms-admin select:focus, body.cms-admin textarea:focus {
    outline: 0;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
body.cms-admin input:disabled, body.cms-admin select:disabled, body.cms-admin textarea:disabled { color: #64748b; background: #f1f5f9; cursor: not-allowed; }

body.cms-admin input[type="submit"], body.cms-admin input[type="button"], body.cms-admin button,
body.cms-admin a.blokken_terugbutton {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    color: #fff !important;
    background: var(--cms-button-bg) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 3px 8px rgba(37,99,235,.18);
    cursor: pointer;
}
body.cms-admin input[type="submit"]:hover, body.cms-admin input[type="button"]:hover, body.cms-admin button:hover,
body.cms-admin a.blokken_terugbutton:hover {
    color: #fff !important;
    background: var(--cms-button-bg-hover) !important;
}

body.cms-admin button.action-menu-btn {
    color: #111827 !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none;
}

body.cms-admin button.action-menu-btn:hover,
body.cms-admin button.action-menu-btn:focus-visible {
    color: #000 !important;
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Viewer sluiten: visueel onderscheiden van gewone actieknoppen. */
body.cms-admin #cboxClose {
    position: absolute;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #000 !important;
    border-radius: 8px;
    color: #fff !important;
    background: #111 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.28);
    text-indent: -9999px;
    overflow: hidden;
}

body.cms-admin #cboxClose::before,
body.cms-admin #cboxClose::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

body.cms-admin #cboxClose::before { transform: translate(-50%, -50%) rotate(45deg); }
body.cms-admin #cboxClose::after { transform: translate(-50%, -50%) rotate(-45deg); }

body.cms-admin #cboxClose:hover,
body.cms-admin #cboxClose:focus-visible {
    background: #000 !important;
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

#sortBlokitems td > a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    vertical-align: middle;
}

#sortBlokitems td > a:hover,
#sortBlokitems td > a:focus-visible {
    background: var(--cms-primary-soft);
}

#sortBlokitems img[width="10"],
#sortBlokitems img[width="11"] {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

body.cms-admin button.btnCopyKlein {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
}

body.cms-admin button.blokvorm-kies {
    display: block;
    width: 150px;
    min-height: 70px;
    margin: 0 0 12px;
    padding: 8px 6px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    color: #172033 !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
    font: inherit;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

body.cms-admin button.blokvorm-kies:hover,
body.cms-admin button.blokvorm-kies:focus-visible,
body.cms-admin button.blokvorm-kies.blokvorm-slepen {
    border-color: #2f7e9a !important;
    color: #172033 !important;
    background: #eef8fb !important;
    box-shadow: 0 3px 10px rgba(47, 126, 154, .14);
}

body.cms-admin button.blokvorm-kies .blokvorm-label {
    width: 100%;
    margin-top: 6px;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: anywhere;
}

body.cms-admin .assetfilter-save {
    display: inline-flex;
    vertical-align: middle;
}

body.cms-admin .assetfilter-save > a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

body.cms-admin .assetfilter-save > a:hover,
body.cms-admin .assetfilter-save > a:focus-visible {
    border-color: #86efac;
    background: #dcfce7;
}

body.cms-admin img.assetfilter-save-icon {
    width: 20px;
    height: 20px;
    max-width: none;
    object-fit: contain;
}

body.cms-admin img.exportall-switch,
body.cms-admin img.mailing-filter-switch {
    width: 36px;
    height: 24px;
    max-width: none;
    object-fit: contain;
    vertical-align: middle;
}

body.cms-admin img.mailing-filter-switch { cursor: pointer; }

body.cms-admin table.cwcms-datatable {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--cms-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

body.cms-admin table.cwcms-datatable tr.kop1 td {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    color: #263449;
    background: #dfe8f3 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

body.cms-admin table.cwcms-datatable tr.kop1 td:first-child {
    border-top-left-radius: 8px;
}

body.cms-admin table.cwcms-datatable tr.kop1 td:last-child {
    border-top-right-radius: 8px;
}

body.cms-admin table.cwcms-datatable tr.kop2 td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--cms-border);
    color: var(--cms-muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

body.cms-admin table.cwcms-datatable .cwcms-filter-tools {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

body.cms-admin table.cwcms-datatable .cwcms-filter-tools form {
    display: block !important;
    flex: 1 1 0;
    min-width: 0;
}

body.cms-admin table.cwcms-datatable tr.kop2 input[type="text"] {
    width: 100% !important;
    max-width: 140px;
    min-height: 30px;
    height: 30px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
}

body.cms-admin table.cwcms-datatable tr.kop2 a {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    border-radius: 6px;
    vertical-align: middle;
}

body.cms-admin table.cwcms-datatable tr.kop2 a:hover,
body.cms-admin table.cwcms-datatable tr.kop2 a:focus-visible {
    background: var(--cms-primary-soft);
}

body.cms-admin table.cwcms-datatable tr.kop2 a img {
    width: 16px;
    height: 17px;
    max-width: none;
}

body.cms-admin table.cwcms-datatable img[src$="/icon_checkbox_checked.png"],
body.cms-admin table.cwcms-datatable img[src$="/icon_checkbox_off.png"] {
    width: 13px;
    max-width: none;
    height: 13px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

body.cms-admin table.cwcms-datatable tr.data td,
body.cms-admin table.cwcms-datatable tr.oneven td {
    padding: 8px 10px;
}

body.cms-admin .menureg-drag-help {
    margin: 4px 0 10px;
    color: var(--cms-muted);
    font-size: 12px;
}

body.cms-admin .menuregels-tree {
    position: relative;
}

body.cms-admin .menureg-branch {
    position: relative;
}

body.cms-admin .menureg-row {
    position: relative;
    min-height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 6px;
}

body.cms-admin .menureg-drag-handle {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #64748b;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    text-indent: -3px;
    vertical-align: middle;
    cursor: grab;
    user-select: none;
}

body.cms-admin .menureg-drag-handle:hover,
body.cms-admin .menureg-drag-handle:focus-visible {
    border-color: var(--cms-primary);
    color: var(--cms-primary);
    background: var(--cms-primary-soft);
    outline: none;
}

body.cms-admin .menureg-drag-handle:active {
    cursor: grabbing;
}

body.cms-admin .menureg-branch.is-dragging {
    opacity: .45;
}

body.cms-admin .menureg-row.drop-before::before,
body.cms-admin .menureg-row.drop-after::after {
    content: "";
    position: absolute;
    right: 8px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--cms-primary);
    pointer-events: none;
}

body.cms-admin .menureg-row.drop-before::before {
    top: -2px;
}

body.cms-admin .menureg-row.drop-after::after {
    bottom: -2px;
}

body.cms-admin .menureg-row.drop-inside {
    background: var(--cms-primary-soft);
    box-shadow: inset 0 0 0 2px var(--cms-primary);
}

body.cms-admin .menureg-row.drop-invalid {
    background: #fee2e2;
    box-shadow: inset 0 0 0 2px #ef4444;
}

body.cms-admin .menuregels-tree.is-saving {
    opacity: .55;
    pointer-events: none;
}

body.cms-admin #tabelcontainer {
    width: 100%;
    display: block;
    float: none;
    padding: 0;
    font-family: inherit;
}

body.cms-admin #tabelcontainer #tabnav {
    min-height: 40px;
    height: auto;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0 10px;
    border-bottom: 1px solid var(--cms-border);
}

body.cms-admin #tabelcontainer #tabnav li {
    float: none;
    margin: 0;
    list-style: none !important;
}

body.cms-admin #tabelcontainer #tabnav a.list {
    min-height: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #475569;
    background: #e8eef6;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

body.cms-admin #tabelcontainer #tabnav a.list.tabactief {
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
    border-color: var(--cms-border);
    border-top: 3px solid var(--cms-primary);
    border-bottom-color: #fff;
    color: #1e3a5f;
    background: #fff;
}

body.cms-admin #tabelcontainer #tabnav a.list.tabnietactief {
    margin-top: 0;
    border-color: #d8e0ea;
}

body.cms-admin #tabelcontainer #tabnav a.list.tabnietactief:hover,
body.cms-admin #tabelcontainer #tabnav a.list.tabnietactief:focus-visible {
    border-color: #b8c7d9;
    color: var(--cms-primary);
    background: var(--cms-primary-soft);
    outline: none;
}

body.cms-admin #tabelcontainer #tabcontent {
    top: 0;
    width: 100%;
    padding: 20px 10px 10px;
    border-top: 0;
    box-sizing: border-box;
}

body.cms-admin .fencediv {
    position: relative;
    margin: 10px 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--cms-border);
    border-radius: 9px;
    color: var(--cms-text);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

body.cms-admin .fencelabel {
    position: static;
    float: none;
    width: auto;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px !important;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155 !important;
    background: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-align: left;
}

body.cms-admin .saveorcancel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

body.cms-admin .saveorcancelEDIT {
    --cms-extraview-height: min(38vh, 369px);
    bottom: var(--cms-extraview-height);
    width: 100%;
    height: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--cms-border);
    background: #fff;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, .06);
    z-index: 10003;
}

body.cms-admin .extraview {
    width: 100%;
    height: min(38vh, 369px);
    padding: 12px 18px 18px;
    border-top: 1px solid var(--cms-border);
    background: #fff;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, .06);
    z-index: 10002;
}

body.cms-admin table { max-width: 100%; border-collapse: separate; border-spacing: 0; color: var(--cms-text); }
body.cms-admin td, body.cms-admin th { padding: 9px 10px; color: inherit; font: 13px/1.45 inherit; vertical-align: top; }
body.cms-admin tr.kop1, body.cms-admin tr.kop2 { background: #e9eff7; }
body.cms-admin tr.kop1 td, body.cms-admin tr.kop2 td { color: #334155; font-weight: 700; }
body.cms-admin tr.data td, body.cms-admin tr.oneven td { border-bottom: 1px solid var(--cms-border); background: #fff; }
body.cms-admin tr.data:hover td, body.cms-admin tr.oneven:hover td { background: #f8fafc !important; }
body.cms-admin table.border, body.cms-admin table.setsecurity {
    overflow: hidden;
    border: 1px solid var(--cms-border);
    border-radius: var(--cms-radius-sm);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
}

body.cms-admin p.error, body.cms-admin .error { color: #991b1b; border-color: #fecaca; }
body.cms-admin p.error { padding: 10px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; }
body.cms-admin .melding_actual { border-color: #bfdbfe; background: var(--cms-primary-soft); }
body.cms-admin a.meldingen_openbutton {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--cms-danger);
    box-shadow: 0 4px 12px rgba(220,38,38,.22);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
body.cms-admin a.meldingen_openbutton:hover,
body.cms-admin a.meldingen_openbutton:focus-visible {
    color: #fff;
    background: #b91c1c;
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}

#bloksettings { padding: 18px; background: #eef2f7; }
.selectiedivCMS { width: 100%; padding: 14px; border: 1px solid var(--cms-border); background: #fff; }
#mediamanager_content { float: none; width: 100%; padding: 18px; background: var(--cms-surface); }

.cke_chrome { overflow: hidden; border-color: var(--cms-border) !important; border-radius: var(--cms-radius-sm); box-shadow: 0 2px 8px rgba(15,23,42,.06) !important; }
.cke_top, .cke_bottom { border-color: var(--cms-border) !important; background: #f8fafc !important; }
.cke_dialog .cke_dialog_tabs {
    box-sizing: border-box !important;
    left: 10px !important;
    height: 34px !important;
    margin-top: 7px !important;
    padding: 3px !important;
    border: 1px solid var(--cms-border) !important;
    border-radius: 9px !important;
    background: #eef2f7 !important;
}
.cke_dialog a.cke_dialog_tab {
    box-sizing: border-box !important;
    height: 26px !important;
    margin: 0 2px 0 0 !important;
    padding: 4px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: #475569 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    text-decoration: none !important;
    filter: none !important;
}
.cke_dialog a.cke_dialog_tab:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}
.cke_dialog a.cke_dialog_tab_selected,
.cke_dialog a.cke_dialog_tab_selected:hover {
    color: var(--cms-primary) !important;
    border-color: #cbd5e1 !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.08) !important;
}
.cke_dialog .cke_dialog_contents { margin-top: 42px !important; }
.cke_dialog .cke_dialog_close_button,
.cke_hidpi .cke_dialog_close_button {
    top: 3px !important;
    right: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #111827 !important;
    background-image: none !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.25) !important;
    opacity: 1 !important;
}
.cke_dialog .cke_dialog_close_button:hover,
.cke_dialog .cke_dialog_close_button:focus {
    color: #fff !important;
    background: #000 !important;
    outline: 2px solid rgba(37,99,235,.25) !important;
    outline-offset: 2px !important;
}
.cke_dialog .cke_dialog_close_button .cke_label {
    display: block !important;
    color: #fff !important;
    font: 700 13px/1 Arial, sans-serif !important;
}

.ui-widget { font-family: inherit; font-size: 14px; }
.ui-widget.ui-widget-content { border-color: var(--cms-border); }
.ui-datepicker, .ui-dialog { border-radius: var(--cms-radius); box-shadow: var(--cms-shadow); }
.ui-datepicker .ui-datepicker-header { border: 0; background: var(--cms-primary-soft); }
.ui-state-active, .ui-widget-content .ui-state-active { border-color: var(--cms-primary); background: var(--cms-primary); color: #fff; }

#zandloper {
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.42);
    backdrop-filter: blur(2px);
}
#zandloper.is-visible { display: flex !important; }
.cms-loader { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--cms-radius); color: #fff; background: #111827; box-shadow: var(--cms-shadow); font-weight: 650; }
.cms-spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%; animation: cms-spin .72s linear infinite; }
@keyframes cms-spin { to { transform: rotate(360deg); } }

#footer {
    height: auto;
    margin: 0 0 0 var(--cms-sidebar-width);
    padding: 8px var(--cms-content-gutter) 18px;
}
#footer p { margin: 0; padding: 0; color: var(--cms-muted); font: 11px/1.4 inherit; text-align: right; }

@media (max-width: 900px) {
    :root { --cms-sidebar-width: 0px; }
    #menu2 { left: 0; padding-left: 62px; }
    #header.cms-sidebar { width: min(86vw, 300px); transform: translateX(-105%); transition: transform .2s ease; }
    body.cms-nav-open #header.cms-sidebar { transform: translateX(0); }
    .cms-brand { position: fixed; top: 0; left: 0; width: 54px; min-height: var(--cms-topbar-height); padding: 5px; background: var(--cms-sidebar); }
    #logowp { display: none; }
    body.cms-admin .cms-nav-toggle { min-width: 40px; min-height: 34px; display: inline-flex; padding: 4px 9px; font-size: 20px; box-shadow: none; }
    body.cms-nav-open .cms-brand { position: static; width: 100%; min-height: 72px; justify-content: flex-end; background: transparent; }
    #headertitel { width: min(86vw, 300px); }
    #content { margin-left: 0; padding: calc(var(--cms-topbar-height) + 20px) 14px 34px; }
    #content div.modulemenu { margin: -20px -14px 20px; padding-inline: 14px; }
    #footer { margin-left: 0; padding-inline: 14px; }
    body.cms-nav-open::after { content: ""; position: fixed; z-index: 1150; inset: 0; background: rgba(15,23,42,.5); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    #header, #menu2, #footer, .modulemenu { display: none !important; }
    #content { margin: 0; padding: 0; background: #fff; }
}
