#rg90-accesibilidad {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #101010;
    color: #fff;
    text-align: right;
}
#rg90-accesibilidad #rg90-contraste-toggle {
    display: inline-block;
    width: auto;
    height: auto;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 8px 16px;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #101010;
    color: #fff;
    font: 700 16px/1.4 'Segoe UI', sans-serif;
    cursor: pointer;
    white-space: normal;
}
#rg90-accesibilidad #rg90-contraste-toggle:focus-visible {
    outline: 3px solid #ffe66d;
    outline-offset: 2px;
}
@media screen {
    html.rg90-contraste {
        color-scheme: dark;
        --primary: #9edfff;
        --primary-dark: #9edfff;
        --primary-light: #182f40;
        --text: #fff;
        --text-muted: #e6e6e6;
        --text-color: #fff;
        --border: #bdbdbd;
        --border-color: #bdbdbd;
        --border-focus: #ffe66d;
        --bg: #080808;
        --light-bg: #080808;
        --surface: #151515;
        --surface-alt: #222;
        background: #080808 !important;
    }
    html.rg90-contraste body {
        background: #080808 !important;
        color: #fff !important;
    }
    html.rg90-contraste :is(header, nav, main, footer, section, aside, fieldset, form, .container, .card, .action-card, .modal-content, .modal-body, .modal-header, .modal-footer, .panel, .content, .table-container, .table-responsive, .form-section, .form-container, .user-name, legend) {
        background: #151515 !important;
        color: #fff !important;
        border-color: #bdbdbd !important;
        box-shadow: none !important;
    }
    html.rg90-contraste :is(h1, h2, h3, h4, h5, h6, p, label, legend, small, span, strong, li, dt, dd, .text-muted, .form-text, .action-description) {
        color: #fff !important;
        text-shadow: none !important;
    }
    html.rg90-contraste :is(label, legend, th) { font-weight: 700 !important; }
    html.rg90-contraste :is(input:not([type="hidden"]), select, textarea, option) {
        background: #080808 !important;
        color: #fff !important;
        border: 2px solid #bdbdbd !important;
        font-weight: 600;
        accent-color: #ffe66d;
    }
    html.rg90-contraste :is(input, textarea)::placeholder {
        color: #ddd !important;
        opacity: 1;
    }
    html.rg90-contraste :is(input[readonly], input:disabled, select:disabled, textarea:disabled) {
        background: #303030 !important;
        color: #eee !important;
        opacity: 1 !important;
        border-style: dashed !important;
    }
    html.rg90-contraste :is(a, a:visited) { color: #9edfff !important; }
    html.rg90-contraste a:not([class*="btn"]):not([class*="button"]) { text-decoration: underline; }
    html.rg90-contraste :is(button, .btn, [class*="btn-"], .action-button, input[type="submit"], input[type="button"]) {
        background: #163c5a !important;
        color: #fff !important;
        border: 2px solid #9edfff !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }
    html.rg90-contraste :is(button:disabled, input[type="submit"]:disabled) {
        background: #303030 !important;
        border-style: dashed !important;
        opacity: 1 !important;
        cursor: not-allowed;
    }
    html.rg90-contraste :is(table, thead, tbody, tr, th, td) {
        background: #151515 !important;
        color: #fff !important;
        border-color: #bdbdbd !important;
    }
    html.rg90-contraste :is(th, tbody tr:nth-child(even) td) { background: #292929 !important; }
    html.rg90-contraste :is(.alert, .error, .success, .warning, .badge) {
        background: #222 !important;
        color: #fff !important;
        border: 2px solid #bdbdbd !important;
    }
    html.rg90-contraste :is(.alert-danger, .error, .btn-danger) { border-color: #ffaaaa !important; }
    html.rg90-contraste :is(.alert-success, .success, .btn-success) { border-color: #92ffc0 !important; }
    html.rg90-contraste :is(.alert-warning, .warning) { border-color: #ffe66d !important; }
    html.rg90-contraste :focus-visible {
        outline: 3px solid #ffe66d !important;
        outline-offset: 3px !important;
    }
}
@media print {
    #rg90-accesibilidad { display: none !important; }
}
