
/* --- Responsive D3 Chart Containers --- */
.capital-chart {
    display: flex;
    width: 100%;
    height: 14px;
    position: relative;
    align-items: center;
}
.capital-cell{
    padding:0 !important;
}
.chart-left, .chart-right {
    width: 50%;
    display: flex;
    height: 100%;
}
.chart-left { justify-content: flex-end; }
.chart-right { justify-content: flex-start; }

.capital-chart svg {
    display: block;
    height: 100%;
}

/* Center divider line marker */
.capital-chart::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* --- New Interactive Tooltip Styling --- */
.d3-custom-tooltip {
    position: absolute;
    padding: 8px 12px;
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    pointer-events: none; /* Crucial so tooltip doesn't steal focus and flash */
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.d3-custom-tooltip strong {
    color: #58a6ff;
}