/* Inventory hub — pipeline funnel (scoped) */

.inv-pipeline-wrap {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.inv-pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: min(100%, 720px);
    margin: 0 auto;
}

.inv-pipeline-stage {
    flex: 1 1 0;
    min-width: 108px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.inv-pipeline-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--rp-border, #e5e7eb);
    z-index: 1;
    transform: translateY(-50%);
}

.inv-pipeline-stage-inner {
    border: 1px solid var(--rp-border, #e5e7eb);
    border-radius: var(--rp-card-radius, 8px);
    padding: 1rem 0.75rem;
    text-align: center;
    background: var(--rp-card-bg, #fff);
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inv-pipeline-stage:hover .inv-pipeline-stage-inner {
    border-color: var(--rp-btn-primary-bg, #4f46e5);
    box-shadow: var(--rp-card-shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-2px);
}

.inv-pipeline-stage.is-active .inv-pipeline-stage-inner {
    border-color: var(--rp-btn-primary-bg, #4f46e5);
    background: var(--rp-nav-active-bg, #eef2ff);
}

.inv-pipeline-icon {
    font-size: 1.5rem;
    color: var(--rp-btn-primary-bg, #4f46e5);
    display: block;
    margin-bottom: 0.35rem;
}

.inv-pipeline-count {
    font-size: 1.75rem;
    font-weight: var(--rp-kpi-weight, 700);
    line-height: 1.1;
}

.inv-pipeline-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: #374151;
}

.inv-pipeline-sub {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.inv-pipeline-bar {
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    margin-top: 0.5rem;
    overflow: hidden;
}

.inv-pipeline-bar-fill {
    height: 100%;
    background: var(--rp-btn-primary-bg, #4f46e5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.inv-hint-banner {
    border-left: 4px solid var(--rp-btn-primary-bg, #4f46e5);
    background: #eef2ff;
    padding: 0.75rem 1rem;
    border-radius: 0 var(--rp-card-radius, 8px) var(--rp-card-radius, 8px) 0;
    font-size: 0.875rem;
}

.inv-stage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.inv-stage-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.inv-seg-inspection::before { background: #f59e0b; }
.inv-seg-listing::before { background: #06b6d4; }
.inv-seg-listed::before { background: #4f46e5; }
.inv-seg-sold::before { background: #10b981; }
.inv-seg-storage::before { background: #9ca3af; }

.inv-stage-segment {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.inv-stage-segment:hover {
    opacity: 0.85;
}
