:root {
    --Donkerblauw: #003B58;
    --Lichtblauw: #E5F1EF;
    --Blauw: #0aa0ed;
    --Klantkleur: #ae003c;
    --Grijs: #f2f2f2;
    --TekstKleur: #020446;
    --Rood: #cc0000;
    --Groen: #018440;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

.background-perika-blauw {
    background-color: var(--Donkerblauw);
    color: white;
}

.background-perika-lichtblauw {
    background-color: var(--Lichtblauw);
}

.background-perika-groen {
    background-color: var(--Groen);
    color: white;
}

.groen {
    color: var(--Groen)
}

.rood {
    color: var(--Rood);
}

.oranje {
    color: orangered;
}

.donkerblauw {
    color: var(--Donkerblauw)
}

.lichtblauw {
    color: var(--Lichtblauw)
}

.blauw {
    color: var(--Blauw)
}

body {
    color: var(--TekstKleur);
}

.center {
    text-align: center;
}

.right {
    float: right;
}

.form-field {
    padding-top: 10px;
}

.idx-switch-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-top: 8px;
}

.idx-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    margin: 0;
    flex: 0 0 auto;
}

.idx-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.idx-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid #b9c6d5;
    background: #cfd8e3;
    transition: background-color .2s ease, border-color .2s ease;
    cursor: pointer;
}

.idx-switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform .2s ease;
}

.idx-switch-input:checked + .idx-switch-slider {
    background: var(--Groen);
    border-color: var(--Groen);
}

.idx-switch-input:checked + .idx-switch-slider::before {
    transform: translateX(18px);
}

.idx-switch-input:focus-visible + .idx-switch-slider {
    box-shadow: 0 0 0 3px rgba(10, 160, 237, 0.16);
}

.idx-switch-input:disabled + .idx-switch-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.idx-switch-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--TekstKleur);
}

.hyperlink {
    color: var(--TekstKleur);
    text-decoration: none;
}

.dropdown-item > a {
    text-decoration: none;
    color: red;
}

/* =============================================
   NAVBAR (pk-navbar)
   ============================================= */
.pk-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: linear-gradient(135deg, var(--Donkerblauw) 0%, #1a3a5c 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    padding: 0 1rem;
    min-height: 52px;
}

.pk-navbar .navbar-collapse {
    align-items: center;
}

.pk-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-right: 1.5rem;
}

.pk-navbar-logo {
    max-height: 28px;
    filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(100deg) brightness(95%);
}

.pk-navbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.03em;
}

.pk-navbar-toggler {
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: transparent;
}

    .pk-navbar-toggler:hover {
        background: rgba(255,255,255,.12);
    }

/* Nav links */
.pk-nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,.85) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.9rem 0.75rem !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
}

    .pk-nav-link:hover,
    .pk-nav-link:focus {
        color: white !important;
        border-bottom-color: var(--Groen);
        background: rgba(255,255,255,.06);
    }

    .pk-nav-link i {
        font-size: 0.8rem;
        opacity: .8;
    }

/* User button (right side) */
.pk-nav-user,
.pk-nav-user:hover,
.pk-nav-user:focus,
.pk-nav-user.show,
.pk-nav-user[aria-expanded="true"] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255,255,255,.9) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    transition: background .15s;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
    outline: none !important;
}

    .pk-nav-user:hover {
        background: rgba(255,255,255,.1);
        color: white !important;
    }

.pk-nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--Groen);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pk-nav-username {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .pk-nav-username small {
        font-size: 0.7rem;
        opacity: .65;
        font-weight: 400;
    }

.pk-nav-chevron {
    font-size: 0.65rem;
    opacity: .7;
    margin-left: 0.1rem;
}

.pk-nav-user.dropdown-toggle::after {
    display: none;
}

/* Dropdown menu */
.pk-dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    padding: 0.4rem 0;
    min-width: 210px;
}

    .pk-dropdown-menu .dropdown-item {
        font-size: 0.875rem;
        padding: 0.55rem 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        color: var(--Donkerblauw);
        transition: background .12s;
    }

        .pk-dropdown-menu .dropdown-item i {
            width: 16px;
            text-align: center;
            opacity: .75;
            font-size: 0.8rem;
        }

        .pk-dropdown-menu .dropdown-item:hover {
            background: #f0f6ff;
            color: var(--Donkerblauw);
        }

    .pk-dropdown-menu .dropdown-divider {
        margin: 0.3rem 0;
    }

.pk-dropdown-header {
    padding: 0.65rem 1.1rem 0.4rem;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .pk-dropdown-header span {
        font-weight: 700;
        font-size: 0.875rem;
        color: var(--Donkerblauw);
    }

    .pk-dropdown-header small {
        font-size: 0.75rem;
        color: #888;
    }

.pk-dropdown-logout {
    color: #c0392b !important;
}

    .pk-dropdown-logout i {
        color: #c0392b !important;
        opacity: 1 !important;
    }

    .pk-dropdown-logout:hover {
        background: #fff0f0 !important;
    }

.pk-dropdown-switch {
    color: var(--Donkerblauw) !important;
    font-weight: 600;
}

@media (max-width: 991px) {
    .pk-nav-link {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding: 0.6rem 1rem !important;
    }

        .pk-nav-link:hover {
            border-left-color: var(--Groen);
            border-bottom-color: transparent;
        }

    .pk-navbar .ms-auto {
        width: 100%;
        margin-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,.15);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        align-items: flex-start !important;
    }

    .pk-nav-user {
        width: 100%;
        justify-content: flex-start;
    }

    .pk-dropdown-menu {
        background: rgba(255,255,255,.06);
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }

        .pk-dropdown-menu .dropdown-item {
            color: rgba(255,255,255,.85);
        }

            .pk-dropdown-menu .dropdown-item:hover {
                background: rgba(255,255,255,.1);
                color: white;
            }
}

