/*
 * MODO OSCURO de los componentes de Bootstrap 5 / tema Ample.
 * LA hoja global del tema oscuro: si algo se ve blanco o no se lee en
 * oscuro, se corrige AQUÍ (por componente), no con CSS por pantalla.
 *
 * Un solo camino:
 *   1. static/admin/js/tema.js pone <html data-bs-theme="dark|light">
 *      (convención de Bootstrap 5.3).
 *   2. design-tokens.css define la paleta oscura UNA vez, en tokens --sol-*.
 *   3. Esta hoja solo dice QUÉ token usa cada componente. Sin colores
 *      literales (lo vigila config/tests_tema_oscuro.py): si un color se ve
 *      mal, se corrige el token, no esta hoja.
 *
 * Todo va bajo [data-bs-theme="dark"]: el modo claro no cambia en nada.
 * El modo oscuro propio de Ample (body[data-theme=dark]) no se usa: es una
 * paleta fija con !important que no lee los tokens.
 *
 * POR QUÉ LAS REGLAS DE ANTES NO GANABAN (y cómo se escribe aquí):
 *   - Ample es Bootstrap 5.0 COMPILADO: los colores van escritos a fuego en
 *     cada clase y redefinir --bs-* casi no hace nada. Hay que escribir una
 *     regla por clase.
 *   - Las utilidades (.bg-white, .bg-light, .bg-light-*, .bg-primary...,
 *     .text-*) llevan !important en Ample: solo se les gana con !important.
 *   - Las tablas pintan cada celda con var(--bs-table-bg) y .table-light (o
 *     .table-success, etc.) redefine esa variable EN EL thead/tr: pintar el
 *     thead no basta, hay que redefinir la variable en la misma clase.
 *   - outline_buttons_fix.css y billing_forms.css se cargan DESPUÉS de esta
 *     hoja con selectores tipo a.btn-warning:link: el color de texto de los
 *     botones rellenos va con !important para no perder contra ellos.
 *   - Lo que una pantalla pinta con #id en su <style> gana siempre: esas
 *     pantallas leen los tokens (--sol-*) directamente.
 *
 * ISLAS CLARAS: lo que lleva [data-bs-theme="light"] (la hoja del correo del
 * editor de diseños del CRM) y el #printableArea (ticket/factura impresa) se
 * quedan como en claro. Las reglas que tocan piezas que pueden aparecer
 * dentro llevan el sufijo
 *     :where(:not([data-bs-theme="light"] *, #printableArea *))
 * que NO sube la especificidad (:where cuenta 0).
 */

/* ==========================================================================
   0. VARIABLES DE BOOTSTRAP que sí existen en la versión compilada
   ========================================================================== */
[data-bs-theme="dark"] {
  --bs-body-color: var(--sol-ink);
  --bs-body-bg: var(--sol-surface-page);
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: var(--sol-surface-sunken);
  --bs-table-hover-bg: var(--sol-surface-raised);
  --bs-table-striped-color: var(--sol-ink);
  --bs-table-hover-color: var(--sol-ink);
  --bs-table-active-bg: var(--sol-accent-surface);
  --bs-table-active-color: var(--sol-ink);
  color-scheme: dark; /* controles nativos: calendario, scroll, <option> */
}

/* ==========================================================================
   1. PÁGINA Y ESTRUCTURA
   ========================================================================== */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] #main-wrapper,
[data-bs-theme="dark"] .page-wrapper,
[data-bs-theme="dark"] #content {
  background-color: var(--sol-surface-page);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .left-sidebar,
[data-bs-theme="dark"] .topbar .navbar-header {
  background-color: var(--sol-surface-sidebar);
}
/* Los títulos dentro de una isla clara ([data-bs-theme="light"], p. ej. la
   hoja del correo del CRM) conservan su color: es contenido, no interfaz. */
[data-bs-theme="dark"] h1:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] h2:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] h3:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] h4:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] h5:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] h6:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .page-title,
[data-bs-theme="dark"] .card-title:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] label:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .text-dark:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .text-body:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .text-black:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  color: var(--sol-ink) !important; /* Bootstrap marca .text-dark/.text-body con !important */
}
/* Excepciones de la regla anterior: lo que va sobre un fondo CLARO propio
   conserva el texto oscuro. Las citas de la agenda tienen fondo pastel del
   servicio y su texto va dentro de un <label>: con el celular en modo oscuro
   quedaba texto claro sobre pastel, ilegible (Dra. Johanna, 14-nov-2026).
   Lo mismo las pastillas amarillas con .text-dark («Pendiente», «En cocina»).
   OJO: .bg-light y .bg-white NO van aquí: en modo oscuro este tema los
   vuelve superficies oscuras (más abajo), así que su .text-dark debe seguir
   claro; con texto oscuro las pastillas «bg-light text-dark» no se leían. */
