/* ------------------------------------------------------------------
   VMS overrides — loaded after the theme's style.css.
   Keep this file small and explain each rule.
   ------------------------------------------------------------------ */

/*
 | The theme generates button text colour with Bootstrap's contrast
 | algorithm, which lands on #000 for the mid-tone brand colours. Black on
 | #0f79f3 reads as muddy rather than deliberate, so the solid variants with
 | a dark enough background get white text in every state.
 |
 | Deliberately excluded: .btn-warning and .btn-light, whose backgrounds are
 | pale enough that dark text is the readable choice.
 */
.btn-primary,
.btn-primary-30,
.btn-primary-50,
.btn-primary-60,
.btn-secondary,
.btn-success,
.btn-success-50,
.btn-danger,
.btn-danger-50,
.btn-danger-60,
.btn-info,
.btn-info-40,
.btn-info-50 {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
}

/* Outline buttons invert on hover, so the filled state needs white too. */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-info {
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

/*
 | Links styled as buttons pick up the anchor colour from the theme, which
 | beats the button variable. Force the inherited value back.
 */
a.btn-primary,
a.btn-secondary,
a.btn-success,
a.btn-danger,
a.btn-info {
    color: #fff;
}

a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-success:hover,
a.btn-danger:hover,
a.btn-info:hover {
    color: #fff;
}
