/* Thème « Samaritan » (Paramètres UI → Thème de couleur), actif quand html[data-theme="samaritan"]. 25/10/2026 */
@font-face{ font-family: "Mono MMM 5"; src: url("../assets/samaritan/monoMMM_5.ttf"); }
html[data-theme="samaritan"] {
  --primary: #111; --primary-dark: #000; --primary-light: #333;
  --primary-bg: #ececec; --primary-border: #111;
  --sec-red: #111; --sec-red-soft: #ececec; --sidebar-bg: #f9f9f9;
  --bg: #f9f9f9; --surface: #fff; --surface-alt: #f3f3f3;
  --border: #dcdcdc; --border-dark: #111;
  --text: #0a0a0a; --text-secondary: #444; --text-muted: #888;
  --sam-red: #cc0000;
  --radius: 2px; --radius-sm: 2px; --radius-lg: 3px;
  --shadow: none; --shadow-md: none; --shadow-lg: 0 0 0 2px #111;
  --glass-bg: #f9f9f9; --glass-bg-strong: #f9f9f9; --glass-blur: none;
  --glass-border: #111; --glass-hi: transparent; --glass-shadow: none;
  --font: "Mono MMM 5", "Consolas", monospace;
  --font-mono: "Mono MMM 5", "Consolas", monospace;
}
html[data-theme="samaritan"] body { background: var(--bg); color: var(--text); font-family: var(--font); }
html[data-theme="samaritan"] .app-header { background: #0a0a0a !important; color: #fff; box-shadow: none !important; border-bottom: 2px solid #0a0a0a; }
html[data-theme="samaritan"] .app-header * { font-family: var(--font); }
html[data-theme="samaritan"] .app-header .tab-item { border-radius: 2px !important; color: #bbb !important; background: transparent !important; letter-spacing: .5px; }
html[data-theme="samaritan"] .app-header .tab-item.active { background: #f9f9f9 !important; color: #0a0a0a !important; }
html[data-theme="samaritan"] .sidebar { background: #f9f9f9 !important; border-right: 2px solid #0a0a0a !important; box-shadow: none !important; backdrop-filter: none !important; }
html[data-theme="samaritan"] .sidebar-nav li a { border-radius: 2px !important; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
html[data-theme="samaritan"] .sidebar-nav li a:hover { background: #ececec !important; color: #000 !important; }
html[data-theme="samaritan"] .sidebar-nav li a.active { background: #0a0a0a !important; color: #fff !important; }
html[data-theme="samaritan"] .sidebar-nav li.nav-group-strong { color: #0a0a0a !important; letter-spacing: 2px; }
html[data-theme="samaritan"] .sidebar .sec-icon { border-radius: 2px !important; background: #0a0a0a !important; color: #fff !important; }
html[data-theme="samaritan"] .sidebar-quote { font-family: var(--font); font-style: italic; }
html[data-theme="samaritan"] .card,
html[data-theme="samaritan"] .stat-card { border: 2px solid #0a0a0a !important; border-radius: 2px !important; box-shadow: none !important; }
html[data-theme="samaritan"] .card-header { border-bottom: 2px solid #0a0a0a !important; }
html[data-theme="samaritan"] .card-header h3,
html[data-theme="samaritan"] .page-title,
html[data-theme="samaritan"] .erp-chart-head { text-transform: uppercase; letter-spacing: 3px; }
html[data-theme="samaritan"] .stat-card .stat-label { text-transform: uppercase; letter-spacing: 2px; }
html[data-theme="samaritan"] .stat-card.kpi-accent,
html[data-theme="samaritan"] .stat-card.kpi-accent-neutral { border-top: 4px solid var(--sam-red) !important; }
html[data-theme="samaritan"] .btn { border-radius: 2px !important; text-transform: uppercase; letter-spacing: 2px; box-shadow: none !important; }
html[data-theme="samaritan"] .btn-primary { background: #0a0a0a !important; border-color: #0a0a0a !important; color: #fff !important; }
html[data-theme="samaritan"] .btn-primary:hover { background: #fff !important; color: #0a0a0a !important; }
html[data-theme="samaritan"] .btn-quiet,
html[data-theme="samaritan"] .btn-secondary { background: #fff !important; border: 2px solid #0a0a0a !important; color: #0a0a0a !important; }
html[data-theme="samaritan"] .btn-quiet:hover,
html[data-theme="samaritan"] .btn-secondary:hover { background: #0a0a0a !important; color: #fff !important; }
html[data-theme="samaritan"] .form-input { border: 0 !important; border-bottom: 2px solid #0a0a0a !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-theme="samaritan"] .form-input:focus { border-bottom-color: var(--sam-red) !important; outline: none; }
html[data-theme="samaritan"] .data-table th { background: #0a0a0a !important; color: #fff !important; text-transform: uppercase; letter-spacing: 1px; }
html[data-theme="samaritan"] .ag-theme-quartz {
  --ag-font-family: "Mono MMM 5", Consolas, monospace;
  --ag-header-background-color: #0a0a0a; --ag-header-foreground-color: #fff;
  --ag-border-color: #0a0a0a; --ag-row-border-color: #dcdcdc;
  --ag-selected-row-background-color: #ececec; --ag-row-hover-color: #f3f3f3;
  --ag-border-radius: 2px; --ag-wrapper-border-radius: 2px;
}
html[data-theme="samaritan"] .sam-arrow { display: inline-block; border: 6px solid transparent; border-top: 0; border-bottom: 10px solid #330000; animation: sam-arrow 1s alternate infinite linear; }
@keyframes sam-arrow{ from { border-bottom-color: #330000; } to { border-bottom-color: #cc0000; } }
html[data-theme="samaritan"] .app-header { background: #f9f9f9 !important; color: #0a0a0a; border-bottom: 1px solid #d0d0d0; }
html[data-theme="samaritan"] .app-header .tab-item { color: #555 !important; }
html[data-theme="samaritan"] .app-header .tab-item.active { background: #fff !important; color: #0a0a0a !important; box-shadow: inset 0 -2px 0 var(--sam-red) !important; }
html[data-theme="samaritan"] .sidebar { border-right: 1px solid #d0d0d0 !important; }
html[data-theme="samaritan"] .sidebar .sec-icon { background: transparent !important; color: #0a0a0a !important; }
html[data-theme="samaritan"] .sidebar-nav li a.active { background: #ececec !important; color: #0a0a0a !important; box-shadow: inset 3px 0 0 var(--sam-red); }
html[data-theme="samaritan"] .card,
html[data-theme="samaritan"] .stat-card { border: 1px solid #d0d0d0 !important; }
html[data-theme="samaritan"] .card-header { border-bottom: 1px solid #e2e2e2 !important; }
html[data-theme="samaritan"] .stat-card.kpi-accent,
html[data-theme="samaritan"] .stat-card.kpi-accent-neutral { border-top: 3px solid var(--sam-red) !important; }
html[data-theme="samaritan"] .btn-primary { background: #2b2b2b !important; border-color: #2b2b2b !important; }
html[data-theme="samaritan"] .btn-quiet,
html[data-theme="samaritan"] .btn-secondary { border: 1px solid #bdbdbd !important; }
html[data-theme="samaritan"] .form-input { border-bottom: 1px solid #9a9a9a !important; }
html[data-theme="samaritan"] .data-table th { background: #ececec !important; color: #0a0a0a !important; }
html[data-theme="samaritan"] .ag-theme-quartz { --ag-header-background-color: #ececec; --ag-header-foreground-color: #0a0a0a; --ag-border-color: #d0d0d0; }
html[data-theme="samaritan"] { --text: #3a3a3a; --text-secondary: #6b6b6b; --primary: #3a3a3a; }
html[data-theme="samaritan"] body,
html[data-theme="samaritan"] .page-title,
html[data-theme="samaritan"] .card-header h3 { color: #3a3a3a; }
html[data-theme="samaritan"] .btn-primary { background: #fff !important; color: var(--sam-red) !important; border: 1px solid var(--sam-red) !important; }
html[data-theme="samaritan"] .btn-primary:hover { background: var(--sam-red) !important; color: #fff !important; }
html[data-theme="samaritan"] .btn-quiet:hover,
html[data-theme="samaritan"] .btn-secondary:hover { background: #ececec !important; color: #3a3a3a !important; }
html[data-theme="samaritan"] .sidebar-nav li a,
html[data-theme="samaritan"] .sidebar-nav li.nav-group-strong,
html[data-theme="samaritan"] .sidebar .sec-icon { color: #3a3a3a !important; }
html[data-theme="samaritan"] .app-header,
html[data-theme="samaritan"] .app-header *:not(.tab-item.active *) { color: #3a3a3a !important; }
html[data-theme="samaritan"] .app-header button,
html[data-theme="samaritan"] .app-header select,
html[data-theme="samaritan"] .app-header .app-header-actions > * { background: transparent !important; border-color: #d0d0d0 !important; }
html[data-theme="samaritan"] .app-header svg { stroke: currentColor; }
html[data-theme="samaritan"] .app-header select option { color: #3a3a3a; background: #fff; }
