/* admin.css — console-specific layout on top of the shared theme.css tokens (teal system, 8px
   rhythm, 8px radius, soft single elevation). Read-mostly + dense-but-legible (decision D13). All
   colours come from theme.css CSS variables — no new palette. WCAG 2.2 AA: ≥44px targets, visible
   focus inherited from theme.css, semantic table. */

.loading {
  display: grid;
  gap: 10px;
}

/* Visually hidden but available to assistive tech (table <caption>, etc.). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Semantic merchants table — dense, legible, keyboard/SR friendly. */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.adm-table th,
.adm-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.adm-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  font-weight: 600;
}
.adm-table tbody tr:hover {
  background: var(--gray-50);
}
.adm-table a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.adm-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Small status/flag pills (hold/comp), distinct from the billing .status-badge. */
.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chip.hold {
  background: #fbe7e7;
  color: var(--red);
}
.chip.comp {
  background: var(--teal-light);
  color: var(--teal);
}

/* Key/value detail grid. */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}
.kv dt {
  color: var(--gray-700);
  font-size: 0.82rem;
}
.kv dd {
  margin: 0;
  font-weight: 600;
}

/* Operator action button row + forms. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.actions .btn-primary,
.actions .btn-ghost,
.actions .btn-danger {
  min-height: 44px;
}
.action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}
.action-form label {
  display: grid;
  gap: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
}
.action-form input {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--field-border); /* 1.4.11 non-text contrast (≥3:1) */
  border-radius: var(--radius);
  font: inherit;
}

/* Not-authorized banner (Access edge auth already gates; this is the SPA's 403 state). */
.banner {
  max-width: 460px;
  margin: 64px auto;
  text-align: center;
}

/* Currency rows in the MRR tile (one line per currency — never summed). */
.mrr-rows {
  display: grid;
  gap: 2px;
}