[data-bs-theme="dark"] .popover-style label,
[data-bs-theme="dark"] [data-cita-dia] label {
  color: inherit !important;
}
/* (Las pastillas .badge/.span con .bg-warning o .bg-info se tiñen en oscuro
   más abajo y llevan tinta clara: aquí solo los bloques que conservan el
   relleno amarillo/celeste pleno.) */
[data-bs-theme="dark"] .bg-warning.text-dark:not(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6, .badge, .card-header),
[data-bs-theme="dark"] .bg-info.text-dark:not(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6, .badge, .card-header) {
  color: var(--sol-ink-on-light) !important;
}

/* ==========================================================================
   2. TEXTOS: tintas de apoyo y colores de estado aclarados para fondo oscuro
   ========================================================================== */
[data-bs-theme="dark"] .text-muted:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .text-black-50:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .help,
[data-bs-theme="dark"] .helptext,
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .card .card-subtitle {
  color: var(--sol-ink-muted) !important;
}
/* .text-secondary en Ample es el amarillo de la imprenta; quien lo usa en
   las plantillas quiere el gris «secundario» de Bootstrap. */
[data-bs-theme="dark"] .text-secondary:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  color: var(--sol-ink-secondary) !important;
}
/* Colores de estado: los de Ample (#049800, #ff5050, el azul de la imprenta)
   no llegan a 4.5:1 sobre la tarjeta oscura. Mismo tono, versión clara. */
[data-bs-theme="dark"] .text-primary:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-link) !important; }
[data-bs-theme="dark"] .text-info:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-serie-1) !important; }
[data-bs-theme="dark"] .text-success:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-serie-4) !important; }
[data-bs-theme="dark"] .text-warning:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-serie-5) !important; }
[data-bs-theme="dark"] .text-danger:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-serie-6) !important; }
[data-bs-theme="dark"] .text-purple:where(:not([data-bs-theme="light"] *, #printableArea *)) { color: var(--sol-serie-3) !important; }
[data-bs-theme="dark"] .breadcrumb,
[data-bs-theme="dark"] .breadcrumb-item a { background-color: transparent; color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--sol-ink-secondary);
}
[data-bs-theme="dark"] .breadcrumb-item.active { color: var(--sol-link); }

/* ==========================================================================
   3. SUPERFICIES: utilidades de fondo, tarjetas, listas, desplegables,
      ventanas, paneles laterales y globos
   ========================================================================== */
[data-bs-theme="dark"] hr,
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-light {
  border-color: var(--sol-border) !important; /* utilidades de Bootstrap */
}
[data-bs-theme="dark"] .bg-white:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .bg-body:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: var(--sol-surface) !important;
}
[data-bs-theme="dark"] .bg-light:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .bg-light-secondary:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .bg-gray:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: var(--sol-surface-sunken) !important;
  border-color: var(--sol-border) !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .module,
