/* Directia vizuala a adminului: A, aleasa de Razvan pe 28.10.2026 (docs/admin-meniu-2026-10-27/05-DESIGN.md), din
   simulare/css/traseu.css (I0, 07-INTEGRARE.md). Principiile unui admin de comert (bara laterala inchisa, continutul pe gri
   deschis, carduri albe cu umbra fina, sans mic si precis, un singur buton principal, densitate mare), identitatea Traseu:
   verde-negrul marcii pe rama si pe butonul principal, accentul lime al marcii folosit rar (intrarea curenta din meniu,
   contoarele din meniu, comutatorul pornit, butonul Salveaza din bara de salvare). Fontul sistemului, fara serif, fara
   sticla, fara gradient. Singurul loc cu culori, fonturi, raze si umbre; contrastul perechilor e masurat in
   simulare/directii/a-traseu.html (sectiunea Contrast) si pe rutele simularii (simulare/PREDARE-D2.md). */
:is(body.admin, body.platform) {
  /* Textul, fundalurile si marginile. */
  --color-text: #1b211d;
  --color-text-muted: #5a635d;
  --color-page: #f2f3f1;
  --color-surface: #ffffff;
  --color-surface-2: #f7f8f6;
  --color-surface-hover: #f2f4f1;
  --color-border: #e5e8e4;
  --color-border-strong: #858d87;

  /* Actiunea principala e verde-negrul marcii; linkurile si focusul, verdele inchis. */
  --color-primary: #16201b;
  --color-primary-hover: #000000;
  --color-on-primary: #ffffff;
  --color-accent: #17694b;
  --color-accent-hover: #0f4f38;
  --color-accent-soft: #e6f2ec;
  --color-focus: #17694b;
  --color-danger: #b3261e;

  /* Marca: lime pe verde-negru, folosit rar. */
  --brand: #c8ff3d;
  --brand-ink: #101814;

  /* Insignele si mesajele. */
  --tone-neutral-bg: #e9ebe8; --tone-neutral-fg: #3a423d;
  --tone-info-bg: #e2ecf4; --tone-info-fg: #1d4b6e;
  --tone-success-bg: #dbf0e1; --tone-success-fg: #17552d;
  --tone-warning-bg: #fbedc6; --tone-warning-fg: #674700;
  --tone-danger-bg: #fbe1dd; --tone-danger-fg: #9b1c14;

  /* Nume vechi (cardurile de cifre pe pasteluri ale directiei C), pastrate ca tonuri neutre pentru ecranele care le mai citesc. */
  --pastel-lav: #f7f8f6; --pastel-mint: #f7f8f6; --pastel-cream: #f7f8f6; --pastel-rose: #f7f8f6;
  --ink-card: #101814; --ink-text: #f2f3f1; --ink-muted: #b4c1b9; --ink-line: rgb(255 255 255 / 14%);
  --ink-chip: rgb(255 255 255 / 12%); --pastel-chip: #e9ebe8;

  /* Graficul (obiect grafic, 3:1 pe alb, WCAG 1.4.11) si schimbarea fata de perioada dinainte. */
  --chart: #5f8b75; --chart-soft: rgb(95 139 117 / 12%); --chart-prev: #858d87;
  --delta-up: #17552d; --delta-down: #9b1c14; --ink-delta-up: #8fd8a9; --ink-delta-down: #f4a7a0;

  /* Rama: bara de sus si bara laterala, verde-negru. */
  --top-bg: #101814; --top-fg: #dfe6e1; --top-border: transparent;
  --top-field-bg: #1b2520; --top-field-border: #6b7a71; --top-field-fg: #b4c1b9;
  --side-bg: #101814; --side-fg: #dfe6e1; --side-fg-2: #a3b3a9; --side-border: transparent;
  --side-hover: #1b2520; --side-active-bg: #243229; --side-active-fg: #ffffff; --side-mark: #c8ff3d;
  --side-count-bg: #c8ff3d; --side-count-fg: #101814;

  /* Bara de salvare: ia locul barei de sus, in culoarea ramei. */
  --savebar-bg: #101814; --savebar-fg: #ffffff; --savebar-border: #7d8a82; --savebar-hover: rgb(255 255 255 / 10%);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-small: 7px; --radius: 8px; --radius-large: 10px; --radius-panel: 12px; --radius-pill: 999px;
  --shadow-card: 0 0 0 1px rgb(16 24 20 / 7%), 0 1px 2px rgb(16 24 20 / 7%);
  --shadow-feature: 0 16px 36px rgb(16 24 20 / 20%), 0 0 0 1px rgb(16 24 20 / 8%);
  --shadow-control: 0 1px 1px rgb(16 24 20 / 6%);
  --shadow-savebar: 0 12px 32px rgb(0 0 0 / 22%);
  --card-border-color: transparent;
  --frame-bg: #101814;

  /* Culori scrise pana acum direct in admin.css, mutate aici ca tokeni (BRAND-B); valorile sunt cele vechi, deci nimic nu se schimba. */
  --side-line: #2c3a33; --side-strong-fg: #ffffff; --scrollbar: #3a4740;
  --btn-border: #c3c9c4; --btn-hover-bg: #f5f6f4; --btn-disabled-bg: #e8eae7; --btn-disabled-fg: #6b746e;
  --plain-hover: #e6e9e5; --row-line: #ebedea; --row-selected: #f3f8ea;
  --danger-hover: #8f1e18; --on-danger: #ffffff; --invalid-bg: #fff8f7; --callout-ring: rgb(16 24 20 / 6%);
  --savebar-primary-hover: #b4f01f; --toast-bg: #101814; --toast-fg: #ffffff; --toast-link: #c8ff3d; --backdrop: rgb(16 24 20 / 50%);
  --menu-shadow: 0 8px 24px rgb(16 24 20 / 16%), 0 1px 3px rgb(16 24 20 / 10%);
  --switch-off: #6f6c66; --switch-on: #23824a; --switch-knob: #ffffff; --switch-knob-on: #ffffff;
  --swatch-stroke: #6f6c66; --seo-title: #1a3fa3; --primary-shadow: 0 1px 2px rgb(16 24 20 / 20%);
  --feature-switch-off: #77746d; --feature-switch-on: #5fc48a;
}

