/* CMS Access Simulator: operator console. Dark zinc neutrals with the CMS gold accent (see CMS.Web CmsTheme).
   Everything is scoped under .sim-root so the console can live inside the MudBlazor back office without
   restyling it; the standalone app puts .sim-root on its page root. */
.sim-root {
  --bg: #09090b;
  --surface: #0f0f12;
  --surface-2: #16161a;
  --muted: #1a1a1e;
  --border: #27272a;
  --fg: #fafafa;
  --mfg: #a1a1aa;
  --primary: #b0924b;
  --primary-soft: #221c10;
  --ring: #b0924b;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --info: #60a5fa;
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --radius: 0.5rem;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: 'Cascadia Mono', 'Consolas', ui-monospace, monospace;

  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color-scheme: dark;
}

.sim-root *, .sim-root *::before, .sim-root *::after { box-sizing: border-box; }

.sim-root button, .sim-root input, .sim-root select, .sim-root textarea { font: inherit; color: inherit; }

.sim-root .btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.sim-root .btn:hover { border-color: var(--mfg); }
.sim-root .btn.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.sim-root .btn.danger { border-color: var(--danger); color: var(--danger); }
.sim-root .btn.primary { background: var(--primary); border-color: var(--primary); color: #18120a; font-weight: 600; }
.sim-root .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.sim-root input[type=text], .sim-root input[type=number], .sim-root input[type=time], .sim-root input[type=date],
.sim-root input[type=datetime-local], .sim-root select {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
}
.sim-root input:focus, .sim-root select:focus, .sim-root button:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }

.sim-root .card {
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.sim-root .card-title { font-weight: 600; margin: 0 0 0.5rem; color: var(--fg); }
.sim-root .muted { color: var(--mfg); }
.sim-root .mono { font-family: var(--mono); }

/* Small state pill; callers color it (border/background/text) from their own state variables. */
.sim-root .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.sim-root a.btn { display: inline-block; text-decoration: none; line-height: 1.4; }

/* Cancel Bootstrap grid defaults inside the shared simulator, without changing CMS forms. */
.sim-root .row { margin-left: 0; margin-right: 0; }
.sim-root .row > * { width: auto; max-width: none; margin-top: 0; }