[data-bs-theme="dark"] fieldset,
[data-bs-theme="dark"] .inline-group,
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .accordion-body {
  background-color: var(--sol-surface);
  color: var(--sol-ink);
  border-color: var(--sol-border);
}
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .module h2,
[data-bs-theme="dark"] .inline-group h2,
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink);
  border-color: var(--sol-border);
}
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] .list-group-item {
  background-color: var(--sol-surface);
  border-color: var(--sol-border);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:focus {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .list-group-item.active {
  background-color: var(--sol-accent-surface);
  border-color: var(--sol-accent);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .popover,
[data-bs-theme="dark"] .toast,
[data-bs-theme="dark"] .toast-header,
[data-bs-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .ui-widget-content,
[data-bs-theme="dark"] .swal2-popup {
  background-color: var(--sol-surface-raised);
  color: var(--sol-ink);
  border-color: var(--sol-border-strong);
  box-shadow: var(--sol-shadow-2);
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-body,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .offcanvas-body {
  background-color: transparent;
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .dropdown-divider { border-color: var(--sol-border); }
[data-bs-theme="dark"] .popover-header {
  background-color: var(--sol-surface-sunken);
  border-color: var(--sol-border);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .popover-body { color: var(--sol-ink); }
[data-bs-theme="dark"] .bs-popover-top > .popover-arrow::after,
[data-bs-theme="dark"] .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after { border-top-color: var(--sol-surface-raised); }
[data-bs-theme="dark"] .bs-popover-bottom > .popover-arrow::after,
[data-bs-theme="dark"] .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after { border-bottom-color: var(--sol-surface-raised); }
[data-bs-theme="dark"] .bs-popover-start > .popover-arrow::after,
[data-bs-theme="dark"] .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::after { border-left-color: var(--sol-surface-raised); }
[data-bs-theme="dark"] .bs-popover-end > .popover-arrow::after,
[data-bs-theme="dark"] .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::after { border-right-color: var(--sol-surface-raised); }
[data-bs-theme="dark"] .tooltip-inner { background-color: var(--sol-ink); color: var(--sol-surface); }
[data-bs-theme="dark"] .swal2-title,
[data-bs-theme="dark"] .swal2-html-container,
[data-bs-theme="dark"] .swal2-content { color: var(--sol-ink); }
/* Opciones de menús desplegables, en claro y en oscuro: el tema las pinta con
   el color secundario de la imprenta (amarillo en varias), ilegible sobre
   blanco (1,8:1). Los <a> lo tapaban con el color de enlace; los <button>
   («Modo oscuro») no. Todas toman el color de texto de la plantilla. */
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item-text { color: inherit; } /* el color de texto que la plantilla da a .dropdown-menu (15:1); .dropdown-menu gana al a:link de Django (4,46:1). En oscuro manda la regla de abajo. */
[data-bs-theme="dark"] .dropdown-item { color: var(--sol-ink); }
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .dropdown-item.active,
[data-bs-theme="dark"] .dropdown-item:active {
  background-color: var(--sol-accent-surface);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .dropdown-header { color: var(--sol-ink-muted); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] .progress { background-color: var(--sol-surface-sunken); }

/* ==========================================================================
   4. TABLAS (Bootstrap y las de Django: #result_list, inlines, reportes)
   Cada celda se pinta con var(--bs-table-bg) de su thead/tr: por eso las
   variantes (.table-light, .table-success...) redefinen la VARIABLE.
   ========================================================================== */
[data-bs-theme="dark"] .table:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] table:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  color: var(--sol-ink);
  border-color: var(--sol-border);
}
[data-bs-theme="dark"] .table > :not(caption) > * > *:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] table td:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] table th:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  border-color: var(--sol-border-subtle);
}
[data-bs-theme="dark"] table thead th:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] tfoot td:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink-secondary);
}
[data-bs-theme="dark"] .table-light:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .thead-light:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .table-light > *:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .thead-light th:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  --bs-table-bg: var(--sol-surface-sunken);
  --bs-table-striped-bg: var(--sol-surface-raised);
  --bs-table-hover-bg: var(--sol-surface-raised);
  --bs-table-active-bg: var(--sol-surface-raised);
  --bs-table-striped-color: var(--sol-ink);
  --bs-table-hover-color: var(--sol-ink);
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink-secondary);
  border-color: var(--sol-border);
}
[data-bs-theme="dark"] .table-dark:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  --bs-table-bg: var(--sol-surface-sidebar);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .table-active { --bs-table-accent-bg: var(--sol-accent-surface); color: var(--sol-ink); }
/* Filas de color de estado: superficie tintada oscura + tinta principal */
[data-bs-theme="dark"] .table-primary { --bs-table-bg: var(--sol-accent-surface); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-info { --bs-table-bg: color-mix(in srgb, var(--sol-serie-1) 16%, var(--sol-surface)); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-success { --bs-table-bg: color-mix(in srgb, var(--sol-serie-4) 16%, var(--sol-surface)); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-warning { --bs-table-bg: color-mix(in srgb, var(--sol-serie-5) 16%, var(--sol-surface)); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-danger { --bs-table-bg: color-mix(in srgb, var(--sol-serie-6) 16%, var(--sol-surface)); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-secondary { --bs-table-bg: var(--sol-surface-raised); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) { --bs-table-accent-bg: var(--sol-surface-sunken); color: var(--sol-ink); }
[data-bs-theme="dark"] .table-hover > tbody > tr:hover { --bs-table-accent-bg: var(--sol-surface-raised); color: var(--sol-ink); }
[data-bs-theme="dark"] .fixed-table-container,
[data-bs-theme="dark"] .bootstrap-table .fixed-table-toolbar { border-color: var(--sol-border); }

/* ==========================================================================
   5. FORMULARIOS: un escalón más claros que la tarjeta y con borde visible
   ========================================================================== */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):not([type=range]):not([type=color]),
[data-bs-theme="dark"] select,
[data-bs-theme="dark"] textarea,
[data-bs-theme="dark"] .select2-container .select2-selection,
[data-bs-theme="dark"] .select2-search__field {
  background-color: var(--sol-field);
  color: var(--sol-ink);
  border-color: var(--sol-border-strong);
}
[data-bs-theme="dark"] input[type=file],
[data-bs-theme="dark"] .form-control[type=file] { color: var(--sol-ink); }
[data-bs-theme="dark"] input[type=file]::file-selector-button {
  background-color: var(--sol-surface-raised);
  color: var(--sol-ink);
  border-color: var(--sol-border-strong);
}
/* Flecha del select: Ample usa un PNG gris oscuro que desaparece sobre el
   campo oscuro. Se dibuja con dos degradados del color de la tinta. */
[data-bs-theme="dark"] .form-select:not([multiple]):not([size]),
[data-bs-theme="dark"] select.custom-select:not([multiple]):not([size]) {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sol-ink-secondary) 50%),
    linear-gradient(135deg, var(--sol-ink-secondary) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
[data-bs-theme="dark"] option,
[data-bs-theme="dark"] optgroup { background-color: var(--sol-surface-raised); color: var(--sol-ink); }
/* Fecha/hora/número: icono del calendario y flechitas en claro */
[data-bs-theme="dark"] input[type=date],
[data-bs-theme="dark"] input[type=datetime-local],
[data-bs-theme="dark"] input[type=time],
[data-bs-theme="dark"] input[type=month],
[data-bs-theme="dark"] input[type=week],
[data-bs-theme="dark"] input[type=number] { color-scheme: dark; }
/* El icono del calendario no siempre sigue a color-scheme (Chrome sin
   aceleración, algunos Edge): se fuerza a negro y se invierte a gris claro,
   así sale igual, parta del color que parta. */
[data-bs-theme="dark"] input::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(0.85);
  opacity: 1;
}
[data-bs-theme="dark"] .input-group-text {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink-secondary);
  border-color: var(--sol-border-strong);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] input:focus,
[data-bs-theme="dark"] select:focus,
[data-bs-theme="dark"] textarea:focus {
  background-color: var(--sol-field);
  color: var(--sol-ink);
  border-color: var(--sol-accent);
  box-shadow: var(--sol-shadow-focus);
}
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] .form-select:disabled,
[data-bs-theme="dark"] input:disabled,
[data-bs-theme="dark"] select:disabled,
[data-bs-theme="dark"] textarea:disabled,
[data-bs-theme="dark"] .select2-container--disabled .select2-selection {
  background-color: var(--sol-surface-sunken);
  color: var(--sol-ink-muted);
}
[data-bs-theme="dark"] ::placeholder { color: var(--sol-ink-muted); opacity: 1; }
[data-bs-theme="dark"] .form-check-input {
  background-color: var(--sol-field);
  border-color: var(--sol-border-strong);
}
[data-bs-theme="dark"] .form-check-input:checked {
  background-color: var(--sol-accent);
  border-color: var(--sol-accent);
}
[data-bs-theme="dark"] .form-check-label { color: var(--sol-ink); }
/* select2: todas las piezas (caja, texto, flecha, etiquetas, resultados) */
[data-bs-theme="dark"] .select2-container .select2-selection__rendered { color: var(--sol-ink); }
[data-bs-theme="dark"] .select2-container .select2-selection__placeholder { color: var(--sol-ink-muted); }
[data-bs-theme="dark"] .select2-container .select2-selection__arrow b { border-top-color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .select2-container--open .select2-selection__arrow b { border-bottom-color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: var(--sol-accent-surface);
  border-color: var(--sol-border-strong);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .select2-container .select2-selection__choice__remove,
[data-bs-theme="dark"] .select2-container .select2-selection__clear { color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .select2-dropdown .select2-search--dropdown .select2-search__field { background-color: var(--sol-field); color: var(--sol-ink); border-color: var(--sol-border-strong); }
[data-bs-theme="dark"] .select2-results__option { color: var(--sol-ink); }
[data-bs-theme="dark"] .select2-results__option[aria-selected=true],
[data-bs-theme="dark"] .select2-results__option--selected { background-color: var(--sol-surface-sunken); color: var(--sol-ink); }
[data-bs-theme="dark"] .select2-results__option--highlighted {
  background-color: var(--sol-accent-surface) !important; /* select2 lo fija inline */
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .select2-results__group { color: var(--sol-ink-muted); }

/* ==========================================================================
   6. BOTONES
   ========================================================================== */
/* 6a. Claros (btn-light, btn-white, outline-secondary): superficie elevada */
[data-bs-theme="dark"] .btn-light:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .btn-white:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .btn-default:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .btn-outline-secondary:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .btn-outline-light:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .btn-outline-dark:where(:not([data-bs-theme="light"] *)) {
  background-color: var(--sol-surface-raised);
  border-color: var(--sol-border-strong);
  color: var(--sol-ink) !important; /* outline_buttons_fix.css va después */
}
[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-white:hover,
[data-bs-theme="dark"] .btn-default:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-light:hover,
[data-bs-theme="dark"] .btn-outline-dark:hover,
[data-bs-theme="dark"] .btn-light.active,
[data-bs-theme="dark"] .btn-outline-secondary.active,
[data-bs-theme="dark"] .btn-outline-dark.active {
  background-color: var(--sol-border-strong);
  color: var(--sol-ink);
}
/* 6b. Rellenos de color: en oscuro, superficie tintada (30 % del tono sobre
   la tarjeta) + tinta clara. Con el tono a pleno y texto blanco quedaban
   entre 1.5:1 (amarillo) y 3.8:1 (verde). El 30 % garantiza ≥4.5:1 con
   cualquier color de imprenta (--primary-color / --secondary-color). */
[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .card-header.bg-primary,
[data-bs-theme="dark"] .page-item.active .page-link,
[data-bs-theme="dark"] .nav-pills .nav-link.active,
[data-bs-theme="dark"] .nav-pills .show > .nav-link,
[data-bs-theme="dark"] .bg-primary:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--primary-color) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--primary-color) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-secondary:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-secondary,
[data-bs-theme="dark"] .card-header.bg-secondary,
[data-bs-theme="dark"] .bg-secondary:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--secondary-color) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--secondary-color) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-info:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-info,
[data-bs-theme="dark"] .card-header.bg-info,
[data-bs-theme="dark"] .bg-info:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-1) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-1) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-success:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-success,
[data-bs-theme="dark"] .card-header.bg-success,
[data-bs-theme="dark"] .bg-success:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-4) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-4) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-warning:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-warning,
[data-bs-theme="dark"] .card-header.bg-warning,
[data-bs-theme="dark"] .bg-warning:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-5) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-5) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-danger:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-danger,
[data-bs-theme="dark"] .card-header.bg-danger,
[data-bs-theme="dark"] .bg-danger:where(a, span, button, label, li, td, th, small, strong, p, h1, h2, h3, h4, h5, h6):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-6) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-6) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-purple:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-purple,
[data-bs-theme="dark"] .bg-purple:where(a, span, button, label, li, td, th, small, strong, p):where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-3) 30%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-3) 60%, var(--sol-surface)) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .btn-dark:where(:not([data-bs-theme="light"] *)),
[data-bs-theme="dark"] .badge.bg-dark {
  background-color: var(--sol-surface-sidebar) !important;
  border-color: var(--sol-border-strong) !important;
  color: var(--sol-ink) !important;
}
/* 6a'. Botón principal: en oscuro va RELLENO con el acento claro y tinta
   oscura (≈7:1). Con el tinte del 30 % de un color de imprenta oscuro (azul
   marino) quedaba casi igual que la tarjeta y no se distinguía de «Cancelar»
   ni de los botones claros: la acción principal dejaba de verse. */
