/*
 * Accessible warning-colour overrides for Bootstrap 3.3.x
 * Load this file AFTER bootstrap.css and bootstrap-theme.css.
 *
 * The dark foreground preserves the existing yellow/orange backgrounds
 * while providing substantially stronger contrast for normal-sized text.
 */

/* Yellow/orange buttons: use dark text in every interactive state. */
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning,
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning {
    color: #212529 !important;
    text-shadow: none !important;
}

/* Bootstrap reverses warning badges to orange text on white. */
.btn-warning .badge {
    color: #594000 !important;
    background-color: #fff !important;
    text-shadow: none !important;
}

/* Other solid warning components that normally use white text. */
.label-warning,
.badge-warning,
.progress-bar-warning {
    color: #212529 !important;
    text-shadow: none !important;
}

/* Warning-coloured text shown on white or light-grey surfaces. */
.text-warning,
a.text-warning,
.list-group-item-warning {
    color: #664d03 !important;
}

a.text-warning:hover,
a.text-warning:focus,
a.list-group-item-warning:hover,
a.list-group-item-warning:focus {
    color: #493700 !important;
}

/* Pale warning surfaces. */
.alert-warning,
.panel-warning > .panel-heading {
    color: #664d03 !important;
}

.alert-warning .alert-link,
.panel-warning > .panel-heading a {
    color: #493700 !important;
}

/* Prevent inherited white/yellow text on pale warning backgrounds. */
.bg-warning,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td {
    color: #212529 !important;
}
