/* Оперативная тема HQ — pss-admin-design (IBM Plex, amber, dark ops) */
[data-psr-theme="ops"] {
  --psr-ink: #0c1b26;
  --psr-surface: #12283a;
  --psr-surface-2: #173347;
  --psr-surface-3: #1f4058;
  --psr-border: #2c4a63;
  --psr-text: #eaf1f6;
  --psr-muted: #8fa9bd;
  --psr-muted-2: #66879e;
  --psr-amber: #ff8f2e;
  --psr-amber-dim: #c96a1e;
  --psr-ok: #3ecf8e;
  --psr-info: #5fb0e0;
  --psr-warn: #f2c14e;
  --psr-danger: #ff5c5c;
  --psr-radius: 3px;
  color-scheme: dark;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

[data-psr-theme="ops"] body,
[data-psr-theme="ops"] .mantine-AppShell-root {
  background: var(--psr-ink) !important;
  color: var(--psr-text);
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
}

[data-psr-theme="ops"] .mantine-Text-root,
[data-psr-theme="ops"] .mantine-Title-root,
[data-psr-theme="ops"] .mantine-Button-root,
[data-psr-theme="ops"] .mantine-Input-input,
[data-psr-theme="ops"] .mantine-NavLink-root {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
}

[data-psr-theme="ops"] ::selection {
  background: var(--psr-amber);
  color: #2a1704;
}

[data-psr-theme="ops"] .mantine-AppShell-header {
  background: rgba(18, 40, 58, 0.85) !important;
  border-bottom: 1px solid var(--psr-border) !important;
  backdrop-filter: blur(6px);
  box-shadow: none;
}

[data-psr-theme="ops"] .mantine-AppShell-navbar {
  background: var(--psr-surface) !important;
  border-right: 1px solid var(--psr-border) !important;
}

[data-psr-theme="ops"] .mantine-AppShell-main {
  background: transparent !important;
}

[data-psr-theme="ops"] .mantine-Paper-root,
[data-psr-theme="ops"] .mantine-Card-root,
[data-psr-theme="ops"] .mantine-Table-root,
[data-psr-theme="ops"] .mantine-Modal-content {
  background: var(--psr-surface) !important;
  border-color: var(--psr-border) !important;
  border-radius: var(--psr-radius) !important;
}

[data-psr-theme="ops"] .mantine-Paper-root,
[data-psr-theme="ops"] .mantine-Card-root {
  box-shadow: none;
}

[data-psr-theme="ops"] .mantine-Title-root,
[data-psr-theme="ops"] .mantine-Text-root {
  color: var(--psr-text);
}

[data-psr-theme="ops"] .mantine-Text-root[data-dimmed],
[data-psr-theme="ops"] .mantine-Text-root[c="dimmed"],
[data-psr-theme="ops"] .mantine-Input-description,
[data-psr-theme="ops"] .mantine-InputWrapper-description {
  color: var(--psr-muted) !important;
}

[data-psr-theme="ops"] .mantine-TextInput-input,
[data-psr-theme="ops"] .mantine-PasswordInput-input,
[data-psr-theme="ops"] .mantine-Select-input,
[data-psr-theme="ops"] .mantine-Textarea-input,
[data-psr-theme="ops"] .mantine-NumberInput-input,
[data-psr-theme="ops"] .mantine-MultiSelect-input {
  background: var(--psr-surface-2) !important;
  border-color: var(--psr-border) !important;
  color: var(--psr-text) !important;
  border-radius: var(--psr-radius) !important;
}

[data-psr-theme="ops"] .mantine-TextInput-input:focus,
[data-psr-theme="ops"] .mantine-PasswordInput-input:focus,
[data-psr-theme="ops"] .mantine-Select-input:focus,
[data-psr-theme="ops"] .mantine-Textarea-input:focus {
  border-color: var(--psr-amber) !important;
}

[data-psr-theme="ops"] .mantine-Button-root[data-variant="filled"] {
  background: var(--psr-amber) !important;
  color: #2a1704 !important;
}

[data-psr-theme="ops"] .mantine-Button-root[data-variant="filled"]:hover {
  background: var(--psr-amber-dim) !important;
}

[data-psr-theme="ops"] .mantine-Button-root[data-variant="outline"],
[data-psr-theme="ops"] .mantine-Button-root[data-variant="default"] {
  background: var(--psr-surface-2) !important;
  border: 1px solid var(--psr-border) !important;
  color: var(--psr-text) !important;
}

[data-psr-theme="ops"] .mantine-Table-th {
  background: var(--psr-surface-2) !important;
  color: var(--psr-muted) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

[data-psr-theme="ops"] .mantine-Table-tr:hover .mantine-Table-td {
  background: var(--psr-surface-3);
}

[data-psr-theme="ops"] .mantine-Badge-root {
  font-weight: 600;
}

[data-psr-theme="ops"] body:has([href*="login"]),
[data-psr-theme="ops"] #root {
  background: var(--psr-ink) !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
}

[data-psr-theme="ops"] .mantine-Code-root,
[data-psr-theme="ops"] code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
