@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';
@import '_content/R2.Wasm.Common/R2.Wasm.Common.zziujuw956.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
.app-layout[b-lag1h3tpdu] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-header[b-lag1h3tpdu] {
    display: flex;
    align-items: center;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    background-color: #1a1a2e;
    color: white;
    gap: 24px;
    flex-shrink: 0;
}

.app-header-brand[b-lag1h3tpdu] {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.app-header-nav[b-lag1h3tpdu] {
    display: flex;
    gap: 16px;
    flex: 1;
}

.app-header-nav a[b-lag1h3tpdu] {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

    .app-header-nav a:hover[b-lag1h3tpdu] {
        color: white;
        background: rgba(255,255,255,0.1);
    }

.app-header-user[b-lag1h3tpdu] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-name[b-lag1h3tpdu] {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.btn-logout[b-lag1h3tpdu] {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

    .btn-logout:hover[b-lag1h3tpdu] {
        background: rgba(255,255,255,0.1);
        color: white;
    }

.app-main[b-lag1h3tpdu] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-p0jmde7j7i] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-p0jmde7j7i] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-p0jmde7j7i] {
    font-size: 1.1rem;
}

.bi[b-p0jmde7j7i] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-p0jmde7j7i] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-p0jmde7j7i] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-p0jmde7j7i] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-p0jmde7j7i] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-p0jmde7j7i] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-p0jmde7j7i] {
        padding-bottom: 1rem;
    }

    .nav-item[b-p0jmde7j7i]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-p0jmde7j7i]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-p0jmde7j7i]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-p0jmde7j7i] {
        display: none;
    }

    .collapse[b-p0jmde7j7i] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-p0jmde7j7i] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/FactoryDetailPanel.razor.rz.scp.css */
/* ── Backdrop ─────────────────────────────────────────────────────────── */
.dp-backdrop[b-ifrz1c8oqz] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 999;
}

/* ── Slide-in panel ───────────────────────────────────────────────────── */
.dp-panel[b-ifrz1c8oqz] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.dp-panel.open[b-ifrz1c8oqz] {
    transform: translateX(0);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.dp-header[b-ifrz1c8oqz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #dde3ea;
    font-size: 15px;
    font-weight: 600;
    color: #1a2433;
    flex-shrink: 0;
}

.dp-close[b-ifrz1c8oqz] {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.dp-close:hover[b-ifrz1c8oqz] {
    background: #f0f4f8;
    color: #222;
}

/* ── Scrollable body ──────────────────────────────────────────────────── */
.dp-body[b-ifrz1c8oqz] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.dp-footer[b-ifrz1c8oqz] {
    padding: 12px 16px;
    border-top: 1px solid #dde3ea;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Section separator ────────────────────────────────────────────────── */
.dp-section[b-ifrz1c8oqz] {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #8a96a3;
    margin: 18px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #edf0f3;
    font-weight: 600;
}

.dp-section:first-child[b-ifrz1c8oqz] {
    margin-top: 0;
}

/* ── Field wrapper ────────────────────────────────────────────────────── */
.dp-field[b-ifrz1c8oqz] {
    margin-bottom: 10px;
    flex: 1;
}

.dp-field label[b-ifrz1c8oqz] {
    display: block;
    font-size: 11px;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
    font-weight: 500;
}

/* Read-only value */
.dp-ro[b-ifrz1c8oqz] {
    font-size: 14px;
    color: #1a2433;
    min-height: 20px;
    word-break: break-word;
}


/* ── Row layout (side-by-side fields) ────────────────────────────────── */
.dp-row[b-ifrz1c8oqz] {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* ── Special handling badge ───────────────────────────────────────────── */
.dp-badge[b-ifrz1c8oqz] {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
/* /Pages/FactoryGrid.razor.rz.scp.css */
/* QuickGrid scroll container — acts as the scroll ancestor for virtualization */
.grid-wrapper[b-92kpon23no] {
    flex: 1;
    min-height: 0;
    overflow: auto;  /* QuickGrid virtualization requires an ancestor with overflow:auto */
}

/* QuickGrid table */
[b-92kpon23no] .factory-qg {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Header */
[b-92kpon23no] .factory-qg thead tr {
    position: sticky;
    top: 0;
    z-index: 1;
}

[b-92kpon23no] .factory-qg thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #212529;
    text-align: left;
    user-select: none;
}

/* Sortable header button (QuickGrid wraps sort columns in a <button>) */
[b-92kpon23no] .factory-qg thead th button {
    all: unset;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #212529;
}

[b-92kpon23no] .factory-qg thead th button:after {
    content: '';
}

/* Rows */
[b-92kpon23no] .factory-qg tbody tr td {
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 4px 8px;
    vertical-align: middle;
    color: #212529;
}

[b-92kpon23no] .factory-qg tbody tr:hover td {
    background: rgba(0, 0, 0, .075);
}

/* Column width helpers */
[b-92kpon23no] .col-img  { width: 70px;  min-width: 70px; }
[b-92kpon23no] .col-xs   { width: 70px;  min-width: 55px; text-align: right; }
[b-92kpon23no] .col-sm   { width: 90px;  min-width: 70px; }
[b-92kpon23no] .col-md   { width: 160px; min-width: 100px; }
[b-92kpon23no] .col-lg   { width: 200px; min-width: 120px; }
[b-92kpon23no] .col-sku  { width: 130px; min-width: 90px; font-weight: 500; }
[b-92kpon23no] .col-desc { width: 280px; min-width: 150px; }
[b-92kpon23no] .col-date { width: 100px; min-width: 80px; }

/* Row cells — fill full cell for reliable double-click target */
[b-92kpon23no] .factory-qg .row-cell {
    display: block;
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Pages/FactoryQuoteSheet.razor.rz.scp.css */
.factory-page[b-hy3umrapm5] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0 16px 16px;
}

.filter-strip[b-hy3umrapm5] {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 0 10px;
    flex-wrap: wrap;
}

.filter-item[b-hy3umrapm5] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label[b-hy3umrapm5] {
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
}

.filter-check[b-hy3umrapm5] {
    padding-bottom: 4px;
}

.filter-btn[b-hy3umrapm5] {
    margin-bottom: 0;
}


.error-bar[b-hy3umrapm5] {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.error-close[b-hy3umrapm5] {
    cursor: pointer;
    font-weight: 600;
    padding: 0 4px;
}

