.vskbn-dashboard {
    margin: 24px 0;
}

.vskbn-dashboard--separated {
    margin-top: 64px;
    padding-top: 38px;
    border-top: 4px solid #3ba357;
}

.vskbn-combined-export {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e2e4e7;
    color: #50575e;
    font-size: 13px;
}

.vskbn-combined-export > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vskbn-combined-export button,
.vskbn-export-modal-actions button {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #1d2327;
    cursor: pointer;
    font: inherit;
}

.vskbn-combined-export button:hover,
.vskbn-combined-export button:focus-visible,
.vskbn-export-modal-actions button:hover,
.vskbn-export-modal-actions button:focus-visible {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.vskbn-export-modal[hidden] {
    display: none;
}

.vskbn-export-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vskbn-export-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vskbn-export-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.vskbn-export-modal-panel h3 {
    margin: 0 0 8px;
}

.vskbn-export-choices {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.vskbn-export-choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f1;
    color: #3c434a;
}

.vskbn-export-choices input[type="checkbox"] {
    position: static !important;
    display: inline-block !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: #3ba357;
}

.vskbn-export-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* Dashboardtitel
-------------------------------------------------------------- */

.vskbn-dashboard-header {
    margin-bottom: 24px;
}

.vskbn-dashboard-title {
    flex: 1 1 auto;
    margin: 0;
}

.vskbn-dashboard-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    text-align: left;
}

.vskbn-dashboard-toggle-icon {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 1px solid #c3c4c7;
    border-radius: 50%;
}

.vskbn-dashboard-toggle-icon::before,
.vskbn-dashboard-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #50575e;
    content: '';
    transform: translate(-50%, -50%);
}

.vskbn-dashboard-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 0.15s ease;
}

.vskbn-dashboard-toggle[aria-expanded="true"] .vskbn-dashboard-toggle-icon::after {
    opacity: 0;
}

.vskbn-dashboard-toggle:hover .vskbn-dashboard-toggle-icon,
.vskbn-dashboard-toggle:focus-visible .vskbn-dashboard-toggle-icon {
    background: #f6f7f7;
    border-color: #3ba357;
}

.vskbn-dashboard--collapsed > :not(.vskbn-dashboard-header) {
    display: none !important;
}

.vskbn-dashboard--collapsed .vskbn-dashboard-header {
    margin-bottom: 0;
}


/* Filters
-------------------------------------------------------------- */

.vskbn-dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;

    margin-bottom: 24px;
}

.vskbn-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vskbn-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vskbn-dashboard-export,
.vskbn-dashboard-print {
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #50575e;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.vskbn-dashboard-export:hover,
.vskbn-dashboard-export:focus-visible,
.vskbn-dashboard-print:hover,
.vskbn-dashboard-print:focus-visible {
    background: #f6f7f7;
    border-color: #8c8f94;
}

@media (max-width: 600px) {
    .vskbn-combined-export {
        align-items: flex-start;
        flex-direction: column;
    }

    .vskbn-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.vskbn-dashboard-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vskbn-dashboard-filter-group--select {
    flex: 1 1 220px;
    flex-direction: column;
    gap: 6px;
}

.vskbn-dashboard-filter-group[hidden] {
    display: none !important;
}

.vskbn-dashboard-filter-group--select label {
    font-weight: 600;
}

.vskbn-dashboard-filter-select {
    width: 100%;
    min-height: 42px;
}

.vskbn-dashboard-filter-reset-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: flex-end;

    min-height: 42px;
    margin-left: auto;
}

.vskbn-dashboard-filter-reset {
    padding: 0;

    background: transparent;
    border: 0;

    color: #646970;
    font: inherit;
    font-size: 12px;
    text-decoration: none;

    cursor: pointer;
}

.vskbn-dashboard-filter-reset:hover,
.vskbn-dashboard-filter-reset:focus-visible {
    color: #2271b1;
    text-decoration: underline;
}

.vskbn-dashboard-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;

    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 999px;

    cursor: pointer;

    font-size: 14px;
    line-height: 1.4;

    user-select: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.vskbn-dashboard-filter:hover {
    background: #f0f0f1;
}

.vskbn-dashboard-filter.is-active {
    background: #e7f3ff;
    border-color: #72aee6;
}

.vskbn-dashboard-filter:has(.vskbn-dashboard-filter-input:checked) {
    background: #e7f3ff;
    border-color: #72aee6;
}

.vskbn-dashboard-filter-input {
    margin: 0;
}

.vskbn-dashboard--dieren .vskbn-dashboard-filter {
    padding: 5px 9px;

    font-size: 13px;
}


/* Dashboardgrid
-------------------------------------------------------------- */

.vskbn-dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 24px;
}

.vskbn-dashboard-grid-separator {
    grid-column: 1 / -1;
    order: 1;

    border-top: 3px solid #dcdcde;
}

.vskbn-dashboard-section-separator {
    grid-column: 1 / -1;
    order: 3;

    border-top: 2px solid #dcdcde;
}

.vskbn-dashboard-grid > .vskbn-dashboard-filters {
    grid-column: 1 / -1;
    order: 2;

    margin-bottom: 0;
}


/* Kaarten
-------------------------------------------------------------- */

.vskbn-dashboard-card {
    order: 3;

    background: #ffffff;

    border: 1px solid #dcdcde;
    border-radius: 12px;

    padding: 18px;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.05);
}

.vskbn-dashboard-card-title {
    margin: 0 0 14px;

    font-size: 20px;
    line-height: 1.3;
}


/* Grafieken
-------------------------------------------------------------- */

.vskbn-chart-wrap {
    position: relative;

    width: 100%;
    height: 280px;

    max-width: 360px;

    margin: 0 auto 18px;
}

