@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Ensure the app can fill the viewport */
html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
}

:root {
    --global-font-size: 1rem;
    --global-font-family: var(--font-sans);
}

/*DO NOT REMOVE THIS, THIS WILL SET THE ENTIRE WEBSITE FONT-FAMILY*/

* {
    font-family: var(--global-font-family, 'InterVariable', sans-serif);
    font-size: var(--global-font-size);
}
/* html,
html body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea, label,
.p-component,
.e-control,
.e-css {
    font-family: var(--global-font-family) !important;
}

body {
    font-family: var(--global-font-family, 'InterVariable', sans-serif);
}

code, pre {
    font-family: 'GeistMono', monospace;
} */

h5 {
    font-weight: 600 !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/*.content {*/
/*    padding-top: 1.1rem;*/
/*}*/
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.input-valid {
    outline: 1px solid #26b050;
}

.validation-message {
    color: rgb(241 88 88 / 77%);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.badge {
    display: inline-block;
    min-width: 2em; /* em unit */
    min-height: 1em;
    padding: .3em; /* em unit */
    border-radius: 50%;
    text-align: center;
    background: white;
    color: black;
}

    .badge.badge-blue {
        display: inline-block;
        min-width: 2em; /* em unit */
        min-height: 1em;
        padding: .3em; /* em unit */
        border-radius: 50%;
        text-align: center;
        color: white;
        background: var(--mid-blue);
    }

    .badge.badge-red {
        display: inline-block;
        min-width: 2em; /* em unit */
        min-height: 1em;
        padding: .3em; /* em unit */
        border-radius: 50%;
        text-align: center;
        color: white;
        background: var(--cevi-red);
    }


.total-info {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: var(--mid-blue);
    min-width: 2.357rem;
    height: 2.357rem;
    margin: 0 0 0 -1px;
    padding: 0 0.5rem;
    line-height: 2.357rem;
    -webkit-box-shadow: 0 -1px 2px 1px rgba(0, 0, 0, 0.23);
    box-shadow: 0 -1px 2px 1px rgba(0, 0, 0, 0.23);
}

.text-mid-blue {
    color: var(--mid-blue);
}

span.fa-icon-checked {
    color: #007cb4;
}

span.fa-icon-unchecked {
    color: #d7191b;
}

.btn-form-submit {
    line-height: 1 !important;
    font-weight: bold;
}

.status-rood {
    color: #d7191b;
}

.status-groen {
    color: #7dc13a;
}

.status-blauw {
    color: #4fa9d1;
}

.status-geel {
    color: #EFCB2E;
}

.status-grijs {
    color: #a7a9b3;
}

.status-oranje {
    color: #f07d18;
}

.status-paars {
    color: #8855ff;
}

.status-black {
    color: #000000;
}

/*#region collapsable*/
.cevi-collapsable {
    width: 100%;
}

.cevi-collapsable-theming {
    background: var(--light-blue-gradient) !important;
    color: var(--white);
}

.cevi-collapsable-theming > button > .cevi-collapsable__header-content {
    font-weight: bolder;
}
/*#endregion*/

.niet-bijgewerkt > button {
    background-color: var(--orange) !important;
}

.bijna-bij-te-werken > button {
    background-color: #FFC08DFF !important;
}

.zonder-metingen > button {
    background-color: var(--cevi-red) !important;
}

.onbepaald > button {
    background-color: var(--grey) !important;
}

.bijgewerkt > button {
    background-color: var(--green) !important;
}

.disabled-container {
    pointer-events: none;
    opacity: .5;
    -webkit-user-select: none; /* Chrome, Safari, and Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Safari, and Firefox */
}

.e-acrdn-header-content {
    color: var(--white) !important;
}

    .e-acrdn-header-content label:hover {
        cursor: pointer;
    }

.ceviSfTooltip:hover {
    cursor: pointer;
}

.bg-positive {
    background-color: var(--green) !important;
}

.bg-negative {
    background-color: var(--cevi-red) !important;
}

/*Override the checkbox style*/
.e-check {
    color: white !important;
    background-color: var(--mid-blue) !important;
}

/*#region Accordion header and collapse button*/
/*Override accordion header */
.e-accordion .e-acrdn-item .e-acrdn-header,
.e-accordion .e-acrdn-item .e-acrdn-header:hover,
.e-accordion .e-acrdn-item .e-acrdn-header:active,
.e-accordion .e-acrdn-item .e-acrdn-header:focus,
.e-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header,
.e-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header,
.e-accordion .e-acrdn-item.e-selected.e-select.e-expand-state > .e-acrdn-header:hover,
.e-accordion .e-acrdn-item.e-selected.e-select.e-expand-state > .e-acrdn-header:active,
.e-accordion .e-acrdn-item.e-selected.e-select.e-expand-state > .e-acrdn-header:focus {
    background: var(--light-blue-gradient);
    color: var(--white);
}

.e-acrdn-header-content {
    color: var(--white) !important;
}

.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon {
    display: table;
    font-size: 1rem;
    height: 3rem;
    min-height: 38px;
    min-width: 22px;
    position: absolute;
    /*transform: rotate(90deg);*/
    top: 0;
    font-weight: bold;
    color: black;
    left: 0.5rem;
}

div.e-acrdn-header-content > div {
    color: var(--white);
    font-weight: bolder;
    margin-left: 1rem;
}

/*Need to remove the overflow from the accordion, this is messing with the dropdowns, you cant use position absolute if this is set*/
.e-accordion .e-acrdn-item.e-selected.e-select.e-active .e-acrdn-panel,
.e-accordion .e-acrdn-item.e-selected.e-select.e-active .e-acrdn-panel .e-acrdn-content > *,
.e-accordion .e-acrdn-item.e-selected.e-select.e-active .e-acrdn-panel .e-acrdn-content {
    overflow: unset;
}

/*Expand */
.e-accordion .e-tgl-collapse-icon.e-expand-icon {
    transform: rotate(360deg);
    font-weight: bold;
}

/*Collapse*/
.e-accordion .e-tgl-collapse-icon:not(.e-expand-icon) {
    transform: rotate(270deg);
    font-weight: bold;
}

.e-accordion .e-acrdn-item.e-selected.e-select > .e-acrdn-header {
    background: inherit;
}

/*#endregion*/
/*Override select selected text value*/
.e-ddl > .e-input-value {
    padding: .3em;
}


input[type=radio] + label::after {
    top: 3px !important;
    left: 24px !important;
    font-size: 9px !important;
    width: 6px !important;
    height: 6px !important;
}

input[type=radio] + label::before {
    /*border-color: var(--mid-blue) !important;*/
    margin-right: 8px !important;
    width: 12px !important;
    ;
    height: 12px !important;
    ;
}

input[type=radio]:checked + label::after {
    background: var(--mid-blue) !important;
    left: 3px !important;
}

input[type=radio]:checked + label::before {
    border-color: var(--mid-blue) !important;
}

input[type=radio]:checked + label {
    color: var(--mid-blue);
    font-weight: bold;
}

.modifiedField {
    background: var(--green) !important;
    color: var(--white) !important;
}

.errorField {
    background: var(--cevi-red) !important;
    color: var(--white) !important;
}

.e-panel {
    z-index: 990 !important;
}

.small-font-label {
    font-size: .9rem;
}

@layer text-colors {

    .text-primary {
        color: var(--mid-blue) !important;
    }

    .text-success {
        color: var(--green) !important;
    }

    .text-secondary {
        color: var(--black) !important;
    }

    .text-danger {
        color: var(--red)
    }
}

@layer buttons {
    .btn-base {
        height: 2.2rem;
    }

    .e-btn.e-flat.e-info, .e-css.e-btn.e-flat.e-info {
        border-color: inherit !important;
    }
}

@layer Modals {
    .e-dlg-fullscreen {
        min-width: 100dvw;
        min-height: 100dvh;
    }
}


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-progress {
    width: 8rem;
    height: 8rem;
    margin: auto;
}

.loading-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    text-align: center;
}


/* ===========================
   QuickGridPlus — column-chooser overlay (CSS :has(), global scope required)
   When the column-chooser dropdown is open (.visible-dropdown is rendered by the
   child component QuickGridPlusColumnChooser with its own Blazor scope attribute),
   a :has() selector in the parent's scoped CSS cannot match it. These rules must
   live in the global stylesheet so the scope-attribute restriction is bypassed.
   =========================== */

/* Disable pointer interaction on the scroll body while the dropdown is open */
.quickgrid-plus-wrapper:has(.visible-dropdown) .quickgrid-scroll-body {
    pointer-events: none;
    position: relative;
}

    /* Frosted-glass overlay identical to the existing .disable-grid-column-chooser::after rule */
    .quickgrid-plus-wrapper:has(.visible-dropdown) .quickgrid-scroll-body::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.12);
        border-radius: 8px;
        pointer-events: none;
        z-index: 12;
    }

