@import url('./live-trades-ea.css');

/* Backtest page-specific polish while reusing shared dashboard styles. */
#backtest-runs-section .data-table {
    min-width: 1120px;
}

#backtest-summary-cards .metric-card {
    min-height: 108px;
}

/* ── Lowest-correlation controls ─────────────────────────────────────────── */
.lowest-corr-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.threshold-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tb-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.threshold-input {
    width: 72px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: var(--tb-text);
    font-size: 0.9rem;
    text-align: center;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(32, 227, 178, 0.24), rgba(87, 199, 255, 0.22));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, rgba(32, 227, 178, 0.38), rgba(87, 199, 255, 0.36));
}

/* ── Lowest-correlation results ──────────────────────────────────────────── */
.lowest-corr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 16px 0;
}

.lowest-corr-group-card {
    align-self: start;
}

.lowest-corr-summary {
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.lowest-corr-list {
    max-height: 380px;
    overflow-y: auto;
}

.lowest-corr-monthly-wrap {
    margin-top: 14px;
    max-height: 280px;
    overflow-y: auto;
}

.lowest-corr-monthly-wrap .monthly-bar-track {
    min-width: 60px;
}

