@import '_content/BAComponents/BAComponents.2g8h4fo5tn.bundle.scp.css';

/* /Shared/MainLayout.razor.rz.scp.css */
/* QPulse shell: a sticky desktop sidebar plus a compact phone top bar. */

.page[b-psqxegxi4l] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-psqxegxi4l] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-psqxegxi4l] {
    /* A subtle vertical gradient distinguishes navigation from executive content. */
    background: linear-gradient(180deg, color-mix(in srgb, var(--qs-surface-soft) 92%, var(--qs-surface)), var(--qs-surface));
}

/* Bottom padding clears the fixed document action bar (.qs-bottom-bar) on the editor pages. Left/right
   gutters stay small so wide grids and card grids use the available width (see .qs-page max-width). */
.content[b-psqxegxi4l] {
    padding: 1rem 0.75rem 6.5rem;
}

.sidebar-flash-toggle[b-psqxegxi4l] {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--qs-primary-strong, #10384a);
    font-size: 1.15rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    cursor: pointer;
}

html[dir="rtl"] .sidebar-flash-toggle[b-psqxegxi4l] {
    right: auto;
    left: 0;
}

@media (max-width: 640.98px) {
    .page[b-psqxegxi4l] {
        display: block;
    }

    .sidebar[b-psqxegxi4l] {
        /* On phones the sidebar owns only the top bar; the menu itself overlays the page as a drawer. */
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
        height: 3.5rem;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
    }

    main[b-psqxegxi4l] {
        width: 100%;
    }

    .content[b-psqxegxi4l] {
        /* Phones: tight gutters so item/customer cards fill the screen width. */
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sidebar-flash-toggle[b-psqxegxi4l] {
        display: none;
    }

    .sidebar.collapsed[b-psqxegxi4l] {
        /* The phone shell uses a top bar and drawer, so the desktop icon-only width must not apply. */
        width: 100%;
    }
}

@media (min-width: 641px) {
    .page[b-psqxegxi4l] {
        flex-direction: row;
    }

    .sidebar[b-psqxegxi4l] {
        /* The wider rail keeps trilingual executive labels readable while remaining compact. */
        width: 236px;
        height: 100vh;
        position: sticky;
        top: 0;
        box-shadow: 1px 0 2px rgba(0, 0, 0, 0.12);
    }

    .content[b-psqxegxi4l] {
        /* Desktop has the most empty space, so keep side gutters small and let .qs-page own the width. */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidebar.collapsed[b-psqxegxi4l] {
        width: 53px;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
/* QPulse sidebar navigation is self-contained. Shared drawer behavior keys off id="navMenu" and
   ".top-row-nav .navbar-toggler" for open, close, and outside-tap dismissal. */

.top-row-nav[b-it0vnl01u4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0 0.75rem;
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--qs-primary) 13%, transparent), transparent 34%),
        var(--qs-surface, #ffffff);
    border-bottom: 1px solid color-mix(in srgb, var(--qs-primary) 14%, var(--qs-border, #d9e2e8));
}

.container-fluid-nav[b-it0vnl01u4] {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

/* The three bars form a quiet pulse signature without depending on an external image asset. */
.nav-brand-signal[b-it0vnl01u4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--qs-primary, #147d92), var(--qs-primary-strong, #10384a));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--qs-primary) 24%, transparent);
}

.nav-brand-signal i[b-it0vnl01u4] {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.nav-brand-signal i:nth-child(1)[b-it0vnl01u4] { height: 8px; opacity: 0.78; }
.nav-brand-signal i:nth-child(2)[b-it0vnl01u4] { height: 17px; }
.nav-brand-signal i:nth-child(3)[b-it0vnl01u4] { height: 11px; opacity: 0.88; }

/* The brand subtitle communicates the product's role without crowding the main navigation. */
.nav-brand-copy[b-it0vnl01u4] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
}

.nav-brand-copy small[b-it0vnl01u4] {
    margin-top: 2px;
    overflow: hidden;
    color: var(--qs-muted, #5f6e78);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-brand[b-it0vnl01u4] {
    color: var(--qs-primary-strong, #10384a);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.navbar-brand:hover[b-it0vnl01u4] {
    color: var(--qs-primary-strong, #10384a);
}

/* The self-contained hamburger keeps the mobile QPulse shell independent of framework defaults. */
.navbar-toggler[b-it0vnl01u4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--qs-surface, #ffffff);
    color: var(--accent);
    padding: 10px;
    cursor: pointer;
}

.navbar-toggler:hover[b-it0vnl01u4] {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.navbar-toggler-icon[b-it0vnl01u4] {
    position: relative;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    border-block: 2px solid currentColor;
}

/* The middle hamburger rail inherits the theme-aware current color in both schemes. */
.navbar-toggler-icon[b-it0vnl01u4]::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}

.nav-scrollable[b-it0vnl01u4] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-links[b-it0vnl01u4] {
    flex-grow: 1;
    padding-top: 0.7rem;
}

.nav-item[b-it0vnl01u4] {
    font-size: 0.9rem;
    padding: 0 0.65rem 0.32rem;
}

.nav-item.nav-item-icon[b-it0vnl01u4] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.nav-item[b-it0vnl01u4]  a {
    position: relative;
    color: var(--qs-text, #20252b);
    border-radius: 12px;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    min-height: 3rem;
    height: auto;
    line-height: 1.2;
    padding: 0.46rem 0.62rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.nav-item[b-it0vnl01u4]  a.active {
    background: linear-gradient(105deg,
        color-mix(in srgb, var(--qs-primary) 17%, var(--qs-surface, #ffffff)),
        color-mix(in srgb, var(--qs-primary) 7%, var(--qs-surface, #ffffff)));
    color: var(--qs-heading, #1e293b);
    font-weight: 700;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--qs-primary) 24%, transparent),
        0 6px 16px color-mix(in srgb, var(--qs-primary) 10%, transparent);
}

/* QCRM-style active-page accent stripe on the leading edge of the rail. */
.nav-item[b-it0vnl01u4]  a.active::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: var(--qs-primary);
}

.nav-item[b-it0vnl01u4]  a:hover {
    background: color-mix(in srgb, var(--qs-primary) 10%, transparent);
    color: var(--qs-heading, #1e293b);
    transform: translateX(2px);
}

html[dir="rtl"] .nav-item[b-it0vnl01u4]  a:hover {
    transform: translateX(-2px);
}

.nav-icon[b-it0vnl01u4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--qs-muted, #5f6e78) 9%, transparent);
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
    color: var(--qs-muted, #5f6e78);
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

/* Icons pick up the accent on the active/hovered item, matching the QCRM rail. */
.nav-item[b-it0vnl01u4]  a:hover .nav-icon,
.nav-item[b-it0vnl01u4]  a.active .nav-icon {
    color: var(--qs-primary);
    background: color-mix(in srgb, var(--qs-primary) 14%, transparent);
    transform: scale(1.04);
}

/* Group captions help leaders scan by decision purpose rather than by a flat module list. */
.nav-group-label[b-it0vnl01u4] {
    margin: 0.72rem 0.85rem 0.34rem;
    color: var(--qs-muted, #5f6e78);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-group-label:first-child[b-it0vnl01u4] {
    margin-top: 0.2rem;
}

/* Icon-only mode keeps the larger icon tiles centered inside the narrow rail. */
.nav-item.nav-item-icon[b-it0vnl01u4]  a {
    justify-content: center;
    padding-inline: 0.35rem;
}

html[dir="rtl"] .nav-icon[b-it0vnl01u4] {
    margin-right: 0;
    margin-left: 5px;
}

.nav-text[b-it0vnl01u4] {
    display: inline-block;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

/* Collapsible section headers stay plain text so they do not look like boxed menu items. */
.nav-section[b-it0vnl01u4] {
    margin: 0.2rem 0 0.35rem;
}

.nav-section-toggle[b-it0vnl01u4] {
    width: calc(100% - 1.5rem);
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem;
    margin: 0.85rem 0.75rem 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--qs-muted, #5f6e78);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: color 0.15s ease;
}

.nav-section-toggle:hover[b-it0vnl01u4],
.nav-section-toggle:focus-visible[b-it0vnl01u4],
.nav-section.is-active .nav-section-toggle[b-it0vnl01u4] {
    background: transparent;
    color: var(--qs-primary-strong, #10384a);
    outline: none;
}

.nav-section-toggle:focus-visible .nav-section-label[b-it0vnl01u4] {
    text-decoration: underline;
}

.nav-section-toggle-user[b-it0vnl01u4] {
    grid-template-columns: auto 1fr auto;
}

.nav-section-user-icon[b-it0vnl01u4] {
    width: 1.35rem;
    color: inherit;
    font-size: 1rem;
    text-align: center;
}

.nav-section-label[b-it0vnl01u4] {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-section-chevron[b-it0vnl01u4] {
    width: 1rem;
    color: inherit;
    font-size: 0.72rem;
    text-align: center;
    transition: transform 0.15s ease;
}

.nav-section.is-expanded .nav-section-chevron[b-it0vnl01u4] {
    transform: rotate(90deg);
}

html[dir="rtl"] .nav-section.is-expanded .nav-section-chevron[b-it0vnl01u4] {
    transform: rotate(-90deg);
}

.nav-section-content[hidden][b-it0vnl01u4] {
    display: none;
}

.nav-section.is-icon-only[b-it0vnl01u4] {
    margin: 0;
}

.nav-language-row[b-it0vnl01u4] {
    padding: 0.35rem 0.75rem 0.75rem;
}

.nav-language-label[b-it0vnl01u4] {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--qs-muted, #5f6e78);
    font-size: 0.78rem;
    font-weight: 700;
}

.nav-user-divider[b-it0vnl01u4] {
    border: 0;
    border-top: 2px solid var(--qs-border, #d9e2e8);
    width: 60%;
    margin: 0.5rem 0.75rem;
}

.nav-error[b-it0vnl01u4] {
    margin: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--qs-red-soft, #fff0f0);
    color: var(--qs-red-text, #9a2c2c);
    font-size: 0.85rem;
}

.collapse[b-it0vnl01u4] {
    display: none;
}

/* Desktop: hide the hamburger and let the menu fill the sticky sidebar below the brand row. */
@media (min-width: 641px) {
    .navbar-toggler[b-it0vnl01u4] {
        display: none;
    }

    .nav-scrollable[b-it0vnl01u4] {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* Phone: a fixed top bar plus a slide-in drawer that overlays the page body. */
@media (max-width: 640px) {
    .top-row-nav[b-it0vnl01u4] {
        position: relative;
        z-index: 1101;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    }

    .mobile-collapse[b-it0vnl01u4] {
        position: fixed;
        top: 3.5rem;
        bottom: 0;
        left: 0;
        z-index: 1100;
        width: min(20rem, 86vw);
        background: var(--qs-surface, #ffffff);
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.22);
        overflow: hidden;
    }

    html[dir="rtl"] .mobile-collapse[b-it0vnl01u4] {
        left: auto;
        right: 0;
        box-shadow: -8px 0 24px rgba(15, 23, 42, 0.22);
    }

    .nav-scrollable[b-it0vnl01u4] {
        height: calc(100dvh - 3.5rem);
        padding-bottom: 1rem;
    }
}

/* The drawer backdrop catches outside taps to close the open phone menu. */
.mobile-nav-backdrop[b-it0vnl01u4] {
    position: fixed;
    top: 3.5rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1099;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
}