/* Fix: Font Awesome Duotone icons inside Syncfusion popup */
/* This fixes the fa-spinner-third icon breaking in the SyncFusion dropdown menu */
.e-dropdownbase .fa-spinner-third {
    position: relative !important;
    font-family: "Font Awesome 6 Duotone" !important;
    font-weight: 900 !important;
}

    .e-dropdownbase .fa-spinner-third:before,
    .e-dropdownbase .fa-spinner-third::after {
        font-family: "Font Awesome 6 Duotone" !important;
        font-weight: 900 !important;
        top: 0 !important;
        left: 0 !important;
    }


/*Make a thin scrollbar, some browser will create a thick this will overwrite the fat scrollbar*/
* {
    scrollbar-width: thin;
}


/* Thin scrollbar styling */

::-webkit-scrollbar {
    width: 8px;
    /* Thin scrollbar width */
    height: 8px;
    /* Thin scrollbar height */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Light background for the track */
    border-radius: 10px;
    /* Rounded corners */
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    /* Neutral color for the thumb */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for depth */
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
        /* Slightly darker color on hover */
    }

/* Firefox-specific scrollbar styling */

html {
    scrollbar-width: thin;
    scrollbar-color: #a3b1c6 #e0e5ec;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding-inline: 0;
}

.font-weight-bold {
    font-weight: bold;
}

