/* _content/IntelliRep.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-7frf9uvmty] {
    display: flex;
    flex-direction: column;
    height: 100vh;        /* lock to the viewport so the window itself never scrolls… */
    overflow: hidden;     /* …only the inner content region (.main-scroll) scrolls. */
}

/* ---- Full-width app header ---- */
.app-header[b-7frf9uvmty] {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background-image: linear-gradient(90deg, var(--ir-sidebar-start) 0%, var(--ir-sidebar-end) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 10px rgba(3, 53, 173, 0.18);
}

.app-logo[b-7frf9uvmty] {
    display: inline-flex;
    align-items: center;
}

.app-logo img[b-7frf9uvmty] {
    height: 3rem;
    width: auto;
    /* Vector logo tinted to solid white for the blue header. */
    filter: brightness(0) invert(1);
}

.app-header-right[b-7frf9uvmty] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Vertical divider separating the static chips (env/Docs) from the interactive menus. */
.hdr-divider[b-7frf9uvmty] {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.22);
    flex: none;
}

/* ---- Header dropdown menus (native <details>) ---- */
.hdr-menu[b-7frf9uvmty] { position: relative; }
.hdr-menu > summary[b-7frf9uvmty] { list-style: none; cursor: pointer; }
.hdr-menu > summary[b-7frf9uvmty]::-webkit-details-marker { display: none; }
.hdr-menu > summary[b-7frf9uvmty]::marker { content: ""; }
.hdr-menu > summary:focus-visible[b-7frf9uvmty] { outline: 2px solid #fff; outline-offset: 2px; border-radius: 0.5rem; }

/* Bell / icon trigger */
.hdr-iconbtn[b-7frf9uvmty] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease;
}
.hdr-iconbtn:hover[b-7frf9uvmty] { background: rgba(255, 255, 255, 0.15); color: #fff; }
.hdr-iconbtn svg[b-7frf9uvmty] { width: 1.2rem; height: 1.2rem; }
details[open] > .hdr-iconbtn[b-7frf9uvmty] { background: rgba(255, 255, 255, 0.18); color: #fff; }

.hdr-badge[b-7frf9uvmty] {
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--ir-accent);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--ir-sidebar-start);
}

