/* ── BIS · el estilo de tonos: valores. SHARED BY THE FOUR BIS WEB APPS ─────────────────────────────────────────
   ONE file, equal byte for byte in the four apps (Ricardo, 2026-11-18, option B, "parte el archivo"):
     C:\MICS\BISNext\src\BisNext.Client\wwwroot\css\bis-skin-tokens.css           the original: edit only this one
     C:\MICS\BISWeb\wwwroot\css\bis-skin-tokens.css                              Analytics
     C:\MICS\BISManagerWeb\src\BISManagerWeb\wwwroot\css\bis-skin-tokens.css     the Manager
     C:\MICS\BISPortalWeb\wwwroot\css\bis-skin-tokens.css                        the Portal
   C:\MICS\_newvps\sync-bis-tokens.ps1 compares the copies with the original (-Apply copies it). A change here changes the four apps.

   WHAT IT HOLDS: César's Modern Light and Dark values (Capa 1: every key of his theme objects, --bis-<kebab-key>), the classic names every app uses mapped onto
   them (Capa 2, with Syncfusion's --color-sf-* and Bootstrap's --bs-*), the skin's shapes and field tokens (radii, heights, the field edge and its ring), the
   status chips, G43 (the soft chosen item of a list), the print colors and the Inter @font-face rules. Shared with Analytics, the Manager and the Portal since 2026-11-19 (Ricardo: the three apps
   adopt BIS Next's Modern look, César's design, in Light and Dark); until then this file held the style of 2026-11-06 (BIS Next at fbb106fe). The values are
   BIS Next's own, moved here unchanged from bis-next-tokens.css.
   bis-next-tokens.css, next to this file, is BIS Next's only: its other themes (BIS Blue, Sandstone, High Contrast), Compact, the field edge switch
   (data-field-style), the line marks, the aging colors, the charts and the My Profile swatches.

   HOW IT LOADS, the same in the four apps: plain (no cascade layer), right AFTER bis-tokens.css (the shared shell, which does not change) and before the
   app's own sheets; in BIS Next bis-next-tokens.css comes right after it (index.html; until 2026-11-19 BIS Next imported this file in a cascade layer).
   THE SELECTORS (their specificity is what wins over bis-tokens.css, whose blocks the apps match are :root 0,1,0 and :root[data-theme="dark"] 0,2,0):
     Light          :root:root (0,2,0): also with no theme attribute, with data-theme="light" and with a theme this file does not know
     Dark           :root:root[data-theme="dark"], :root:root[data-mode="dark"] (0,3,0): the apps write data-theme="light|dark", BIS Next data-mode="dark"
     Capa 2         :root:root (0,2,0), and :root:root:root[data-theme="high-contrast"] (0,4,0) to win over bis-tokens.css's own High Contrast blocks (0,3,0)
     shapes, chips  :root (0,1,0): no block of bis-tokens.css names them
     G43            :root:root:not([data-theme="high-contrast"]) (0,3,0): the soft chosen item of a list, over Capa 2's strong one
     print          :root x 5 (0,5,0): over every theme block, of this file and of bis-tokens.css (0,4,0); BIS Next's High Contrast dark keeps its own
   Never plain :root for Capa 1, Dark or Capa 2: bis-tokens.css's :root[data-theme="dark"] (0,2,0) names the classic tokens too (--bis-fg, --bis-accent-fg,
   --bis-dialog-bg, --bis-focus ...) and would keep its old Dark (a white label on the light blue button). On screen every token both files name is this file's.
   An app sheet loaded after this file wins a tie (a rule at the same specificity that names the same token). Every selector is :root with attributes.
   NOTE: --bis-bg is the PAGE (César's bg); a box, a dialog, a card or a grid is --bis-surface (in the 2026-11-06 values --bis-bg was the box).
   Values only: nothing in this file names a class, an element or an app; the rules that use these values are each app's own.

   THE STYLE (Ricardo, 2026-11-05 night): the look of the BIS-Next-AP prototype: page < box (light: #f4f6f9 < #ffffff), rounded corners.
   BORDERS (Ricardo, 2026-11-10, replacing "border width 0": the prototype HAS borders, 1 px in tones so light they read as tones): boxes, grids, tabs, dialogs and
   menus have a 1 px edge in --bis-box-edge; secondary buttons a 1 px edge in --bis-field-edge-color.
   FIELDS (Ricardo, 2026-11-17, Q1 of César's Vendor Invoice, a look rule for every field of every screen and look): FLAT, the same 1 px edge on all four sides in
   --bis-field-line (3:1 or more on every surface it touches: W3C 1.4.11; César's #d3dae5 is 1.4:1 on the card, so his tone is not copied), no darker bottom side and no
   inset bar; on focus a 2 px OUTLINE ring in the accent (--bis-focus) and the edge in the accent. 34 px outer height (--bis-field-h, the border inside it).
   A read-only or disabled field keeps an edge, the light one (--bis-field-edge-color), on the second surface (--bis-surface2), as César's read-only name box: the light
   edge and the tone say "read only", the 3:1 edge says "you can type here".
   THE FONT is Inter (Ricardo, 2026-11-05), self-hosted: wwwroot/fonts/inter/ (InterVariable.woff2 and the italic, with LICENSE.txt, which must ship with them), loaded by the
   @font-face rules below with paths relative to THIS file (../fonts/inter/), so they work under any base path; no request leaves the site. An app that loads this file
   needs the folder next to its css folder. Inter's digits are proportional: wherever figures appear the rules use font-variant-numeric: tabular-nums.
   TO SWITCH THE FONT: change --bis-font below; it is the only place in the four apps.
   TO SWITCH THE LABEL SIZE (13 px, decided by Ricardo 2026-11-05; 12 px was the first proposal): --bis-label-size.

   New tokens (the existing ones keep their meaning):
     --bis-page-bg        behind everything (the page, --bis-bg); boxes, sections and grids (--bis-surface) sit on it
     --bis-box-edge       the 1 px edge of a box, a grid, the tab strip, a dialog or a menu
     --bis-field-*        an editable field: fill at rest, hovered, focused (+ ring), with an error; --bis-field-border-color and --bis-field-bottom-color its edge;
                          --bis-field-edge an extra inset shadow (none); --bis-field-tone the fill of BIS Next's variant A (data-field-style="fill")
     --bis-check-bg       an unchecked check box or radio button
     --bis-btn2-*         the secondary button (the box's surface with the light edge)
     --bis-radius-*       corners (--bis-radius-cell a box in a cell of a table of lines); --bis-field-h / --bis-btn-h heights (BIS Next's Compact shortens them)
     --bis-grid-head-size the heads of a table of lines (2026-11-18)
     --bis-shadow         the ink of a floating box's shadow, mixed at the rule's strength (per theme; Modern push V0185, 2026-11-15)
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/InterVariable.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/InterVariable-Italic.woff2') format('woff2');
}

/* ── César's themes, Light and Dark (Modern look, rows S1 and S3; Ricardo, 2026-11-13; shared with the three apps since 2026-11-19) ─────────────────────
   His `BIS-Next-Modern 1.html` theme objects: every key is a custom property --bis-<kebab-key> (surface2 -> --bis-surface2, accentSoft -> --bis-accent-soft)
   with HIS value. The only change: muted2 in Light (2.8:1) is darkened just enough to reach 4.5:1 on bg and surface, keeping its hue. Dark passes as it is.
   His BIS Blue and Sandstone, and High Contrast (the fifth theme), are BIS Next's only: bis-next-tokens.css. Two layers (comments in Spanish): his keys per
   theme (Capa 1), and the classic names mapped onto them once (Capa 2). NOTE: --bis-bg is now the PAGE (his bg); a box, a dialog or a grid is --bis-surface.
   They are not in bis-tokens.css, the shell shared by the four apps, which does not change (InterfaceStandardTests): loaded after it, these selectors (:root:root
   and more) win over its theme blocks in all four apps. ThemeContrastTests reads bis-tokens.css, this file and bis-next-tokens.css as the browser cascades them. */

