@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.vh-85{
    max-height: 85vh;
}

h1:focus {
    outline: none;
}

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

.btn {
    min-width: fit-content;
}

.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-wrapper{
    padding-left: 0.8em;
    margin-top: 0px;
}

/*.mb-2{
    margin-bottom: 0.8rem !important;
}*/
.validation-message {
    color: red;
    font-size: 0.8em;
}

#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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsK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SAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: 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;
}

.click-able-row {
    cursor: pointer;
}

/*tr.click-able-row:hover td {
    cursor: pointer;
    background-color: #482463;
    opacity: 0.6;
    color: white;
}*/

/*thead.tr {
    background-color: #482463 !important;
}*/

/*    th {
        background-color: #482463 !important;
        color: white !important;
    }*/
/*#region Ripple and container CSS */

.waiting {
    position: fixed;
    inset: 0; /* shorthand for top/left/right/bottom: 0 */
    z-index: 9990;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.3s ease;
}

.lds-ripple {
    position: relative;
    width: 120px;
    height: 120px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid #64C8FF;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -2.5s;
        }

        .lds-ripple div:nth-child(3) {
            animation-delay: -2s;
        }

@keyframes lds-ripple {
    0% {
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        opacity: 0;
        transform: translate(-50%, -50%);
    }

    5% {
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        top: 50%;
        left: 50%;
        width: 360px;
        height: 360px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}
/*.waiting {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 9999;
    background-color: rgb(0, 0, 0);
    opacity: 0.5;
    transition: opacity 1.3s ease;
}
    .waiting ::after {
        opacity: 1;
    }

.lds-ripple {
    display: inline-block;
    position: fixed;
    width: 40px;
    height: 40px;
    margin-left: 40%;
    margin-top: 10%;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid #64C8FF;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -2.5s;
        }

        .lds-ripple div:nth-child(3) {
            animation-delay: -2s;
        }

@keyframes lds-ripple {
    0% {
        top: 180px;
        left: 180px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 180px;
        left: 180px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 180px;
        left: 180px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 360px;
        height: 360px;
        opacity: 0;
    }
}*/
/*#endregion */
/*.sortable {
    cursor: pointer;
}

    .sortable::after {
        content: " ⇅";
        font-size: 0.8em;
        opacity: 0.5;
    }*/

.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-arrow {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* Modern Card */
.card {
    border: none !important;
    border-radius: 0.2rem !important;
    background: #ffffff;
    box-shadow: 0px 5px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

    .card:hover {
        box-shadow: 0px 5px 8px -2px rgba(0, 0, 0, 0.25), 0px 8px 16px 1px rgba(0, 0, 0, 0.18), 0px 3px 22px 2px rgba(0, 0, 0, 0.15);
        /*        transform: translateY(-2px);*/
    }

.card-header {
    background-color: inherit !important;
    background: transparent !important;
    border-bottom: none !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.card-body {
    padding: 0.75rem 1rem;
}

/* Chevron rotation */
.chevron {
    transition: transform 0.25s ease;
}

    .chevron.rotate {
        transform: rotate(180deg);
    }

table {
    background: transparent !important;
    /*    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);*/
}

/* Details view styling*/
.details-section {
    padding: 0.5rem 0;
    /*    border-left: 2px solid rgba(0,0,0,0.05);*/
}

.details-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.details-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 0.25rem 0;
}

.details-label {
    font-weight: 600;
    color: #444;
}

.details-value {
    color: #222;
}

.details-indent {
    padding-left: 20px;
    border-left: 2px solid rgba(0,0,0,0.05);
    margin-left: 5px;
}

.details-divider {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin: 0.75rem 0;
}

.details-collapse-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #444;
}

.details-chevron {
    transition: transform 0.25s ease;
}

    .details-chevron.rotate {
        transform: rotate(180deg);
    }

.list-card {
    overflow: hidden;
    transform-origin: top;
}

    .list-card.show {
        transition: opacity 1.4s ease, transform 1.4s ease, max-height 1.5s ease;
        opacity: 1;
        transform: scaleY(1);
        max-height: 5000px;
    }

    .list-card.hide {
        transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s ease;
        opacity: 0;
        transform: scaleY(0.98);
        max-height: 0;
    }

/*@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }*/
/* GLOBAL keyframes (must be global in Blazor) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/*.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    padding: 1rem;
    margin-bottom: .5rem;
    border-radius: .25rem;
    color: white;
    font-weight: bold;
}

    .toast.success {
        background-color: #28a745;
    }

    .toast.error {
        background-color: #dc3545;
    }

    .toast.warning {
        background-color: #ffc107;
        color: black;
    }

    .toast.info {
        background-color: #17a2b8;
    }*/
