html, body {
    font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

a, .btn-link {
    color: #006bb7;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.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;
}


/* -----------------------------
   Sidebar & Menu styles — add below
   ----------------------------- */


/* Keep main content transition smooth when sidebar toggles */
main {
    transition: margin-left 220ms ease;
}

/* Append: ensure full-height layout and scrolling main content */

/* Make html/body fill viewport */
html, body {
    height: 100%;
}

/* Ensure the Blazor root and layout use full height when needed */
.d-flex.min-vh-100 {
    min-height: 100vh; /* Bootstrap's utility already does this, keep for safety */
}

/* Main area should grow and scroll when content overflows */
main.flex-grow-1 {
    min-height: 0; /* allow flex children to shrink and allow overflow-auto to work */
}
article.content.flex-grow-1 {
    /* allow content area to scroll inside main */
    min-height: 0;
    overflow: auto;
}

/* If using HxSidebar-specific container adjustments are needed (optional) */
.hx-sidebar, .bb-sidebar {
    height: 100vh; /* make sidebar fill viewport vertically */
}
/* --auth-bg: #1f2327;*/
/* Background color sampled from your image */
/* --- Branding & background --- */
:root {
    /* deep-blue background sampled for the app */
    --auth-bg: #123f70;
    --panel-bg: rgba(255,255,255,0.03);
    --panel-border: rgba(255,255,255,0.06);
    --muted: rgba(233,236,239,0.9);
}

/* full-screen overlay that we animate */
.auth-screen {
    position: fixed;
    inset: 0;
    background: var(--auth-bg);
    display: flex;
    justify-content: flex-end; /* panel sits at the right end of the screen */
    align-items: center;
    padding: 3rem;
    z-index: 1050;
    overflow: hidden;
}

/* login card */
.auth-panel {
    width: min(460px, 94vw);
    background: var(--panel-bg);
    color: var(--muted);
    border-radius: 12px;
    border: 1px solid var(--panel-border) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transform-origin: right center;
    position: relative;
    z-index: 1;
}

/* logo */
.login-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

/* small tweaks for titles / hints */
.auth-panel h4 {
    color: #ffffff;
    margin-bottom: 0;
}

.auth-panel small {
    color: rgba(255,255,255,0.65);
}

/* --- Entrance and exit animations --- */
/* Enter: slide in from the left side to its final position */
.auth-enter {
    animation: slide-in 700ms cubic-bezier(.2,.85,.25,1) both;
}

/* Exit: slide left off-screen (revealing the main app) */
.auth-exit {
    animation: slide-out 700ms cubic-bezier(.4,0,.2,1) forwards;
    pointer-events: none;
}

/* Keyframes */
@keyframes slide-in {
    from {
        transform: translateX(-110vw);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-110vw);
        opacity: 0;
    }
}

/* --- Responsive: on small screens center the panel and make it full width-ish --- */
@media (max-width: 767.98px) {
    .auth-screen {
        justify-content: center;
        padding: 1.5rem;
    }

    .auth-panel {
        width: min(520px, 98vw);
    }
}

/* accessibility focus styles for inputs (optional) */
.auth-panel .form-control:focus {
    box-shadow: 0 0 0 .15rem rgba(13,110,253,0.12);
    border-color: rgba(13,110,253,0.6);
}

/* PageHeading component styles */
.page-heading {
    margin: 0 0 1.25rem 0;
    padding: 0.25rem 0;
}

.page-heading-inner {
    gap: 1rem;
}

/* Title */
.page-title {
    margin: 0;
    font-size: 1.5rem; /* adjust as needed */
    font-weight: 600;
    line-height: 1.1;
    color: #000f;
}

/* Subtitle / description */
.page-subtitle {
    margin: 0.25rem 0 0;
    color: #6c757d; /* light muted grey */
    font-size: 0.95rem;
}

/* Right-hand content (buttons, quick actions) */
.page-heading-right {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Divider line (light grey) */
.page-heading-divider {
    margin-top: 0.75rem;
    height: 1px;
    background-color: #e9ecef; /* light grey line */
    width: 100%;
    border-radius: 1px;
}

/* Responsive: stack on small screens */
@media (max-width: 575.98px) {
    .page-heading-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-heading-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* SearchGrid — smaller, semibold headers and slightly smaller row text */
.search-grid-table table thead th,
.search-grid thead th {
    font-size: 0.78rem;      /* smaller header text */
    font-weight: 600;        /* semibold feeling */
    letter-spacing: 0.2px;
    padding: 0.40rem 0.65rem; /* tighter cells */
    vertical-align: middle;
    white-space: nowrap;
}

.table thead th,
.thead th {

        font-size: 0.78rem; /* smaller header text */
        font-weight: 600; /* semibold feeling */
        letter-spacing: 0.2px;
        padding: 0.40rem 0.65rem; /* tighter cells */
        vertical-align: middle;
        white-space: nowrap;
 
}

.search-grid-table table tbody td,
.search-grid tbody td {
    font-size: 0.92rem;      /* slightly smaller body text */
    font-weight: 400;
    padding: 0.42rem 0.65rem;
    vertical-align: middle;
}

/* Compact row height for denser tables */
.search-grid-table table.table.table-striped.table-hover {
    border-collapse: separate;
}

/* Reduce spacing for small viewports */
@media (max-width: 576px) {
    .search-grid-table table thead th,
    .search-grid-table table tbody td {
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
    }
}


/* DetailHeading: compact variant for dialog headers / small panels */
.detail-heading {
    padding: 0.35rem 0; /* tight vertical spacing */
    margin-bottom: 0.5rem;
}

.detail-heading-inner {
    gap: .5rem;
}

.detail-title {
    margin: 0;
    font-size: 1.05rem; /* smaller than page title */
    font-weight: 600;
    line-height: 1.05;
    color: var(--bs-body-color, #212529);
}

.detail-subtitle {
    margin-top: 0.125rem;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.1;
}

/* Right side (actions / buttons) */
.detail-heading-right {
    margin-left: 0.75rem;
}

/* Close button styling (small, unobtrusive) */
.detail-close-btn {
    padding: 0.28rem 0.42rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Subtle divider */
.detail-heading-divider {
    margin-top: 0.5rem;
    height: 1px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 1px;
}

/* Responsive: stack right content below title on very small screens */
@media (max-width: 439.98px) {
    .detail-heading-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-heading-right {
        width: 100%;
        margin-top: 0.5rem;
        display: flex;
        justify-content: flex-start;
        gap: .5rem;
    }
}

/* EntityDialog styles */
.entity-dialog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 1050;
    background: rgba(0,0,0,0.35);
}

    .entity-dialog-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .entity-dialog-overlay.hide {
        opacity: 0;
        pointer-events: none;
    }

.entity-dialog-card {
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    width: min(920px, 95%);
    max-height: 86vh;
    overflow: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 1rem;
}

/* header / body / footer layout */
.entity-dialog-header {
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.entity-dialog-body {
    padding: 1rem 0;
}

.entity-dialog-footer {
    padding-top: .5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}