@import '_content/GatewaySys_UI/GatewaySys_UI.m5em5znzdz.bundle.scp.css';
@import '_content/Sysinfocus.AspNetCore.Components/Sysinfocus.AspNetCore.Components.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── Sidebar ─────────────────────────────────────────────────── */
.rz-sidebar[b-6u97zulm84] {
    border-right: 1px solid var(--rz-border-disabled-color) !important;
}

/* Sidebar content wrapper for flex layout */
.rz-sidebar .rz-sidebar-content[b-6u97zulm84] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Menu takes remaining space */
.rz-sidebar .rz-sidebar-content > .rz-panelmenu-wrapper[b-6u97zulm84] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Section header ("Main Menu") */
.sidebar-section-header[b-6u97zulm84] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 8px;
    border-bottom: 1px solid color-mix(in srgb, transparent 80%, var(--rz-sidebar-color, white));
    margin-bottom: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rz-sidebar-color);
    opacity: 0.55;
}

/* User footer at bottom of sidebar */
.sidebar-user-footer[b-6u97zulm84] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 8px 8px 8px;
    margin-top: auto;
    border-radius: 8px;
    background: color-mix(in srgb, transparent 88%, var(--rz-sidebar-color, white));
    border: 1px solid color-mix(in srgb, transparent 80%, var(--rz-sidebar-color, white));
    color: var(--rz-sidebar-color);
}

.sidebar-user-avatar[b-6u97zulm84] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rz-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info[b-6u97zulm84] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name[b-6u97zulm84] {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rz-sidebar-color);
}

.sidebar-user-role[b-6u97zulm84] {
    font-size: 0.7rem;
    opacity: 0.55;
}

/* Menu group headers */
.rz-panelmenu .rz-panelmenu-header-link[b-6u97zulm84] {
    font-weight: 600;
    font-size: 0.83rem;
    letter-spacing: 0.2px;
    padding: 10px 14px;
    min-height: 40px;
    display: flex !important;
    align-items: center !important;
    transition: background 0.15s, color 0.15s;
    border-radius: 6px;
    margin: 2px 6px;
}

.rz-panelmenu .rz-panelmenu-header-link:hover[b-6u97zulm84] {
    background-color: color-mix(in srgb, transparent 90%, var(--rz-sidebar-color, white));
}

/* Menu leaf items */
.rz-panelmenu .rz-panelmenu-content .rz-menuitem-link[b-6u97zulm84] {
    font-size: 0.83rem;
    padding: 8px 14px 8px 32px;
    border-radius: 6px;
    margin: 2px 6px;
    min-height: 36px;
    transition: background 0.15s, color 0.15s;
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

.rz-panelmenu .rz-panelmenu-content .rz-menuitem-link:hover[b-6u97zulm84] {
    background-color: color-mix(in srgb, transparent 90%, var(--rz-sidebar-color, white));
}

/* Font Awesome icons in submenu items */
.rz-panelmenu .rz-panelmenu-content .rz-navigation-item-icon-i[b-6u97zulm84] {
    width: 20px;
    min-width: 20px;
    font-size: 0.9rem;
    opacity: 0.85;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Active item indicator */
.rz-panelmenu .rz-menuitem-link.rz-state-active[b-6u97zulm84],
.rz-panelmenu .rz-menuitem-link.rz-menuitem-link-active[b-6u97zulm84] {
    background-color: var(--rz-primary-lighter) !important;
    color: var(--rz-primary-dark) !important;
    font-weight: 600;
}

.rz-panelmenu .rz-menuitem-link.rz-state-active[b-6u97zulm84]::before,
.rz-panelmenu .rz-menuitem-link.rz-menuitem-link-active[b-6u97zulm84]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--rz-primary);
    border-radius: 0 3px 3px 0;
}

/* Icon alignment */
.rz-panelmenu .rz-navigation-item-icon-i[b-6u97zulm84] {
    width: 20px;
    min-width: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    opacity: 0.85;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

/* Ensure icon+text row is a proper flex row */
.rz-panelmenu .rz-menuitem-link[b-6u97zulm84] {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

/* Material icon rendered by Radzen natively */
.rz-panelmenu .rz-navigation-item-icon[b-6u97zulm84] {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.rz-panelmenu .rz-navigation-item-text[b-6u97zulm84] {
    display: inline-flex;
    align-items: center;
}

/* ── Header ──────────────────────────────────────────────────── */
.rz-header[b-6u97zulm84] {
    height: 64px !important;
    min-height: 64px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex !important;
    align-items: center !important;
}

/* Force inner content to fully fill and center */
.rz-header > *[b-6u97zulm84] {
    height: 100%;
    display: flex;
    align-items: center;
}

.rz-header .rz-button.header-action-btn[b-6u97zulm84],
.rz-header .rz-button.header-action-btn .rz-button-text[b-6u97zulm84],
.rz-header .rz-button.header-action-btn .rzi[b-6u97zulm84],
.rz-header .rz-button.pwa-install-btn[b-6u97zulm84],
.rz-header .rz-button.pwa-install-btn .rz-button-text[b-6u97zulm84],
.rz-header .rz-button.pwa-install-btn .rzi[b-6u97zulm84] {
    color: var(--rz-header-color, var(--rz-text-color));
}

.rz-header .rz-button.header-action-btn:hover[b-6u97zulm84],
.rz-header .rz-button.pwa-install-btn:hover[b-6u97zulm84] {
    background: color-mix(in srgb, transparent 90%, var(--rz-header-color, white));
}

.rz-header .rz-button.header-dashboard-btn[b-6u97zulm84],
.rz-header .rz-button.header-dashboard-btn .rzi[b-6u97zulm84] {
    color: var(--rz-header-color, var(--rz-text-color));
}

.rz-header .rz-button.header-dashboard-btn:hover[b-6u97zulm84] {
    background: color-mix(in srgb, transparent 90%, var(--rz-header-color, white));
}

/* ── Page body padding ───────────────────────────────────────── */
.app-body[b-6u97zulm84] {
    padding: 1.25rem;
    min-width: 0;
}

@media (max-width: 767px) {
    .rz-header[b-6u97zulm84] {
        height: 56px !important;
        min-height: 56px !important;
    }

    .app-body[b-6u97zulm84] {
        padding: 0.75rem;
    }

    /* Native wrapper so scoped CSS can hide RadzenText without ::deep. */
    .header-user-name[b-6u97zulm84],
    .app-header-theme[b-6u97zulm84] {
        display: none !important;
    }

    .app-header-brand[b-6u97zulm84] {
        font-size: 0.95rem;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

#blazor-error-ui[b-6u97zulm84] {
    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-6u97zulm84] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-1pvs5r02ym] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-1pvs5r02ym] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-1pvs5r02ym] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-1pvs5r02ym] {
    font-size: 1.1rem;
}

.bi[b-1pvs5r02ym] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-1pvs5r02ym] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-1pvs5r02ym] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-1pvs5r02ym] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-1pvs5r02ym] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-1pvs5r02ym] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-1pvs5r02ym] {
        padding-bottom: 1rem;
    }

    .nav-item[b-1pvs5r02ym]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-1pvs5r02ym]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-1pvs5r02ym]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-1pvs5r02ym] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-1pvs5r02ym] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-1pvs5r02ym] {
        display: none;
    }

    .nav-scrollable[b-1pvs5r02ym] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
