/* /Layout/NavMenu.razor.rz.scp.css */
.nav-menu-shell[b-jzri7i7emk] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.nav-menu-shell > .mud-navmenu[b-jzri7i7emk] {
    flex: 1 1 auto;
}

/* ============================================================================
   Collapsed mini-rail nav styling (desktop only).

   The rules in this block reach markup rendered by MudBlazor 8.12.0
   (MudNavMenu / MudNavLink / MudDivider) via ::deep, anchored on the scoped
   .nav-menu-shell wrapper. THEY TARGET MUDBLAZOR INTERNALS AND MAY NEED REVIEW
   ON A MUDBLAZOR UPGRADE.

   Each selector is DOUBLE-GATED:
     1. html[data-nav-layout="mini"]                    — our own pre-boot attribute
     2. .mud-drawer.mud-drawer-mini.mud-drawer--closed  — MudBlazor's closed-mini
        drawer class (a SECOND internal dependency to review on upgrade), placed in
        the ancestor position (before .nav-menu-shell) so Blazor CSS isolation
        attaches no scope attribute to it.
   Requiring BOTH means the collapsed styling can never fire against a full-width
   (--open) drawer during the first-paint window, when the attribute may already
   read "mini" but MudBlazor has not yet added --closed. The expanded rail is
   untouched.
   ============================================================================ */

/* Stack icon over label, centred within the 88px rail. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .nav-menu-shell[b-jzri7i7emk]  .mud-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    padding: 8px 4px;
    overflow: hidden;
}

/* Re-show the label MudBlazor hides in a closed mini drawer, as a centred
   two-line clamp under the icon. The selector mirrors MudBlazor's own hide rule
   (.mud-icon-root:first-child + .mud-nav-link-text) and adds our attribute plus
   the scoped wrapper, so it out-specifies display:none without !important. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .nav-menu-shell[b-jzri7i7emk]  .mud-navmenu .mud-nav-link .mud-icon-root:first-child + .mud-nav-link-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    min-height: 22px;
    margin: 0;
    margin-inline-start: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Active item keeps MudBlazor's purple treatment; its label renders bold.
   One class (.active) more specific than the normal-label rule above. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .nav-menu-shell[b-jzri7i7emk]  .mud-navmenu .mud-nav-link.active .mud-icon-root:first-child + .mud-nav-link-text {
    font-weight: 700;
}

/* Hide dividers in the collapsed rail. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .nav-menu-shell[b-jzri7i7emk]  .mud-divider {
    display: none;
}
/* /Shared/Components/EvidenceList.razor.rz.scp.css */
/* One row per evidence file, identical on desktop and phone. The meta block takes the remaining width
   so the Download button stays on the same line even at 375px. */
.evidence-list-row[b-5nbnrkdp1d] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #EEEFF3;
}

.evidence-list-row:last-child[b-5nbnrkdp1d] {
    border-bottom: none;
}

.evidence-list-icon[b-5nbnrkdp1d] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.evidence-list-meta[b-5nbnrkdp1d] {
    flex: 1 1 auto;
    min-width: 0;
}

.evidence-list-name[b-5nbnrkdp1d] {
    font-size: 15px;
    font-weight: 500;
    color: #1F2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evidence-list-size[b-5nbnrkdp1d] {
    font-size: 13px;
    color: #6B7280;
}

.evidence-list-action[b-5nbnrkdp1d] {
    flex: 0 0 auto;
}
/* /Shared/Components/SidebarProfileMenu.razor.rz.scp.css */
.sidebar-profile-menu[b-7vmw5dzgch] {
    margin-top: auto;
    padding: 0.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.sidebar-profile-row[b-7vmw5dzgch] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.sidebar-profile-row:hover[b-7vmw5dzgch] {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-profile-text[b-7vmw5dzgch] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.sidebar-profile-text .mud-typography[b-7vmw5dzgch] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile-menu-trigger[b-7vmw5dzgch] {
    width: 100%;
}

/* ============================================================================
   Collapsed mini-rail profile styling (desktop only).

   .sidebar-profile-row / .sidebar-profile-text are this component's own scoped
   markup, targeted directly. The unfold chevron is a MudBlazor 8.12.0 MudIcon
   rendered as .mud-icon-root — the ::deep rule below TARGETS A MUDBLAZOR
   INTERNAL AND MAY NEED REVIEW ON A MUDBLAZOR UPGRADE.

   Each selector is DOUBLE-GATED:
     1. html[data-nav-layout="mini"]                    — our own pre-boot attribute
     2. .mud-drawer.mud-drawer-mini.mud-drawer--closed  — MudBlazor's closed-mini
        drawer class (a SECOND internal dependency to review on upgrade), placed in
        the ancestor position (before the scoped .sidebar-* classes) so Blazor CSS
        isolation attaches no scope attribute to it.
   Requiring BOTH means the collapsed styling can never fire against a full-width
   (--open) drawer during the first-paint window, when the attribute may already
   read "mini" but MudBlazor has not yet added --closed. Expanded is untouched.
   ============================================================================ */

/* Centre the avatar and drop the inter-item gap. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .sidebar-profile-row[b-7vmw5dzgch] {
    justify-content: center;
    gap: 0;
}

/* Hide the display name and role in the collapsed rail. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .sidebar-profile-text[b-7vmw5dzgch] {
    display: none;
}

/* Hide the UnfoldMore chevron; the row stays clickable and still opens the menu. */
html[data-nav-layout="mini"] .mud-drawer.mud-drawer-mini.mud-drawer--closed .sidebar-profile-row[b-7vmw5dzgch]  .mud-icon-root {
    display: none;
}
