/* _content/Plenio.Console/Components/Layout/MainLayout.razor.rz.scp.css */
/* PlenioShell — root layout.
   Two-column flex: sidebar (220px fixed) + main (fills remainder).
   Tokens come from wwwroot/app.css (Agent C). Fallbacks ensure the shell
   reads correctly during interleaved builds. */

.plenio-shell[b-zabsxn5a91] {
    display: flex;
    gap: 16px;
    min-height: 100vh;
    padding: 16px;
    box-sizing: border-box;

    /* design-tokens.md §7: chrome-canvas is the page background. transparent
       so the global body background (image / cream) shows through. */
    background: var(--chrome-canvas, transparent);
}

.plenio-main[b-zabsxn5a91] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;

    /* main content sits over the chrome canvas; no card surface here — pages
       paint their own cards. */
    background: transparent;
    color: var(--ink-primary, #070000);

    /* Reset main's focus outline since it's only programmatically focused
       (skip-link target). Pages own visible focus. */
    outline: none;
}

/* ---------- Blazor error banner ---------- */

#blazor-error-ui[b-zabsxn5a91] {
    color-scheme: light only;
    background: #FEE2E2;
    border-top: 1px solid #E11D48;
    color: #E11D48;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 12px 24px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-ui, 'Google Sans Flex'), system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

#blazor-error-ui .dismiss[b-zabsxn5a91] {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 8px;
}
/* _content/Plenio.Console/Components/Layout/PlenioSidebar.razor.rz.scp.css */
/* PlenioSidebar — scoped styles.
   Tokens come from wwwroot/app.css (Agent C). Fallbacks here so that the shell
   still reads correctly if a token is missing during interleaved builds. */

.plenio-sidebar[b-31wqwh5hft] {
    /* design-tokens.md §7 — fixed 220px wide; §4 — 34px outer radius */
    width: 220px;
    flex-shrink: 0;
    box-sizing: border-box;

    background: var(--chrome-sidebar, #EDE8E5);
    color: var(--ink-primary, #070000);
    border-radius: var(--radius-card, 34px);

    /* design-tokens.md §3: card padding vertical 24px; side padding 12px so
       nav-links can still claim full-width pill hits inside */
    padding: 24px 12px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    /* sticky inside the page flex row so it follows the viewport */
    position: sticky;
    top: 16px;
    align-self: flex-start;
    max-height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
    overflow-y: auto;
}

/* ---------- brand (wordmark) ---------- */

.brand[b-31wqwh5hft] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 0;
}

.brand-mark[b-31wqwh5hft] {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-mark img[b-31wqwh5hft] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text[b-31wqwh5hft] {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

/* ux-standards.md §3.2 / design-tokens.md §2.2: 3xl/normal — 30/40 weight 400
   Spinnaker for the wordmark only. */
.brand-wordmark[b-31wqwh5hft] {
    font-family: var(--font-wordmark, 'Spinnaker'), 'Spinnaker', serif;
    font-size: 30px;
    line-height: 40px;
    font-weight: 400;
    color: var(--ink-primary, #070000);
    letter-spacing: -0.005em;
}

/* "Ledger" sits beneath the wordmark. Spinnaker per nomenclature §2.1: the
   product is "Plenio Ledger" — never "Plenio Edge" in chrome. */
.brand-product[b-31wqwh5hft] {
    font-family: var(--font-wordmark, 'Spinnaker'), 'Spinnaker', serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--ink-secondary, #4A423E);
}

/* ---------- nav list ---------- */

.nav-list[b-31wqwh5hft] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* NavLink renders the <a> itself (a child component), so it does NOT carry this
   component's CSS-isolation scope attribute. ::deep pierces from the scoped
   .nav-list ancestor to that anchor — without it, none of these (including the
   active highlight) would apply and the links fall back to Bootstrap's .nav-link. */
.nav-list[b-31wqwh5hft]  .nav-link {
    /* Touch target ≥ 44×44 per ux-standards.md §6.2 */
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;

    color: var(--ink-secondary, #4A423E);
    text-decoration: none;

    font-family: var(--font-ui, 'Google Sans Flex'), system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.nav-list[b-31wqwh5hft]  .nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ink-primary, #070000);
    text-decoration: none;
}

/* ux-standards.md §4.2: active uses translucent white highlight */
.nav-list[b-31wqwh5hft]  .nav-link.active {
    background: rgba(255, 255, 255, 0.45);
    color: var(--ink-primary, #070000);
    font-weight: 500; /* sm/medium per design-tokens §2.2 */
}

/* Inherit the global :focus-visible Agent C is defining; provide a safe
   fallback so the shell is keyboard-navigable in isolation. */
.nav-list[b-31wqwh5hft]  .nav-link:focus-visible {
    outline: 2px solid var(--ink-primary, #070000);
    outline-offset: 2px;
}

.nav-icon[b-31wqwh5hft] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-stroke, #332D2A);
}

.nav-list[b-31wqwh5hft]  .nav-link.active .nav-icon {
    color: var(--ink-primary, #070000);
}

.nav-label[b-31wqwh5hft] {
    flex: 1;
    min-width: 0;
}

/* ---------- user chip (bottom) ---------- */

.user-chip[b-31wqwh5hft] {
    /* Touch target ≥ 44×44 */
    min-height: 56px;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
    padding: 8px 8px;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;

    color: var(--ink-primary, #070000);
    font-family: var(--font-ui, 'Google Sans Flex'), system-ui, sans-serif;
}

.user-chip:hover[b-31wqwh5hft] {
    background: rgba(255, 255, 255, 0.25);
}

.user-chip:focus-visible[b-31wqwh5hft] {
    outline: 2px solid var(--ink-primary, #070000);
    outline-offset: 2px;
}

.user-avatar[b-31wqwh5hft] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--chrome-action-dark, #201E1D);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.user-meta[b-31wqwh5hft] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

/* base/medium per design-tokens §2.2 */
.user-name[b-31wqwh5hft] {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--ink-primary, #070000);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role[b-31wqwh5hft] {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--ink-secondary-cool, #4B5563);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron[b-31wqwh5hft] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ink-tertiary, #6B7280);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Respect prefers-reduced-motion (ux-standards §6.2 / design-tokens §5).
   This shell has no animations to reduce; the rule is here so adding any
   later requires an explicit override. */
@media (prefers-reduced-motion: reduce) {
    .nav-list[b-31wqwh5hft]  .nav-link,
    .user-chip[b-31wqwh5hft] {
        transition: none;
    }
}
