/* components/chart-container.css */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-container {
    background-color: var(--myceo-surface-1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-aggregation-filter {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--myceo-border-mid);
    border-radius: 4px;
    background-color: var(--myceo-surface-1);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.chart-container h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--myceo-surface-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--myceo-text-secondary);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-controls {
        width: 100%;
    }
    
    .chart-aggregation-filter {
        flex-grow: 1;
    }
}
/* ── Mobile / tablet (VERITAS-102 phase 2) ─────────────────────────
   This sheet is injected AFTER the layout stylesheet on dashboard
   pages, so its 2fr 1fr above wins the cascade over the layout's
   mobile 1fr override — the breakpoint has to live here too. */
.dashboard-charts > * { min-width: 0; } /* a wide canvas can't force the grid past the viewport */

@media (max-width: 992px) {
    .dashboard-charts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .chart-container { padding: 1rem; }
    .chart-placeholder { height: 240px; }
}