/* ── Capa 2: los nombres de siempre sobre las claves de César (todos los temas) ──
   High Contrast (Ricardo, 2026-11-15, question 12) has the same mapping with one :root more: bis-tokens.css, the shared shell, still has its old High Contrast
   blocks at 0,3,0 (they name the classic tokens directly), and the mapping must win over them so that High Contrast too is painted from César's keys. */
:root:root,
:root:root:root[data-theme="high-contrast"] {
    /* Página y texto */
    --bis-fg:                  var(--bis-text);
    --bis-heading:             var(--bis-head);
    --bis-link:                var(--bis-accent);
    --bis-link-rgb:            var(--bis-accent-rgb);
    --bis-link-hover:          var(--bis-accent-text);   /* G50 (Modern push V0185, 2026-11-15): his a:hover (C:15), app.css */
    --bis-surface-alt:         var(--bis-surface2);
    --bis-selected-bg:         var(--bis-accent-soft);
    --bis-selected-fg:         var(--bis-accent-text);
    --bis-hover-bg:            var(--bis-hover);

    /* El panel lateral de la vista de hoy: su barra lateral */
    --bis-sidebar-bg:          var(--bis-side);
    --bis-sidebar-fg:          var(--bis-side-text);
    --bis-sidebar-fg-strong:   var(--bis-side-text);
    --bis-sidebar-fg-muted:    var(--bis-side-muted);
    --bis-sidebar-active-bg:   var(--bis-side-active-bg);
    --bis-sidebar-active-fg:   var(--bis-side-active-text);
    --bis-sidebar-hover-bg:    var(--bis-side-hover);
    --bis-sidebar-placeholder: var(--bis-side-muted);
    --bis-sidebar-note:        var(--bis-side-muted);
    --bis-sidebar-star:        var(--bis-side-muted);
    /* El bloque del nombre de la aplicación y la barra superior de <main>: su barra superior */
    --bis-brand-bg:            var(--bis-top);
    --bis-brand-fg:            var(--bis-top-text);
    --bis-topbar-bg:           var(--bis-top);
    --bis-topbar-fg:           var(--bis-top-text);
    --bis-navbtn-fg:           var(--bis-top-text);
    --bis-navbtn-hover:        var(--bis-top-text);
    --bis-navbtn-hover-bg:     var(--bis-top-hover);
    /* La barra de estado del pie */
    --bis-statusbar-bg:        var(--bis-surface);
    --bis-statusbar-fg:        var(--bis-text);
    /* La barra de cabecera (la del Ribbon y las pantallas heredadas del Timecard): el acento hondo del tema, con la tinta del acento */
    --bis-bar-bg:              var(--bis-accent-text);
    --bis-bar-fg:              var(--bis-accent-ink);
    /* Diálogos */
    --bis-dialog-bg:           var(--bis-surface);
    --bis-dialog-fg:           var(--bis-text);
    /* Botones de la barra */
    --bis-btn-fg:              var(--bis-muted);
    --bis-btn-hover:           var(--bis-accent-text);
    --bis-btn-hover-bg:        var(--bis-hover);

    /* El acento: botón principal, enlaces, anillo de foco (su .pri y su a) */
    --bis-accent-border:       var(--bis-accent);
    --bis-accent-hover-border: var(--bis-accent-hover);
    --bis-accent-active:       var(--bis-accent-hover);
    --bis-accent-fg:           var(--bis-accent-ink);
    --bis-accent-disabled-fg:  var(--bis-accent-ink);
    --bis-accent-outline:      var(--bis-accent);
    --bis-accent-outline-hover: var(--bis-accent);
    --bis-secondary-outline:   var(--bis-muted);
    --bis-focus:               var(--bis-accent);
    --bis-focus-halo:          var(--bis-surface);
    /* El borde de 3:1 de un control (Bootstrap, Syncfusion): la línea del campo */
    --bis-control-border:      var(--bis-field-line);

    /* Estados: el mismo significado en todos los temas, siempre con icono o texto (su bad/ok/warn) */
    --bis-danger:              var(--bis-bad-text);
    --bis-danger-border:       var(--bis-bad-text);
    --bis-danger-hover-border: var(--bis-danger-hover);
    --bis-danger-text:         var(--bis-bad-text);
    /* Los botones de aviso (btn-warning, btn-outline-warning): su texto y su fondo de aviso, no el amarillo de Bootstrap (1.6:1 sobre blanco) */
    --bis-warning-fg:          var(--bis-warn-text);
    --bis-warning-bg:          var(--bis-warn-bg);

    /* Los que Syncfusion no tiene como variable (app.css los usa) */
    --bis-sf-grid-head-bg:     var(--bis-surface2);
    --bis-sf-toolbar-bg:       var(--bis-surface);
    --bis-sf-pager-current-bg: var(--bis-accent-soft);
    --bis-sf-tab-active-fg:    var(--bis-accent-text);

    /* Syncfusion (Bootstrap 5.3) y Bootstrap salen de la paleta del tema */
    --color-sf-content-bg-color:           var(--bis-surface);
    --color-sf-content-bg-color-alt1:      var(--bis-surface2);
    --color-sf-content-bg-color-hover:     var(--bis-hover);
    --color-sf-content-bg-color-focus:     var(--bis-hover);
    --color-sf-content-bg-color-selected:  var(--bis-accent);
    --color-sf-flyout-bg-color:            var(--bis-surface);
    --color-sf-flyout-bg-color-hover:      var(--bis-hover);
    --color-sf-flyout-bg-color-focus:      var(--bis-accent-soft);
    --color-sf-flyout-bg-color-pressed:    var(--bis-accent);
    --color-sf-flyout-text-color-pressed:  var(--bis-accent-ink);
    --color-sf-table-bg-color-hover:       var(--bis-row-hover);
    --color-sf-table-bg-color-selected:    var(--bis-accent-soft);
    --color-sf-table-text-color-selected:  var(--bis-accent-text);
    --color-sf-content-text-color:         var(--bis-text);
    --color-sf-content-text-color-alt1:    var(--bis-text);
    --color-sf-content-text-color-alt2:    var(--bis-muted);
    --color-sf-content-text-color-alt3:    var(--bis-muted);
    --color-sf-content-text-color-hover:   var(--bis-text);
    --color-sf-content-text-color-focus:   var(--bis-text);
    --color-sf-content-text-color-disabled: var(--bis-muted);
    --color-sf-content-text-color-selected: var(--bis-accent-ink);
    --color-sf-placeholder-text-color:     var(--bis-muted);
    --color-sf-icon-color:                 var(--bis-muted);
    --color-sf-icon-color-hover:           var(--bis-text);
    --color-sf-icon-color-pressed:         var(--bis-text);
    --color-sf-border-light:               var(--bis-border);
    --color-sf-border:                     var(--bis-control-border);
    --color-sf-border-dark:                var(--bis-control-border);
    --color-sf-border-focus:               var(--bis-accent);
    --color-sf-border-selected:            var(--bis-accent);
    --color-sf-border-error:               var(--bis-bad-text);
    --color-sf-flyout-border:              var(--bis-border2);
    --color-sf-primary:                    var(--bis-accent);
    --color-sf-primary-text-color:         var(--bis-accent-ink);
    --color-sf-primary-light:              var(--bis-accent);
    --color-sf-primary-lighter:            var(--bis-accent-soft);
    --color-sf-primary-dark:               var(--bis-accent-hover);
    --color-sf-primary-darker:             var(--bis-accent-hover);
    --color-sf-primary-shadow:             var(--bis-accent-rgb);
    --color-sf-primary-bg-color-hover:     var(--bis-accent-hover);
    --color-sf-primary-border-color-hover: var(--bis-accent-hover);
    --color-sf-primary-bg-color-pressed:   var(--bis-accent-hover);
    --color-sf-primary-border-color-pressed: var(--bis-accent-hover);
    --color-sf-primary-bg-color-disabled:  var(--bis-accent-disabled);
    --color-sf-primary-text-disabled:      var(--bis-accent-ink);
    --color-sf-primary-outline:            var(--bis-accent);
    --color-sf-secondary:                  var(--bis-muted);
    --color-sf-secondary-text-color:       var(--bis-surface);
    --color-sf-secondary-bg-color-hover:   var(--bis-text);
    --color-sf-secondary-border-color-hover: var(--bis-text);
    --color-sf-secondary-text-color-hover: var(--bis-surface);
    --color-sf-tooltip-bg-color:           var(--bis-text);
    --color-sf-tooltip-text-color:         var(--bis-surface);

    --bs-body-bg:              var(--bis-surface);
    --bs-body-color:           var(--bis-text);
    --bs-emphasis-color:       var(--bis-head);
    --bs-secondary-color:      var(--bis-muted);
    --bs-tertiary-bg:          var(--bis-surface2);
    --bs-border-color:         var(--bis-border);
    --bs-primary-rgb:          var(--bis-accent-rgb);
    --bs-link-color:           var(--bis-accent);
    --bs-link-hover-color:     var(--bis-accent-text);
    --bs-link-color-rgb:       var(--bis-accent-rgb);
    --bs-link-hover-color-rgb: var(--bis-accent-text-rgb);   /* G50 (Modern push V0185, 2026-11-15): was the accent's */
    --bs-focus-ring-color:     var(--bis-accent);
}

