/* Trading Cockpit — supplementary styles (Tailwind handles the bulk) */

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
  font-feature-settings: 'tnum' 1;
}

/* Monospace figures everywhere numbers matter */
.font-mono,
#r-price,
#r-indicators .font-mono,
#r-plan,
#r-forecast {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* Details/summary: hide default triangle */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] > summary .fa-chevron-down {
  transform: rotate(180deg);
}
details > summary .fa-chevron-down {
  transition: transform 0.18s ease;
}

/* Thin scrollbars for the agent report panels */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Loading step: completed state */
.loading-step .step-icon i {
  font-size: 9px;
}

/* Chart container must have explicit height for lightweight-charts */
#chart-container {
  position: relative;
}

/* Focus ring consistency for keyboard users */
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 1px;
}

/* Table row hover in the journal */
#journal-body tr {
  transition: background-color 0.12s ease;
}

/* Numeric table cells stay aligned even when empty */
#journal-body td {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  #chart-container {
    height: 260px !important;
  }
}
