:root {
    color-scheme: light;
    --primary: #344f7a;
    --primary-strong: #314d7d;
    --primary-dark: #2c4267;
    --primary-hover: #293f66;
    --primary-light: #657da8;
    --primary-soft: #e4ebf5;
    --panel: #f4f6f9;
    --page: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #e9edf3;
    --surface-hover: #e4ebf5;
    --surface-translucent: rgba(255,255,255,.95);
    --surface-overlay: rgba(255,255,255,.3);
    --transparent: transparent;
    --text: #202b3c;
    --text-secondary: #202b3c;
    --muted: #64748b;
    --border: #d4dae3;
    --border-strong: #d4dae3;
    --divider: #dce2eb;
    --success: #1f9d70;
    --warning: #d18c22;
    --danger: #d84b57;
    --danger-soft: #fff0f1;
    --on-primary: #ffffff;
    --on-primary-muted: #e9ebed;
    --on-primary-border: rgba(255,255,255,.2);
    --on-primary-border-strong: rgba(255,255,255,.25);
    --on-primary-hover: rgba(255,255,255,.3);
    --overlay: rgba(20,32,53,.4);
    --overlay-soft: rgba(0,0,0,.08);
    --overlay-medium: rgba(0,0,0,.3);
    --focus-ring: rgba(55,81,126,.15);
    --shadow: 0 10px 28px rgba(55,81,126,.12);
    --shadow-subtle: 0 1px 1px rgba(0,0,0,.14902), 0 1px 2px rgba(0,0,0,.09804);
    --shadow-control: 0 3px 6px rgba(0,0,0,.16);
    --shadow-card: none;
    --shadow-toast: 0 4px 10px rgba(0,0,0,.1);
    --shadow-login-mobile: 0 2px 10px rgba(0,0,0,.1);
    --shadow-banner: 0 12px 35px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
    --shadow-floating: 0 14px 30px rgba(31,41,55,.2);
    --shadow-footer: 0 -6px 18px rgba(31,41,55,.18);
    --shadow-action: none;
    --radius: 5px;
    --header-bg: #ffffff;
    --header-brand-bg: #ffffff;
    --header-brand-ink: #344f7a;
    --header-text: #202b3c;
    --header-muted: #64748b;
    --header-accent: #344f7a;
    --header-border: #dce2eb;
    --header-avatar-bg: #344f7a;
    --header-avatar-text: #ffffff;
    --header-hover: #e4ebf5;
    --summary-bg: #344f7a;
    --summary-text: #ffffff;
    --summary-muted: #dce6f4;
    --summary-divider: rgba(255,255,255,.24);
    --summary-button-bg: #e9edf3;
    --summary-button-hover: #e4ebf5;
    --summary-button-text: #202b3c;
    --section-bg: #344f7a;
    --section-text: #ffffff;
    --section-border: #2c4267;
    --action-fill: #344f7a;
    --action-fill-hover: #314d7d;
    --action-text: #ffffff;
    --action-border: #344f7a;
    --control-bg: #ffffff;
    --control-disabled-bg: #e9edf3;
    --control-disabled-text: #475569;
}

/* Mesmas três escolhas do ERP.Web: padrão, claro (v1) e escuro. */
[data-theme="light"][data-theme-variant="v1"] {
    color-scheme: light;
    --primary: #34486a;
    --primary-strong: #34486a;
    --primary-hover: #2c4267;
    --primary-soft: #dadfe8;
    --panel: #eceef0;
    --page: #eceef0;
    --surface: #ffffff;
    --surface-soft: #d8dadc;
    --surface-hover: #dadfe8;
    --text: #1f2023;
    --text-secondary: #1f2023;
    --muted: #64748b;
    --border: #a1a4ac;
    --border-strong: #a1a4ac;
    --divider: #a1a4ac;
    --header-bg: #ffffff;
    --header-brand-bg: #ffffff;
    --header-brand-ink: #34486a;
    --header-text: #1f2023;
    --header-muted: #64748b;
    --header-accent: #34486a;
    --header-border: #a1a4ac;
    --header-avatar-bg: #34486a;
    --header-avatar-text: #ffffff;
    --header-hover: #dadfe8;
    --summary-bg: #d8dadc;
    --summary-text: #1f2023;
    --summary-muted: #64748b;
    --summary-divider: #a1a4ac;
    --summary-button-bg: #cfd0d3;
    --summary-button-hover: #dadfe8;
    --summary-button-text: #1f2023;
    --section-bg: #d8dadc;
    --section-text: #34486a;
    --section-border: #a1a4ac;
    --action-fill: #34486a;
    --action-fill-hover: #2c4267;
    --action-text: #ffffff;
    --action-border: #34486a;
    --control-bg: #ffffff;
    --control-disabled-bg: #f3f3f3;
    --control-disabled-text: #5f6369;
    --shadow-action: none;
    --shadow-card: none;
}

[data-theme="dark"] {
    color-scheme: dark;
    --primary: #7896c4;
    --primary-strong: #7896c4;
    --primary-hover: #93afd2;
    --primary-light: #93afd2;
    --primary-soft: #343b47;
    --panel: #2c2f36;
    --page: #2c2f36;
    --surface: #25272d;
    --surface-soft: #373b45;
    --surface-hover: #343b47;
    --text: #bcc3ce;
    --text-secondary: #bcc3ce;
    --muted: #929cab;
    --border: #434752;
    --border-strong: #5b6270;
    --divider: #434752;
    --on-primary: #ffffff;
    --on-primary-muted: #bcc3ce;
    --on-primary-border: #434752;
    --on-primary-border-strong: #434752;
    --on-primary-hover: #434752;
    --header-bg: #2c2e35;
    --header-brand-bg: #2c2e35;
    --header-brand-ink: #7896c4;
    --header-text: #bcc3ce;
    --header-muted: #929cab;
    --header-accent: #7896c4;
    --header-border: #434752;
    --header-avatar-bg: #7896c4;
    --header-avatar-text: #22242a;
    --header-hover: #343b47;
    --summary-bg: #373b45;
    --summary-text: #bcc3ce;
    --summary-muted: #929cab;
    --summary-divider: #434752;
    --summary-button-bg: #383b44;
    --summary-button-hover: #434752;
    --summary-button-text: #bcc3ce;
    --section-bg: #373b45;
    --section-text: #7896c4;
    --section-border: #434752;
    --action-fill: #7896c4;
    --action-fill-hover: #93afd2;
    --action-text: #22242a;
    --action-border: #7896c4;
    --control-bg: #22242a;
    --control-disabled-bg: #34373e;
    --control-disabled-text: #a5adba;
    --shadow-card: none;
    --shadow-action: none;
}