/* ── Capa 1: Light (y lo que pinta un tema desconocido) ── */
:root:root {
    color-scheme: light;
    --bis-bg:               #f4f6f9;
    --bis-surface:          #ffffff;
    --bis-surface2:         #f7f9fc;
    --bis-border:           #e3e8ef;
    --bis-border2:          #d3dae5;
    --bis-line:             #e6eaf0;
    --bis-text:             #1b2433;
    --bis-head:             #10223f;
    --bis-muted:            #5b6575;
    --bis-muted2:           #667186;   /* #8a94a6 in his file: Light, darkened to 4.5:1 on bg and surface, same hue */
    --bis-accent:           #2457c5;
    --bis-accent-ink:       #ffffff;
    --bis-accent-soft:      #e6eefc;
    --bis-accent-text:      #163f99;
    --bis-hover:            #f4f6f9;
    --bis-row-hover:        #f1f5fc;
    --bis-ok-bg:            #dcf2e3;
    --bis-ok-text:          #17603a;
    --bis-warn-bg:          #fff1d6;
    --bis-warn-text:        #7a4b00;
    --bis-input-bg:         #f7f9fc;
    --bis-side:             #ffffff;
    --bis-side-text:        #33405a;
    --bis-side-hover:       #eef2f8;
    --bis-side-active-bg:   #e6eefc;
    --bis-side-active-text: #163f99;
    --bis-side-muted:       #5b6575;
    --bis-side-border:      #e3e8ef;
    --bis-top:              #ffffff;
    --bis-top-text:         #1b2433;
    --bis-top-muted:        #5b6575;
    --bis-top-hover:        #eef2f8;
    --bis-top-border:       #e3e8ef;
    --bis-logo-bg:          #2457c5;
    --bis-logo-ink:         #ffffff;
    --bis-top-border2:      #d3dae5;
    --bis-bad-bg:           #fbe4e2;
    --bis-bad-text:         #a2312b;
    /* Lo que depende del tema y no está en su objeto */
    --bis-accent-rgb:          36, 87, 197;
    --bis-accent-text-rgb:     22, 63, 153;   /* G50 (Modern push V0185, 2026-11-15): Bootstrap's hovered link, his accentText */
    --bis-accent-hover:        #2150b5;   /* su .pri:hover: brightness(.92) */
    --bis-accent-disabled:     #92abe2;   /* su .btn:disabled: la mitad del acento sobre surface */
    --bis-field-line:          #7a8794;   /* el borde inferior de 3:1 del campo (W3C 1.4.11), sobre todas las superficies */
    --bis-danger-hover:        #952d28;
    --bis-danger-fg:           #ffffff;
    --bis-sidebar-input-bg:    var(--bis-input-bg);
    --bis-sidebar-input-border: var(--bis-border2);
    --bis-sidebar-scroll:      rgba(0, 0, 0, .25);
    --bis-sidebar-icon-filter: invert(1) brightness(.25);   /* los iconos blancos del menú, en oscuro sobre su lateral claro */
    --bis-folder:              #1b3a5c;
    --bis-star:                #f2b632;   /* G39 (Modern push V0185, 2026-11-15): his star fill (C:182, 612), the one yellow of the title bar, Reports and Pinned */
    --bis-code:                #c02d76;
    --bis-chip-info-bg:        var(--bis-accent-soft);   /* G38 (Modern push V0185, 2026-11-15): his info pill (C:674), accentSoft / accentText; no violet */
    --bis-chip-info-fg:        var(--bis-accent-text);
    /* (Modern push V0185, 2026-11-15) The ink of a floating box's shadow (a menu, a list that drops down, a dialog): his black (C:65, 76: rgba(0,0,0,.18) and .22). A rule
       mixes it at its own strength, color-mix(in srgb, var(--bis-shadow) 22%, transparent), never bare. Every theme defines it; it was the text color, a light glow in Dark. */
    --bis-shadow:              #000000;
}

