﻿/* Ensure the Bootstrap modal dialog spans wide enough for dual tables + chart */
#moneyFlowModal .modal-dialog {
    max-width: 95vw !important;
    width: 1280px !important;
}

/* Wrapper to allow smooth horizontal scrolling on constrained screens */
.money-flow-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Flex layout: Stacked on mobile, side-by-side on desktop */
.money-flow-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

@media (min-width: 992px) {
    .money-flow-container {
        flex-direction: row;
        align-items: stretch;
    }

        .money-flow-container > * {
            flex: 1 1 50%;
            min-width: 480px; /* Prevents tables from squishing below readability */
        }
}

/* Chart container card */
.money-flow-chart-wrapper {
    width: 100%;
    margin-top: 15px;
    background: #11141a;
    border-radius: 6px;
    border: 1px solid #2a2e39;
    padding: 10px;
    box-sizing: border-box;
}

/* Chart header banner */
.chart-header-title {
    color: #d1d4dc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}
