/* tables — sortable data tables, column widths, row states */

.table-wrap { overflow-x: auto; }

.t {
  width: 100%;
  border-collapse: collapse;
}

.t th {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  white-space: nowrap;
}

.t th.num { text-align: right; }

.t td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 11px;
}

.t td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.t tr:last-child td { border-bottom: none; }
.t tr:hover td { background: rgba(255, 255, 255, 0.015); }

/* ── Status dot ─────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  vertical-align: middle;
}

.dot-green  { background: var(--accent); box-shadow: 0 0 6px rgba(0, 229, 176, 0.6); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 5px rgba(255, 209, 102, 0.5); }
.dot-red    { background: var(--red);    box-shadow: 0 0 6px rgba(255, 77, 106, 0.6); }

/* ── Ticker & name ─────────────────────────── */
.ticker-badge {
  font-family: var(--syne);
  font-size: 13px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: 0.5px;
}

.pos-name {
  font-size: 10px;
  color: var(--dim);
  max-width: 180px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ── P&L colours ────────────────────────────── */
.pnl-g { color: var(--accent); }
.pnl-r { color: var(--red); }

/* ── Weight bar ─────────────────────────────── */
.weight-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bar-w {
  width: 56px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}

.bar-f {
  height: 100%;
  border-radius: 2px;
}

.bf-green  { background: var(--accent); }
.bf-yellow { background: var(--yellow); }
.bf-red    { background: var(--red); }

/* ── Signal badge ───────────────────────────── */
.signal-badge {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  cursor: default;
  display: inline-block;
}

.badge-green  { background: rgba(0, 229, 176, 0.1);  color: var(--accent); border: 1px solid rgba(0, 229, 176, 0.25); }
.badge-yellow { background: rgba(255, 209, 102, 0.1); color: var(--yellow); border: 1px solid rgba(255, 209, 102, 0.25); }
.badge-red    { background: rgba(255, 77, 106, 0.1);  color: var(--red);    border: 1px solid rgba(255, 77, 106, 0.3); }
