@import '_content/B3.Agents.Client/B3.Agents.Client.2ndnds45zk.bundle.scp.css';
@import '_content/B3.CRUD.UI.Components/B3.CRUD.UI.Components.5m1gl3hb9b.bundle.scp.css';
@import '_content/NS.UI.Components/NS.UI.Components.k0geb6z4tq.bundle.scp.css';

/* _content/B3.IK.Web/Shared/MainLayout.razor.rz.scp.css */
.page[b-9nsl0wbz6p] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-9nsl0wbz6p] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-9nsl0wbz6p] {
    background: var(--b3-sidebar-bg);
}

article.content[b-9nsl0wbz6p] {
    padding: 16px 24px;
    /* No max-width: pages bleed to viewport so wide monitors are usable.
       Text-heavy pages (TaskPage, StepDetail) keep their own inner cap. */
}

@media (max-width: 640.98px) {
    .sidebar[b-9nsl0wbz6p] {
        position: sticky;
        top: 0;
        z-index: 200;
        width: 100%;
        border-bottom: 1px solid var(--b3-border-color, #e5e5e8);
    }
    main[b-9nsl0wbz6p] { min-height: 0; }
    article.content[b-9nsl0wbz6p] { padding: 12px 16px; }
}

@media (min-width: 641px) {
    .page[b-9nsl0wbz6p] { flex-direction: row; }

    .sidebar[b-9nsl0wbz6p] {
        width: 220px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        border-right: 1px solid var(--b3-border-color);
    }

    article.content[b-9nsl0wbz6p] {
        padding-left: 32px !important;
        padding-right: 24px !important;
    }
}
/* _content/B3.IK.Web/Shared/NavMenu.razor.rz.scp.css */
/* ── Mobile toggle button ── */
.navbar-toggler[b-n510cpmdy6] {
    border: 1px solid var(--b3-border-color, #e5e5e8);
    background-color: var(--b3-bg-surface, #ffffff);
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
}

.navbar-toggler-icon[b-n510cpmdy6] {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: var(--b3-nav-link-color, #3d4250);
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100%;
    mask-size: 100%;
}

/* ── Brand row ── */
.top-row.navbar[b-n510cpmdy6] {
    height: auto;
    min-height: 3.5rem;
    background-color: transparent;
    padding: 0 14px 6px 14px;
    display: flex;
    align-items: center;
}

.top-row .container-fluid[b-n510cpmdy6] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.navbar-brand[b-n510cpmdy6] {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.navbar-brand:hover[b-n510cpmdy6] { color: #ffffff; text-decoration: none; }

/* Brand gradient dot — same as OurCRM */
.brand-dot[b-n510cpmdy6] {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: inline-block;
    flex-shrink: 0;
}

/* ── Nav scroll container ── */
.nav-scrollable[b-n510cpmdy6] {
    padding: 0 10px 16px;
}

.flex-column[b-n510cpmdy6] {
    display: flex;
    flex-direction: column;
}

/* ── Open-Iconic glyphs in nav links ── */
.oi[b-n510cpmdy6] {
    width: 1.125rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    top: -1px;
    opacity: 0.85;
}

/* ── Nav items ── */
.nav-item[b-n510cpmdy6] {
    font-size: 0.8125rem;
    padding-bottom: 1px;
}
.nav-item:first-of-type[b-n510cpmdy6] { padding-top: 2px; }
.nav-item:last-of-type[b-n510cpmdy6]  { padding-bottom: 4px; }

.nav-item[b-n510cpmdy6]  a {
    color: var(--b3-nav-link-color, #c8c6c4);
    border-radius: var(--b3-nav-link-border-radius, 6px);
    height: auto;
    padding: 5px 10px 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.1s ease, color 0.1s ease;
    font-size: 0.8125rem;
    font-weight: 400;
}

.nav-item[b-n510cpmdy6]  a.active {
    background-color: var(--b3-nav-link-active-bg, rgba(255,255,255,0.10));
    color: var(--b3-nav-link-active-color, #ffffff);
    font-weight: 500;
}
.nav-item[b-n510cpmdy6]  a.active .oi { opacity: 1; }

.nav-item[b-n510cpmdy6]  a:hover:not(.active) {
    background-color: var(--b3-nav-link-hover-bg, rgba(255,255,255,0.06));
    color: var(--b3-nav-link-hover-color, #ffffff);
    text-decoration: none;
}
.nav-item[b-n510cpmdy6]  a:hover .oi { opacity: 1; }

/* Action Center — the page Brian opens first every day. Higher visual
   weight than the rest of the nav. Declared AFTER the base .nav-item
   rules so source order tips equal-specificity ties in our favor.
   Stacked-class selector also raises specificity above .nav-item alone. */
.nav-item.nav-item-action-center[b-n510cpmdy6] { margin-top: 10px; }
.nav-item.nav-item-action-center[b-n510cpmdy6]  a { font-size: 0.9rem; font-weight: 500; }

/* ── Top-level section labels — QUESTS / CRM / SYSTEM ──
   On the dark sidebar, draw these in near-white (high contrast,
   rule-like spacing) so they read as primary structure. */
.nav-section-label[b-n510cpmdy6] {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--b3-nav-section-label-strong, rgba(255,255,255,0.85));
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 16px 10px 6px;
}

/* ── Sub-group labels (e.g. "Pipeline" — always visible) ──
   Quieter than a section label, with a thin underline that helps
   visually delineate the group without yelling. */
.nav-subgroup-label[b-n510cpmdy6] {
    font-size: 10px;
    font-weight: 600;
    color: var(--b3-nav-section-label-color, rgba(255,255,255,0.55));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 10px 4px 12px;
    margin-top: 4px;
}

/* ── Sub-group toggle button (collapsible "Manage" / "System") ──
   Looks like a quiet sub-group label but clickable, with a chevron
   that flips on expand. Hover lightens the row so the affordance
   is clear. */
.nav-subgroup-toggle[b-n510cpmdy6] {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--b3-nav-section-label-color, rgba(255,255,255,0.55));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 10px 4px 12px;
    margin-top: 4px;
    border-radius: 4px;
}
.nav-subgroup-toggle:hover[b-n510cpmdy6] {
    color: var(--b3-nav-section-label-strong, rgba(255,255,255,0.85));
    background: var(--b3-nav-link-hover-bg, rgba(255,255,255,0.06));
}
.nav-chevron[b-n510cpmdy6] {
    display: inline-block;
    width: 10px;
    color: var(--b3-nav-section-label-color, rgba(255,255,255,0.55));
    font-size: 10px;
    line-height: 1;
}

/* ── Footer (signed-in user + sign out) ── */
.nav-footer[b-n510cpmdy6] {
    margin-top: 24px;
    padding: 12px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.78rem;
}
.nav-user[b-n510cpmdy6] {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    line-height: 1.35;
}
.nav-user strong[b-n510cpmdy6] { color: #ffffff; }
.nav-signout[b-n510cpmdy6] { display: inline; margin: 0; }
.nav-signout-btn[b-n510cpmdy6] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.nav-signout-btn:hover[b-n510cpmdy6] {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ════════════════════════════════════════════════
   Desktop: collapse never applies
   ════════════════════════════════════════════════ */
@media (min-width: 641px) {
    .navbar-toggler[b-n510cpmdy6] { display: none; }
    .collapse[b-n510cpmdy6] { display: block !important; }
    .nav-scrollable[b-n510cpmdy6] {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ════════════════════════════════════════════════
   Mobile: hamburger drawer
   ════════════════════════════════════════════════ */
@media (max-width: 640.98px) {
    .navbar-toggler[b-n510cpmdy6] { display: flex; }
    .top-row.navbar[b-n510cpmdy6] {
        padding-bottom: 0;
        border-bottom: 1px solid var(--b3-border-color, #e5e5e8);
    }
    .nav-scrollable.collapse[b-n510cpmdy6] { display: none !important; }
    .nav-scrollable:not(.collapse)[b-n510cpmdy6] {
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--b3-bg-sidebar, #fafafa);
        border-bottom: 1px solid var(--b3-border-color, #e5e5e8);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 150;
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
        padding-bottom: 12px;
    }
}
