/* =========================================================
   CHARTS
   ========================================================= */

/* remove unnecessary whitespace below plotly charts */

.chart-card .js-plotly-plot {
    width: 100%;
    background-color: var(--chart-bg); /* Make chart background lighter than dark background */
    border-radius: 8px; /* Soften chart container corners */
}

/* =========================================================
   DASHBOARD CHARTS
   ========================================================= */

/* Improve chart container sizing */
.chart-container {
    height: 650px !important;
}

/* ---------------------------------------------------------
   Main chart
   --------------------------------------------------------- */

.dashboard-main-chart {
    width: 100%;
    height: 650px;
}

.dashboard-main-chart .js-plotly-plot {
    width: 100%;
}


/* ---------------------------------------------------------
   Drawdown
   --------------------------------------------------------- */

.dashboard-drawdown-graph {
    width: 100%;
    height: 260px;
}

.drawdown-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.drawdown-value {
    color: var(--red);

    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   ECONOMY CHARTS
   ========================================================= */

.chart-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.chart-row > * {
    flex: 1 1 0;
    min-width: 0;
}

.chart-row .dash-graph {
    width: 100%;
}

/* Stack charts vertically on phones */
@media (max-width: 600px) {
    .chart-row {
        flex-direction: column;
    }

    .chart-row > * {
        width: 100%;
        flex: 0 0 auto;
    }
}
