[data-fontSize="100"] {
    --normal-font-size: 1rem;
    --medium-font-size: 1.1rem;
    --big-font-size: 1.2rem;
    --dashboard-height: 100px;
    --dashboard-icon-height: 64px;
    --second-navbar-height: 46px;
}

[data-fontSize="125"] {
    --normal-font-size: 1.25rem;
    --medium-font-size: 1.375rem;
    --big-font-size: 1.5rem;
    --dashboard-height: 150px;
    --dashboard-icon-height: 64px;
    --second-navbar-height: 46px;
}

[data-fontSize="150"] {
    --normal-font-size: 1.50rem;
    --medium-font-size: 1.65rem;
    --big-font-size: 1.8rem;
    --dashboard-height: 150px;
    --dashboard-icon-height: 64px;
    --second-navbar-height: 47px;
}

[data-fontSize="175"] {
    --normal-font-size: 1.75rem;
    --medium-font-size: 1.925rem;
    --big-font-size: 2.1rem;
    --dashboard-height: 200px;
    --dashboard-icon-height: 94px;
    --second-navbar-height: 54px;
}

[data-fontSize="200"] {
    --normal-font-size: 2rem;
    --medium-font-size: 2.2rem;
    --big-font-size: 2.4rem;
    --dashboard-height: 250px;
    --dashboard-icon-height: 94px;
    --second-navbar-height: 60px;
}

:root {
    --default-font-size: 1rem;
}

/* Color themes */
[data-theme="light"] {
    --default-text-color: rgb(0, 0, 0);
    --lighter-color: rgb(73, 80, 87);
    --light-color: rgb(108, 117, 125);
    --normal-color: rgb(229, 247, 251);
    --dark-color: rgb(255, 255, 255);
    --darker-color: rgb(242, 242, 242);
    --drop-shadow: none;
    --border-color: rgb(0, 0, 0);
    --input-color: rgb(229, 247, 251);
    --menu-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --form-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --placeholder-color: rgb(108, 117, 125);
    --muted-text-color: rgb(108, 117, 125);
}

[data-theme="dark"] {
    --default-text-color: rgb(255, 255, 240);
    --lighter-color: rgb(173, 181, 189);
    --light-color: rgb(108, 117, 125);
    --normal-color: rgb(73, 80, 87);
    --dark-color: rgb(52, 58, 64);
    --darker-color: rgb(33, 37, 41);
    --drop-shadow: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    --border-color: transparent;
    --input-color: rgb(73, 80, 87);
    --menu-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --form-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --placeholder-color: white;
    --muted-text-color: rgb(173, 181, 189);
}

    [data-theme="light"] .text-muted,
    [data-theme="dark"] .text-muted {
        --bs-text-opacity: 1;
        color: var(--muted-text-color) !important;
    }

    [data-theme="dark"] .modal-content,
    [data-theme="dark"] .modal-body {
        background-color: var(--darker-color);
        color: var(--default-text-color);
    }

    [data-theme="dark"] .modal-footer {
        border-top-color: var(--light-color);
    }

    [data-theme="dark"] .form-select {
        --bs-form-select-bg-img: var(--form-select-arrow) !important;
    }

    [data-theme="dark"] .form-control::placeholder {
        color: var(--placeholder-color) !important;
    }

/* Flatpickr overrides (applies to both themes) */
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    background-color: white !important;
    color: black !important;
}

/* Fix disabled months visibility */
.flatpickr-monthSelect-month.flatpickr-disabled {
    color: #ccc !important;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    scroll-behavior: auto;
}

main {
    margin-top: 1rem;
    width: 100%;
}

.btn {
    font-size: var(--normal-font-size);
}

span {
    font-size: var(--normal-font-size);
}

body {
    font-size: var(--normal-font-size);
    margin-bottom: 75px;
    background-color: rgb(242, 242, 242);
}

.inline {
    display: inline
}

