/* Built with the Secure Platform Developer Agent (SPDA v1.1) */
/* Practices by: A2C (2026) */
/* Artifact: design tokens of the payroll app and of the attendance clock (ADR 0037). ONE file, two copies kept
   byte for byte equal by a test (src/app/web/static/css/tokens.css and
   services/asistencia/src/asistencia/static/shared/tokens.css). Derived from docs/diseno/figma (the CSS
   of the mockups is a specification, it is not copied): Inter, radii 6 and 12, spacing 24, the navy and
   steel blue palette. Figma only draws the dark theme; the light theme is derived from it and checked
   for contrast. The theme is DARK by default; the page sets data-theme="light" for the light theme or
   data-theme="system" to follow the system (the choice is remembered by each product).
   The tenant's accent arrives in /brand.css as --accent; every other accent shade is derived from it. */

:root {
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sp: 24px;
  --r-card: 12px; --r-ctl: 6px; --r-item: 6px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 260px;

  color-scheme: dark;
  --accent: #3C6382; --on-accent: #FFFFFF; --danger-solid: #B42318; --danger-solid-hover: #8F1D14;
  --bg: #1A1A1A; --card: #222222; --card-2: #1E1E1E; --line: #333333; --field-bg: #1A1A1A; --field-line: #7A7A7A;
  --ink: #F5F5F5; --ink-2: #A8A8A8; --ink-3: #D4D4D4;
  --side: #06263F; --side-ink: #E3EBF1; --side-title: #9DB2C2; --side-line: #164361; --side-hover: #0D3A5C; --side-on: #FFFFFF;
  --accent-strong: color-mix(in srgb, var(--accent) 80%, #000000); --accent-soft: color-mix(in srgb, var(--accent) 24%, var(--card));
  --link: #82CCDD; --focus: #82CCDD;
  --info-bg: #06263F; --info-line: #164361; --info-ink: #F5F5F5;
  --notice-bg: #3A2C0F; --notice-line: #6B5420; --notice-ink: #F3D9A0;
  --ok-bg: #153523; --ok-line: #25583B; --ok-ink: #A6E3BC; --ok: #A6E3BC;
  --red: #FF8A80; --red-bg: #3D1A17; --red-line: #7A2E28;
  --orange: #FFA270; --orange-ink: #FFB890; --orange-bg: #3B2414;
  --blue: #8AB4FF; --purple: #C4A8FF;
  --shadow: 0 4px 16px rgba(0, 0, 0, .19);
  --shadow-lift: 0 8px 28px rgba(0, 0, 0, .45);
  --scrim: rgba(0, 0, 0, .6);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F6F8; --card: #FFFFFF; --card-2: #F7F9FA; --line: #DCE3E8; --field-bg: #FFFFFF; --field-line: #7D8A94;
  --ink: #14202B; --ink-2: #53606B; --ink-3: #33414D;
  --side: #06263F; --side-ink: #DCE7EF; --side-title: #9DB2C2; --side-line: #164361; --side-hover: #0D3A5C; --side-on: #FFFFFF;
  --accent: #3C6382; --accent-strong: #2D4D68; --accent-soft: #E4ECF2; --on-accent: #FFFFFF;
  --link: var(--accent-strong); --focus: #0B63CE;
  --info-bg: #E7F0F7; --info-line: #B7CFE2; --info-ink: #0A3D62;
  --notice-bg: #FFF6E5; --notice-line: #EBCF97; --notice-ink: #6B4300;
  --ok-bg: #E4F3EA; --ok-line: #A9D3B7; --ok-ink: #14532D; --ok: #14532D;
  --red: #B42318; --red-bg: #FDECEA; --red-line: #E8A7A1; --danger-solid: #B42318; --danger-solid-hover: #8F1D14;
  --orange: #C2410C; --orange-ink: #9A3412; --orange-bg: #FFF1E6;
  --blue: #1D4ED8; --purple: #6D28D9;
  --shadow: 0 1px 2px rgba(6, 38, 63, .06);
  --shadow-lift: 0 8px 22px rgba(6, 38, 63, .14);
  --scrim: rgba(6, 38, 63, .5);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #F3F6F8; --card: #FFFFFF; --card-2: #F7F9FA; --line: #DCE3E8; --field-bg: #FFFFFF; --field-line: #7D8A94;
    --ink: #14202B; --ink-2: #53606B; --ink-3: #33414D;
    --side: #06263F; --side-ink: #DCE7EF; --side-title: #9DB2C2; --side-line: #164361; --side-hover: #0D3A5C; --side-on: #FFFFFF;
    --accent: #3C6382; --accent-strong: #2D4D68; --accent-soft: #E4ECF2; --on-accent: #FFFFFF;
    --link: var(--accent-strong); --focus: #0B63CE;
    --info-bg: #E7F0F7; --info-line: #B7CFE2; --info-ink: #0A3D62;
    --notice-bg: #FFF6E5; --notice-line: #EBCF97; --notice-ink: #6B4300;
    --ok-bg: #E4F3EA; --ok-line: #A9D3B7; --ok-ink: #14532D; --ok: #14532D;
    --red: #B42318; --red-bg: #FDECEA; --red-line: #E8A7A1; --danger-solid: #B42318; --danger-solid-hover: #8F1D14;
    --orange: #C2410C; --orange-ink: #9A3412; --orange-bg: #FFF1E6;
    --blue: #1D4ED8; --purple: #6D28D9;
    --shadow: 0 1px 2px rgba(6, 38, 63, .06);
    --shadow-lift: 0 8px 22px rgba(6, 38, 63, .14);
    --scrim: rgba(6, 38, 63, .5);
  }
}
@media print {  /* paper is light whatever the screen theme */
  :root {
    color-scheme: light;
    --bg: #F3F6F8; --card: #FFFFFF; --card-2: #F7F9FA; --line: #DCE3E8; --field-bg: #FFFFFF; --field-line: #7D8A94;
    --ink: #14202B; --ink-2: #53606B; --ink-3: #33414D;
    --side: #06263F; --side-ink: #DCE7EF; --side-title: #9DB2C2; --side-line: #164361; --side-hover: #0D3A5C; --side-on: #FFFFFF;
    --accent: #3C6382; --accent-strong: #2D4D68; --accent-soft: #E4ECF2; --on-accent: #FFFFFF;
    --link: var(--accent-strong); --focus: #0B63CE;
    --info-bg: #E7F0F7; --info-line: #B7CFE2; --info-ink: #0A3D62;
    --notice-bg: #FFF6E5; --notice-line: #EBCF97; --notice-ink: #6B4300;
    --ok-bg: #E4F3EA; --ok-line: #A9D3B7; --ok-ink: #14532D; --ok: #14532D;
    --red: #B42318; --red-bg: #FDECEA; --red-line: #E8A7A1; --danger-solid: #B42318; --danger-solid-hover: #8F1D14;
    --orange: #C2410C; --orange-ink: #9A3412; --orange-bg: #FFF1E6;
    --blue: #1D4ED8; --purple: #6D28D9;
    --shadow: 0 1px 2px rgba(6, 38, 63, .06);
    --shadow-lift: 0 8px 22px rgba(6, 38, 63, .14);
    --scrim: rgba(6, 38, 63, .5);
  }
}
