/* ═══════════════════════════════════════════════════════════════
   TRADING LEDGER & LEADERBOARD STYLES — Self-Contained Domain Styling
   ═══════════════════════════════════════════════════════════════ */

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.leader-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leader-rank {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gradient-subtle);
  color: #fbcfe8;
}

.leader-name {
  font-size: 0.9rem;
}

.leader-pnl {
  font-size: 1.18rem;
  font-weight: 700;
}

.leader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.empty-row-card {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.quant-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.quant-table th,
.quant-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.quant-table th {
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-cell {
  text-align: center !important;
  color: var(--text-muted);
  padding: 24px !important;
}

.dir-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

.dir-pill.is-long {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.dir-pill.is-short {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-close-inline {
  background: rgba(236, 72, 153, 0.18);
  color: #fbcfe8;
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-close-inline:hover {
  background: rgba(236, 72, 153, 0.34);
}

.exit-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 760px) {
  .leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }
}