.flex-dashboard {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2vh;
    word-break: break-all;
}

    .flex-dashboard > a, a.saldo-container {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        min-height: 100px;
/*        max-height: 100px;
*/        overflow: hidden;
    }

    .flex-dashboard > a {
        gap: 2vh;
    }

    .flex-dashboard > div:nth-child(1) {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2vh;
/*        height: calc(200px + 2vh);
*/    }

    .flex-dashboard > * > div, a.saldo-container > div {
        display: flex;
        flex-direction: column;
    }

    .flex-dashboard > * > div, a.saldo-container {
        background-color: var(--dark-color);
    }

    .flex-dashboard > *:hover > div, .flex-dashboard > div > a.saldo-container:hover {
        background-color: var(--input-color);
    }

    .flex-dashboard > * > div > h3, .flex-dashboard > * > div > p,
    .flex-dashboard > div > a.saldo-container > div > h3, .flex-dashboard > div > a.saldo-container > div > p {
        font-size: var(--medium-font-size);
        text-align: start;
        text-overflow: ellipsis;
    }

    /* this should be removed when the help text is created and added */
    .flex-dashboard > * > div > p {
        display: none;
    }

    .flex-dashboard > * > div:nth-of-type(1), .saldo-container {
        justify-content: center;
        align-items: center;
        min-width: 100px;
        max-height: var(--dashboard-height);
    }

        .flex-dashboard > * > div:nth-of-type(2), .saldo-container > div {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 10px;
            width: 100%;
        }

        .saldo-container > div {
            justify-content: center;
            align-items: center;
        }

        .saldo-container div p {
            margin: 0;
        }

        .saldo-container .betaalverzoek a {
            font-size: 1.25rem;
        }

a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.disabled {
    background-color: rgb(221, 221, 221) !important;
}


.nav-item > a {
    height: 100%;
    font-size: 16px;
}

.grid a {
    padding: 10px;
    font-size: 0.9rem;
}

.grid > a:hover,
.nav-item a:hover,
.nav-item:hover,
.section-item a:hover,
.section-item .heading:hover,
.section-item .collapse a div:hover {
    cursor: pointer;
    color: rgb(0, 0, 0);
    background-color: rgb(229, 247, 251);
    transition: none;
}

.second-nav {
    bottom: 0;
    width: 100%;
    display: flex;
    padding: 0;
    z-index: 10;
}

    .second-nav > div {
        width: 100%;
    }

nav {
    position: fixed;
    width: 100%;
}

.navbar {
    top: 0;
    background-color: var(--company-primary);
    padding: 5px;
    z-index: 9;
    border: none !important;
}

    .navbar * {
        color: var(--company-white) !important;
    }

    .navbar > .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

.navbar-brand {
    padding: 0;
    white-space: unset !important;
    margin: 0;
}

#side-nav {
    display: none;
}

.navbar-nav {
    flex-direction: row;
    height: 75px
}

.nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-item {
    width: 75px;
    flex-grow: 1;
}

    .nav-item > a {
        height: 100%;
    }