[data-bs-theme="dark"] .btn-primary:where(:not([data-bs-theme="light"] *)) {
  background-color: var(--sol-accent) !important;
  border-color: var(--sol-accent) !important;
  color: var(--sol-accent-ink) !important;
}
/* Al pasar el ratón: el tinte sube un escalón */
[data-bs-theme="dark"] .btn-primary:hover { background-color: color-mix(in srgb, var(--sol-accent) 85%, var(--sol-ink)) !important; }
[data-bs-theme="dark"] .btn-secondary:hover { background-color: color-mix(in srgb, var(--secondary-color) 42%, var(--sol-surface)) !important; }
[data-bs-theme="dark"] .btn-info:hover { background-color: color-mix(in srgb, var(--sol-serie-1) 42%, var(--sol-surface)) !important; }
[data-bs-theme="dark"] .btn-success:hover { background-color: color-mix(in srgb, var(--sol-serie-4) 42%, var(--sol-surface)) !important; }
[data-bs-theme="dark"] .btn-warning:hover { background-color: color-mix(in srgb, var(--sol-serie-5) 42%, var(--sol-surface)) !important; }
[data-bs-theme="dark"] .btn-danger:hover { background-color: color-mix(in srgb, var(--sol-serie-6) 42%, var(--sol-surface)) !important; }
/* 6c. Contorno de color: borde y texto en el tono claro */
[data-bs-theme="dark"] .btn-outline-primary:where(:not([data-bs-theme="light"] *)) { color: var(--sol-link) !important; border-color: var(--sol-link); background-color: transparent; }
[data-bs-theme="dark"] .btn-outline-info:where(:not([data-bs-theme="light"] *)) { color: var(--sol-serie-1) !important; border-color: var(--sol-serie-1); background-color: transparent; }
[data-bs-theme="dark"] .btn-outline-success:where(:not([data-bs-theme="light"] *)) { color: var(--sol-serie-4) !important; border-color: var(--sol-serie-4); background-color: transparent; }
[data-bs-theme="dark"] .btn-outline-warning:where(:not([data-bs-theme="light"] *)) { color: var(--sol-serie-5) !important; border-color: var(--sol-serie-5); background-color: transparent; }
[data-bs-theme="dark"] .btn-outline-danger:where(:not([data-bs-theme="light"] *)) { color: var(--sol-serie-6) !important; border-color: var(--sol-serie-6); background-color: transparent; }
[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary.active { background-color: color-mix(in srgb, var(--sol-link) 22%, var(--sol-surface)); color: var(--sol-ink) !important; }
[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info.active { background-color: color-mix(in srgb, var(--sol-serie-1) 22%, var(--sol-surface)); color: var(--sol-ink) !important; }
[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success.active { background-color: color-mix(in srgb, var(--sol-serie-4) 22%, var(--sol-surface)); color: var(--sol-ink) !important; }
[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning.active { background-color: color-mix(in srgb, var(--sol-serie-5) 22%, var(--sol-surface)); color: var(--sol-ink) !important; }
[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger.active { background-color: color-mix(in srgb, var(--sol-serie-6) 22%, var(--sol-surface)); color: var(--sol-ink) !important; }
/* 6d. Grupos de botones con opción marcada (btn-check / .active) */
[data-bs-theme="dark"] .btn-check:checked + .btn,
[data-bs-theme="dark"] .btn-group > .btn.active {
  background-color: var(--sol-accent-surface);
  border-color: var(--sol-accent);
  color: var(--sol-ink) !important;
}
/* 6e. Botones claros de color de Ample (btn-light-primary...): igual que
   las pastillas bg-light-* de abajo. */
[data-bs-theme="dark"] .btn-light-primary { background-color: color-mix(in srgb, var(--sol-link) 18%, var(--sol-surface)); border-color: color-mix(in srgb, var(--sol-link) 35%, var(--sol-surface)); color: var(--sol-link) !important; }
[data-bs-theme="dark"] .btn-light-info { background-color: color-mix(in srgb, var(--sol-serie-1) 18%, var(--sol-surface)); border-color: color-mix(in srgb, var(--sol-serie-1) 35%, var(--sol-surface)); color: var(--sol-serie-1) !important; }
[data-bs-theme="dark"] .btn-light-success { background-color: color-mix(in srgb, var(--sol-serie-4) 18%, var(--sol-surface)); border-color: color-mix(in srgb, var(--sol-serie-4) 35%, var(--sol-surface)); color: var(--sol-serie-4) !important; }
[data-bs-theme="dark"] .btn-light-warning { background-color: color-mix(in srgb, var(--sol-serie-5) 18%, var(--sol-surface)); border-color: color-mix(in srgb, var(--sol-serie-5) 35%, var(--sol-surface)); color: var(--sol-serie-5) !important; }
[data-bs-theme="dark"] .btn-light-danger { background-color: color-mix(in srgb, var(--sol-serie-6) 18%, var(--sol-surface)); border-color: color-mix(in srgb, var(--sol-serie-6) 35%, var(--sol-surface)); color: var(--sol-serie-6) !important; }
[data-bs-theme="dark"] .btn-light-secondary { background-color: var(--sol-surface-raised); border-color: var(--sol-border-strong); color: var(--sol-ink) !important; }

/* ==========================================================================
   7. PASTILLAS, MOSAICOS Y AVISOS DE COLOR CLARO (bg-light-*, alert-light-*)
   Ample los pinta pastel con !important: en oscuro eran bloques blancos.
   Superficie tintada oscura (18 % del tono) + texto en el tono claro; los
   textos .text-* y .text-dark de adentro también pasan al tono claro.
   ========================================================================== */
[data-bs-theme="dark"] .bg-light-primary:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .alert-light-primary {
  background-color: color-mix(in srgb, var(--sol-link) 18%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-link) 35%, var(--sol-surface)) !important;
  color: var(--sol-link);
}
[data-bs-theme="dark"] .bg-light-info:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .alert-light-info {
  background-color: color-mix(in srgb, var(--sol-serie-1) 18%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-1) 35%, var(--sol-surface)) !important;
  color: var(--sol-serie-1);
}
[data-bs-theme="dark"] .bg-light-success:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .alert-light-success {
  background-color: color-mix(in srgb, var(--sol-serie-4) 18%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-4) 35%, var(--sol-surface)) !important;
  color: var(--sol-serie-4);
}
[data-bs-theme="dark"] .bg-light-warning:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .alert-light-warning {
  background-color: color-mix(in srgb, var(--sol-serie-5) 18%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-5) 35%, var(--sol-surface)) !important;
  color: var(--sol-serie-5);
}
[data-bs-theme="dark"] .bg-light-danger:where(:not([data-bs-theme="light"] *, #printableArea *)),
[data-bs-theme="dark"] .alert-light-danger {
  background-color: color-mix(in srgb, var(--sol-serie-6) 18%, var(--sol-surface)) !important;
  border-color: color-mix(in srgb, var(--sol-serie-6) 35%, var(--sol-surface)) !important;
  color: var(--sol-serie-6);
}
[data-bs-theme="dark"] .bg-light-purple:where(:not([data-bs-theme="light"] *, #printableArea *)) {
  background-color: color-mix(in srgb, var(--sol-serie-3) 18%, var(--sol-surface)) !important;
  color: var(--sol-serie-3);
}
/* Texto oscuro dentro de un mosaico tintado: pasa a tinta clara */
[data-bs-theme="dark"] [class*="bg-light-"] .text-dark,
[data-bs-theme="dark"] [class*="bg-light-"].text-dark { color: var(--sol-ink) !important; }

/* ==========================================================================
   8. AVISOS (alert-*)
   ========================================================================== */
[data-bs-theme="dark"] .alert-light,
[data-bs-theme="dark"] .alert-secondary,
[data-bs-theme="dark"] .alert-dark { background-color: var(--sol-surface-sunken); border-color: var(--sol-border); color: var(--sol-ink); }
[data-bs-theme="dark"] .alert-primary,
[data-bs-theme="dark"] .alert-info { background-color: var(--sol-accent-surface); border-color: var(--sol-accent); color: var(--sol-ink); }
[data-bs-theme="dark"] .alert-warning { background-color: var(--sol-warn-surface); border-color: var(--sol-warn); color: var(--sol-ink); }
[data-bs-theme="dark"] .alert-danger { background-color: var(--sol-alert-surface); border-color: var(--sol-alert); color: var(--sol-ink); }
[data-bs-theme="dark"] .alert-success { background-color: var(--sol-state-ok-surface); border-color: var(--sol-state-ok); color: var(--sol-ink); }
[data-bs-theme="dark"] .alert .alert-link { color: var(--sol-link); }

/* ==========================================================================
   9. PAGINACIÓN Y PESTAÑAS
   ========================================================================== */
[data-bs-theme="dark"] .page-link { background-color: var(--sol-surface); border-color: var(--sol-border); color: var(--sol-link); }
[data-bs-theme="dark"] .page-link:hover { background-color: var(--sol-surface-sunken); color: var(--sol-link-hover); }
[data-bs-theme="dark"] .page-item.disabled .page-link { background-color: var(--sol-surface-sunken); color: var(--sol-ink-muted); }
[data-bs-theme="dark"] .nav-tabs { border-color: var(--sol-border); }
[data-bs-theme="dark"] .nav-tabs .nav-link { color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .nav-tabs .nav-link:hover { border-color: var(--sol-border); color: var(--sol-ink); }
[data-bs-theme="dark"] .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .nav-tabs .nav-item.show .nav-link {
  background-color: var(--sol-surface);
  border-color: var(--sol-border) var(--sol-border) var(--sol-surface);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) { color: var(--sol-ink-secondary); }
[data-bs-theme="dark"] .nav-pills.custom-pills .nav-link.active { background-color: transparent !important; color: var(--sol-link) !important; }

/* ==========================================================================
   10. GRÁFICOS (ApexCharts es SVG: se repinta con CSS al cambiar de tema;
       Chart.js dibuja en <canvas>: lo ajusta static/admin/js/graficos_tema.js)
   ========================================================================== */
[data-bs-theme="dark"] .apexcharts-text,
[data-bs-theme="dark"] .apexcharts-text tspan,
[data-bs-theme="dark"] .apexcharts-xaxis-label,
[data-bs-theme="dark"] .apexcharts-yaxis-label { fill: var(--sol-ink-muted); }
[data-bs-theme="dark"] .apexcharts-title-text,
[data-bs-theme="dark"] .apexcharts-subtitle-text,
[data-bs-theme="dark"] .apexcharts-xaxis-title-text,
[data-bs-theme="dark"] .apexcharts-yaxis-title-text,
[data-bs-theme="dark"] .apexcharts-datalabels-group .apexcharts-datalabel-label,
[data-bs-theme="dark"] .apexcharts-datalabels-group .apexcharts-datalabel-value { fill: var(--sol-ink); }
[data-bs-theme="dark"] .apexcharts-legend-text { color: var(--sol-ink-secondary) !important; /* Apex lo fija inline */ }
[data-bs-theme="dark"] .apexcharts-gridline,
[data-bs-theme="dark"] .apexcharts-xaxis line,
[data-bs-theme="dark"] .apexcharts-xaxis-tick,
[data-bs-theme="dark"] .apexcharts-yaxis line,
[data-bs-theme="dark"] .apexcharts-grid-borders line { stroke: var(--sol-border); }
[data-bs-theme="dark"] .apexcharts-tooltip,
[data-bs-theme="dark"] .apexcharts-tooltip.apexcharts-theme-light,
[data-bs-theme="dark"] .apexcharts-xaxistooltip,
[data-bs-theme="dark"] .apexcharts-menu {
  background: var(--sol-surface-raised) !important;
  border-color: var(--sol-border-strong) !important;
  color: var(--sol-ink) !important;
}
[data-bs-theme="dark"] .apexcharts-tooltip .apexcharts-tooltip-title {
  background: var(--sol-surface-sunken) !important;
  border-color: var(--sol-border) !important;
}
[data-bs-theme="dark"] .apexcharts-menu-item:hover { background: var(--sol-surface-sunken); }

/* ==========================================================================
   11. CALENDARIOS (jQuery UI datepicker y FullCalendar)
   ========================================================================== */
[data-bs-theme="dark"] .ui-datepicker,
[data-bs-theme="dark"] .ui-datepicker-header,
[data-bs-theme="dark"] .fc-unthemed td,
[data-bs-theme="dark"] .fc-unthemed th {
  background-color: var(--sol-surface);
  border-color: var(--sol-border);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .ui-state-default,
[data-bs-theme="dark"] .ui-widget-content .ui-state-default {
  background: var(--sol-surface-sunken);
  border-color: var(--sol-border);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .ui-menu-item-wrapper.ui-state-active,
[data-bs-theme="dark"] .ui-state-active,
[data-bs-theme="dark"] .ui-widget-content .ui-state-active {
  background: var(--sol-accent-surface);
  border-color: var(--sol-accent);
  color: var(--sol-ink);
}
[data-bs-theme="dark"] .fc-unthemed td.fc-today { background-color: var(--sol-accent-surface); }

/* ==========================================================================
   12. MENÚ LATERAL. La piel oscura de Ample (skin5) deja los enlaces al 40 %
   de opacidad: el texto quedaba casi invisible. Aquí se leen con los tokens
   de tinta: secundaria en reposo y principal en la sección abierta o la
   pantalla actual.
   ========================================================================== */
[data-bs-theme="dark"] .left-sidebar,
[data-bs-theme="dark"] .left-sidebar ul {
  background-color: var(--sol-surface-sidebar) !important; /* Ample fija la piel */
}
[data-bs-theme="dark"] .left-sidebar .sidebar-item .sidebar-link {
  opacity: 1 !important; /* anula el .4 de la piel skin5 */
  color: var(--sol-ink-secondary) !important;
}
[data-bs-theme="dark"] .left-sidebar .sidebar-item .sidebar-link:hover,
[data-bs-theme="dark"] .left-sidebar .sidebar-item.selected > .sidebar-link,
[data-bs-theme="dark"] .left-sidebar .sidebar-item .sidebar-link.active {
  color: var(--sol-ink) !important;
  background-color: var(--sol-surface-raised) !important;
}
[data-bs-theme="dark"] .left-sidebar .sidebar-link .hide-menu > span[class*="ph-"],
[data-bs-theme="dark"] .left-sidebar .sidebar-link i {
  color: inherit;
  opacity: 1;
}
[data-bs-theme="dark"] #main-wrapper .left-sidebar .sidebar-nav .sidebar-item > .sidebar-link.has-arrow::after {
  border-color: var(--sol-ink-muted) !important; /* sidebar_menu.css la fija gris oscuro */
}
[data-bs-theme="dark"] #sidebarnav li li .badge {
  background: var(--sol-accent-surface) !important; /* sidebar_menu.css la fija clara */
  color: var(--sol-link) !important;
}

/* Iconos 3D de módulo (menú, inicio, índice de cada módulo, panel de la
   parroquia): versión clara y versión `<icono>_oscuro.png`; se ve una u otra
   según el tema. Ver templates/admin/includes/icono_modulo.html. */
.icono-oscuro { display: none !important; }
[data-bs-theme="dark"] .icono-claro { display: none !important; }
[data-bs-theme="dark"] .icono-oscuro { display: inline-block !important; }
