/*
 * ==============================================================================
 * Cash/Frontend/center/cash_centers-styles.css
 * ==============================================================================
 * What:
 *     Page-specific styles for the Cash Centers & CIT dashboard
 *     (cash_centers.html). Extends the shared hex design system.
 *
 * Depends:
 *     /shared/css/hex-design-system.css
 *     /shared/css/hex-components.css
 *     /shared/css/hex-utilities.css
 * ==============================================================================
 */

/* ── Data quality banner ────────────────────────────────────────────────── */
.dq-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 20px 4px;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    color: #fbbf24;
    font-size: 13px;
    line-height: 1.5;
}

.dq-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Data quality badges ─────────────────────────────────────────────────── */
.dq-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.dq-stale {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.dq-warn {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Fill / utilisation bar ─────────────────────────────────────────────── */
.fill-bar-wrap {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.fill-bar-inner {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ── Make-vs-buy cheaper badges ─────────────────────────────────────────── */
.cheaper-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cheaper-inhouse {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cheaper-vendor {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Clickable row ──────────────────────────────────────────────────────── */
.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.clickable-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ── m-PVRP note ────────────────────────────────────────────────────────── */
.mpvrp-note {
    margin: 4px 0 12px;
    padding: 6px 12px;
    background: rgba(96, 165, 250, 0.08);
    border-left: 3px solid rgba(96, 165, 250, 0.4);
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    color: var(--text-muted, #8b949e);
    font-style: italic;
}
