/* SPDX-License-Identifier: AGPL-3.0-or-later
 * Copyright (C) 2024-2026 Philippe Naveau — contact@perfshop.io
 *
 * inline-fix.css — Brique B1.E2E runtime finding fix (2026-05-20).
 *
 * The cluster CSP `style-src 'self'` activated in S4 Phase K rejects
 * inline `style="..."` attributes. The monitoring HTML had 8 such
 * attributes that were silently violating CSP at every page load
 * (caught by `e2e/csp/no-violation.spec.ts`). This file extracts
 * those styles into named classes so the HTML can use `class=`
 * instead of `style=`.
 *
 * Pattern : one class per original `style="..."` site. Class names
 * follow `.mon-inline-<context>` so a future refactor can rename or
 * consolidate without breaking other styles.
 */

/* index.html ligne 39 — admin link in the header bar. */
.mon-inline-admin-link {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* index.html ligne 112 — heap-dump panel chart card. */
.mon-inline-heap-card {
  margin-bottom: 20px;
}

/* index.html ligne 113 — flex row inside heap-dump panel. */
.mon-inline-heap-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* index.html ligne 114 — heap-dump trigger button. */
.mon-inline-heap-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* index.html ligne 115 — heap-dump status text next to the button. */
.mon-inline-heap-status {
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* index.html ligne 116 — heap-dump info-hint span. */
.mon-inline-heap-info {
  font-size: 0.78rem;
  color: var(--text2);
}

/* index.html ligne 209 — single-column stats grid override. */
.mon-inline-grid-1col {
  grid-template-columns: 1fr;
}

/* index.html ligne 229 — 4-column stats grid override. */
.mon-inline-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}

/* ── B1.ter — heap-dump status colour states (2026-05-20) ─────────────
 * Replaces the three monitoring-core.js `status.style.color = …` sites
 * so the `style-src 'self'` CSP is not violated at runtime. */
.mon-heap-warning { color: var(--warning); }
.mon-heap-success { color: var(--success); }
.mon-heap-danger  { color: var(--danger);  }
