/* equities.css ─ Equities tab: company buttons, range buttons, news ticker (.eq-news-*), #eq-news-selector, #equities-table. Loads after bloomberg.css because #eq-news-selector overrides .ratio-btn. */

.eq-company-btn {
  padding: 4px 8px;
  background: #1e2130;
  border: 1px solid #2e3145;
  border-radius: 4px;
  color: #b8bdd0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.eq-company-btn:hover {
  color: #ccc;
  border-color: #b0b6c8;
}
.eq-company-btn.active {
  background: color-mix(in srgb, var(--eq-color, #c9a84c) 13%, transparent);
  border-color: var(--eq-color, #c9a84c);
  color: var(--eq-color, #c9a84c);
}

#eq-company-toggles {
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

/* News company selector — wraps to multiple rows, sized by content */
#eq-news-selector {
  flex-wrap: wrap;
  gap: 4px;
}
#eq-news-selector .ratio-btn {
  flex: 0 1 auto;
  padding: 4px 8px;
  white-space: nowrap;
}
/* ── Equities range buttons ── */
.eq-range-btn {
  flex: 1;
  padding: 4px 0;
  background: #1e2130;
  border: 1px solid #2e3145;
  border-radius: 4px;
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.eq-range-btn:hover {
  color: #fff;
  border-color: #b8bdd0;
}
.eq-range-btn.active {
  background: #c9a84c22;
  border-color: #c9a84c;
  color: #c9a84c;
}

/* ── News feed ── */
.eq-news-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  transition: opacity 0.15s ease;
}
.eq-news-item {
  padding: 8px 10px;
  background: #1a1d27;
  border: 1px solid #2e3145;
  border-radius: 4px;
}
.eq-news-headline {
  font-size: 11px;
  font-weight: 600;
  color: #c8c8c8;
  line-height: 1.4;
  margin-bottom: 3px;
}
.eq-news-headline a {
  color: #c9a84c;
  text-decoration: none;
}
.eq-news-headline a:hover {
  text-decoration: underline;
}
.eq-news-meta {
  font-size: 10px;
  color: #b0b6c8;
}
.eq-news-summary {
  font-size: 10px;
  color: #c0c5d8;
  margin-top: 3px;
  line-height: 1.4;
}

#equities-table {
  min-width: 440px;
  font-size: 11px;
}

#equities-table th {
  color: #c8c8c8;
  white-space: nowrap;
}

#equities-table td {
  white-space: nowrap;
  padding: 4px 6px;
}

#equities-table th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

#equities-table th.sortable:hover {
  color: #d4b86a;
}

#equities-table th.sorted {
  color: #c9a84c;
}

.sort-arrow {
  font-size: 9px;
}

