/* Set Default fonts to BGDD font DINPro */
html, body {
    font-family: 'DINPro','Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Overwrite radzen default fonts with BGDD ones */
:root {
    --rz-text-font-family: 'DINPro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(even) > td {
    background-color: var(--rz-grid-background-color);
}

rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(odd) > td {
    background-color: var(--rz-grid-stripe-background-color);
}

/* Overwrite radzen default fonts with BGDD ones */
.rz-text,
.rz-heading,
.rz-button,
.rz-inputtext,
.rz-link,
.rz-layout {
    font-family: 'DINPro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.rz-text-h1,
.rz-text-h2,
.rz-text-h3,
.rz-text-h4,
.rz-text-h5,
.rz-text-h6 {
    font-family: 'DINPro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Header bar and layout */
.rz-layout .rz-header.app-header {
    background-color: #002c62 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.app-header {
    background-color: #002c62 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.app-header-row {
    min-height: 64px;
    padding: 0 1rem;
    margin: 0;
}

/* Drag and drop styles */

.drop-area.drag-over {
    border-color: #002c62;
    background-color: rgba(0, 44, 98, 0.05);
}

.toolbox-item:active {
    cursor: grabbing;
}

/* Navigation sidebar */
.rz-sidebar {
    background-color: #002c62;
    display: flex;
    flex-direction: column;
}

    .rz-sidebar .nav-menu-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

        .rz-sidebar .nav-menu-container .rz-navigation-item {
            border-block-start: 1px solid rgb(238, 238, 238);
        }

.rz-dialog.rz-open,
.rz-dialog {
    border-radius: 12px;
    overflow: hidden;
}

/* Title bar */
/*.rz-dialog-titlebar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 600;
}*/

/* Content */
/*.rz-dialog-content {
    padding: 1.5rem !important;
    overflow: visible !important;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}
*/
/* Confirm layout */
/*.rz-dialog-confirm {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}*/

/* Button area */
/*.rz-dialog-confirm-buttons {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
}*/

    /* Eventuele wrappers */
    .rz-dialog-confirm-buttons > div,
    .rz-dialog-confirm-buttons > span,
    .rz-dialog-confirm-buttons > * {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Buttons */
    .rz-dialog-confirm-buttons .rz-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 160px !important;
        height: 42px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        padding: 0 1rem !important;
    }

    /* Primary */
    .rz-dialog-confirm-buttons .rz-primary {
        background-color: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

        .rz-dialog-confirm-buttons .rz-primary:hover {
            background-color: #1d4ed8;
            border-color: #1d4ed8;
        }

    /* Secondary */
    .rz-dialog-confirm-buttons .rz-button:not(.rz-primary) {
        background-color: #fff;
        border: 1px solid #d1d5db;
        color: #374151;
    }

        .rz-dialog-confirm-buttons .rz-button:not(.rz-primary):hover {
            background-color: #f9fafb;
        }

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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."
    }

/* Loading stylings - RadzenDataGrid */

.rz-data-row:hover {
    background-color: #767676 !important;
    color: white !important;
    cursor: pointer;
}

.rz-datatable-loading {
    background-color: rgba(255, 255, 255, 0.9) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rz-datatable-loading-icon {
    color: #002c62 !important;
    font-size: 2.5rem !important;
}

/* Loading progress bar styling */
.rz-progressbar-circular {
    color: #002c62 !important;
}

/* Radzen ProgressBarCircular gebruikt in loading */
.rz-progressbar-circular-indeterminate svg circle {
    stroke: #002c62 !important;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*Import the company font from fonts folder in wwwroot*/

/* Regular */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

/* Medium */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Medium Italic */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

/* Bold */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Bold Italic */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* Black */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Light */
@font-face {
    font-family: 'DINPro';
    src: url('/fonts/DINPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@media (max-width: 768px) {
    body .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert) {
        inset-block-start: 10vh !important;
    }
}


@media (max-width: 640px) {
    .rz-dialog.rz-open {
        min-width: unset !important;
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        margin: 1rem !important;
    }

    .rz-dialog-titlebar {
        padding: 1rem;
        font-size: 1rem;
    }

    .rz-dialog-content {
        padding: 1.25rem !important;
        font-size: 0.95rem;
    }

    /* Buttons onder elkaar */
    .rz-dialog-confirm-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

        /* Buttons full width */
        .rz-dialog-confirm-buttons .rz-button {
            width: 100% !important;
            min-width: unset !important;
            height: 44px !important;
        }
}