.cursor-default * {
    cursor: default;
}

.cursor-auto * {
    cursor: auto;
}

.cursor-pointer * {
    cursor: pointer;
}

.cursor-wait * {
    cursor: wait;
}

.cursor-text * {
    cursor: text;
}

.cursor-move * {
    cursor: move;
}

.cursor-help * {
    cursor: help;
}

.cursor-not-allowed * {
    cursor: not-allowed;
}

.font-family {
    font-family: var(--global-font-family);
}

#blazor-error-ui {
    display: none !important;
}

/* CONTAINS ALL THE GENERAL STYLES TO BE SHARED BETWEEN COMPONENTS */

/*#region This is the style for the beleidselement (tree,tags,...)*/
.beleidsElementen {
    .niveau {
        min-width: 30px;
        min-height: 20px;
        border-radius: 20%;
        color: var(--white);
        text-align: center;
        line-height: 20px;
        align-self: center;
        overflow: hidden;
        font-size: 12px;
        margin: 0 2px;

        p {
            padding-left: 0px;
        }
    }

    .level-SD {
        background: var(--dark-grey);
        color: var(--white);
        justify-content: center;
        border-radius: 0.4rem;
        text-align: center;
    }

    .level-BD {
        background: var(--grey);
        color: var(--white);
        border-radius: 0.4rem;
        text-align: center;
    }

    .level-AP,
    .level-IP {
        background: var(--light-grey);
        color: var(--black) !important;
        border-radius: 0.4rem;
        text-align: center;
    }

    .level-AC,
    .level-A,
    .level-SP {
        background: var(--pastel-grey);
        color: var(--black) !important;
        border-radius: 0.4rem;
        text-align: center;
    }

    .image-style {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 15px 0 0 15px;
        max-height: 10rem;
    }
}

