/* cashFlowSankey.css — Interactive cash flow waterfall visualization */

.cf-waterfall-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    font-family: var(--liq-font-body);
}
.cf-waterfall-wrapper .report-title {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    font-family: var(--liq-font-display);
}
.cf-waterfall-wrapper .report-subtitle {
    font-size: 10pt;
    text-align: center;
    margin-bottom: 12px;
    font-style: italic;
    color: var(--liq-text-muted);
}

/* Metrics strip */
.cf-metrics-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.cf-metric-card {
    flex: 1;
    min-width: 120px;
    padding: 9px 11px;
    background: var(--liq-bg);
    border: 1px solid var(--liq-border-light);
    border-radius: 8px;
    cursor: default;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cf-metric-card:hover {
    border-color: var(--liq-accent);
    box-shadow: var(--liq-shadow-sm);
    transform: translateY(-1px);
}
.cf-metric-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--liq-text-muted);
    margin-bottom: 4px;
}
.cf-metric-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--liq-font-mono);
    color: var(--liq-text);
}
.cf-metric-value.positive { color: var(--liq-profit); }
.cf-metric-value.negative { color: var(--liq-loss); }

/* Chart container */
.cf-chart-container {
    margin-bottom: 14px;
    padding: 10px;
    background: var(--liq-surface);
    border: 1px solid var(--liq-border-light);
    border-radius: 8px;
    box-shadow: var(--liq-shadow-sm);
}

.cf-chart-container .liq-apex-host[id="cfWaterfallChart"],
.cf-slider-section .liq-apex-host[id="cfMonthlyChart"] {
    width: 100%;
    height: 100%;
}

/* Monthly slider section */
.cf-slider-section {
    margin-bottom: 14px;
    padding: 10px;
    background: var(--liq-surface);
    border: 1px solid var(--liq-border-light);
    border-radius: 8px;
    box-shadow: var(--liq-shadow-sm);
}
.cf-slider-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--liq-text);
}

/* Detail section */
.cf-detail-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.cf-section-card {
    border: 1px solid var(--liq-border-light);
    border-radius: 8px;
    overflow: hidden;
}
.cf-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    cursor: pointer;
    background: var(--liq-bg);
    transition: background 0.15s;
}
.cf-section-header:hover { background: var(--liq-accent-light); }
.cf-section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cf-section-title {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
}
.cf-section-total {
    font-family: var(--liq-font-mono);
    font-weight: 700;
    font-size: 14px;
}
.cf-section-total.positive { color: var(--liq-profit); }
.cf-section-total.negative { color: var(--liq-loss); }
.cf-section-chevron {
    font-size: 10px;
    color: var(--liq-text-muted);
    transition: transform 0.2s ease;
}
.cf-section-body {
    padding: 0 11px 8px;
}
.cf-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.cf-detail-table tr:hover td { background: var(--liq-bg); }
.cf-detail-desc {
    padding: 6px 8px;
    font-size: 13px;
    border-bottom: 1px solid var(--liq-border-lighter);
}
.cf-detail-amt {
    padding: 6px 8px;
    text-align: right;
    font-family: var(--liq-font-mono);
    font-size: 12px;
    border-bottom: 1px solid var(--liq-border-lighter);
    white-space: nowrap;
}
.cf-empty {
    color: var(--liq-text-muted);
    font-style: italic;
    font-size: 13px;
    padding: 8px 0;
}
.cf-note {
    font-size: 11px;
    text-align: center;
    color: var(--liq-text-muted);
    margin-top: 10px;
}