/* ── Dark: el oscuro, sea cual sea el tema (data-theme="dark" in the apps, data-mode="dark" in BIS Next). One attribute more than Light, so it wins. BIS Next's
   BIS Blue and Sandstone stay out of the dark Mode (:not(), bis-next-tokens.css), so Dark paints them; High Contrast wins over it with its own dark palette. ── */
:root:root[data-theme="dark"],
:root:root[data-mode="dark"] {
    color-scheme: dark;
    --bis-bg:               #0f141b;
    --bis-surface:          #171e28;
    --bis-surface2:         #1d2530;
    --bis-border:           #2a3442;
    --bis-border2:          #3a4658;
    --bis-line:             #253040;
    --bis-text:             #e3e8ef;
    --bis-head:             #f2f5f9;
    --bis-muted:            #9aa6b8;
    --bis-muted2:           #7d899b;
    --bis-accent:           #6c9cff;
    --bis-accent-ink:       #0b1220;
    --bis-accent-soft:      #1e2c4a;
    --bis-accent-text:      #a9c4ff;
    --bis-hover:            #222c39;
    --bis-row-hover:        #1f2a3a;
    --bis-ok-bg:            #163a26;
    --bis-ok-text:          #8fe0ae;
    --bis-warn-bg:          #3d2e10;
    --bis-warn-text:        #f3c97a;
    --bis-input-bg:         #1d2530;
    --bis-side:             #131a23;
    --bis-side-text:        #c3ccd9;
    --bis-side-hover:       #1f2833;
    --bis-side-active-bg:   #1e2c4a;
    --bis-side-active-text: #a9c4ff;
    --bis-side-muted:       #8d99ab;
    --bis-side-border:      #2a3442;
    --bis-top:              #131a23;
    --bis-top-text:         #e3e8ef;
    --bis-top-muted:        #9aa6b8;
    --bis-top-hover:        #1f2833;
    --bis-top-border:       #2a3442;
    --bis-logo-bg:          #6c9cff;
    --bis-logo-ink:         #0b1220;
    --bis-top-border2:      #3a4658;
    --bis-bad-bg:           #3c1d1b;
    --bis-bad-text:         #f19a94;
    --bis-accent-rgb:          108, 156, 255;
    --bis-accent-text-rgb:     169, 196, 255;   /* G50 (Modern push V0185, 2026-11-15): Bootstrap's hovered link, his accentText */
    --bis-accent-hover:        #6390eb;
    --bis-accent-disabled:     #425d94;
    --bis-field-line:          #8b97a4;
    --bis-danger-hover:        #ffa6a0;
    --bis-danger-fg:           #0f141b;
    --bis-sidebar-input-bg:    var(--bis-input-bg);
    --bis-sidebar-input-border: var(--bis-border2);
    --bis-sidebar-scroll:      rgba(255, 255, 255, .24);
    --bis-sidebar-icon-filter: none;
    /* En oscuro la barra del Ribbon es su barra superior: una barra clara sobre una página oscura deslumbra */
    --bis-bar-bg:              var(--bis-top);
    --bis-bar-fg:              var(--bis-top-text);
    --bis-folder:              #e8c37a;
    --bis-star:                #f2b632;   /* G39 (Modern push V0185, 2026-11-15): his star fill (C:182, 612), the one yellow of the title bar, Reports and Pinned */
    --bis-code:                #df74a9;
    --bis-chip-info-bg:        var(--bis-accent-soft);   /* G38 (Modern push V0185, 2026-11-15): his info pill (C:674), no violet */
    --bis-chip-info-fg:        var(--bis-accent-text);
    /* (Modern push V0185, 2026-11-15) Black, not the light text: a menu or a popup at 18-22 % of it reads as a shadow on the dark page, not as a glow. */
    --bis-shadow:              #000000;
    /* Los textos de estado de Bootstrap (.text-danger, .text-success) sobre fondo oscuro */
    --bs-danger-rgb:           241, 154, 148;
    --bs-success-rgb:          143, 224, 174;
}

