/* Filing-history chart (NIGHT_28)
   Webull-style time-series; TradingView Lightweight Charts.
   Inverted palette: filings UP = RED, DOWN = GREEN, FLAT = YELLOW. */

[data-filing-chart] {
  position: relative;
  width: 100%;
  display: block;
}
[data-filing-chart][data-chart-size="full"] {
  min-height: 440px;
  padding-top: 4px;
}
[data-filing-chart][data-chart-size="compact"] {
  min-height: 220px;
}

.chart-range-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.chart-range-btn {
  background: rgba(23, 23, 23, 0.8);
  border: 1px solid rgba(64, 64, 64, 0.8);
  color: var(--text-secondary, #a3a3a3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.chart-range-btn:hover {
  border-color: rgba(115, 115, 115, 0.9);
  color: var(--text-primary, #d4d4d4);
}
.chart-range-btn--active {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
}

.chart-canvas {
  position: relative;
  width: 100%;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(64, 64, 64, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.chart-loading {
  padding: 80px 20px;
  color: var(--text-tertiary, #737373);
  font-size: 13px;
  text-align: center;
}

.chart-error {
  color: var(--text-tertiary, #737373);
  font-size: 13px;
  text-align: center;
  padding: 60px 20px;
  background: rgba(23, 23, 23, 0.4);
  border: 1px solid rgba(64, 64, 64, 0.3);
  border-radius: 10px;
  margin: 0;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(80, 80, 80, 0.6);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #e5e5e5;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.chart-tooltip__title {
  font-weight: 700;
  font-size: 13px;
  color: #f5f5f5;
  margin-bottom: 6px;
}
.chart-tooltip__row {
  color: #d4d4d4;
  margin: 2px 0;
}
.chart-tooltip__row b {
  color: #fafafa;
  font-weight: 700;
}
.chart-tooltip__trend {
  margin-top: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.chart-attribution {
  margin-top: 8px;
  text-align: right;
  font-size: 10px;
  color: var(--text-tertiary, #737373);
  opacity: 0.8;
}
.chart-attribution a {
  color: var(--text-tertiary, #737373);
  text-decoration: underline;
}
.chart-attribution a:hover {
  color: var(--text-secondary, #a3a3a3);
}