/* Buttons */
.btn {
    border: 1px solid var(--Donkerblauw);
    border-radius: 5px;
    cursor: pointer;
    color: var(--Donkerblauw);
}

    .btn:hover {
        background-color: var(--Groen);
    }

@media (max-width: 768px) {
    .btn {
        /*        width: 100%;
*/
    }
}

/* Containers */
.button-container {
    padding-top: 25px;
    padding-bottom: 10px;
}

.perikacontainer {
    margin: 10px;
    margin-bottom: 60px;
}

.filter-container {
    margin-bottom: 20px;
    background-color: var(--Lichtblauw);
}

/* Pagination */
.pagination-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7c8f;
    margin-bottom: 0.35rem;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .pagination a,
    .pagination .pagination-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        padding: 0 0.6rem;
        text-decoration: none;
        border: 1px solid #dbe5ef;
        border-radius: 8px;
        background: #fff;
        color: var(--Donkerblauw);
        font-weight: 600;
    }

    .pagination .pagination-page {
        min-width: 36px;
    }

    .pagination .pagination-page.is-hidden {
        display: none;
    }

    .pagination a.active {
        background: var(--Groen);
        border-color: var(--Groen);
        color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    }

    .pagination a:hover:not(.active) {
        background: #eef3f8;
        border-color: #c9d7e5;
    }

    .pagination .pagination-nav.disabled {
        color: #aab5c1;
        border-color: #e2e8ef;
        background: #f8fafc;
        cursor: not-allowed;
    }

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination a,
    .pagination .pagination-nav {
        min-width: 30px;
        height: 30px;
        padding: 0 0.45rem;
        border-radius: 7px;
    }

    .pagination .pagination-page {
        min-width: 32px;
    }
}

/* Table */
.table-container {
    overflow: auto;
    border-radius: 6px;
}

:is(.perikatable, .idx-conv-content table) {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.875rem;
    border-radius: 6px;
    overflow: hidden;
}

    :is(.perikatable, .idx-conv-content table) thead {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        :is(.perikatable, .idx-conv-content table) thead tr {
            background: #dce5ef;
            color: var(--Donkerblauw);
            font-weight: 600;
            border-bottom: 2px solid var(--Groen);
        }

        :is(.perikatable, .idx-conv-content table) thead td:first-child,
        :is(.perikatable, .idx-conv-content table) thead th:first-child {
            border-radius: 6px 0 0 0;
        }

        :is(.perikatable, .idx-conv-content table) thead td:last-child,
        :is(.perikatable, .idx-conv-content table) thead th:last-child {
            border-radius: 0 6px 0 0;
        }

        :is(.perikatable, .idx-conv-content table) thead td,
        :is(.perikatable, .idx-conv-content table) thead th {
            padding: 0.65rem 0.85rem;
            text-align: left;
            white-space: nowrap;
        }

        :is(.perikatable, .idx-conv-content table) thead a {
            text-decoration: none;
            color: inherit;
        }

            :is(.perikatable, .idx-conv-content table) thead a:hover {
                text-decoration: underline;
            }

    :is(.perikatable, .idx-conv-content table) td {
        text-align: left;
        padding: 0.55rem 0.85rem;
        border-bottom: 1px solid #eef0f3;
    }

    :is(.perikatable, .idx-conv-content table) tbody tr {
        background: white;
        white-space: nowrap;
        transition: background .1s;
    }

        :is(.perikatable, .idx-conv-content table) tbody tr:nth-child(even) {
            background: #f7f9fb;
        }

.clickablerow tbody tr {
    cursor: pointer;
}

    .clickablerow tbody tr:hover {
        background: #eaf6e8 !important;
    }

.actionlinkrow:hover {
    cursor: pointer;
}

/* ===== Responsive cards: tabel -> kaartjes op kleine schermen ===== */
@media (max-width: 768px) {
    .responsive-cards thead {
        display: none;
    }

    .responsive-cards tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #dce5ef;
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0;
        background: white;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        white-space: normal;
        overflow: hidden;
    }

    .responsive-cards tbody tr:nth-child(even) {
        background: white;
    }

    .responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        order: var(--card-order, 0);
        padding: 0.35rem 0.85rem;
        border-bottom: 1px solid #f0f2f5;
        text-align: right;
        white-space: normal;
    }

    .responsive-cards td:last-child {
        border-bottom: none;
    }

    .responsive-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--Donkerblauw);
        text-align: left;
        flex: 0 0 45%;
        padding-right: 0.5rem;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .responsive-cards td.card-hide {
        display: none;
    }

    .responsive-cards td.card-title {
        display: block;
        margin: 0;
        background: #dce5ef;
        color: var(--Donkerblauw);
        font-size: 0.95rem;
        font-weight: 700;
        padding: 0.55rem 0.85rem 0.4rem;
        border-bottom: none;
        text-align: left;
    }

    .responsive-cards td.card-title::before {
        display: none;
    }

    .responsive-cards td.card-subtitle {
        display: block;
        margin: 0;
        background: #eef3f8;
        color: #3f5268;
        font-size: 0.83rem;
        font-weight: 600;
        padding: 0.35rem 0.85rem 0.45rem;
        border-bottom: 1px solid #d8e2ec;
        text-align: left;
    }

    .responsive-cards td.card-subtitle::before {
        display: none;
    }

    .responsive-cards td.card-bold {
        font-weight: 700;
    }

    .responsive-cards td.card-bold::before {
        font-weight: 700;
    }
}

/* Cards */
.card {
    margin-bottom: 10px;
}