/* Account trigger reuses .tenant-badge; add the chevron + open state. */
.tenant-name[b-7frf9uvmty] { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-chev[b-7frf9uvmty] { opacity: 0.8; transition: transform 0.15s ease; flex: none; }
details[open] .hdr-chev[b-7frf9uvmty] { transform: rotate(180deg); }
details[open] > .tenant-badge[b-7frf9uvmty] { background: rgba(255, 255, 255, 0.22); }

/* Pop-over panel */
.hdr-pop[b-7frf9uvmty] {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 16rem;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 0.7rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    padding: 0.4rem;
    z-index: 50;
    color: #1e293b;
}
.hdr-pop-head[b-7frf9uvmty] {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: #94a3b8; padding: 0.45rem 0.55rem 0.3rem;
}
.hdr-clear[b-7frf9uvmty] {
    border: none; background: none; cursor: pointer;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
    color: var(--ir-primary); padding: 0.1rem 0.25rem; border-radius: 0.35rem;
}
.hdr-clear:hover[b-7frf9uvmty] { background: #eef2ff; text-decoration: underline; }
.hdr-pop-item[b-7frf9uvmty] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
}
.hdr-pop-item:hover[b-7frf9uvmty] { background: #f1f5f9; color: var(--ir-primary); }
.hdr-pop-item svg[b-7frf9uvmty] { width: 1.05rem; height: 1.05rem; flex: none; color: #64748b; }
.hdr-pop-item:hover svg[b-7frf9uvmty] { color: var(--ir-primary); }
.hdr-pop-body[b-7frf9uvmty] { display: flex; flex-direction: column; min-width: 0; }
.hdr-pop-title[b-7frf9uvmty] { font-weight: 600; color: #0f172a; }
.hdr-pop-sub[b-7frf9uvmty] { font-size: 0.76rem; color: #64748b; }
.hdr-pop-dot[b-7frf9uvmty] { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.hdr-pop-dot.red[b-7frf9uvmty] { background: #ef4444; }
.hdr-pop-dot.blue[b-7frf9uvmty] { background: #2563eb; }
.hdr-pop-empty[b-7frf9uvmty] { padding: 0.6rem 0.55rem 0.7rem; font-size: 0.85rem; color: #64748b; }
.hdr-pop-sep[b-7frf9uvmty] { height: 1px; background: #eef2f7; margin: 0.35rem 0.25rem; }

.hdr-acct-head[b-7frf9uvmty] { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem; }
.hdr-acct-avatar[b-7frf9uvmty] {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background-image: linear-gradient(135deg, var(--ir-sidebar-start), var(--ir-sidebar-end));
    color: #fff; font-size: 0.78rem; font-weight: 700;
    position: relative; overflow: hidden;
}

/* Small avatar in the header account chip (replaces the old status dot). */
.acct-avatar-sm[b-7frf9uvmty] {
    width: 1.55rem; height: 1.55rem; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background-image: linear-gradient(135deg, var(--ir-sidebar-start), var(--ir-sidebar-end));
    color: #fff; font-size: 0.6rem; font-weight: 700;
    position: relative; overflow: hidden;
}

/* The Microsoft profile photo overlays the initials; if it 404s it removes itself (onerror) → initials show. */
.avatar-img[b-7frf9uvmty] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    display: block;
}
.avatar-initials[b-7frf9uvmty] { line-height: 1; }

.sidebar-toggle-btn[b-7frf9uvmty] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    border: 1px solid transparent;
    flex: none;
}

.sidebar-toggle-btn:hover[b-7frf9uvmty] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sidebar-toggle-btn svg[b-7frf9uvmty] {
    width: 1.2rem;
    height: 1.2rem;
}

.env-chip[b-7frf9uvmty] {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ir-accent);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}

.top-link[b-7frf9uvmty] {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.top-link:hover[b-7frf9uvmty] {
    color: #fff;
    text-decoration: underline;
}

.tenant-badge[b-7frf9uvmty] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.tenant-dot[b-7frf9uvmty] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

/* ---- Body: sidebar + main ---- */
.app-body[b-7frf9uvmty] {
    display: flex;
    flex: 1;
    min-height: 0;
}

.sidebar[b-7frf9uvmty] {
    width: 250px;
    flex: none;
    align-self: stretch;
    position: sticky;
    top: 4rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-image: linear-gradient(180deg, var(--ir-sidebar-start) 0%, var(--ir-sidebar-end) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.18);
    transition: width 0.18s ease;
}

main[b-7frf9uvmty] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
}

/* The only scrolling region: breadcrumbs (above) + the sticky page header stay put;
   everything inside scrolls. */
.main-scroll[b-7frf9uvmty] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 640.98px) {
    .app-body[b-7frf9uvmty] {
        flex-direction: column;
    }

    /* Sidebar becomes a horizontal nav strip under the header instead of a
       tall full-width block you'd scroll past on every page. */
    .sidebar[b-7frf9uvmty] {
        width: 100%;
        height: auto;
        position: sticky;
        top: 4rem;
        z-index: 20;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    }
}

/* On narrow phones, drop the secondary header chrome so the logo and tenant
   badge don't overflow the bar. */
@media (max-width: 480px) {
    .app-header[b-7frf9uvmty] {
        gap: 0.5rem;
        padding: 0 0.65rem;
    }

    .env-chip[b-7frf9uvmty],
    .top-link[b-7frf9uvmty] {
        display: none;
    }

    .app-header-right[b-7frf9uvmty] {
        gap: 0.5rem;
    }
}

/* ---- Error toast ---- */
#blazor-error-ui[b-7frf9uvmty] {
    background: #0f172a;
    color: #fff;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    border-radius: 0.65rem;
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.1rem;
    position: fixed;
    width: auto;
    max-width: calc(100% - 2rem);
    z-index: 1000;
}

    #blazor-error-ui .error-text[b-7frf9uvmty] {
        font-weight: 500;
    }

    #blazor-error-ui .reload[b-7frf9uvmty] {
        color: #fff;
        font-weight: 600;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss[b-7frf9uvmty] {
        cursor: pointer;
        color: rgba(255, 255, 255, 0.7);
        margin-left: 0.25rem;
    }
/* _content/IntelliRep.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* Section group label */
.nav-section[b-pexa9w5sf2] {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.5rem 0.35rem;
}

.nav-ico[b-pexa9w5sf2] {
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.7rem;
    flex: none;
    opacity: 0.85;
}

.nav-item[b-pexa9w5sf2] {
    font-size: 0.9rem;
    padding: 0 0.75rem 0.15rem;
}

.nav-item:first-of-type[b-pexa9w5sf2] {
    padding-top: 0.5rem;
}

.nav-item[b-pexa9w5sf2]  .nav-link {
    position: relative;
    color: #cdd5e4;
    background: none;
    border: none;
    border-radius: 0.5rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    line-height: 1;
    width: 100%;
    padding: 0 0.75rem;
    transition: background-color 0.12s ease, color 0.12s ease;
}

/* Active item: a tinted panel + an amber left-accent bar (instead of a flat orange fill). */
.nav-item[b-pexa9w5sf2]  a.active {
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
}

.nav-item[b-pexa9w5sf2]  a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ir-accent);
}

.nav-item[b-pexa9w5sf2]  a.active .nav-ico {
    opacity: 1;
    color: var(--ir-amber);
}

.nav-item[b-pexa9w5sf2]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.nav-item[b-pexa9w5sf2]  .nav-link:hover .nav-ico {
    opacity: 1;
}

.nav-item[b-pexa9w5sf2]  a.active:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Sidebar footer */
.nav-footer[b-pexa9w5sf2] {
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.nav-footer-app[b-pexa9w5sf2] {
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-footer-meta[b-pexa9w5sf2] {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Fill the sidebar height; footer pinned to the bottom. */
.nav-scrollable[b-pexa9w5sf2] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.5rem;
}

.nav-scrollable > nav[b-pexa9w5sf2] {
    flex: 1 0 auto;
}

/* On phones the sidebar is a horizontal strip: lay the links out in a row,
   hide the section headers and footer, and let it scroll sideways. */
@media (max-width: 640.98px) {
    .nav-section[b-pexa9w5sf2],
    .nav-footer[b-pexa9w5sf2] {
        display: none;
    }

    .nav-scrollable[b-pexa9w5sf2] {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.4rem 0.5rem;
    }

    .nav-scrollable > nav.flex-column[b-pexa9w5sf2] {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .nav-item[b-pexa9w5sf2] {
        padding: 0;
    }

    .nav-item:first-of-type[b-pexa9w5sf2] {
        padding-top: 0;
    }

    .nav-item[b-pexa9w5sf2]  .nav-link {
        height: 2.2rem;
        white-space: nowrap;
    }
}
