/* /Layout/MainLayout.razor.rz.scp.css */
.topbar[b-xh3hh6yady] {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem 1.25rem;
    /* One line of fixed landmarks (2026-10-16): the logo, the client, Help and the person's name stay put, the name always top right
       (where to sign out and switch role). The pages are in the menu down the left (2026-10-28). */
    flex-wrap: nowrap;
    padding: 0.6rem 1.5rem;
    background: var(--rcm-ink);
    color: #fff;
    /* The active client's color along the bottom (was a separate stripe that a two-line bar would cover). */
    border-bottom: 4px solid var(--client-color);
}

.topbar > .brand[b-xh3hh6yady],
.topbar[b-xh3hh6yady]  .client-badge,
.topbar[b-xh3hh6yady]  .help-button,
.topbar[b-xh3hh6yady]  .user-menu {
    flex-shrink: 0;
}

.brand[b-xh3hh6yady] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark[b-xh3hh6yady] {
    width: 1.9rem;
    height: 1.9rem;
}

.brand-sub[b-xh3hh6yady] {
    font-weight: 400;
    opacity: 0.7;
}

/* The logo is the status (backlog I53): a dot on the icon, and the name in the same colour. */
.brand-icon[b-xh3hh6yady] {
    position: relative;
    display: inline-flex;
}

.brand-dot[b-xh3hh6yady] {
    position: absolute;
    top: -0.25rem;
    right: -0.3rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid #14213d;
}

.brand-critical .brand-dot[b-xh3hh6yady] { background: #e24b4a; }
.brand-critical > span:last-child[b-xh3hh6yady] { color: #f5a3a3; }
.brand-warning .brand-dot[b-xh3hh6yady] { background: #ef9f27; }
.brand-warning > span:last-child[b-xh3hh6yady] { color: #fac775; }
.brand-new .brand-dot[b-xh3hh6yady] { background: #378add; }

.brand:hover > span:last-child[b-xh3hh6yady],
.brand:focus-visible > span:last-child[b-xh3hh6yady] {
    text-decoration: underline;
}

/* Keep top-bar items on one line (Sign out, the user name). */
.topbar[b-xh3hh6yady]  a,
.topbar[b-xh3hh6yady]  .btn,
.topbar[b-xh3hh6yady]  span {
    white-space: nowrap;
}

/* This environment holds synthetic data only: a tag fixed in the bottom-left corner, below the help panel and dialogs. */
.synthetic-tag[b-xh3hh6yady] {
    position: fixed;
    left: 14rem; /* clear of the menu down the left */
    bottom: 0.75rem;
    z-index: 1020;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.synthetic-tag.right[b-xh3hh6yady] {
    left: auto;
    right: 0.75rem;
}

/* The menu down the left beside the page (Billy, 2026-10-28). */
.shell[b-xh3hh6yady] {
    display: flex;
    align-items: flex-start;
}

.page-body[b-xh3hh6yady] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .brand-sub[b-xh3hh6yady] {
        display: none;
    }

    .page-body[b-xh3hh6yady] {
        padding: 1rem;
    }
}

/* Pushes Help and the name to the right even when there's no menu to fill the bar (signed out). */
.topbar-push[b-xh3hh6yady] {
    margin-left: auto;
}
/* /Layout/SideNav.razor.rz.scp.css */
/* Pinned: a 13rem column with names. Folded: a 3.25rem strip of icons that opens over the page while pointed at. */
.sidenav[b-f0a2p333i2] {
    flex-shrink: 0;
    width: 3.25rem;
    position: relative;
    z-index: 9; /* over the page when it opens on hover, under the top bar */
    align-self: stretch; /* as tall as the page, so the menu can stay in view while the page scrolls */
}

.sidenav.pinned[b-f0a2p333i2] {
    width: 13rem;
}

.rail[b-f0a2p333i2] {
    position: sticky;
    top: var(--topbar-height, 3.4rem);
    height: calc(100vh - var(--topbar-height, 3.4rem));
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 0.45rem;
    background: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    transition: width 0.12s ease-out;
}

.sidenav:not(.pinned):hover .rail[b-f0a2p333i2],
.sidenav:not(.pinned):has(:focus-visible) .rail[b-f0a2p333i2] {
    width: 13rem;
    box-shadow: 0.25rem 0 1rem rgba(20, 33, 61, 0.12);
}

.group[b-f0a2p333i2] {
    font-size: 0.7rem;
    text-transform: none;
    color: var(--bs-secondary-color);
    padding: 0.55rem 0.55rem 0.15rem;
    white-space: nowrap;
}

.rail[b-f0a2p333i2]  a,
.pin[b-f0a2p333i2] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.4rem;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.rail[b-f0a2p333i2]  a:hover,
.pin:hover[b-f0a2p333i2] {
    background: rgba(20, 33, 61, 0.06);
    color: var(--bs-emphasis-color);
}

.rail[b-f0a2p333i2]  a.active {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-link-color);
    font-weight: 600;
}

.rail[b-f0a2p333i2]  .nav-icon {
    flex-shrink: 0;
}

.count[b-f0a2p333i2] {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--bs-warning-text-emphasis);
}

.news-dot[b-f0a2p333i2] {
    position: absolute;
    left: 1.55rem;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ef9f27;
}

.pin[b-f0a2p333i2] {
    margin-top: auto;
    border: 0;
    background: none;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    text-align: left;
}

/* Folded and not pointed at: icons only. */
.sidenav:not(.pinned):not(:hover):not(:has(:focus-visible)) .label[b-f0a2p333i2],
.sidenav:not(.pinned):not(:hover):not(:has(:focus-visible)) .group[b-f0a2p333i2] {
    display: none;
}

.sidenav:not(.pinned):not(:hover):not(:has(:focus-visible)) .rail[b-f0a2p333i2] {
    padding-top: 1rem;
    gap: 0.35rem;
}

/* A narrow screen keeps the strip whatever the pin says: the page needs the width. */
@media (max-width: 640px) {
    .sidenav.pinned[b-f0a2p333i2] {
        width: 3.25rem;
    }

    .sidenav:not(:hover):not(:has(:focus-visible)) .label[b-f0a2p333i2],
    .sidenav:not(:hover):not(:has(:focus-visible)) .group[b-f0a2p333i2] {
        display: none;
    }

    .sidenav:hover .rail[b-f0a2p333i2] {
        width: 13rem;
    }
}

@media print {
    .sidenav[b-f0a2p333i2] {
        display: none;
    }
}
