/*
 * Markets, every user (Phase 17, PMD-UI-018, /admin/markets): the users'
 * overview and the read-only bot table of everyone's bots, which is also
 * the workspace's Bots panel (.pmbt). The table shares the bot monitor's
 * sheet (markets-bots.css) and the live table's (pm-live-table.css).
 * Tokens only.
 */

.adm-page { display: flex; flex-direction: column; gap: var(--space-4); }
.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.adm-head h1 { margin: 0; font-size: var(--font-size-xl); }
.adm-sub { margin: var(--space-1) 0 0; font-size: var(--font-size-sm); }
.adm-asof { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); color: var(--color-text-muted); }
.adm-card {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.adm-card h2 { margin: 0 0 var(--space-2); font-size: var(--font-size-lg); }
.adm-bots-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.adm-table th,
.adm-table td { padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; }
.adm-table thead th { color: var(--color-text-muted); font-weight: 600; }
.adm-table .adm-num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-email { font-weight: 600; }
.adm-bad { color: var(--color-danger); font-weight: 600; }
.adm-bots-slot pm-live-table { --pm-lt-height: max(280px, calc(100vh - 480px)); }

.pmbt { display: flex; flex-direction: column; gap: var(--space-2); min-height: 0; height: 100%; }
.pmbt .pm-status { margin: 0; }
