/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-8dcnzjp159],
.components-reconnect-repeated-attempt-visible[b-8dcnzjp159],
.components-reconnect-failed-visible[b-8dcnzjp159],
.components-pause-visible[b-8dcnzjp159],
.components-resume-failed-visible[b-8dcnzjp159],
.components-rejoining-animation[b-8dcnzjp159] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-retrying[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-failed[b-8dcnzjp159],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-8dcnzjp159] {
    display: block;
}


#components-reconnect-modal[b-8dcnzjp159] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-8dcnzjp159 0.5s both;
    &[open]

    {
        animation: components-reconnect-modal-slideUp-b-8dcnzjp159 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-8dcnzjp159 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }

}

#components-reconnect-modal[b-8dcnzjp159]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-8dcnzjp159 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-8dcnzjp159 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-8dcnzjp159 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-8dcnzjp159 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-8dcnzjp159] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-8dcnzjp159] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-8dcnzjp159] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

#components-reconnect-modal button:hover[b-8dcnzjp159] {
    background-color: #3b6ea2;
}

#components-reconnect-modal button:active[b-8dcnzjp159] {
    background-color: #6b9ed2;
}

.components-rejoining-animation[b-8dcnzjp159] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-8dcnzjp159] {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-8dcnzjp159 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-8dcnzjp159] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-8dcnzjp159 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/SalesOrder/ViewSalesOrders.razor.rz.scp.css */
:root[b-uw0pm8akr1] {
    --page-h-pad: 16px;
}

.sales-orders-container[b-uw0pm8akr1] {
    width: 100%;
    margin: 0;
    padding-left: var(--page-h-pad);
    padding-right: var(--page-h-pad);
}

.po-grid table[b-uw0pm8akr1] {
    table-layout: auto;
    border-collapse: collapse;
    width: 100%;
}

.po-grid th[b-uw0pm8akr1], .po-grid td[b-uw0pm8akr1] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.po-grid .select-col[b-uw0pm8akr1] {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    position: sticky;
    left: 0;
    z-index: 6;
    background: var(--mud-palette-surface);
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08) inset;
    padding: 0 !important;
}

    .po-grid .select-col .header-select-wrapper[b-uw0pm8akr1],
    .po-grid .select-col .select-wrapper[b-uw0pm8akr1] {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 32px;
    }

.po-grid .order-number-col[b-uw0pm8akr1] {
    position: sticky;
    left: 38px;
    z-index: 5;
    background: var(--mud-palette-surface);
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08) inset;
}

.picked-row[b-uw0pm8akr1] {
    background-color: rgba(76, 175, 80, 0.06);
}

.part-picked-row[b-uw0pm8akr1] {
    background-color: rgba(255, 193, 7, 0.08);
}

.selected-row:not(.picked-row):not(.part-picked-row)[b-uw0pm8akr1] {
    background-color: rgba(33, 150, 243, 0.07);
}

.action-bar[b-uw0pm8akr1] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0.75rem 0;
}

.search-left[b-uw0pm8akr1] {
    min-width: 320px;
    max-width: 520px;
    width: 100%;
}

.actions-col .mud-icon-button[b-uw0pm8akr1] {
    padding: 4px;
    margin: 0 2px;
}

.po-grid th .mud-table-filter[b-uw0pm8akr1],
.po-grid th .mud-table-sort-label[b-uw0pm8akr1] {
    max-width: 18px;
}

.row-spinner-wrapper[b-uw0pm8akr1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 4px;
}

.sales-orders-container[b-uw0pm8akr1] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px); /* tweak if needed */
    min-height: 0;
}

    .sales-orders-container > .mud-stack[b-uw0pm8akr1] {
        flex: 1 1 auto;
        min-height: 0;
    }

.grid-and-actions[b-uw0pm8akr1] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* NEW: horizontal scrollbar wrapper that stays visible */
.grid-scroll-x[b-uw0pm8akr1] {
    overflow-x: auto;
    overflow-y: hidden;
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: var(--mud-palette-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/*
  UPDATED: the grid should only scroll vertically.
  Horizontal scrolling is handled by .grid-scroll-x so its scrollbar is always visible.
*/
.po-grid[b-uw0pm8akr1] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
}

/* Force horizontal overflow when many columns are visible */
.grid-scroll-x .po-grid table[b-uw0pm8akr1] {
    width: max-content;
    min-width: 100%;
}

.action-bar[b-uw0pm8akr1] {
    flex: 0 0 auto;
}

.grid-viewport[b-uw0pm8akr1] {
    position: relative;
}

.sticky-scrollbar[b-uw0pm8akr1] {
    position: sticky;
    bottom: 0;
    z-index: 50;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--mud-palette-surface, #fff);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.sticky-scrollbar__inner[b-uw0pm8akr1] {
    height: 1px;
    width: 0px; /* set by JS */
}
/* /Components/Pages/Stock/StockItems.razor.rz.scp.css */
/* Tune this once for the whole page */
.stock-items-table-wrap[b-6ajd8s7okt] {
    height: calc(100vh - 260px);
    overflow: auto;
}

/* Keep header visible when scrolling */
.stock-items-table-wrap .mud-table-head[b-6ajd8s7okt] {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--mud-palette-surface);
}

/* Your existing sticky columns */
.stock-table .mud-table-head-cell.actions-col[b-6ajd8s7okt],
.stock-table .mud-table-cell.actions-col[b-6ajd8s7okt] {
    position: sticky;
    left: 0;
    z-index: 6; /* above header background */
    background: var(--mud-palette-surface);
    box-shadow: 2px 0 4px -2px rgba(0,0,0,0.15);
    min-width: 160px;
    width: 160px;
    padding-left: 4px;
    padding-right: 4px;
}

.stock-table .mud-table-head-cell.code-col[b-6ajd8s7okt],
.stock-table .mud-table-cell.code-col[b-6ajd8s7okt] {
    position: sticky;
    left: 160px;
    z-index: 6;
    background: var(--mud-palette-surface);
    box-shadow: 2px 0 4px -2px rgba(0,0,0,0.08);
    font-weight: 600;
    min-width: 140px;
    width: 140px;
}

.stock-table[b-6ajd8s7okt] {
    overflow: visible; /* scroll is on wrapper now */
}

.stock-table .mud-icon-button[b-6ajd8s7okt] {
    margin: 0 2px;
}

media (max-width: 900px)[b-6ajd8s7okt] {
.stock-items-table-wrap

{
    height: calc(100vh - 300px);
}

.stock-table .mud-table-head-cell.actions-col[b-6ajd8s7okt],
.stock-table .mud-table-cell.actions-col[b-6ajd8s7okt] {
    min-width: 140px;
    width: 140px;
}

.stock-table .mud-table-head-cell.code-col[b-6ajd8s7okt],
.stock-table .mud-table-cell.code-col[b-6ajd8s7okt] {
    left: 140px;
}

}
