/*
 * Texto en negro.
 *
 * El tema base (style.css) pinta buena parte del texto en gris:
 *   .text-muted -> #89879f    .table y enlaces -> #7e7e7e
 *   .breadcrumb-item.active -> #6c757d
 *
 * Esta hoja se carga despues del tema y devuelve ese texto a negro.
 * No toca botones, badges, alertas ni las clases de color (.text-primary,
 * .text-danger, etc.), que llevan su color a proposito.
 */

:root {
    --bs-body-color: #000;
}

body {
    color: #000;
}

/* Texto de apoyo: es el gris mas frecuente en las pantallas */
.text-muted,
small.text-muted,
small,
.form-text,
.figure-caption,
.help-block {
    color: #000 !important;
}

/* Formularios */
label,
.form-label,
.col-form-label,
.form-check-label {
    color: #000;
}

/* Tablas y DataTables */
.table,
.table > :not(caption) > * > *,
.table td,
.table th,
.dataTables_wrapper,
.dataTables_info,
.dataTables_length,
.dataTables_length label,
.dataTables_filter,
.dataTables_filter label {
    color: #000;
}

/* Migas de pan */
.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item a {
    color: #000;
}

/* Menu lateral */
.deznav .metismenu > li > a,
.deznav .metismenu ul a,
.nav-text {
    color: #000;
}

/* Encabezado y tarjetas */
.card-title,
.card-text,
.header-info span,
.header-info p {
    color: #000;
}

/* Combos select2 y bootstrap-select */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-results__option,
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: #000;
}

/* Parrafos y listas de contenido */
.content-body p,
.content-body li,
.content-body dd,
.content-body dt {
    color: #000;
}

/*
 * Lo que conserva su color: componentes cuyo tono es intencional.
 * Se declara al final para que gane a las reglas de arriba.
 */

/* Botones, etiquetas y alertas heredan el color de su componente */
.btn > *,
.badge > *,
.alert > * {
    color: inherit;
}

/* Las clases de color de Bootstrap mantienen el suyo */
.text-primary, .text-primary * { color: var(--bs-primary) !important; }
.text-secondary, .text-secondary * { color: var(--bs-secondary) !important; }
.text-success, .text-success * { color: var(--bs-success) !important; }
.text-danger, .text-danger * { color: var(--bs-danger) !important; }
.text-warning, .text-warning * { color: var(--bs-warning) !important; }
.text-info, .text-info * { color: var(--bs-info) !important; }
.text-white, .text-white * { color: #fff !important; }
