/* Keep dark button labels white and use dark labels on light button fills. */
.button.red:hover,
.button.red:focus {
    color: #fff;
    background-color: #991a17 !important;
}

.button.green,
.button.green:hover,
.button.green:focus,
.button.inactive,
.button.inactive:hover,
.button.inactive:focus,
.button.ghost.inactive,
.button.ghost.inactive:hover,
.button.ghost.inactive:focus,
.button-primary,
.button-primary:hover,
.button-primary:focus,
form .btn.btn-primary,
form .btn.btn-primary:hover,
form .btn.btn-primary:focus,
body.online #download-buttons button.button.ghost:not(:disabled) {
    color: #222 !important;
}

.button.n50.inactive:hover,
.button.n50.inactive:focus,
.button.ghost.n50.inactive:hover,
.button.ghost.n50.inactive:focus {
    color: #fff !important;
}

.drawer .contact_item button span,
.info .controls button span,
.button.ghost.current span,
#download-buttons button span {
    color: inherit !important;
    filter: none !important;
}

#download-buttons button.button.ghost:disabled,
#download-buttons button.button.ghost:disabled:hover {
    color: #fff !important;
    background-color: #707070 !important;
    filter: none !important;
}

main section.container .row .nine.columns.download button.file_download:hover,
main section.container .row .nine.columns.download button.file_download:focus {
    color: #222;
    background-color: #a3b35b;
    text-shadow: none;
}

main section.container .row .nine.columns.match_schedule.nested .button_nav button {
    color: #405c1a;
}

/* Row action icons need sufficient contrast against white table cells. */
table button.edit-button:focus,
table button.save-button:focus,
table button.del-button:focus,
table button.btn_screenshot:focus {
    filter: none !important;
}

table button.edit-button:hover,
table button.edit-button:focus,
body.scoring #content #tables-container.score_list table tbody tr td:first-of-type button.edit-button:hover,
main section .row :is(#tables-container, #tables-container-reg, #tables-container-scores, #tables-container_scores):is(.reg_list, .score_list) table tbody tr td:first-of-type button.edit-button:hover,
table button.save-button,
table button.save-button:hover,
table button.save-button:focus,
table button.btn_screenshot:hover,
table button.btn_screenshot:focus,
table button.edit-button:hover::before,
table button.edit-button:focus::before,
table button.edit-button:hover::after,
table button.edit-button:focus::after,
table button.save-button::before,
table button.save-button::after {
    color: #405c1a !important;
}
