/* Blazor start */

:root {
    --bs-link-color-rgb: var(--rz-base-50);
    --rz-header-background-color: #212529;
    --rz-layout-body-padding: 0.1rem;
    --rz-link-color: #7a9630;
    --rz-tabs-padding: 0.5rem;
    --rz-grid-cell-border: none;
    --rz-header-color: var(--rz-base-50);
    --rz-sidebar-toggle-color: var(--rz-base-50);
    --rz-link-color: var(--rz-border-base-900);
    --rz-sidebar-toggle-border: var(--rz-border-base-900)
}

/*.rz-link-text {
    color: dimgray
}*/

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44Nz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2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
/* Blazor end */

/*
    Start Redzen style
*/

/*.rz-datatable, .rz-data-grid-data {
    overflow: initial;
}

.rz-grid-table tfoot, .rz-grid-table tfoot td {
    position: relative;
}

rz-datatable-tfoot .rz-frozen-cell-right-end {
    position: relative;
}*/

.rz-datatable-data tr[selected] {
    border-left-style: solid;
    border-left-color: #ff6d41;
    border-left-width: 3px;
}

.rz-datatable-data tr td input {
    width: 100%
}

.rz-card.hover:hover {
    background-color: ghostwhite;
    cursor: pointer;
}

.rz-menuitem-icon {
    color: #598087
}

.rz-datatable-data td:not(:last-child) {
    border-right: none !important
}

.rz-datatable-data td {
    border-bottom: none !important
}

.rz-datatable-even:hover td, .rz-datatable-odd:hover td {
    background-color: floralwhite
}

/* Make table more responsive on mobile */
@media (max-width: 768px) {
    .rz-datatable-reflow .rz-cell-data {
        text-align: end;
    }

        .rz-datatable-reflow .rz-cell-data > input {
            width: 100%
        }

    .rz-datatable-scrollable-colgroup {
        display: block;
    }
}

.rz-dropdown-items-wrapper {
    min-height: 400px
}

    .rz-dropdown-items-wrapper .rz-dropdown-filter-icon::before {
        color: red
    }

/* Remove up/down from number input */
.rz-cell-filter-label .rz-numeric .rz-numeric-button {
    display: none;
}

.rz-cell-filter-label .rz-numeric input {
    padding-right: 0.5rem; /* adjust this value as needed */
}

/* Make input fit cell  */
.rz-grid-table td .rz-cell-data input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rz-cell-data{
    display: flex !important;
    gap: 2px;
}


/* Set max width for pill */
span.rz-badge-pill {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/* Upload button style */
.rz-fileupload-buttonbar {
    padding: 0px !important;
}

/*
    End Redzen style
*/
/*
    Start Loader component
*/
.loading-overlay {
    width: 100%;
    height: 100%;
    position: fixed; /* Changed from absolute to fixed */
    left: 0;
    top: 0; /* Added to ensure it starts from the very top of the viewport */
    z-index: 1002;
    background-color: white;
    background: rgba(255, 255, 255, 0.8);
}

/* Loader Animation */
.loader-container {
    flex-basis: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 75%;
    top: 20%;
    left: 50%;
    margin-left: -37.5%;
}

.loader-container-max {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    top: 10%;
    right: 10%;
    left: 10%;
    bottom: 10%;
    flex-direction: column;
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    text-align: center;
}

.dot-loader {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #052F5F;
    position: relative;
    -webkit-animation: 1.2s scaleDown ease-in-out infinite;
    animation: 1.2s scaleDown ease-in-out infinite;
}

    .dot-loader:nth-child(2) {
        margin: 0 15px;
        -webkit-animation: 1.2s scaleDown ease-in-out infinite .15555s;
        animation: 1.2s scaleDown ease-in-out infinite .15555s;
    }

    .dot-loader:nth-child(3) {
        -webkit-animation: 1.2s scaleDown ease-in-out infinite .300000s;
        animation: 1.2s scaleDown ease-in-out infinite .300000s;
    }

@-webkit-keyframes scaleDown {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes scaleDown {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
/* End Loader component */

/* Start blinking/flashing text */
.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

span.blink_me {
    background-color: lawngreen;
    color: red;
    padding: 10px;
}
/* End blinking/flashing text */


/*
    For changelog 
*/
.terminal-output {
    background-color: black;
    color: #00FF00; /* classic green, you can also use #FFB800 for amber */
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap; /* keeps whitespace */
    padding: 20px;
    border: 1px solid #00FF00;
    /*max-width: 800px;*/
    overflow: auto; /* in case the content is too long */
    line-height: 1.4;
}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    z-index: 10000;
    pointer-events: none; /* Allow clicks to pass through */
    transition: opacity 0.1s ease;
}

.hover-parent {
    position: relative;
}

    /* Initially hide the hover content */
    .hover-parent .hover-content {
        display: none;
        position: absolute; /* Example positioning */
        right: 5px;
        margin-top: 5px;
    }

    /* Show the hover content when the parent is hovered */
    .hover-parent:hover .hover-content {
        display: block;
    }

/* Start Redzen spliter */
.rz-splitter-bar .rz-collapse, .rz-splitter-bar .rz-expand {
    display: none !important; /* Remove from splitter buttons */
}

.rz-splitter-bar.rz-splitter-bar-resizable {
    align-self: stretch; /* strech splitter bar with content */
}
/* End Redzen splitter */

/* Start Redzen file upload */
.rz-fileupload-choose {
    padding: 0.45rem 0.75rem !important;
}
/* End Redzen file upload */

.button-container {
    display: flex;
    justify-content: space-between; /* Aligns items to the edges and adds space between them */
    gap: 5px; /* Adds space between the buttons */
}

.spacer {
    flex-grow: 1; /* This spacer takes up all available space, pushing the third button to the right */
}

/* Make drowpow full witdh in filter cell of grid */
.rz-cell-filter-content .rz-dropdown {
    flex-grow: 1;
}
