/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/*Horizontal Steppers */
/*#timeline {
    list-style: none;
    position: relative;
}

    #timeline:before {
        top: 0;
        bottom: 0;
        position: absolute;
        content: " ";
        width: 2px;
        background-color: #4997cd;
        left: 50%;
        margin-left: -1.5px;
    }

    #timeline .clearFix {
        clear: both;
        height: 0;
    }

    #timeline .timeline-badge {
        color: #fff;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        text-align: center;
        position: absolute;
        top: 20px;
        left: 50%;
        margin-left: -25px;
        background-color: #4997cd;
        z-index: 100;
        border-top-right-radius: 50%;
        border-top-left-radius: 50%;
        border-bottom-right-radius: 50%;
        border-bottom-left-radius: 50%;
    }

        #timeline .timeline-badge span.timeline-balloon-date-day {
            font-size: 1.4em;
        }

        #timeline .timeline-badge span.timeline-balloon-date-month {
            font-size: .7em;
            position: relative;
            top: -10px;
        }

        #timeline .timeline-badge.timeline-filter-movement {
            background-color: #ffffff;
            font-size: 1.7em;
            height: 35px;
            margin-left: -18px;
            width: 35px;
            top: 40px;
        }

            #timeline .timeline-badge.timeline-filter-movement a span {
                color: #4997cd;
                font-size: 1.3em;
                top: -1px;
            }

        #timeline .timeline-badge.timeline-future-movement {
            background-color: #ffffff;
            height: 35px;
            width: 35px;
            font-size: 1.7em;
            top: -16px;
            margin-left: -18px;
        }

            #timeline .timeline-badge.timeline-future-movement a span {
                color: #4997cd;
                font-size: .9em;
                top: 2px;
                left: 1px;
            }

    #timeline .timeline-movement {
        border-bottom: dashed 1px #4997cd;
        position: relative;
    }

        #timeline .timeline-movement.timeline-movement-top {
            height: 60px;
        }

        #timeline .timeline-movement .timeline-item {
            padding: 20px 0;
        }

            #timeline .timeline-movement .timeline-item .timeline-panel {
                border: 1px solid #d4d4d4;
                border-radius: 3px;
                background-color: #FFFFFF;
                color: #666;
                padding: 10px;
                position: relative;
                -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
                box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
            }

                #timeline .timeline-movement .timeline-item .timeline-panel .timeline-panel-ul {
                    list-style: none;
                    padding: 0;
                    margin: 0;
                }

                #timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul {
                    text-align: right;
                }

                    #timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li {
                        color: #666;
                    }

                        #timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li span.importo {
                            color: #468c1f;
                            font-size: 1.3em;
                        }

                #timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul {
                    text-align: left;
                }

                    #timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul span.importo {
                        color: #e2001a;
                        font-size: 1.3em;
                    }*/

/*stepwizard*/
.stepwizard-step p {
    margin-top: 0px;
    color: #666;
}

.stepwizard-row {
    display: table-row;
}

.stepwizard {
    display: table;
    width: 100%;
    position: relative;
}

.stepwizard-step button[disabled] {
    /*opacity: 1 !important;
        filter: alpha(opacity=100) !important;*/
}

.stepwizard .btn.disabled,
.stepwizard .btn[disabled],
.stepwizard fieldset[disabled] .btn {
    opacity: 1 !important;
    color: #bbb;
}

.stepwizard-row:before {
    top: 14px;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-index: 0;
}

.stepwizard-step {
    display: table-cell;
    text-align: center;
    position: relative;
}

.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

/*begin Loading*/
.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4997cd;
    animation: lds-grid 1.2s linear infinite;
}

.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes lds-grid {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/*end Loading*/

/*Report Canvas*/
#canvas_container {
    width: 800px;
    height: 450px;
    overflow: auto;
}

#canvas_container {
    background: #333;
    text-align: center;
    border: solid 3px;
}