.card-title {
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.card-subtitle {
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
}

/* ===== idx-* Modern Design System ===== */

.idx-hero {
    background: linear-gradient(135deg, var(--Donkerblauw) 0%, #005f8e 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: white;
}

.idx-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.idx-card {
    border-left: 4px solid var(--Groen) !important;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 59, 88, 0.08);
    border: 1px solid rgba(0, 59, 88, 0.07);
    overflow: hidden;
    margin-bottom: 1rem;
}

.idx-card-header {
    background: #dce5ef;
    color: var(--Donkerblauw);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.idx-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.idx-card-header .contextmenu {
    margin-left: auto;
}

.idx-hdr-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: rgba(var(--Groen-rgb, 60, 150, 100), 0.12);
    color: var(--Groen);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.idx-card-body {
    padding: 1.25rem 1.5rem;
}

.idx-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--Groen);
    margin-top: 1.1rem;
    margin-bottom: 0.75rem;
    padding: 0.9rem 0.75rem;
    background-color: rgba(1, 132, 64, 0.08);
    border: 1px solid #e3e9ef;
    border-radius: 4px;
}

.idx-section-label:first-child {
    margin-top: 0;
}

.idx-section-label a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
}

.idx-info-grid a {
    color: inherit;
    text-decoration: none;
}

a.idx-badge-on,
a.idx-badge-off,
.idx-badge-on a,
.idx-badge-off a {
    color: inherit;
    text-decoration: none;
}

.idx-dd-with-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}



.idx-section-label .idx-separator {
    color: var(--Donkerblauw);
    opacity: 0.4;
}

.idx-section-sublabel {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--Donkerblauw);
    opacity: 0.7;
    margin-top: 0.2rem;
}

.idx-form-label,
.idx-card label:not(.idx-switch-label):not(.btn):not(.form-check-label),
.idx-card-body label:not(.idx-switch-label):not(.btn):not(.form-check-label) {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--Donkerblauw);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    display: block;
}

.idx-form-group {
    margin-bottom: 1rem;
}

.idx-form-control {
    border: 1.5px solid rgba(0, 59, 88, 0.18);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    color: var(--TekstKleur);
    background-color: white;
    transition: border-color 0.15s;
    width: 100%;
}

    .idx-form-control:focus {
        outline: none;
        border-color: var(--Blauw);
        box-shadow: 0 0 0 3px rgba(10, 160, 237, 0.12);
    }

    .idx-form-control[readonly],
    .idx-form-control:disabled {
        background-color: #f4f7f9;
        color: #6b7c8e;
        cursor: not-allowed;
    }

/* Selecteer dropdowns */
select.form-control,
select.form-select {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-right: 2rem;
    cursor: pointer;
}

    select.form-control:focus,
    select.form-select:focus {
        border-color: var(--Blauw);
        box-shadow: 0 0 0 3px rgba(10, 160, 237, 0.12);
        outline: none;
    }

.idx-check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background-color: #f4f7f9;
    border: 1.5px solid rgba(0, 59, 88, 0.1);
    font-size: 0.875rem;
    color: var(--TekstKleur);
    cursor: pointer;
    user-select: none;
    max-width: 400px;
}

    .idx-check-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--Groen);
        cursor: pointer;
        flex-shrink: 0;
    }

.idx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--Donkerblauw);
    background-color: white;
    color: var(--Donkerblauw);
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}

    .idx-btn-primary:hover {
        background-color: var(--Donkerblauw);
        color: white;
    }

    .idx-btn-primary:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

.idx-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--Rood);
    background-color: white;
    color: var(--Rood);
    transition: background-color 0.15s, color 0.15s;
}

    .idx-btn-danger:hover {
        background-color: var(--Rood);
        color: white;
    }

    .idx-btn-danger:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

.idx-btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--Groen);
    background-color: white;
    color: var(--Groen);
    transition: background-color 0.15s, color 0.15s;
}

    .idx-btn-success:hover {
        background-color: var(--Groen);
        color: white;
    }

    .idx-btn-success:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

.idx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #95a6b8;
    background-color: white;
    color: #2f445b;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}

    .idx-btn-ghost:hover {
        background-color: #e9f0f6;
        border-color: #71879c;
        color: #1f3347;
    }

    .idx-btn-ghost:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

@keyframes idx-spin {
    to { transform: rotate(360deg); }
}

.idx-btn-spinner {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: idx-spin 0.6s linear infinite;
    vertical-align: middle;
}

.idx-btn-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5f1ef;
}

.idx-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.idx-approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.idx-approval-form {
    margin: 0;
}

.idx-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--TekstKleur);
    line-height: 1.5;
}

.idx-icon {
    color: var(--Donkerblauw);
    width: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    opacity: 0.65;
    font-size: 0.8rem;
}

/* idx Filter */
.idx-filter {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 59, 88, 0.08);
    border: 1px solid rgba(0, 59, 88, 0.07);
    overflow: hidden;
    margin-bottom: 1rem;
}

