/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-qax5p0o24h] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

main[b-qax5p0o24h] {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Ensure AppBar is always visible above content - Larger size */
/* Base styles for mobile - will be overridden by media queries for tablet/desktop */
/* Apply to ALL pages consistently */
[b-qax5p0o24h] .mud-appbar,
[b-qax5p0o24h] .mud-appbar.custom-header-bar,
body[b-qax5p0o24h]  .mud-appbar,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar {
    z-index: 1100 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: white !important;
    border-bottom: 1px solid #e0e0e0 !important;
    min-height: 72px !important;
    height: 72px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: none !important;
    overflow: visible !important;
    width: 100% !important;
}

/* Override MudAppBar toolbar wrapper - force space-between layout */
/* Apply to ALL pages consistently */
[b-qax5p0o24h] .mud-appbar.custom-header-bar,
[b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar,
[b-qax5p0o24h] .mud-appbar.custom-header-bar > div,
[b-qax5p0o24h] .custom-header-bar > .mud-appbar-toolbar,
[b-qax5p0o24h] .custom-header-bar > div,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar > .mud-appbar-toolbar,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Ensure left side stays left - apply to ALL pages */
[b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:first-child,
[b-qax5p0o24h] .custom-header-bar > div > div:first-child,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar > div > div:first-child,
body[b-qax5p0o24h]  .custom-header-bar > div > div:first-child {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
}

/* Ensure right side stays right - apply to ALL pages */
[b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child,
[b-qax5p0o24h] .custom-header-bar > div > div:last-child,
body[b-qax5p0o24h]  .mud-appbar.custom-header-bar > div > div:last-child,
body[b-qax5p0o24h]  .custom-header-bar > div > div:last-child {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Ensure notification and user elements are not clipped - base styles */
[b-qax5p0o24h] .mud-appbar .mud-icon-button,
[b-qax5p0o24h] .mud-appbar .mud-badge,
[b-qax5p0o24h] .mud-appbar .mud-menu,
[b-qax5p0o24h] .mud-appbar .mud-text {
    overflow: visible !important;
    white-space: nowrap !important;
    visibility: visible !important;
}

/* Base styles for header-right - visible by default */
[b-qax5p0o24h] .mud-appbar .header-right,
[b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Ensure username and dropdown are visible */
[b-qax5p0o24h] .mud-appbar > div > div:last-child > div:last-child,
[b-qax5p0o24h] .mud-appbar .user-profile-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

[b-qax5p0o24h] .mud-appbar .username-text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #212529 !important;
    font-size: 1rem !important;
}

/* Remove MudSpacer default behavior */
[b-qax5p0o24h] .mud-appbar .mud-spacer {
    display: none !important;
}

/* Override MudAppBar internal flex container */
[b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Ensure MudAppBar toolbar children are visible */
[b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar > div {
    overflow: visible !important;
}

/* Ensure header-right is visible in all MudAppBar structures */
[b-qax5p0o24h] .mud-appbar .header-right,
[b-qax5p0o24h] .mud-appbar > div .header-right,
[b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar .header-right,
[b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right,
[b-qax5p0o24h] .mud-appbar.custom-header-bar > div .header-right,
[b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar .header-right {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Larger navigation bar content */
[b-qax5p0o24h] .mud-appbar .mud-icon-button {
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 12px !important;
}

[b-qax5p0o24h] .mud-appbar .mud-text {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #212529 !important;
    text-align: left !important;
}

/* Ensure page title is left-aligned */
[b-qax5p0o24h] .mud-appbar .page-title-text,
[b-qax5p0o24h] .mud-appbar .header-left .mud-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .page-title-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-left .mud-text {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    /* Ensure header-left is left-aligned on desktop */
    [b-qax5p0o24h] .mud-appbar .header-left,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-left {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Ensure page title text is left-aligned */
    [b-qax5p0o24h] .mud-appbar .page-title-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .page-title-text {
        text-align: left !important;
    }

[b-qax5p0o24h] .mud-appbar .mud-spacer {
    display: none !important;
}

.sidebar[b-qax5p0o24h] {
    background-color: white;
    box-shadow: none;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    font-family: "League Spartan", sans-serif !important;
}

.top-row[b-qax5p0o24h] {
    background-color: white;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-qax5p0o24h]  a, .top-row[b-qax5p0o24h]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-qax5p0o24h]  a:hover, .top-row[b-qax5p0o24h]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-qax5p0o24h]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.content[b-qax5p0o24h] {
    padding-top: 1.1rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 72px);
}

/* Mobile Styles (up to 640px) */
@media (max-width: 640.98px) {
    .page[b-qax5p0o24h] {
        flex-direction: column;
    }

    .sidebar[b-qax5p0o24h] {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show[b-qax5p0o24h] {
        transform: translateX(0);
    }

    /* Ensure sidebar content is always visible when sidebar is shown */
    .sidebar.show .collapse[b-qax5p0o24h],
    .sidebar.show .nav-scrollable[b-qax5p0o24h],
    .sidebar.show .top-row[b-qax5p0o24h],
    .sidebar.show .sidebar-footer[b-qax5p0o24h] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar.show .nav-scrollable[b-qax5p0o24h] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Backdrop overlay */
    .sidebar-backdrop[b-qax5p0o24h] {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .sidebar-backdrop.show[b-qax5p0o24h] {
        display: block;
        opacity: 1;
    }

    main[b-qax5p0o24h] {
        width: 100%;
        margin-left: 0;
    }

    .content[b-qax5p0o24h] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 5.5rem !important;
        padding-bottom: 2rem !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-wrap: break-word !important;
    }

    .top-row:not(.auth)[b-qax5p0o24h] {
        display: none;
    }

    .top-row.auth[b-qax5p0o24h] {
        justify-content: space-between;
        padding: 0 0.5rem;
    }

    .top-row[b-qax5p0o24h]  a, .top-row[b-qax5p0o24h]  .btn-link {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* AppBar adjustments for mobile */
    [b-qax5p0o24h] .mud-appbar {
        padding: 0 0.5rem !important;
        min-height: 64px !important;
        height: 64px !important;
        overflow: visible !important;
        width: 100% !important;
    }

    /* Left side - burger and page title on mobile */
    [b-qax5p0o24h] .mud-appbar > div > div:first-child {
        flex: 1 !important;
        min-width: 0 !important;
        margin-right: 0.5rem !important;
        overflow: hidden !important;
    }

    [b-qax5p0o24h] .mud-appbar .mud-icon-button {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Increase hamburger menu icon size on mobile */
    [b-qax5p0o24h] .hamburger-menu-wrapper .hamburger-menu-icon,
    [b-qax5p0o24h] .hamburger-menu-wrapper .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar .hamburger-menu-wrapper .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar .hamburger-menu-icon {
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
        padding: 10px !important;
        font-size: 1.5rem !important;
    }

    [b-qax5p0o24h] .mud-appbar .mud-text {
        font-size: 1rem !important;
        font-weight: 500 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: calc(100vw - 200px) !important;
        flex-shrink: 1 !important;
    }

    /* Right side - notifications and user on mobile */
    [b-qax5p0o24h] .mud-appbar .header-right {
        flex-shrink: 0 !important;
        margin-right: 0.5rem !important;
        transform: none !important;
        padding-right: 0 !important;
        gap: 0.25rem !important;
    }

    [b-qax5p0o24h] .mud-appbar .mud-badge {
        margin-right: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar .user-profile-container {
        margin-left: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar .username-text {
        display: none !important; /* Hide username on mobile to save space */
    }

    /* Ensure page title doesn't overlap */
    [b-qax5p0o24h] .mud-appbar .header-left {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important; /* Reserve space for right side icons */
    }

    [b-qax5p0o24h] .mud-appbar .page-title-text {
        font-size: 1rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* Tablet Styles (641px to 991px) */
@media (min-width: 641px) and (max-width: 991.98px) {
    .page[b-qax5p0o24h] {
        flex-direction: row;
    }

    .sidebar[b-qax5p0o24h] {
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(0) !important; /* Always visible on tablet */
    }

    /* Ensure sidebar content is always visible on tablet */
    .sidebar .collapse[b-qax5p0o24h],
    .sidebar .nav-scrollable[b-qax5p0o24h],
    .sidebar .top-row[b-qax5p0o24h],
    .sidebar .sidebar-footer[b-qax5p0o24h] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar .nav-scrollable[b-qax5p0o24h] {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar-backdrop[b-qax5p0o24h] {
        display: none !important; /* No backdrop on tablet */
    }

    main[b-qax5p0o24h] {
        flex: 1;
        width: calc(100% - 300px);
        margin-left: 300px;
    }

    /* Header aligns with sidebar on tablet - apply to ALL pages consistently */
    [b-qax5p0o24h] .mud-appbar,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar,
    body[b-qax5p0o24h]  .mud-appbar,
    body[b-qax5p0o24h]  .mud-appbar.custom-header-bar {
        left: 300px !important;
        right: 0 !important;
        width: calc(100% - 300px) !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    .content[b-qax5p0o24h] {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 5.5rem;
    }

    .top-row[b-qax5p0o24h] {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Desktop Styles (992px and above) */
@media (min-width: 992px) {
    .page[b-qax5p0o24h] {
        flex-direction: row;
    }

    .sidebar[b-qax5p0o24h] {
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(0) !important; /* Always visible on desktop */
    }

    .sidebar-backdrop[b-qax5p0o24h] {
        display: none !important; /* No backdrop on desktop */
    }

    main[b-qax5p0o24h] {
        flex: 1;
        width: calc(100% - 300px);
        margin-left: 300px;
    }

    /* Header aligns with sidebar on desktop - apply to ALL pages consistently */
    [b-qax5p0o24h] .mud-appbar,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar,
    body[b-qax5p0o24h]  .mud-appbar,
    body[b-qax5p0o24h]  .mud-appbar.custom-header-bar {
        left: 300px !important;
        right: 0 !important;
        width: calc(100vw - 300px) !important;
        max-width: calc(100vw - 300px) !important;
        padding-right: 1rem !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* CRITICAL: Force header-right to be visible - target ALL possible structures */
    [b-qax5p0o24h] .mud-appbar .header-right,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right,
    [b-qax5p0o24h] .mud-appbar > div .header-right,
    [b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar .header-right,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div .header-right,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar .header-right,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child,
    [b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar > div:last-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar > div:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        position: relative !important;
        z-index: 1000 !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
        padding-right: 0 !important;
    }

    /* Force ALL children of header-right to be visible */
    [b-qax5p0o24h] .mud-appbar .header-right *,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right *,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child *,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child * {
        display: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Notification icon - force visibility */
    [b-qax5p0o24h] .mud-appbar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-icon-button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* MudBadge - force visibility */
    [b-qax5p0o24h] .mud-appbar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-badge,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-badge {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* User profile container - force visibility */
    [b-qax5p0o24h] .mud-appbar .header-right .user-profile-container,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .user-profile-container,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .user-profile-container,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .user-profile-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Username text - force visibility */
    [b-qax5p0o24h] .mud-appbar .header-right .username-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .username-text,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .username-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .username-text,
    [b-qax5p0o24h] .mud-appbar .username-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .username-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* MudMenu - force visibility */
    [b-qax5p0o24h] .mud-appbar .header-right .mud-menu,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-menu,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-menu,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-menu {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Reorder header elements on desktop: notifications/username first (left), then burger/title (center) */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar,
    [b-qax5p0o24h] .mud-appbar {
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* Ensure username and dropdown are visible on desktop - POSITIONED ON FAR RIGHT */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right,
    [b-qax5p0o24h] .mud-appbar .header-right,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar > div:last-child,
    [b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar > div:last-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > .mud-appbar-toolbar > div:last-child,
    [b-qax5p0o24h] .mud-appbar > div > .mud-appbar-toolbar > div:last-child,
    body[b-qax5p0o24h]  .mud-appbar .header-right,
    body[b-qax5p0o24h]  .mud-appbar > div > div:last-child,
    body[b-qax5p0o24h]  .mud-appbar > div > .mud-appbar-toolbar > div:last-child {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 3 !important;
        position: relative !important;
        z-index: 1000 !important;
        overflow: visible !important;
        padding-right: 1rem !important;
        min-width: 200px !important;
    }
    
    /* Center the burger icon and page title on desktop */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-left,
    [b-qax5p0o24h] .mud-appbar .header-left,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:first-child,
    [b-qax5p0o24h] .mud-appbar > div > div:first-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar > div:first-child,
    [b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar > div:first-child {
        order: 2 !important;
        flex: 1 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ensure ALL children of header-right are visible on desktop */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right > *,
    [b-qax5p0o24h] .mud-appbar .header-right > *,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child > *,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child > * {
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Ensure MudBadge and MudIconButton maintain their display types */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-badge,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-badge {
        display: inline-flex !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-icon-button {
        display: inline-flex !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-badge,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-badge,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-badge,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-icon-button,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-icon-button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-right: 0.5rem !important;
        flex-shrink: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .user-profile-container,
    [b-qax5p0o24h] .mud-appbar .header-right .user-profile-container,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child > div:last-child,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child > div:last-child {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 0.5rem !important;
        width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .username-text,
    [b-qax5p0o24h] .mud-appbar .header-right .username-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child > div:last-child > span,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child > div:last-child > span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #212529 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: 1rem !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-menu,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-menu,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child > div:last-child > .mud-menu,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child > div:last-child > .mud-menu {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-menu > button,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-menu > button,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child > div:last-child > .mud-menu > button,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child > div:last-child > .mud-menu > button {
        visibility: visible !important;
        opacity: 1 !important;
        display: inline-flex !important;
    }

    /* Additional rules to ensure notification icon is visible on desktop */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-icon-button[href="/general/announcements"],
    [b-qax5p0o24h] .mud-appbar .header-right .mud-icon-button[href="/general/announcements"],
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-icon-button[href="/general/announcements"],
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-icon-button[href="/general/announcements"] {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Ensure MudBadge wrapper is visible */
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right .mud-badge-wrapper,
    [b-qax5p0o24h] .mud-appbar .header-right .mud-badge-wrapper,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child .mud-badge-wrapper,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child .mud-badge-wrapper {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Force header-right and all its children to be visible on desktop */
    [b-qax5p0o24h] .mud-appbar .header-right,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    [b-qax5p0o24h] .mud-appbar .header-right *,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-right *,
    [b-qax5p0o24h] .mud-appbar > div > div:last-child *,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:last-child * {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure page title is left-aligned on desktop and maintains original position */
    [b-qax5p0o24h] .mud-appbar .header-left,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .header-left {
        justify-content: flex-start !important;
        text-align: left !important;
        /* Maintain original padding/margin to keep title in same position */
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    [b-qax5p0o24h] .mud-appbar .page-title-text,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .page-title-text {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        /* The title should naturally flow to where the hamburger was, maintaining visual position */
    }

    /* Hide hamburger menu wrapper on desktop - make invisible but maintain spacing */
    [b-qax5p0o24h] .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .hamburger-menu-wrapper,
    [b-qax5p0o24h] .header-left .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar > div > div:first-child .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > div > div:first-child .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar > .mud-appbar-toolbar > div:first-child .hamburger-menu-wrapper,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar > .mud-appbar-toolbar > div:first-child .hamburger-menu-wrapper {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        /* Keep width and margin to maintain spacing for page title position */
        width: auto !important;
        min-width: 72px !important; /* Approximate width of icon + padding + margin */
    }
    
    /* Hide the icon inside the wrapper */
    [b-qax5p0o24h] .hamburger-menu-wrapper .hamburger-menu-icon,
    [b-qax5p0o24h] .hamburger-menu-wrapper .mud-icon-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Also hide the icon itself as backup */
    [b-qax5p0o24h] .hamburger-menu-icon,
    [b-qax5p0o24h] .mud-appbar .hamburger-menu-icon,
    [b-qax5p0o24h] .mud-appbar.custom-header-bar .hamburger-menu-icon,
    [b-qax5p0o24h] .header-left .hamburger-menu-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .top-row[b-qax5p0o24h] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-qax5p0o24h]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-qax5p0o24h], article[b-qax5p0o24h] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .content[b-qax5p0o24h] {
        padding-top: 5.5rem;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-kgnv7xml2e] {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    touch-action: manipulation;
}

.navbar-toggler:hover[b-kgnv7xml2e] {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:active[b-kgnv7xml2e] {
    background-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon[b-kgnv7xml2e] {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

.navbar-toggler-icon[b-kgnv7xml2e]::before,
.navbar-toggler-icon[b-kgnv7xml2e]::after,
.navbar-toggler-icon[b-kgnv7xml2e] {
    background-color: #333;
    content: '';
    display: block;
    height: 3px;
    width: 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon[b-kgnv7xml2e]::before {
    position: absolute;
    top: -8px;
}

.navbar-toggler-icon[b-kgnv7xml2e]::after {
    position: absolute;
    bottom: -8px;
}

.top-row[b-kgnv7xml2e] {
    height: 72px;
    min-height: 72px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: "League Spartan", sans-serif !important;
}

.top-row .container-fluid[b-kgnv7xml2e] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.top-row img[b-kgnv7xml2e] {
    flex-shrink: 0;
}

.top-row h5[b-kgnv7xml2e] {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    line-height: 1.2;
}

.navbar-brand[b-kgnv7xml2e] {
    font-size: 1.1rem;
}

.oi[b-kgnv7xml2e] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-kgnv7xml2e] {
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-kgnv7xml2e] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-kgnv7xml2e] {
        padding-bottom: 1rem;
    }

    .nav-item[b-kgnv7xml2e]  a {
        color: white;
        border-radius: 4px;
        height: 3rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding: 0.5rem 1rem;
        transition: all 0.2s ease;
    }

        .nav-item[b-kgnv7xml2e]  a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item[b-kgnv7xml2e]  a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.nav-scrollable[b-kgnv7xml2e] {
    padding: 0.25rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    font-family: "League Spartan", sans-serif !important;
}

/* Active page highlighting in sidebar */
[b-kgnv7xml2e] .mud-nav-menu {
    padding: 0.25rem !important;
    font-family: "League Spartan", sans-serif !important;
}

[b-kgnv7xml2e] .mud-nav-link {
    color: #4a4a4a !important;
    transition: all 0.2s ease;
    font-size: 1.1rem !important;
    font-family: "League Spartan", sans-serif !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.25rem !important;
}

/* Increase icon size in navigation */
[b-kgnv7xml2e] .mud-nav-link .mud-icon {
    font-size: 1.5rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
}

[b-kgnv7xml2e] .mud-nav-link .mud-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.5rem !important;
}

/* Default icon color - grey for all non-active items */
[b-kgnv7xml2e] .mud-nav-link .mud-icon {
    color: #4a4a4a !important;
}

/* Target SVG elements specifically - grey by default */
[b-kgnv7xml2e] .mud-nav-link .mud-icon svg {
    color: #4a4a4a !important;
}

/* Only change fill for paths that have a fill attribute (not stroke-only paths) - grey by default */
[b-kgnv7xml2e] .mud-nav-link .mud-icon svg path[fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: #4a4a4a !important;
}

/* For stroke-based icons, change stroke color - grey by default */
[b-kgnv7xml2e] .mud-nav-link .mud-icon svg path[stroke]:not([stroke="none"]) {
    stroke: #4a4a4a !important;
}

[b-kgnv7xml2e] .mud-nav-link:hover {
    background-color: rgba(59, 163, 72, 0.1) !important;
    color: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link:hover .mud-icon {
    color: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link:hover .mud-icon svg path[fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link:hover .mud-icon svg path[stroke]:not([stroke="none"]) {
    stroke: #3ba348 !important;
}

/* Active/selected menu item - same as hover state */
[b-kgnv7xml2e] .mud-nav-link.mud-nav-link-active {
    background-color: rgba(59, 163, 72, 0.1) !important;
    color: #3ba348 !important;
    font-weight: 600 !important;
}

/* Active menu item icon - green for selected item only */
[b-kgnv7xml2e] .mud-nav-link.mud-nav-link-active .mud-icon {
    color: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link.mud-nav-link-active .mud-icon svg {
    color: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link.mud-nav-link-active .mud-icon svg path[fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: #3ba348 !important;
}

[b-kgnv7xml2e] .mud-nav-link.mud-nav-link-active .mud-icon svg path[stroke]:not([stroke="none"]) {
    stroke: #3ba348 !important;
}

.sidebar-footer[b-kgnv7xml2e] {
    position: sticky;
    bottom: 0;
    background-color: #3ba348;
    padding: 0.5rem 1rem;
    border-top: none;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-footer-content ul[b-kgnv7xml2e] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.sidebar-footer-content ul li[b-kgnv7xml2e] {
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-footer-content ul li a[b-kgnv7xml2e] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background-color: white;
    color: #212529;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-footer-content ul li a:hover[b-kgnv7xml2e] {
    background-color: #f8f9fa;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-footer-content ul li a:active[b-kgnv7xml2e] {
    transform: scale(1.05) translateY(0);
}

.sidebar-footer-content ul li a i[b-kgnv7xml2e] {
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Styles */
@media (max-width: 640.98px) {
    .top-row[b-kgnv7xml2e] {
        height: 3.5rem;
        padding: 0 0.75rem;
    }

    .top-row h5[b-kgnv7xml2e] {
        font-size: 0.9rem;
    }

    .top-row img[b-kgnv7xml2e] {
        width: 40px;
        height: 40px;
    }

    .navbar-toggler[b-kgnv7xml2e] {
        display: block;
        margin-left: auto;
    }

    /* On mobile, don't hide nav content - sidebar visibility is controlled by .sidebar.show */
    .sidebar .collapse[b-kgnv7xml2e] {
        display: block !important;
    }

    .nav-scrollable[b-kgnv7xml2e] {
        height: calc(100vh - 3.5rem - 80px);
        overflow-y: auto;
        padding: 0.5rem;
    }

    .nav-item[b-kgnv7xml2e] {
        font-size: 1.1rem;
        padding-bottom: 0.25rem;
    }

    .nav-item[b-kgnv7xml2e]  a {
        height: auto;
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }
    
    /* Increase icon size on mobile */
    [b-kgnv7xml2e] .mud-nav-link .mud-icon {
        font-size: 1.4rem !important;
        width: 1.4rem !important;
        height: 1.4rem !important;
        min-width: 1.4rem !important;
        min-height: 1.4rem !important;
    }
    
    [b-kgnv7xml2e] .mud-nav-link .mud-icon svg {
        width: 1.4rem !important;
        height: 1.4rem !important;
        font-size: 1.4rem !important;
    }

    .sidebar-footer[b-kgnv7xml2e] {
        padding: 0.5rem 0.75rem;
    }

    .sidebar-footer-content ul[b-kgnv7xml2e] {
        gap: 1.25rem;
    }

    .sidebar-footer-content ul li a[b-kgnv7xml2e] {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 1.5rem;
    }
}

/* Tablet Styles */
@media (min-width: 641px) and (max-width: 991.98px) {
    .navbar-toggler[b-kgnv7xml2e] {
        display: none;
    }

    /* On tablet, always show nav content */
    .sidebar .collapse[b-kgnv7xml2e] {
        display: block !important;
    }

    .nav-scrollable[b-kgnv7xml2e] {
        height: calc(100vh - 3.5rem - 80px);
        overflow-y: auto;
    }

    .nav-item[b-kgnv7xml2e]  a {
        min-height: 44px;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .navbar-toggler[b-kgnv7xml2e] {
        display: none;
    }

    .collapse[b-kgnv7xml2e] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-kgnv7xml2e] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem - 80px);
        overflow-y: auto;
    }

    .nav-item[b-kgnv7xml2e]  a {
        min-height: 44px;
    }

    /* Hide "EnduraOne Portal" text on desktop */
    .top-row h5[b-kgnv7xml2e] {
        display: none !important;
    }

    /* Center and increase logo size on desktop */
    .top-row .container-fluid[b-kgnv7xml2e] {
        justify-content: center !important;
    }

    .top-row img[b-kgnv7xml2e] {
        width: 60px !important;
        height: 60px !important;
    }
}