.navbar-collapse {
    background-color: rgb(242, 242, 242);
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

    .navbar-collapse > * {
        background-color: var(--company-white);
        width: 100%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        width: 100%;
    }

    .navbar-collapse > a {
        flex-direction: row;
        justify-content: flex-start
    }

        .navbar-collapse > a > div {
            margin-right: 10px;
        }

.button, button {
    padding: 5px 10px;
    margin-bottom: 10px;
    color: var(--company-white) !important;
    background-color: var(--company-primary) !important;
    border-radius: 5px;
    text-align: center;
    border: none;
    width: 100%;
}

    button.icon-button {
        background-color: transparent !important;
        padding: 0;
        width: auto;
    }

.hidden {
    display: none;
}

.bold {
    font-weight: bold;
}

form > div {
    margin-bottom: 10px;
}

.section-list {
    margin: 15px 0;
}

    .section-list section, section {
        position: relative;
        background-color: var(--company-white);
        margin-bottom: 10px;
        border-radius: 3px;
    }

        .section-list section .section-item {
            display: flex;
            flex-direction: column;
        }

        .section-list section p {
            margin-bottom: 0;
            white-space: nowrap;
        }

        .section-list section .section-item:last-of-type {
            margin-bottom: 0;
        }

        .section-list section .section-item .description {
            width: 70%;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

        .section-list section .section-item > * {
            margin-bottom: 0 !important;
        }

        .section-list section .date {
            padding: 10px;
            font-size: 0.75rem;
        }

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.no-margin {
    margin: 0 !important;
}

.vertical-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.small-padding {
    padding: 10px;
}

.small-padding-left {
    padding-left: 10px;
}

.small-padding-top {
    padding-top: 10px;
}

.small-margin-bottom {
    margin-bottom: 10px;
}

.no-margin {
    margin: 0 !important;
}

.notification {
    height: 15px;
    min-width: 15px;
    border-radius: 50%;
    background-color: var(--company-primary)
}

.divided {
    padding: 10px;
    border-top: solid var(--border-color) 1px;
}

.divided-no-padding {
    border-top: solid var(--border-color) 1px;
}

.under-section-list {
    background: none !important;
    font-size: 1.25rem;
}

.extra-info {
    color: rgb(102, 102, 102);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container, .error-container {
    padding: 15px 25px;
    width: 90vw;
    margin: 0 auto;
}

.error-container {
    background-color: rgb(255, 204, 204);
    margin-bottom: 25px !important;
    border-radius: 3px;
}

.login-container {
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
}

.error-container > ul {
    padding: 0;
}

    .error-container > ul:last-of-type {
        margin-bottom: 0;
    }

    .error-container > ul li {
        list-style: none;
    }

.no-background {
    background: none !important;
}

.section-item .heading a {
    gap: 10px;
}

    .section-item .heading a p:nth-child(2) {
        flex-grow: 1;
    }

/*.chevron {
    margin-top: -10px;
}*/
.section-item .heading .chevron * {
    transition: all 0.5s;
}

.section-item .section-item .heading {
    padding-left: 20px;
}

.section-item .heading a[aria-expanded="true"] .chevron svg {
    transform: rotate(90deg);
}

icon-16 chevron {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    gap: 10px;
}

    .flex.gap-medium {
        gap: 50px;
    }

    .flex div:first-of-type {
        flex-grow: 1;
    }

    .flex .no-grow {
        flex-grow: initial !important;
    }

.full-width {
    flex-grow: 1;
}

.half-width {
    width: 50%;
}

.third-width {
    width: 33%;
}

.two-third-width {
    width: 66%;
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
}

.message {
    max-width: 95%;
}

.new-message {
    position: fixed;
    margin: 0;
    bottom: 75px;
    left: 0;
    width: 100%;
    background-color: var(--company-white);
    outline: solid var(--border-color) 1px;
}

    .new-message input,
    .new-message textarea {
        width: 100%;
    }

    .new-message textarea {
        resize: none;
    }

.progress {
    border: 0.5px solid rgba(0, 0, 0, 0.4);
}

.file-input-icon > input {
    display: none;
}


#newFileName:empty {
    margin: 0;
}

pre {
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    white-space: pre-line;
    margin-bottom: 0;
}

div[class*="col-"] > input, input,
div[class*="col-"] > select, select {
    width: 100%;
}

.login-landing {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

    .login-landing .login-landing-card {
        max-width: 480px;
        width: 100%;
    }

    .login-landing .login-landing-help {
        margin-top: 20px;
    }

.digid-button {
    background-color: rgb(225, 112, 0);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
}

    .digid-button:hover,
    .digid-button:focus {
        background-color: rgb(195, 97, 0);
    }

    .digid-button .digid-logo {
        width: 40px;
    }

    .digid-button .digid-text {
        font-size: 1rem;
        font-weight: bold;
        color: rgb(255, 255, 255);
    }

/* pagina - persoonlijke instellingen */

.settings > form {
    position: relative;
    width: 100%;
}

    .settings > form > .row {
        position: relative;
        display: flex;
        flex-direction: column;
    }

        .settings > form > .row > .input-group-sm {
            margin-bottom: 10px;
        }

            .settings > form > .row > .input-group-sm > .form-control {
                appearance: radio;
                -webkit-appearance: radio;
                width: auto;
            }

.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-item.active {
    color: var(--lighter-color);
    font-size: var(--normal-font-size);
}

/* theme color styling */

a, p, h1, h2, h3, h4, h5, input, label, span {
    color: var(--default-text-color);
}

h1 {
    font-size: var(--medium-font-size);
}

.navbar-brand {
    font-size: var(--big-font-size);
}

a, p, label, input, h2, h3, h4, h5, h6 button, form > .btn, pre, select, option,
.form-control,
.input-group-sm > .form-control, .settings > form > div:nth-of-type(2) > button.btn,
.button.btn, .btn-block {
    font-size: var(--normal-font-size);
}

body, html, .navbar-collapse {
    background-color: var(--darker-color);
}

.info-btn > a > div, .icon-logo, .icon-32, .icon-button, .file-input-icon, .icon {
    display: flex !important;
}

    .icon-32.message-icon, .btn, .button {
        cursor: pointer;
    }

    .icon-32.message-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 100px;
        margin-bottom: 0 !important;
    }

#beschrijving {
    margin-top: 30px;
    background: none;
}

    #beschrijving h1 {
        font-size: 30px;
    }

.icon-32.message-icon > p {
    font-size: 1rem;
}

.file-input-icon, .icon-button {
    margin-bottom: 0px;
    max-width: 60px;
}

/* specific element styling */
.breadcrumb-item.active {
    color: var(--lighter-color);
}

.breadcrumb-item > a:hover {
    color: var(--lighter-color);
}

.breadcrumb-item > a,
main > h1,
main > p,
.navbar-collapse > a > divs,
.nav-item > a.nav-link {
    color: var(--default-text-color) !important;
}