.idx-filter-header {
    background: linear-gradient(135deg, var(--Donkerblauw) 0%, #005f8e 100%);
    color: white;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

    .idx-filter-header span {
        font-size: 0.9rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.idx-filter-body {
    padding: 1rem 1.25rem;
}

/* idx Detail List */
.idx-dl {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.idx-dl dt {
    font-weight: 600;
    color: var(--Donkerblauw);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.idx-dl dd {
    margin: 0;
    color: var(--TekstKleur);
}

/* idx Context menu button */
.idx-actions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 59, 88, 0.18);
    background: white;
    color: var(--Donkerblauw);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}

    .idx-actions-btn:hover {
        background-color: var(--Lichtblauw);
    }

/* idx badge */
.idx-badge-on {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: rgba(1, 132, 64, 0.09);
    color: var(--Groen);
    border: 1px solid rgba(1, 132, 64, 0.25);
}

.idx-badge-off {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: #f3f6f9;
    color: #7b8896;
    border: 1px solid #d7e0e8;
}

.idx-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

/* Remove <style> from Index views */
.idx-card > .idx-card-header + .idx-card-body {
    border-top: none;
}

/* Detail / Wijzigen view header text (h5 inside card) */
.idx-card-header-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    margin: -1.25rem -1.5rem 1.25rem -1.5rem;
    padding: 0.9rem 1.25rem;
    background: #dce5ef;
}

.idx-card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -1.25rem -1.5rem 1rem -1.5rem;
    padding: 0.65rem 1rem 0.65rem 1.25rem;
    background: #dce5ef;
}

    .idx-card .idx-card-body .idx-card-header-bar h5.idx-card-header-text {
        margin: 0;
        padding: 0;
        background: transparent;
        border-bottom: none;
    }

    .idx-card-header-bar .contextmenu {
        margin-left: auto;
    }

@media (max-width: 768px) {
    .idx-card-header-bar {
        padding-right: 0.75rem;
    }
}

/* Breadcrumb subtitle (relatie | project | fase) */
.idx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: var(--Groen);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

    .idx-breadcrumb a {
        color: white;
        text-decoration: none;
    }

    .idx-breadcrumb a:hover {
        text-decoration: underline;
    }

/* Wijzigen form card wrapping */
.idx-card .idx-card-body h5.idx-card-header-text {
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e5f1ef;
    margin-bottom: 1rem;
}

/* Detail content body wrapper */
.idx-card-content {
    position: relative;
}

.card-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
}

.card-grid-2,
.card-grid-3,
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.idx-input-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.idx-input-actions .form-control {
    padding-right: 2.2rem;
    border-radius: 6px !important;
}

.idx-input-actions .idx-input-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--Donkerblauw);
    opacity: 0.45;
    padding: 0 0.4rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.idx-input-actions .idx-input-btn:hover {
    opacity: 1;
}

.idx-once-warning {
    align-items: center;
    gap: 0.6rem;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.idx-once-warning i {
    font-size: 1.1rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.card-grid-postcode-plaats {
    display: grid;
    grid-template-columns: minmax(80px, 140px) 1fr;
}


/* Validatie */
.validation-summary-errors li {
    color: red;
}

/* Collapsible */
.collapsible {
    cursor: pointer;
    padding: 5px;
}

    .collapsible i {
        padding: 5px;
    }

.collapsible-content {
    display: none;
}

@media screen and (min-height: 768px) and (min-width: 580px) {
    .collapsible-content {
        display: block;
    }
}

/* contextmenu */
.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #fff;
    color: #5f7388;
    border: 1px solid #ccd9e6;
    border-radius: 0.55rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .dropbtn:hover,
    .dropbtn:focus {
        background: #f1f6fb;
        color: var(--Donkerblauw);
        border-color: #aac2d8;
        box-shadow: 0 0 0 3px rgba(48, 108, 156, 0.12);
        outline: none;
    }

.contextmenu {
    display: inline-block;
}

.contextmenu-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    overflow: auto;
    border: 1px solid #dbe6ef;
    border-radius: 0.75rem;
    box-shadow: 0 14px 28px rgba(15, 40, 63, 0.16);
    z-index: 1050;
}

    .contextmenu-content a,
    .contextmenu-content a:not([href]),
    .contextmenu-content a:not([href]):not([class]) {
        color: var(--TekstKleur);
        padding: 0.65rem 0.9rem;
        text-decoration: none;
        display: block;
        white-space: nowrap;
    }

.contextmenu a:hover {
    background-color: #f4f8fb;
}

.show {
    display: block;
}

.contextmenu-item {
    background: none;
    border: none;
    padding: 0.65rem 0.9rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: block;
    color: var(--TekstKleur);
    font-size: inherit;
    font-family: inherit;
}

    .contextmenu-item:hover {
        background-color: #f4f8fb;
    }

@media (max-width: 768px) {
    .dropbtn {
        width: 1.9rem;
        height: 1.9rem;
    }
}

/* Tab container */
.tab-container {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--Groen);
    white-space: nowrap;
    margin-top: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    .tab-container > button {
        flex: 0 0 auto;
        background: #e9ecef;
        color: #666;
        border: 1px solid #ced4da;
        border-bottom: none;
        margin-right: 3px;
        padding: 0.45rem 1.1rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        border-radius: 6px 6px 0 0;
        position: relative;
        top: 2px;
        transition: background .15s, color .15s;
    }

        .tab-container > button:hover {
            background: #f8f9fa;
            color: var(--Donkerblauw);
        }

            .tab-container > button.active {
                    background: white;
                    color: var(--Donkerblauw);
                    font-weight: 600;
                    border-color: var(--Groen);
                    border-bottom-color: white;
                    top: 2px;
                }

            .tab-container::-webkit-scrollbar {
                height: 0;
            }

        .tab-page {
    border: 1px solid #ced4da;
    border-top: none;
    padding: 1.25rem;
    min-height: 200px;
    overflow: auto;
    background: white;
}


/* Urenvoortgang */
.idx-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    margin: 1.5rem 0 0.6rem;
    padding: 0 0 0.35rem;
    border-bottom: 1px solid #dce5ef;
    line-height: 1.25;
}

.idx-info-grid {
    gap: 0.7rem;
    align-items: stretch;
    margin-bottom: 0.7rem;
}

.idx-info-grid > dl {
    margin: 0;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
}

.idx-info-grid > dl dt {
    margin: 0 0 0.2rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7c8f;
}

.idx-info-grid > dl dd {
    margin: 0;
    color: var(--Donkerblauw);
    font-weight: 700;
    font-size: 0.98rem;
}

