﻿/* ===== Shell ===== */
.rh-shell {
    min-height: 100vh;
}

/* ===== Appbar (always above drawer/scrim) ===== */
.rh-appbar {
    height: var(--rh-appbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #005eb8;
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.10);
}

/* Icon button */
.rh-iconbtn {
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    color: #fff;
}

/* Logo */
.rh-logoLink {
    display: flex;
    align-items: center;
}

.rh-titleLink {
    color: inherit;
    text-decoration: none;
}

.rh-logo {
    height: 22px;
}

.rh-title {
    font-weight: 600;
}

.rh-spacer {
    flex: 1;
}

/* ===== Scrim (below appbar, above content) ===== */
.rh-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out;
    z-index: 2000;
}

.rh-scrim--open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Drawer panel ===== */
.rh-panel {
    position: fixed;
    top: var(--rh-appbar-h);
    left: 0;
    width: var(--rh-drawer-w);
    height: calc(100dvh - var(--rh-appbar-h));
    background: #f3f4f6;
    box-shadow: 0 12px 40px rgba(0,0,0,.20);
    transform: translate3d(-100%, 0, 0);
    transition: transform 180ms cubic-bezier(.16,1,.3,1);
    z-index: 2500;
    padding: 14px;
    /* Prevent click-through when closed */
    pointer-events: none;
}

.rh-panel--open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    /* only while open */
    will-change: transform;
}

/* Panel header */
.rh-panelTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rh-panelTitle {
    font-weight: 700;
}

/* Nav links */
.rh-nav {
    display: grid;
    gap: 8px;
}

.rh-navLink {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

    .rh-navLink.active {
        background: rgba(0,0,0,.08);
        font-weight: 700;
    }

/* Content */
.rh-content {
}

.rh-container {
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rh-panel, .rh-scrim {
        transition: none;
    }
}


.rh-navGroupTitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 18px 0 6px 0;
    padding-left: 6px;
}

.rh-navChild {
    padding-left: 18px;
}