.navbar-collapse > a,
.navbar-collapse > div,
.section-list > section,
section {
    color: var(--default-text-color) !important;
    background-color: var(--dark-color);
}

.second-nav {
    background-color: var(--dark-color) !important;
}

main > .text-center > a,
.navbar-collapse > a,
.navbar-collapse > div {
    filter: var(--drop-shadow);
}

    .nav-item:hover,
    .nav-item:hover > .nav-link,
    .navbar-collapse > a:hover {
        background-color: var(--normal-color) !important;
    }

.new-message {
    background-color: var(--dark-color);
    outline: none;
    box-shadow: 0px 0px 2px var(--default-text-color);
}

textarea, input {
    color: var(--default-text-color) !important;
    padding: 2px 2px 3px 6px;
}

    input:focus, textarea:focus {
        outline: none;
        outline: 1px solid var(--default-text-color);
    }

    textarea::placeholder, input::placeholder {
        color: var(--default-text-color);
        opacity: 0.5;
    }

.extra-info {
    color: var(--lighter-color);
    font-size: 1.2rem !important;
}

select {
    color: var(--default-text-color) !important;
    border-color: var(--border-color);
    padding: 2px 2px 3px 0px;
}

[data-theme="dark"] textarea, [data-theme="dark"] input, [data-theme="dark"] select {
    border: none;
    background-color: var(--input-color) !important;
}

.section-item .heading:hover, .section-item a:hover, .section-item .collapse a div:hover {
    background-color: var(--normal-color);
}

.progress {
    background-color: var(--normal-color);
}

[data-theme="dark"] .section-item .collapse a div.progress:hover {
    background-color: var(--normal-color);
}

.divided {
    border-color: rgb(211, 211, 211, 25%);
}

.navbar-light .navbar-toggler-icon {
    background-image: var(--menu-icon);
}

.form-control {
    border-color: var(--border-color);
}

.settings .col-6 {
    width: 100%;
}

.breadcrumb-item > a, .breadcrumb-item.active, .extra-info {
    font-size: 1.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.login-container {
    background-color: var(--dark-color);
}

.confirm > .buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

    .confirm > .buttons > form {
        width: 47.5%;
    }

.confirm {
    padding: 20px;
}

div > span.logout-btn > form > button {
    display: none;
    justify-content: center;
    align-items: center;
    height: 32px;
    margin-bottom: 0px;
    background-color: rgb(52, 58, 64) !important;
    color: rgb(255, 255, 255) !important;
}

.required:after {
    font-weight: normal;
    color: rgba(220, 53, 6) !important;
}

.navbar-collapse > div > p {
    text-align: center;
}

.message > .section-item > div:nth-child(1) {
    flex-wrap: wrap;
}

.form-floating > .form-control, .form-floating > .form-select {
    height: calc(3.5rem + var(--normal-font-size));
    line-height: 1.25;
}

.heading > a > div.space-between {
    flex-wrap: wrap;
}

#companyuseruploadeddocumenten-container-loadmore a, #clientuploadeddocumenten-container-loadmore a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#gegevens p {
    margin-bottom: 0px;
}

.income-highlight {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: rgba(200, 250, 200, 0.2);
    border: 1.5px solid #4CAF50;
    color: #2E7D32;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

[data-theme="dark"] .income-highlight {
    background-color: rgba(76, 175, 80, 0.15);
    border: 1.5px solid #81C784;
    color: #A5D6A7;
}

}

.text-wrap {
    text-wrap: initial;
}


.form-control:focus,
.btn:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: none !important;
    border-color: inherit !important;
}

*:focus {
    box-shadow: none !important;
    outline: none !important;
}


.skip-to-content-link {
    position: absolute;
    transform: translateY(-200%);
}

.nav-link {
    transition: unset !important;
}

a:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.version-footer {
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    color: #999;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

/* ---- CSP hardening: utility classes replacing inline style="" attributes ---- */
.u-flex-center { display: flex; justify-content: center; }
.u-text-wrap-auto { text-wrap: auto; }
.u-w-80 { width: 80%; }
.u-spinner-32 { width: 32px; height: 32px; }
.u-h-fit { height: fit-content; }
.u-h-100 { height: 100%; }
.u-min-w-0 { min-width: 0; }
.u-pre-line { white-space: pre-line; }
.success-box { background-color: #d4edda; border-color: #c3e6cb; }
.success-text { color: #155724; }
.messages-list { margin-bottom: 75px; }
.filter-toggle { height: 100%; }
.account-type-display { margin-top: 8px; }
.debt-progress { background-color: lime; }