/* ── The skin's shapes and field tokens, every theme (Modern look S2; Q1, Q5 of 2026-11-17; round 2 of 2026-11-18). BIS Next's Compact shortens the heights. ── */
:root {
    /* One typeface everywhere (was Helvetica/Arial in the page and Segoe UI in Syncfusion). */
    --bis-font:            Inter, 'Segoe UI', system-ui, sans-serif;

    --bis-radius-box:      12px;
    --bis-radius-btn:      8px;
    --bis-radius-field:    8px;              /* S2: buttons and inputs 8 px */
    --bis-radius-cell:     5px;              /* a box in a cell of a table of lines, his .cell (K:66; Ricardo 2026-11-18, round 2 item 7) */
    --bis-field-h:         34px;
    --bis-btn-h:           36px;
    --bis-btn-sm-h:        32px;              /* the small buttons that sit in a row or a table; his 32 (G44, C:448, 492; Modern push V0185, 2026-11-15: was 30) */
    --bis-cell-field-h:    30px;              /* a box in a cell of César's lines (his .cell, the Vendor Invoice's lines; 2026-11-17) */
    --bis-field-pad-x:     9px;               /* Q5 (Ricardo, 2026-11-17): what a box keeps between its edges (or its icon) and its value, his .fin "0 9px" */
    --bis-cell-pad-x:      6px;               /* ... and a box in a cell of a table of lines, his .cell "0 6px" */
    --bis-label-size:      13px;              /* field labels and table heads */
    --bis-grid-head-size:  11.5px;            /* the heads of a table of lines, his 11.5 px (C:64; Ricardo 2026-11-18, round 2 item 5, Q4); other heads keep the label size */
    --bis-field-border-color: var(--bis-field-line);                 /* Q1 (2026-11-17): flat, the 3:1 edge on all four sides ... */
    --bis-field-bottom-color: var(--bis-field-line);                 /* ... the bottom side too: no darker line under the box */
    --bis-field-edge:      none;
    --bis-field-focus-edge: none;             /* no inset bar: the focus is the ring */
    --bis-field-ring-w:    2px;               /* the focus ring is an outline, so forced colors keep it and no layout moves */
    --bis-field-ring-offset: 0px;

    /* The tones, on César's keys (Capa 1 above; BIS Next's other themes in bis-next-tokens.css): the same layering in every theme, page < box < field. */
    --bis-page-bg:         var(--bis-bg);
    --bis-box-edge:        var(--bis-border);
    --bis-field-bg:        var(--bis-input-bg);
    --bis-field-hover-bg:  var(--bis-hover);
    --bis-field-focus-bg:  var(--bis-surface);
    --bis-field-error-bg:  var(--bis-bad-bg);
    --bis-field-tone:      var(--bis-surface2);
    --bis-field-edge-color: var(--bis-border2);
    --bis-check-bg:        var(--bis-border2);
    --bis-btn2-bg:         var(--bis-surface);
    --bis-btn2-hover-bg:   var(--bis-hover);
}

