/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── App shell ──────────────────────────────────────────────────── */
.app-layout[b-0a9ipm5khi] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top bar ────────────────────────────────────────────────────── */
.top-bar[b-0a9ipm5khi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    color: white;
    padding: 0 1rem;
    height: 3rem;
    z-index: 101;
    flex-shrink: 0;
}

.top-bar-brand[b-0a9ipm5khi] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.brand-link[b-0a9ipm5khi] {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo[b-0a9ipm5khi] {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    margin-left: 0.25rem;
    flex: 0 0 32px;
}

.top-bar-search[b-0a9ipm5khi] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}

.functionality-search[b-0a9ipm5khi] {
    width: 100%;
    max-width: 350px;
}

.top-bar-actions[b-0a9ipm5khi] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.account-split-button[b-0a9ipm5khi] {
    color: white;
}

/* Hide hamburger on desktop */
.mobile-menu-btn[b-0a9ipm5khi] {
    display: none;
}

/* ── App body: sidebar + main ───────────────────────────────────── */
.app-body[b-0a9ipm5khi] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Main content area ──────────────────────────────────────────── */
.app-main[b-0a9ipm5khi] {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

article[b-0a9ipm5khi] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* ── Error UI ───────────────────────────────────────────────────── */
#blazor-error-ui[b-0a9ipm5khi] {
    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-0a9ipm5khi] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ── Responsive: mobile ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .mobile-menu-btn[b-0a9ipm5khi] {
        display: inline-flex;
    }

    .top-bar-search[b-0a9ipm5khi] {
        display: none;
    }

    .top-bar-actions[b-0a9ipm5khi] {
        gap: 0.25rem;
    }

    .app-body[b-0a9ipm5khi] {
        overflow: visible;
    }
}

/* /Components/Layout/SideNav.razor.rz.scp.css */
/* ── Sidebar container ──────────────────────────────────────────── */
.side-nav[b-vw7wrbtuog] {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 3.5rem;
    min-width: 3.5rem;
    background: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    transition: width 0.25s ease, min-width 0.25s ease;
    overflow: hidden;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
}

.side-nav--expanded[b-vw7wrbtuog] {
    width: 16rem;
    min-width: 16rem;
}

/* ── Pin button header ──────────────────────────────────────────── */
.side-nav__header[b-vw7wrbtuog] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
}

[b-vw7wrbtuog] .pin-btn .rz-button {
    color: rgba(255, 255, 255, 0.45) !important;
    transition: color 0.2s, transform 0.2s;
    transform: rotate(45deg);
}

[b-vw7wrbtuog] .pin-btn--active .rz-button {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: rotate(0deg);
}

/* ── RadzenPanelMenu overrides ──────────────────────────────────── */
[b-vw7wrbtuog] .rz-panel-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    overflow-x: hidden;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item {
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap;
    overflow: hidden;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item .rzi {
    color: rgba(255, 255, 255, 0.85) !important;
    flex-shrink: 0;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-wrapper {
    border-radius: 0 !important;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-left-color 0.15s;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-wrapper:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-wrapper.rz-state-active {
    background: rgba(255, 255, 255, 0.18) !important;
    border-left-color: rgba(255, 255, 255, 0.85) !important;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-content-header {
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap;
    overflow: hidden;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-content-header:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-content-header .rzi {
    color: rgba(255, 255, 255, 0.85) !important;
    flex-shrink: 0;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-content {
    background: rgba(0, 0, 0, 0.15) !important;
}

[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-icon {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Arrow icon color */
[b-vw7wrbtuog] .rz-panel-menu .rz-navigation-item-expand-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Scrollable menu list */
[b-vw7wrbtuog] .rz-panel-menu-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* ── Backdrop (mobile) ──────────────────────────────────────────── */
.side-nav__backdrop[b-vw7wrbtuog] {
    display: none;
}

/* ── Responsive: mobile ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .side-nav[b-vw7wrbtuog] {
        position: fixed;
        top: 3rem;
        left: 0;
        bottom: 0;
        width: 16rem;
        min-width: 16rem;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
    }

    .side-nav--mobile-open[b-vw7wrbtuog] {
        transform: translateX(0);
    }

    .side-nav__backdrop[b-vw7wrbtuog] {
        display: block;
        position: fixed;
        inset: 0;
        top: 3rem;
        background: rgba(0, 0, 0, 0.45);
        z-index: 199;
    }
}
/* /Components/Layout/TopNav.razor.rz.scp.css */
/* ── Card ─────────────────────────────────────────────────────────── */
.top-nav[b-jouxv3c1r6] {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0.4rem 0.75rem;
    margin: 0.75rem 1.5rem 0;
    flex-shrink: 0;
    overflow-x: auto;
    gap: 0.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    scrollbar-width: none;
}

.top-nav[b-jouxv3c1r6]::-webkit-scrollbar {
    display: none;
}

/* ── Botão base ───────────────────────────────────────────────────── */
.top-nav .top-nav__link[b-jouxv3c1r6] {
    padding: 0.4rem 0.875rem !important;
    color: #6b7280 !important;
    white-space: nowrap;
    border-radius: 2rem !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.top-nav .top-nav__link:hover[b-jouxv3c1r6] {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* ── Selecionado ──────────────────────────────────────────────────── */
.top-nav .top-nav__link--active[b-jouxv3c1r6] {
    color: rgb(5, 39, 103) !important;
    background: #e0e7ff !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1.5px rgba(5, 39, 103, 0.2) !important;
}

.top-nav .top-nav__link--active:hover[b-jouxv3c1r6] {
    background: #d4dcf7 !important;
    color: rgb(5, 39, 103) !important;
}

/* ── Responsivo ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .top-nav[b-jouxv3c1r6] {
        margin: 0.5rem 0.75rem 0;
        padding: 0.375rem 0.5rem;
        border-radius: 0.5rem;
    }

    .top-nav .top-nav__link[b-jouxv3c1r6] {
        padding: 0.3rem 0.625rem !important;
        font-size: 0.8125rem !important;
    }
}

/* ── Contexto (seção ativa) ───────────────────────────────────────── */
.top-nav__context[b-jouxv3c1r6] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.25rem;
    color: rgb(5, 39, 103);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-nav__context-icon[b-jouxv3c1r6] {
    font-size: 1.35rem !important;
    line-height: 1;
}

.top-nav__divider[b-jouxv3c1r6] {
    width: 1px;
    height: 1.5rem;
    background: #d1d5db;
    margin: 0 0.25rem;
    flex-shrink: 0;
}
