/* ==========================================================================
   Product Portfolio Page
   ========================================================================== */

/* Expand control alignment */
.app-product-portfolio-list-page .dt-control {
    vertical-align: middle;
}

/* Product family thumbnail */
.app-product-portfolio-list-page .family-thumbnail {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

/* Product family name */
.family-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

/* Buttons inside portfolio rows */
.app-product-portfolio-list-page a.btn-primary {
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    min-width: 9rem;
    line-height: 1;
}

/* Child row spacing */
table.product-overview tr[data-dt-row] > td[colspan] > div {
    margin-left: 0.65rem;
    margin-right: 0.65rem;
}

/* ==========================================================================
   Progress bars (quantity breakdown)
   ========================================================================== */
.portfolio-progress.progress {
    height: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-progress .progress-bar {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5rem;
    transition: width 0.4s ease;
}

/* ==========================================================================
   Quantities bar legend (column header)
   ========================================================================== */
.quantities-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.quantities-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.quantities-legend .legend-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
}

.quantities-legend .legend-dot.delivered {
    background-color: var(--color-dark-orange);
}

.quantities-legend .legend-dot.pending {
    background-color: var(--color-light-orange);
}

.quantities-legend .legend-dot.open {
    background-color: var(--color-medium-green);
}

