@import '_content/BAComponents/BAComponents.ne4nojyw4o.bundle.scp.css';

/* /Shared/MainLayout.razor.rz.scp.css */
/* QSales shell — a sticky desktop sidebar plus a phone top bar, matching the QClock/QSalesView house style. */

.page[b-dp2chddm06] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-dp2chddm06] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-dp2chddm06] {
    /* QCRM-style subtle vertical gradient rail instead of a flat panel. */
    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-dp2chddm06] {
    padding: 1rem 0.75rem 6.5rem;
}

.sidebar-flash-toggle[b-dp2chddm06] {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--qs-primary-strong, #10384a);
    font-size: 1.15rem;
    padding: 0.75rem;
    cursor: pointer;
}

html[dir="rtl"] .sidebar-flash-toggle[b-dp2chddm06] {
    right: auto;
    left: 0;
}

@media (max-width: 640.98px) {
    .page[b-dp2chddm06] {
        display: block;
    }

    .sidebar[b-dp2chddm06] {
        /* 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-dp2chddm06] {
        width: 100%;
    }

    .content[b-dp2chddm06] {
        /* Phones: tight gutters so item/customer cards fill the screen width. */
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sidebar-flash-toggle[b-dp2chddm06] {
        display: none;
    }

    .sidebar.collapsed[b-dp2chddm06] {
        /* 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-dp2chddm06] {
        flex-direction: row;
    }

    .sidebar[b-dp2chddm06] {
        width: 200px;
        height: 100vh;
        position: sticky;
        top: 0;
        box-shadow: 1px 0 2px rgba(0, 0, 0, 0.12);
    }

    .content[b-dp2chddm06] {
        /* 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-dp2chddm06] {
        width: 53px;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
/* QSales sidebar navigation — ported from the QClock/QSalesView house style and made self-contained
   because QSales does not load Bootstrap. The drawer behaviour (open/close, outside-tap dismiss) is
   driven by the shared Assets/site.js, which keys off id="navMenu" and ".top-row-nav .navbar-toggler". */

.top-row-nav[b-2nacp14p79] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0 0.75rem;
    background: var(--qs-surface, #ffffff);
}

.container-fluid-nav[b-2nacp14p79] {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.navbar-brand[b-2nacp14p79] {
    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-2nacp14p79] {
    color: var(--qs-primary-strong, #10384a);
}

/* Self-contained hamburger button (no Bootstrap base styles available in QSales). */
.navbar-toggler[b-2nacp14p79] {
    display: block;
    border: 0;
    border-radius: 50%;
    background: var(--qs-surface, #ffffff);
    padding: 10px;
    cursor: pointer;
}

.navbar-toggler:hover[b-2nacp14p79] {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.navbar-toggler-icon[b-2nacp14p79] {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(16, 56, 74, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-scrollable[b-2nacp14p79] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-links[b-2nacp14p79] {
    flex-grow: 1;
}

.nav-item[b-2nacp14p79] {
    font-size: 0.9rem;
    padding: 0 0.75rem 0.4rem;
}

.nav-item:first-of-type[b-2nacp14p79] {
    padding-top: 1rem;
}

.nav-item.nav-item-icon[b-2nacp14p79] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.nav-item[b-2nacp14p79]  a {
    position: relative;
    color: var(--qs-text, #20252b);
    border-radius: 8px;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    min-height: 2.85rem;
    height: auto;
    line-height: 1.2;
    padding: 0.6rem 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.nav-item[b-2nacp14p79]  a.active {
    background: color-mix(in srgb, var(--qs-primary) 14%, transparent);
    color: var(--qs-heading, #1e293b);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qs-primary) 22%, transparent);
}

/* QCRM-style active-page accent stripe on the leading edge of the rail. */
.nav-item[b-2nacp14p79]  a.active::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--qs-primary);
}

.nav-item[b-2nacp14p79]  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-2nacp14p79]  a:hover {
    transform: translateX(-2px);
}

.nav-icon[b-2nacp14p79] {
    flex: 0 0 1.35rem;
    font-size: 1.1rem;
    text-align: center;
    vertical-align: middle;
    color: var(--qs-muted, #5f6e78);
    transition: color .15s ease;
}

/* Icons pick up the accent on the active/hovered item, matching the QCRM rail. */
.nav-item[b-2nacp14p79]  a:hover .nav-icon,
.nav-item[b-2nacp14p79]  a.active .nav-icon {
    color: var(--qs-primary);
}

html[dir="rtl"] .nav-icon[b-2nacp14p79] {
    margin-right: 0;
    margin-left: 5px;
}

.nav-text[b-2nacp14p79] {
    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-2nacp14p79] {
    margin: 0.2rem 0 0.35rem;
}

.nav-section-toggle[b-2nacp14p79] {
    width: calc(100% - 1.5rem);
    min-height: 2.75rem;
    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;
}

/* Visually hide labels in icon-only mode without removing accessible link names. */
.icon-only .nav-text[b-2nacp14p79] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-section-toggle:hover[b-2nacp14p79],
.nav-section-toggle:focus-visible[b-2nacp14p79],
.nav-section.is-active .nav-section-toggle[b-2nacp14p79] {
    background: transparent;
    color: var(--qs-primary-strong, #10384a);
    outline: none;
}

.nav-section-toggle:focus-visible .nav-section-label[b-2nacp14p79] {
    text-decoration: underline;
}

.nav-section-toggle-user[b-2nacp14p79] {
    grid-template-columns: auto 1fr auto;
}

.nav-section-user-icon[b-2nacp14p79] {
    width: 1.35rem;
    color: inherit;
    font-size: 1rem;
    text-align: center;
}

.nav-section-label[b-2nacp14p79] {
    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-2nacp14p79] {
    width: 1rem;
    color: inherit;
    font-size: 0.72rem;
    text-align: center;
    transition: transform 0.15s ease;
}

.nav-section.is-expanded .nav-section-chevron[b-2nacp14p79] {
    transform: rotate(90deg);
}

html[dir="rtl"] .nav-section.is-expanded .nav-section-chevron[b-2nacp14p79] {
    transform: rotate(-90deg);
}

.nav-section-content[hidden][b-2nacp14p79] {
    display: none;
}

.nav-section.is-icon-only[b-2nacp14p79] {
    margin: 0;
}

.nav-language-row[b-2nacp14p79] {
    padding: 0.35rem 0.75rem 0.75rem;
}

.nav-language-label[b-2nacp14p79] {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--qs-muted, #5f6e78);
    font-size: 0.78rem;
    font-weight: 700;
}

.nav-user-divider[b-2nacp14p79] {
    border: 0;
    border-top: 2px solid var(--qs-border, #d9e2e8);
    width: 60%;
    margin: 0.5rem 0.75rem;
}

.nav-error[b-2nacp14p79] {
    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-2nacp14p79] {
    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-2nacp14p79] {
        display: none;
    }

    .nav-scrollable[b-2nacp14p79] {
        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-2nacp14p79] {
        position: relative;
        z-index: 1101;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    }

    .mobile-collapse[b-2nacp14p79] {
        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-2nacp14p79] {
        left: auto;
        right: 0;
        box-shadow: -8px 0 24px rgba(15, 23, 42, 0.22);
    }

    .nav-scrollable[b-2nacp14p79] {
        height: calc(100dvh - 3.5rem);
        padding-bottom: 1rem;
    }
}

/* The drawer backdrop catches outside taps to close the open phone menu. */
.mobile-nav-backdrop[b-2nacp14p79] {
    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;
}
