/* Voxtelio HR skin (design system v4 « le reçu »).
   Loaded last on every page so it wins over tailwind.css, global.css,
   v1_styles.css, dark.css and the per-company theme <style> block.
   Paper page, white cards, black ink; proof green only marks what is proven. */

@font-face{font-family:"Geist";src:url("../fonts/geist-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Geist";src:url("../fonts/geist-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Geist";src:url("../fonts/geist-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}

:root{
  --vx-page:#EEF1EC; --vx-card:#FFFFFF; --vx-recessed:#F6F8F5;
  --vx-ink:#000000; --vx-graphite:#232825; --vx-slate:#3F4741; --vx-muted:#929B94;
  --vx-hairline:#D5DBD3; --vx-tag:#DDE3DB;
  --vx-proof:#19D27F; --vx-proof-ink:#087443; --vx-proof-soft:#D9F5E6;
  --vx-error:#C23A3A; --vx-error-bg:#FFF0F0; --vx-error-line:#F3B8B8;
  --vx-text:#000000; --vx-text-muted:#3F4741;
  --vx-font-display:"Barlow Condensed","Arial Narrow",sans-serif;
  --vx-font-ui:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --vx-font-mono:"Geist Mono",ui-monospace,Menlo,monospace;
  --vx-radius-card:24px; --vx-radius-control:8px; --vx-radius-pill:64px;
  --vx-motion-fast:120ms; --vx-motion-base:200ms; --vx-ease-out:cubic-bezier(.2,.8,.2,1);
}
html.dark{
  --vx-page:#000000; --vx-card:#232825; --vx-recessed:#3F4741;
  --vx-ink:#FFFFFF; --vx-hairline:#3F4741; --vx-tag:#3F4741;
  --vx-proof-ink:#19D27F; --vx-proof-soft:#0E3B27;
  --vx-text:#FFFFFF; --vx-text-muted:#D5DBD3;
}

/* ── Type ─────────────────────────────────────────────────────────── */
body, button, input, select, textarea, .oh-btn, .select2-container{
  font-family:var(--vx-font-ui) !important;
}
body{ background-color:var(--vx-page) !important; color:var(--vx-text); }
.vx-display, .oh-main__titlebar-title, .oh-404__title{
  font-family:var(--vx-font-display) !important; font-weight:700 !important;
  text-transform:uppercase; line-height:.9; letter-spacing:-.03em;
}
.vx-label, code, kbd, .oh-badge{
  font-family:var(--vx-font-mono) !important; letter-spacing:-.03em;
}

/* ── Surfaces: flat, separated by surface contrast only ──────────── */
.oh-card, .oh-sticky-table, .oh-wrapper .oh-card, .oh-dashboard-card,
.bg-white.rounded-md, .bg-white.rounded-lg, .bg-white.rounded-xl, .shadow-card{
  box-shadow:none !important;
}
.oh-card, .oh-dashboard-card{ border-radius:var(--vx-radius-card) !important; border-color:transparent !important; }
.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-card{ box-shadow:none !important; }
/* Overlays keep a hairline instead of a shadow so they still read above content. */
.oh-modal__dialog, .oh-dropdown__menu, .dropdown-menu, .select2-dropdown{
  box-shadow:none !important; border:1px solid var(--vx-hairline) !important;
}
.oh-modal__dialog{ border-radius:var(--vx-radius-card) !important; }

/* ── Controls ────────────────────────────────────────────────────── */
.oh-btn, button.rounded-md, a.rounded-md, .oh-input, .oh-select,
input.form-control, select.form-control, textarea.form-control{
  border-radius:var(--vx-radius-control) !important;
}
.oh-btn--secondary, .oh-btn--primary{
  background-color:var(--vx-ink) !important; color:#FFFFFF !important; border-color:var(--vx-ink) !important;
}
html.dark .oh-btn--secondary, html.dark .oh-btn--primary{ color:#000000 !important; }
.oh-btn--secondary:hover, .oh-btn--primary:hover{ background-color:var(--vx-graphite) !important; color:#FFFFFF !important; }
/* Dark: the button is white on black, so hover steps down to a light grey, never to graphite (black text on graphite is unreadable). */
html.dark .oh-btn--secondary:hover, html.dark .oh-btn--primary:hover,
html.dark .oh-btn--secondary:focus, html.dark .oh-btn--primary:focus{ background-color:#D5DBD3 !important; color:#000000 !important; }
.vx-btn-secondary{
  display:flex; justify-content:center; gap:.75rem; width:100%; padding:.75rem;
  background:transparent; color:var(--vx-text); font-weight:500;
  border:1.5px solid var(--vx-slate); border-radius:var(--vx-radius-control);
  transition:background-color var(--vx-motion-fast) var(--vx-ease-out);
}
.vx-btn-secondary:hover{ background:var(--vx-recessed); }
:focus-visible{ outline:2px solid var(--vx-ink) !important; outline-offset:2px; }
.oh-input:focus, input:focus, select:focus, textarea:focus{ border-color:var(--vx-ink) !important; }

/* ── Status: proof green = validated / approved only ─────────────── */
.oh-badge--success, .text-success{ color:var(--vx-proof-ink) !important; }
.oh-badge--success, .bg-success\/10{ background-color:var(--vx-proof-soft) !important; }
.oh-badge, .oh-tag, .rounded-full.text-xs{ border-radius:var(--vx-radius-pill) !important; }
.text-danger, .oh-badge--danger{ color:var(--vx-error) !important; }
.oh-badge--danger{ background-color:var(--vx-error-bg) !important; }
.oh-badge--warning{ color:#000 !important; background-color:var(--vx-tag) !important; }

/* ── Empty states with a Vox ─────────────────────────────────────── */
.vx-vox{ display:block; margin:0 auto 1rem; width:160px; height:160px; object-fit:cover; border-radius:var(--vx-radius-card); background:var(--vx-page); }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ transition-duration:0ms !important; animation-duration:0ms !important; }
}

/* ── Visual QA fixes (Task 9) ───────────────────────────────────── */
/* Dashboard cards and sidebar: upstream stylesheets set soft shadows and a
   coral-to-purple top bar; the skin is flat. */
html body .md-kpi-card, html body .md-chart-card, html body .hcl-banner,
html body .md-customize-panel, html body button.sideboxmain, html body a.sideboxmain,
html body .oh-alert, html.dark body .md-kpi-card, html.dark body .md-chart-card{ box-shadow:none !important; }
html body .md-kpi-card, html body .md-chart-card{ border-radius:var(--vx-radius-card) !important; border-color:transparent !important; }
html.dark body .md-kpi-card, html.dark body .md-chart-card{ border-color:var(--vx-hairline) !important; }
/* Root cause of the white dashboard: templates/dashboard.html paints .md-dashboard #ffffff. */
html body .md-dashboard{ background:var(--vx-page) !important; }
html body .md-kpi-card, html body .md-chart-card{ background:var(--vx-card) !important; }
html body .md-chart-card::before{ display:none !important; }
html body #sidebarFlyout, html body .md-customize-panel, html body .apexcharts-tooltip,
html body .driver-popover{ box-shadow:none !important; border:1px solid var(--vx-hairline) !important; }
/* Sidebar: resting items sit on the paper, not on grey tiles. */
html body .sideboxmain:not(:hover):not(.sidebox-current):not(.active){ background-color:transparent !important; }
/* Period preset pills: the active one is ink; in dark it must invert, black on black vanishes. */
html.dark body .md-period-preset--active{ background-color:#FFFFFF !important; color:#000000 !important; border-color:#FFFFFF !important; }

/* Setup checklist banner (base/setup_checklist_banner.html, inline <style> loads after
   this file, so the selectors are prefixed to win on specificity). */
html body .hcl-banner{ background:var(--vx-card) !important; border:1px solid transparent !important; }
html.dark body .hcl-banner{ border-color:var(--vx-hairline) !important; }
html body .hcl-blob{ display:none !important; }
html body .hcl-icon, html body .hcl-action-btn{ background:var(--vx-ink) !important; color:#FFFFFF !important; }
html.dark body .hcl-icon, html.dark body .hcl-action-btn{ background:#FFFFFF !important; color:#000000 !important; }
html body .hcl-line-active, html body .hcl-circle-done, html body .hcl-circle-dot-active{ background:var(--vx-ink) !important; }
html body .hcl-circle-done, html body .hcl-circle-active, html body .hcl-circle-pending:hover{ border-color:var(--vx-ink) !important; }
html body .hcl-circle-done:hover{ background:var(--vx-graphite) !important; border-color:var(--vx-graphite) !important; }
html body .hcl-circle-active, html body .hcl-circle-pending:hover{ box-shadow:none !important; }
html.dark body .hcl-line-active, html.dark body .hcl-circle-done, html.dark body .hcl-circle-dot-active{ background:#FFFFFF !important; }
html.dark body .hcl-circle-done, html.dark body .hcl-circle-active{ border-color:#FFFFFF !important; }
html.dark body .hcl-circle-active{ background:var(--vx-card) !important; }
html body .hcl-label-done{ color:var(--vx-slate) !important; }
html.dark body .hcl-label-done{ color:#D5DBD3 !important; }
html body .hcl-action{ border:1px solid var(--vx-hairline) !important; border-left:4px solid var(--vx-ink) !important; }
html.dark body .hcl-action{ background:var(--vx-card) !important; border-color:var(--vx-hairline) !important; border-left-color:#FFFFFF !important; }
html.dark body .hcl-banner{ background:var(--vx-card) !important; }
html.dark body .hcl-title, html.dark body .hcl-action-title, html.dark body .hcl-label-active{ color:#FFFFFF !important; }

html.dark body .hcl-icon *, html.dark body .hcl-circle-done *, html.dark body .hcl-action-btn *{ color:#000000 !important; stroke:#000000 !important; }
/* Destructive buttons: upstream uses a saturated #FF3B38 with white text (about 3.5:1);
   the skin's error red passes 4.5:1. */
html body .oh-btn--danger, html body .oh-btn--danger:hover, html body .oh-btn--danger:focus{ background-color:var(--vx-error) !important; border-color:var(--vx-error) !important; color:#FFFFFF !important; }
/* Proof green is a verification cue, never a button colour. Interactive success
   controls and the attendance Check In button use the primary button style
   (ink on white text, graphite hover; inverted in dark). Proof tints stay on
   non-interactive badges and status dots only. */
html body button.bg-success, html body a.bg-success, html body .oh-btn--success, html body .oh-titlebar__save,
html body button.check.checkin{ background-color:#000000 !important; border-color:#000000 !important; color:#FFFFFF !important; }
html body button.bg-success *, html body a.bg-success *, html body .oh-btn--success *, html body .oh-titlebar__save *,
html body button.check.checkin, html body button.check.checkin .date, html body button.check.checkin *{ color:#FFFFFF !important; }
html body button.bg-success:hover, html body a.bg-success:hover, html body .hover\:bg-success:hover, html body .oh-btn--success:hover, html body .oh-titlebar__save:hover,
html body button.check.checkin:hover{ background-color:var(--vx-graphite) !important; border-color:var(--vx-graphite) !important; color:#FFFFFF !important; }
html.dark body button.bg-success, html.dark body a.bg-success, html.dark body .oh-btn--success, html.dark body .oh-titlebar__save,
html.dark body button.check.checkin{ background-color:#FFFFFF !important; border-color:#FFFFFF !important; color:#000000 !important; }
html.dark body button.bg-success *, html.dark body a.bg-success *, html.dark body .oh-btn--success *, html.dark body .oh-titlebar__save *,
html.dark body button.check.checkin, html.dark body button.check.checkin .date, html.dark body button.check.checkin *{ color:#000000 !important; }
html.dark body button.bg-success:hover, html.dark body a.bg-success:hover, html.dark body .oh-btn--success:hover, html.dark body .oh-titlebar__save:hover,
html.dark body button.check.checkin:hover{ background-color:#D5DBD3 !important; border-color:#D5DBD3 !important; color:#000000 !important; }
/* Non-interactive success surfaces (badges, dots): deep proof ink with white text
   (5.9:1); dark uses the proof green with black text. */
html body span.bg-success, html body div.bg-success, html body .oh-badge--success{ background-color:var(--vx-proof-ink) !important; color:#FFFFFF !important; }
html.dark body span.bg-success, html.dark body div.bg-success, html.dark body .oh-badge--success{ background-color:var(--vx-proof) !important; color:#000000 !important; }
html.dark body span.bg-success *, html.dark body div.bg-success *{ color:#000000 !important; }
/* Dark: primary is black ink on a black page, so solid brand/primary buttons (Create,
   etc.) disappeared. They invert to white with black text like .oh-btn--primary. */
html.dark body .bg-brand-600, html.dark body .bg-primary-600{ background-color:#FFFFFF !important; color:#000000 !important; border-color:#FFFFFF !important; }
html.dark body .bg-brand-600 *, html.dark body .bg-primary-600 *{ color:#000000 !important; }
html.dark body .bg-brand-600:hover, html.dark body .hover\:bg-brand-800:hover, html.dark body .hover\:bg-primary-800:hover{ background-color:#D5DBD3 !important; color:#000000 !important; }