.idx-info-grid > dl.idx-deadline-verlopen dd {
    color: var(--rood, #c0392b);
}

.idx-info-grid > dl.idx-deadline-verlopen dt label {
    color: var(--rood, #c0392b);
}

.idx-uren-voortgang {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.55rem 0 0.35rem;
}

.idx-uren-balk-wrap {
    flex: 1;
    height: 9px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
}

.idx-uren-balk {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}

.idx-uren-pct {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.idx-time-dial-wrap {
    margin: 0.75rem 0 0.2rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.idx-time-dial {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid #c9d8e7;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.85);
}

.idx-time-dial-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.idx-time-dial-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    line-height: 1.2;
}

.idx-time-dial-sub {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7c8f;
    font-weight: 600;
}

@media (max-width: 768px) {
    .idx-section-title {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.28rem;
        font-size: 0.85rem;
    }

    .idx-info-grid {
        gap: 0.55rem;
    }

    .idx-info-grid > dl {
        padding: 0.5rem 0.6rem;
    }

    .idx-info-grid > dl dt {
        font-size: 0.7rem;
    }

    .idx-info-grid > dl dd {
        font-size: 0.93rem;
    }

    .idx-time-dial-wrap {
        padding: 0.6rem 0.65rem;
        gap: 0.7rem;
    }

    .idx-time-dial {
        width: 64px;
        height: 64px;
    }

    .idx-time-dial-time {
        font-size: 0.88rem;
    }
}

/* Actieconversaties */
.idx-conv-editor {
    margin-bottom: 0.95rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #ffffff;
}

.idx-conv-editor-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    margin: 0 0 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e6edf4;
}

.idx-conv-upload-row {
    margin-bottom: 0.65rem;
}

.idx-conv-upload-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7c8f;
    margin-bottom: 0.28rem;
}

.idx-conv-file {
    max-width: 100%;
}

.idx-conv-input-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.idx-conv-textarea {
    min-height: 88px;
    resize: vertical;
}

.idx-conv-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 118px;
    border-radius: 8px;
}

.idx-conv-item {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #ffffff;
}

.idx-conv-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e8eef4;
}

.idx-conv-meta-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}

.idx-conv-time {
    font-size: 0.76rem;
    font-weight: 700;
    color: #60748a;
}

.idx-conv-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--Donkerblauw);
}

.idx-conv-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.idx-conv-item:hover .idx-conv-actions,
.idx-conv-item:focus-within .idx-conv-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.idx-conv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f3f6fa;
    color: #4f6379;
    text-decoration: none;
    cursor: pointer;
}

.idx-conv-action:hover {
    background: #e4ebf3;
    color: var(--Donkerblauw);
}

.idx-conv-action-edit {
    color: #3f5973;
}

.idx-conv-action-edit:hover {
    background: #e3edf7;
    color: #2f4963;
}

.idx-conv-action-delete {
    color: #a24a4a;
}

.idx-conv-action-delete:hover {
    background: #f9e9e9;
    color: #8c3434;
}

.idx-conv-content {
    color: #2f3e4e;
    line-height: 1.5;
    padding: 0.15rem 0 0.1rem;
    overflow-x: auto;
}

.idx-conv-content p:last-child {
    margin-bottom: 0;
}

.idx-conv-content blockquote {
    margin: 0.4rem 0;
    padding: 0.55rem 0.8rem;
    border-left: 4px solid var(--Groen);
    background: color-mix(in srgb, var(--Groen) 10%, white);
    border-radius: 0 8px 8px 0;
    color: #2f3e4e;
}

.idx-conv-content blockquote p {
    margin-bottom: 0.35rem;
}

.idx-conv-content blockquote p:last-child {
    margin-bottom: 0;
}

.idx-conv-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #dbe5ef;
}

.idx-conv-attachment-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    overflow: hidden;
    background: #f5f9fd;
}

.idx-conv-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #49657f;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.idx-conv-attachment-pill:nth-child(3n+2) {
    background: #f7f6ff;
    border-color: #dedcf7;
}

.idx-conv-attachment-pill:nth-child(3n+3) {
    background: #f4fbf7;
    border-color: #d7eee0;
}

.idx-conv-attachment:hover {
    background: #eaf2fb;
    color: var(--Donkerblauw);
    text-decoration: none;
}

.idx-conv-attachment-delete-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.idx-conv-attachment-remove {
    width: 34px;
    border: none;
    background: transparent;
    color: #a24a4a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.idx-conv-attachment-remove:hover {
    background: #f9e9e9;
    color: #8c3434;
}

@media (max-width: 768px) {
    .idx-conv-editor,
    .idx-conv-item {
        padding: 0.75rem 0.8rem;
    }

    .idx-conv-input-row {
        flex-direction: column;
    }

    .idx-conv-send {
        width: 100%;
        min-height: 40px;
    }

    .idx-conv-meta {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.4rem;
        padding-bottom: 0.35rem;
    }

    .idx-conv-actions {
        align-self: flex-end;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Contact detail */
.idx-contact-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e5edf4;
}

.idx-contact-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .idx-contact-headline {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Login */
.idx-login-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.idx-login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    padding: 1.2rem 1.2rem 1rem;
    box-shadow: 0 6px 20px rgba(0, 59, 88, 0.08);
}

.idx-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.idx-login-logo img {
    max-height: 86px;
}

 .idx-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.idx-login-grid {
    display: grid;
    gap: 1rem;
}

.idx-login-section {
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.idx-login-section-alt {
    background: #f8fbfe;
}

.idx-login-section-header {
    margin-bottom: 0.9rem;
}

.idx-login-section-title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--Donkerblauw);
}

.idx-login-section-subtitle {
    margin: 0;
    color: #6b7c8f;
    font-size: 0.86rem;
}

 .idx-login-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0;
    color: #7b8ea2;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.idx-login-divider::before,
.idx-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe5ef;
}

