/* =============================================================================
   Cross-route glue for the dmweb SPA shell (index.html), loaded ONCE — AFTER
   design-system.css, which owns the tokens, reset/base (box-sizing, body) and
   shared components. This file keeps only the cross-page primitives that
   routes rely on where they still differ from the design system (cards,
   status, tables, pills, filters, stats) — migrate rules into
   design-system.css rather than growing this file. The fixed-viewport shell
   LAYOUT (body flex column, header, #sidebarHost, <main> scrollport) is owned
   by sidebar.css. Each route adds its page-specific rules via
   routes/<route>.css (swapped per mount).
   ========================================================================== */

/* Status + empty-state — shared by every route. (The .card block itself is
   design-system.css §card — the copy that used to sit here shadowed its
   padding/heading defaults; removed 2026-07-18.) */
.status { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 12px; min-height: 18px; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.empty { color: var(--muted); font-size: var(--fs-sm); padding: 8px 0; }

/* Tables. */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
th { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); border-top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pills. */
.pill { display: inline-block; font-size: var(--fs-micro); padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: var(--accent); }
.pill.off { background: var(--surface-hover); color: var(--muted); }
.pill.bad { background: #fdecea; color: var(--err); }

/* Stat strip (usage dashboards). */
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 140px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.stat .num { font-size: 22px; font-weight: 600; }
.stat .lbl { font-size: var(--fs-micro); font-weight: 600; color: var(--muted); margin-top: 2px; }
.stat.err .num { color: var(--err); }

/* Filter bar (usage dashboards). */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: var(--fs-sm); font-weight: 500; color: var(--fg); gap: 6px; }
.filters input, .filters select {
  font: inherit; font-size: var(--fs-sm); padding: 6px 8px; border: 1px solid var(--border);
  border-radius: 4px; background: #fff; color: var(--fg); min-width: 130px;
}
.filters button {
  background: var(--accent); color: #fff; border: 0; padding: 7px 14px;
  border-radius: 4px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.filters button:hover { background: var(--accent-hover); }
.filters button.ghost { background: #fff; color: var(--fg); border: 1px solid var(--border); }
.filters button.ghost:hover { background: var(--surface-hover); }

/* Two-column grid (usage dashboards). */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* User-row cells (Users page). */
td .uname { font-weight: 500; }
td .uemail { color: var(--muted); font-size: var(--fs-meta); }