/* Printing is always light (T7); the page tone does not print. Five :root (0,5,0): over every theme block of this file and of bis-tokens.css (whose own print
   rule is 0,4,0), and over BIS Next's BIS Blue, Sandstone and High Contrast (0,4,0); BIS Next's High Contrast dark (0,5,0, loaded after) keeps its own, as before. */
@media print {
    :root:root:root:root:root {
        color-scheme: light;
        --bis-page-bg:        #ffffff;
        --bis-bg:             #ffffff;
        --bis-surface:        #ffffff;
        --bis-surface2:       #ffffff;
        --bis-text:           #000000;
        --bis-head:           #000000;
        --bis-muted:          #444444;
        --bis-accent:         #000000;
        --bis-accent-soft:    #e6e6e6;
        --bis-accent-text:    #000000;
        --bis-border:         #999999;
        --bis-line:           #999999;
        --bis-top:            #ffffff;
        --bis-top-text:       #000000;
        --bis-side:           #ffffff;
        --bis-fg:             #000000;
        --bis-heading:        #000000;
        --bis-link:           #000000;
        --bis-surface-alt:    #ffffff;
        --bis-selected-bg:    #e6e6e6;
        --bis-selected-fg:    #000000;
        --bis-dialog-bg:      #ffffff;
        --bis-dialog-fg:      #000000;
        --color-sf-content-bg-color:       #ffffff;
        --color-sf-content-text-color:     #000000;
        --bs-body-bg:    #ffffff;
        --bs-body-color: #000000;
    }
}