@media (min-width: 992px) {
    .idx-login-card {
        max-width: 980px;
    }

    .idx-login-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: stretch;
    }

    .idx-login-divider {
        flex-direction: column;
        justify-content: center;
        margin: 0;
        min-height: 100%;
    }

    .idx-login-divider::before,
    .idx-login-divider::after {
        width: 1px;
        height: 100%;
        min-height: 48px;
    }
}

.idx-login-field {
    margin: 0;
}

.idx-login-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7c8f;
    margin-bottom: 0.28rem;
}

 .idx-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.idx-login-options-single {
    justify-content: flex-start;
}

.idx-login-remember {
    margin: 0;
    font-size: 0.86rem;
    color: #44586e;
}

.idx-login-forgot {
    font-size: 0.83rem;
    font-weight: 600;
    color: #4c6680;
    text-decoration: none;
}

.idx-login-forgot:hover {
    color: var(--Donkerblauw);
    text-decoration: underline;
}

.idx-login-submit {
    width: 100%;
    margin-top: 0.25rem;
    justify-content: center;
}

@media (max-width: 576px) {
    .idx-login-wrap {
        padding: 0.7rem;
        min-height: auto;
    }

    .idx-login-card {
        padding: 0.95rem 0.85rem 0.85rem;
    }

    .idx-login-logo img {
        max-height: 74px;
    }

    .idx-login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .idx-login-submit {
        min-height: 40px;
    }
}

/* Verify2FA */
.idx-verify-card {
    max-width: 520px;
}

.idx-verify-title {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    margin: 0 0 0.2rem;
    text-align: center;
}

.idx-verify-subtitle {
    margin: 0 0 0.5rem;
    color: #44586e;
    text-align: center;
    font-size: 0.92rem;
}

.idx-verify-info {
    background: #f4f8fc;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.idx-verify-expiry {
    margin: 0.4rem 0 0;
    color: #7b8ea2;
    font-size: 0.83rem;
}

.idx-magic-steps {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.idx-magic-steps li {
    font-size: 0.86rem;
    color: #44586e;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.45;
}

.idx-magic-steps li i {
    display: none;
}

.idx-verify-input {
    letter-spacing: 0.18em;
    text-align: center;
    font-weight: 700;
}

/* Modal */
.verwijdermodal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1060; /* Boven alle pagina-elementen, ook focus- en sticky-elementen van Bootstrap */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.errormodal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1060; /* Boven alle pagina-elementen, ook focus- en sticky-elementen van Bootstrap */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.validationmodal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1060; /* Boven alle pagina-elementen, ook focus- en sticky-elementen van Bootstrap */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 400px; /* Could be more or less, depending on screen size */
}

.modal-content-large {
    margin: 5% auto !important; /* 5% from the top and centered */
}

.modal-box {
    padding: 20px;
}

.close {
    padding-right: 7px;
    background-color: #aaa;
    text-align: right;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: red;
        text-decoration: none;
        cursor: pointer;
    }

/* ===== Actie mobiele kaartjes ===== */
.actie-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.actie-card {
    background: white;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.15s;
}

    .actie-card:hover {
        background: #eaf6e8;
    }

.actie-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--Donkerblauw);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eef0f3;
}

.actie-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f5f7fa;
}

    .actie-card-row:last-child {
        border-bottom: none;
    }

    .actie-card-row span:first-child {
        font-weight: 600;
        color: var(--Donkerblauw);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        flex: 0 0 40%;
    }

    .actie-card-row span:last-child {
        text-align: right;
        color: #333;
    }


/* ===== Gedeeld bestand en gedeeld wachtwoord (ShareFiles/Download, ShareSecrets/Show) =====
   Eén gecentreerde kaart: icoon en naam, de gegevens als chips, de beschrijving en de stap (eerst de verificatiecode in zes
   vakjes, zie js/verificatiecode.js; daarna het downloadvlak of het wachtwoord) */
.deel {
    max-width: 640px;
    margin: 1.5rem auto;
}

.deel-kaart .idx-card-body {
    padding: 2rem;
}

.deel-kop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.deel-icoon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    background: linear-gradient(135deg, var(--Donkerblauw), var(--Blauw));
}

.deel-kop-tekst {
    min-width: 0;
}

.deel-soort {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--Groen);
}

.deel-titel {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--Donkerblauw);
    overflow-wrap: anywhere;
}

.deel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.deel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--Lichtblauw);
    color: var(--Donkerblauw);
}

.deel-chip-eenmalig {
    background: #fff8e1;
    color: #92400e;
}

    .deel-chip-eenmalig i {
        color: #f59e0b;
    }

.deel-beschrijving {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--Lichtblauw);
    color: var(--TekstKleur);
    margin-bottom: 1rem;
}

    .deel-beschrijving > :last-child {
        margin-bottom: 0;
    }

.deel-stap {
    margin-top: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e9ef;
    text-align: center;
}

.deel-stap-titel {
    margin: 0;
    font-weight: 700;
    color: var(--Donkerblauw);
}

.deel-stap-tekst {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7a88;
}

/* De zes vakjes: de vorm en het gedrag van de tweestapsverificatie in de webapp, in de kleuren van de Portal */
.deel-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1.25rem 0 0.75rem;
}

.deel-code-scheiding {
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: #cfd8e1;
}

.deel-cijfer {
    width: 46px;
    height: 56px;
    padding: 0;
    box-sizing: border-box;
    border: 2px solid #cfd8e1;
    border-radius: 8px;
    background: var(--Grijs);
    color: var(--Donkerblauw);
    font: 700 1.6rem/1 Consolas, "Cascadia Mono", "Courier New", monospace;
    text-align: center;
    caret-color: var(--Groen);
    transition: border-color .15s, box-shadow .15s, background-color .15s, transform .15s;
}

    .deel-cijfer:focus {
        outline: none;
        border-color: var(--Blauw);
        background: white;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--Blauw) 22%, transparent);
        transform: translateY(-2px);
    }

    .deel-cijfer.gevuld {
        border-color: var(--Groen);
        background: white;
    }

