/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-3q66rj0hbq] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

main[b-3q66rj0hbq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.main[b-3q66rj0hbq] {
    flex: 1 1 0;
    min-width: 0;
}

.sidebar[b-3q66rj0hbq] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-3q66rj0hbq] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-3q66rj0hbq]  a, .top-row[b-3q66rj0hbq]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-3q66rj0hbq]  a:hover, .top-row[b-3q66rj0hbq]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-3q66rj0hbq]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-3q66rj0hbq] {
        justify-content: space-between;
    }

    .top-row[b-3q66rj0hbq]  a, .top-row[b-3q66rj0hbq]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-3q66rj0hbq] {
        flex-direction: row;
    }

    .sidebar[b-3q66rj0hbq] {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
        flex: 0 0 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.2s ease;
        overflow: hidden;
        padding: 0;
    }

    .sidebar.collapsed[b-3q66rj0hbq] {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        flex: 0 0 64px !important;
    }

    .top-row[b-3q66rj0hbq] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-3q66rj0hbq]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-3q66rj0hbq], article[b-3q66rj0hbq] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ll30pn75d7] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-ll30pn75d7] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ll30pn75d7] {
    font-size: 1.1rem;
}

.nav-item[b-ll30pn75d7]  a .bi,
.nav-collapse-button .bi[b-ll30pn75d7] {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    line-height: 1;
}

.nav-item[b-ll30pn75d7] {
    font-size: 1rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ll30pn75d7] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ll30pn75d7] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ll30pn75d7]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-ll30pn75d7]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ll30pn75d7]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ll30pn75d7] {
    display: flex;
    flex-direction: column;
}

.nav-scrollable nav[b-ll30pn75d7] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.nav-collapse-item[b-ll30pn75d7] {
    margin-top: auto;
    padding-bottom: 1rem;
}

.nav-collapse-button[b-ll30pn75d7] {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    text-align: left;
}

.nav-collapse-button:hover[b-ll30pn75d7] {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.top-row.collapsed[b-ll30pn75d7] {
    padding-left: 0 !important;
}

.top-row.collapsed .container-fluid[b-ll30pn75d7] {
    justify-content: center;
}

.top-row.collapsed .navbar-brand[b-ll30pn75d7] {
    display: none;
}

.nav-scrollable.collapsed .nav-item[b-ll30pn75d7]  a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.nav-scrollable.collapsed .nav-item[b-ll30pn75d7]  a .bi {
    margin-right: 0;
}

.nav-scrollable.collapsed .nav-item[b-ll30pn75d7]  a .nav-text {
    display: none;
}

.nav-scrollable.collapsed .nav-collapse-button[b-ll30pn75d7] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.nav-scrollable.collapsed .nav-collapse-button .bi[b-ll30pn75d7] {
    margin-right: 0;
}

.nav-scrollable.collapsed .nav-collapse-button .nav-text[b-ll30pn75d7] {
    display: none;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ll30pn75d7] {
        display: none;
    }

    .collapse[b-ll30pn75d7] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-ll30pn75d7] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/AddEditCleanroomJob.razor.rz.scp.css */
.cleanroom-editor[b-jhta9t985i] {
    padding: 16px 18px 20px;
    color: #111827;
}

.editor-header[b-jhta9t985i] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.editor-header h2[b-jhta9t985i] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.editor-header p[b-jhta9t985i] {
    margin: 4px 0 0;
    color: #6b7280;
}

.editor-state[b-jhta9t985i] {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #6b7280;
}

