:root {
    --color-CustomerPrimary: #da0046;
    --mud-palette-text-disabled: rgba(0,0,0,0.2) !important; /* Overwrite the color used for disabled text in MudBlazor */
}

.menu-header {
    height: 0;
    border-right: 1px solid var(--mud-palette-table-lines);
    width: var(--mud-drawer-width, var(--mud-drawer-width-left));
    z-index: var(--mud-zindex-appbar);
    position: sticky;
    left: 0;
    top: 0;
}

.menu-header-logo {
    width: var(--mud-drawer-width, var(--mud-drawer-width-left));
    border-right: 1px solid var(--mud-palette-table-lines);
    padding-left: 12px; /*Thwan van Gennip logo aligns optical not quite right because of the 'leaf' in the logo*/
    margin: auto;
    display: block;
    height: 60px;
    animation-duration: 0.5s;
    animation-name: animate-fade;
    animation-delay: 0.1s;
    animation-fill-mode: backwards;
}

@keyframes animate-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.employee-photo-container {
    position: relative;
    width: 125px;
    height: 155px;
    z-index: 1;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.employee-photo-empty {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
}

.employee-photo {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 10;
    animation: photo-fadein 1s;
}

@keyframes photo-fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.employee-photo-dialog {
    max-height: 90%;
    max-width: 90%;
    margin: auto;
    display: block;
}

.side-menu {
    margin-top: 60px;
    border-right: 1px solid var(--mud-palette-table-lines);
    height: calc(100vh - 60px) !important;
}

.menu-copyright {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 9999;
}

.menu-user .mud-overlay {
    height: 100vh;
    cursor: default;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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."
    }

.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-logo {
    position: relative;
    display: block;
    margin: 30vh auto;
    height: 100px;
}

.loading-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(30vh + 120px) 0 auto;
}

.loading-progress-text {
    font-size: var(--mud-typography-caption-size);
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(30vh + 120px) 0 auto;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Bezig met laden...");
    }

code {
    color: #c02d76;
}

/*
    Main layout
*/

.mud-input {
    font-size: inherit !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: inherit !important;
    line-height: inherit !important;
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: inherit !important;
}

.mud-button-year {
    font-size: inherit !important;
}

.mud-table-cell {
    font-size: inherit !important;
}

.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
}

.mud-typography-body2 {
    font-size: var(--mud-typography-body2-size);
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

#blazor-error-ui {
    background: lightyellow;
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    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;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#reconnect-modal {
    background: lightyellow;
    background-color: var(--mud-palette-warning-hover);
    color: var(--mud-palette-warning-darken);
    top: 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;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.appheader {
    backdrop-filter: blur(5px);
    background: var(--mud-palette-appbar-background);
}

.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}

.vh-100 {
    height: calc(100vh - 64px - 16px - 16px - 5px);
}


/*GRID NIEUW*/
/*.mud-table {
    height: 100%;
}

.mud-table-container {
    width: 100% !important;
    height: 100%;
}*/


/*GRID OUD*/
.full-height {
    flex-grow: 1;
    overflow: auto;
}

.mud-table.full-height > .mud-table-container {
    overflow: clip;
    display: block;
}

.mud-tabs.full-height > .mud-tabs-panels {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Zorgt ervoor dat de content in het dialoog geen scrollbar krijgt, er komt wel een scrollbar op de hele dialoog wanneer de pagina te klein wordt voor het dialoog */
.mud-dialog .mud-dialog-content
{
    overflow: initial;
}

.mud-table-row.selectedrow {
    background-color: var(--mud-palette-background-gray);
}

.searchfield {
    cursor: pointer;
}

    .searchfield .mud-input {
        cursor: pointer; /*provide 'clickable' feedback to user*/
    }

    .searchfield input {
        cursor: pointer !important; /*provide 'clickable' feedback to user*/
    }

    .searchfield .mud-input.mud-input-underline:before {
        border-bottom: 1px solid var(--mud-palette-lines-inputs); /*same bottom border as an enabled field*/
    }

    .searchfield .mud-input.mud-input-underline:hover:before {
        border-bottom: 1px solid var(--mud-palette-action-default); /*same hover effect as an enabled field*/
    }

    .searchfield.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol.mud-disabled {
        color: var(--mud-palette-text-secondary); /*same text color as an enabled field*/
    }

/* MUDBLAZOR FIX: Using stickyleft column in combination with fixed header will scroll the sticky header, this fix prevents this */
.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell.sticky-left, .mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell.sticky-right {
    z-index: 3;
    background-color: var(--mud-palette-background);
}

.mud-table-sticky-footer * .mud-table-root .mud-table-foot * .mud-table-cell.sticky-left, .mud-table-sticky-footer * .mud-table-root .mud-table-foot * .mud-table-cell.sticky-right {
    z-index: 3;
    background-color: var(--mud-palette-background);
}

/*sticky left background color*/
.mud-data-grid .mud-table-cell.sticky-left {
    background-color: var(--mud-palette-background);
}

/*sticky left background color of the selected row*/
.mud-table-row.selectedrow .sticky-left {
    background-color: var(--mud-palette-background-gray);
}

/*sticky left background color of the selected row*/
.mud-table-row.selectedrow:hover .sticky-left {
    background-color: var(--mud-palette-background-gray);
}

/*sticky left hover background color*/
.mud-table-row:hover > .mud-table-cell {
    background-color: var(--mud-palette-background-gray);
}
/*END MUDBLAZOR FIX*/

/*
 REMARK: This will enable the tab to be sticky and the content will scroll, but only when there is only a grid in the tab.
    Else other problems occur, so it might not be a good solution...
.mud-tabs {
    overflow: auto;
}

    .mud-tabs > .mud-tabs-panels {
        overflow: auto;
        display: flex;
    }*/

.sticky-left .mud-table-cell:has(>.sticky-footer-fix) {
    z-index: 9999 !important;
    background-color: blue !important;
}

.form-label {
    transform: translate(0, 1.5px) scale(0.75);
    transform-origin: top left;
}

.mud-radio-group > .mud-radio-content-placement-end {
    margin-left: 0;
}

.mud-table-row.row-onhold > .mud-table-cell {
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
}

.mud-table-row.row-onhold:hover > .mud-table-cell {
    background-color: var(--mud-palette-error-darken);
    color: var(--mud-palette-error-text);
}

.mud-table-row.secondary > .mud-table-cell {
    opacity: 0.5;
    background-color: var(--mud-palette-background-gray);
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 5px; /*top right bottom left*/
}

.table-link-column {
    font-weight: bold;
}

/* #5607: let the columns inside a table take up the entire table (or expand further if content in columns is wider) */
.mud-table > .mud-table-container {
    min-width: 100%;
}

/* #5607: target only the sticky left columns that have a menu inside and limit the size to its content */
.mud-table-cell.sticky-left:has(> .mud-menu) {
    width: 1%;
}

.hidden {
    display: none !important;
}

.data-grid-scroll {
    max-height: 20vh;
    overflow-y: auto;
}

/* scrollable datagrid with fixed pager location */
.mud-table.mud-data-grid {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .mud-table.mud-data-grid > .mud-table-container {
        overflow: auto !important;
        flex: 1;
    }
