/* ============================================
   Orders Page — Procurement View
   ============================================ */

.orders-cart-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.orders-label {
    font-size: 0.82em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 4px;
}

.orders-cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8em;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s;
    user-select: none;
}

.orders-cart-chip:hover {
    background: rgba(79, 195, 247, 0.08);
}

.orders-cart-chip.active {
    background: rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.3);
    color: #4fc3f7;
}

/* ── Supplier cards ── */
.orders-supplier-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.orders-supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-supplier-total {
    font-size: 1.1em;
    font-weight: 700;
    color: #4fc3f7;
}

.orders-shipping-info {
    font-size: 0.78em;
    margin-top: 2px;
}

/* ── Product rows ── */
.orders-product-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.orders-product-row:last-child {
    border-bottom: none;
}

.orders-product-info {
    flex: 1;
    min-width: 0;
}

.orders-product-name {
    font-size: 0.82em;
    word-break: break-word;
}

.orders-product-source {
    font-size: 0.68em;
    color: rgba(255, 255, 255, 0.35);
}

.orders-product-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.orders-qty {
    font-size: 0.8em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.orders-product-price {
    font-size: 0.9em;
    font-weight: 600;
    color: #81c784;
    min-width: 65px;
    text-align: right;
}

/* ── Totals ── */
.orders-total-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid rgba(79, 195, 247, 0.2);
}

.orders-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9em;
}

.orders-grand-total {
    font-size: 1.2em;
    font-weight: 700;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #4fc3f7;
}

/* ── Actions ── */
.orders-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .orders-product-row {
        flex-wrap: wrap;
    }

    .orders-product-controls {
        margin-left: auto;
    }
}