.deel-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    background: var(--Donkerblauw);
    border-color: var(--Donkerblauw);
    color: white;
}

    .deel-knop:hover,
    .deel-knop:focus-visible {
        background: var(--Blauw);
        border-color: var(--Blauw);
        color: white;
    }

    .deel-knop:disabled {
        opacity: .45;
    }

.deel-fout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    color: var(--Rood);
    font-weight: 600;
}

.deel-gelukt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    color: var(--Groen);
    font-weight: 700;
}

/* Na de code: het hele vlak is de downloadknop */
.deel-vlak {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--Groen);
    border-radius: 12px;
    background: color-mix(in srgb, var(--Groen) 6%, white);
    color: var(--Donkerblauw);
    text-align: left;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}

    .deel-vlak:hover,
    .deel-vlak:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--Groen) 22%, transparent), 0 8px 24px rgb(0 59 88 / .12);
        transform: translateY(-1px);
    }

    .deel-vlak:hover .deel-knop,
    .deel-vlak:focus-visible .deel-knop {
        background: var(--Groen);
        border-color: var(--Groen);
    }

    .deel-vlak.gedownload {
        opacity: .5;
        cursor: default;
    }

.deel-vlak-tekst {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.deel-bestandsnaam {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.deel-vlak-sub {
    font-size: 0.85rem;
    color: #6b7a88;
}

.deel-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: #6b7a88;
}

.deel-hint-eenmalig {
    color: #92400e;
}

/* Het wachtwoord na de code: grote velden met tonen en kopiëren */
.deel-geheim {
    padding: 1.25rem;
    border: 2px solid var(--Groen);
    border-radius: 12px;
    background: color-mix(in srgb, var(--Groen) 6%, white);
    text-align: left;
    outline: none;
}

.deel-veld-label {
    display: block;
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--Donkerblauw);
}