/*#endregion */

/*#region Global styles*/
.totalCalculationRow {
    //background-color: #999;
    background: linear-gradient(135deg, rgba(160, 155, 150, 0.6), rgba(160, 155, 150, 0.4));
    color: black;
}


.global-alertmessage {
    .global-alertmessage-content .p-toast-detail {
        overflow-wrap: anywhere;
        white-space: pre-wrap;
        font-size: .8rem;

        &:hover {
            font-size: 1em;
        }
    }

    .p-toast-summary {
        font-size: .9rem;
    }

    .p-toast-icon-close {
        height: auto !important;
        width: 5rem !important;
        margin-top: .2rem;
        transition: all .2s ease-in-out;

        &:hover {
            transform: scale(140%);
            background: inherit !important;
        }

        &:focus {
            box-shadow: none !important;
        }
    }
}

.divider {
    margin: 0 !important;
    margin-bottom: 0.5rem !important;
    --divider-size: 1px;
    border: var(--divider-size) solid var(--notification-top-bar-background-color);
}

.divider-m-0 {
    margin: 0 !important;
    height: 0;
}

.global-sticky-footer {
    position: sticky;
    bottom: 0;
    background-color: rgb(247, 247, 247);
    z-index: 999 !important;
}

.global-absolute-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(247, 247, 247);
    z-index: 999 !important;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.global-sticky-header {
    position: sticky;
    top: 0;
    background-color: rgb(247, 247, 247) !important;
    z-index: 999 !important;
}

.global-tree-header-text {
    font-weight: bold;
    color: var(--mid-blue);
}

    .global-tree-header-text:hover {
        cursor: pointer;
    }

.global-tree-expand {
    width: 33.5vw !important;
    max-width: 33.5vw !important;
    transition: 500ms all;
}

.global-tree-collapse {
    transition: 500ms all;
}

.no-margin-label {
    margin-bottom: 0;
}

/*#endregion */


/*#region This is the style for overriding components styles*/

/*Bootstrap*/
.bg-primary {
    background-color: var(--mid-blue) !important;
}

    a.bg-primary:focus,
    a.bg-primary:hover,
    .bg-primary:focus {
        background-color: var(--mid-blue-hover) !important;
    }

/*#endregion */

/*#region  Make it so that a table has a hover effect by using the hoverable-table on the table class and add the highlight class to the td*/

table.hoverable-table td.highlight {
    transition: all 0.2s ease-in-out;
}

    table.hoverable-table td.highlight:hover {
        box-shadow: 0px 9px 4px -6px grey;
    }

    table.hoverable-table td.highlight:hover {
        cursor: pointer;
        color: var(--mid-blue);
        border-top: 1px solid grey;
        border-bottom: 1px solid grey;
        font-weight: bold;
    }

table.hoverable-table :is(.selected),
.hoverable-table > .selected {
    background-color: var(--pastel-blue);
    color: var(--mid-blue);
    box-shadow: 0px 9px 4px -6px grey;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

    table.hoverable-table :is(.selected) > td,
    .hoverable-table > .selected > td {
        background-color: var(--pastel-blue);
        color: var(--mid-blue);
        box-shadow: 0px 9px 4px -6px grey;
        font-weight: bold;
        z-index: 10;
    }

.hoverable-table tr.hoverable-row {
    transition: all 0.2s ease-in-out;
}

    .hoverable-table tr.hoverable-row:hover {
        box-shadow: 0px 9px 4px -6px grey;
        position: relative;
        z-index: 11;
    }

    .hoverable-table tr.hoverable-row:hover {
        cursor: pointer;
        color: var(--mid-blue);
        border-top: 1px solid grey;
        border-bottom: 1px solid grey;
        // font-weight: bold;
    }

/*Make it so that the table body has a scroll section to we can use infinite scrolling just add the class scrollable-table to the table*/
table.scrollable-table thead th {
    border: 1px solid #dee2e6;
    border-width: 1px 0 2px 0;
}

table.scrollable-table td,
.scrollable-table th {
    padding: .5rem .5rem 0 !important;
}

.scrollable-table th {
    & label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: bold;
    }
}

