/*
 * ==============================================================================
 * Cash/Frontend/cost/cash_cost-styles.css
 * ==============================================================================
 * What:
 *     Page-specific styles for the Cost-of-Cash dashboard (CC.2).
 *     Extends the shared hex design system.
 *
 * Depends:
 *     /shared/css/hex-design-system.css
 *     /shared/css/hex-components.css
 *     /shared/css/hex-utilities.css
 * ==============================================================================
 */

/* ── Excess disclaimer banner ────────────────────────────────────────────── */
.dq-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 20px 4px;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.30);
    border-left: 4px solid #6366f1;
    border-radius: 6px;
    color: #a5b4fc;
    font-size: 13px;
    line-height: 1.5;
}

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

/* ── Annotation box (below chart) ────────────────────────────────────────── */
.annotation-box {
    margin: 0 20px 12px;
    padding: 8px 14px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.20);
    border-radius: 4px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
}

/* ── Node type badges ─────────────────────────────────────────────────────── */
.type-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.type-center {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.type-branch {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.30);
}

.type-remittance {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.30);
}

.type-atm {
    background: rgba(168, 85, 247, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.30);
}

/* ── Outlier badges + rows ───────────────────────────────────────────────── */
.outlier-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.30);
}

tr.outlier-row td {
    background: rgba(239, 68, 68, 0.04);
}

/* ── Drill button ────────────────────────────────────────────────────────── */
.btn-drill {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-drill:hover {
    background: rgba(245, 158, 11, 0.22);
}

/* ── Back button ─────────────────────────────────────────────────────────── */
.btn-back {
    background: rgba(99, 102, 241, 0.10);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-back:hover {
    background: rgba(99, 102, 241, 0.20);
}