/* BRAND-B (4.12.2026): adminul magazinelor pe identitatea MagHub, varianta A aleasa de Razvan: intunecata, exact ca site-ul
   (site/src/styles/sistem.css). Doar body.admin; paginile platformei (body.platform) raman pe tokenii de mai sus (blocul BRAND-A).
   Fontul Neutral Sans (OFL 1.1, licenta langa fisier) e servit din app/assets/fonts. Contrastul masurat (WCAG 2.2 AA):
   text 17,3:1 pe card, text secundar 8,1-9,3:1, lime pe card 15,8:1, text pe lime 16:1; chenarele de camp si comutatorul
   oprit 4,25-4,87:1 (1.4.11 cere 3:1); insignele 7,7-11:1. */
@font-face { font-family: "Neutral Sans"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/maghub/NeutralSansVF-34216a3f.woff2") format("woff2"); }

body.admin {
  color-scheme: dark;

  --color-text: #eefbe9;
  --color-text-muted: #9fb7a6;
  --color-page: #050b09;
  --color-surface: #0c1511;
  --color-surface-2: #111d17;
  --color-surface-hover: #14231b;
  --color-border: rgb(190 255 120 / 14%);
  --color-border-strong: #6a8471;

  /* Actiunea principala si linkurile: lime, ca butoanele si accentul site-ului. */
  --color-primary: #c8ff3d;
  --color-primary-hover: #d6ff6a;
  --color-on-primary: #0a1407;
  --color-accent: #c8ff3d;
  --color-accent-hover: #e2ff9a;
  --color-accent-soft: rgb(200 255 61 / 12%);
  --color-focus: #c8ff3d;
  --color-danger: #ff8a7a;

  --brand: #c8ff3d;
  --brand-ink: #0a1407;

  --tone-neutral-bg: rgb(255 255 255 / 8%); --tone-neutral-fg: #c9d6cc;
  --tone-info-bg: rgb(60 220 220 / 14%); --tone-info-fg: #7fe6e6;
  --tone-success-bg: rgb(200 255 61 / 14%); --tone-success-fg: #c8ff3d;
  --tone-warning-bg: rgb(255 196 61 / 14%); --tone-warning-fg: #ffd37a;
  --tone-danger-bg: rgb(255 110 90 / 14%); --tone-danger-fg: #ff9d8f;

  --pastel-lav: #111d17; --pastel-mint: #111d17; --pastel-cream: #111d17; --pastel-rose: #111d17;
  --ink-card: #111d17; --ink-text: #eefbe9; --ink-muted: #9fb7a6; --ink-line: rgb(190 255 120 / 14%);
  --ink-chip: rgb(255 255 255 / 8%); --pastel-chip: rgb(255 255 255 / 8%);

  --chart: #c8ff3d; --chart-soft: rgb(200 255 61 / 14%); --chart-prev: #7d9483;
  --delta-up: #c8ff3d; --delta-down: #ff9d8f; --ink-delta-up: #c8ff3d; --ink-delta-down: #ff9d8f;

  /* Rama: fondul site-ului, linii fine verzi, lime pe intrarea curenta. */
  --top-bg: #050b09; --top-fg: #eefbe9; --top-border: rgb(190 255 120 / 12%);
  --top-field-bg: #0c1511; --top-field-border: #6a8471; --top-field-fg: #9fb7a6;
  --side-bg: #07110d; --side-fg: #dfe9e0; --side-fg-2: #9fb7a6; --side-border: rgb(190 255 120 / 12%);
  --side-hover: rgb(200 255 61 / 6%); --side-active-bg: rgb(200 255 61 / 12%); --side-active-fg: #c8ff3d; --side-mark: #c8ff3d;
  --side-count-bg: #c8ff3d; --side-count-fg: #0a1407;
  --side-line: rgb(190 255 120 / 12%); --side-strong-fg: #eefbe9; --scrollbar: #2c3d33;

  --savebar-bg: #111d17; --savebar-fg: #eefbe9; --savebar-border: #6a8471; --savebar-hover: rgb(255 255 255 / 8%);

  /* Controalele (valorile deschise sunt mai sus, in blocul comun). */
  --btn-border: #6a8471; --btn-hover-bg: #14231b; --btn-disabled-bg: #16231c; --btn-disabled-fg: #8aa091;
  --plain-hover: #16261d; --row-line: rgb(190 255 120 / 10%); --row-selected: rgb(200 255 61 / 8%);
  --danger-hover: #ffa597; --on-danger: #1a0603; --invalid-bg: rgb(255 110 90 / 8%); --callout-ring: rgb(190 255 120 / 12%);
  --savebar-primary-hover: #d6ff6a; --toast-bg: #c8ff3d; --toast-fg: #0a1407; --toast-link: #0a1407; --backdrop: rgb(0 0 0 / 65%);
  --menu-shadow: 0 16px 40px rgb(0 0 0 / 55%), 0 0 0 1px rgb(190 255 120 / 14%);
  --switch-off: #6a8471; --switch-on: #c8ff3d; --switch-knob: #eefbe9; --switch-knob-on: #0a1407;
  --swatch-stroke: #9fb7a6; --seo-title: #9ec8ff; --primary-shadow: none;
  --feature-switch-off: #6a8471; --feature-switch-on: #c8ff3d;

  --font-sans: "Neutral Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Formele site-ului: butoane pastila, carduri rotunjite, fara umbre, doar linii. */
  --radius-small: 8px; --radius: 10px; --radius-large: 14px; --radius-panel: 18px; --radius-pill: 999px;
  --shadow-card: 0 0 0 1px rgb(190 255 120 / 12%);
  --shadow-feature: 0 0 0 1px rgb(190 255 120 / 18%), 0 24px 60px -20px rgb(0 0 0 / 70%);
  --shadow-control: none;
  --shadow-savebar: 0 12px 32px rgb(0 0 0 / 55%);
  --card-border-color: transparent;
  --frame-bg: #050b09;
}