/*  https://jasonwatmore.com/post/2020/07/31/blazor-webassembly-form-validation-example
    below styles were copied from bootstrap 4.5.0 and renamed to be compatible with blazor
    - '.validation-message' == bootstrap '.invalid-feedback'
    - '.invalid' == bootstrap '.is-invalid'
*/
.validation-message {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.invalid~.validation-message {
    display: block;
}

.form-control.valid {
    border-color: #28a745;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-control.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #28a745;
}

.form-control.invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

textarea.form-control.invalid {
    padding-right: calc(1.5em + 0.75rem);
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.form-check-input.invalid~.form-check-label {
    color: #dc3545;
}

.form-check-input.invalid~.validation-message {
    display: block;
}




/*Alert*/

.toast {
    display: none;
    /*    padding: 1.5rem;
    color: #fff;
    z-index: 1;
    position: absolute;
    width: 25rem;
    top: 2rem;
    border-radius: 1rem;
    left: 50%;*/
}

.toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

.toast-body p {
    margin-bottom: 0;
}

.toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*Kavoku style-ing*/

.centeredTd {
    vertical-align: middle;
    text-align: center;
}

/* Authentication loading indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4e73df;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Global Grid Styling Restoration */
.rz-grid-table {
    border-collapse: collapse !important;
}

.rz-grid-table td,
.rz-grid-table th {
    border-bottom: 1px solid #dee2e6 !important;
    /* Standard Bootstrap border color */
    border-right: 1px solid #dee2e6 !important;
}

.rz-grid-table th {
    background-color: #f8f9fa !important;
    /* Light gray header */
    font-weight: 600;
}

.rz-datatable-thead th {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Ensure pagination dropdown is visible */
.rz-pager-dropdown {
    display: inline-block !important;
}

.blazored-modal.modal-unified {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.blazored-modal.modal-unified .blazored-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
}

.blazored-modal.modal-unified .blazored-modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.blazored-modal.modal-unified .blazored-modal-header h1,
.blazored-modal.modal-unified .blazored-modal-header h2,
.blazored-modal.modal-unified .blazored-modal-header h3,
.blazored-modal.modal-unified .blazored-modal-header h4,
.blazored-modal.modal-unified .blazored-modal-header h5,
.blazored-modal.modal-unified .blazored-modal-title {
    color: #f97316;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    font-family: inherit;
}

.wod-toggle-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.wod-toggle-item {
    min-width: 160px;
}

.modal-debug {
    margin: 0.5rem 0 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.85rem;
}

:root {
    --calibrify-primary: #f97316;
    --calibrify-primary-dark: #ea580c;
    --calibrify-primary-light: #fdba74;
    --rz-primary: var(--calibrify-primary);
    --rz-primary-dark: var(--calibrify-primary-dark);
    --rz-primary-light: var(--calibrify-primary-light);
    --rz-secondary: #64748b;
    --rz-sidebar-background-color: #1f2937;
    --rz-sidebar-color: #f8fafc;
    --rz-header-background-color: #ffffff;
    --rz-header-color: #111827;
    --rz-body-background-color: #f8fafc;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--calibrify-primary) !important;
    border-color: var(--calibrify-primary) !important;
}

.btn-outline-primary {
    color: var(--calibrify-primary) !important;
    border-color: var(--calibrify-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--calibrify-primary) !important;
    border-color: var(--calibrify-primary) !important;
    color: #fff !important;
}

.text-primary,
a.text-primary {
    color: var(--calibrify-primary) !important;
}

.border-primary {
    border-color: var(--calibrify-primary) !important;
}

.bg-primary,
.bg-gradient-primary {
    background-color: var(--calibrify-primary) !important;
    background-image: linear-gradient(180deg, var(--calibrify-primary) 10%, var(--calibrify-primary-dark) 100%) !important;
}

.rz-header {
    background-color: var(--rz-header-background-color);
    color: var(--rz-header-color);
    border-bottom: 1px solid #e5e7eb;
}

.rz-sidebar {
    background-color: var(--rz-sidebar-background-color);
    color: var(--rz-sidebar-color);
}

.rz-sidebar .rz-panel-menu .rz-navigation-item-link,
.rz-sidebar .rz-panel-menu .rz-panel-menu-item-link {
    color: var(--rz-sidebar-color);
}

.rz-sidebar .rz-panel-menu .rz-navigation-item-link:hover,
.rz-sidebar .rz-panel-menu .rz-panel-menu-item-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.rz-sidebar .rz-panel-menu .rz-navigation-item-link.rz-state-active,
.rz-sidebar .rz-panel-menu .rz-panel-menu-item-link.rz-state-active,
.rz-sidebar .rz-panel-menu .rz-panel-menu-item.rz-state-active > .rz-panel-menu-item-link {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fff;
}

.rz-button.rz-primary {
    background-color: var(--calibrify-primary);
    border-color: var(--calibrify-primary);
}

.rz-button.rz-primary:hover,
.rz-button.rz-primary:focus {
    background-color: var(--calibrify-primary-dark);
    border-color: var(--calibrify-primary-dark);
}