/* ── V0179 (Ricardo, 2026-11-11, decision 5): status chips in soft tones, app-wide. ──
   One chip = a soft fill with dark text (light) or a deep fill with light text (dark), always with the status in words. Since 2026-11-13 (S2) they are César's pills:
   ok, warn, bad, the soft accent and the second surface of his theme; info (--bis-chip-info-*, in each theme's block) is his soft accent too (V0185 G38: his PILL.info,
   C:674). Tones: open (blue), paid (green), hold (amber), late (red), info (blue, as open), neutral (gray). ThemeContrastTests measures every pair in BIS Next's themes.
   The numbered mark of a detail line is BIS Next's (bis-next-tokens.css). */
:root {
    --bis-chip-open-bg: var(--bis-accent-soft);  --bis-chip-open-fg: var(--bis-accent-text);
    --bis-chip-paid-bg: var(--bis-ok-bg);        --bis-chip-paid-fg: var(--bis-ok-text);
    --bis-chip-hold-bg: var(--bis-warn-bg);      --bis-chip-hold-fg: var(--bis-warn-text);
    --bis-chip-late-bg: var(--bis-bad-bg);       --bis-chip-late-fg: var(--bis-bad-text);
    --bis-chip-neutral-bg: var(--bis-surface2);  --bis-chip-neutral-fg: var(--bis-muted);
}

/* ── G43 (Modern push V0185, 2026-11-15): a chosen item in a list is soft, as his (the search's rowHover + accentText, C:25; the theme menu, C:872). ──
   The chosen item of every SfDropDownList / ComboBox / MultiSelect popup and the tree's selected node take the soft accent with its text (it was a solid accent bar
   with white text, Bootstrap's drop-down look). The calendar's chosen day keeps the accent (Syncfusion paints it with --color-sf-primary; app.css its ink).
   In every theme but High Contrast (César's four in BIS Next; Light and Dark in the apps): :not() leaves High Contrast its strong selection (Capa 2, the accent with its ink); Windows forced colors uses Highlight (app.css).
   In the shared file since 2026-11-19: the three apps' Syncfusion 5.3 reads it, and their approved captures show his soft selection. */
:root:root:not([data-theme="high-contrast"]) {
    --color-sf-content-bg-color-selected:   var(--bis-accent-soft);
    --color-sf-content-text-color-selected: var(--bis-accent-text);
}
