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

.cf-waterfall-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'DM Sans', system-ui, sans-serif;
}
.cf-waterfall-wrapper .report-title {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Fraunces', serif;
}
.cf-waterfall-wrapper .report-subtitle {
    font-size: 10pt;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #717e96;
}

/* Metrics strip */
.cf-metrics-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cf-metric-card {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    background: #faf8f5;
    border: 1px solid #e8e4e0;
    border-radius: 8px;
    cursor: default;
    transition: border-color 0.15s;
}
.cf-metric-card:hover { border-color: #5b6eae; }
.cf-metric-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #717e96;
    margin-bottom: 4px;
}
.cf-metric-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1a1a1a;
}
.cf-metric-value.positive { color: #38a169; }
.cf-metric-value.negative { color: #c53030; }

/* Chart container */
.cf-chart-container {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4e0;
    border-radius: 8px;
}

/* Monthly slider section */
.cf-slider-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4e0;
    border-radius: 8px;
}
.cf-slider-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

/* Detail section */
.cf-detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.cf-section-card {
    border: 1px solid #e8e4e0;
    border-radius: 8px;
    overflow: hidden;
}
.cf-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    background: #faf8f5;
    transition: background 0.15s;
}
.cf-section-header:hover { background: #f0ece8; }
.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: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
}
.cf-section-total.positive { color: #38a169; }
.cf-section-total.negative { color: #c53030; }
.cf-section-chevron {
    font-size: 10px;
    color: #717e96;
    transition: transform 0.2s ease;
}
.cf-section-body {
    padding: 0 16px 12px;
}
.cf-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.cf-detail-table tr:hover td { background: #faf8f5; }
.cf-detail-desc {
    padding: 6px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f0ece8;
}
.cf-detail-amt {
    padding: 6px 8px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    border-bottom: 1px solid #f0ece8;
    white-space: nowrap;
}
.cf-empty {
    color: #717e96;
    font-style: italic;
    font-size: 13px;
    padding: 8px 0;
}
.cf-note {
    font-size: 11px;
    text-align: center;
    color: #717e96;
    margin-top: 16px;
}
