@import 'ESRPresentation.Client.vqwubp26tr.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ub20v4cp5v] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ub20v4cp5v] {
    flex: 1;
}

.sidebar[b-ub20v4cp5v] {
    height:auto,
}

.top-row[b-ub20v4cp5v] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-ub20v4cp5v]  a, .top-row[b-ub20v4cp5v]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-ub20v4cp5v]  a:hover, .top-row[b-ub20v4cp5v]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-ub20v4cp5v]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 2500.98px) {
    .top-row[b-ub20v4cp5v] {
        justify-content: space-between;
    }

    .top-row[b-ub20v4cp5v]  a, .top-row[b-ub20v4cp5v]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 2500px) {
    .page[b-ub20v4cp5v] {
        flex-direction: row;
    }

    .sidebar[b-ub20v4cp5v] {
        width: 310px;
        height: auto;
        position: sticky;
        top: 0;
    }

    .top-row[b-ub20v4cp5v] {
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-ub20v4cp5v]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-ub20v4cp5v], article[b-ub20v4cp5v] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-ub20v4cp5v] {
    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[b-ub20v4cp5v] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-g5k5q9xu0h] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: #333;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid #ccc;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem #ffffff;
}

    .navbar-toggler:checked[b-g5k5q9xu0h] {
        background-color: #eee;
    }

.top-row[b-g5k5q9xu0h] {
    height: 3.5rem;
    background-color: #ffffff; /* white top bar */
    border-bottom: 1px solid #ddd;

    display: flex;
    align-items: center;
    justify-content: center; /* centers logo */
    position: relative; /* needed for absolute toggler */
}

.navbar-brand[b-g5k5q9xu0h] {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi[b-g5k5q9xu0h] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

/* Black icons */
.bi-house-door-fill-nav-menu[b-g5k5q9xu0h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-g5k5q9xu0h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-g5k5q9xu0h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-g5k5q9xu0h] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-g5k5q9xu0h] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-g5k5q9xu0h] {
        padding-bottom: 1rem;
    }

    .nav-item[b-g5k5q9xu0h]  .nav-link {
        color: #333;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

    .nav-item[b-g5k5q9xu0h]  a.active {
        background-color: #f0f0f0;
        color: #000;
    }

    .nav-item[b-g5k5q9xu0h]  .nav-link:hover {
        background-color: #f9f9f9;
        color: #000;
    }

.nav-scrollable[b-g5k5q9xu0h] {
    display: none;
    background-color: #ffffff; /* white side panel */
    border-right: 1px solid #ddd;
    height:auto
}

.navbar-toggler:checked ~ .nav-scrollable[b-g5k5q9xu0h] {
    display: block;
}

@media (min-width: 2500px) {
    .navbar-toggler[b-g5k5q9xu0h] {
        display: none;
    }

    .nav-scrollable[b-g5k5q9xu0h] {
        display: block;
        height: 100%;
        overflow-y: auto;
    }
}

.nav-logo[b-g5k5q9xu0h] {
    height: 2rem; /* adjust as needed */
    max-height: 100%;
    width: auto;
    display: block;
}

/* Keep toggler on right side */
.navbar-toggler[b-g5k5q9xu0h] {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

/* NavMenu.razor.css */
.nav-item[b-g5k5q9xu0h]  .nav-icon {
    width: clamp(20px, 2vw, 36px);
    height: clamp(20px, 2vw, 36px);
    object-fit: contain;
    margin-right: 0.75rem;
}


/* Group container */
.nav-group[b-g5k5q9xu0h] {
    margin: .25rem 0;
    border-radius: 8px;
}

/* Summary row (the clickable header) */
.nav-group-toggle[b-g5k5q9xu0h] {
    list-style: none; /* remove default marker */
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem .75rem;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    position: relative;
    color: #333;
}

    /* Remove default triangle marker from <summary> in Safari/Chrome */
    .nav-group-toggle[b-g5k5q9xu0h]::-webkit-details-marker {
        display: none;
    }

    /* Hover/active feedback */
    .nav-group-toggle:hover[b-g5k5q9xu0h] {
        background: #f7f7f7;
    }

/* Chevron indicator (rotates on open) */
.nav-group .chevron[b-g5k5q9xu0h] {
    margin-left: auto;
    width: .75rem;
    height: .75rem;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform .18s ease;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M12.14 8.53 6.53 14.14a.75.75 0 1 1-1.06-1.06L9.94 8 5.47 3.53A.75.75 0 0 1 6.53 2.47l5.61 5.61a.75.75 0 0 1 0 1.06Z'/%3E%3C/svg%3E") center / contain no-repeat;
    background: currentColor;
}

/* Rotate chevron when open */
.nav-group[open] .chevron[b-g5k5q9xu0h] {
    transform: rotate(90deg);
}

/* Children container (indented) */
.nav-children[b-g5k5q9xu0h] {
    margin: .125rem 0 .5rem 0;
    padding-left: 1.75rem; /* indent children under the group */
    border-left: 1px solid #eee;
}

    /* Ensure children links line up nicely */
    .nav-children .nav-item-link[b-g5k5q9xu0h] {
        padding: .45rem .5rem;
    }

/* Make icons inside groups larger if you like */
.nav-group .nav-icon[b-g5k5q9xu0h] {
    width: clamp(20px, 2vw, 36px);
    height: clamp(20px, 2vw, 36px);
}

/* If CSS isolation blocks inner elements, pierce with ::deep */
.nav-item[b-g5k5q9xu0h]  .nav-item-link {
    display: flex;
    align-items: center;
    gap: 0;
}

.addition[b-g5k5q9xu0h] {
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
}

.nav-item[b-g5k5q9xu0h]  .nav-icon {
    width: clamp(20px, 2vw, 36px);
    height: clamp(20px, 2vw, 36px);
    object-fit: contain;
}


/* 1) Define a single left gutter for the whole nav */
.nav-scrollable[b-g5k5q9xu0h] {
    --nav-gutter-x: 1rem; /* left/right padding for top-level rows */
    --child-indent: 1.25rem; /* extra indent for children */
}

/* 2) Neutralize Bootstrap wrapper padding so it doesn't shift rows */
.nav-item.px-3[b-g5k5q9xu0h],
.nav-group.px-2[b-g5k5q9xu0h] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3) Apply the same left/right padding to ALL top-level rows */
.nav-item[b-g5k5q9xu0h]  .nav-item-link,
.nav-group-toggle[b-g5k5q9xu0h] {
    padding-left: var(--nav-gutter-x) !important;
    padding-right: var(--nav-gutter-x) !important;
    border-radius: 8px; /* matches your hover/active look */
}

/* 4) Indent children consistently relative to the gutter */
.nav-children[b-g5k5q9xu0h] {
    margin: .125rem 0 .5rem 0;
    padding-left: calc(var(--nav-gutter-x) + var(--child-indent));
    border-left: 1px solid #eee;
}