table.scrollable-table {
    border-bottom: 1px solid #dee2e6;
    max-width: 100dvw;
    width: 100%;
}

    table.scrollable-table tbody {
        display: block;
        max-height: 400px;
        //override the height if you need a bigger table overflow: auto;
    }

        table.scrollable-table thead,
        table.scrollable-table tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

    table.scrollable-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0.5rem;
    }

.scrollable-table .loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 100;
}

//@media (min-width: 1441px) {
    // table.scrollable-table tbody {
        // max-height: 320px;
        //
    }

    //
}

/*#endregion */

.niveau {
    min-width: 30px;
    height: 20px;
    border-radius: 20%;
    text-align: center;
    line-height: 20px;
    align-self: center;
    overflow: hidden;
    font-size: 12px;
    margin: 0 2px;

    p {
        padding-left: 0px;
    }
}


.global-reset-btn {
    background-color: var(--mid-blue) !important;
    color: var(--white) !important;
    box-shadow: none !important;
    height: 2.1rem;
}

.level {
    background: var(--grey);
    justify-content: center;
    color: white
}

.disable-form {
    opacity: 0.3;
    pointer-events: none;
}

.disable-selection {
    opacity: 0.7;
    pointer-events: none;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-25 {
    width: 25% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-50 {
    width: 50% !important;
}

.w-55 {
    width: 55% !important;
}

.w-60 {
    width: 60% !important;
}

.w-65 {
    width: 65% !important;
}

.w-70 {
    width: 70% !important;
}

.w-75 {
    width: 75% !important;
}

.w-80 {
    width: 80% !important;
}

.w-85 {
    width: 85% !important;
}

.w-90 {
    width: 90% !important;
}

.w-95 {
    width: 95% !important;
}

.w-100 {
    width: 100% !important;
}

.validation-message {
    padding: 0;
}

.validation-message-container .validation-message {
    display: none;
}

    .validation-message-container .validation-message:first-of-type {
        display: block;
    }

.rz-splitter-horizontal {
    & > .rz-splitter-bar {
        background-color: var(--light-grey) !important;
        width: .8rem !important;
        margin-left: .1rem;
    }

    & .rz-expand {
        opacity: 0 !important;
    }
}

    .rz-splitter-horizontal > .rz-splitter-bar-collapsed {
        background-color: var(--top-bar-red) !important;

        & .rz-expand {
            opacity: 1 !important;
        }

        &:hover {
            opacity: 1 !important;
        }
    }

/*Treeview table */
.tree-level {
    min-width: 2rem;
    min-height: 1rem;
    color: var(--white);
    text-align: center;
    line-height: 20px;
    align-self: center;
    overflow: hidden;
    font-size: 12px;
    margin: 0 2px;
    display: inline-flex;
    justify-content: center;
    border-radius: 0.4rem;

    &.level-1 {
        background: var(--dark-grey);
        color: var(--white);
        justify-content: center;
    }

    &.level-2 {
        background: var(--grey);
        color: var(--white);
    }

    &.level-3 {
        background: var(--light-grey);
        color: var(--black) !important;
    }

    &.level-4 {
        background: var(--pastel-grey);
        color: var(--black) !important;
    }
}

.container-fluid-height {
    height: min(100dvh, 98%);
    display: flex;
    /* Converted to flex container. Child will align as column */
    flex-direction: column;
}

.card-height {
    min-height: min(1dvh);
    flex: 1;
    /* Occupies any remaining space in the flex container after fixed sized children have taken their space */
    display: flex;
    /* Converted to flex container. Child will align as column */
    flex-direction: column;
    /* Aligns children as column */
}

.card-footer {
    /* This will ensure the footer is always at the bottom */
    margin-top: auto;
    flex-shrink: 0;
}

.line-height-0 {
    line-height: 0;
}

.line-height-1 {
    line-height: 1;
}

.line-height-2 {
    line-height: 2;
}

.line-height-3 {
    line-height: 3;
}

.border-right.border-md {
    border-right-width: 0 !important;
}

@media (min-width: 768px) {
    .border-right.border-md {
        border-right-width: 1px !important;
    }
}

.divider-0-height {
    height: 0 !important;
    width: 100%;
    margin: 0 !important;
    margin-bottom: 0.5rem !important;
}

label {
    font-size: 1rem;
    margin-bottom: 0;
}

.width-fit-content {
    width: fit-content;
}

.text-align-right {
    text-align: right;
}

.text-align-left {
    text-align: left;
}

.text-align-center {
    text-align: center;
}

.height-0 {
    height: 0;
}

.ps-6 {
    padding-left: 4rem !important;
}

.ps-7 {
    padding-left: 5rem !important;
}

.ps-8 {
    padding-left: 6rem !important;
}

.ps-9 {
    padding-left: 7rem !important;
}

.ps-10 {
    padding-left: 8rem !important;
}

.pe-6 {
    padding-left: 4rem !important;
}

.pe-7 {
    padding-left: 5rem !important;
}

.pe-8 {
    padding-left: 6rem !important;
}

.pe-9 {
    padding-left: 7rem !important;
}

.pe-10 {
    padding-left: 8rem !important;
}

.active-item {
    background-color: var(--mid-blue);
    color: white;
}

.card {
    height: 100%;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    text-align: left;
}

/*TAB Styling*/
.tab-strip {
    display: flex;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

/* === Base Tab === */
.tab-item {
    color: var(--primary);
    background: linear-gradient(145deg, #ffffff, #f0f4fa);
    border-radius: var(--soft-ui-border-radius, 0.6rem);
    padding: 0.5rem 1rem;
    min-width: 5rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6), inset -1px -1px 2px rgba(0, 0, 0, 0.05), 2px 2px 6px rgba(0, 0, 0, 0.06);
}

    /* === Hover === */
    .tab-item:hover {
        background: linear-gradient(145deg, #f9fbfd, #eef2f7);
        color: var(--dark-blue);
        box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6), inset -1px -1px 2px rgba(0, 0, 0, 0.05), 3px 3px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

    /* === Active Tab === */
    .tab-item.active-tab {
        background: var(--active-navigation-bg);
        color: #fff;
        font-weight: 600;
        box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), inset -1px -1px 2px rgba(0, 0, 0, 0.1), 2px 2px 6px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
    }

/* === Tab Bar === */
.tab-bar {
    padding: 0 0.5rem;
}

/* === Content Area === */
.tab-content-area {
    background: linear-gradient(145deg, #f0f4fa, #e4e8ee);
    border-radius: var(--soft-ui-border-radius, 0.6rem);
    padding: 1rem;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6), inset -1px -1px 2px rgba(0, 0, 0, 0.05);
}

.header-style {
    .soft-ui-card-header-base();
}

.flip-switch {
    label {
        --label-flipswitch-height: 2rem;
        height: var(--label-flipswitch-height);
        line-height: 0.5 !important;
    }
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    border: none !important;
}

//.card-header:first-child,
//.card {
    // border-radius: var(--border-radius-global) !important;
    //
}

/* ===========================
   #region YearPicker - Soft UI Override
   =========================== */

/* Year picker input container */
.year-picker-wrapper .year-input {
    border: 1px solid rgb(218, 218, 218) !important;
    border-radius: 0.8rem !important;
    background: white !important;
    transition: all 0.2s ease-in-out;
    color: inherit;
    font-weight: 500;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.6);
    min-height: 2.2rem;
    height: auto;
    /* Chevron icon styling */

    .chevron {
        opacity: 0.7;
        transition: opacity 0.2s ease-in-out;

        svg {
            color: inherit;
        }
    }
    /* Placeholder styling */

    .placeholder {
        color: rgba(0, 0, 0, 0.4) !important;
        font-weight: 400;
        opacity: 1 !important;
    }
    /* Hover state */

    &:hover {
        .chevron {
            opacity: 1;
        }
    }
    /* Focus/Active state (when dropdown is open) */

    &:focus,
    &:active {
        outline: none !important;
        border-color: rgba(var(--mid-blue-rgb), 0.4) !important;
    }
}

/* Year dropdown popup */
.year-picker-wrapper .year-dropdown {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 1rem !important;
    margin-top: 0.5rem;
    padding: 0.5rem;
    /* Navigation header */

    .nav {
        background: transparent !important;
        border-bottom: 1px solid rgba(218, 218, 218, 0.5) !important;
        border-radius: 0.5rem 0.5rem 0 0;
        padding: 0.5rem 0.75rem;

        .nav-label {
            color: inherit;
            font-weight: 600;
        }

        .nav-btn {
            background: transparent !important;
            border: 1px solid transparent !important;
            border-radius: 0.5rem;
            padding: 0.25rem 0.5rem;
            transition: all 0.2s ease-in-out;
            color: inherit;
            opacity: 0.7;

            &:hover {
                opacity: 1;
                background: rgba(188, 188, 188, 0.1) !important;
                border-color: transparent !important;
            }

            .icon {
                font-weight: bold;
            }
        }
    }
    /* Year grid */

    .year-grid {
        padding: 0.75rem 0.5rem;
    }
    /* Year items */

    .year-item {
        border-radius: 0.5rem !important;
        transition: all 0.2s ease-in-out;
        background: transparent !important;
        color: inherit;
        font-weight: 500;

        &:hover:not(.selected) {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
            box-shadow: inset 0.5px 0.5px 2px rgba(188, 188, 188, 0.15), inset -0.5px -0.5px 2px rgba(255, 255, 255, 0.5);
        }

        &.selected {
            background: var(--mid-blue-gradient) !important;
            color: var(--ghost-white) !important;
            font-weight: 600;
            //text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
            box-shadow: 0 2px 4px rgba(163, 177, 198, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
            /* Override inline styles from component */
            --selected-bg: var(--mid-blue-gradient) !important;
            --selected-color: var(--ghost-white) !important;
        }
    }
}

/* #endregion */

/* ===========================
   #region TriCheckboxDropdown - Soft UI Override
   =========================== */

/* Tri-state select button - Soft UI styling */
.tri-state-select-btn {
    border: 1px solid rgb(218, 218, 218) !important;
    border-radius: 0.8rem !important;
    box-shadow: inset 1px 1px 3px rgba(188, 188, 188, 0.3), inset -1px -1px 3px rgba(255, 255, 255, 0.8), 1px 1px 3px rgba(188, 188, 188, 0.2), -1px -1px 3px rgba(255, 255, 255, 0.5) !important;
    background: snow !important;
    transition: all 0.2s ease-in-out;
    color: inherit !important;
    font-weight: 500;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.6);
    min-height: 2.2rem;
    /* Arrow icon styling */

    .arrow-dwn {
        opacity: 0.7;
        transition: all 0.2s ease-in-out;
        color: inherit !important;
    }
    /* Hover state */

    &:hover {
        box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff !important;
        border-color: snow !important;

        .arrow-dwn {
            opacity: 1;
        }
    }
    /* Open/Active state (when dropdown is open) */

    &.open {
        box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff, 0 0 0 3px rgba(var(--mid-blue-rgb), 0.12) !important;
        border-color: rgba(var(--mid-blue-rgb), 0.4) !important;

        .arrow-dwn {
            opacity: 1;
        }
    }
}

/* Description/selected values text */
.tri-state-description,
.tri-state-selected-values-text {
    color: inherit;
    font-weight: 500;
    text-shadow: 0 0.5px 0.5px rgba(255, 255, 255, 0.6);
}

/* Dropdown list popup */
.tri-state-list-items {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 8px 8px 16px rgba(163, 177, 198, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem !important;
    /* Scrollbar styling */

    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(188, 188, 188, 0.4);
        border-radius: 4px;

        &:hover {
            background: rgba(188, 188, 188, 0.6);
        }
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }
}

    /* List items */
    .tri-state-list-items .tri-state-item {
        transition: background 0.2s ease-in-out;
        border-radius: 0.5rem !important;
        padding: 0.25rem 0.5rem;
        margin: 2px 0;

        &:hover {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
        }

        label {
            cursor: pointer;
            font-weight: 500;

            &:hover {
                cursor: pointer;
            }

            > span {
                color: inherit;
            }
        }
    }

/* Tri-state checkbox icons */
.tri-state {
    transition: all 0.2s ease-in-out;

    &.tri-state-checked {
        color: var(--mid-blue) !important;
        filter: drop-shadow(0 1px 2px rgba(0, 123, 180, 0.3));
    }

    &.tri-state-unchecked {
        color: #d7191b !important;
        filter: drop-shadow(0 1px 2px rgba(215, 25, 27, 0.3));
    }
}

/* Indeterminate text styling */
.tri-state-indeterminate-text {
    opacity: 0.5;
    font-style: italic;
}

/* #endregion */
/* Bootstrap form-control class */
.form-control {
    .soft-ui-form-control-base();

    &:focus {
        //box-shadow: inset 2px 2px 5px #bcbcbc, // inset -2px -2px 5px #ffffff, //2px 2px 5px #bcbcbc, // -2px -2px 5px #ffffff, //0 0 0 3px rgba(var(--mid-blue-rgb), 0.12) !important;
        border-color: rgba(var(--mid-blue-rgb), 0.4) !important;
    }
}

.border-secondary {
    border: none !important;
}

.nh-card-header {
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.5rem !important;
    background: #002f51 !important;
    color: #ffffff !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    flex-shrink: 0 !important;
}

.nh-card-footer {
    .soft-ui-card-footer-base();
}

.filter-panel-header {
    background: var(--mid-blue-subheader-gradient) !important;
    border-radius: .8rem !important;
    padding: .5rem !important;
    font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
    font-weight: 500;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05), inset -1px -1px 2px rgba(255, 255, 255, 0.6) !important;
}