.deel-veld {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .deel-veld:last-child {
        margin-bottom: 0;
    }

    .deel-veld .form-control {
        flex: 1;
        min-width: 0;
        height: 44px;
        font-size: 1.05rem;
        background: white;
    }

.deel-wachtwoord {
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    letter-spacing: .05em;
}

/* Een verborgen wachtwoord (togglePassword): stippen zonder wachtwoordveld, zodat wachtwoordmanagers niets invullen */
input.geheim {
    -webkit-text-security: disc;
}

.deel-veld-knop {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 44px;
    border: 1px solid #cfd8e1;
    background: white;
    color: var(--Donkerblauw);
    font-weight: 600;
}

    .deel-veld-knop:hover {
        background: var(--Lichtblauw);
    }

@media (max-width: 576px) {
    .deel {
        margin: 0.5rem auto;
    }

    .deel-kaart .idx-card-body {
        padding: 1.25rem;
    }

    .deel-code {
        gap: 5px;
    }

    .deel-cijfer {
        width: 40px;
        height: 50px;
        font-size: 1.4rem;
    }

    .deel-vlak {
        flex-wrap: wrap;
    }

        .deel-vlak .deel-knop {
            width: 100%;
        }

    .deel-veld {
        flex-wrap: wrap;
    }

        /* Invoer op een telefoon 16px: anders zoomt Safari in */
        .deel-veld .form-control {
            flex-basis: 100%;
            font-size: 16px;
        }

    .deel-veld-knop {
        flex: 1;
        justify-content: center;
    }
}
/* Kluis (_Kluis.cshtml): dicht met het codeslot eronder; schudt bij een foute code; bij een goede code draait het wiel en gaat de
   deur open, en verschijnt daarna de inhoud (.deel-onthuld). Leeg: de deur staat open en er zit niets in. */
.kluis {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.kluis-romp {
    fill: var(--Donkerblauw);
}

.kluis-binnen {
    fill: #062636;
}

.kluis-voet {
    fill: #002a40;
}

.kluis-deurvlak {
    fill: #0b5f8a;
    stroke: #3aa8de;
    stroke-width: 1.5;
}

.kluis-scharnier {
    fill: #3aa8de;
}

.kluis-wielrand {
    fill: none;
    stroke: white;
    stroke-width: 3;
}

.kluis-spaak {
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.kluis-as {
    fill: var(--Groen);
}

.kluis-papier {
    fill: white;
}

.kluis-lijn {
    stroke: var(--Blauw);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.kluis-wiel {
    transform-box: fill-box;
    transform-origin: center;
}

/* De deur draait om de scharnieren links: smaller worden geeft het beeld van een deur die naar je toe opengaat */
.kluis-deur {
    transform-box: view-box;
    transform-origin: 18px 57px;
}

.kluis-open .kluis-wiel {
    animation: kluis-wiel .45s ease-in-out forwards;
}

.kluis-open .kluis-deur {
    animation: kluis-deur .45s .4s cubic-bezier(.5, 0, .75, 0) forwards;
}

.kluis-open .kluis-inhoud {
    animation: kluis-inhoud .3s .7s ease-out both;
}

.kluis-leeg .kluis-deur {
    transform: scaleX(.14) skewY(8deg);
}

.kluis-fout {
    animation: kluis-schud .4s ease-in-out;
}

.deel-code.fout .deel-cijfer {
    border-color: var(--Rood);
    background: #fff5f5;
}

.deel-onthuld {
    animation: deel-onthul .35s .85s ease-out both;
}

@keyframes kluis-wiel {
    to {
        transform: rotate(200deg);
    }
}

@keyframes kluis-deur {
    to {
        transform: scaleX(.14) skewY(8deg);
    }
}

@keyframes kluis-inhoud {
    from {
        opacity: 0;
        transform: scale(.85);
    }
}

@keyframes kluis-schud {
    20%, 60% {
        transform: translateX(-6px);
    }

    40%, 80% {
        transform: translateX(6px);
    }
}

@keyframes deel-onthul {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* Zonder beweging (systeeminstelling): de kluis meteen open en de inhoud meteen in beeld */
@media (prefers-reduced-motion: reduce) {
    .kluis-open .kluis-wiel,
    .kluis-open .kluis-deur,
    .kluis-open .kluis-inhoud,
    .kluis-fout,
    .deel-onthuld {
        animation: none;
    }

    .kluis-open .kluis-deur {
        transform: scaleX(.14) skewY(8deg);
    }
}
.deel-stap-alleen {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Na het downloaden (js/verificatiecode.js): gelukt of niet gelukt, onder het downloadvlak */
.deel-downloadstatus {
    margin: 0.75rem 0 0;
    font-weight: 600;
}

    .deel-downloadstatus.gelukt {
        color: var(--Groen);
    }

    .deel-downloadstatus.fout {
        color: var(--Rood);
    }

/* De regels van een offerte (Offerte.cshtml), zoals de pdf: per deelproject een eigen tbody (groep), met een streep tussen de groepen
   en niet erbinnen. Het deelproject halfvet, een actie ingesprongen met een bolletje en kleiner, de korting grijs, de beschrijving
   kleiner en grijs over de hele breedte onder haar regel. Op een telefoon twee kolommen (breed weg, smal erbij): omschrijving met
   aantal × tarief eronder, en het bedrag. */
.perikatable.offerte-regels tbody tr,
.perikatable.offerte-regels tbody tr:nth-child(even) {
    background: white;
    white-space: normal;
}

.perikatable.offerte-regels td {
    vertical-align: top;
    border-bottom: none;
    font-variant-numeric: tabular-nums;
}

    .perikatable.offerte-regels .getal {
        text-align: right;
        white-space: nowrap;
    }

.perikatable.offerte-regels tbody.groep tr:first-child td {
    border-top: 1px solid #e3e8ee;
    padding-top: 0.75rem;
}

.perikatable.offerte-regels tbody.groep tr:last-child td {
    padding-bottom: 0.75rem;
}

.perikatable.offerte-regels tr.deelproject td {
    font-weight: 600;
}

.perikatable.offerte-regels tr.korting td {
    color: #5f6b77;
}

.perikatable.offerte-regels tr.actie td {
    font-size: 0.8rem;
}

    .perikatable.offerte-regels tr.actie td:first-child {
        position: relative;
        padding-left: 1.6rem;
    }

        /* Het bolletje alleen bij de actie zelf, niet bij haar beschrijving (die staat er ingesprongen onder) */
        .perikatable.offerte-regels tr.actie:not(.beschrijving) td:first-child::before {
            content: "";
            position: absolute;
            left: 0.85rem;
            top: 0.95rem;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #9aa8b6;
        }

/* De beschrijving gewoon, ook onder een (vetgedrukt) deelproject; vet uit de markdown blijft vet */
.perikatable.offerte-regels tr.beschrijving td {
    padding-top: 0;
    color: #5f6b77;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
}

.perikatable.offerte-regels tr.beschrijving.actie td {
    padding-left: 1.6rem;
}

.perikatable.offerte-regels tr.beschrijving p {
    margin: 0 0 0.3rem 0;
}

.perikatable.offerte-regels .sub {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: #5f6b77;
    margin-top: 2px;
}

.perikatable.offerte-regels .smal {
    display: none;
}

.offerte-voetnoot {
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Offerte accepteren: de hoofdknop, gevuld in het groen van de huisstijl */
.idx-btn-success.gevuld {
    background-color: var(--Groen);
    color: white;
}

    .idx-btn-success.gevuld:hover {
        background-color: #016a34;
        border-color: #016a34;
    }

/* Offerte afwijzen: een rustige knop (idx-btn-ghost) die de reden pas na een klik toont */
.offerte-afwijzen {
    margin-top: 16px;
}

    .offerte-afwijzen > summary {
        list-style: none;
    }

        .offerte-afwijzen > summary::-webkit-details-marker {
            display: none;
        }

    .offerte-afwijzen[open] > summary {
        margin-bottom: 12px;
    }

/* Het logo van de organisatie boven de kaart van de offertepagina: klein, in de verhouding van het logo zelf */
.offerte-logo {
    padding: 4px 4px 16px 4px;
}

    .offerte-logo img {
        display: block;
        max-height: 44px;
        max-width: 200px;
        width: auto;
        height: auto;
    }

/* De totalen zoals op een factuur: rechts uitgelijnd, het totaal incl. btw groot onder een streep */
.offerte-totalen {
    margin: 8px 0 16px auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

    .offerte-totalen div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
    }

    .offerte-totalen dt {
        font-weight: 400;
        color: #5f6b77;
    }

    .offerte-totalen dd {
        margin: 0;
    }

    .offerte-totalen .totaal {
        border-top: 2px solid var(--Donkerblauw);
        padding-top: 6px;
        margin-top: 4px;
    }

        .offerte-totalen .totaal dt,
        .offerte-totalen .totaal dd {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--Donkerblauw);
        }

@media (max-width: 576px) {
    .perikatable.offerte-regels .breed {
        display: none;
    }

    .perikatable.offerte-regels .smal {
        display: block;
    }

    .perikatable.offerte-regels td,
    .perikatable.offerte-regels thead td {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .perikatable.offerte-regels tr.actie td:first-child,
    .perikatable.offerte-regels tr.beschrijving.actie td {
        padding-left: 1.3rem;
    }

        .perikatable.offerte-regels tr.actie:not(.beschrijving) td:first-child::before {
            left: 0.5rem;
        }

    .offerte-totalen {
        max-width: none;
    }
}
