/* Required opt-in color exception: Argon utilities declare color !important.
   Scope is migrated content and authenticated modal surfaces only. No navigation, geometry or font overrides. */
body[data-theme] .ui-page-shell .text-warning,
body[data-theme] .ui-modal-surface .text-warning { color: #8a4b00 !important; }
body[data-theme] .ui-page-shell .text-success,
body[data-theme] .ui-modal-surface .text-success { color: #166142 !important; }
body[data-theme] .ui-page-shell .text-info,
body[data-theme] .ui-modal-surface .text-info { color: #096675 !important; }
body[data-theme] .ui-page-shell .text-danger,
body[data-theme] .ui-modal-surface .text-danger { color: #b51d3d !important; }
body[data-theme] .ui-page-shell .text-secondary,
body[data-theme] .ui-page-shell .text-muted,
body[data-theme] .ui-page-shell .text-body,
body[data-theme] .ui-modal-surface .text-secondary,
body[data-theme] .ui-modal-surface .text-muted,
body[data-theme] .ui-modal-surface .text-body { color: #52627a !important; }
body[data-theme] .ui-page-shell .badge.bg-primary,
body[data-theme] .ui-modal-surface .badge.bg-primary { color: var(--ui-primary-ink) !important; }
body[data-theme] .ui-page-shell .badge.bg-secondary,
body[data-theme] .ui-page-shell .badge.bg-success,
body[data-theme] .ui-page-shell .badge.bg-info,
body[data-theme] .ui-page-shell .badge.bg-warning,
body[data-theme] .ui-page-shell .badge.bg-danger,
body[data-theme] .ui-modal-surface .badge.bg-secondary,
body[data-theme] .ui-modal-surface .badge.bg-success,
body[data-theme] .ui-modal-surface .badge.bg-info,
body[data-theme] .ui-modal-surface .badge.bg-warning,
body[data-theme] .ui-modal-surface .badge.bg-danger { color: #111827 !important; }

body[data-theme] .ui-page-shell .badge.bg-gradient-primary,
body[data-theme] .ui-modal-surface .badge.bg-gradient-primary { color: var(--ui-primary-ink) !important; }
body[data-theme] .ui-page-shell .badge.bg-gradient-secondary,
body[data-theme] .ui-modal-surface .badge.bg-gradient-secondary { color: #5f6f89 !important; }
body[data-theme] .ui-page-shell .badge.bg-gradient-success,
body[data-theme] .ui-modal-surface .badge.bg-gradient-success { color: #18794f !important; }
body[data-theme] .ui-page-shell .badge.bg-gradient-warning,
body[data-theme] .ui-modal-surface .badge.bg-gradient-warning { color: #815000 !important; }
body[data-theme] .ui-page-shell .badge.bg-gradient-info,
body[data-theme] .ui-modal-surface .badge.bg-gradient-info { color: #096675 !important; }
body[data-theme] .ui-page-shell .badge.bg-gradient-danger,
body[data-theme] .ui-modal-surface .badge.bg-gradient-danger { color: #b21e42 !important; }
body[data-theme] .ui-page-shell .badge.bg-light,
body[data-theme] .ui-modal-surface .badge.bg-light { color: #111827 !important; }

/* Legacy white alert copy must follow the canonical light contextual surface. */
body[data-theme] .ui-page-shell .alert.text-white,
body[data-theme] .ui-page-shell .alert > .text-white:not(.btn):not(.ui-btn),
body[data-theme] .ui-page-shell .alert p.text-white,
body[data-theme] .ui-page-shell .alert li.text-white,
body[data-theme] .ui-modal-surface .alert.text-white,
body[data-theme] .ui-modal-surface .alert > .text-white:not(.btn):not(.ui-btn),
body[data-theme] .ui-modal-surface .alert p.text-white,
body[data-theme] .ui-modal-surface .alert li.text-white { color: var(--ui-text) !important; }
