/* SABTR — tema claro / oscuro (tokens semánticos) */
/* Por defecto: claro. Oscuro: html.theme-dark (+ class dark para Tailwind). */

:root,
html.theme-light {
    color-scheme: light;

    --sabtr-bg: #eef2f7;
    --sabtr-bg-deep: #e2e9f2;
    --sabtr-surface: #ffffff;
    --sabtr-surface-2: #f5f8fc;
    --sabtr-surface-alt: #edf3fa;
    --sabtr-surface-deep: #f8fafc;
    --sabtr-input: #ffffff;
    --sabtr-input-login: #f3f7fc;

    --sabtr-border: #c5d4e8;
    --sabtr-border-strong: #9eb4d0;

    --sabtr-text: #062038;
    --sabtr-text-soft: #1a3a5c;
    --sabtr-text-muted: #234868;
    --sabtr-text-faint: #2f5578;
    --sabtr-text-strong: #041526;
    --sabtr-on-accent: #ffffff;

    --sabtr-accent: #0f5f9e;
    --sabtr-accent-hover: #0c6eb8;
    --sabtr-accent-bright: #135a96;
    --sabtr-accent-soft: rgba(26, 111, 181, 0.12);
    --sabtr-accent-soft-strong: rgba(26, 111, 181, 0.18);

    --sabtr-shadow: rgba(12, 35, 64, 0.12);
    --sabtr-shadow-strong: rgba(12, 35, 64, 0.22);

    --sabtr-login-card-bg: rgba(255, 255, 255, 0.92);
    --sabtr-login-card-border: rgba(197, 212, 232, 0.95);
    --sabtr-login-shade:
        linear-gradient(165deg, rgba(238, 242, 247, 0.88) 0%, rgba(232, 239, 247, 0.72) 42%, rgba(226, 233, 242, 0.86) 100%),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(26, 111, 181, 0.14) 0%, transparent 55%);

    --sabtr-grad-panel: linear-gradient(165deg, #f8fbff 0%, #eef3f9 55%, #e6eef7 100%);
    --sabtr-grad-hero: linear-gradient(160deg, #f5f9fd 0%, #eaf1f8 55%, #e3ecf6 100%);
    --sabtr-grad-chip: linear-gradient(135deg, #e8f1fa 0%, #dce8f4 100%);

    --sabtr-success-bg: #e8f6ee;
    --sabtr-chart-grid: rgba(90, 115, 144, 0.22);
    --sabtr-chart-grid-strong: rgba(90, 115, 144, 0.35);

    --sabtr-theme-color: #eef2f7;
}

html.theme-dark {
    color-scheme: dark;

    --sabtr-bg: #001526;
    --sabtr-bg-deep: #071428;
    --sabtr-surface: #0f2240;
    --sabtr-surface-2: #0b1c36;
    --sabtr-surface-alt: #0f2848;
    --sabtr-surface-deep: #0b1628;
    --sabtr-input: #0b1628;
    --sabtr-input-login: #121f35;

    --sabtr-border: #1e3d60;
    --sabtr-border-strong: #2a5080;

    --sabtr-text: #cfe5ff;
    --sabtr-text-soft: #c0c7d3;
    --sabtr-text-muted: #5a8ab8;
    --sabtr-text-faint: #4a6a88;
    --sabtr-text-strong: #ffffff;
    --sabtr-on-accent: #ffffff;

    --sabtr-accent: #2a8ae0;
    --sabtr-accent-hover: #359bf0;
    --sabtr-accent-bright: #5eb0f0;
    --sabtr-accent-soft: rgba(42, 138, 224, 0.12);
    --sabtr-accent-soft-strong: rgba(42, 138, 224, 0.18);

    --sabtr-shadow: rgba(0, 0, 0, 0.35);
    --sabtr-shadow-strong: rgba(0, 0, 0, 0.45);

    --sabtr-login-card-bg: rgba(15, 34, 64, 0.78);
    --sabtr-login-card-border: rgba(30, 61, 96, 0.95);
    --sabtr-login-shade:
        linear-gradient(165deg, rgba(11, 22, 40, 0.92) 0%, rgba(15, 34, 64, 0.78) 42%, rgba(11, 22, 40, 0.9) 100%),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(42, 138, 224, 0.22) 0%, transparent 55%);

    --sabtr-grad-panel: linear-gradient(165deg, #102848 0%, #0c1f38 55%, #0a1830 100%);
    --sabtr-grad-hero: linear-gradient(160deg, #071428 0%, #0b1c36 55%, #0a223f 100%);
    --sabtr-grad-chip: linear-gradient(135deg, #0e243f 0%, #163556 100%);

    --sabtr-success-bg: #0f2a1c;
    --sabtr-chart-grid: rgba(180, 200, 220, 0.22);
    --sabtr-chart-grid-strong: rgba(30, 61, 96, 0.5);

    --sabtr-theme-color: #0f2240;
}

/* Staging: adapta tokens grises al tema activo */
html.theme-dark body.app-body--staging,
html.theme-dark body.public-body--staging {
    --st-bg: #27272a;
    --st-surface: #3f3f46;
    --st-surface-2: #35353a;
    --st-border: #52525b;
    --st-border-strong: #71717a;
    --st-text: #e4e4e7;
    --st-text-muted: #a1a1aa;
    --st-accent: #a1a1aa;
    --st-accent-hover: #71717a;
    --st-accent-soft: #404045;
    --st-input-bg: #35353a;
}

html.theme-light body.app-body--staging,
html.theme-light body.public-body--staging {
    --st-bg: #f4f4f5;
    --st-surface: #ffffff;
    --st-surface-2: #f4f4f5;
    --st-border: #d4d4d8;
    --st-border-strong: #a1a1aa;
    --st-text: #18181b;
    --st-text-muted: #3f3f46;
    --st-accent: #3f3f46;
    --st-accent-hover: #27272a;
    --st-accent-soft: #e4e4e7;
    --st-input-bg: #ffffff;
}

/* ——— Layout público ——— */
body.public-body {
    min-height: 100vh;
    background: var(--sabtr-surface-deep);
    color: var(--sabtr-text);
    -webkit-font-smoothing: antialiased;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: 0.5px solid var(--sabtr-border);
    border-radius: 6px;
    background: var(--sabtr-surface-2);
    color: var(--sabtr-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: var(--sabtr-accent);
    border-color: var(--sabtr-accent);
    background: var(--sabtr-accent-soft);
    outline: none;
}

.theme-toggle .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
}

.theme-toggle__icon-dark {
    display: none;
}

html.theme-dark .theme-toggle__icon-light {
    display: none;
}

html.theme-dark .theme-toggle__icon-dark {
    display: inline-block;
}

.theme-toggle--public {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 50;
}

body.public-body--staging .theme-toggle--public {
    top: calc(2rem + 0.65rem);
}

.tablet-topbar .theme-toggle {
    margin-left: auto;
}

/* Login card adaptativo */
.login-card {
    background-color: var(--sabtr-login-card-bg);
    border-color: var(--sabtr-login-card-border);
    box-shadow: 0 12px 40px var(--sabtr-shadow);
}

.login-page__main h2 {
    color: var(--sabtr-text) !important;
}

html.theme-light body.public-body--staging .login-page__shade {
    background: linear-gradient(135deg, rgba(244, 244, 245, 0.92) 0%, rgba(228, 228, 231, 0.88) 100%) !important;
}

html.theme-light body.public-body--staging .login-card.technical-border {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: var(--st-border-strong) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

/* Inputs / utilidades públicas */
.input-field {
    background-color: var(--sabtr-input) !important;
    border-color: var(--sabtr-border) !important;
    color: var(--sabtr-text) !important;
    caret-color: var(--sabtr-accent) !important;
}

.input-field::placeholder {
    color: color-mix(in srgb, var(--sabtr-text-muted) 65%, transparent) !important;
}

.input-field:focus {
    border-color: var(--sabtr-accent) !important;
    box-shadow: 0 0 0 1px var(--sabtr-accent) !important;
}

.login-card .input-field,
.login-card input.input-field {
    color: var(--sabtr-text) !important;
    background-color: var(--sabtr-input-login) !important;
}

.login-card .input-field:-webkit-autofill,
.login-card .input-field:-webkit-autofill:hover,
.login-card .input-field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--sabtr-text) !important;
    caret-color: var(--sabtr-accent) !important;
    box-shadow: 0 0 0 1000px var(--sabtr-input-login) inset !important;
}

/* Tailwind helpers usados en login / validación */
.public-muted,
.text-theme-muted {
    color: var(--sabtr-text-muted) !important;
}

.text-theme {
    color: var(--sabtr-text) !important;
}

.text-theme-soft {
    color: var(--sabtr-text-soft) !important;
}

.text-theme-accent {
    color: var(--sabtr-accent) !important;
}

.bg-theme-surface {
    background-color: var(--sabtr-surface) !important;
}

.border-theme {
    border-color: var(--sabtr-border) !important;
}

.btn-theme-primary {
    background-color: var(--sabtr-accent) !important;
    color: var(--sabtr-on-accent) !important;
}

.btn-theme-primary:hover {
    background-color: var(--sabtr-accent-hover) !important;
}

/* Date picker icon según tema */
.app-body .dashboard-filter-input[type="date"],
.dashboard-filter-input[type="date"] {
    color-scheme: light dark;
}

html.theme-light .app-body .dashboard-filter-input[type="date"],
html.theme-light .dashboard-filter-input[type="date"] {
    color-scheme: light;
}

html.theme-dark .app-body .dashboard-filter-input[type="date"],
html.theme-dark .dashboard-filter-input[type="date"] {
    color-scheme: dark;
}

html.theme-light .app-body .dashboard-filter-input[type="date"]::-webkit-calendar-picker-indicator,
html.theme-light .dashboard-filter-input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230c2340%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27/%3E%3Cpath%20d%3D%27M16%202v4M8%202v4M3%2010h18%27/%3E%3C/svg%3E") !important;
}

/* Validación pública */
.public-validate-card {
    background: var(--sabtr-surface);
    border: 1px solid var(--sabtr-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px var(--sabtr-shadow);
}

/* Staging ghost buttons en claro */
html.theme-light body.app-body--staging .app-btn-ghost:hover,
html.theme-light body.app-body--staging .app-btn-ghost:focus-visible {
    color: var(--st-text) !important;
    background: var(--st-accent-soft) !important;
}

html.theme-light body.app-body--staging .app-nav-link.is-active {
    color: var(--st-text) !important;
}

/* Icon buttons admin: en claro no usar fondos “noche” */
html.theme-light .admin-icon-btn {
    background: var(--sabtr-surface-2);
    border-color: var(--sabtr-border);
    color: var(--sabtr-text-muted);
}

html.theme-light .admin-icon-btn:hover {
    background: var(--sabtr-accent-soft-strong);
    color: var(--sabtr-accent);
    border-color: var(--sabtr-accent);
    box-shadow: none;
}

html.theme-light .admin-icon-btn--ghost {
    background: transparent;
    color: var(--sabtr-text-muted);
}

html.theme-light .admin-icon-btn--ghost:hover {
    background: var(--sabtr-accent-soft);
    color: var(--sabtr-text);
}

html.theme-light body.app-body--staging .hc-view-section,
html.theme-light body.app-body--staging .vb-perfil-meta {
    border-color: var(--st-border);
    background: var(--st-surface-2);
    color: var(--st-text);
}

html.theme-light .vb-perfil-meta,
html.theme-light .hc-view-section,
html.theme-light .hc-view-section--hist {
    background: var(--sabtr-surface-2);
    border-color: var(--sabtr-border);
    color: var(--sabtr-text);
}

html.theme-light .vb-perfil-meta dt,
html.theme-light .hc-view-buceo__item dt {
    color: var(--sabtr-text-muted);
}

html.theme-light .vb-perfil-meta dd,
html.theme-light .hc-view-buceo__item dd {
    color: var(--sabtr-text-strong);
}

html.theme-light .vb-perfil-tooltip {
    color: #e8f2ff;
}

/* Gradientes residuales → tokens */
html.theme-light .riesgos-hero,
html.theme-light .dashboard-pdf-kpi {
    background: var(--sabtr-surface-alt) !important;
}

/* Utilidades Tailwind hardcodeadas en páginas públicas */
html.theme-light .text-\[\#5A8AB8\],
html.theme-light .text-\[\#5a8ab8\],
html.theme-light .text-\[\#8fa8c4\] {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .text-\[\#cfe5ff\],
html.theme-light .text-\[\#c0c7d3\],
html.theme-light .text-white {
    color: var(--sabtr-text) !important;
}

html.theme-light .border-\[\#1E3D60\],
html.theme-light .border-\[\#1e3d60\] {
    border-color: var(--sabtr-border) !important;
}

html.theme-light .bg-\[\#0f2240\],
html.theme-light .bg-\[\#0F2240\] {
    background-color: var(--sabtr-surface) !important;
}

/* Botones primarios Tailwind: el texto blanco debe permanecer */
html.theme-light .bg-\[\#2A8AE0\].text-white,
html.theme-light .bg-\[\#2A8AE0\] .text-white,
html.theme-light button.bg-\[\#2A8AE0\],
html.theme-light a.bg-\[\#2A8AE0\] {
    color: #fff !important;
}

html.theme-light .login-page__main h2.text-white {
    color: var(--sabtr-text) !important;
}

/* Breadcrumb bitácora / antecedentes en claro */
html.theme-light .bitacora-module .breadcrumb a:hover,
html.theme-light .antecedentes-module .ant-subnav__link.is-active {
    color: var(--sabtr-text) !important;
}

/* Selects / tablas: asegurar contraste residual */
html.theme-light .admin-table thead th {
    background: var(--sabtr-surface-2);
    color: var(--sabtr-text-muted);
}

html.theme-light .app-header-empresa-logo-img {
    background: rgba(12, 35, 64, 0.06);
}

/*
 * Remap de azules pálidos (pensados para fondo oscuro) → azul oscuro legible.
 * Solo afecta color de texto; no toca fondos ni estados de éxito/alerta.
 */
html.theme-light .app-body,
html.theme-light .public-body {
    --sabtr-pale-1: #1a3a5c;
    --sabtr-pale-2: #234868;
    --sabtr-pale-3: #0f3d66;
}

html.theme-light .section-title,
html.theme-light .app-inline-label,
html.theme-light .app-nav-group,
html.theme-light .dashboard-filter-label,
html.theme-light .admin-grid-form > div > .section-title,
html.theme-light .text-muted,
html.theme-light .dashboard-panel-hint,
html.theme-light .admin-page-subtitle,
html.theme-light .kpi-label,
html.theme-light .breadcrumb,
html.theme-light .bitacora-module .breadcrumb,
html.theme-light .antecedentes-module .ant-breadcrumb,
html.theme-light .antecedentes-module .ant-subnav__link {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .app-user-meta,
html.theme-light .app-user-empresa,
html.theme-light .app-nav-link,
html.theme-light .admin-table td,
html.theme-light .admin-table th {
    color: var(--sabtr-text-soft);
}

html.theme-light .app-nav-link:hover,
html.theme-light .app-nav-link.is-active {
    color: var(--sabtr-text-strong) !important;
}

/* Tips / meta / chips con hex claros residuales */
html.theme-light .admin-input-tip,
html.theme-light .dash-tip-panel,
html.theme-light .dashboard-pdf-slide-meta,
html.theme-light .dashboard-pdf-kpi-label,
html.theme-light .resumen-kpi-label,
html.theme-light .hc-meta-label,
html.theme-light .hc-view-buceo__item dt,
html.theme-light .vb-meta,
html.theme-light .vb-empty,
html.theme-light .bitacora-module .bitacora-crumb-sep {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .admin-icon-btn {
    color: var(--sabtr-text-soft) !important;
}

html.theme-light .admin-icon-btn:hover {
    color: var(--sabtr-accent) !important;
}

html.theme-light .admin-icon-btn--ghost {
    color: var(--sabtr-text-muted) !important;
}

/* Placeholders e inputs más legibles */
html.theme-light .input-field::placeholder,
html.theme-light .admin-input::placeholder,
html.theme-light .dashboard-filter-input::placeholder {
    color: var(--sabtr-text-faint) !important;
    opacity: 1;
}

html.theme-light .login-page__main label,
html.theme-light .login-page__main p {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .login-page__main h2 {
    color: var(--sabtr-text-strong) !important;
}

/* Enlaces / acentos: azul más profundo, no celeste */
html.theme-light .app-btn-ghost,
html.theme-light a.text-theme-accent,
html.theme-light .bitacora-module .breadcrumb a {
    color: var(--sabtr-accent) !important;
}

html.theme-light .bitacora-module .breadcrumb a:hover {
    color: var(--sabtr-text-strong) !important;
}

/* Paginación / KPI / tips: contraste sobre superficie clara */
html.theme-light .admin-pagination__page {
    color: var(--sabtr-text-soft) !important;
}

html.theme-light .admin-pagination__page:hover {
    background: var(--sabtr-accent-soft) !important;
    border-color: var(--sabtr-border) !important;
    color: var(--sabtr-text) !important;
}

html.theme-light .admin-pagination__page.is-active {
    background: var(--sabtr-accent-soft-strong) !important;
    border-color: var(--sabtr-accent) !important;
    color: var(--sabtr-accent) !important;
}

html.theme-light .resumen-kpi-unit,
html.theme-light .resumen-kpi-sub {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .resumen-kpi-ok .resumen-kpi-main {
    color: #0d6b5c !important;
}

html.theme-light .resumen-kpi-alert .resumen-kpi-main {
    color: #9a4e00 !important;
}

html.theme-light .dash-tip-btn {
    background: var(--sabtr-surface) !important;
    border-color: var(--sabtr-border) !important;
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .dash-tip-btn:hover,
html.theme-light .dash-tip-btn:focus-visible {
    color: var(--sabtr-accent) !important;
    border-color: var(--sabtr-accent) !important;
}

html.theme-light .ranking-inc-calc-help {
    background: var(--sabtr-surface-2) !important;
}

html.theme-light .ranking-inc-calc-help__summary,
html.theme-light .ranking-inc-calc-help__body {
    color: var(--sabtr-text-soft) !important;
}

html.theme-light .admin-input[type="file"] {
    color: var(--sabtr-text-muted) !important;
}

/* Valores / títulos que quedaban casi blancos */
html.theme-light .kpi-value,
html.theme-light .admin-page-title,
html.theme-light .resumen-kpi-main,
html.theme-light .page-center h1 {
    color: var(--sabtr-text-strong) !important;
}

html.theme-light .hc-meta-value,
html.theme-light .hc-view-buceo__item dd {
    color: var(--sabtr-text) !important;
}

/*
 * Catch-all contraste: cualquier texto “celeste/sky” residual sobre blanco.
 * Incluye utilidades Tailwind arbitrarias y chips/meta del dashboard.
 */
html.theme-light .text-\[\#5A8AB8\],
html.theme-light .text-\[\#5a8ab8\],
html.theme-light .text-\[\#8fa8c4\],
html.theme-light .text-\[\#8FA8C4\],
html.theme-light .text-\[\#c0c7d3\],
html.theme-light .text-\[\#C0C7D3\],
html.theme-light .text-\[\#cfe5ff\],
html.theme-light .text-\[\#CFE5FF\],
html.theme-light .text-\[\#64b5f6\],
html.theme-light .text-\[\#64B5F6\],
html.theme-light .text-\[\#90caf9\],
html.theme-light .text-\[\#7dd3fc\],
html.theme-light .text-\[\#93c5fd\],
html.theme-light .text-\[\#bfdbfe\] {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .text-\[\#2A8AE0\],
html.theme-light .text-\[\#2a8ae0\],
html.theme-light a.text-\[\#2A8AE0\],
html.theme-light a.text-\[\#2a8ae0\] {
    color: var(--sabtr-accent) !important;
}

html.theme-light .material-symbols-outlined.text-\[\#5A8AB8\],
html.theme-light .material-symbols-outlined.text-\[\#5a8ab8\] {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .gerencia-brief-kicker,
html.theme-light .dashboard-export-pdf,
html.theme-light .dashboard-pdf-slide-brand,
html.theme-light .resumen-sup-to-detalle,
html.theme-light .admin-pagination-summary,
html.theme-light .vb-hint,
html.theme-light .vb-meta,
html.theme-light .hc-meta-label,
html.theme-light .hc-check,
html.theme-light .sl-status--off,
html.theme-light .admin-page--sabtr-lite .sl-status--off {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .admin-page--sabtr-lite .sl-status--on {
    color: #0f766e !important;
    background: rgba(15, 118, 110, 0.12) !important;
}

html.theme-light body.app-body--staging .hc-buceo-link {
    color: var(--sabtr-accent) !important;
}

html.theme-light body.app-body--staging .hc-buceo-link:hover {
    color: var(--sabtr-accent-hover) !important;
}

/* Meta / labels dispersos del dashboard y tablas */
html.theme-light .dashboard-panel-hint,
html.theme-light .dashboard-filter-label,
html.theme-light .filter-label,
html.theme-light .admin-label,
html.theme-light .admin-help,
html.theme-light .admin-input-tip,
html.theme-light .empty-state,
html.theme-light .empty-state p,
html.theme-light .chart-empty,
html.theme-light .resumen-card .section-title {
    color: var(--sabtr-text-muted) !important;
}

/* Header bitácora (tablet): mantener siempre oscuro, sin overrides del tema claro */
html.theme-light .tablet-topbar,
html.theme-dark .tablet-topbar {
    background: #0f2240 !important;
    color: #cfe5ff !important;
    border-bottom-color: #1e3d60 !important;
}

html.theme-light .tablet-topbar__title,
html.theme-dark .tablet-topbar__title {
    color: #ffffff !important;
}

html.theme-light .tablet-topbar__empresa,
html.theme-dark .tablet-topbar__empresa {
    color: #8fa8c4 !important;
}

html.theme-light .tablet-topbar__user,
html.theme-dark .tablet-topbar__user {
    color: #c0c7d3 !important;
}

html.theme-light .tablet-topbar__logout,
html.theme-dark .tablet-topbar__logout {
    color: #ffffff !important;
    border-color: #2a8ae0 !important;
}

/* Bitácora: contraste de textos en modo claro */
html.theme-light .bitacora-module,
html.theme-light .bitacora-module .admin-page-title,
html.theme-light .bitacora-module .admin-page-subtitle,
html.theme-light .bitacora-module .section-title,
html.theme-light .bitacora-module .bitacora-muted,
html.theme-light .bitacora-module .jaula-hint,
html.theme-light .bitacora-module .breadcrumb,
html.theme-light .bitacora-module .bitacora-crumb-sep,
html.theme-light .bitacora-module th[scope="row"],
html.theme-light .bitacora-cal__total,
html.theme-light .bitacora-cal__dow {
    color: var(--sabtr-text-muted) !important;
}

html.theme-light .bitacora-module .admin-page-title,
html.theme-light .bitacora-cal__title,
html.theme-light .bitacora-cal__num {
    color: var(--sabtr-text-strong) !important;
}

html.theme-light .bitacora-module .celda-readonly,
html.theme-light .bitacora-module .admin-table td,
html.theme-light .bitacora-module .admin-table th,
html.theme-light .bitacora-module .trabajo-chip,
html.theme-light .bitacora-module label,
html.theme-light .bitacora-cal__dive {
    color: var(--sabtr-text) !important;
}

html.theme-light .bitacora-module .breadcrumb a,
html.theme-light .bitacora-module .bitacora-text-link {
    color: var(--sabtr-accent) !important;
}

html.theme-light .bitacora-module .breadcrumb a:hover,
html.theme-light .bitacora-module .bitacora-text-link:hover {
    color: var(--sabtr-text-strong) !important;
}

html.theme-light .bitacora-module .jaula.selected {
    color: #123a5f !important;
}

html.theme-light .bitacora-module .admin-input,
html.theme-light .bitacora-module select.admin-input,
html.theme-light .bitacora-module textarea.admin-input {
    color: var(--sabtr-text) !important;
    background: var(--sabtr-input) !important;
    border-color: var(--sabtr-border) !important;
}

html.theme-light .bitacora-module .admin-input::placeholder,
html.theme-light .bitacora-module textarea.admin-input::placeholder {
    color: var(--sabtr-text-faint) !important;
    opacity: 1;
}

html.theme-light body.app-body--staging .bitacora-module .breadcrumb a,
html.theme-light body.app-body--staging .bitacora-module .bitacora-text-link {
    color: var(--sabtr-accent) !important;
}

html.theme-light body.app-body--staging .bitacora-module .bitacora-link-action {
    color: var(--sabtr-text) !important;
    background: var(--sabtr-surface-2) !important;
    border-color: var(--sabtr-border) !important;
}

/* Enlaces genéricos del contenido (no botones) */
html.theme-light .app-content a:not(.btn-primary):not(.btn-secondary):not(.admin-icon-btn):not([class*="bg-"]) {
    color: var(--sabtr-accent);
}

html.theme-light .app-content a:not(.btn-primary):not(.btn-secondary):not(.admin-icon-btn):hover {
    color: var(--sabtr-accent-hover);
}
