@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

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

body {
    margin: 0;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

#app {
    min-height: 100vh;
}

.app-bootstrap-loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.app-bootstrap-loader__card {
    width: min(100%, 26rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.95rem;
    padding: 2.25rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.app-bootstrap-loader__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.app-bootstrap-loader__spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 4px solid #fecaca;
    border-top-color: #f40000;
    animation: app-bootstrap-spin 0.85s linear infinite;
}

.app-bootstrap-loader__spinner-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 241, 242, 0.92) 72%, rgba(254, 202, 202, 0.72) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(244, 0, 0, 0.08);
}

.app-bootstrap-loader__title {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #111827;
}

.app-bootstrap-loader__text {
    max-width: 22rem;
    color: #6b7280;
    line-height: 1.55;
}

.app-bootstrap-loader__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-bootstrap-loader__status span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #f87171;
    opacity: 0.45;
    animation: app-bootstrap-pulse 1.2s ease-in-out infinite;
}

.app-bootstrap-loader__status span:nth-child(2) {
    animation-delay: 0.2s;
}

.app-bootstrap-loader__status span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes app-bootstrap-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes app-bootstrap-pulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.35;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

h1:focus {
    outline: none;
}

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

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

.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 {
    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+PC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A4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.k-pager-numbers-wrap {
    margin-left: 45% !important;
}

.k-pager-info {
    width: 200px !important;
}

.planSuccess {
    background-color: forestgreen !important;
    color: white !important;
    text-align: center !important;
}

.planFail {
    background-color: #f40000 !important;
    color: white !important;
    text-align: center !important;
}

.planInProgress {
    background-color: yellow !important;
    color: black !important;
    text-align: center !important;
}

.planNew {
    background-color: transparent !important;
}

.red-color {
    color: #f40000 !important;
}

.white-color {
    color: white !important;
}

.green-color {
    color: forestgreen !important;
}

.k-notification-container {
    margin-top: 4% !important;
}

.margin-right-1 {
    margin-right: 1% !important;
}

.bkg-green {
    background-color: forestgreen !important;
}

.bkg-red {
    background-color: #f40000 !important;
}

.padding-0 {
    padding: 0px !important;
}

.margin-left-15 {
    margin-left: 15px !important;
}

.grid-body-loader {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: calc(100% - 5px);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

    .grid-body-loader p {
        margin-left: 10px;
        font-weight: bold;
        color: #007acc;
    }

.font-20 {
    font-size: 20px !important;
}

.font-18 {
    font-size: 18px !important;
}

.text-align-center {
    text-align: center !important;
}

.padding-left-20 {
    padding-left: 20px !important;
}

.padding-right-20 {
    padding-right: 20px !important;
}

.font-bold {
    font-weight: bold !important;
}

.trash-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    display: inline-flex;
    justify-content: left;
    align-items: flex-start;
}

.k-animation-container .k-popup,
.k-popup.k-list-container,
.k-list-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.k-list-item:hover,
.k-list-item.k-hover,
.k-list-optionlabel:hover,
.k-list-optionlabel.k-hover {
    background-color: #fdf2f2;
    color: #b91c1c;
}

.k-list-item.k-selected,
.k-selected.k-list-item,
.k-list-optionlabel.k-selected,
.k-selected.k-list-optionlabel {
    background-color: #fff1f2;
    color: #9f1239;
}

.access-restricted-banner {
    max-width: 760px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    border-left: 6px solid #f40000;
    border-radius: 12px;
    border: 1px solid #f2c7c7;
    background: linear-gradient(180deg, #fff7f7 0%, #fdf2f2 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #3f3f46;
}

.access-restricted-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #b91c1c;
}

.access-restricted-text {
    line-height: 1.6;
    color: #52525b;
}

.access-restricted-link {
    color: #b91c1c;
    font-weight: 600;
    text-decoration: none;
}

.access-restricted-link:hover,
.access-restricted-link:focus {
    color: #991b1b;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .app-bootstrap-loader {
        padding: 1rem;
    }

    .app-bootstrap-loader__card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }

    .access-restricted-banner {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 10px;
    }
}