.vskbn-chart-wrap canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}

.vskbn-chart-wrap--with-total {
    box-sizing: border-box;
    height: 344px;
    padding-top: 64px;
}


/* Samenvattende grafieken
-------------------------------------------------------------- */

.vskbn-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    margin-top: 24px;
}

.vskbn-dashboard-card-summary {
    width: auto;
}

.vskbn-dashboard-card-summary--full-width {
    grid-column: 1 / -1;
}

.vskbn-bar-chart-wrap {
    width: 100%;
    max-width: none;

    height: 540px;
}

.vskbn-chart-wrap--compact {
    height: 240px;
}

.vskbn-chart-wrap--uniform-pie {
    max-width: none;
    height: 430px;
}

.vskbn-dashboard-card--uniform-pie {
    min-width: 0;
}

.vskbn-chart-filters {
    margin: 0 0 14px;
}

.vskbn-chart-filters label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: #646970;
    font-size: 13px;
}

.vskbn-chart-filter-toggle-wrap,
.vskbn-impact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: #646970;
    font-size: 13px;
}

.vskbn-filter-toggle {
    padding: 6px 11px;

    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 999px;

    color: #3c434a;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;

    cursor: pointer;
}

.vskbn-filter-toggle:hover,
.vskbn-filter-toggle:focus-visible,
.vskbn-filter-toggle[aria-pressed="true"] {
    background: #e7f3ff;
    border-color: #72aee6;
    color: #135e96;
}

.vskbn-chart-filter-select {
    min-height: 34px;
    max-width: 180px;
}


/* Impactdashboard
-------------------------------------------------------------- */

.vskbn-impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.vskbn-impact-toolbar {
    justify-content: flex-end;

    margin: 0 0 16px;
}

.vskbn-impact-card {
    order: initial;
}

.vskbn-impact-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.vskbn-impact-value {
    padding: 14px;

    background: #f6f7f7;
    border-radius: 8px;
}

.vskbn-impact-value span {
    display: block;
    min-height: 2.6em;

    color: #646970;
    font-size: 12px;
    line-height: 1.3;
}

.vskbn-impact-value strong {
    display: block;
    margin-top: 8px;

    color: #1d2327;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.1;
}

.vskbn-impact-value--primary {
    background: #e7f3ff;
}

.vskbn-impact-response {
    margin: 14px 0 0;

    color: #646970;
    font-size: 13px;
}


/* Ondertitel
-------------------------------------------------------------- */

.vskbn-dashboard-subtitle {
    margin: -6px 0 16px;

    color: #666;

    font-size: 14px;
}


/* Tabellen
-------------------------------------------------------------- */

.vskbn-dashboard-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.vskbn-dashboard-table th,
.vskbn-dashboard-table td {
    padding: 9px 10px;

    border-bottom: 1px solid #ececec;

    text-align: left;
    vertical-align: top;
}

.vskbn-dashboard-table th {
    background: #f6f7f7;

    font-weight: 600;
}

.vskbn-dashboard-table tbody tr:hover td {
    background: #fafafa;
}


/* Uitklapbare tabellen
-------------------------------------------------------------- */

.vskbn-table-toggle {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;

    margin: 0 0 8px;
    padding: 0;

    background: transparent;
    border: 0;

    color: #2c3338;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.vskbn-table-toggle:hover {
    color: #0073aa;
}

.vskbn-table-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.vskbn-toggle-arrow {
    display: inline-block;

    transition: transform 0.2s ease;
}

.vskbn-table-toggle[aria-expanded="true"]
.vskbn-toggle-arrow {
    transform: rotate(90deg);
}

.vskbn-table-wrap {
    display: none;

    overflow-x: auto;
}

.vskbn-table-wrap.is-open {
    display: block;
}


/* Lege resultaten
-------------------------------------------------------------- */

.vskbn-dashboard-empty {
    margin: 0;

    color: #666;

    font-style: italic;
}


/* Responsive
-------------------------------------------------------------- */

@media (max-width: 700px) {

    .vskbn-dashboard-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vskbn-dashboard-filter-reset-wrap {
        justify-content: flex-end;
        min-height: 0;
        margin-left: 0;
    }

    .vskbn-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vskbn-dashboard-summary {
        grid-template-columns: 1fr;
    }

    .vskbn-impact-values {
        grid-template-columns: 1fr;
    }

    .vskbn-impact-value span {
        min-height: 0;
    }

    .vskbn-dashboard-filter-group {
        gap: 8px;
    }

    .vskbn-dashboard-filter {
        padding: 7px 10px;

        font-size: 13px;
    }

    .vskbn-dashboard-card {
        padding: 14px;
    }

    .vskbn-chart-wrap {
        height: 260px;
    }

    .vskbn-chart-wrap--with-total {
        height: 324px;
    }

    .vskbn-bar-chart-wrap {
        height: 500px;
    }

}

.vskbn-chart-total-inlay {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    min-width: 96px;
    padding: 9px 12px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    pointer-events: none;
}

.vskbn-chart-total-label {
    color: #646970;

    font-size: 12px;
    line-height: 1.3;
}

.vskbn-chart-total-value {
    color: #1d2327;

    font-size: 24px;
    line-height: 1.15;
}

.vskbn-dashboard-table tfoot th,
.vskbn-dashboard-table tfoot td {
    padding: 11px 10px;

    border-top: 2px solid #dcdcde;

    font-weight: 700;
}

.vskbn-dashboard-card--full-width {
    grid-column: 1 / -1;
}

.vskbn-dashboard-card--full-width .vskbn-chart-wrap {
    max-width: none;
}
