/* Activity Logs v2 (Alex approved 10/23) — the user Activity page (js/activity.js) and the
   admin System Log tabs (js/system-log.js). Tokens only (css/tokens.css): monotone, Inter
   tabular figures; green/red only for P&L; red rows only for a live needs-attention problem. */

.act-tabs { display: inline-flex; gap: 6px; margin-left: auto; }
.act-tabs[hidden] { display: none; }

.act-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.act-toolbar .log-search-wrap { flex: 1 1 260px; min-width: 220px; }
.act-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.act-dates [hidden] { display: none !important; }
.act-to-word { color: var(--ds-muted); font-size: var(--ds-fs-12); }

.act-summary { margin: 4px 0 12px; font-size: var(--ds-fs-14); color: var(--ds-text); }
.act-summary b { font-weight: 600; }
.act-loss { color: var(--ds-pnl-down); }
.act-gain { color: var(--ds-pnl-up); }
.act-alert { color: var(--ds-danger); font-weight: 600; }

.act-table { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); overflow: hidden; }
.act-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px 120px 56px; gap: 16px; align-items: center;
  padding: 0 16px; min-height: 52px; border-top: 1px solid var(--ds-border); font-variant-numeric: tabular-nums; }
.act-head { min-height: 38px; border-top: 0; font-size: var(--ds-fs-12); font-weight: 500; color: var(--ds-label);
  text-transform: uppercase; letter-spacing: var(--ds-label-tracking); white-space: nowrap; }
.act-day { padding: 10px 16px 6px; border-top: 1px solid var(--ds-border); background: var(--ds-bg);
  font-size: var(--ds-fs-12); font-weight: 600; color: var(--ds-label); letter-spacing: var(--ds-label-tracking); }
.act-what { min-width: 0; color: var(--ds-text); overflow-wrap: anywhere; }
.act-bot { color: var(--ds-muted); }
.act-outcome { white-space: nowrap; }
.act-time { text-align: right; color: var(--ds-muted); white-space: nowrap; }
.act-head .act-time { color: var(--ds-label); }
.act-go { font-size: var(--ds-fs-13); color: var(--ds-label); opacity: 0; white-space: nowrap; }
.act-click { cursor: pointer; }
.act-click:hover, .act-click:focus-visible { background: var(--ds-hover); outline: none; }
.act-click:hover .act-go, .act-click:focus-visible .act-go { opacity: 1; color: var(--ds-accent); }
.act-attn { background: var(--ds-danger-soft); }
.act-attn .act-text { color: var(--ds-danger); font-weight: 500; }
.act-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ds-text);
  color: var(--ds-on-primary); font: inherit; font-size: var(--ds-fs-13); font-weight: 500; cursor: pointer; }
.act-btn:focus-visible { box-shadow: var(--ds-focus-ring); outline: none; }
.act-empty { padding: 18px 16px; color: var(--ds-muted); }
.act-more { margin-top: 12px; }
.act-more[hidden] { display: none; }
.act-note { margin: 12px 0 0; font-size: var(--ds-fs-12); color: var(--ds-label); }
.act-note[hidden] { display: none; }

.act-sys-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.act-sys-head .log-filters { margin-bottom: 0; }
.log-tag.aud-user { background: var(--ds-hover); color: var(--ds-text); }
.log-tag.aud-admin { background: transparent; color: var(--ds-label); border: 1px solid var(--ds-border); }

@media (max-width: 760px) {
  .act-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; }
  .act-head { display: none; }
  .act-what { grid-column: 1 / 3; }
  .act-time { text-align: left; }
  .act-go { display: none; }
}
