html, body {
    font-family: var(--font-family-primary);
}

a, .btn-link {
    color: #006bb7;
}

.mud-button-filled-size-small {
    padding: 6px 15px 5px 15px !important;
    font-size: .8125rem;
}
.mud-input.mud-input-outlined .mud-input-outlined-border{
    border: 1px solid #ced4da !important;
}
.mud-button
{
    border-radius: 16.2px !important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.bg-lighter {
    background-color: #f1f3f5 !important;
}
.bg-gray{
    background-color: #f7f6f8 !important;
}  
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}
.shadow-lg{
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
} 
.shadow{
    box-shadow: 2px 1px 11px -6px #b7bcd1 !important;
}
.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;
}
.mud-paper {
    color: var(--mud-palette-text-primary) !important;
    background-color: #fff;
    border-radius: 0px !important;
    border: 1px solid #e7eaed !important;
    background-clip: border-box !important;
    border-radius: 1px !important;
}
.mud-popover .mud-list
{
    overflow-y:unset !important;
}
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
.mud-appbar .mud-toolbar-appbar
{
    height: 48px !important;
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OS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2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
.mud-paper
{
    border-radius:0px !important;
}
.sidebartitle {
    color: #7e7e7e;
    padding: .15rem 1.05rem 0 1.15rem;
    margin-bottom: 3px;
    font-weight: 300;
}
.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 0.700rem 0.675rem !important;
    font-size: 0.85rem !important;
}
.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 2px !important;
    font-size: 0.85rem !important;
}
.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    padding: 8.5px !important;
    font-size: 0.85rem !important;
}
:root {
    --brand-pink: #ff4081; /* base */
    --brand-pink-100: #ff80ab; /* lighter */
    --brand-pink-700: #c51162; /* deep */
}

#app-splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    z-index: 9999;
    transition: opacity 0.45s ease;
}

    #app-splash.hidden {
        opacity: 0;
        pointer-events: none;
    }

.splash-logo {
    height: 75px;
    max-width: 260px;
    margin-right:17px;
    object-fit: contain;
    animation: splash-rise 0.5s cubic-bezier(.16,1,.3,1) both;
}

/* Circular progress ring using conic-gradient */
.splash-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(#b91c1c 0%, #e5e7eb 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splash-rise 0.5s 0.08s cubic-bezier(.16,1,.3,1) both;
}

.splash-ring-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-pct {
    font-size: 15px;
    font-weight: 700;
    color: #b91c1c;
    font-family: 'Inter', monospace;
    letter-spacing: -.3px;
    margin-left: 4px;
    margin-top: 2px;
}

.splash-sub {
    font-size: 13px;
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    animation: splash-rise 0.5s 0.14s cubic-bezier(.16,1,.3,1) both;
}

@keyframes splash-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@media (max-width: 480px) {
    .splash-ring { width: 78px; height: 78px; }
    .splash-ring-inner { width: 50px; height: 50px; }
}

.mud-button-outlined{
    border: 1px solid #c4c4c4 !important;
}
/* Global Reusable Styles for Filters and Buttons */

/* Rounded Search Box - For search inputs */
.search-box-rounded {
    border-radius: 8px !important;
}

.search-box-rounded .mud-input-outlined-border {
    border-radius: 8px !important;
}

.search-box-rounded .mud-input-root {
    border-radius: 8px !important;
}

.search-box-rounded .mud-input-control {
    border-radius: 8px !important;
}

/* Compact Form Controls - No border radius for forms */
.compact-form-control .mud-input-outlined-border {
    border-radius: 2px !important;
}

/* Summary Box Icons */
.summary-box-icon {
    font-size: 1.2rem !important;
    margin-right: 4px;
    opacity: 0.8;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    border-radius: 8px !important;
}

/* ── Mobile: prevent MudDialog from going behind the fixed bottom nav / system bars ── */
@media (max-width: 767px) {
    /* Non-fullscreen dialogs: cap height so content stays above the bottom nav */
    .mud-dialog {
        max-height: calc(100dvh - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom, 0px)) !important;
    }
    .mud-dialog-content {
        max-height: calc(80dvh - var(--mobile-bottom-nav-height)) !important;
        overflow-y: auto !important;
    }
    /* Full-screen dialogs: respect Android status bar (top) and our nav bar + gesture zone (bottom).
       This fixes the "cropped top and bottom" issue in the MAUI APK. */
    .mud-dialog.mud-dialog-fullscreen {
        padding-top: env(safe-area-inset-top, 0px) !important;
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        box-sizing: border-box !important;
    }
    /* Bottom sheet / drawer overlays: same treatment */
    .mobile-bottom-sheet {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }
}

/* Mobile responsive MudTable: show DataLabel on left and values on right */
@media (max-width: 600px) {
    .mud-table-cell {
        display: table-cell !important;
    }
    .mud-xs-table .mud-table-root .mud-table-head, .mud-xs-table .mud-table-root .mud-table-foot {
        display: contents !important;
    }
}