.tri-state-select-btn:hover {
    border-color: inherit;
    border: var(--soft-ui-border-width) solid var(--soft-ui-border-color) !important;
    border-radius: var(--soft-ui-border-radius) !important;
    box-shadow: inset 1px 1px 2px var(--soft-ui-inset-shadow-light), inset -1px -1px 2px var(--soft-ui-inset-shadow-dark), 1px 1px 2px var(--soft-ui-shadow-light-1) !important;
    background: var(--soft-ui-surface) !important;
    transition: all var(--soft-ui-transition-speed) var(--soft-ui-transition-easing);
    min-height: var(--soft-ui-height-control);
}

.tooltip-component:hover {
    cursor: help;
}

.e-input-group, .e-input-group.e-control-wrapper {
    border-radius: var(--soft-ui-border-radius);
}

.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
    border-radius: var(--soft-ui-border-radius);
}

.e-input-group, .e-input-group.e-control-wrapper {
    border-radius: var(--soft-ui-border-radius);
}

.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
    border-radius: var(--soft-ui-border-radius);
}


/* Tags dropdown styling */

.ui-dropdown-toggle-text > span > label.tags-dropdown-label {
    padding: 0px 7px 0px 7px !important;
    width: fit-content !important;
    display: unset;
}

.ui-dropdown-toggle-text > span.tags-dropdown-span:not(:last-child) {
    margin-right: 3px !important;
}


/* End Tags dropdown styling*/

.tags-selection {
    width: 100%;
}

.tag-links-container {
    display: flex !important;
}

.tags-actions-area {
    width: 100%;
}

.tags-content-section {
    width: 100%;
}

.afbetaalplan-tooltip-wrapper > div > .afbetaalplan-kv__k {
    color: white !important;
}

.afbetaalplan-tooltip-wrapper > div > .afbetaalplan-kv__v {
    color: white !important;
}
