@import '_content/BM.Components/BM.Components.k1fjad0y93.bundle.scp.css';

/* _content/Backstage/Components/Layout/AIChatSidebar.razor.rz.scp.css */
/* AIChatSidebar — isolated component styles
   Width/transition is driven by the outer wrapper so the main-content
   layout reflows without CLS.  All colours use MudBlazor CSS variables
   so they automatically adapt to dark mode. */

.ai-chat-sidebar-wrapper[b-xqo8l26q0g] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    z-index: 1200;          /* above MudAppBar (1100) but below MudDialog (9999) */
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border-left: 1px solid var(--mud-palette-divider);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    transform: translateX(0);
    transition: transform 200ms ease, width 200ms ease;
    overflow: hidden;
}

.ai-chat-sidebar-wrapper.closed[b-xqo8l26q0g] {
    transform: translateX(100%);
    pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.ai-chat-header[b-xqo8l26q0g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 16px;
    min-height: 48px;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    flex-shrink: 0;
}

.ai-chat-header-title[b-xqo8l26q0g] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.ai-chat-header-actions[b-xqo8l26q0g] {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Message list ───────────────────────────────────────────────────── */

.ai-chat-body[b-xqo8l26q0g] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.ai-chat-empty[b-xqo8l26q0g] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
    color: var(--mud-palette-text-secondary);
}

/* Message bubbles */
.ai-message-row[b-xqo8l26q0g] {
    display: flex;
}

.ai-message-row.user[b-xqo8l26q0g] {
    justify-content: flex-end;
}

.ai-message-row.assistant[b-xqo8l26q0g] {
    justify-content: flex-start;
}

.ai-bubble[b-xqo8l26q0g] {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.ai-bubble.user[b-xqo8l26q0g] {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-bottom-right-radius: 4px;
}

.ai-bubble.assistant[b-xqo8l26q0g] {
    background: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-primary);
    border-bottom-left-radius: 4px;
}

/* ── Footer input area ──────────────────────────────────────────────── */

.ai-chat-footer[b-xqo8l26q0g] {
    flex-shrink: 0;
    padding: 8px 12px;
    border-top: 1px solid var(--mud-palette-divider);
    background: var(--mud-palette-surface);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ai-chat-footer .ai-input-field[b-xqo8l26q0g] {
    flex: 1 1 auto;
}
/* _content/Backstage/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-woyf6k1jqm] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-woyf6k1jqm] {
    flex: 1;
}

.sidebar[b-woyf6k1jqm] {
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
    background-image: linear-gradient(180deg, #C24C4D 0%, #A62323 70%, #7A1D28 100%);
}

.top-row[b-woyf6k1jqm] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-woyf6k1jqm]  a, .top-row[b-woyf6k1jqm]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-woyf6k1jqm]  a:hover, .top-row[b-woyf6k1jqm]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-woyf6k1jqm]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-woyf6k1jqm] {
        justify-content: space-between;
    }

    .top-row[b-woyf6k1jqm]  a, .top-row[b-woyf6k1jqm]  .btn-link {
        margin-left: 0;
    }
}

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

    .sidebar[b-woyf6k1jqm] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-woyf6k1jqm] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-woyf6k1jqm]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-woyf6k1jqm], article[b-woyf6k1jqm] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-woyf6k1jqm] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-woyf6k1jqm] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/Backstage/Components/Layout/NavPinnedSection.razor.rz.scp.css */
/* ── Pinned pages section ──────────────────────────────────────────────── */

.pins-list[b-3zttdxlhre] {
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}

.pin-row[b-3zttdxlhre] {
    display: flex;
    align-items: center;
    cursor: default;
    border-radius: 4px;
    margin: 1px 8px;
    transition: background 0.15s;
    min-height: 32px;
}

.pin-row:hover[b-3zttdxlhre] {
    background: var(--mud-palette-action-default-hover);
}

.pin-row--dragging[b-3zttdxlhre] {
    opacity: 0.5;
    background: var(--mud-palette-primary-lighten);
}

.pin-drag-handle[b-3zttdxlhre] {
    cursor: grab;
    color: var(--mud-palette-action-disabled);
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 1rem !important;
}

.pin-drag-handle:active[b-3zttdxlhre] {
    cursor: grabbing;
}

.pin-navlink[b-3zttdxlhre] {
    min-width: 0;
    padding: 4px 4px 4px 2px !important;
    min-height: 32px !important;
    font-size: 0.813rem !important;
}

.pin-star-btn[b-3zttdxlhre] {
    flex-shrink: 0;
    margin-right: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.pin-row:hover .pin-star-btn[b-3zttdxlhre] {
    opacity: 1;
}

.shell-nav-text[b-3zttdxlhre] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* _content/Backstage/Components/Layout/NewShell.razor.rz.scp.css */
/* ── App bar ─────────────────────────────────────────────────────────────── */

.shell-appbar-btn[b-08be0hjh5r] {
    text-transform: none;
    font-weight: 500;
    font-size: 0.8125rem;
    opacity: 0.92;
    letter-spacing: 0;
    padding: 0 8px !important;
}

.shell-appbar-btn:hover[b-08be0hjh5r] {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ── Drawer ──────────────────────────────────────────────────────────────── */

.shell-drawer[b-08be0hjh5r] {
    display: flex;
    flex-direction: column;
}

/* ── Pinned / Recents / Saved Views sections ─────────────────────────────── */

.shell-drawer-section[b-08be0hjh5r] {
    flex-shrink: 0;
}

.shell-drawer-section-header[b-08be0hjh5r] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.15s ease;
}

.shell-drawer-section-header:hover[b-08be0hjh5r] {
    background-color: var(--mud-palette-action-default-hover);
}

.shell-drawer-section-label[b-08be0hjh5r] {
    flex: 1;
    text-align: left;
}

.shell-drawer-subsection .mud-nav-link[b-08be0hjh5r] {
    padding: 4px 12px 4px 32px !important;
    font-size: 0.813rem !important;
    min-height: 32px !important;
}

.shell-nav-text[b-08be0hjh5r] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* ── Main content ────────────────────────────────────────────────────────── */

.mud-main-content[b-08be0hjh5r] {
    min-height: 100vh;
    background-color: var(--mud-palette-background);
}

.mud-container[b-08be0hjh5r] {
    padding-bottom: 24px;
}

/* ── Blazor error UI ─────────────────────────────────────────────────────── */

#blazor-error-ui[b-08be0hjh5r] {
    background: #FEF3C7;
    border-top: 3px solid #D97706;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
}

#blazor-error-ui .dismiss[b-08be0hjh5r] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.25rem;
    color: #92400E;
}
/* _content/Backstage/Components/Pages/HomeDashboard/HomeDashboard.razor.rz.scp.css */
/* ── Portlet grid ─────────────────────────────────────────────────────── */
.bm-portlet-grid[b-e3hrivcebt] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    min-height: 120px;
}

