/* Tema administrativo. Sólo presentación; las reglas claras no afectan al oscuro. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --admin-surface: #fff;
  --admin-hover: #eff6ff;
  --admin-selected: #dbeafe;
  --admin-text: #172033;
  --admin-muted: #526176;
  --admin-border: #d5dde7;
  --admin-success-ink: #166534;
  --admin-success-soft: #f0fdf4;
  --admin-danger-ink: #b91c1c;
  --admin-warning-ink: #854d0e;
  --admin-info-ink: #075985;
  --admin-primary-ink: #1d4ed8;
  --admin-purple-ink: #6f42c1;
  --dm-bg-card: #fff;
  --dm-bg-header: #fff;
  --dm-bg-hover: #eff6ff;
  --dm-bg-table-hd: #fff;
  --dm-bg-row-alt: #fff;
  --dm-bg-row-hov: #eff6ff;
  --dm-border: #d5dde7;
  --dm-text: #172033;
  --dm-text-strong: #172033;
  --dm-text-muted: #526176;
  --dm-input-bg: #fff;
  --dm-accent: #854d0e;
}
html[data-theme="light"] .ops-ui {
  --ops-bg: #fff;
  --ops-panel: #fff;
  --ops-panel-soft: #fff;
  --ops-border: #d5dde7;
  --ops-text: #172033;
  --ops-muted: #526176;
  --ops-subtle: #526176;
  --ops-primary: #2563eb;
  --ops-primary-light: #1d4ed8;
}
.admin-theme-control { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .5rem; }
.admin-theme-select { font: inherit; font-size: .85rem; min-height: 34px; padding: .2rem .4rem; border-radius: 5px; border: 1px solid #6c757d; background: #343a40; color: #fff; }
.admin-theme-select:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.admin-theme-access { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
html[data-theme="light"] .admin-theme-select { background: #fff; color: #172033; border-color: #526176; }
html[data-theme="light"] body,
html[data-theme="light"] .wrapper,
html[data-theme="light"] .content-wrapper,
html[data-theme="light"] .main-header,
html[data-theme="light"] .main-sidebar,
html[data-theme="light"] .main-footer,
html[data-theme="light"] .login-page { background-color: #fff; color: #172033; }
html[data-theme="light"] .main-header,
html[data-theme="light"] .main-footer,
html[data-theme="light"] .main-sidebar .brand-link,
html[data-theme="light"] .main-sidebar .user-panel { border-color: #d5dde7; }
html[data-theme="light"] .main-sidebar { box-shadow: 2px 0 10px rgba(23,32,51,.08) !important; }
html[data-theme="light"] .main-sidebar .brand-link,
html[data-theme="light"] .main-sidebar .user-panel a,
html[data-theme="light"] .main-sidebar .nav-link,
html[data-theme="light"] .main-header .nav-link,
html[data-theme="light"] .main-sidebar #option { color: #172033; }
html[data-theme="light"] .main-sidebar .nav-link:hover,
html[data-theme="light"] .main-sidebar .menu-open > .nav-link { background: #eff6ff; }
html[data-theme="light"] .main-sidebar .nav-link.active { background: #2563eb; color: #fff; }
html[data-theme="light"] .main-sidebar .nav-link.active #option,
html[data-theme="light"] .main-sidebar .nav-link.active .nav-icon { color: #fff; }
html[data-theme="light"] .card,
html[data-theme="light"] .info-box,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .dropdown-menu,
html[data-theme="light"] .list-group-item { background-color: #fff; color: #172033; border-color: #d5dde7; }
html[data-theme="light"] .card { box-shadow: 0 3px 14px rgba(23,32,51,.07); }
html[data-theme="light"] .card-header,
html[data-theme="light"] .card-footer,
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-footer { border-color: #d5dde7; }
html[data-theme="light"] .form-control,
html[data-theme="light"] .custom-select,
html[data-theme="light"] .input-group-text,
html[data-theme="light"] .custom-file-label,
html[data-theme="light"] .swal2-input,
html[data-theme="light"] .swal2-textarea,
html[data-theme="light"] .swal2-select { background-color: #fff; color: #172033; border-color: #8492a6; }
html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] .swal2-input::placeholder,
html[data-theme="light"] .swal2-textarea::placeholder { color: #526176; opacity: 1; }
html[data-theme="light"] .form-control:disabled,
html[data-theme="light"] .form-control[readonly],
html[data-theme="light"] .custom-select:disabled { background-color: #f8fafc; color: #526176; }
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .custom-select:focus { border-color: #2563eb; box-shadow: 0 0 0 .15rem rgba(37,99,235,.18); }
html[data-theme="light"] .form-control.is-invalid { border-color: #b91c1c; }
html[data-theme="light"] .form-control.is-valid { border-color: #166534; }
html[data-theme="light"] .table { color: #172033; background-color: #fff; }
html[data-theme="light"] .table td,
html[data-theme="light"] .table th { border-color: #d5dde7; }
html[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) { background-color: #fff; }
html[data-theme="light"] .table-hover tbody tr:hover { background-color: #eff6ff; color: #172033; }
html[data-theme="light"] .table .thead-dark th,
html[data-theme="light"] .table-dark { background: #fff; color: #172033; border-color: #d5dde7; }
html[data-theme="light"] table.dataTable tbody tr.selected,
html[data-theme="light"] .checked-row,
html[data-theme="light"] .cambio-background { background-color: #dbeafe !important; color: #172033 !important; }
html[data-theme="light"] .text-muted { color: #526176 !important; }
html[data-theme="light"] .text-warning { color: #854d0e !important; }
html[data-theme="light"] .text-success { color: #166534 !important; }
html[data-theme="light"] .text-danger { color: #b91c1c !important; }
html[data-theme="light"] .text-info { color: #075985 !important; }
html[data-theme="light"] .text-primary { color: #1d4ed8 !important; }
html[data-theme="light"] .text-secondary { color: #526176 !important; }
html[data-theme="light"] .close { color: #172033; text-shadow: none; }
html[data-theme="light"] .dropdown-item { color: #172033; }
html[data-theme="light"] .dropdown-item:hover,
html[data-theme="light"] .dropdown-item:focus { background-color: #eff6ff; color: #172033; }
html[data-theme="light"] .page-link { background: #fff; border-color: #d5dde7; color: #1d4ed8; }
html[data-theme="light"] .page-item.active .page-link { background: #2563eb; color: #fff; }
html[data-theme="light"] .page-item.disabled .page-link { background: #fff; color: #526176; }
html[data-theme="light"] .nav-tabs .nav-link { color: #526176; }
html[data-theme="light"] .nav-tabs .nav-link.active { color: #172033; background: #fff; border-color: #d5dde7 #d5dde7 #fff; }
html[data-theme="light"] .swal2-popup { background: #fff !important; color: #172033 !important; border: 1px solid #d5dde7; }
html[data-theme="light"] .swal2-title,
html[data-theme="light"] .swal2-html-container,
html[data-theme="light"] .swal2-footer,
html[data-theme="light"] .swal2-close { color: #172033; }
html[data-theme="light"] .swal2-validation-message { color: #b91c1c; background: #fef2f2; }
html[data-theme="light"] .swal2-loader { border-color: #2563eb transparent #2563eb transparent; }
html[data-theme="light"] .select2-container .select2-selection,
html[data-theme="light"] .select2-container .select2-dropdown,
html[data-theme="light"] .select2-search__field { background: #fff !important; color: #172033 !important; border-color: #8492a6 !important; }
html[data-theme="light"] .select2-container .select2-selection__rendered,
html[data-theme="light"] .select2-container .select2-results__option,
html[data-theme="light"] .select2-container .select2-results__message { background-color: #fff !important; color: #172033 !important; }
html[data-theme="light"] .select2-container .select2-selection__placeholder { color: #526176 !important; }
html[data-theme="light"] .select2-container .select2-results__option[aria-selected="true"],
html[data-theme="light"] .select2-container .select2-results__option--highlighted { background: #dbeafe !important; color: #172033 !important; }
html[data-theme="light"] .select2-container .select2-selection__choice { background: #eff6ff !important; color: #172033 !important; border-color: #a3afbf !important; }
html[data-theme="light"] .select2-container .select2-selection__arrow b { border-top-color: #526176 !important; border-bottom-color: #526176 !important; }
html[data-theme="light"] .select2-container--disabled .select2-selection { background: #f8fafc !important; }
html[data-theme="light"] .select2-container--focus .select2-selection { outline: 2px solid #2563eb; outline-offset: 1px; }
html[data-theme="light"] .admin-offline h1 { color: #172033; }
html[data-theme="light"] .admin-offline p,
html[data-theme="light"] .admin-offline .status { color: #526176; }
@media print { .admin-theme-control, .admin-theme-access { display: none !important; } }

/* Adaptación de public/css/caballos/modales_hipica.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .swal2-popup.mh-modal { background: var(--admin-surface, #343a40); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1)); color: var(--admin-text, #e9ecef); }
html[data-theme="light"] .mh-modal .swal2-title { background: var(--admin-surface, #3f474e); border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1)); color: var(--admin-text, #fff); }
html[data-theme="light"] .mh-subtitulo { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-subtitulo .mh-subtitulo-extra { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .mh-panel { background: var(--admin-surface, #3f474e); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08)); }
html[data-theme="light"] .mh-panel-titulo { color: var(--admin-warning-ink, #ffc107); }
html[data-theme="light"] .mh-seccion { border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1)); }
html[data-theme="light"] .mh-tabla thead th { background: var(--admin-surface, rgba(0, 0, 0, 0.2)); color: var(--admin-text, #dee2e6); }
html[data-theme="light"] .mh-tabla tbody td { border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.06)); color: var(--admin-text, #dee2e6); }
html[data-theme="light"] .mh-tabla tfoot td { border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.15)); color: var(--admin-text, #dee2e6); }
html[data-theme="light"] .mh-badge-all { background: var(--admin-surface, rgba(255, 255, 255, 0.15)); color: var(--admin-text, #fff); }
html[data-theme="light"] .mh-comb-sep { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .mh-comb-flecha { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .mh-vacio { background: var(--admin-surface, rgba(255, 255, 255, 0.05)); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1)); color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-aviso { color: var(--admin-warning-ink, #ffc107); }
html[data-theme="light"] .mh-pie { border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1)); color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-ticket { background: var(--admin-surface, #3f474e); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08)); }
html[data-theme="light"] .mh-ticket-cabecera { background: var(--admin-surface, rgba(0, 0, 0, 0.15)); }
html[data-theme="light"] .mh-ticket-cliente { background: var(--admin-surface, rgba(0, 0, 0, 0.2)); }
html[data-theme="light"] .mh-dato-label { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-dato-valor { color: var(--admin-text, #e9ecef); }
html[data-theme="light"] .mh-ejemplar { background: var(--admin-surface, rgba(255, 255, 255, 0.03)); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08)); }
html[data-theme="light"] .mh-ejemplar-cabecera { background: var(--admin-surface, rgba(0, 0, 0, 0.15)); }
html[data-theme="light"] .mh-ejemplar-nombre { color: var(--admin-text, #fff); }
html[data-theme="light"] .mh-ejemplar-genealogia { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-ejemplar-meta { border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.06)); color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-sin-datos { color: var(--admin-muted, #6c757d); }

/* Adaptación de public/css/colorInput_dark.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single { background-color: var(--admin-surface, #5a5d68) !important; color: var(--admin-text, #ced4da) !important; border: 1px solid var(--admin-border, #495057) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { color: var(--admin-text, #ced4da) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder { color: var(--admin-muted, #8c969f) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b { border-top-color: var(--admin-border, #ced4da) !important; border-bottom-color: var(--admin-border, #ced4da) !important; }
html[data-theme="light"] .select2-container--bootstrap4.select2-container--focus .select2-selection--single { border-color: var(--admin-border, #9ea8b3) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-dropdown { background-color: var(--admin-surface, #6e7077) !important; border: 1px solid var(--admin-border, #495057) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__option { color: var(--admin-text, #ced4da) !important; background-color: var(--admin-surface, #343a40) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__option--highlighted { background-color: var(--admin-surface, #5b5e66) !important; color: var(--admin-text, #fff) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__option[aria-selected=true] { background-color: var(--admin-surface, #6c757d) !important; color: var(--admin-text, #fff) !important; }
html[data-theme="light"] .select2-search__field { background-color: var(--admin-surface, #454d55) !important; color: var(--admin-text, #ced4da) !important; border: 1px solid var(--admin-border, #6c757d) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered[title="-- TODOS --"] { color: var(--admin-text, #ced4da) !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__message { color: var(--admin-text, #ced4da) !important; background-color: var(--admin-surface, #343a40) !important; }
html[data-theme="light"] #montoRestante.monto-positivo { background-color: var(--admin-surface, #d4edda); color: var(--admin-success-ink, #155724); }
html[data-theme="light"] #montoRestante.monto-cero { background-color: var(--admin-surface, #f8f9fa); color: var(--admin-muted, #343a40); }
html[data-theme="light"] #montoRestante.monto-negativo { background-color: var(--admin-surface, #f8d7da); color: var(--admin-danger-ink, #721c24); }
html[data-theme="light"] .checked-row { background-color: var(--admin-surface, #707b7c) !important; color: var(--admin-muted, #020202) !important; }
html[data-theme="light"] #option { color: var(--admin-muted, #b6b6b6); }
html[data-theme="light"] .cambio-background { background-color: var(--admin-surface, #707b7c) !important; }
html[data-theme="light"] .background-gris { background-color: var(--admin-surface, #373941) !important; }
html[data-theme="light"] .texto-rojo { color: var(--admin-danger-ink, #ff4d4d) !important; }
html[data-theme="light"] .texto-amarillo { color: var(--admin-warning-ink, #fff6a6) !important; }
html[data-theme="light"] .cambio-text-oscuro { color: var(--admin-muted, #000000) !important; }
html[data-theme="light"] .cambio-text-color { color: var(--admin-warning-ink, #fff6a6) !important; }
html[data-theme="light"] .config-loteria-header .badge-sorteos { background: var(--admin-surface, rgba(255,255,255,.07)) !important; }
html[data-theme="light"] .tabla-sorteos thead th { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .toggle-slider { background: var(--admin-surface, #4b5158); }
html[data-theme="light"] .toggle-slider:before { background: var(--admin-surface, #adb5bd); }
html[data-theme="light"] .toggle-switch input:checked + .toggle-slider:before { background: var(--admin-surface, #fff); }
html[data-theme="light"] .input-tope::placeholder,
html[data-theme="light"] .input-tope-triple::placeholder { color: var(--admin-muted, #4b5158); }
html[data-theme="light"] .alert-dark-dm { background: var(--admin-surface, rgba(255,255,255,.05)); }
html[data-theme="light"] #panel-busqueda { border-left: 4px solid var(--admin-border, #6c757d); }
html[data-theme="light"] #info-cliente { background-color: var(--admin-surface, #535353); }
html[data-theme="light"] .monto-positivo { color: var(--admin-success-ink, #28a745); }
html[data-theme="light"] .monto-negativo { color: var(--admin-danger-ink, #dc3545); }
html[data-theme="light"] .total-resultado-operativo { border: 1px solid var(--admin-border, rgba(255, 255, 255, .16)); background: var(--admin-surface, #151b24); }
html[data-theme="light"] .total-resultado-operativo-label { color: var(--admin-text, #f1f3f5); }
html[data-theme="light"] .total-resultado-operativo-separador { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .flash-step-circle { background: var(--admin-surface, #dee2e6); color: var(--admin-muted, #6c757d); border: 2px solid var(--admin-border, #ced4da); }
html[data-theme="light"] .flash-step.active .flash-step-circle { background: var(--admin-selected, #6c757d); color: var(--admin-text, #fff); border-color: var(--admin-border, #6c757d); }
html[data-theme="light"] .flash-step-label { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .flash-step.active .flash-step-label { color: var(--admin-muted, #343a40); }
html[data-theme="light"] .flash-step.done .flash-step-label { color: var(--admin-success-ink, #28a745); }
html[data-theme="light"] .flash-step-line { background: var(--admin-surface, #dee2e6); }
html[data-theme="light"] .select2-container--default .select2-selection--single { border: 1px solid var(--admin-border, #ced4da) !important; }
html[data-theme="light"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--admin-muted, #495057) !important; }
html[data-theme="light"] #flash-banner-cliente-p2,
html[data-theme="light"] #flash-banner-cliente-p3 { border-top: 1px solid var(--admin-border, rgba(255,255,255,.15)); }
html[data-theme="light"] #flash-tabs-modalidad .nav-link.active { background: var(--admin-selected, rgba(255,255,255,.18)); color: var(--admin-text, #fff) !important; }
html[data-theme="light"] #flash-tabs-modalidad .nav-link:not(.active):hover { background: var(--admin-hover, rgba(255,255,255,.08)); color: var(--admin-text, #fff) !important; }
html[data-theme="light"] .tabla-tripletas-global thead th { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .input-tripleta::placeholder { color: var(--admin-muted, #4b5158); }
html[data-theme="light"] .config-loteria-triple-header .badge-sorteos-triple { background: var(--admin-surface, rgba(255,255,255,.07)) !important; }
html[data-theme="light"] .input-mult-triple::placeholder { color: var(--admin-muted, #4b5158); }
html[data-theme="light"] .badge-comision-activa { color: var(--admin-success-ink, #5bd07a); }
html[data-theme="light"] .badge-comision-inactiva { background: var(--admin-surface, rgba(108,117,125,.15)); color: var(--admin-muted, #8c969f); border: 1px solid var(--admin-border, #4b5158); }
html[data-theme="light"] .input-comision-modal::placeholder { color: var(--admin-muted, #4b5158); }
html[data-theme="light"] #tablaRankingPuntos tbody tr:nth-child(2) td { background: var(--admin-surface, rgba(192, 192, 192, 0.05)); }
html[data-theme="light"] .cab-tipo-card { border-color: var(--admin-border, #dee2e6) !important; }
html[data-theme="light"] .cab-tipo-card:hover { border-color: var(--admin-border, #6c757d) !important; background: var(--admin-hover, #f8f9fa); }
html[data-theme="light"] .table-ejemplares thead th { background: var(--admin-surface, #343a40); color: var(--admin-text, #fff); }
html[data-theme="light"] .table-ejemplares tbody tr:hover td { background: var(--admin-hover, #f0f4ff); }
html[data-theme="light"] .cab-exotica-card { border-color: var(--admin-border, #dee2e6) !important; }
html[data-theme="light"] .cab-exotica-card:hover { background: var(--admin-hover, #fffbf0); }
html[data-theme="light"] .cab-exotica-card.selected small { color: var(--admin-muted, rgba(0,0,0,.65)) !important; }

/* Adaptación de public/css/config_stream.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .stream-global-stat.all-on { color: var(--admin-success-ink, #28a745); }
html[data-theme="light"] .stream-toggle-zone { background: var(--admin-surface, rgba(0,0,0,.1)); }
html[data-theme="light"] .sf-url-display.url-missing { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .cat-general { background: var(--admin-surface, rgba(108,117,125,.18)); color: var(--admin-muted, #9098b0); border: 1px solid var(--admin-border, rgba(108,117,125,.3)); }
html[data-theme="light"] .cat-caballos { color: var(--admin-warning-ink, #d4861e); }
html[data-theme="light"] .cat-animalitos { color: var(--admin-success-ink, #5cb85c); }
html[data-theme="light"] .cat-lotto { color: var(--admin-info-ink, #17a2b8); }

/* Adaptación de public/css/deportes/panel_deportes.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .dp-partido .dp-arroba { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .dp-ids { color: var(--admin-muted, #6c757d); }
html[data-theme="light"] .dp-vivo::before { background: var(--admin-surface, #fff); }
html[data-theme="light"] .dp-parciales td.dp-total { color: var(--admin-warning-ink, #ffc107); }
html[data-theme="light"] .dp-mercado { background: var(--admin-surface, rgba(255, 255, 255, 0.03)); border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08)); }
html[data-theme="light"] .dp-mercado-cabecera { background: var(--admin-surface, rgba(0, 0, 0, 0.15)); }
html[data-theme="light"] .dp-mercado-titulo { color: var(--admin-text, #fff); }
html[data-theme="light"] .dp-mercado-meta { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .dp-familia { color: var(--admin-warning-ink, #ffc107); }
html[data-theme="light"] .dp-cuota { color: var(--admin-success-ink, #28a745); }
html[data-theme="light"] .dp-filtro-mercados { background: var(--admin-surface, #3f474e); border-color: var(--admin-border, rgba(255, 255, 255, 0.15)); color: var(--admin-text, #e9ecef); }
html[data-theme="light"] .dp-filtro-mercados:focus { background: var(--admin-hover, #3f474e); color: var(--admin-text, #fff); }
html[data-theme="light"] .dp-motivo { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .dp-historial { border-left: 2px solid var(--admin-border, rgba(255, 255, 255, 0.12)); }
html[data-theme="light"] .dp-historial li { color: var(--admin-muted, #adb5bd); }
html[data-theme="light"] .mh-modal .form-control { background: var(--admin-surface, #3f474e); border-color: var(--admin-border, rgba(255, 255, 255, 0.15)); color: var(--admin-text, #e9ecef); }

/* Adaptación de public/css/deportivas/deportivas.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .sports-module .sports-heading h1 { color: var(--dm-text-strong, var(--admin-text, #f0f0f0)); }
html[data-theme="light"] .sports-readonly-note { color: var(--admin-success-ink, #7bd88f); }
html[data-theme="light"] .sports-card-header { background: var(--admin-surface, rgba(52,58,64,.18)); }
html[data-theme="light"] .sports-module .odds-value { color: var(--admin-info-ink, #78c7ff); }
html[data-theme="light"] .sports-module code { color: var(--admin-info-ink, #78c7ff); }

/* Adaptación de public/css/operations-dashboard.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .ops-ui { background: var(--admin-surface, #48515a); }
html[data-theme="light"] .ops-ui .content-header h1 { color: var(--admin-text, #f8fafc); }
html[data-theme="light"] .ops-ui .content-header .text-muted,
html[data-theme="light"] .ops-ui .content-header p { color: var(--admin-muted, #b6c0ce) !important; }
html[data-theme="light"] .ops-ui .small-box .icon { color: var(--admin-info-ink, rgba(96, 165, 250, 0.16)); }
html[data-theme="light"] .ops-ui .small-box .small-box-footer { background: var(--admin-surface, rgba(15, 23, 42, 0.65)); color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .ops-ui .form-control,
html[data-theme="light"] .ops-ui .custom-select,
html[data-theme="light"] .ops-ui .input-group-text { border-color: var(--admin-border, rgba(148, 163, 184, 0.2)); color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .ops-ui .form-control:focus,
html[data-theme="light"] .ops-ui .custom-select:focus { color: var(--admin-text, #fff); }
html[data-theme="light"] .ops-ui table.table { color: var(--admin-text, #dbe5f1); }
html[data-theme="light"] .ops-ui table.table thead th { color: var(--admin-primary-ink, #7f9bc5); }
html[data-theme="light"] .ops-ui table.table tbody td { border-color: var(--admin-border, rgba(148, 163, 184, 0.09)); }
html[data-theme="light"] .ops-ui table.table-hover tbody tr:hover { color: var(--admin-text, #fff); }
html[data-theme="light"] .ops-ui .btn-outline-secondary { border-color: var(--admin-border, rgba(148, 163, 184, 0.35)); }
html[data-theme="light"] .ops-ui .modal-header .close { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .ops-ui .dropdown-item { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .ops-ui .dropdown-item:focus,
html[data-theme="light"] .ops-ui .dropdown-item:hover { color: var(--admin-text, #fff); }
html[data-theme="light"] .ops-ui .alert-secondary,
html[data-theme="light"] .ops-ui .alert-dark { color: var(--admin-text, #dbe5f1); }
html[data-theme="light"] .ops-ui .nav-sidebar > .nav-item.menu-open > .nav-link .nav-icon,
html[data-theme="light"] .ops-ui .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
html[data-theme="light"] .ops-ui .nav-sidebar > .nav-item > .nav-link:hover .nav-icon { color: var(--admin-text, #ffffff); }
html[data-theme="light"] .ops-ui .nav-sidebar .nav-treeview .nav-link.active .nav-icon { color: var(--admin-text, #e2e8f0); }

/* Adaptación de public/css/roles/roles_permissions.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .permissions-demo { background: var(--admin-surface, #151b24); color: var(--admin-text, #f3f6fb); border: 1px solid var(--admin-border, #344154); }
html[data-theme="light"] .permissions-demo .modal-header,
html[data-theme="light"] .permissions-demo .modal-footer { border-color: var(--admin-border, #2b3544); background: var(--admin-surface, #171e28); }
html[data-theme="light"] .permissions-demo .close { color: var(--admin-text, #fff); }
html[data-theme="light"] .permissions-eyebrow { color: var(--admin-info-ink, #58a6ff); }
html[data-theme="light"] .permissions-summary { background: var(--admin-surface, #111720); border-right: 1px solid var(--admin-border, #2b3544); }
html[data-theme="light"] .permissions-role-mark { background: var(--admin-surface, #1d3557); color: var(--admin-info-ink, #58a6ff); }
html[data-theme="light"] .permissions-count { background: var(--admin-surface, #1c2532); border: 1px solid var(--admin-border, #334257); }
html[data-theme="light"] .permissions-count strong { color: var(--admin-info-ink, #58a6ff); }
html[data-theme="light"] .permissions-count span { color: var(--admin-muted, #9eacc0); }
html[data-theme="light"] .permissions-summary-item { border-bottom: 1px solid var(--admin-border, #283241); color: var(--admin-muted, #b6c1d0); }
html[data-theme="light"] .permissions-warning { background: var(--admin-surface, #2b2514); color: var(--admin-warning-ink, #f0c85a); }
html[data-theme="light"] .permissions-workspace { background: var(--admin-surface, #171e28); }
html[data-theme="light"] .permissions-demo .form-control,
html[data-theme="light"] .permissions-demo .input-group-text { color: var(--admin-text, #edf2f8); background: var(--admin-surface, #202936); border-color: var(--admin-border, #3a485c); }
html[data-theme="light"] .permissions-legend { color: var(--admin-muted, #91a4bd); }
html[data-theme="light"] .permission-panel { border: 1px solid var(--admin-border, #303c4d); background: var(--admin-surface, #1b232e); }
html[data-theme="light"] .permission-panel-head { background: var(--admin-surface, #202a38); }
html[data-theme="light"] .permission-panel-head .panel-toggle { color: var(--admin-muted, #8fa1b8); }
html[data-theme="light"] .permission-module { border-bottom: 1px solid var(--admin-border, #2b3543); }
html[data-theme="light"] .permission-check { color: var(--admin-muted, #aebacc); }
html[data-theme="light"] .permissions-status { color: var(--admin-muted, #9eacc0); }
html[data-theme="light"] .status-dot { background: var(--admin-surface, #68778b); }
@media (max-width:767.98px) {
html[data-theme="light"] .permissions-summary { border-bottom: 1px solid var(--admin-border, #2b3544); }
}

/* Adaptación de public/css/solicitudes/solicitudes.css; se conservan dimensiones y comportamiento. */
html[data-theme="light"] .solicitudes-header h1 { color: var(--admin-text, #f8fafc); }
html[data-theme="light"] .solicitudes-eyebrow { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .solicitudes-summary { background: var(--admin-surface, rgba(15, 23, 42, 0.72)); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.16)); color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .solicitudes-tabs-card { background: var(--admin-surface, #171c24); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.13)); }
html[data-theme="light"] .status-tab { color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .status-tab:hover { background: var(--admin-hover, rgba(255, 255, 255, 0.035)); color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .status-tab.active { background: var(--admin-selected, #222936); color: var(--admin-text, #f8fafc); }
html[data-theme="light"] .status-tab-icon { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .status-tab-copy small { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .status-tab-count { background: var(--admin-surface, #11161d); color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .status-tab-pendientes .status-tab-icon { color: var(--admin-warning-ink, #fbbf24); }
html[data-theme="light"] .status-tab-pendientes .status-tab-count { color: var(--admin-warning-ink, #fbbf24); }
html[data-theme="light"] .status-tab-en-revision .status-tab-icon { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .status-tab-en-revision .status-tab-count { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .status-tab-resueltas .status-tab-icon { color: var(--admin-success-ink, #4ade80); }
html[data-theme="light"] .status-tab-resueltas .status-tab-count { color: var(--admin-success-ink, #4ade80); }
html[data-theme="light"] .solicitudes-card { background: var(--admin-surface, #171c24); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.13)); }
html[data-theme="light"] .solicitudes-card-header { border-bottom: 1px solid var(--admin-border, rgba(148, 163, 184, 0.1)); }
html[data-theme="light"] .solicitudes-card-header .card-title { color: var(--admin-text, #f1f5f9); }
html[data-theme="light"] .solicitudes-filters label { color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .solicitudes-filters .form-control,
html[data-theme="light"] .solicitudes-filters .input-group-text { background: var(--admin-surface, #11161d); border-color: var(--admin-border, rgba(148, 163, 184, 0.16)); color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .solicitudes-filters .input-group-text { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .solicitudes-filters .form-control:focus { background: var(--admin-hover, #11161d); color: var(--admin-text, #fff); }
html[data-theme="light"] .solicitudes-filters select option { background: var(--admin-surface, #171c24); }
html[data-theme="light"] .solicitudes-table-responsive { border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.1)); }
html[data-theme="light"] #tablaSolicitudes thead th { background: var(--admin-surface, #11161d); border-bottom: 1px solid var(--admin-border, rgba(148, 163, 184, 0.12)); color: var(--admin-muted, #64748b); }
html[data-theme="light"] #tablaSolicitudes tbody td { border-top: 1px solid var(--admin-border, rgba(148, 163, 184, 0.08)); color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] #tablaSolicitudes tbody tr { background: var(--admin-surface, #171c24); }
html[data-theme="light"] #tablaSolicitudes tbody tr:hover { background: var(--admin-hover, #1c222c); }
html[data-theme="light"] .reclamo-code,
html[data-theme="light"] .referencia-cell { color: var(--admin-primary-ink, #93c5fd); }
html[data-theme="light"] .cliente-cell strong { color: var(--admin-text, #f1f5f9); }
html[data-theme="light"] .cliente-cell small,
html[data-theme="light"] .fecha-cell small { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .tipo-reclamo { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .asunto-cell { color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .estado-pendiente { color: var(--admin-warning-ink, #fbbf24); }
html[data-theme="light"] .estado-en_revision { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .estado-resuelta { color: var(--admin-success-ink, #4ade80); }
html[data-theme="light"] .asignado-cell { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .asignado-cell i { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .asignado-cell.sin-asignar,
html[data-theme="light"] .asignado-cell.sin-asignar i { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .archivo-count { background: var(--admin-surface, rgba(148, 163, 184, 0.09)); color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .dataTables_info { color: var(--admin-muted, #64748b) !important; }
html[data-theme="light"] .dataTables_paginate .paginate_button { background: var(--admin-surface, #11161d) !important; border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.14)) !important; color: var(--admin-muted, #94a3b8) !important; }
html[data-theme="light"] .solicitudes-detail-header h1 { color: var(--admin-text, #f8fafc); }
html[data-theme="light"] .detail-back { color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .detail-back:hover { color: var(--admin-text, #fff); }
html[data-theme="light"] .detail-grid small,
html[data-theme="light"] .detail-description > small,
html[data-theme="light"] .detail-files > small,
html[data-theme="light"] .detail-summary-list small { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .detail-grid strong,
html[data-theme="light"] .detail-summary-list strong { color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .detail-description { background: var(--admin-surface, #11161d); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.1)); }
html[data-theme="light"] .detail-description p { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .detail-file { background: var(--admin-surface, #11161d); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.1)); color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .detail-file:hover,
html[data-theme="light"] .detail-file:focus { color: var(--admin-text, #fff); }
html[data-theme="light"] .detail-file small { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .detail-file-view { color: var(--admin-info-ink, #60a5fa); }
html[data-theme="light"] .file-preview-loading { color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .detail-responses > small { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .detail-response { background: var(--admin-surface, #11161d); }
html[data-theme="light"] .detail-response strong { color: var(--admin-primary-ink, #93c5fd); }
html[data-theme="light"] .detail-response time { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .detail-response p { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .solicitudes-modal { background: var(--admin-surface, #171c24); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.16)); color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .solicitudes-modal .modal-header,
html[data-theme="light"] .solicitudes-modal .modal-footer { border-color: var(--admin-border, rgba(148, 163, 184, 0.12)); }
html[data-theme="light"] .solicitudes-modal .close { color: var(--admin-text, #cbd5e1); }
html[data-theme="light"] .solicitudes-modal label { color: var(--admin-muted, #94a3b8); }
html[data-theme="light"] .solicitudes-modal .form-control { background: var(--admin-surface, #11161d); border-color: var(--admin-border, rgba(148, 163, 184, 0.16)); color: var(--admin-text, #e2e8f0); }
html[data-theme="light"] .solicitudes-modal .form-control:focus { background: var(--admin-hover, #11161d); color: var(--admin-text, #fff); }
html[data-theme="light"] .solicitudes-modal select option { background: var(--admin-surface, #171c24); }
html[data-theme="light"] .current-state-box { background: var(--admin-surface, #11161d); border: 1px solid var(--admin-border, rgba(148, 163, 184, 0.1)); }
html[data-theme="light"] .current-state-box span { color: var(--admin-muted, #64748b); }
html[data-theme="light"] .current-state-box strong { color: var(--admin-text, #f8fafc); }

/* Adaptación de public/css/usuarios/usuarios.css; se conservan dimensiones y comportamiento. */

/* Estados compartidos: prioridad final frente a hojas específicas. */
html[data-theme="light"] .ops-ui .form-control:focus,
html[data-theme="light"] .solicitudes-modal .form-control:focus { background-color: #fff; border-color: #2563eb; }
html[data-theme="light"] .ops-ui .form-control.is-invalid { border-color: #b91c1c; }
html[data-theme="light"] .ops-ui .form-control.is-valid { border-color: #166534; }
html[data-theme="light"] .ops-ui .form-control[readonly],
html[data-theme="light"] .ops-ui .form-control:disabled { background-color: #f8fafc; color: #526176; }
html[data-theme="light"] .ops-ui .form-control[readonly].monto-positivo { background-color: #dcfce7; color: #166534; }
html[data-theme="light"] .ops-ui .form-control[readonly].monto-negativo { background-color: #fef2f2; color: #b91c1c; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__option[aria-selected="true"],
html[data-theme="light"] .select2-container--bootstrap4 .select2-results__option--highlighted { background: #dbeafe !important; color: #172033 !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder { color: #526176 !important; }
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--single,
html[data-theme="light"] .select2-container--bootstrap4 .select2-selection--multiple { border-color: #8492a6 !important; }
html[data-theme="light"] .ops-ui .main-sidebar .nav-link.active #option,
html[data-theme="light"] .ops-ui .main-sidebar .nav-link.active .nav-icon { color: #fff !important; }
html[data-theme="light"] .ops-ui .main-sidebar .nav-link:not(.active):hover .nav-icon,
html[data-theme="light"] .ops-ui .main-sidebar .menu-open > .nav-link:not(.active) .nav-icon { color: #1d4ed8; }
html[data-theme="light"] .card-header.bg-secondary,
html[data-theme="light"] .card-header.bg-dark,
html[data-theme="light"] .modal-header.bg-secondary,
html[data-theme="light"] .input-group-text.bg-secondary,
html[data-theme="light"] .table tr.bg-dark,
html[data-theme="light"] .table tr.bg-secondary { background-color: #fff !important; color: #172033 !important; }
html[data-theme="light"] .card-header.bg-secondary .text-white,
html[data-theme="light"] .card-header.bg-dark .text-white,
html[data-theme="light"] .modal-header.bg-secondary .text-white { color: #172033 !important; }
html[data-theme="light"] .content-wrapper .text-white-50 { color: #526176 !important; }
html[data-theme="light"] .content-wrapper .bg-primary .text-white-50,
html[data-theme="light"] .content-wrapper .bg-danger .text-white-50 { color: rgba(255,255,255,.85) !important; }
html[data-theme="light"] .notif-toast { background: #fff; border: 1px solid #d5dde7; box-shadow: 0 4px 18px rgba(23,32,51,.14); }
html[data-theme="light"] .notif-toast .nt-title { color: #172033; }
html[data-theme="light"] .notif-toast .nt-sub,
html[data-theme="light"] .notif-toast .nt-close { color: #526176; }
html[data-theme="light"] .notif-toast .nt-close:hover { color: #172033; }
html[data-theme="light"] .notif-toast .nt-link { color: #1d4ed8 !important; }
html[data-theme="light"] .notif-toast .nt-title i[style*="#ffc107"] { color: #854d0e !important; }
html[data-theme="light"] .notif-toast .nt-title i[style*="#dc3545"] { color: #b91c1c !important; }
html[data-theme="light"] .notif-toast .nt-title i[style*="#17a2b8"] { color: #075985 !important; }
html[data-theme="light"] .card-header.bg-secondary .card-title,
html[data-theme="light"] .card-header.bg-dark .card-title { color: #172033; }
html[data-theme="light"] .admin-offline { background: #fff; }
html[data-theme="light"] .admin-offline .card { border: 1px solid #d5dde7; box-shadow: 0 3px 14px rgba(23,32,51,.07); }
html[data-theme="light"] .swal2-container .swal2-popup.mh-modal .swal2-title { background: #fff; color: #172033; }
html[data-theme="light"] .btn-outline-secondary { color: #526176; border-color: #526176; }
html[data-theme="light"] .btn-outline-secondary:hover { color: #fff; background: #526176; }
html[data-theme="light"] .ops-ui .page-item.active .page-link { color: #fff; }
html[data-theme="light"] .ops-ui .form-control,
html[data-theme="light"] .ops-ui .custom-select,
html[data-theme="light"] .permissions-demo .form-control,
html[data-theme="light"] .solicitudes-modal .form-control { border-color: #8492a6; }
html[data-theme="light"] .card-header.bg-primary .card-title,
html[data-theme="light"] .card-header.bg-danger .card-title,
html[data-theme="light"] .card-header.bg-success .card-title,
html[data-theme="light"] .card-header.bg-info .card-title,
html[data-theme="light"] .card-header.bg-warning .card-title { color: inherit; }
html[data-theme="light"] .modal-content.bg-dark,
html[data-theme="light"] .modal-content.bg-secondary { background-color: #fff !important; color: #172033 !important; }
html[data-theme="light"] .modal-content.bg-dark .close.text-white,
html[data-theme="light"] .modal-content.bg-secondary .close.text-white { color: #172033 !important; }
html[data-theme="light"] .btn-outline-light { color: #526176; border-color: #526176; }
html[data-theme="light"] .btn-outline-light:hover { background: #526176; color: #fff; }
html[data-theme="light"] .modal-header.bg-warning .text-white { color: #172033 !important; }
html[data-theme="light"] .badge-success { background-color: #166534; color: #fff; }
html[data-theme="light"] .badge-danger { background-color: #b91c1c; color: #fff; }
html[data-theme="light"] .badge-info { background-color: #075985; color: #fff; }
html[data-theme="light"] .badge-secondary { background-color: #526176; color: #fff; }
html[data-theme="light"] .alert-success { background: #f0fdf4; color: #166534; border-color: #86bfa0; }
html[data-theme="light"] .alert-danger { background: #fef2f2; color: #b91c1c; border-color: #e6a6a6; }
html[data-theme="light"] .alert-warning { background: #fffbeb; color: #854d0e; border-color: #d6b45b; }
html[data-theme="light"] .alert-info { background: #f0f9ff; color: #075985; border-color: #8bb9d1; }
html[data-theme="light"] .alert-info .text-white { color: #075985 !important; }

/* Cobertura de contenido dinámico y estados que conservaban colores oscuros. */
html[data-theme="light"] #flash_trip_fin_nombre { color: #172033 !important; }
html[data-theme="light"] #montoRestante.monto-positivo { background-color: #dcfce7; color: #166534; }
html[data-theme="light"] #montoRestante.monto-negativo { background-color: #fef2f2; color: #b91c1c; }
html[data-theme="light"] #montoRestante.monto-cero { background-color: #fff; color: #172033; }
html[data-theme="light"] .select2-container .select2-selection__choice__remove { color: #526176 !important; }
