/* signals-tester.css — the Signals page's Backtest view (pages/signals/tester.js):
   the config strip, the report's stat tiles and the trades table. Charts, tiles,
   tabs and tables are the shared components (charts.js, .kpi-grid, .subtabs,
   .tbl); only the strip's own layout lives here. */

.sg-tester { display: flex; flex-direction: column; gap: var(--gap); }

/* ── config strip ─────────────────────────────────────────────────────── */
.sg-bt-config { padding: 12px 14px; }
.sg-bt-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sg-bt-form .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-bt-form .field > span { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.sg-bt-form input.sm, .sg-bt-form select.sm { height: 30px; }
.sg-bt-form input[type="number"] { width: 92px; }
.sg-bt-form input#sgBtSym { width: 120px; text-transform: uppercase; }
.sg-bt-form input[type="date"] { width: 130px; }
.sg-bt-range .row { gap: 8px; }
.sg-bt-check input { height: auto; margin: 8px 0; }
.sg-bt-form #sgBtRun { margin-left: auto; }

/* ── report ───────────────────────────────────────────────────────────── */
.sg-bt-head { margin: 0; }
.sg-bt-kpis { margin-bottom: 0; }
.sg-bt-tabs { margin-top: 4px; }
.sg-bt-body { display: flex; flex-direction: column; gap: var(--gap); }
.sg-bt-grid { align-items: start; }
.sg-bt-trades { max-height: 520px; }
.sg-bt-trades .tag { font-size: 10.5px; }

@media (max-width: 900px) {
  .sg-bt-form { gap: 10px; }
  .sg-bt-form #sgBtRun { margin-left: 0; width: 100%; }
  .sg-bt-grid { grid-template-columns: 1fr; }
}

/* Trade chart: candles around the selected trade (tester.js chartCard). */
.sg-bt-chartcard .card-head .row { gap: 8px; align-items: center; }
.sg-bt-chartwrap { position: relative; border-top: 1px solid var(--border); }
.sg-bt-chart { position: relative; height: 380px; outline: none; }
.sg-bt-chartmsg {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 12.5px; pointer-events: none;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.sg-bt-trades tr.clickable { cursor: pointer; }
@media (max-width: 900px) {
  .sg-bt-chart { height: 300px; }
}