/* ── Portlet card wrapper ────────────────────────────────────────────── */
.bm-portlet-card[b-e3hrivcebt] {
    position: relative;
    border-radius: 8px;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.bm-portlet-paper[b-e3hrivcebt] {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Edit / drag state ───────────────────────────────────────────────── */
.bm-portlet-draggable[b-e3hrivcebt] {
    cursor: grab;
}

.bm-portlet-draggable:active[b-e3hrivcebt] {
    cursor: grabbing;
    opacity: 0.7;
}

.bm-portlet-drop-target[b-e3hrivcebt] {
    box-shadow: 0 0 0 3px var(--mud-palette-primary);
    border-radius: 8px;
}

/* ── Drag handle ─────────────────────────────────────────────────────── */
.bm-portlet-handle[b-e3hrivcebt] {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    cursor: grab;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    padding: 2px 4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bm-portlet-handle:active[b-e3hrivcebt] {
    cursor: grabbing;
}

/* ── Responsive: single column on xs ────────────────────────────────── */
@media (max-width: 600px) {
    .bm-portlet-grid[b-e3hrivcebt] {
        grid-template-columns: 1fr;
    }
}
/* _content/Backstage/Components/Pages/Warehouse/WmsStationLayout.razor.rz.scp.css */
/* WMS-0.4: WmsStationLayout scoped styles
   Designed for warehouse floor tablets (10") and office desktops.
   Dark mode is applied via the .wms-dark class on the root MudLayout. */

/* ── Root layout ──────────────────────────────────────────────────────────── */

.wms-station-layout[b-y1w79shkk1] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Main content area ────────────────────────────────────────────────────── */

.wms-main-content[b-y1w79shkk1] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth momentum scroll on tablets */
}

/* ── Footer / status bar ──────────────────────────────────────────────────── */

.wms-footer[b-y1w79shkk1] {
    position: sticky;
    bottom: 0;
    z-index: 100;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background-color: var(--mud-palette-appbar-background);
    color: var(--mud-palette-appbar-text);
}

.wms-footer-barcode[b-y1w79shkk1] {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.wms-footer-time[b-y1w79shkk1] {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── Dark mode overrides (warehouse floor — reduced glare) ────────────────── */

.wms-dark .wms-footer[b-y1w79shkk1] {
    background-color: #1a1a1a;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.wms-dark .mud-nav-link[b-y1w79shkk1] {
    color: rgba(255, 255, 255, 0.87);
}

.wms-dark .mud-nav-link:hover[b-y1w79shkk1],
.wms-dark .mud-nav-link.active[b-y1w79shkk1] {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ── Light mode (warehouse office) ────────────────────────────────────────── */

.wms-light .wms-footer[b-y1w79shkk1] {
    background-color: #263238;
    color: #eceff1;
}

/* ── Tablet / small-screen optimisations (10" = ~1024px wide landscape) ───── */

@media (max-width: 1024px) {
    /* Enlarge touch targets for gloved warehouse hands */
    .wms-station-layout .mud-nav-link[b-y1w79shkk1] {
        min-height: 48px;
        font-size: 1rem;
        padding: 10px 16px;
    }

    .wms-station-layout .mud-icon-button[b-y1w79shkk1] {
        padding: 10px;
    }

    /* Collapse drawer by default on tablet so more content is visible */
    .wms-footer[b-y1w79shkk1] {
        height: 40px;
        min-height: 40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    /* Phone fallback — hide the last-barcode text, keep essentials */
    .wms-footer-barcode[b-y1w79shkk1] {
        display: none;
    }
}

/* ── Scan-ready pulse animation ───────────────────────────────────────────── */

@keyframes wms-scan-pulse-b-y1w79shkk1 {
    0%   { opacity: 1; }
    50%  { opacity: 0.55; }
    100% { opacity: 1; }
}

.wms-station-layout .mud-chip[data-scan-ready="true"][b-y1w79shkk1] {
    animation: wms-scan-pulse-b-y1w79shkk1 2s ease-in-out infinite;
}
/* _content/Backstage/Components/Shared/ShortcutHelpOverlay.razor.rz.scp.css */
/* ── Backdrop ─────────────────────────────────────────────────────────── */

.shortcut-overlay-backdrop[b-5v51mr35sc] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1300; /* above MudDrawer (1200), below MudDialog (1400) */
    cursor: pointer;
}

/* ── Panel ────────────────────────────────────────────────────────────── */

.shortcut-overlay-panel[b-5v51mr35sc] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1301;
    background: var(--mud-palette-surface);
    border-radius: 12px;
    box-shadow: var(--mud-elevation-8);
    width: min(540px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: shortcut-overlay-in-b-5v51mr35sc 120ms ease-out;
}

@keyframes shortcut-overlay-in-b-5v51mr35sc {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── Header ──────────────────────────────────────────────────────────── */

.shortcut-overlay-header[b-5v51mr35sc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--mud-palette-divider);
    flex-shrink: 0;
}

/* ── Body ────────────────────────────────────────────────────────────── */

.shortcut-overlay-body[b-5v51mr35sc] {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

@media (max-width: 480px) {
    .shortcut-overlay-body[b-5v51mr35sc] {
        grid-template-columns: 1fr;
    }
}

.shortcut-group[b-5v51mr35sc] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shortcut-group-label[b-5v51mr35sc] {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.shortcut-row[b-5v51mr35sc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shortcut-desc[b-5v51mr35sc] {
    font-size: 0.85rem;
    color: var(--mud-palette-text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.shortcut-overlay-footer[b-5v51mr35sc] {
    padding: 10px 20px 14px;
    border-top: 1px solid var(--mud-palette-divider);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ── ShortcutBadge (<kbd>) ───────────────────────────────────────────── */

[b-5v51mr35sc] .shortcut-badge,
.shortcut-badge[b-5v51mr35sc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-family: var(--mud-typography-body2-family, monospace);
    font-weight: 600;
    background: var(--mud-palette-background-grey);
    border: 1px solid var(--mud-palette-divider);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    line-height: 1;
    margin: 0 1px;
    vertical-align: middle;
}
/* _content/Backstage/Components/Shared/UserMenu.razor.rz.scp.css */
.user-menu-header[b-p24nn66whs] {
    min-width: 250px;
}

.user-menu-shell-row[b-p24nn66whs] {
    min-width: 200px;
}
