/*
================================================================================
MaidBaseKit named colors: every color the kit's grid (maidbase-grid.css) and controls (maidbase-kit.css) use, with a light and a
dark value. Spec: Documentation/Projects/DevExpress-Replacement-Kit/Controls-Spec.md ("Colors and dark mode").

Light values are today's DevExpress look exactly. Dark values are what the office dark mode engine (Dark Reader,
Documentation/Architecture/Office-Dark-Mode.md) turns each light color into in the same role, measured 2026-10-16, so a
converted page looks like the dark mode people already use. Where the engine gets the order wrong (faint text came out
BRIGHTER than placeholder text, and placeholder only a little dimmer than typed text), the dark value keeps light mode's order instead.

Dark applies under <html data-rcm-theme="dark">. While the engine is on, it recolors these light values like
everything else; the attribute is set only as a fallback when a kit popup opens light on a dark page
(rcm-dark-mode.js RcmDarkModeCheckKit, Office-Dark-Mode.md). A page whose every control comes from the kit can later skip the
engine and set the attribute instead.
================================================================================
*/
:root {
    /* surfaces */
    --rcm-surface: #fff;
    --rcm-surface-hover: #f5f5f5;
    --rcm-surface-active: #f0f0f0;
    --rcm-surface-group: #f7f7f7;
    --rcm-surface-alt: #fafafa;
    --rcm-toggle-on: #e0e0e0;
    --rcm-pager-active: #ddd;
    --rcm-selected: #e0f4fc;
    --rcm-flash: #fef3c7;
    --rcm-highlight: #fff3b0;
    --rcm-danger-surface: #fdf2f2;
    --rcm-press: rgba(0, 0, 0, .12);
    --rcm-backdrop: rgba(255, 255, 255, .8);
    --rcm-shadow: rgba(0, 0, 0, .176);
    /* text */
    --rcm-text: #333;
    --rcm-text-2: #555;
    --rcm-text-3: #666;
    --rcm-text-4: #888;
    --rcm-text-head: #959595;
    --rcm-text-placeholder: #999;
    --rcm-text-faint: #b0b0b0;
    --rcm-total-text: rgba(51, 51, 51, .7);
    --rcm-on-brand: #fff;
    /* lines */
    --rcm-border: #ddd;
    --rcm-border-soft: #eee;
    --rcm-border-strong: #bbb;
    /* brand blue, the older DevExtreme accent blue, and red */
    --rcm-brand-bg: #0096D6;
    --rcm-brand-bg-hover: #0085bf;
    --rcm-brand-text: #0096D6;
    --rcm-brand-border: #0096D6;
    --rcm-accent-bg: #337ab7;
    --rcm-accent-text: #337ab7;
    --rcm-accent-text-hover: #23527c;
    --rcm-accent-soft: #63a0d4;                   /* the DevExtreme switch handle when off (2026-10-29) */
    --rcm-spin-hover: #e6e6e6;                    /* a DevExtreme number box spin half on hover (2026-10-29) */
    --rcm-filter-icon: #898989;                   /* the DevExtreme filter row's magnifier (2026-10-30) */
    --rcm-border-input: #ccc;                     /* a Bootstrap form box's border: the old upload control (2026-10-30) */
    --rcm-list-chosen: rgba(0, 0, 0, .15);        /* the DevExpress list box's chosen row (2026-10-31) */
    --rcm-border-readonly: #f4f4f4;               /* a read-only DevExtreme checkbox's border (2026-11-15) */
    --rcm-danger-text-form: #a94442;              /* Bootstrap's text-danger: the old upload control's error (2026-10-30) */
    --rcm-danger-text: #d9534f;
    --rcm-danger-border: #d9534f;
    color-scheme: light;
}

/* Screen only: a printout from the dark choice falls back to the light set in :root above, so the dark values are declared once (2026-11-18). */
@media not print {
html[data-rcm-theme="dark"],
html.hp.hp-dark {
    --rcm-surface: #181a1b;
    --rcm-surface-hover: #1e2021;
    --rcm-surface-active: #202325;
    --rcm-surface-group: #1d1f20;
    --rcm-surface-alt: #1b1d1e;
    --rcm-toggle-on: #2a2d2f;
    --rcm-pager-active: #2b2f31;
    --rcm-selected: #063041;
    --rcm-flash: #3f3201;
    --rcm-highlight: #4a3f00;
    --rcm-danger-surface: #340808;
    --rcm-press: rgba(0, 0, 0, .25);
    --rcm-backdrop: rgba(24, 26, 27, .8);
    --rcm-shadow: rgba(0, 0, 0, .5);              /* the engine kept .18, which is invisible on charcoal */
    --rcm-text: #c8c3bc;
    --rcm-text-2: #b2aca2;
    --rcm-text-3: #a8a095;
    --rcm-text-4: #9d9488;
    --rcm-text-head: #a59d92;
    --rcm-text-placeholder: #7d8286;              /* engine: #a8a095, only a little dimmer than typed text */
    --rcm-text-faint: #6b7275;                    /* engine: #b6b0a6, brighter than the days it should sit behind */
    --rcm-total-text: rgba(200, 195, 188, .7);
    --rcm-on-brand: #e8e6e3;
    --rcm-border: #3a3e41;
    --rcm-border-soft: #35393b;
    --rcm-border-strong: #43494c;
    --rcm-brand-bg: #006a99;                      /* engine: #0078ab, which puts button text at 3.9:1; this is 4.8:1 */
    --rcm-brand-bg-hover: #005a83;
    --rcm-brand-text: #36c3ff;
    --rcm-brand-border: #0086bf;
    --rcm-accent-bg: #296292;
    --rcm-accent-text: #69a6d5;
    --rcm-accent-text-hover: #8dbbdf;
    --rcm-accent-soft: #3a6f9c;                   /* chosen beside --rcm-accent-bg, not measured (2026-10-29) */
    --rcm-spin-hover: #2a2d2f;                    /* as --rcm-toggle-on, not measured (2026-10-29) */
    --rcm-filter-icon: #9d9488;                   /* as --rcm-text-4, not measured (2026-10-30) */
    --rcm-border-input: #43494c;                  /* as --rcm-border-strong, not measured (2026-10-30) */
    --rcm-list-chosen: rgba(255, 255, 255, .1);   /* chosen to read on charcoal, not measured (2026-10-31) */
    --rcm-border-readonly: #35393b;               /* as --rcm-border-soft, not measured (2026-11-15) */
    --rcm-danger-text-form: #db5e5a;              /* as --rcm-danger-text, not measured (2026-10-30) */
    --rcm-danger-text: #db5e5a;
    --rcm-danger-border: #89211e;
    color-scheme: dark;                           /* native scrollbars and form parts follow */
}
}
