/* legacy-aliases.css - Base.css variable names mapped onto the TOT tokens so existing pages follow the colour scheme.
   Hand-written (not tokens); loaded right after the generated tokens.css. No hex literals here (DR-51). */

:root {
    --color-bg-nav: var(--hrms-color-bg-surface);
    --color-bg-nav-hover: var(--hrms-color-bg-subtle);
    --color-header: var(--hrms-color-text-primary);
    --color-divider: var(--hrms-color-border-default);
    --color-button: var(--hrms-color-action-primary);
    --color-button-hover: var(--hrms-color-action-primary-hover);
    --color-secondary: var(--hrms-color-text-secondary);
    --text-primary: var(--hrms-color-text-secondary);
    --text-secondary: var(--hrms-color-text-muted);
    --text-dark: var(--hrms-color-text-primary);
    --text-white: var(--hrms-color-text-inverse);
    --color-success: var(--hrms-color-status-success-text);
    --color-warning: var(--hrms-color-status-warning-text);
    --color-danger: var(--hrms-color-status-error-text);
    --color-bg-success: var(--hrms-color-status-success-bg);
    --color-bg-warning: var(--hrms-color-status-warning-bg);
    --color-bg-danger: var(--hrms-color-status-error-bg);
    --color-bg-secondary: var(--hrms-color-bg-subtle);
}

:root[data-scheme="dark"] {
    --color-bg: var(--hrms-color-bg-canvas);
    --color-hover: var(--hrms-color-bg-selected);
    --color-bg-primary: var(--hrms-color-bg-subtle);
    --color-bg-tertiary: var(--hrms-color-bg-selected);
    --mud-palette-tertiary: var(--hrms-color-bg-selected) !important;
}

html, body {
    background: var(--hrms-color-bg-canvas);
    color: var(--hrms-color-text-primary);
}

/* PTA-F-002: Bootstrap's .text-muted keeps its own dark grey (rgba(33, 37, 41, .75), with !important) in every scheme, 1.28:1 on the
   high-contrast dark canvas. It follows the muted text token instead, so it reads in light, dark and high contrast. */
.text-muted {
    color: var(--hrms-color-text-muted) !important;
}