.editor-error[b-jhta9t985i] {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.form-grid[b-jhta9t985i] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid label[b-jhta9t985i],
.part-row label[b-jhta9t985i] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.form-grid span[b-jhta9t985i],
.part-row span[b-jhta9t985i] {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-grid .wide[b-jhta9t985i] {
    grid-column: 1 / -1;
}

.status-readonly[b-jhta9t985i] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.status-readonly > span[b-jhta9t985i] {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-display[b-jhta9t985i] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
}

.status-editor[b-jhta9t985i] {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.status-change-row[b-jhta9t985i] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.status-fields[b-jhta9t985i] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.status-fields label[b-jhta9t985i] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.status-change-actions[b-jhta9t985i] {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.employee-picker[b-jhta9t985i] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.employee-button[b-jhta9t985i] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 82px;
    padding: 8px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.employee-button:hover[b-jhta9t985i] {
    border-color: #93c5fd;
    background: #eff6ff;
}

.employee-button.selected[b-jhta9t985i] {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
}

.employee-photo-wrap[b-jhta9t985i] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #e5e7eb;
}

.employee-photo-wrap img[b-jhta9t985i] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initials[b-jhta9t985i] {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 900;
}

.status-history[b-jhta9t985i] {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.status-history h3[b-jhta9t985i] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.history-row[b-jhta9t985i] {
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.history-row span[b-jhta9t985i] {
    display: inline-block;
    margin-left: 8px;
    color: #6b7280;
    font-size: 0.8rem;
}

.history-row p[b-jhta9t985i] {
    margin: 4px 0 0;
    color: #374151;
}

.parts-editor[b-jhta9t985i] {
    margin-top: 20px;
}

.section-title[b-jhta9t985i] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-title h3[b-jhta9t985i] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.empty-parts[b-jhta9t985i] {
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
}

.part-row[b-jhta9t985i] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    align-items: end;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

.editor-actions[b-jhta9t985i] {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 20px -18px -20px;
    padding: 12px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

@media (max-width: 620px) {
    .form-grid[b-jhta9t985i],
    .part-row[b-jhta9t985i],
    .status-change-row[b-jhta9t985i] {
        grid-template-columns: 1fr;
    }

    .editor-actions[b-jhta9t985i] {
        justify-content: stretch;
    }
}
/* /Pages/AllBrands.razor.rz.scp.css */
/* =========================================================
   INVENTORY CARDS — CLEAN CSS
   - Fluid typography via container queries (with fallbacks)
   - Single source of truth for column widths via CSS vars
   - Notes chips wrap as units; table columns shrink gracefully
   ========================================================= */

/* ------------------------------
   Base component + responsive knobs
   ------------------------------ */
.inv[b-7c1jab24ed] {
  /* Global sizing knobs (em-based where it matters) */
  --scale: 1;

  /* Defaults (will be overridden/scaled inside cards) */
  --row-gap: 8px;

  /* Enable container query sizing for the component itself */
  container-type: inline-size;

  /* Fluid base font size for the component (12 → 16px) */
  --font-base: clamp(12px, 1.3cqw + 9px, 16px);
  font-size: var(--font-base);

  /* Fallback if container queries aren’t supported */
}
@supports not (container-type: inline-size) {
  .inv[b-7c1jab24ed] {
    --font-base: clamp(12px, 1.0vw + 8px, 16px);
    font-size: var(--font-base);
  }
}

/* Text scales off the component/card font-size using em */
.inv .title[b-7c1jab24ed] { font-size: 1.20em; font-weight: 800; }
.inv .label[b-7c1jab24ed] { font-size: 0.70em; color: #6b7280; letter-spacing: .035em; text-transform: uppercase; }
.inv .value[b-7c1jab24ed] { font-size: 0.95em; font-weight: 600; color: #111827; }
.inv .chip[b-7c1jab24ed]  { font-size: 0.90em; font-weight: 700; }
.inv .tab[b-7c1jab24ed]   { font-size: 0.95em; font-weight: 700; }
.inv .tab .count[b-7c1jab24ed] { font-size: 0.80em; }
.inv .meter-mini-text[b-7c1jab24ed] { font-size: 0.85em; font-weight: 700; width: 38px; text-align: right; }
.inv .source-text[b-7c1jab24ed] { font-size: 0.95em; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .toast[b-7c1jab24ed] { font-size: 0.95em; }

.title[b-7c1jab24ed] { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; }
.empty[b-7c1jab24ed] { padding: 8px 0; color: #6b7280; }


/* Panel + row base (keep your previous look) */
.inv .search-panel[b-7c1jab24ed] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

    .inv .search-panel .row[b-7c1jab24ed] {
        display: grid;
        gap: 10px;
        align-items: center
    }

    /* Main row now includes the 'Must Contain' field before Actions */
    .inv .search-panel .r-main[b-7c1jab24ed] {
        /* Part | OR | Generic | Divider | Brand | Qty | MustContain | Actions */
        grid-template-columns: 1.1fr auto 1.1fr auto 0.9fr 0.45fr minmax(16ch, 1.2fr) auto;
    }

    /* Inputs */
    .inv .search-panel .tb[b-7c1jab24ed] {
        height: 2.4em;
        padding: 0 .8em;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
        color: #111827;
        min-width: 0


    }

/* Responsive tweaks */
@container (max-width: 900px) {
    .inv .search-panel .r-main[b-7c1jab24ed] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
    }
}

@container (max-width: 700px) {
    .inv .search-panel .r-main[b-7c1jab24ed] {
        grid-template-columns: 1fr 1fr; /* stack neatly */
    }

    .inv .search-panel .or-chip[b-7c1jab24ed],
    .inv .search-panel .vdiv[b-7c1jab24ed] {
        display: none;
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-7c1jab24ed] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

        .inv .search-panel .actions .btn[b-7c1jab24ed] {
            flex: 1 1 auto;
        }

    .inv .search-panel .tb.small[b-7c1jab24ed] {
        max-width: none;
        text-align: left;
    }
}

@container (max-width: 520px) {
    .inv .search-panel .r-adv[b-7c1jab24ed] {
        grid-template-columns: 1fr;
    }
}

/* Fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width: 900px) {
        .inv .search-panel .r-main[b-7c1jab24ed] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
        }
    }

    @media (max-width: 700px) {
        .inv .search-panel .r-main[b-7c1jab24ed] {
            grid-template-columns: 1fr 1fr;
        }

        .inv .search-panel .r-adv[b-7c1jab24ed] {
            grid-template-columns: 1fr;
        }
    }
}

        /* Optional width hint for the new field */
        .inv .search-panel .tb.contain[b-7c1jab24ed] {
            min-width: 16ch; /* lets it breathe on wider screens */
        }

        .inv .search-panel .tb.small[b-7c1jab24ed] {
            max-width: 10ch;
            text-align: right
        }

        .inv .search-panel .tb[b-7c1jab24ed]::placeholder {
            color: #9ca3af
        }

        .inv .search-panel .tb:focus[b-7c1jab24ed] {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59,130,246,.25)
        }

    /* OR chip */
    .inv .search-panel .or-chip[b-7c1jab24ed] {
        align-self: center;
        justify-self: center;
        height: 2.0em;
        padding: 0 .6em;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 800;
        border-radius: 9999px;
        line-height: 1;
    }

    /* Vertical divider after Generic # */
    .inv .search-panel .vdiv[b-7c1jab24ed] {
        width: 1px;
        height: 2.4em;
        background: #e5e7eb;
        border-radius: 1px;
        justify-self: center;
        align-self: center;
    }

/* Buttons + actions */
.inv .btn[b-7c1jab24ed] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 2.2em;
    padding: 0 .9em;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .inv .btn:hover[b-7c1jab24ed] {
        background: #f3f4f6
    }

    .inv .btn:focus-visible[b-7c1jab24ed] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,.45)
    }

    .inv .btn.primary[b-7c1jab24ed] {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff
    }

        .inv .btn.primary:hover[b-7c1jab24ed] {
            background: #1d4ed8
        }

    .inv .btn.ghost[b-7c1jab24ed] {
        background: transparent
    }

.inv .search-panel .actions[b-7c1jab24ed] {
    display: inline-flex;
    gap: 8px;
    justify-self: end
}

/* Details-based toggle: shows/hides advanced filters with no JS */
.inv .adv-toggle[b-7c1jab24ed] {
    margin-top: 10px;
    display: block
}

    .inv .adv-toggle > summary[b-7c1jab24ed] {
        list-style: none
    }

        .inv .adv-toggle > summary[b-7c1jab24ed]::-webkit-details-marker {
            display: none
        }

    .inv .adv-toggle > summary[b-7c1jab24ed] {
        display: inline-flex;
        margin-left: auto
    }

    .inv .adv-toggle[open] > summary[b-7c1jab24ed] {
        margin-bottom: 8px
    }

    .inv .adv-toggle .label-hide[b-7c1jab24ed] {
        display: none
    }

    .inv .adv-toggle[open] .label-show[b-7c1jab24ed] {
        display: none
    }

    .inv .adv-toggle[open] .label-hide[b-7c1jab24ed] {
        display: inline
    }

/* Advanced row grid */
.inv .search-panel .r-adv[b-7c1jab24ed] {
    margin-top: 10px;
    grid-template-columns: 1fr 1fr minmax(280px,auto);
    align-items: start;
}

.inv .search-panel .opt[b-7c1jab24ed] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px
}

    .inv .search-panel .opt label[b-7c1jab24ed] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 9999px;
        font-weight: 600;
        line-height: 1
    }

    .inv .search-panel .opt input[type="checkbox"][b-7c1jab24ed] {
        width: 1em;
        height: 1em;
        accent-color: #2563eb
    }

/* Responsive (container-first) */
@container (max-width:900px) {
    .inv .search-panel .r-main[b-7c1jab24ed] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
    }

    .inv .search-panel .r-adv[b-7c1jab24ed] {
        grid-template-columns: 1fr 1fr minmax(240px,auto)
    }
}

@container (max-width:700px) {
    .inv .search-panel .r-main[b-7c1jab24ed] {
        grid-template-columns: 1fr 1fr
    }

    .inv .search-panel .or-chip[b-7c1jab24ed], .inv .search-panel .vdiv[b-7c1jab24ed] {
        display: none
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-7c1jab24ed] {
        grid-column: 1 / -1;
        justify-self: stretch
    }

        .inv .search-panel .actions .btn[b-7c1jab24ed] {
            flex: 1 1 auto
        }

    .inv .search-panel .tb.small[b-7c1jab24ed] {
        max-width: none;
        text-align: left
    }
}

@container (max-width:520px) {
    .inv .search-panel .r-adv[b-7c1jab24ed] {
        grid-template-columns: 1fr
    }
}

/* Viewport fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width:900px) {
        .inv .search-panel .r-main[b-7c1jab24ed] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
        }
    }

    @media (max-width:700px) {
        .inv .search-panel .r-main[b-7c1jab24ed] {
            grid-template-columns: 1fr 1fr
        }

        .inv .search-panel .r-adv[b-7c1jab24ed] {
            grid-template-columns: 1fr
        }
    }
}




/* ------------------------------
   Tabs
   ------------------------------ */
.tabs[b-7c1jab24ed] {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; margin: 0 0 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.tab[b-7c1jab24ed] {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #374151; font-weight: 700;
}
.tab .count[b-7c1jab24ed] { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 6px; }
.tab:hover[b-7c1jab24ed] { background: #f3f4f6; }
.tab.active[b-7c1jab24ed] { background: #111827; color: #fff; }
.tab.active .count[b-7c1jab24ed] { background: #1f2937; border-color: #1f2937; color: #fff; }

.dot[b-7c1jab24ed] { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.all[b-7c1jab24ed] { background: #6b7280; }
.dot.inv[b-7c1jab24ed] { background: #2563eb; }
.dot.po[b-7c1jab24ed]  { background: #f59e0b; }
.dot.ext[b-7c1jab24ed] { background: #0ea5e9; }

/* Lay the action buttons inside the tabs row */
.inv .tabs[b-7c1jab24ed] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* already present in your responsive rules; keep it */
}

    .inv .tabs .tabs-spacer[b-7c1jab24ed] {
        flex: 1 1 auto;
    }

    /* Actions when inside tabs */
    .inv .tabs .quick-actions.inline[b-7c1jab24ed] {
        display: inline-flex;
        gap: 6px;
        margin-left: auto;
    }

    .inv .tabs .count-btn[b-7c1jab24ed] {
        position: relative;
        height: 28px; /* harmonize with your .icon-btn */
        width: 28px;
        padding: 0;
    }

        .inv .tabs .count-btn .badge[b-7c1jab24ed] {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9999px;
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            font-size: 0.72em;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff; /* contrast ring on light bg */
        }

/* When the tabs wrap on small widths, let actions drop to their own line cleanly */
@media (max-width: 980px) {
    .inv .tabs[b-7c1jab24ed] {
        flex-wrap: wrap;
    }

        .inv .tabs .quick-actions.inline[b-7c1jab24ed] {
            width: 100%;
            justify-content: flex-start; /* or center / space-between if you prefer */
            margin-top: 6px;
        }
}

/* ------------------------------
   Cards
   ------------------------------ */
.inv .cards[b-7c1jab24ed] { display: grid; gap: 14px; }

.inv .inv-card[b-7c1jab24ed] {
  position: relative;
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
  padding: 10px; padding-top: 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;

  /* Each card is its own scaling container */
  container-type: inline-size;
  --card-fsz: clamp(12px, 1.4cqw + 8px, 16px);
  font-size: var(--card-fsz);

  /* Fluid column widths for both summary + items */
  /* Summary row columns (Brand | Part | Description | Qty | Price | Chev) */
  --w-brand:     clamp(5.5em, 10cqw, 7em);
  --w-part:      clamp(9em,  18cqw, 12em);
  --w-desc-min:  clamp(10em, 32cqw, 18em);
  --w-qty:       clamp(4.5em,  9cqw,  6em);
  --w-price:     clamp(5.5em, 10cqw, 7.5em);
  --w-exp:       2.5em;

  /* Item row columns (Chevron | Gen | Seq | Brand | PN | Nomen | Qty | UOM | Pkg | Bin | Actions) */
  --col-gen:       clamp(5em,   10cqw, 6em);
  --col-seq:       clamp(3.8em,  8cqw, 4.5em);
  --col-brand:     clamp(5em,   10cqw, 6em);
  --col-pn-min:    clamp(8em,   28cqw, 12em);
  --col-nomen-min: clamp(9em,   30cqw, 16em);
  --col-qty:       clamp(3.2em,  7cqw, 6em);     /* more compressible qty */
  --col-uom:       clamp(3.8em,  8cqw, 5em);
  --col-pkg:       clamp(3.6em,  8cqw, 6.5em);
  --bin-w:         clamp(6.5em, 14cqw, 12em);
  --actions-w:     clamp(7em,   16cqw, 11em);
  --row-gap:       clamp(4px,   1cqw,  8px);
}

/* Background by type */
.inv .inv-card.type-inventory[b-7c1jab24ed] { background: #ffffff; }
.inv .inv-card.type-purchaseorder[b-7c1jab24ed] { background: #fffbeb; }
.inv .inv-card.type-external[b-7c1jab24ed] { background: #f0f9ff; }

/* Expanded accent */
.inv .inv-card.is-open[b-7c1jab24ed] { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.inv .inv-card.type-inventory.is-open[b-7c1jab24ed] { border-color: #2563eb; box-shadow: 0 6px 24px rgba(37,99,235,.18); }
.inv .inv-card.type-purchaseorder.is-open[b-7c1jab24ed] { border-color: #f59e0b; box-shadow: 0 6px 24px rgba(245,158,11,.18); }
.inv .inv-card.type-external.is-open[b-7c1jab24ed] { border-color: #0ea5e9; box-shadow: 0 6px 24px rgba(14,165,233,.18); }
.inv .inv-card.is-open[b-7c1jab24ed]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: 10px 0 0 10px;
}
.inv .inv-card.type-inventory.is-open[b-7c1jab24ed]::before { background: #2563eb; }
.inv .inv-card.type-purchaseorder.is-open[b-7c1jab24ed]::before { background: #f59e0b; }
.inv .inv-card.type-external.is-open[b-7c1jab24ed]::before { background: #0ea5e9; }

/* Right column (actions area) */
.inv .card-actions[b-7c1jab24ed] { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.inv .aside-inline[b-7c1jab24ed] { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.inv .aside-stack[b-7c1jab24ed] { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inv .aside-stack.tight[b-7c1jab24ed] { gap: 6px; }
.inv .stack-row[b-7c1jab24ed] { display: flex; align-items: center; gap: 8px; }

/* Top chips row */
.inv .card-meta[b-7c1jab24ed] {
  position: absolute; top: -11px; left: 12px;
  display: flex; gap: 6px; z-index: 1; flex-wrap: wrap;
}

/* Base chip */
.inv .chip[b-7c1jab24ed] {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 2px 8px; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Clickable chips */
.inv .chip.item.total[b-7c1jab24ed],
.inv .chip.qual[b-7c1jab24ed] {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.inv .chip.item.total:hover[b-7c1jab24ed],
.inv .chip.qual:hover[b-7c1jab24ed] { background: #f3f4f6; }
.inv .chip.item.total.active[b-7c1jab24ed],
.inv .chip.qual.active[b-7c1jab24ed] { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Total chip */
.inv .chip.item.total[b-7c1jab24ed] { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }
.inv .chip.item.total.active[b-7c1jab24ed] { box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px) scale(1.03); }

/* Quality chips */
.inv .chip.qual[b-7c1jab24ed] { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; }
.inv .chip.qual.disabled[b-7c1jab24ed] { opacity: 1; cursor: default; pointer-events: none; transform: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.inv .chip.qual.disabled .qty[b-7c1jab24ed] { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.inv .chip.qual.disabled .dot[b-7c1jab24ed] { opacity: .7; }
.inv .chip.qual.active[b-7c1jab24ed] { transform: translateY(-1px) scale(1.03); color: #fff; }
.inv .chip.qual.active .qty[b-7c1jab24ed] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.inv .chip.qual.active .dot[b-7c1jab24ed] { background: #fff; }
.inv .chip.qual.good[b-7c1jab24ed] { border-color: #86efac; background: #ecfdf5; }
.inv .chip.qual.good .dot[b-7c1jab24ed] { background: #16a34a; }
.inv .chip.qual.active.good[b-7c1jab24ed] { background: #16a34a; border-color: #15803d; box-shadow: 0 0 0 3px rgba(22,163,74,.25), 0 6px 16px rgba(22,163,74,.20); }
.inv .chip.qual.ok[b-7c1jab24ed] { border-color: #fcd34d; background: #fffbeb; }
.inv .chip.qual.ok .dot[b-7c1jab24ed] { background: #f59e0b; }
.inv .chip.qual.active.ok[b-7c1jab24ed] { background: #f59e0b; border-color: #b45309; box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 6px 16px rgba(245,158,11,.20); }
.inv .chip.qual.bad[b-7c1jab24ed] { border-color: #fca5a5; background: #fef2f2; }
.inv .chip.qual.bad .dot[b-7c1jab24ed] { background: #ef4444; }
.inv .chip.qual.active.bad[b-7c1jab24ed] { background: #ef4444; border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 6px 16px rgba(239,68,68,.20); }

/* Keyboard focus */
.inv .chip:focus-visible[b-7c1jab24ed] { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }

/* ------------------------------
   Summary row
   ------------------------------ */
.inv .summary-row[b-7c1jab24ed] { cursor: pointer; user-select: none; }
.inv .grid.row1[b-7c1jab24ed] {
  display: grid;
  grid-template-columns:
    var(--w-brand)
    var(--w-part)
    minmax(var(--w-desc-min), 1fr)
    var(--w-qty)
    var(--w-price)
    var(--w-exp);
  gap: 8px; align-items: center;
}
.inv .field[b-7c1jab24ed] { min-width: 0; }
.inv .w-qty[b-7c1jab24ed], .inv .w-price[b-7c1jab24ed], .inv .w-expander[b-7c1jab24ed] { text-align: right; }

/* Header open accent */
.inv .inv-card.is-open .summary-row[b-7c1jab24ed] {
  background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, rgba(255,255,255,1) 85%);
  border: 1px solid rgba(0,0,0,.08); padding: 8px; border-radius: 10px;
}

/* ------------------------------
   Mini meter
   ------------------------------ */
.meter-mini[b-7c1jab24ed] { width: 90px; height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; display: inline-block; }
.meter-mini .meter-fill[b-7c1jab24ed] { height: 100%; width: 0%; transition: width .18s ease; }
.meter-mini .meter-fill.low[b-7c1jab24ed]  { background: #10b981; }
.meter-mini .meter-fill.mid[b-7c1jab24ed]  { background: #f59e0b; }
.meter-mini .meter-fill.high[b-7c1jab24ed] { background: #ef4444; }

/* ------------------------------
   Items list + rows
   ------------------------------ */
.inv .items-list[b-7c1jab24ed] {
  display: flex; flex-direction: column; gap: var(--row-gap); margin-top: 10px;

  /* [chev][Gen][Seq][Brand][PN][Nomen][Qty][UOM][Pkg][Bin][Actions] */
  --cols: 26px
          var(--col-gen) var(--col-seq) var(--col-brand)
          minmax(var(--col-pn-min), 1fr)
          minmax(var(--col-nomen-min), 1.2fr)
          var(--col-qty) var(--col-uom) var(--col-pkg)
          var(--bin-w) var(--actions-w);
}

.inv .item-row[b-7c1jab24ed] {
  display: grid; grid-template-columns: var(--cols);
  gap: 8px; align-items: center;
  background: #fff; border: 1px dashed #e5e7eb; border-radius: 8px;
  padding: 6px 8px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv .item-row.is-open[b-7c1jab24ed] {
  background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 1px 10px rgba(37,99,235,.08);
  position: relative;
}
.inv .type-purchaseorder .item-row.is-open[b-7c1jab24ed] { background: #fff7ed; border-color: #fde68a; box-shadow: 0 1px 10px rgba(245,158,11,.10); }
.inv .type-external .item-row.is-open[b-7c1jab24ed]      { background: #e0f2fe; border-color: #bae6fd; box-shadow: 0 1px 10px rgba(14,165,233,.10); }
.inv .item-row.is-open[b-7c1jab24ed]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #2563eb; border-radius: 8px 0 0 8px;
}
.inv .type-purchaseorder .item-row.is-open[b-7c1jab24ed]::before { background: #f59e0b; }
.inv .type-external      .item-row.is-open[b-7c1jab24ed]::before { background: #0ea5e9; }

.inv .item-row .cell[b-7c1jab24ed] { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .qty[b-7c1jab24ed] { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-7c1jab24ed],
.inv .item-row .bin[b-7c1jab24ed] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-7c1jab24ed] { max-width: 6ch; cursor: help; }
.inv .item-row .bin[b-7c1jab24ed]  { max-width: 12ch; cursor: help; }

/* Row actions — fixed width aligned to the right */
.inv .row-actions[b-7c1jab24ed] {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: nowrap; min-width: 0;
}
.inv .item-row .row-actions[b-7c1jab24ed] {
  width: var(--actions-w); justify-self: end; padding-left: 10px; border-left: 1px solid #e5e7eb; overflow: hidden;
}
.inv .row-actions .icon-btn[b-7c1jab24ed] { flex: 0 0 auto; }

/* Buttons & icons (em-based to follow text) */
.inv .icon[b-7c1jab24ed] { width: 1.10em; height: 1.10em; display: block; stroke: currentColor; fill: none; }
.inv .icon-btn[b-7c1jab24ed] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
  height: 2.00em; padding: 0 0.60em; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; }
.inv .icon-btn:hover[b-7c1jab24ed] { background: #f3f4f6; }
.inv .icon-btn.primary[b-7c1jab24ed] { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv .icon-btn.ghost[b-7c1jab24ed] { background: transparent; }
.inv .icon-btn.chevron[b-7c1jab24ed] { width: 2.00em; height: 2.00em; padding: 0; justify-content: center; }
.inv .icon-btn.chevron.small[b-7c1jab24ed] { width: 1.60em; height: 1.60em; }
.inv .icon-btn.only-icon.sq[b-7c1jab24ed] { width: 2.00em; height: 2.00em; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.inv .icon-btn.has-prev[b-7c1jab24ed] { border-style: solid; border-color: #c7d2fe; background: #eef2ff; }
.inv .icon-btn.has-prev:hover[b-7c1jab24ed] { background: #e0e7ff; border-color: #a5b4fc; }

.inv .icon-btn .ico[b-7c1jab24ed] { line-height: 1; display: inline-block; } /* emoji alignment */

/* Details panel */
.inv .details[b-7c1jab24ed] { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin: 6px 0 0 26px; }
.inv .details.details-min[b-7c1jab24ed] { display: flex; align-items: center; gap: 8px; }
.inv .additional-title[b-7c1jab24ed] { font-weight: 700; color: #111827; }

/* Type-accented items-list containers */
.inv .inv-card.type-inventory .items-list.accented[b-7c1jab24ed] {
  background: #f7fbff; border-left: 4px solid #2563eb; box-shadow: inset 0 0 0 1px #e6efff;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-7c1jab24ed .16s ease-out both;
}
.inv .inv-card.type-purchaseorder .items-list.accented[b-7c1jab24ed] {
  background: #fff7ed; border-left: 4px solid #f59e0b; box-shadow: inset 0 0 0 1px #fde68a;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-7c1jab24ed .16s ease-out both;
}
.inv .inv-card.type-external .items-list.accented[b-7c1jab24ed] {
  background: #ecfeff; border-left: 4px solid #0ea5e9; box-shadow: inset 0 0 0 1px #bae6fd;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-7c1jab24ed .16s ease-out both;
}
@keyframes showParts-b-7c1jab24ed {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------
   Notes chips (wrap as units; do not collapse text)
   ------------------------------ */
.inv .notes-strip[b-7c1jab24ed] {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 0; grid-column: 2 / -1;
}
.inv .items-list > .notes-strip[b-7c1jab24ed] { margin-left: 26px; } /* align under chevron */

.inv .note-chip[b-7c1jab24ed] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  font-weight: 600; line-height: 1.2;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  white-space: nowrap; flex: 0 0 auto; /* width = content; don’t shrink text */
}
/* remark visibly darker */
.inv .notes-strip .note-chip.remark[b-7c1jab24ed] {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0b3b8a !important;
}

    .inv .notes-strip .note-chip.remark .note-ico[b-7c1jab24ed] {
        color: #1d4ed8; /* blue-700 */
        stroke: currentColor;
    }
.inv .note-ico[b-7c1jab24ed] { width: 14px; height: 14px; stroke: currentColor; flex: 0 0 auto; }
.inv .note-text[b-7c1jab24ed] { flex: 0 1 auto; }

/* ------------------------------
   Container query adjustments (preferred)
   ------------------------------ */

/* Tighten actions & let it grow to fit buttons */
@container (max-width: 780px) {
  .inv .row-actions[b-7c1jab24ed] { gap: 4px; }
  .inv .row-actions .icon-btn[b-7c1jab24ed] { height: 1.8em; padding: 0 0.45em; }
  .inv .row-actions .ico[b-7c1jab24ed] { font-size: 0.95em; line-height: 1; }

  .inv .items-list[b-7c1jab24ed] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom) var(--col-pkg)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}

/* Remove lower-priority columns as space gets tight */
@container (max-width: 640px) {
  .inv .item-row .pkgc[b-7c1jab24ed] { display: none; }
  .inv .items-list[b-7c1jab24ed] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
@container (max-width: 620px) {
  .inv .item-row .seq[b-7c1jab24ed] { display: none; }
  .inv .items-list[b-7c1jab24ed] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Hide Qty (show PN-inline badge if you add it in markup) */
@container (max-width: 560px) {
  .inv .item-row .qty[b-7c1jab24ed] { display: none; }
  .inv .items-list[b-7c1jab24ed] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Wrap actions on ultra-small cards */
@container (max-width: 520px) {
  .inv .row-actions[b-7c1jab24ed] { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
/* Last resort: horizontal scroll */
@container (max-width: 480px) {
  .inv .items-list[b-7c1jab24ed] { overflow-x: auto; }
}

/* ------------------------------
   Traditional media queries (layout tweaks)
   ------------------------------ */
@media (max-width: 980px) {
  .inv .inv-card[b-7c1jab24ed] { grid-template-columns: 1fr; }
  .inv .card-actions[b-7c1jab24ed] { flex-direction: row; }
  .inv .icon-btn[b-7c1jab24ed] { flex: 1; justify-content: center; }
  .inv .aside-inline[b-7c1jab24ed], .inv .aside-stack[b-7c1jab24ed] { align-items: center; }
  .tabs[b-7c1jab24ed] { flex-wrap: wrap; }
  .source-text[b-7c1jab24ed] { max-width: 120px; }
}






/* /Pages/AllPackageCodes.razor.rz.scp.css */
/* =========================================================
   INVENTORY CARDS — CLEAN CSS
   - Fluid typography via container queries (with fallbacks)
   - Single source of truth for column widths via CSS vars
   - Notes chips wrap as units; table columns shrink gracefully
   ========================================================= */

/* ------------------------------
   Base component + responsive knobs
   ------------------------------ */
.inv[b-obfb5zti0x] {
  /* Global sizing knobs (em-based where it matters) */
  --scale: 1;

  /* Defaults (will be overridden/scaled inside cards) */
  --row-gap: 8px;

  /* Enable container query sizing for the component itself */
  container-type: inline-size;

  /* Fluid base font size for the component (12 → 16px) */
  --font-base: clamp(12px, 1.3cqw + 9px, 16px);
  font-size: var(--font-base);

  /* Fallback if container queries aren’t supported */
}
@supports not (container-type: inline-size) {
  .inv[b-obfb5zti0x] {
    --font-base: clamp(12px, 1.0vw + 8px, 16px);
    font-size: var(--font-base);
  }
}

/* Text scales off the component/card font-size using em */
.inv .title[b-obfb5zti0x] { font-size: 1.20em; font-weight: 800; }
.inv .label[b-obfb5zti0x] { font-size: 0.70em; color: #6b7280; letter-spacing: .035em; text-transform: uppercase; }
.inv .value[b-obfb5zti0x] { font-size: 0.95em; font-weight: 600; color: #111827; }
.inv .chip[b-obfb5zti0x]  { font-size: 0.90em; font-weight: 700; }
.inv .tab[b-obfb5zti0x]   { font-size: 0.95em; font-weight: 700; }
.inv .tab .count[b-obfb5zti0x] { font-size: 0.80em; }
.inv .meter-mini-text[b-obfb5zti0x] { font-size: 0.85em; font-weight: 700; width: 38px; text-align: right; }
.inv .source-text[b-obfb5zti0x] { font-size: 0.95em; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .toast[b-obfb5zti0x] { font-size: 0.95em; }

.title[b-obfb5zti0x] { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; }
.empty[b-obfb5zti0x] { padding: 8px 0; color: #6b7280; }


/* Panel + row base (keep your previous look) */
.inv .search-panel[b-obfb5zti0x] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

    .inv .search-panel .row[b-obfb5zti0x] {
        display: grid;
        gap: 10px;
        align-items: center
    }

    /* Main row now includes the 'Must Contain' field before Actions */
    .inv .search-panel .r-main[b-obfb5zti0x] {
        /* Part | OR | Generic | Divider | Brand | Qty | MustContain | Actions */
        grid-template-columns: 1.1fr auto 1.1fr auto 0.9fr 0.45fr minmax(16ch, 1.2fr) auto;
    }

    /* Inputs */
    .inv .search-panel .tb[b-obfb5zti0x] {
        height: 2.4em;
        padding: 0 .8em;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
        color: #111827;
        min-width: 0


    }

/* Responsive tweaks */
@container (max-width: 900px) {
    .inv .search-panel .r-main[b-obfb5zti0x] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
    }
}

@container (max-width: 700px) {
    .inv .search-panel .r-main[b-obfb5zti0x] {
        grid-template-columns: 1fr 1fr; /* stack neatly */
    }

    .inv .search-panel .or-chip[b-obfb5zti0x],
    .inv .search-panel .vdiv[b-obfb5zti0x] {
        display: none;
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-obfb5zti0x] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

        .inv .search-panel .actions .btn[b-obfb5zti0x] {
            flex: 1 1 auto;
        }

    .inv .search-panel .tb.small[b-obfb5zti0x] {
        max-width: none;
        text-align: left;
    }
}

@container (max-width: 520px) {
    .inv .search-panel .r-adv[b-obfb5zti0x] {
        grid-template-columns: 1fr;
    }
}

/* Fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width: 900px) {
        .inv .search-panel .r-main[b-obfb5zti0x] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
        }
    }

    @media (max-width: 700px) {
        .inv .search-panel .r-main[b-obfb5zti0x] {
            grid-template-columns: 1fr 1fr;
        }

        .inv .search-panel .r-adv[b-obfb5zti0x] {
            grid-template-columns: 1fr;
        }
    }
}

        /* Optional width hint for the new field */
        .inv .search-panel .tb.contain[b-obfb5zti0x] {
            min-width: 16ch; /* lets it breathe on wider screens */
        }

        .inv .search-panel .tb.small[b-obfb5zti0x] {
            max-width: 10ch;
            text-align: right
        }

        .inv .search-panel .tb[b-obfb5zti0x]::placeholder {
            color: #9ca3af
        }

        .inv .search-panel .tb:focus[b-obfb5zti0x] {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59,130,246,.25)
        }

    /* OR chip */
    .inv .search-panel .or-chip[b-obfb5zti0x] {
        align-self: center;
        justify-self: center;
        height: 2.0em;
        padding: 0 .6em;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 800;
        border-radius: 9999px;
        line-height: 1;
    }

    /* Vertical divider after Generic # */
    .inv .search-panel .vdiv[b-obfb5zti0x] {
        width: 1px;
        height: 2.4em;
        background: #e5e7eb;
        border-radius: 1px;
        justify-self: center;
        align-self: center;
    }

/* Buttons + actions */
.inv .btn[b-obfb5zti0x] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 2.2em;
    padding: 0 .9em;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .inv .btn:hover[b-obfb5zti0x] {
        background: #f3f4f6
    }

    .inv .btn:focus-visible[b-obfb5zti0x] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,.45)
    }

    .inv .btn.primary[b-obfb5zti0x] {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff
    }

        .inv .btn.primary:hover[b-obfb5zti0x] {
            background: #1d4ed8
        }

    .inv .btn.ghost[b-obfb5zti0x] {
        background: transparent
    }

.inv .search-panel .actions[b-obfb5zti0x] {
    display: inline-flex;
    gap: 8px;
    justify-self: end
}

/* Details-based toggle: shows/hides advanced filters with no JS */
.inv .adv-toggle[b-obfb5zti0x] {
    margin-top: 10px;
    display: block
}

    .inv .adv-toggle > summary[b-obfb5zti0x] {
        list-style: none
    }

        .inv .adv-toggle > summary[b-obfb5zti0x]::-webkit-details-marker {
            display: none
        }

    .inv .adv-toggle > summary[b-obfb5zti0x] {
        display: inline-flex;
        margin-left: auto
    }

    .inv .adv-toggle[open] > summary[b-obfb5zti0x] {
        margin-bottom: 8px
    }

    .inv .adv-toggle .label-hide[b-obfb5zti0x] {
        display: none
    }

    .inv .adv-toggle[open] .label-show[b-obfb5zti0x] {
        display: none
    }

    .inv .adv-toggle[open] .label-hide[b-obfb5zti0x] {
        display: inline
    }

/* Advanced row grid */
.inv .search-panel .r-adv[b-obfb5zti0x] {
    margin-top: 10px;
    grid-template-columns: 1fr 1fr minmax(280px,auto);
    align-items: start;
}

.inv .search-panel .opt[b-obfb5zti0x] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px
}

    .inv .search-panel .opt label[b-obfb5zti0x] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 9999px;
        font-weight: 600;
        line-height: 1
    }

    .inv .search-panel .opt input[type="checkbox"][b-obfb5zti0x] {
        width: 1em;
        height: 1em;
        accent-color: #2563eb
    }

/* Responsive (container-first) */
@container (max-width:900px) {
    .inv .search-panel .r-main[b-obfb5zti0x] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
    }

    .inv .search-panel .r-adv[b-obfb5zti0x] {
        grid-template-columns: 1fr 1fr minmax(240px,auto)
    }
}

@container (max-width:700px) {
    .inv .search-panel .r-main[b-obfb5zti0x] {
        grid-template-columns: 1fr 1fr
    }

    .inv .search-panel .or-chip[b-obfb5zti0x], .inv .search-panel .vdiv[b-obfb5zti0x] {
        display: none
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-obfb5zti0x] {
        grid-column: 1 / -1;
        justify-self: stretch
    }

        .inv .search-panel .actions .btn[b-obfb5zti0x] {
            flex: 1 1 auto
        }

    .inv .search-panel .tb.small[b-obfb5zti0x] {
        max-width: none;
        text-align: left
    }
}

@container (max-width:520px) {
    .inv .search-panel .r-adv[b-obfb5zti0x] {
        grid-template-columns: 1fr
    }
}

/* Viewport fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width:900px) {
        .inv .search-panel .r-main[b-obfb5zti0x] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
        }
    }

    @media (max-width:700px) {
        .inv .search-panel .r-main[b-obfb5zti0x] {
            grid-template-columns: 1fr 1fr
        }

        .inv .search-panel .r-adv[b-obfb5zti0x] {
            grid-template-columns: 1fr
        }
    }
}




/* ------------------------------
   Tabs
   ------------------------------ */
.tabs[b-obfb5zti0x] {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; margin: 0 0 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.tab[b-obfb5zti0x] {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #374151; font-weight: 700;
}
.tab .count[b-obfb5zti0x] { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 6px; }
.tab:hover[b-obfb5zti0x] { background: #f3f4f6; }
.tab.active[b-obfb5zti0x] { background: #111827; color: #fff; }
.tab.active .count[b-obfb5zti0x] { background: #1f2937; border-color: #1f2937; color: #fff; }

.dot[b-obfb5zti0x] { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.all[b-obfb5zti0x] { background: #6b7280; }
.dot.inv[b-obfb5zti0x] { background: #2563eb; }
.dot.po[b-obfb5zti0x]  { background: #f59e0b; }
.dot.ext[b-obfb5zti0x] { background: #0ea5e9; }

/* Lay the action buttons inside the tabs row */
.inv .tabs[b-obfb5zti0x] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* already present in your responsive rules; keep it */
}

    .inv .tabs .tabs-spacer[b-obfb5zti0x] {
        flex: 1 1 auto;
    }

    /* Actions when inside tabs */
    .inv .tabs .quick-actions.inline[b-obfb5zti0x] {
        display: inline-flex;
        gap: 6px;
        margin-left: auto;
    }

    .inv .tabs .count-btn[b-obfb5zti0x] {
        position: relative;
        height: 28px; /* harmonize with your .icon-btn */
        width: 28px;
        padding: 0;
    }

        .inv .tabs .count-btn .badge[b-obfb5zti0x] {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9999px;
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            font-size: 0.72em;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff; /* contrast ring on light bg */
        }

/* When the tabs wrap on small widths, let actions drop to their own line cleanly */
@media (max-width: 980px) {
    .inv .tabs[b-obfb5zti0x] {
        flex-wrap: wrap;
    }

        .inv .tabs .quick-actions.inline[b-obfb5zti0x] {
            width: 100%;
            justify-content: flex-start; /* or center / space-between if you prefer */
            margin-top: 6px;
        }
}

/* ------------------------------
   Cards
   ------------------------------ */
.inv .cards[b-obfb5zti0x] { display: grid; gap: 14px; }

.inv .inv-card[b-obfb5zti0x] {
  position: relative;
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
  padding: 10px; padding-top: 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;

  /* Each card is its own scaling container */
  container-type: inline-size;
  --card-fsz: clamp(12px, 1.4cqw + 8px, 16px);
  font-size: var(--card-fsz);

  /* Fluid column widths for both summary + items */
  /* Summary row columns (Brand | Part | Description | Qty | Price | Chev) */
  --w-brand:     clamp(5.5em, 10cqw, 7em);
  --w-part:      clamp(9em,  18cqw, 12em);
  --w-desc-min:  clamp(10em, 32cqw, 18em);
  --w-qty:       clamp(4.5em,  9cqw,  6em);
  --w-price:     clamp(5.5em, 10cqw, 7.5em);
  --w-exp:       2.5em;

  /* Item row columns (Chevron | Gen | Seq | Brand | PN | Nomen | Qty | UOM | Pkg | Bin | Actions) */
  --col-gen:       clamp(5em,   10cqw, 6em);
  --col-seq:       clamp(3.8em,  8cqw, 4.5em);
  --col-brand:     clamp(5em,   10cqw, 6em);
  --col-pn-min:    clamp(8em,   28cqw, 12em);
  --col-nomen-min: clamp(9em,   30cqw, 16em);
  --col-qty:       clamp(3.2em,  7cqw, 6em);     /* more compressible qty */
  --col-uom:       clamp(3.8em,  8cqw, 5em);
  --col-pkg:       clamp(3.6em,  8cqw, 6.5em);
  --bin-w:         clamp(6.5em, 14cqw, 12em);
  --actions-w:     clamp(7em,   16cqw, 11em);
  --row-gap:       clamp(4px,   1cqw,  8px);
}

/* Background by type */
.inv .inv-card.type-inventory[b-obfb5zti0x] { background: #ffffff; }
.inv .inv-card.type-purchaseorder[b-obfb5zti0x] { background: #fffbeb; }
.inv .inv-card.type-external[b-obfb5zti0x] { background: #f0f9ff; }

/* Expanded accent */
.inv .inv-card.is-open[b-obfb5zti0x] { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.inv .inv-card.type-inventory.is-open[b-obfb5zti0x] { border-color: #2563eb; box-shadow: 0 6px 24px rgba(37,99,235,.18); }
.inv .inv-card.type-purchaseorder.is-open[b-obfb5zti0x] { border-color: #f59e0b; box-shadow: 0 6px 24px rgba(245,158,11,.18); }
.inv .inv-card.type-external.is-open[b-obfb5zti0x] { border-color: #0ea5e9; box-shadow: 0 6px 24px rgba(14,165,233,.18); }
.inv .inv-card.is-open[b-obfb5zti0x]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: 10px 0 0 10px;
}
.inv .inv-card.type-inventory.is-open[b-obfb5zti0x]::before { background: #2563eb; }
.inv .inv-card.type-purchaseorder.is-open[b-obfb5zti0x]::before { background: #f59e0b; }
.inv .inv-card.type-external.is-open[b-obfb5zti0x]::before { background: #0ea5e9; }

/* Right column (actions area) */
.inv .card-actions[b-obfb5zti0x] { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.inv .aside-inline[b-obfb5zti0x] { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.inv .aside-stack[b-obfb5zti0x] { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inv .aside-stack.tight[b-obfb5zti0x] { gap: 6px; }
.inv .stack-row[b-obfb5zti0x] { display: flex; align-items: center; gap: 8px; }

/* Top chips row */
.inv .card-meta[b-obfb5zti0x] {
  position: absolute; top: -11px; left: 12px;
  display: flex; gap: 6px; z-index: 1; flex-wrap: wrap;
}

/* Base chip */
.inv .chip[b-obfb5zti0x] {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 2px 8px; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Clickable chips */
.inv .chip.item.total[b-obfb5zti0x],
.inv .chip.qual[b-obfb5zti0x] {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.inv .chip.item.total:hover[b-obfb5zti0x],
.inv .chip.qual:hover[b-obfb5zti0x] { background: #f3f4f6; }
.inv .chip.item.total.active[b-obfb5zti0x],
.inv .chip.qual.active[b-obfb5zti0x] { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Total chip */
.inv .chip.item.total[b-obfb5zti0x] { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }
.inv .chip.item.total.active[b-obfb5zti0x] { box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px) scale(1.03); }

/* Quality chips */
.inv .chip.qual[b-obfb5zti0x] { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; }
.inv .chip.qual.disabled[b-obfb5zti0x] { opacity: 1; cursor: default; pointer-events: none; transform: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.inv .chip.qual.disabled .qty[b-obfb5zti0x] { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.inv .chip.qual.disabled .dot[b-obfb5zti0x] { opacity: .7; }
.inv .chip.qual.active[b-obfb5zti0x] { transform: translateY(-1px) scale(1.03); color: #fff; }
.inv .chip.qual.active .qty[b-obfb5zti0x] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.inv .chip.qual.active .dot[b-obfb5zti0x] { background: #fff; }
.inv .chip.qual.good[b-obfb5zti0x] { border-color: #86efac; background: #ecfdf5; }
.inv .chip.qual.good .dot[b-obfb5zti0x] { background: #16a34a; }
.inv .chip.qual.active.good[b-obfb5zti0x] { background: #16a34a; border-color: #15803d; box-shadow: 0 0 0 3px rgba(22,163,74,.25), 0 6px 16px rgba(22,163,74,.20); }
.inv .chip.qual.ok[b-obfb5zti0x] { border-color: #fcd34d; background: #fffbeb; }
.inv .chip.qual.ok .dot[b-obfb5zti0x] { background: #f59e0b; }
.inv .chip.qual.active.ok[b-obfb5zti0x] { background: #f59e0b; border-color: #b45309; box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 6px 16px rgba(245,158,11,.20); }
.inv .chip.qual.bad[b-obfb5zti0x] { border-color: #fca5a5; background: #fef2f2; }
.inv .chip.qual.bad .dot[b-obfb5zti0x] { background: #ef4444; }
.inv .chip.qual.active.bad[b-obfb5zti0x] { background: #ef4444; border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 6px 16px rgba(239,68,68,.20); }

/* Keyboard focus */
.inv .chip:focus-visible[b-obfb5zti0x] { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }

/* ------------------------------
   Summary row
   ------------------------------ */
.inv .summary-row[b-obfb5zti0x] { cursor: pointer; user-select: none; }
.inv .grid.row1[b-obfb5zti0x] {
  display: grid;
  grid-template-columns:
    var(--w-brand)
    var(--w-part)
    minmax(var(--w-desc-min), 1fr)
    var(--w-qty)
    var(--w-price)
    var(--w-exp);
  gap: 8px; align-items: center;
}
.inv .field[b-obfb5zti0x] { min-width: 0; }
.inv .w-qty[b-obfb5zti0x], .inv .w-price[b-obfb5zti0x], .inv .w-expander[b-obfb5zti0x] { text-align: right; }

/* Header open accent */
.inv .inv-card.is-open .summary-row[b-obfb5zti0x] {
  background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, rgba(255,255,255,1) 85%);
  border: 1px solid rgba(0,0,0,.08); padding: 8px; border-radius: 10px;
}

/* ------------------------------
   Mini meter
   ------------------------------ */
.meter-mini[b-obfb5zti0x] { width: 90px; height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; display: inline-block; }
.meter-mini .meter-fill[b-obfb5zti0x] { height: 100%; width: 0%; transition: width .18s ease; }
.meter-mini .meter-fill.low[b-obfb5zti0x]  { background: #10b981; }
.meter-mini .meter-fill.mid[b-obfb5zti0x]  { background: #f59e0b; }
.meter-mini .meter-fill.high[b-obfb5zti0x] { background: #ef4444; }

/* ------------------------------
   Items list + rows
   ------------------------------ */
.inv .items-list[b-obfb5zti0x] {
  display: flex; flex-direction: column; gap: var(--row-gap); margin-top: 10px;

  /* [chev][Gen][Seq][Brand][PN][Nomen][Qty][UOM][Pkg][Bin][Actions] */
  --cols: 26px
          var(--col-gen) var(--col-seq) var(--col-brand)
          minmax(var(--col-pn-min), 1fr)
          minmax(var(--col-nomen-min), 1.2fr)
          var(--col-qty) var(--col-uom) var(--col-pkg)
          var(--bin-w) var(--actions-w);
}

.inv .item-row[b-obfb5zti0x] {
  display: grid; grid-template-columns: var(--cols);
  gap: 8px; align-items: center;
  background: #fff; border: 1px dashed #e5e7eb; border-radius: 8px;
  padding: 6px 8px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv .item-row.is-open[b-obfb5zti0x] {
  background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 1px 10px rgba(37,99,235,.08);
  position: relative;
}
.inv .type-purchaseorder .item-row.is-open[b-obfb5zti0x] { background: #fff7ed; border-color: #fde68a; box-shadow: 0 1px 10px rgba(245,158,11,.10); }
.inv .type-external .item-row.is-open[b-obfb5zti0x]      { background: #e0f2fe; border-color: #bae6fd; box-shadow: 0 1px 10px rgba(14,165,233,.10); }
.inv .item-row.is-open[b-obfb5zti0x]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #2563eb; border-radius: 8px 0 0 8px;
}
.inv .type-purchaseorder .item-row.is-open[b-obfb5zti0x]::before { background: #f59e0b; }
.inv .type-external      .item-row.is-open[b-obfb5zti0x]::before { background: #0ea5e9; }

.inv .item-row .cell[b-obfb5zti0x] { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .qty[b-obfb5zti0x] { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-obfb5zti0x],
.inv .item-row .bin[b-obfb5zti0x] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-obfb5zti0x] { max-width: 6ch; cursor: help; }
.inv .item-row .bin[b-obfb5zti0x]  { max-width: 12ch; cursor: help; }

/* Row actions — fixed width aligned to the right */
.inv .row-actions[b-obfb5zti0x] {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: nowrap; min-width: 0;
}
.inv .item-row .row-actions[b-obfb5zti0x] {
  width: var(--actions-w); justify-self: end; padding-left: 10px; border-left: 1px solid #e5e7eb; overflow: hidden;
}
.inv .row-actions .icon-btn[b-obfb5zti0x] { flex: 0 0 auto; }

/* Buttons & icons (em-based to follow text) */
.inv .icon[b-obfb5zti0x] { width: 1.10em; height: 1.10em; display: block; stroke: currentColor; fill: none; }
.inv .icon-btn[b-obfb5zti0x] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
  height: 2.00em; padding: 0 0.60em; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; }
.inv .icon-btn:hover[b-obfb5zti0x] { background: #f3f4f6; }
.inv .icon-btn.primary[b-obfb5zti0x] { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv .icon-btn.ghost[b-obfb5zti0x] { background: transparent; }
.inv .icon-btn.chevron[b-obfb5zti0x] { width: 2.00em; height: 2.00em; padding: 0; justify-content: center; }
.inv .icon-btn.chevron.small[b-obfb5zti0x] { width: 1.60em; height: 1.60em; }
.inv .icon-btn.only-icon.sq[b-obfb5zti0x] { width: 2.00em; height: 2.00em; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.inv .icon-btn.has-prev[b-obfb5zti0x] { border-style: solid; border-color: #c7d2fe; background: #eef2ff; }
.inv .icon-btn.has-prev:hover[b-obfb5zti0x] { background: #e0e7ff; border-color: #a5b4fc; }

.inv .icon-btn .ico[b-obfb5zti0x] { line-height: 1; display: inline-block; } /* emoji alignment */

/* Details panel */
.inv .details[b-obfb5zti0x] { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin: 6px 0 0 26px; }
.inv .details.details-min[b-obfb5zti0x] { display: flex; align-items: center; gap: 8px; }
.inv .additional-title[b-obfb5zti0x] { font-weight: 700; color: #111827; }

/* Type-accented items-list containers */
.inv .inv-card.type-inventory .items-list.accented[b-obfb5zti0x] {
  background: #f7fbff; border-left: 4px solid #2563eb; box-shadow: inset 0 0 0 1px #e6efff;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-obfb5zti0x .16s ease-out both;
}
.inv .inv-card.type-purchaseorder .items-list.accented[b-obfb5zti0x] {
  background: #fff7ed; border-left: 4px solid #f59e0b; box-shadow: inset 0 0 0 1px #fde68a;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-obfb5zti0x .16s ease-out both;
}
.inv .inv-card.type-external .items-list.accented[b-obfb5zti0x] {
  background: #ecfeff; border-left: 4px solid #0ea5e9; box-shadow: inset 0 0 0 1px #bae6fd;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-obfb5zti0x .16s ease-out both;
}
@keyframes showParts-b-obfb5zti0x {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------
   Notes chips (wrap as units; do not collapse text)
   ------------------------------ */
.inv .notes-strip[b-obfb5zti0x] {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 0; grid-column: 2 / -1;
}
.inv .items-list > .notes-strip[b-obfb5zti0x] { margin-left: 26px; } /* align under chevron */

.inv .note-chip[b-obfb5zti0x] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  font-weight: 600; line-height: 1.2;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  white-space: nowrap; flex: 0 0 auto; /* width = content; don’t shrink text */
}
/* remark visibly darker */
.inv .notes-strip .note-chip.remark[b-obfb5zti0x] {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0b3b8a !important;
}

    .inv .notes-strip .note-chip.remark .note-ico[b-obfb5zti0x] {
        color: #1d4ed8; /* blue-700 */
        stroke: currentColor;
    }
.inv .note-ico[b-obfb5zti0x] { width: 14px; height: 14px; stroke: currentColor; flex: 0 0 auto; }
.inv .note-text[b-obfb5zti0x] { flex: 0 1 auto; }

/* ------------------------------
   Container query adjustments (preferred)
   ------------------------------ */

/* Tighten actions & let it grow to fit buttons */
@container (max-width: 780px) {
  .inv .row-actions[b-obfb5zti0x] { gap: 4px; }
  .inv .row-actions .icon-btn[b-obfb5zti0x] { height: 1.8em; padding: 0 0.45em; }
  .inv .row-actions .ico[b-obfb5zti0x] { font-size: 0.95em; line-height: 1; }

  .inv .items-list[b-obfb5zti0x] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom) var(--col-pkg)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}

/* Remove lower-priority columns as space gets tight */
@container (max-width: 640px) {
  .inv .item-row .pkgc[b-obfb5zti0x] { display: none; }
  .inv .items-list[b-obfb5zti0x] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
@container (max-width: 620px) {
  .inv .item-row .seq[b-obfb5zti0x] { display: none; }
  .inv .items-list[b-obfb5zti0x] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Hide Qty (show PN-inline badge if you add it in markup) */
@container (max-width: 560px) {
  .inv .item-row .qty[b-obfb5zti0x] { display: none; }
  .inv .items-list[b-obfb5zti0x] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Wrap actions on ultra-small cards */
@container (max-width: 520px) {
  .inv .row-actions[b-obfb5zti0x] { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
/* Last resort: horizontal scroll */
@container (max-width: 480px) {
  .inv .items-list[b-obfb5zti0x] { overflow-x: auto; }
}

/* ------------------------------
   Traditional media queries (layout tweaks)
   ------------------------------ */
@media (max-width: 980px) {
  .inv .inv-card[b-obfb5zti0x] { grid-template-columns: 1fr; }
  .inv .card-actions[b-obfb5zti0x] { flex-direction: row; }
  .inv .icon-btn[b-obfb5zti0x] { flex: 1; justify-content: center; }
  .inv .aside-inline[b-obfb5zti0x], .inv .aside-stack[b-obfb5zti0x] { align-items: center; }
  .tabs[b-obfb5zti0x] { flex-wrap: wrap; }
  .source-text[b-obfb5zti0x] { max-width: 120px; }
}






/* /Pages/ChangeCleanroomJobStatus.razor.rz.scp.css */
.status-panel[b-i83wvw1y3r] {
    padding: 16px 18px 20px;
    color: #111827;
}

.panel-header[b-i83wvw1y3r] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-header h2[b-i83wvw1y3r] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.panel-header p[b-i83wvw1y3r] {
    margin: 4px 0 0;
    color: #6b7280;
}

.panel-state[b-i83wvw1y3r] {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #6b7280;
}

.panel-error[b-i83wvw1y3r] {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.current-status[b-i83wvw1y3r] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.current-status span[b-i83wvw1y3r],
.form-grid span[b-i83wvw1y3r] {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-button-stack[b-i83wvw1y3r] {
    display: grid;
    gap: 8px;
}

.status-button-row[b-i83wvw1y3r] {
    display: grid;
    gap: 8px;
}

.status-choice-button[b-i83wvw1y3r] {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.status-choice-button:hover[b-i83wvw1y3r] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.status-choice-button.current[b-i83wvw1y3r] {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.status-choice-button.selected[b-i83wvw1y3r] {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #ffffff;
}

.form-grid[b-i83wvw1y3r] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.form-grid label[b-i83wvw1y3r] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.employee-picker[b-i83wvw1y3r] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.employee-button[b-i83wvw1y3r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 82px;
    padding: 8px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.employee-button:hover[b-i83wvw1y3r] {
    border-color: #93c5fd;
    background: #eff6ff;
}

.employee-button.selected[b-i83wvw1y3r] {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
}

.employee-photo-wrap[b-i83wvw1y3r] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #e5e7eb;
}

.employee-photo-wrap img[b-i83wvw1y3r] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initials[b-i83wvw1y3r] {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 900;
}

.status-history[b-i83wvw1y3r] {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.status-history h3[b-i83wvw1y3r] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.history-row[b-i83wvw1y3r] {
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.history-row span[b-i83wvw1y3r] {
    display: inline-block;
    margin-left: 8px;
    color: #6b7280;
    font-size: 0.8rem;
}

.history-row p[b-i83wvw1y3r] {
    margin: 4px 0 0;
    color: #374151;
}

.panel-actions[b-i83wvw1y3r] {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 20px -18px -20px;
    padding: 12px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

@media (max-width: 620px) {
    .status-button-row[b-i83wvw1y3r] {
        grid-template-columns: 1fr;
    }

    .panel-actions[b-i83wvw1y3r] {
        justify-content: stretch;
    }
}
/* /Pages/CleanroomFindOrder.razor.rz.scp.css */
.find-order-panel[b-nsuhxco2fg] {
    min-height: 100%;
    padding: 22px;
    color: #111827;
    background: #fff;
}

.find-order-header[b-nsuhxco2fg] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.find-order-header h2[b-nsuhxco2fg] {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.find-order-header p[b-nsuhxco2fg] {
    margin: 4px 0 0;
    color: #6b7280;
}

.find-order-field[b-nsuhxco2fg] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    font-weight: 700;
}

.find-order-input[b-nsuhxco2fg] {
    width: 180px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    font-size: 1.15rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.find-order-input:focus[b-nsuhxco2fg] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
    outline: none;
}

.find-order-message[b-nsuhxco2fg] {
    border: 1px solid;
    border-radius: 6px;
    margin-bottom: 14px;
    padding: 10px 12px;
    font-weight: 700;
}

.find-order-message.error[b-nsuhxco2fg] {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.find-order-actions[b-nsuhxco2fg] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* /Pages/CleanroomJobBoard.razor.rz.scp.css */
.cleanroom-board[b-wrykbs45il] {
    padding: 18px 22px;
    color: #111827;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.board-header[b-wrykbs45il] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.board-header h1[b-wrykbs45il] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.board-header p[b-wrykbs45il] {
    margin: 4px 0 0;
    color: #6b7280;
}

.board-actions[b-wrykbs45il] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

[b-wrykbs45il] .find-order-button.rz-button {
    border-color: #38bdf8 !important;
    color: #075985 !important;
    background: #e0f2fe !important;
}

[b-wrykbs45il] .find-order-button.rz-button:hover {
    border-color: #0284c7 !important;
    color: #ffffff !important;
    background: #0ea5e9 !important;
}

.status-filter-bar[b-wrykbs45il] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.board-grid-stack[b-wrykbs45il] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

[b-wrykbs45il] .status-filter-button.rz-button {
    border-color: #d1d5db !important;
    color: #374151 !important;
    background: #ffffff !important;
}

[b-wrykbs45il] .status-filter-button.selected.rz-button {
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    background: #2563eb !important;
}

[b-wrykbs45il] .status-filter-button.main-filter.rz-button {
    border-color: #7dd3fc !important;
    color: #075985 !important;
    background: #e0f2fe !important;
}

[b-wrykbs45il] .status-filter-button.main-filter.selected.rz-button {
    border-color: #0284c7 !important;
    color: #ffffff !important;
    background: #0ea5e9 !important;
}

[b-wrykbs45il] .status-filter-button.in-progress-filter.rz-button {
    border-color: #f59e0b !important;
    color: #92400e !important;
    background: #fffbeb !important;
}

[b-wrykbs45il] .status-filter-button.in-progress-filter.selected.rz-button {
    border-color: #b45309 !important;
    color: #ffffff !important;
    background: #d97706 !important;
}

[b-wrykbs45il] .status-filter-button.order-placed-filter.rz-button {
    border-color: #60a5fa !important;
    color: #1e40af !important;
    background: #eff6ff !important;
}

[b-wrykbs45il] .status-filter-button.order-placed-filter.selected.rz-button {
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    background: #2563eb !important;
}

[b-wrykbs45il] .status-filter-button.bmc-filter.rz-button {
    border-color: #f87171 !important;
    color: #991b1b !important;
    background: #fef2f2 !important;
}

[b-wrykbs45il] .status-filter-button.bmc-filter.selected.rz-button {
    border-color: #b91c1c !important;
    color: #ffffff !important;
    background: #dc2626 !important;
}

[b-wrykbs45il] .status-filter-button.waiting-filter.rz-button {
    border-color: #a78bfa !important;
    color: #5b21b6 !important;
    background: #f5f3ff !important;
}

[b-wrykbs45il] .status-filter-button.waiting-filter.selected.rz-button {
    border-color: #6d28d9 !important;
    color: #ffffff !important;
    background: #7c3aed !important;
}

[b-wrykbs45il] .status-filter-button.completed-filter.rz-button {
    border-color: #34d399 !important;
    color: #065f46 !important;
    background: #ecfdf5 !important;
}

[b-wrykbs45il] .status-filter-button.completed-filter.selected.rz-button {
    border-color: #047857 !important;
    color: #ffffff !important;
    background: #059669 !important;
}

.state-panel[b-wrykbs45il] {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
}

.state-panel.error[b-wrykbs45il] {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.jobs-grid[b-wrykbs45il] {
    background: #fff;
    min-width: 100%;
}

.jobs-grid[b-wrykbs45il]  .rz-data-grid-data {
    overflow: auto;
}

.date-cell[b-wrykbs45il],
.company-cell[b-wrykbs45il],
.sales-rep-cell[b-wrykbs45il],
.ship-cell[b-wrykbs45il] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-cell[b-wrykbs45il] {
    padding-top: 4px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.date-cell span[b-wrykbs45il],
.sales-rep-cell span[b-wrykbs45il],
.ship-cell span[b-wrykbs45il],
.muted[b-wrykbs45il] {
    color: #6b7280;
    font-size: 0.85rem;
}

.parts-list[b-wrykbs45il] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.status-cell[b-wrykbs45il] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    text-align: right;
    width: 100%;
}

.status-change-button[b-wrykbs45il] {
    flex: 0 0 auto;
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
}

.part-chip[b-wrykbs45il],
.status-pill[b-wrykbs45il] {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.part-chip[b-wrykbs45il] {
    gap: 5px;
    background: #f3f4f6;
    color: #111827;
}

.status-pill[b-wrykbs45il] {
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
}

.notes-icon[b-wrykbs45il] {
    color: #4b5563;
    cursor: help;
    font-size: 20px;
    vertical-align: middle;
}

.alive-counter[b-wrykbs45il] {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 6px;
    padding: 3px 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .cleanroom-board[b-wrykbs45il] {
        padding: 12px;
    }

    .board-header[b-wrykbs45il] {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-actions[b-wrykbs45il] {
        width: 100%;
        justify-content: flex-start;
    }
}
/* /Pages/CleanroomJobCheckIn.razor.rz.scp.css */
.checkin-panel[b-8o73ubf1ac] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.checkin-header[b-8o73ubf1ac] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.checkin-header h2[b-8o73ubf1ac] {
    margin: 0;
    font-size: 1.35rem;
}

.checkin-header p[b-8o73ubf1ac] {
    margin: 4px 0 0;
    color: #64748b;
}

.checkin-state[b-8o73ubf1ac],
.checkin-message[b-8o73ubf1ac] {
    padding: 12px 14px;
    border-radius: 8px;
}

.checkin-state[b-8o73ubf1ac] {
    background: #f8fafc;
}

.checkin-message.error[b-8o73ubf1ac] {
    background: #fef2f2;
    color: #991b1b;
}

.checkin-message.success[b-8o73ubf1ac] {
    background: #ecfdf5;
    color: #065f46;
}

.checkin-field[b-8o73ubf1ac] {
    display: grid;
    gap: 6px;
}

.checkin-field span[b-8o73ubf1ac] {
    color: #475569;
    font-size: .9rem;
    font-weight: 600;
}

.status-button-stack[b-8o73ubf1ac] {
    display: grid;
    gap: 8px;
}

.status-button-row[b-8o73ubf1ac] {
    display: grid;
    gap: 8px;
}

.status-choice-button[b-8o73ubf1ac] {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
}

.status-choice-button:hover:not(:disabled)[b-8o73ubf1ac] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.status-choice-button.selected[b-8o73ubf1ac] {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #ffffff;
}

.status-choice-button:disabled[b-8o73ubf1ac] {
    cursor: not-allowed;
    opacity: .65;
}

.employee-picker[b-8o73ubf1ac] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.employee-button[b-8o73ubf1ac] {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 62px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.employee-button.selected[b-8o73ubf1ac] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .18);
}

.employee-photo-wrap[b-8o73ubf1ac] {
    display: grid;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: #e2e8f0;
}

.employee-photo-wrap img[b-8o73ubf1ac],
.employee-initials[b-8o73ubf1ac] {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.employee-photo-wrap img[b-8o73ubf1ac] {
    object-fit: cover;
}

.employee-initials[b-8o73ubf1ac] {
    display: none;
    place-items: center;
    font-size: .78rem;
    font-weight: 700;
}

.scan-input[b-8o73ubf1ac] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.checked-in-card[b-8o73ubf1ac] {
    display: grid;
    gap: 3px;
    padding: 14px;
    border-left: 4px solid #16a34a;
    background: #f8fafc;
}

.checked-in-card span[b-8o73ubf1ac] {
    color: #15803d;
    font-size: .85rem;
    font-weight: 700;
}

.checked-in-card strong[b-8o73ubf1ac] {
    font-size: 1.4rem;
}

.checked-in-card p[b-8o73ubf1ac] {
    margin: 0;
    color: #475569;
}

.checkin-actions[b-8o73ubf1ac] {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 620px) {
    .status-button-row[b-8o73ubf1ac] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/CleanroomJobStatusNotes.razor.rz.scp.css */
.status-notes-panel[b-fli27548sw] {
    padding: 16px 18px 20px;
    color: #111827;
}

.panel-header[b-fli27548sw] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-header h2[b-fli27548sw] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.panel-header p[b-fli27548sw] {
    margin: 4px 0 0;
    color: #6b7280;
}

.panel-state[b-fli27548sw] {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #6b7280;
}

.panel-error[b-fli27548sw] {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.current-status[b-fli27548sw] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.current-status span[b-fli27548sw] {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-history[b-fli27548sw] {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.status-history h3[b-fli27548sw] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.empty-history[b-fli27548sw] {
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
}

.history-row[b-fli27548sw] {
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.history-row span[b-fli27548sw] {
    display: inline-block;
    margin-left: 8px;
    color: #6b7280;
    font-size: 0.8rem;
}

.history-row p[b-fli27548sw] {
    margin: 4px 0 0;
    color: #374151;
    white-space: pre-wrap;
}
/* /Pages/CleanroomJobTvBoard.razor.rz.scp.css */
.tv-board[b-zan5u0devi] {
    height: 100vh;
    max-height: 100vh;
    padding: 18px 22px;
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.tv-header[b-zan5u0devi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tv-header h1[b-zan5u0devi] {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1;
}

.tv-header p[b-zan5u0devi] {
    margin: 6px 0 0;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 700;
}

.tv-clock[b-zan5u0devi] {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.tv-clock span[b-zan5u0devi] {
    font-size: 1.8rem;
    font-weight: 800;
}

.tv-clock small[b-zan5u0devi] {
    color: #64748b;
    font-size: .9rem;
    font-weight: 700;
}

.tv-state[b-zan5u0devi] {
    flex: 1;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 1.4rem;
    font-weight: 800;
}

.tv-state.error[b-zan5u0devi] {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.tv-columns[b-zan5u0devi] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 24%) minmax(0, 1fr);
    gap: 16px;
}

.tv-column[b-zan5u0devi] {
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.order-placed-column[b-zan5u0devi] {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.active-column[b-zan5u0devi] {
    background: #f8fafc;
}

.column-header[b-zan5u0devi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.column-header h2[b-zan5u0devi] {
    margin: 0;
    font-size: 1.45rem;
}

.column-header span[b-zan5u0devi] {
    min-width: 42px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
}

.placed-stack[b-zan5u0devi],
.active-grid[b-zan5u0devi] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 3px;
}

.placed-stack[b-zan5u0devi] {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
}

.active-grid[b-zan5u0devi] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-content: start;
    gap: 7px;
}

.job-card[b-zan5u0devi] {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 9px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

.job-card.warning[b-zan5u0devi] {
    border-color: #f59e0b;
    background: #fffbeb;
}

.job-card.overdue[b-zan5u0devi] {
    border-color: #dc2626;
    background: #fef2f2;
}

.card-top[b-zan5u0devi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.alive-badge[b-zan5u0devi],
.status-badge[b-zan5u0devi] {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.alive-badge[b-zan5u0devi] {
    background: #e0f2fe;
    color: #075985;
}

.warning .alive-badge[b-zan5u0devi] {
    background: #fef3c7;
    color: #92400e;
}

.overdue .alive-badge[b-zan5u0devi] {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge[b-zan5u0devi] {
    background: #f1f5f9;
    color: #334155;
}

.company-name[b-zan5u0devi] {
    min-height: 34px;
    color: #0f172a;
    font-size: .98rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.order-row[b-zan5u0devi] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.order-row span[b-zan5u0devi] {
    flex: 0 0 auto;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.order-row strong[b-zan5u0devi] {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 1.08rem;
    line-height: 1;
}

.empty-panel[b-zan5u0devi] {
    min-height: 120px;
    display: grid;
    place-items: center;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: #64748b;
    font-size: 1.15rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .tv-board[b-zan5u0devi] {
        overflow: auto;
    }

    .tv-columns[b-zan5u0devi] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/InventorySearchDemo.razor.rz.scp.css */
/* =========================================================
   INVENTORY CARDS — CLEAN CSS
   - Fluid typography via container queries (with fallbacks)
   - Single source of truth for column widths via CSS vars
   - Notes chips wrap as units; table columns shrink gracefully
   ========================================================= */

/* ------------------------------
   Base component + responsive knobs
   ------------------------------ */
.inv[b-ut92c77d9n] {
  /* Global sizing knobs (em-based where it matters) */
  --scale: 1;

  /* Defaults (will be overridden/scaled inside cards) */
  --row-gap: 8px;

  /* Enable container query sizing for the component itself */
  container-type: inline-size;

  /* Fluid base font size for the component (12 → 16px) */
  --font-base: clamp(12px, 1.3cqw + 9px, 16px);
  font-size: var(--font-base);

  /* Fallback if container queries aren’t supported */
}
@supports not (container-type: inline-size) {
  .inv[b-ut92c77d9n] {
    --font-base: clamp(12px, 1.0vw + 8px, 16px);
    font-size: var(--font-base);
  }
}

/* Text scales off the component/card font-size using em */
.inv .title[b-ut92c77d9n] { font-size: 1.20em; font-weight: 800; }
.inv .label[b-ut92c77d9n] { font-size: 0.70em; color: #6b7280; letter-spacing: .035em; text-transform: uppercase; }
.inv .value[b-ut92c77d9n] { font-size: 0.95em; font-weight: 600; color: #111827; }
.inv .chip[b-ut92c77d9n]  { font-size: 0.90em; font-weight: 700; }
.inv .tab[b-ut92c77d9n]   { font-size: 0.95em; font-weight: 700; }
.inv .tab .count[b-ut92c77d9n] { font-size: 0.80em; }
.inv .meter-mini-text[b-ut92c77d9n] { font-size: 0.85em; font-weight: 700; width: 38px; text-align: right; }
.inv .source-text[b-ut92c77d9n] { font-size: 0.95em; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .toast[b-ut92c77d9n] { font-size: 0.95em; }

.title[b-ut92c77d9n] { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; }
.empty[b-ut92c77d9n] { padding: 8px 0; color: #6b7280; }

.inv .open-quotes-notice[b-ut92c77d9n] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff2df;
}

.inv .open-quotes-notice-content[b-ut92c77d9n] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
}

.inv .open-quotes-notice-icon[b-ut92c77d9n] {
  color: #2563eb;
  font-size: 18px;
}

/* Notes column wrapping */
.notes-wrap[b-ut92c77d9n] {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}


/* Panel + row base (keep your previous look) */
.inv .search-panel[b-ut92c77d9n] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

    .inv .search-panel .row[b-ut92c77d9n] {
        display: grid;
        gap: 10px;
        align-items: center
    }

    /* Main row now includes the 'Must Contain' field before Actions */
    .inv .search-panel .r-main[b-ut92c77d9n] {
        /* Part | OR | Generic | Divider | Brand | Qty | MustContain | Actions */
        grid-template-columns: 1.1fr auto 1.1fr auto 0.9fr 0.45fr minmax(16ch, 1.2fr) auto;
    }

    /* Inputs */
    .inv .search-panel .tb[b-ut92c77d9n] {
        height: 2.4em;
        padding: 0 .8em;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
        color: #111827;
        min-width: 0


    }

/* Responsive tweaks */
@container (max-width: 900px) {
    .inv .search-panel .r-main[b-ut92c77d9n] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
    }
}

@container (max-width: 700px) {
    .inv .search-panel .r-main[b-ut92c77d9n] {
        grid-template-columns: 1fr 1fr; /* stack neatly */
    }

    .inv .search-panel .or-chip[b-ut92c77d9n],
    .inv .search-panel .vdiv[b-ut92c77d9n] {
        display: none;
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-ut92c77d9n] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

        .inv .search-panel .actions .btn[b-ut92c77d9n] {
            flex: 1 1 auto;
        }

    .inv .search-panel .tb.small[b-ut92c77d9n] {
        max-width: none;
        text-align: left;
    }
}

@container (max-width: 520px) {
    .inv .search-panel .r-adv[b-ut92c77d9n] {
        grid-template-columns: 1fr;
    }
}

/* Fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width: 900px) {
        .inv .search-panel .r-main[b-ut92c77d9n] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
        }
    }

    @media (max-width: 700px) {
        .inv .search-panel .r-main[b-ut92c77d9n] {
            grid-template-columns: 1fr 1fr;
        }

        .inv .search-panel .r-adv[b-ut92c77d9n] {
            grid-template-columns: 1fr;
        }
    }
}

        /* Optional width hint for the new field */
        .inv .search-panel .tb.contain[b-ut92c77d9n] {
            min-width: 16ch; /* lets it breathe on wider screens */
        }

        .inv .search-panel .tb.small[b-ut92c77d9n] {
            max-width: 10ch;
            text-align: right
        }

        .inv .search-panel .tb[b-ut92c77d9n]::placeholder {
            color: #9ca3af !important;
        }

        .inv .search-panel .tb:focus[b-ut92c77d9n] {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59,130,246,.25)
        }

    /* OR chip */
    .inv .search-panel .or-chip[b-ut92c77d9n] {
        align-self: center;
        justify-self: center;
        height: 2.0em;
        padding: 0 .6em;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 800;
        border-radius: 9999px;
        line-height: 1;
    }

    /* Vertical divider after Generic # */
    .inv .search-panel .vdiv[b-ut92c77d9n] {
        width: 1px;
        height: 2.4em;
        background: #e5e7eb;
        border-radius: 1px;
        justify-self: center;
        align-self: center;
    }

/* Buttons + actions */
.inv .btn[b-ut92c77d9n] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 2.2em;
    padding: 0 .9em;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .inv .btn:hover[b-ut92c77d9n] {
        background: #f3f4f6
    }

    .inv .btn:focus-visible[b-ut92c77d9n] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,.45)
    }

    .inv .btn.primary[b-ut92c77d9n] {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff
    }

        .inv .btn.primary:hover[b-ut92c77d9n] {
            background: #1d4ed8
        }

    .inv .btn.ghost[b-ut92c77d9n] {
        background: transparent
    }

.inv .search-panel .actions[b-ut92c77d9n] {
    display: inline-flex;
    gap: 8px;
    justify-self: end
}

/* Details-based toggle: shows/hides advanced filters with no JS */
.inv .adv-toggle[b-ut92c77d9n] {
    margin-top: 10px;
    display: block
}

    .inv .adv-toggle > summary[b-ut92c77d9n] {
        list-style: none
    }

        .inv .adv-toggle > summary[b-ut92c77d9n]::-webkit-details-marker {
            display: none
        }

    .inv .adv-toggle > summary[b-ut92c77d9n] {
        display: inline-flex;
        margin-left: auto
    }

    .inv .adv-toggle[open] > summary[b-ut92c77d9n] {
        margin-bottom: 8px
    }

    .inv .adv-toggle .label-hide[b-ut92c77d9n] {
        display: none
    }

    .inv .adv-toggle[open] .label-show[b-ut92c77d9n] {
        display: none
    }

    .inv .adv-toggle[open] .label-hide[b-ut92c77d9n] {
        display: inline
    }

/* Advanced row grid */
.inv .search-panel .r-adv[b-ut92c77d9n] {
    margin-top: 10px;
    grid-template-columns: 1fr 1fr minmax(280px,auto);
    align-items: start;
}

.inv .search-panel .opt[b-ut92c77d9n] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px
}

    .inv .search-panel .opt label[b-ut92c77d9n] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 9999px;
        font-weight: 600;
        line-height: 1
    }

    .inv .search-panel .opt input[type="checkbox"][b-ut92c77d9n] {
        width: 1em;
        height: 1em;
        accent-color: #2563eb
    }

/* Responsive (container-first) */
@container (max-width:900px) {
    .inv .search-panel .r-main[b-ut92c77d9n] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
    }

    .inv .search-panel .r-adv[b-ut92c77d9n] {
        grid-template-columns: 1fr 1fr minmax(240px,auto)
    }
}

@container (max-width:700px) {
    .inv .search-panel .r-main[b-ut92c77d9n] {
        grid-template-columns: 1fr 1fr
    }

    .inv .search-panel .or-chip[b-ut92c77d9n], .inv .search-panel .vdiv[b-ut92c77d9n] {
        display: none
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-ut92c77d9n] {
        grid-column: 1 / -1;
        justify-self: stretch
    }

        .inv .search-panel .actions .btn[b-ut92c77d9n] {
            flex: 1 1 auto
        }

    .inv .search-panel .tb.small[b-ut92c77d9n] {
        max-width: none;
        text-align: left
    }
}

@container (max-width:520px) {
    .inv .search-panel .r-adv[b-ut92c77d9n] {
        grid-template-columns: 1fr
    }
}

/* Viewport fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width:900px) {
        .inv .search-panel .r-main[b-ut92c77d9n] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
        }
    }

    @media (max-width:700px) {
        .inv .search-panel .r-main[b-ut92c77d9n] {
            grid-template-columns: 1fr 1fr
        }

        .inv .search-panel .r-adv[b-ut92c77d9n] {
            grid-template-columns: 1fr
        }
    }
}




/* ------------------------------
   Tabs
   ------------------------------ */
.tabs[b-ut92c77d9n] {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; margin: 0 0 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.tab[b-ut92c77d9n] {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #374151; font-weight: 700;
}
.tab .count[b-ut92c77d9n] { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 6px; }
.tab:hover[b-ut92c77d9n] { background: #f3f4f6; }
.tab.active[b-ut92c77d9n] { background: #111827; color: #fff; }
.tab.active .count[b-ut92c77d9n] { background: #1f2937; border-color: #1f2937; color: #fff; }

.dot[b-ut92c77d9n] { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.all[b-ut92c77d9n] { background: #6b7280; }
.dot.inv[b-ut92c77d9n] { background: #2563eb; }
.dot.po[b-ut92c77d9n]  { background: #f59e0b; }
.dot.ext[b-ut92c77d9n] { background: #0ea5e9; }

/* Lay the action buttons inside the tabs row */
.inv .tabs[b-ut92c77d9n] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* already present in your responsive rules; keep it */
}

    .inv .tabs .tabs-spacer[b-ut92c77d9n] {
        flex: 1 1 auto;
    }

    /* Actions when inside tabs */
    .inv .tabs .quick-actions.inline[b-ut92c77d9n] {
        display: inline-flex;
        gap: 6px;
        margin-left: auto;
    }

    .inv .tabs .count-btn[b-ut92c77d9n] {
        position: relative;
        height: 28px; /* harmonize with your .icon-btn */
        width: 28px;
        padding: 0;
    }

        .inv .tabs .count-btn .badge[b-ut92c77d9n] {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9999px;
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            font-size: 0.72em;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff; /* contrast ring on light bg */
        }

/* When the tabs wrap on small widths, let actions drop to their own line cleanly */
@media (max-width: 980px) {
    .inv .tabs[b-ut92c77d9n] {
        flex-wrap: wrap;
    }

        .inv .tabs .quick-actions.inline[b-ut92c77d9n] {
            width: 100%;
            justify-content: flex-start; /* or center / space-between if you prefer */
            margin-top: 6px;
        }
}

/* ------------------------------
   Cards
   ------------------------------ */
.inv .cards[b-ut92c77d9n] { display: grid; gap: 14px; }

.inv .inv-card[b-ut92c77d9n] {
  position: relative;
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
  padding: 10px; padding-top: 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;

  /* Each card is its own scaling container */
  container-type: inline-size;
  --card-fsz: clamp(12px, 1.4cqw + 8px, 16px);
  font-size: var(--card-fsz);

  /* Fluid column widths for both summary + items */
  /* Summary row columns (Brand | Part | Description | Qty | Price | Chev) */
  --w-brand:     clamp(5.5em, 10cqw, 7em);
  --w-part:      clamp(9em,  18cqw, 12em);
  --w-desc-min:  clamp(10em, 32cqw, 18em);
  --w-qty:       clamp(4.5em,  9cqw,  6em);
  --w-price:     clamp(5.5em, 10cqw, 7.5em);
  --w-exp:       2.5em;

  /* Item row columns (Chevron | Gen | Seq | Brand | PN | Nomen | Qty | UOM | Pkg | Bin | Actions) */
  --col-gen:       clamp(5em,   10cqw, 6em);
  --col-seq:       clamp(3.8em,  8cqw, 4.5em);
  --col-brand:     clamp(5em,   10cqw, 6em);
  --col-pn-min:    clamp(8em,   28cqw, 12em);
  --col-nomen-min: clamp(9em,   30cqw, 16em);
  --col-qty:       clamp(3.2em,  7cqw, 6em);     /* more compressible qty */
  --col-uom:       clamp(3.8em,  8cqw, 5em);
  --col-pkg:       clamp(3.6em,  8cqw, 6.5em);
  --bin-w:         clamp(6.5em, 14cqw, 12em);
  --actions-w:     clamp(7em,   16cqw, 11em);
  --row-gap:       clamp(4px,   1cqw,  8px);
}

/* Background by type */
.inv .inv-card.type-inventory[b-ut92c77d9n] { background: #ffffff; }
.inv .inv-card.type-purchaseorder[b-ut92c77d9n] { background: #fffbeb; }
.inv .inv-card.type-external[b-ut92c77d9n] { background: #f0f9ff; }

/* Expanded accent */
.inv .inv-card.is-open[b-ut92c77d9n] { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.inv .inv-card.type-inventory.is-open[b-ut92c77d9n] { border-color: #2563eb; box-shadow: 0 6px 24px rgba(37,99,235,.18); }
.inv .inv-card.type-purchaseorder.is-open[b-ut92c77d9n] { border-color: #f59e0b; box-shadow: 0 6px 24px rgba(245,158,11,.18); }
.inv .inv-card.type-external.is-open[b-ut92c77d9n] { border-color: #0ea5e9; box-shadow: 0 6px 24px rgba(14,165,233,.18); }
.inv .inv-card.is-open[b-ut92c77d9n]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: 10px 0 0 10px;
}
.inv .inv-card.type-inventory.is-open[b-ut92c77d9n]::before { background: #2563eb; }
.inv .inv-card.type-purchaseorder.is-open[b-ut92c77d9n]::before { background: #f59e0b; }
.inv .inv-card.type-external.is-open[b-ut92c77d9n]::before { background: #0ea5e9; }

/* Right column (actions area) */
.inv .card-actions[b-ut92c77d9n] { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.inv .aside-inline[b-ut92c77d9n] { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.inv .aside-stack[b-ut92c77d9n] { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inv .aside-stack.tight[b-ut92c77d9n] { gap: 6px; }
.inv .stack-row[b-ut92c77d9n] { display: flex; align-items: center; gap: 8px; }

/* Top chips row */
.inv .card-meta[b-ut92c77d9n] {
  position: absolute; top: -11px; left: 12px;
  display: flex; gap: 6px; z-index: 1; flex-wrap: wrap;
}

/* Base chip */
.inv .chip[b-ut92c77d9n] {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 2px 8px; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Clickable chips */
.inv .chip.item.total[b-ut92c77d9n],
.inv .chip.qual[b-ut92c77d9n] {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.inv .chip.item.total:hover[b-ut92c77d9n],
.inv .chip.qual:hover[b-ut92c77d9n] { background: #f3f4f6; }
.inv .chip.item.total.active[b-ut92c77d9n],
.inv .chip.qual.active[b-ut92c77d9n] { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Total chip */
.inv .chip.item.total[b-ut92c77d9n] { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }
.inv .chip.item.total.active[b-ut92c77d9n] { box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px) scale(1.03); }

/* Quality chips */
.inv .chip.qual[b-ut92c77d9n] { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; }
.inv .chip.qual.disabled[b-ut92c77d9n] { opacity: 1; cursor: default; pointer-events: none; transform: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.inv .chip.qual.disabled .qty[b-ut92c77d9n] { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.inv .chip.qual.disabled .dot[b-ut92c77d9n] { opacity: .7; }
.inv .chip.qual.active[b-ut92c77d9n] { transform: translateY(-1px) scale(1.03); color: #fff; }
.inv .chip.qual.active .qty[b-ut92c77d9n] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.inv .chip.qual.active .dot[b-ut92c77d9n] { background: #fff; }
.inv .chip.qual.good[b-ut92c77d9n] { border-color: #86efac; background: #ecfdf5; }
.inv .chip.qual.good .dot[b-ut92c77d9n] { background: #16a34a; }
.inv .chip.qual.active.good[b-ut92c77d9n] { background: #16a34a; border-color: #15803d; box-shadow: 0 0 0 3px rgba(22,163,74,.25), 0 6px 16px rgba(22,163,74,.20); }
.inv .chip.qual.ok[b-ut92c77d9n] { border-color: #fcd34d; background: #fffbeb; }
.inv .chip.qual.ok .dot[b-ut92c77d9n] { background: #f59e0b; }
.inv .chip.qual.active.ok[b-ut92c77d9n] { background: #f59e0b; border-color: #b45309; box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 6px 16px rgba(245,158,11,.20); }
.inv .chip.qual.bad[b-ut92c77d9n] { border-color: #fca5a5; background: #fef2f2; }
.inv .chip.qual.bad .dot[b-ut92c77d9n] { background: #ef4444; }
.inv .chip.qual.active.bad[b-ut92c77d9n] { background: #ef4444; border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 6px 16px rgba(239,68,68,.20); }

/* Keyboard focus */
.inv .chip:focus-visible[b-ut92c77d9n] { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }

/* ------------------------------
   Summary row
   ------------------------------ */
.inv .summary-row[b-ut92c77d9n] { cursor: pointer; user-select: none; }
.inv .grid.row1[b-ut92c77d9n] {
  display: grid;
  grid-template-columns:
    var(--w-brand)
    var(--w-part)
    minmax(var(--w-desc-min), 1fr)
    var(--w-qty)
    var(--w-price)
    var(--w-exp);
  gap: 8px; align-items: center;
}
.inv .field[b-ut92c77d9n] { min-width: 0; }
.inv .w-qty[b-ut92c77d9n], .inv .w-price[b-ut92c77d9n], .inv .w-expander[b-ut92c77d9n] { text-align: right; }

/* Header open accent */
.inv .inv-card.is-open .summary-row[b-ut92c77d9n] {
  background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, rgba(255,255,255,1) 85%);
  border: 1px solid rgba(0,0,0,.08); padding: 8px; border-radius: 10px;
}

/* ------------------------------
   Mini meter
   ------------------------------ */
.meter-mini[b-ut92c77d9n] { width: 90px; height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; display: inline-block; }
.meter-mini .meter-fill[b-ut92c77d9n] { height: 100%; width: 0%; transition: width .18s ease; }
.meter-mini .meter-fill.low[b-ut92c77d9n]  { background: #10b981; }
.meter-mini .meter-fill.mid[b-ut92c77d9n]  { background: #f59e0b; }
.meter-mini .meter-fill.high[b-ut92c77d9n] { background: #ef4444; }

/* ------------------------------
   Items list + rows
   ------------------------------ */
.inv .items-list[b-ut92c77d9n] {
  display: flex; flex-direction: column; gap: var(--row-gap); margin-top: 10px;

  /* [chev][Gen][Seq][Brand][PN][Nomen][Qty][UOM][Pkg][Bin][Actions] */
  --cols: 26px
          var(--col-gen) var(--col-seq) var(--col-brand)
          minmax(var(--col-pn-min), 1fr)
          minmax(var(--col-nomen-min), 1.2fr)
          var(--col-qty) var(--col-uom) var(--col-pkg)
          var(--bin-w) var(--actions-w);
}

.inv .item-row[b-ut92c77d9n] {
  display: grid; grid-template-columns: var(--cols);
  gap: 8px; align-items: center;
  background: #fff; border: 1px dashed #e5e7eb; border-radius: 8px;
  padding: 6px 8px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv .item-row.is-open[b-ut92c77d9n] {
  background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 1px 10px rgba(37,99,235,.08);
  position: relative;
}
.inv .type-purchaseorder .item-row.is-open[b-ut92c77d9n] { background: #fff7ed; border-color: #fde68a; box-shadow: 0 1px 10px rgba(245,158,11,.10); }
.inv .type-external .item-row.is-open[b-ut92c77d9n]      { background: #e0f2fe; border-color: #bae6fd; box-shadow: 0 1px 10px rgba(14,165,233,.10); }
.inv .item-row.is-open[b-ut92c77d9n]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #2563eb; border-radius: 8px 0 0 8px;
}
.inv .type-purchaseorder .item-row.is-open[b-ut92c77d9n]::before { background: #f59e0b; }
.inv .type-external      .item-row.is-open[b-ut92c77d9n]::before { background: #0ea5e9; }

.inv .item-row .cell[b-ut92c77d9n] { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .qty[b-ut92c77d9n] { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-ut92c77d9n],
.inv .item-row .bin[b-ut92c77d9n] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-ut92c77d9n] { max-width: 6ch; cursor: help; }
.inv .item-row .bin[b-ut92c77d9n]  { max-width: 12ch; cursor: help; }

/* Row actions — fixed width aligned to the right */
.inv .row-actions[b-ut92c77d9n] {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: nowrap; min-width: 0;
}
.inv .item-row .row-actions[b-ut92c77d9n] {
  width: var(--actions-w); justify-self: end; padding-left: 10px; border-left: 1px solid #e5e7eb; overflow: hidden;
}
.inv .row-actions .icon-btn[b-ut92c77d9n] { flex: 0 0 auto; }

/* Buttons & icons (em-based to follow text) */
.inv .icon[b-ut92c77d9n] { width: 1.10em; height: 1.10em; display: block; stroke: currentColor; fill: none; }
.inv .icon-btn[b-ut92c77d9n] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
  height: 2.00em; padding: 0 0.60em; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; }
.inv .icon-btn:hover[b-ut92c77d9n] { background: #f3f4f6; }
.inv .icon-btn.primary[b-ut92c77d9n] { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv .icon-btn.ghost[b-ut92c77d9n] { background: transparent; }
.inv .icon-btn.chevron[b-ut92c77d9n] { width: 2.00em; height: 2.00em; padding: 0; justify-content: center; }
.inv .icon-btn.chevron.small[b-ut92c77d9n] { width: 1.60em; height: 1.60em; }
.inv .icon-btn.only-icon.sq[b-ut92c77d9n] { width: 2.00em; height: 2.00em; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.inv .icon-btn.has-prev[b-ut92c77d9n] { border-style: solid; border-color: #c7d2fe; background: #eef2ff; }
.inv .icon-btn.has-prev:hover[b-ut92c77d9n] { background: #e0e7ff; border-color: #a5b4fc; }

.inv .icon-btn .ico[b-ut92c77d9n] { line-height: 1; display: inline-block; } /* emoji alignment */

/* Details panel */
.inv .details[b-ut92c77d9n] { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin: 6px 0 0 26px; }
.inv .details.details-min[b-ut92c77d9n] { display: flex; align-items: center; gap: 8px; }
.inv .additional-title[b-ut92c77d9n] { font-weight: 700; color: #111827; }

/* Type-accented items-list containers */
.inv .inv-card.type-inventory .items-list.accented[b-ut92c77d9n] {
  background: #f7fbff; border-left: 4px solid #2563eb; box-shadow: inset 0 0 0 1px #e6efff;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-ut92c77d9n .16s ease-out both;
}
.inv .inv-card.type-purchaseorder .items-list.accented[b-ut92c77d9n] {
  background: #fff7ed; border-left: 4px solid #f59e0b; box-shadow: inset 0 0 0 1px #fde68a;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-ut92c77d9n .16s ease-out both;
}
.inv .inv-card.type-external .items-list.accented[b-ut92c77d9n] {
  background: #ecfeff; border-left: 4px solid #0ea5e9; box-shadow: inset 0 0 0 1px #bae6fd;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-ut92c77d9n .16s ease-out both;
}
@keyframes showParts-b-ut92c77d9n {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------
   Notes chips (wrap as units; do not collapse text)
   ------------------------------ */
.inv .notes-strip[b-ut92c77d9n] {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 0; grid-column: 2 / -1;
}
.inv .items-list > .notes-strip[b-ut92c77d9n] { margin-left: 26px; } /* align under chevron */

.inv .note-chip[b-ut92c77d9n] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  font-weight: 600; line-height: 1.2;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  white-space: nowrap; flex: 0 0 auto; /* width = content; don’t shrink text */
}
/* remark visibly darker */
.inv .notes-strip .note-chip.remark[b-ut92c77d9n] {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0b3b8a !important;
}

    .inv .notes-strip .note-chip.remark .note-ico[b-ut92c77d9n] {
        color: #1d4ed8; /* blue-700 */
        stroke: currentColor;
    }

/* InventorySearchDemo-specific sticky grid headers */
.inv .table-content .rz-data-grid-data[b-ut92c77d9n] {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.inv .table-content[b-ut92c77d9n]  .rz-grid-table thead th,
.inv .table-content[b-ut92c77d9n]  .rz-datatable-table thead th,
.inv .table-content[b-ut92c77d9n]  .rz-datatable-thead th {
    position: sticky !important;
    top: 0;
    z-index: 6;
    background-color: #fff;
}

.inv .note-ico[b-ut92c77d9n] { width: 14px; height: 14px; stroke: currentColor; flex: 0 0 auto; }
.inv .note-text[b-ut92c77d9n] { flex: 0 1 auto; }

/* ------------------------------
   Container query adjustments (preferred)
   ------------------------------ */

/* Tighten actions & let it grow to fit buttons */
@container (max-width: 780px) {
  .inv .row-actions[b-ut92c77d9n] { gap: 4px; }
  .inv .row-actions .icon-btn[b-ut92c77d9n] { height: 1.8em; padding: 0 0.45em; }
  .inv .row-actions .ico[b-ut92c77d9n] { font-size: 0.95em; line-height: 1; }

  .inv .items-list[b-ut92c77d9n] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom) var(--col-pkg)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}

/* Remove lower-priority columns as space gets tight */
@container (max-width: 640px) {
  .inv .item-row .pkgc[b-ut92c77d9n] { display: none; }
  .inv .items-list[b-ut92c77d9n] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
@container (max-width: 620px) {
  .inv .item-row .seq[b-ut92c77d9n] { display: none; }
  .inv .items-list[b-ut92c77d9n] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Hide Qty (show PN-inline badge if you add it in markup) */
@container (max-width: 560px) {
  .inv .item-row .qty[b-ut92c77d9n] { display: none; }
  .inv .items-list[b-ut92c77d9n] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Wrap actions on ultra-small cards */
@container (max-width: 520px) {
  .inv .row-actions[b-ut92c77d9n] { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
/* Last resort: horizontal scroll */
@container (max-width: 480px) {
  .inv .items-list[b-ut92c77d9n] { overflow-x: auto; }
}

/* ------------------------------
   Traditional media queries (layout tweaks)
   ------------------------------ */
@media (max-width: 980px) {
  .inv .inv-card[b-ut92c77d9n] { grid-template-columns: 1fr; }
  .inv .card-actions[b-ut92c77d9n] { flex-direction: row; }
  .inv .icon-btn[b-ut92c77d9n] { flex: 1; justify-content: center; }
  .inv .aside-inline[b-ut92c77d9n], .inv .aside-stack[b-ut92c77d9n] { align-items: center; }
  .tabs[b-ut92c77d9n] { flex-wrap: wrap; }
  .source-text[b-ut92c77d9n] { max-width: 120px; }
}

.inv .sequence-print-toolbar[b-ut92c77d9n] {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.inv .print-only[b-ut92c77d9n] {
    display: none;
}

.inv .sequence-print-table[b-ut92c77d9n] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.inv .sequence-print-table th[b-ut92c77d9n],
.inv .sequence-print-table td[b-ut92c77d9n] {
    border: 1px solid #d1d5db;
    padding: 6px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

@media print {
  .inv .sequence-print-area[b-ut92c77d9n],
  .inv .sequence-print-area *[b-ut92c77d9n] {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: #fff !important;
  }

  .inv .sequence-print-table[b-ut92c77d9n],
  .inv .sequence-print-table th[b-ut92c77d9n],
  .inv .sequence-print-table td[b-ut92c77d9n] {
    color: #000 !important;
    background: #fff !important;
  }
}

/* /Pages/Quotes.razor.rz.scp.css */
.quotes-quick-filter-bar[b-gvuxu1uu9a] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 12px;
}

.quotes-more-filters[b-gvuxu1uu9a] {
    padding: 0 20px 12px;
}

.quotes-filters-row[b-gvuxu1uu9a] {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 2px;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.rz-button {
    border-color: #d1d5db !important;
    color: #374151 !important;
    background: #ffffff !important;
    font-weight: 700;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.selected.rz-button {
    color: #ffffff !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.open-filter.rz-button {
    border-color: #7dd3fc !important;
    color: #075985 !important;
    background: #e0f2fe !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.open-filter.selected.rz-button {
    border-color: #0284c7 !important;
    color: #ffffff !important;
    background: #0ea5e9 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.completed-filter.rz-button {
    border-color: #34d399 !important;
    color: #065f46 !important;
    background: #ecfdf5 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.completed-filter.selected.rz-button {
    border-color: #047857 !important;
    color: #ffffff !important;
    background: #059669 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.archived-filter.rz-button {
    border-color: #a3a3a3 !important;
    color: #404040 !important;
    background: #f5f5f5 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.archived-filter.selected.rz-button {
    border-color: #525252 !important;
    color: #ffffff !important;
    background: #737373 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.voided-filter.rz-button {
    border-color: #f87171 !important;
    color: #7f1d1d !important;
    background: #fef2f2 !important;
}

[b-gvuxu1uu9a] .quote-quick-filter-button.voided-filter.selected.rz-button {
    border-color: #b91c1c !important;
    color: #ffffff !important;
    background: #dc2626 !important;
}

[b-gvuxu1uu9a] .more-filters-button.rz-button {
    border-color: #d1d5db !important;
    color: #374151 !important;
    background: #ffffff !important;
    font-weight: 700;
}

[b-gvuxu1uu9a] .more-filters-button.selected.rz-button {
    border-color: #4b5563 !important;
    color: #ffffff !important;
    background: #4b5563 !important;
}
/* /Pages/QuoteTimestamp.razor.rz.scp.css */
/* =========================================================
   INVENTORY CARDS — CLEAN CSS
   - Fluid typography via container queries (with fallbacks)
   - Single source of truth for column widths via CSS vars
   - Notes chips wrap as units; table columns shrink gracefully
   ========================================================= */

/* ------------------------------
   Base component + responsive knobs
   ------------------------------ */
.inv[b-gj3rz4hbj1] {
  /* Global sizing knobs (em-based where it matters) */
  --scale: 1;

  /* Defaults (will be overridden/scaled inside cards) */
  --row-gap: 8px;

  /* Enable container query sizing for the component itself */
  container-type: inline-size;

  /* Fluid base font size for the component (12 → 16px) */
  --font-base: clamp(12px, 1.3cqw + 9px, 16px);
  font-size: var(--font-base);

  /* Fallback if container queries aren’t supported */
}
@supports not (container-type: inline-size) {
  .inv[b-gj3rz4hbj1] {
    --font-base: clamp(12px, 1.0vw + 8px, 16px);
    font-size: var(--font-base);
  }
}

/* Text scales off the component/card font-size using em */
.inv .title[b-gj3rz4hbj1] { font-size: 1.20em; font-weight: 800; }
.inv .label[b-gj3rz4hbj1] { font-size: 0.70em; color: #6b7280; letter-spacing: .035em; text-transform: uppercase; }
.inv .value[b-gj3rz4hbj1] { font-size: 0.95em; font-weight: 600; color: #111827; }
.inv .chip[b-gj3rz4hbj1]  { font-size: 0.90em; font-weight: 700; }
.inv .tab[b-gj3rz4hbj1]   { font-size: 0.95em; font-weight: 700; }
.inv .tab .count[b-gj3rz4hbj1] { font-size: 0.80em; }
.inv .meter-mini-text[b-gj3rz4hbj1] { font-size: 0.85em; font-weight: 700; width: 38px; text-align: right; }
.inv .source-text[b-gj3rz4hbj1] { font-size: 0.95em; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .toast[b-gj3rz4hbj1] { font-size: 0.95em; }

.title[b-gj3rz4hbj1] { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; }
.empty[b-gj3rz4hbj1] { padding: 8px 0; color: #6b7280; }


/* Panel + row base (keep your previous look) */
.inv .search-panel[b-gj3rz4hbj1] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

    .inv .search-panel .row[b-gj3rz4hbj1] {
        display: grid;
        gap: 10px;
        align-items: center
    }

    /* Main row now includes the 'Must Contain' field before Actions */
    .inv .search-panel .r-main[b-gj3rz4hbj1] {
        /* Part | OR | Generic | Divider | Brand | Qty | MustContain | Actions */
        grid-template-columns: 1.1fr auto 1.1fr auto 0.9fr 0.45fr minmax(16ch, 1.2fr) auto;
    }

    /* Inputs */
    .inv .search-panel .tb[b-gj3rz4hbj1] {
        height: 2.4em;
        padding: 0 .8em;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
        color: #111827;
        min-width: 0


    }

/* Responsive tweaks */
@container (max-width: 900px) {
    .inv .search-panel .r-main[b-gj3rz4hbj1] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
    }
}

@container (max-width: 700px) {
    .inv .search-panel .r-main[b-gj3rz4hbj1] {
        grid-template-columns: 1fr 1fr; /* stack neatly */
    }

    .inv .search-panel .or-chip[b-gj3rz4hbj1],
    .inv .search-panel .vdiv[b-gj3rz4hbj1] {
        display: none;
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-gj3rz4hbj1] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

        .inv .search-panel .actions .btn[b-gj3rz4hbj1] {
            flex: 1 1 auto;
        }

    .inv .search-panel .tb.small[b-gj3rz4hbj1] {
        max-width: none;
        text-align: left;
    }
}

@container (max-width: 520px) {
    .inv .search-panel .r-adv[b-gj3rz4hbj1] {
        grid-template-columns: 1fr;
    }
}

/* Fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width: 900px) {
        .inv .search-panel .r-main[b-gj3rz4hbj1] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
        }
    }

    @media (max-width: 700px) {
        .inv .search-panel .r-main[b-gj3rz4hbj1] {
            grid-template-columns: 1fr 1fr;
        }

        .inv .search-panel .r-adv[b-gj3rz4hbj1] {
            grid-template-columns: 1fr;
        }
    }
}

        /* Optional width hint for the new field */
        .inv .search-panel .tb.contain[b-gj3rz4hbj1] {
            min-width: 16ch; /* lets it breathe on wider screens */
        }

        .inv .search-panel .tb.small[b-gj3rz4hbj1] {
            max-width: 10ch;
            text-align: right
        }

        .inv .search-panel .tb[b-gj3rz4hbj1]::placeholder {
            color: #9ca3af
        }

        .inv .search-panel .tb:focus[b-gj3rz4hbj1] {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59,130,246,.25)
        }

    /* OR chip */
    .inv .search-panel .or-chip[b-gj3rz4hbj1] {
        align-self: center;
        justify-self: center;
        height: 2.0em;
        padding: 0 .6em;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 800;
        border-radius: 9999px;
        line-height: 1;
    }

    /* Vertical divider after Generic # */
    .inv .search-panel .vdiv[b-gj3rz4hbj1] {
        width: 1px;
        height: 2.4em;
        background: #e5e7eb;
        border-radius: 1px;
        justify-self: center;
        align-self: center;
    }

/* Buttons + actions */
.inv .btn[b-gj3rz4hbj1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 2.2em;
    padding: 0 .9em;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .inv .btn:hover[b-gj3rz4hbj1] {
        background: #f3f4f6
    }

    .inv .btn:focus-visible[b-gj3rz4hbj1] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,.45)
    }

    .inv .btn.primary[b-gj3rz4hbj1] {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff
    }

        .inv .btn.primary:hover[b-gj3rz4hbj1] {
            background: #1d4ed8
        }

    .inv .btn.ghost[b-gj3rz4hbj1] {
        background: transparent
    }

.inv .search-panel .actions[b-gj3rz4hbj1] {
    display: inline-flex;
    gap: 8px;
    justify-self: end
}

/* Details-based toggle: shows/hides advanced filters with no JS */
.inv .adv-toggle[b-gj3rz4hbj1] {
    margin-top: 10px;
    display: block
}

    .inv .adv-toggle > summary[b-gj3rz4hbj1] {
        list-style: none
    }

        .inv .adv-toggle > summary[b-gj3rz4hbj1]::-webkit-details-marker {
            display: none
        }

    .inv .adv-toggle > summary[b-gj3rz4hbj1] {
        display: inline-flex;
        margin-left: auto
    }

    .inv .adv-toggle[open] > summary[b-gj3rz4hbj1] {
        margin-bottom: 8px
    }

    .inv .adv-toggle .label-hide[b-gj3rz4hbj1] {
        display: none
    }

    .inv .adv-toggle[open] .label-show[b-gj3rz4hbj1] {
        display: none
    }

    .inv .adv-toggle[open] .label-hide[b-gj3rz4hbj1] {
        display: inline
    }

/* Advanced row grid */
.inv .search-panel .r-adv[b-gj3rz4hbj1] {
    margin-top: 10px;
    grid-template-columns: 1fr 1fr minmax(280px,auto);
    align-items: start;
}

.inv .search-panel .opt[b-gj3rz4hbj1] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px
}

    .inv .search-panel .opt label[b-gj3rz4hbj1] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 9999px;
        font-weight: 600;
        line-height: 1
    }

    .inv .search-panel .opt input[type="checkbox"][b-gj3rz4hbj1] {
        width: 1em;
        height: 1em;
        accent-color: #2563eb
    }

/* Responsive (container-first) */
@container (max-width:900px) {
    .inv .search-panel .r-main[b-gj3rz4hbj1] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
    }

    .inv .search-panel .r-adv[b-gj3rz4hbj1] {
        grid-template-columns: 1fr 1fr minmax(240px,auto)
    }
}

@container (max-width:700px) {
    .inv .search-panel .r-main[b-gj3rz4hbj1] {
        grid-template-columns: 1fr 1fr
    }

    .inv .search-panel .or-chip[b-gj3rz4hbj1], .inv .search-panel .vdiv[b-gj3rz4hbj1] {
        display: none
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-gj3rz4hbj1] {
        grid-column: 1 / -1;
        justify-self: stretch
    }

        .inv .search-panel .actions .btn[b-gj3rz4hbj1] {
            flex: 1 1 auto
        }

    .inv .search-panel .tb.small[b-gj3rz4hbj1] {
        max-width: none;
        text-align: left
    }
}

@container (max-width:520px) {
    .inv .search-panel .r-adv[b-gj3rz4hbj1] {
        grid-template-columns: 1fr
    }
}

/* Viewport fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width:900px) {
        .inv .search-panel .r-main[b-gj3rz4hbj1] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
        }
    }

    @media (max-width:700px) {
        .inv .search-panel .r-main[b-gj3rz4hbj1] {
            grid-template-columns: 1fr 1fr
        }

        .inv .search-panel .r-adv[b-gj3rz4hbj1] {
            grid-template-columns: 1fr
        }
    }
}




/* ------------------------------
   Tabs
   ------------------------------ */
.tabs[b-gj3rz4hbj1] {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; margin: 0 0 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.tab[b-gj3rz4hbj1] {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #374151; font-weight: 700;
}
.tab .count[b-gj3rz4hbj1] { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 6px; }
.tab:hover[b-gj3rz4hbj1] { background: #f3f4f6; }
.tab.active[b-gj3rz4hbj1] { background: #111827; color: #fff; }
.tab.active .count[b-gj3rz4hbj1] { background: #1f2937; border-color: #1f2937; color: #fff; }

.dot[b-gj3rz4hbj1] { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.all[b-gj3rz4hbj1] { background: #6b7280; }
.dot.inv[b-gj3rz4hbj1] { background: #2563eb; }
.dot.po[b-gj3rz4hbj1]  { background: #f59e0b; }
.dot.ext[b-gj3rz4hbj1] { background: #0ea5e9; }

/* Lay the action buttons inside the tabs row */
.inv .tabs[b-gj3rz4hbj1] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* already present in your responsive rules; keep it */
}

    .inv .tabs .tabs-spacer[b-gj3rz4hbj1] {
        flex: 1 1 auto;
    }

    /* Actions when inside tabs */
    .inv .tabs .quick-actions.inline[b-gj3rz4hbj1] {
        display: inline-flex;
        gap: 6px;
        margin-left: auto;
    }

    .inv .tabs .count-btn[b-gj3rz4hbj1] {
        position: relative;
        height: 28px; /* harmonize with your .icon-btn */
        width: 28px;
        padding: 0;
    }

        .inv .tabs .count-btn .badge[b-gj3rz4hbj1] {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9999px;
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            font-size: 0.72em;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff; /* contrast ring on light bg */
        }

/* When the tabs wrap on small widths, let actions drop to their own line cleanly */
@media (max-width: 980px) {
    .inv .tabs[b-gj3rz4hbj1] {
        flex-wrap: wrap;
    }

        .inv .tabs .quick-actions.inline[b-gj3rz4hbj1] {
            width: 100%;
            justify-content: flex-start; /* or center / space-between if you prefer */
            margin-top: 6px;
        }
}

/* ------------------------------
   Cards
   ------------------------------ */
.inv .cards[b-gj3rz4hbj1] { display: grid; gap: 14px; }

.inv .inv-card[b-gj3rz4hbj1] {
  position: relative;
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
  padding: 10px; padding-top: 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;

  /* Each card is its own scaling container */
  container-type: inline-size;
  --card-fsz: clamp(12px, 1.4cqw + 8px, 16px);
  font-size: var(--card-fsz);

  /* Fluid column widths for both summary + items */
  /* Summary row columns (Brand | Part | Description | Qty | Price | Chev) */
  --w-brand:     clamp(5.5em, 10cqw, 7em);
  --w-part:      clamp(9em,  18cqw, 12em);
  --w-desc-min:  clamp(10em, 32cqw, 18em);
  --w-qty:       clamp(4.5em,  9cqw,  6em);
  --w-price:     clamp(5.5em, 10cqw, 7.5em);
  --w-exp:       2.5em;

  /* Item row columns (Chevron | Gen | Seq | Brand | PN | Nomen | Qty | UOM | Pkg | Bin | Actions) */
  --col-gen:       clamp(5em,   10cqw, 6em);
  --col-seq:       clamp(3.8em,  8cqw, 4.5em);
  --col-brand:     clamp(5em,   10cqw, 6em);
  --col-pn-min:    clamp(8em,   28cqw, 12em);
  --col-nomen-min: clamp(9em,   30cqw, 16em);
  --col-qty:       clamp(3.2em,  7cqw, 6em);     /* more compressible qty */
  --col-uom:       clamp(3.8em,  8cqw, 5em);
  --col-pkg:       clamp(3.6em,  8cqw, 6.5em);
  --bin-w:         clamp(6.5em, 14cqw, 12em);
  --actions-w:     clamp(7em,   16cqw, 11em);
  --row-gap:       clamp(4px,   1cqw,  8px);
}

/* Background by type */
.inv .inv-card.type-inventory[b-gj3rz4hbj1] { background: #ffffff; }
.inv .inv-card.type-purchaseorder[b-gj3rz4hbj1] { background: #fffbeb; }
.inv .inv-card.type-external[b-gj3rz4hbj1] { background: #f0f9ff; }

/* Expanded accent */
.inv .inv-card.is-open[b-gj3rz4hbj1] { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.inv .inv-card.type-inventory.is-open[b-gj3rz4hbj1] { border-color: #2563eb; box-shadow: 0 6px 24px rgba(37,99,235,.18); }
.inv .inv-card.type-purchaseorder.is-open[b-gj3rz4hbj1] { border-color: #f59e0b; box-shadow: 0 6px 24px rgba(245,158,11,.18); }
.inv .inv-card.type-external.is-open[b-gj3rz4hbj1] { border-color: #0ea5e9; box-shadow: 0 6px 24px rgba(14,165,233,.18); }
.inv .inv-card.is-open[b-gj3rz4hbj1]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: 10px 0 0 10px;
}
.inv .inv-card.type-inventory.is-open[b-gj3rz4hbj1]::before { background: #2563eb; }
.inv .inv-card.type-purchaseorder.is-open[b-gj3rz4hbj1]::before { background: #f59e0b; }
.inv .inv-card.type-external.is-open[b-gj3rz4hbj1]::before { background: #0ea5e9; }

/* Right column (actions area) */
.inv .card-actions[b-gj3rz4hbj1] { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.inv .aside-inline[b-gj3rz4hbj1] { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.inv .aside-stack[b-gj3rz4hbj1] { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inv .aside-stack.tight[b-gj3rz4hbj1] { gap: 6px; }
.inv .stack-row[b-gj3rz4hbj1] { display: flex; align-items: center; gap: 8px; }

/* Top chips row */
.inv .card-meta[b-gj3rz4hbj1] {
  position: absolute; top: -11px; left: 12px;
  display: flex; gap: 6px; z-index: 1; flex-wrap: wrap;
}

/* Base chip */
.inv .chip[b-gj3rz4hbj1] {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 2px 8px; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Clickable chips */
.inv .chip.item.total[b-gj3rz4hbj1],
.inv .chip.qual[b-gj3rz4hbj1] {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.inv .chip.item.total:hover[b-gj3rz4hbj1],
.inv .chip.qual:hover[b-gj3rz4hbj1] { background: #f3f4f6; }
.inv .chip.item.total.active[b-gj3rz4hbj1],
.inv .chip.qual.active[b-gj3rz4hbj1] { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Total chip */
.inv .chip.item.total[b-gj3rz4hbj1] { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }
.inv .chip.item.total.active[b-gj3rz4hbj1] { box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px) scale(1.03); }

/* Quality chips */
.inv .chip.qual[b-gj3rz4hbj1] { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; }
.inv .chip.qual.disabled[b-gj3rz4hbj1] { opacity: 1; cursor: default; pointer-events: none; transform: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.inv .chip.qual.disabled .qty[b-gj3rz4hbj1] { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.inv .chip.qual.disabled .dot[b-gj3rz4hbj1] { opacity: .7; }
.inv .chip.qual.active[b-gj3rz4hbj1] { transform: translateY(-1px) scale(1.03); color: #fff; }
.inv .chip.qual.active .qty[b-gj3rz4hbj1] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.inv .chip.qual.active .dot[b-gj3rz4hbj1] { background: #fff; }
.inv .chip.qual.good[b-gj3rz4hbj1] { border-color: #86efac; background: #ecfdf5; }
.inv .chip.qual.good .dot[b-gj3rz4hbj1] { background: #16a34a; }
.inv .chip.qual.active.good[b-gj3rz4hbj1] { background: #16a34a; border-color: #15803d; box-shadow: 0 0 0 3px rgba(22,163,74,.25), 0 6px 16px rgba(22,163,74,.20); }
.inv .chip.qual.ok[b-gj3rz4hbj1] { border-color: #fcd34d; background: #fffbeb; }
.inv .chip.qual.ok .dot[b-gj3rz4hbj1] { background: #f59e0b; }
.inv .chip.qual.active.ok[b-gj3rz4hbj1] { background: #f59e0b; border-color: #b45309; box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 6px 16px rgba(245,158,11,.20); }
.inv .chip.qual.bad[b-gj3rz4hbj1] { border-color: #fca5a5; background: #fef2f2; }
.inv .chip.qual.bad .dot[b-gj3rz4hbj1] { background: #ef4444; }
.inv .chip.qual.active.bad[b-gj3rz4hbj1] { background: #ef4444; border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 6px 16px rgba(239,68,68,.20); }

/* Keyboard focus */
.inv .chip:focus-visible[b-gj3rz4hbj1] { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }

/* ------------------------------
   Summary row
   ------------------------------ */
.inv .summary-row[b-gj3rz4hbj1] { cursor: pointer; user-select: none; }
.inv .grid.row1[b-gj3rz4hbj1] {
  display: grid;
  grid-template-columns:
    var(--w-brand)
    var(--w-part)
    minmax(var(--w-desc-min), 1fr)
    var(--w-qty)
    var(--w-price)
    var(--w-exp);
  gap: 8px; align-items: center;
}
.inv .field[b-gj3rz4hbj1] { min-width: 0; }
.inv .w-qty[b-gj3rz4hbj1], .inv .w-price[b-gj3rz4hbj1], .inv .w-expander[b-gj3rz4hbj1] { text-align: right; }

/* Header open accent */
.inv .inv-card.is-open .summary-row[b-gj3rz4hbj1] {
  background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, rgba(255,255,255,1) 85%);
  border: 1px solid rgba(0,0,0,.08); padding: 8px; border-radius: 10px;
}

/* ------------------------------
   Mini meter
   ------------------------------ */
.meter-mini[b-gj3rz4hbj1] { width: 90px; height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; display: inline-block; }
.meter-mini .meter-fill[b-gj3rz4hbj1] { height: 100%; width: 0%; transition: width .18s ease; }
.meter-mini .meter-fill.low[b-gj3rz4hbj1]  { background: #10b981; }
.meter-mini .meter-fill.mid[b-gj3rz4hbj1]  { background: #f59e0b; }
.meter-mini .meter-fill.high[b-gj3rz4hbj1] { background: #ef4444; }

/* ------------------------------
   Items list + rows
   ------------------------------ */
.inv .items-list[b-gj3rz4hbj1] {
  display: flex; flex-direction: column; gap: var(--row-gap); margin-top: 10px;

  /* [chev][Gen][Seq][Brand][PN][Nomen][Qty][UOM][Pkg][Bin][Actions] */
  --cols: 26px
          var(--col-gen) var(--col-seq) var(--col-brand)
          minmax(var(--col-pn-min), 1fr)
          minmax(var(--col-nomen-min), 1.2fr)
          var(--col-qty) var(--col-uom) var(--col-pkg)
          var(--bin-w) var(--actions-w);
}

.inv .item-row[b-gj3rz4hbj1] {
  display: grid; grid-template-columns: var(--cols);
  gap: 8px; align-items: center;
  background: #fff; border: 1px dashed #e5e7eb; border-radius: 8px;
  padding: 6px 8px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv .item-row.is-open[b-gj3rz4hbj1] {
  background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 1px 10px rgba(37,99,235,.08);
  position: relative;
}
.inv .type-purchaseorder .item-row.is-open[b-gj3rz4hbj1] { background: #fff7ed; border-color: #fde68a; box-shadow: 0 1px 10px rgba(245,158,11,.10); }
.inv .type-external .item-row.is-open[b-gj3rz4hbj1]      { background: #e0f2fe; border-color: #bae6fd; box-shadow: 0 1px 10px rgba(14,165,233,.10); }
.inv .item-row.is-open[b-gj3rz4hbj1]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #2563eb; border-radius: 8px 0 0 8px;
}
.inv .type-purchaseorder .item-row.is-open[b-gj3rz4hbj1]::before { background: #f59e0b; }
.inv .type-external      .item-row.is-open[b-gj3rz4hbj1]::before { background: #0ea5e9; }

.inv .item-row .cell[b-gj3rz4hbj1] { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .qty[b-gj3rz4hbj1] { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-gj3rz4hbj1],
.inv .item-row .bin[b-gj3rz4hbj1] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-gj3rz4hbj1] { max-width: 6ch; cursor: help; }
.inv .item-row .bin[b-gj3rz4hbj1]  { max-width: 12ch; cursor: help; }

/* Row actions — fixed width aligned to the right */
.inv .row-actions[b-gj3rz4hbj1] {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: nowrap; min-width: 0;
}
.inv .item-row .row-actions[b-gj3rz4hbj1] {
  width: var(--actions-w); justify-self: end; padding-left: 10px; border-left: 1px solid #e5e7eb; overflow: hidden;
}
.inv .row-actions .icon-btn[b-gj3rz4hbj1] { flex: 0 0 auto; }

/* Buttons & icons (em-based to follow text) */
.inv .icon[b-gj3rz4hbj1] { width: 1.10em; height: 1.10em; display: block; stroke: currentColor; fill: none; }
.inv .icon-btn[b-gj3rz4hbj1] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
  height: 2.00em; padding: 0 0.60em; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; }
.inv .icon-btn:hover[b-gj3rz4hbj1] { background: #f3f4f6; }
.inv .icon-btn.primary[b-gj3rz4hbj1] { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv .icon-btn.ghost[b-gj3rz4hbj1] { background: transparent; }
.inv .icon-btn.chevron[b-gj3rz4hbj1] { width: 2.00em; height: 2.00em; padding: 0; justify-content: center; }
.inv .icon-btn.chevron.small[b-gj3rz4hbj1] { width: 1.60em; height: 1.60em; }
.inv .icon-btn.only-icon.sq[b-gj3rz4hbj1] { width: 2.00em; height: 2.00em; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.inv .icon-btn.has-prev[b-gj3rz4hbj1] { border-style: solid; border-color: #c7d2fe; background: #eef2ff; }
.inv .icon-btn.has-prev:hover[b-gj3rz4hbj1] { background: #e0e7ff; border-color: #a5b4fc; }

.inv .icon-btn .ico[b-gj3rz4hbj1] { line-height: 1; display: inline-block; } /* emoji alignment */

/* Details panel */
.inv .details[b-gj3rz4hbj1] { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin: 6px 0 0 26px; }
.inv .details.details-min[b-gj3rz4hbj1] { display: flex; align-items: center; gap: 8px; }
.inv .additional-title[b-gj3rz4hbj1] { font-weight: 700; color: #111827; }

/* Type-accented items-list containers */
.inv .inv-card.type-inventory .items-list.accented[b-gj3rz4hbj1] {
  background: #f7fbff; border-left: 4px solid #2563eb; box-shadow: inset 0 0 0 1px #e6efff;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-gj3rz4hbj1 .16s ease-out both;
}
.inv .inv-card.type-purchaseorder .items-list.accented[b-gj3rz4hbj1] {
  background: #fff7ed; border-left: 4px solid #f59e0b; box-shadow: inset 0 0 0 1px #fde68a;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-gj3rz4hbj1 .16s ease-out both;
}
.inv .inv-card.type-external .items-list.accented[b-gj3rz4hbj1] {
  background: #ecfeff; border-left: 4px solid #0ea5e9; box-shadow: inset 0 0 0 1px #bae6fd;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-gj3rz4hbj1 .16s ease-out both;
}
@keyframes showParts-b-gj3rz4hbj1 {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------
   Notes chips (wrap as units; do not collapse text)
   ------------------------------ */
.inv .notes-strip[b-gj3rz4hbj1] {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 0; grid-column: 2 / -1;
}
.inv .items-list > .notes-strip[b-gj3rz4hbj1] { margin-left: 26px; } /* align under chevron */

.inv .note-chip[b-gj3rz4hbj1] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  font-weight: 600; line-height: 1.2;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  white-space: nowrap; flex: 0 0 auto; /* width = content; don’t shrink text */
}
/* remark visibly darker */
.inv .notes-strip .note-chip.remark[b-gj3rz4hbj1] {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0b3b8a !important;
}

    .inv .notes-strip .note-chip.remark .note-ico[b-gj3rz4hbj1] {
        color: #1d4ed8; /* blue-700 */
        stroke: currentColor;
    }
.inv .note-ico[b-gj3rz4hbj1] { width: 14px; height: 14px; stroke: currentColor; flex: 0 0 auto; }
.inv .note-text[b-gj3rz4hbj1] { flex: 0 1 auto; }

/* ------------------------------
   Container query adjustments (preferred)
   ------------------------------ */

/* Tighten actions & let it grow to fit buttons */
@container (max-width: 780px) {
  .inv .row-actions[b-gj3rz4hbj1] { gap: 4px; }
  .inv .row-actions .icon-btn[b-gj3rz4hbj1] { height: 1.8em; padding: 0 0.45em; }
  .inv .row-actions .ico[b-gj3rz4hbj1] { font-size: 0.95em; line-height: 1; }

  .inv .items-list[b-gj3rz4hbj1] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom) var(--col-pkg)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}

/* Remove lower-priority columns as space gets tight */
@container (max-width: 640px) {
  .inv .item-row .pkgc[b-gj3rz4hbj1] { display: none; }
  .inv .items-list[b-gj3rz4hbj1] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
@container (max-width: 620px) {
  .inv .item-row .seq[b-gj3rz4hbj1] { display: none; }
  .inv .items-list[b-gj3rz4hbj1] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Hide Qty (show PN-inline badge if you add it in markup) */
@container (max-width: 560px) {
  .inv .item-row .qty[b-gj3rz4hbj1] { display: none; }
  .inv .items-list[b-gj3rz4hbj1] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Wrap actions on ultra-small cards */
@container (max-width: 520px) {
  .inv .row-actions[b-gj3rz4hbj1] { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
/* Last resort: horizontal scroll */
@container (max-width: 480px) {
  .inv .items-list[b-gj3rz4hbj1] { overflow-x: auto; }
}

/* ------------------------------
   Traditional media queries (layout tweaks)
   ------------------------------ */
@media (max-width: 980px) {
  .inv .inv-card[b-gj3rz4hbj1] { grid-template-columns: 1fr; }
  .inv .card-actions[b-gj3rz4hbj1] { flex-direction: row; }
  .inv .icon-btn[b-gj3rz4hbj1] { flex: 1; justify-content: center; }
  .inv .aside-inline[b-gj3rz4hbj1], .inv .aside-stack[b-gj3rz4hbj1] { align-items: center; }
  .tabs[b-gj3rz4hbj1] { flex-wrap: wrap; }
  .source-text[b-gj3rz4hbj1] { max-width: 120px; }
}






/* /Pages/Sequences.razor.rz.scp.css */
/* =========================================================
   INVENTORY CARDS — CLEAN CSS
   - Fluid typography via container queries (with fallbacks)
   - Single source of truth for column widths via CSS vars
   - Notes chips wrap as units; table columns shrink gracefully
   ========================================================= */

/* ------------------------------
   Base component + responsive knobs
   ------------------------------ */
.inv[b-1lty4ow2d2] {
  /* Global sizing knobs (em-based where it matters) */
  --scale: 1;

  /* Defaults (will be overridden/scaled inside cards) */
  --row-gap: 8px;

  /* Enable container query sizing for the component itself */
  container-type: inline-size;

  /* Fluid base font size for the component (12 → 16px) */
  --font-base: clamp(12px, 1.3cqw + 9px, 16px);
  font-size: var(--font-base);

  /* Fallback if container queries aren’t supported */
}
@supports not (container-type: inline-size) {
  .inv[b-1lty4ow2d2] {
    --font-base: clamp(12px, 1.0vw + 8px, 16px);
    font-size: var(--font-base);
  }
}

/* Text scales off the component/card font-size using em */
.inv .title[b-1lty4ow2d2] { font-size: 1.20em; font-weight: 800; }
.inv .label[b-1lty4ow2d2] { font-size: 0.70em; color: #6b7280; letter-spacing: .035em; text-transform: uppercase; }
.inv .value[b-1lty4ow2d2] { font-size: 0.95em; font-weight: 600; color: #111827; }
.inv .chip[b-1lty4ow2d2]  { font-size: 0.90em; font-weight: 700; }
.inv .tab[b-1lty4ow2d2]   { font-size: 0.95em; font-weight: 700; }
.inv .tab .count[b-1lty4ow2d2] { font-size: 0.80em; }
.inv .meter-mini-text[b-1lty4ow2d2] { font-size: 0.85em; font-weight: 700; width: 38px; text-align: right; }
.inv .source-text[b-1lty4ow2d2] { font-size: 0.95em; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv .toast[b-1lty4ow2d2] { font-size: 0.95em; }

.title[b-1lty4ow2d2] { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; }
.empty[b-1lty4ow2d2] { padding: 8px 0; color: #6b7280; }


/* Panel + row base (keep your previous look) */
.inv .search-panel[b-1lty4ow2d2] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04)
}

    .inv .search-panel .row[b-1lty4ow2d2] {
        display: grid;
        gap: 10px;
        align-items: center
    }

    /* Main row now includes the 'Must Contain' field before Actions */
    .inv .search-panel .r-main[b-1lty4ow2d2] {
        /* Part | OR | Generic | Divider | Brand | Qty | MustContain | Actions */
        grid-template-columns: 1.1fr auto 1.1fr auto 0.9fr 0.45fr minmax(16ch, 1.2fr) auto;
    }

    /* Inputs */
    .inv .search-panel .tb[b-1lty4ow2d2] {
        height: 2.4em;
        padding: 0 .8em;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        font: inherit;
        color: #111827;
        min-width: 0


    }

/* Responsive tweaks */
@container (max-width: 900px) {
    .inv .search-panel .r-main[b-1lty4ow2d2] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
    }
}

@container (max-width: 700px) {
    .inv .search-panel .r-main[b-1lty4ow2d2] {
        grid-template-columns: 1fr 1fr; /* stack neatly */
    }

    .inv .search-panel .or-chip[b-1lty4ow2d2],
    .inv .search-panel .vdiv[b-1lty4ow2d2] {
        display: none;
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-1lty4ow2d2] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

        .inv .search-panel .actions .btn[b-1lty4ow2d2] {
            flex: 1 1 auto;
        }

    .inv .search-panel .tb.small[b-1lty4ow2d2] {
        max-width: none;
        text-align: left;
    }
}

@container (max-width: 520px) {
    .inv .search-panel .r-adv[b-1lty4ow2d2] {
        grid-template-columns: 1fr;
    }
}

/* Fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width: 900px) {
        .inv .search-panel .r-main[b-1lty4ow2d2] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr minmax(14ch, 1fr) auto;
        }
    }

    @media (max-width: 700px) {
        .inv .search-panel .r-main[b-1lty4ow2d2] {
            grid-template-columns: 1fr 1fr;
        }

        .inv .search-panel .r-adv[b-1lty4ow2d2] {
            grid-template-columns: 1fr;
        }
    }
}

        /* Optional width hint for the new field */
        .inv .search-panel .tb.contain[b-1lty4ow2d2] {
            min-width: 16ch; /* lets it breathe on wider screens */
        }

        .inv .search-panel .tb.small[b-1lty4ow2d2] {
            max-width: 10ch;
            text-align: right
        }

        .inv .search-panel .tb[b-1lty4ow2d2]::placeholder {
            color: #9ca3af
        }

        .inv .search-panel .tb:focus[b-1lty4ow2d2] {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59,130,246,.25)
        }

    /* OR chip */
    .inv .search-panel .or-chip[b-1lty4ow2d2] {
        align-self: center;
        justify-self: center;
        height: 2.0em;
        padding: 0 .6em;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 800;
        border-radius: 9999px;
        line-height: 1;
    }

    /* Vertical divider after Generic # */
    .inv .search-panel .vdiv[b-1lty4ow2d2] {
        width: 1px;
        height: 2.4em;
        background: #e5e7eb;
        border-radius: 1px;
        justify-self: center;
        align-self: center;
    }

/* Buttons + actions */
.inv .btn[b-1lty4ow2d2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 2.2em;
    padding: 0 .9em;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .inv .btn:hover[b-1lty4ow2d2] {
        background: #f3f4f6
    }

    .inv .btn:focus-visible[b-1lty4ow2d2] {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,.45)
    }

    .inv .btn.primary[b-1lty4ow2d2] {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff
    }

        .inv .btn.primary:hover[b-1lty4ow2d2] {
            background: #1d4ed8
        }

    .inv .btn.ghost[b-1lty4ow2d2] {
        background: transparent
    }

.inv .search-panel .actions[b-1lty4ow2d2] {
    display: inline-flex;
    gap: 8px;
    justify-self: end
}

/* Details-based toggle: shows/hides advanced filters with no JS */
.inv .adv-toggle[b-1lty4ow2d2] {
    margin-top: 10px;
    display: block
}

    .inv .adv-toggle > summary[b-1lty4ow2d2] {
        list-style: none
    }

        .inv .adv-toggle > summary[b-1lty4ow2d2]::-webkit-details-marker {
            display: none
        }

    .inv .adv-toggle > summary[b-1lty4ow2d2] {
        display: inline-flex;
        margin-left: auto
    }

    .inv .adv-toggle[open] > summary[b-1lty4ow2d2] {
        margin-bottom: 8px
    }

    .inv .adv-toggle .label-hide[b-1lty4ow2d2] {
        display: none
    }

    .inv .adv-toggle[open] .label-show[b-1lty4ow2d2] {
        display: none
    }

    .inv .adv-toggle[open] .label-hide[b-1lty4ow2d2] {
        display: inline
    }

/* Advanced row grid */
.inv .search-panel .r-adv[b-1lty4ow2d2] {
    margin-top: 10px;
    grid-template-columns: 1fr 1fr minmax(280px,auto);
    align-items: start;
}

.inv .search-panel .opt[b-1lty4ow2d2] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px
}

    .inv .search-panel .opt label[b-1lty4ow2d2] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 9999px;
        font-weight: 600;
        line-height: 1
    }

    .inv .search-panel .opt input[type="checkbox"][b-1lty4ow2d2] {
        width: 1em;
        height: 1em;
        accent-color: #2563eb
    }

/* Responsive (container-first) */
@container (max-width:900px) {
    .inv .search-panel .r-main[b-1lty4ow2d2] {
        grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
    }

    .inv .search-panel .r-adv[b-1lty4ow2d2] {
        grid-template-columns: 1fr 1fr minmax(240px,auto)
    }
}

@container (max-width:700px) {
    .inv .search-panel .r-main[b-1lty4ow2d2] {
        grid-template-columns: 1fr 1fr
    }

    .inv .search-panel .or-chip[b-1lty4ow2d2], .inv .search-panel .vdiv[b-1lty4ow2d2] {
        display: none
    }
    /* hide when stacked */
    .inv .search-panel .actions[b-1lty4ow2d2] {
        grid-column: 1 / -1;
        justify-self: stretch
    }

        .inv .search-panel .actions .btn[b-1lty4ow2d2] {
            flex: 1 1 auto
        }

    .inv .search-panel .tb.small[b-1lty4ow2d2] {
        max-width: none;
        text-align: left
    }
}

@container (max-width:520px) {
    .inv .search-panel .r-adv[b-1lty4ow2d2] {
        grid-template-columns: 1fr
    }
}

/* Viewport fallback if container queries aren’t supported */
@supports not (container-type:inline-size) {
    @media (max-width:900px) {
        .inv .search-panel .r-main[b-1lty4ow2d2] {
            grid-template-columns: 1fr auto 1fr auto 0.8fr 0.5fr auto
        }
    }

    @media (max-width:700px) {
        .inv .search-panel .r-main[b-1lty4ow2d2] {
            grid-template-columns: 1fr 1fr
        }

        .inv .search-panel .r-adv[b-1lty4ow2d2] {
            grid-template-columns: 1fr
        }
    }
}




/* ------------------------------
   Tabs
   ------------------------------ */
.tabs[b-1lty4ow2d2] {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; margin: 0 0 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.tab[b-1lty4ow2d2] {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #374151; font-weight: 700;
}
.tab .count[b-1lty4ow2d2] { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 6px; }
.tab:hover[b-1lty4ow2d2] { background: #f3f4f6; }
.tab.active[b-1lty4ow2d2] { background: #111827; color: #fff; }
.tab.active .count[b-1lty4ow2d2] { background: #1f2937; border-color: #1f2937; color: #fff; }

.dot[b-1lty4ow2d2] { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.all[b-1lty4ow2d2] { background: #6b7280; }
.dot.inv[b-1lty4ow2d2] { background: #2563eb; }
.dot.po[b-1lty4ow2d2]  { background: #f59e0b; }
.dot.ext[b-1lty4ow2d2] { background: #0ea5e9; }

/* Lay the action buttons inside the tabs row */
.inv .tabs[b-1lty4ow2d2] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* already present in your responsive rules; keep it */
}

    .inv .tabs .tabs-spacer[b-1lty4ow2d2] {
        flex: 1 1 auto;
    }

    /* Actions when inside tabs */
    .inv .tabs .quick-actions.inline[b-1lty4ow2d2] {
        display: inline-flex;
        gap: 6px;
        margin-left: auto;
    }

    .inv .tabs .count-btn[b-1lty4ow2d2] {
        position: relative;
        height: 28px; /* harmonize with your .icon-btn */
        width: 28px;
        padding: 0;
    }

        .inv .tabs .count-btn .badge[b-1lty4ow2d2] {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9999px;
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            font-size: 0.72em;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff; /* contrast ring on light bg */
        }

/* When the tabs wrap on small widths, let actions drop to their own line cleanly */
@media (max-width: 980px) {
    .inv .tabs[b-1lty4ow2d2] {
        flex-wrap: wrap;
    }

        .inv .tabs .quick-actions.inline[b-1lty4ow2d2] {
            width: 100%;
            justify-content: flex-start; /* or center / space-between if you prefer */
            margin-top: 6px;
        }
}

/* ------------------------------
   Cards
   ------------------------------ */
.inv .cards[b-1lty4ow2d2] { display: grid; gap: 14px; }

.inv .inv-card[b-1lty4ow2d2] {
  position: relative;
  display: grid; grid-template-columns: 1fr 240px; gap: 12px;
  padding: 10px; padding-top: 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;

  /* Each card is its own scaling container */
  container-type: inline-size;
  --card-fsz: clamp(12px, 1.4cqw + 8px, 16px);
  font-size: var(--card-fsz);

  /* Fluid column widths for both summary + items */
  /* Summary row columns (Brand | Part | Description | Qty | Price | Chev) */
  --w-brand:     clamp(5.5em, 10cqw, 7em);
  --w-part:      clamp(9em,  18cqw, 12em);
  --w-desc-min:  clamp(10em, 32cqw, 18em);
  --w-qty:       clamp(4.5em,  9cqw,  6em);
  --w-price:     clamp(5.5em, 10cqw, 7.5em);
  --w-exp:       2.5em;

  /* Item row columns (Chevron | Gen | Seq | Brand | PN | Nomen | Qty | UOM | Pkg | Bin | Actions) */
  --col-gen:       clamp(5em,   10cqw, 6em);
  --col-seq:       clamp(3.8em,  8cqw, 4.5em);
  --col-brand:     clamp(5em,   10cqw, 6em);
  --col-pn-min:    clamp(8em,   28cqw, 12em);
  --col-nomen-min: clamp(9em,   30cqw, 16em);
  --col-qty:       clamp(3.2em,  7cqw, 6em);     /* more compressible qty */
  --col-uom:       clamp(3.8em,  8cqw, 5em);
  --col-pkg:       clamp(3.6em,  8cqw, 6.5em);
  --bin-w:         clamp(6.5em, 14cqw, 12em);
  --actions-w:     clamp(7em,   16cqw, 11em);
  --row-gap:       clamp(4px,   1cqw,  8px);
}

/* Background by type */
.inv .inv-card.type-inventory[b-1lty4ow2d2] { background: #ffffff; }
.inv .inv-card.type-purchaseorder[b-1lty4ow2d2] { background: #fffbeb; }
.inv .inv-card.type-external[b-1lty4ow2d2] { background: #f0f9ff; }

/* Expanded accent */
.inv .inv-card.is-open[b-1lty4ow2d2] { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.inv .inv-card.type-inventory.is-open[b-1lty4ow2d2] { border-color: #2563eb; box-shadow: 0 6px 24px rgba(37,99,235,.18); }
.inv .inv-card.type-purchaseorder.is-open[b-1lty4ow2d2] { border-color: #f59e0b; box-shadow: 0 6px 24px rgba(245,158,11,.18); }
.inv .inv-card.type-external.is-open[b-1lty4ow2d2] { border-color: #0ea5e9; box-shadow: 0 6px 24px rgba(14,165,233,.18); }
.inv .inv-card.is-open[b-1lty4ow2d2]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; border-radius: 10px 0 0 10px;
}
.inv .inv-card.type-inventory.is-open[b-1lty4ow2d2]::before { background: #2563eb; }
.inv .inv-card.type-purchaseorder.is-open[b-1lty4ow2d2]::before { background: #f59e0b; }
.inv .inv-card.type-external.is-open[b-1lty4ow2d2]::before { background: #0ea5e9; }

/* Right column (actions area) */
.inv .card-actions[b-1lty4ow2d2] { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.inv .aside-inline[b-1lty4ow2d2] { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.inv .aside-stack[b-1lty4ow2d2] { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inv .aside-stack.tight[b-1lty4ow2d2] { gap: 6px; }
.inv .stack-row[b-1lty4ow2d2] { display: flex; align-items: center; gap: 8px; }

/* Top chips row */
.inv .card-meta[b-1lty4ow2d2] {
  position: absolute; top: -11px; left: 12px;
  display: flex; gap: 6px; z-index: 1; flex-wrap: wrap;
}

/* Base chip */
.inv .chip[b-1lty4ow2d2] {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 2px 8px; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Clickable chips */
.inv .chip.item.total[b-1lty4ow2d2],
.inv .chip.qual[b-1lty4ow2d2] {
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.inv .chip.item.total:hover[b-1lty4ow2d2],
.inv .chip.qual:hover[b-1lty4ow2d2] { background: #f3f4f6; }
.inv .chip.item.total.active[b-1lty4ow2d2],
.inv .chip.qual.active[b-1lty4ow2d2] { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Total chip */
.inv .chip.item.total[b-1lty4ow2d2] { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }
.inv .chip.item.total.active[b-1lty4ow2d2] { box-shadow: 0 0 0 3px rgba(99,102,241,.25); transform: translateY(-1px) scale(1.03); }

/* Quality chips */
.inv .chip.qual[b-1lty4ow2d2] { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #111827; }
.inv .chip.qual.disabled[b-1lty4ow2d2] { opacity: 1; cursor: default; pointer-events: none; transform: none; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.inv .chip.qual.disabled .qty[b-1lty4ow2d2] { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.inv .chip.qual.disabled .dot[b-1lty4ow2d2] { opacity: .7; }
.inv .chip.qual.active[b-1lty4ow2d2] { transform: translateY(-1px) scale(1.03); color: #fff; }
.inv .chip.qual.active .qty[b-1lty4ow2d2] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.inv .chip.qual.active .dot[b-1lty4ow2d2] { background: #fff; }
.inv .chip.qual.good[b-1lty4ow2d2] { border-color: #86efac; background: #ecfdf5; }
.inv .chip.qual.good .dot[b-1lty4ow2d2] { background: #16a34a; }
.inv .chip.qual.active.good[b-1lty4ow2d2] { background: #16a34a; border-color: #15803d; box-shadow: 0 0 0 3px rgba(22,163,74,.25), 0 6px 16px rgba(22,163,74,.20); }
.inv .chip.qual.ok[b-1lty4ow2d2] { border-color: #fcd34d; background: #fffbeb; }
.inv .chip.qual.ok .dot[b-1lty4ow2d2] { background: #f59e0b; }
.inv .chip.qual.active.ok[b-1lty4ow2d2] { background: #f59e0b; border-color: #b45309; box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 6px 16px rgba(245,158,11,.20); }
.inv .chip.qual.bad[b-1lty4ow2d2] { border-color: #fca5a5; background: #fef2f2; }
.inv .chip.qual.bad .dot[b-1lty4ow2d2] { background: #ef4444; }
.inv .chip.qual.active.bad[b-1lty4ow2d2] { background: #ef4444; border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 6px 16px rgba(239,68,68,.20); }

/* Keyboard focus */
.inv .chip:focus-visible[b-1lty4ow2d2] { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.45); }

/* ------------------------------
   Summary row
   ------------------------------ */
.inv .summary-row[b-1lty4ow2d2] { cursor: pointer; user-select: none; }
.inv .grid.row1[b-1lty4ow2d2] {
  display: grid;
  grid-template-columns:
    var(--w-brand)
    var(--w-part)
    minmax(var(--w-desc-min), 1fr)
    var(--w-qty)
    var(--w-price)
    var(--w-exp);
  gap: 8px; align-items: center;
}
.inv .field[b-1lty4ow2d2] { min-width: 0; }
.inv .w-qty[b-1lty4ow2d2], .inv .w-price[b-1lty4ow2d2], .inv .w-expander[b-1lty4ow2d2] { text-align: right; }

/* Header open accent */
.inv .inv-card.is-open .summary-row[b-1lty4ow2d2] {
  background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, rgba(255,255,255,1) 85%);
  border: 1px solid rgba(0,0,0,.08); padding: 8px; border-radius: 10px;
}

/* ------------------------------
   Mini meter
   ------------------------------ */
.meter-mini[b-1lty4ow2d2] { width: 90px; height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; display: inline-block; }
.meter-mini .meter-fill[b-1lty4ow2d2] { height: 100%; width: 0%; transition: width .18s ease; }
.meter-mini .meter-fill.low[b-1lty4ow2d2]  { background: #10b981; }
.meter-mini .meter-fill.mid[b-1lty4ow2d2]  { background: #f59e0b; }
.meter-mini .meter-fill.high[b-1lty4ow2d2] { background: #ef4444; }

/* ------------------------------
   Items list + rows
   ------------------------------ */
.inv .items-list[b-1lty4ow2d2] {
  display: flex; flex-direction: column; gap: var(--row-gap); margin-top: 10px;

  /* [chev][Gen][Seq][Brand][PN][Nomen][Qty][UOM][Pkg][Bin][Actions] */
  --cols: 26px
          var(--col-gen) var(--col-seq) var(--col-brand)
          minmax(var(--col-pn-min), 1fr)
          minmax(var(--col-nomen-min), 1.2fr)
          var(--col-qty) var(--col-uom) var(--col-pkg)
          var(--bin-w) var(--actions-w);
}

.inv .item-row[b-1lty4ow2d2] {
  display: grid; grid-template-columns: var(--cols);
  gap: 8px; align-items: center;
  background: #fff; border: 1px dashed #e5e7eb; border-radius: 8px;
  padding: 6px 8px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.inv .item-row.is-open[b-1lty4ow2d2] {
  background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 1px 10px rgba(37,99,235,.08);
  position: relative;
}
.inv .type-purchaseorder .item-row.is-open[b-1lty4ow2d2] { background: #fff7ed; border-color: #fde68a; box-shadow: 0 1px 10px rgba(245,158,11,.10); }
.inv .type-external .item-row.is-open[b-1lty4ow2d2]      { background: #e0f2fe; border-color: #bae6fd; box-shadow: 0 1px 10px rgba(14,165,233,.10); }
.inv .item-row.is-open[b-1lty4ow2d2]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: #2563eb; border-radius: 8px 0 0 8px;
}
.inv .type-purchaseorder .item-row.is-open[b-1lty4ow2d2]::before { background: #f59e0b; }
.inv .type-external      .item-row.is-open[b-1lty4ow2d2]::before { background: #0ea5e9; }

.inv .item-row .cell[b-1lty4ow2d2] { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .qty[b-1lty4ow2d2] { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-1lty4ow2d2],
.inv .item-row .bin[b-1lty4ow2d2] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv .item-row .pkgc[b-1lty4ow2d2] { max-width: 6ch; cursor: help; }
.inv .item-row .bin[b-1lty4ow2d2]  { max-width: 12ch; cursor: help; }

/* Row actions — fixed width aligned to the right */
.inv .row-actions[b-1lty4ow2d2] {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: nowrap; min-width: 0;
}
.inv .item-row .row-actions[b-1lty4ow2d2] {
  width: var(--actions-w); justify-self: end; padding-left: 10px; border-left: 1px solid #e5e7eb; overflow: hidden;
}
.inv .row-actions .icon-btn[b-1lty4ow2d2] { flex: 0 0 auto; }

/* Buttons & icons (em-based to follow text) */
.inv .icon[b-1lty4ow2d2] { width: 1.10em; height: 1.10em; display: block; stroke: currentColor; fill: none; }
.inv .icon-btn[b-1lty4ow2d2] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
  height: 2.00em; padding: 0 0.60em; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; }
.inv .icon-btn:hover[b-1lty4ow2d2] { background: #f3f4f6; }
.inv .icon-btn.primary[b-1lty4ow2d2] { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv .icon-btn.ghost[b-1lty4ow2d2] { background: transparent; }
.inv .icon-btn.chevron[b-1lty4ow2d2] { width: 2.00em; height: 2.00em; padding: 0; justify-content: center; }
.inv .icon-btn.chevron.small[b-1lty4ow2d2] { width: 1.60em; height: 1.60em; }
.inv .icon-btn.only-icon.sq[b-1lty4ow2d2] { width: 2.00em; height: 2.00em; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.inv .icon-btn.has-prev[b-1lty4ow2d2] { border-style: solid; border-color: #c7d2fe; background: #eef2ff; }
.inv .icon-btn.has-prev:hover[b-1lty4ow2d2] { background: #e0e7ff; border-color: #a5b4fc; }

.inv .icon-btn .ico[b-1lty4ow2d2] { line-height: 1; display: inline-block; } /* emoji alignment */

/* Details panel */
.inv .details[b-1lty4ow2d2] { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin: 6px 0 0 26px; }
.inv .details.details-min[b-1lty4ow2d2] { display: flex; align-items: center; gap: 8px; }
.inv .additional-title[b-1lty4ow2d2] { font-weight: 700; color: #111827; }

/* Type-accented items-list containers */
.inv .inv-card.type-inventory .items-list.accented[b-1lty4ow2d2] {
  background: #f7fbff; border-left: 4px solid #2563eb; box-shadow: inset 0 0 0 1px #e6efff;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-1lty4ow2d2 .16s ease-out both;
}
.inv .inv-card.type-purchaseorder .items-list.accented[b-1lty4ow2d2] {
  background: #fff7ed; border-left: 4px solid #f59e0b; box-shadow: inset 0 0 0 1px #fde68a;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-1lty4ow2d2 .16s ease-out both;
}
.inv .inv-card.type-external .items-list.accented[b-1lty4ow2d2] {
  background: #ecfeff; border-left: 4px solid #0ea5e9; box-shadow: inset 0 0 0 1px #bae6fd;
  padding: 10px 10px 10px 12px; border-radius: 10px; animation: showParts-b-1lty4ow2d2 .16s ease-out both;
}
@keyframes showParts-b-1lty4ow2d2 {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------
   Notes chips (wrap as units; do not collapse text)
   ------------------------------ */
.inv .notes-strip[b-1lty4ow2d2] {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0 0; grid-column: 2 / -1;
}
.inv .items-list > .notes-strip[b-1lty4ow2d2] { margin-left: 26px; } /* align under chevron */

.inv .note-chip[b-1lty4ow2d2] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  font-weight: 600; line-height: 1.2;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #1e3a8a;
  white-space: nowrap; flex: 0 0 auto; /* width = content; don’t shrink text */
}
/* remark visibly darker */
.inv .notes-strip .note-chip.remark[b-1lty4ow2d2] {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0b3b8a !important;
}

    .inv .notes-strip .note-chip.remark .note-ico[b-1lty4ow2d2] {
        color: #1d4ed8; /* blue-700 */
        stroke: currentColor;
    }
.inv .note-ico[b-1lty4ow2d2] { width: 14px; height: 14px; stroke: currentColor; flex: 0 0 auto; }
.inv .note-text[b-1lty4ow2d2] { flex: 0 1 auto; }

/* ------------------------------
   Container query adjustments (preferred)
   ------------------------------ */

/* Tighten actions & let it grow to fit buttons */
@container (max-width: 780px) {
  .inv .row-actions[b-1lty4ow2d2] { gap: 4px; }
  .inv .row-actions .icon-btn[b-1lty4ow2d2] { height: 1.8em; padding: 0 0.45em; }
  .inv .row-actions .ico[b-1lty4ow2d2] { font-size: 0.95em; line-height: 1; }

  .inv .items-list[b-1lty4ow2d2] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom) var(--col-pkg)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}

/* Remove lower-priority columns as space gets tight */
@container (max-width: 640px) {
  .inv .item-row .pkgc[b-1lty4ow2d2] { display: none; }
  .inv .items-list[b-1lty4ow2d2] {
    --cols: 26px
            var(--col-gen) var(--col-seq) var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
@container (max-width: 620px) {
  .inv .item-row .seq[b-1lty4ow2d2] { display: none; }
  .inv .items-list[b-1lty4ow2d2] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-qty) var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Hide Qty (show PN-inline badge if you add it in markup) */
@container (max-width: 560px) {
  .inv .item-row .qty[b-1lty4ow2d2] { display: none; }
  .inv .items-list[b-1lty4ow2d2] {
    --cols: 26px
            var(--col-gen)
            var(--col-brand)
            minmax(var(--col-pn-min), 1fr)
            minmax(var(--col-nomen-min), 1.2fr)
            var(--col-uom)
            var(--bin-w) minmax(var(--actions-w), max-content);
  }
}
/* Wrap actions on ultra-small cards */
@container (max-width: 520px) {
  .inv .row-actions[b-1lty4ow2d2] { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
/* Last resort: horizontal scroll */
@container (max-width: 480px) {
  .inv .items-list[b-1lty4ow2d2] { overflow-x: auto; }
}

/* ------------------------------
   Traditional media queries (layout tweaks)
   ------------------------------ */
@media (max-width: 980px) {
  .inv .inv-card[b-1lty4ow2d2] { grid-template-columns: 1fr; }
  .inv .card-actions[b-1lty4ow2d2] { flex-direction: row; }
  .inv .icon-btn[b-1lty4ow2d2] { flex: 1; justify-content: center; }
  .inv .aside-inline[b-1lty4ow2d2], .inv .aside-stack[b-1lty4ow2d2] { align-items: center; }
  .tabs[b-1lty4ow2d2] { flex-wrap: wrap; }
  .source-text[b-1lty4ow2d2] { max-width: 120px; }
}






/* /Shared/BdsLoader.razor.rz.scp.css */
.mrg-loader[b-t66xjcpkq6]{
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mrg-loader[b-t66xjcpkq6]::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid white;
    border-top: 8px solid var(--theme-color);
    border-radius: 50%;
    animation: mrg-spin-b-t66xjcpkq6 0.9s linear infinite;
}

.mrg-loader .logo[b-t66xjcpkq6] {
    position: relative;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    color: var(--theme-color);
    font-size: 18px;
    letter-spacing: 0.12em;
    user-select: none;
    z-index: 1;
}

@keyframes mrg-spin-b-t66xjcpkq6 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


