

:root[data-theme="dark"][data-theme="dark"][data-theme="dark"]{
  --dk-bg:#0a1220;
  --dk-panel:#131d33;
  --dk-panel-2:#182543;
  --dk-elevated:#1c2a4a;
  --dk-line:#2b3a58;
  --dk-line-soft:#223052;
  --dk-text:#e7ecf6;
  --dk-muted:#8b9cbe;
  --dk-muted-2:#67789c;
  --dk-blue:#5b9dff;
  --dk-blue-hover:#7db1ff;
  --dk-blue-dim:#2f4d80;
  --dk-blue-subtle:rgba(91,157,255,.16);
  --dk-red:#ff6b6f;
  --dk-red-subtle:rgba(255,107,111,.16);
  --dk-green:#34d399;
  --dk-green-subtle:rgba(52,211,153,.16);
  --dk-orange:#ffab5e;
  --dk-orange-subtle:rgba(255,171,94,.16);
  --dk-purple:#b48cff;
  --dk-purple-subtle:rgba(180,140,255,.16);
  --dk-focus-ring:rgba(91,157,255,.30);
  --dk-shadow-card:0 8px 22px rgba(0,0,0,.35);
  --dk-shadow-elevated:0 20px 50px rgba(0,0,0,.5);


  --sx-bg:var(--dk-bg);
  --sx-panel:var(--dk-panel);
  --sx-line:var(--dk-line);
  --sx-line-soft:var(--dk-line-soft);
  --sx-text:var(--dk-text);
  --sx-muted:var(--dk-muted);
  --sx-blue:var(--dk-blue);
  --sx-blue-dark:var(--dk-blue-hover);
  --sx-green:var(--dk-green);
  --sx-yellow:var(--dk-orange);
  --sx-orange:var(--dk-orange);
  --sx-red:var(--dk-red);
  --sx-purple:var(--dk-purple);
  --d-bg:var(--dk-bg);
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .page-body,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .main-content{
  background:var(--dk-bg)!important;
  color:var(--dk-text)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-sticky-footer{
  background:rgba(10,18,32,.94)!important;
  border-top-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h1,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h2,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h3,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h4,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h5,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] h6{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .text-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .small.text-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] small{
  color:var(--dk-muted)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .topbar.sj-topbar-v2{
  background:var(--dk-panel)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-topbar-menu-v2{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-topbar-menu-v2:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-page-heading{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-global-search{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-global-search input{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-global-search input::placeholder{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-global-search button{
  background:var(--dk-panel-2)!important;
  border-left-color:var(--dk-line)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-global-search button:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-icon-btn{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-icon-btn:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-box{ border-left-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-name{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-role{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-caret{ color:var(--dk-muted)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-theme-toggle{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-orange)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-theme-toggle:hover{ background:var(--dk-elevated)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-badge,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-notification-dot{ border-color:var(--dk-panel)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-menu{
  background:var(--dk-elevated)!important;
  border-color:var(--dk-line)!important;
  box-shadow:var(--dk-shadow-elevated)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-head{
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-marcar{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-marcar:hover{ color:var(--dk-blue-hover)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-limpiar{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-item{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-x{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-x:hover{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-item:hover{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-item.sx-noleida{ background:rgba(91,157,255,.08)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-ico{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-titulo{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-texto{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-fecha{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-imglink{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-bell-foot{ border-top-color:var(--dk-line)!important; background:var(--dk-panel-2)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-menu,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .dropdown-menu{
  background:var(--dk-elevated)!important;
  border-color:var(--dk-line)!important;
  box-shadow:var(--dk-shadow-elevated)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-menu .dropdown-header{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-menu .dropdown-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .dropdown-item{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-menu .dropdown-item:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .dropdown-item:hover{
  background:var(--dk-blue-subtle)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-user-menu .dropdown-divider,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .dropdown-divider{ border-color:var(--dk-line)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .section-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .semaforo-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .analytics-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .filters-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .detail-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-table-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .stat-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .tpl-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .panel-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .shadow-sm,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .tpl-item{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  box-shadow:var(--dk-shadow-card)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .card-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .card-footer,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .section-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .semaforo-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .analytics-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .card-body{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line-soft)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .section-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .semaforo-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .analytics-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-card h3{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .stat-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-stat .value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .fs-4,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .display-6{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .stat-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-stat .label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-stat,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-card{ border-color:var(--dk-line)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-primary,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-success,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-btn-primary,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-btn-primary{
  background:var(--dk-blue)!important;
  border-color:var(--dk-blue)!important;
  color:#071226!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-success:hover{
  background:var(--dk-blue-hover)!important;
  border-color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-danger{
  background:var(--dk-red)!important;
  border-color:var(--dk-red)!important;
  color:#2a0a0b!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-primary,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-secondary,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-success,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-danger,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-light,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-btn-secondary,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-btn-secondary{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-primary:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-success:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-outline-danger:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-light:hover{
  background:var(--dk-blue-subtle)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-close{ filter:invert(1) grayscale(1) opacity(.8)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .input-group-text,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="text"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="email"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="password"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="date"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="number"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="file"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] select{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-control:focus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-select:focus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input:focus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea:focus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] select:focus{
  border-color:var(--dk-blue)!important;
  box-shadow:0 0 0 3px var(--dk-focus-ring)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] ::placeholder{ color:var(--dk-muted-2)!important; opacity:1!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] textarea{ accent-color:var(--dk-blue); }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-clean td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-table td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-table td{
  color:var(--dk-text)!important;
  border-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table thead th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-clean thead th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-semaforo thead th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nx-table th{
  background:linear-gradient(90deg,#050b16 0%,#0d1a30 100%)!important;
  color:#e7ecf6!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body .page-body .table thead th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body .page-body table thead th{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table tbody tr:hover td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-hover tbody tr:hover td{
  background:var(--dk-panel-2)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .table-responsive{ background:transparent!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .bg-primary-subtle{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .bg-success-subtle{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .bg-danger-subtle{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .bg-warning-subtle{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-system-status{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-control-dashboard .sj-privacy-icon,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-control-dashboard .sj-privacy-value{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-control-dashboard .sj-privacy-value.text-danger{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sj-role-badge{ background:var(--dk-purple-subtle)!important; color:var(--dk-purple)!important; border-color:var(--dk-line)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-choice{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-choice.is-vigente{
  background:var(--dk-green-subtle)!important;
  border-color:var(--dk-green)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-choice.is-no-vigente{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-drop-zone{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-drop-zone.is-dragging{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upload-drop-zone.has-file{
  background:var(--dk-green-subtle)!important;
  border-color:var(--dk-green)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .list-group-item{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line-soft)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nav-tabs{ border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nav-tabs .nav-link{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nav-tabs .nav-link.active{
  color:var(--dk-blue)!important;
  background:var(--dk-panel)!important;
  border-color:var(--dk-line) var(--dk-line) var(--dk-panel)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert{
  border-color:var(--dk-line)!important;
  background:var(--dk-panel)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert-success{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert-danger{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert-warning{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .alert-info{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .progress,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-progress-wrap,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-progress,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-bar{ background:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .accordion-item{ background:var(--dk-panel)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .accordion-button{
  background:var(--dk-panel)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .accordion-button:not(.collapsed){
  background:var(--dk-panel-2)!important;
  color:var(--dk-blue)!important;
  box-shadow:none!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .accordion-button::after{ filter:invert(1) brightness(1.6); }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .modal-content{
  background:var(--dk-panel)!important;
  color:var(--dk-text)!important;
  box-shadow:var(--dk-shadow-elevated)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .modal-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .modal-footer{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .modal-title{ color:var(--dk-text)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-status{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-icon{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-icon.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-icon.err{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-icon.time{ background:var(--dk-purple-subtle)!important; color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-label{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-value{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-value.ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-value.err{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-kpi-value.time{ color:var(--dk-purple)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-page,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-val,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mini strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-gasto-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-gasto-val{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-card-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-sub2,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-footnote,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-lbl,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-field label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mini span{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-strip,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mini,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-check,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-info-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-highlight{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-card-head{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-kpi-item{ border-right-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-table th{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-table td{ color:var(--dk-text)!important; border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-table tbody tr:hover{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-field input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-field select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-field textarea{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-highlight-row{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-donut-inner{ background:var(--dk-panel)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-sticky-footer{ background:rgba(10,18,32,.92)!important; border-top-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pill{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pill.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pill.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pill.bad{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-gasto-row{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-gasto-track{ background:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-alert-red{ background:var(--dk-red-subtle)!important; border-color:var(--dk-red)!important; color:var(--dk-red)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-card .rx-card-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tabs,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-count-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-selected,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-dropdown,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-editor,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-tools,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-user-copy-note{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tabs,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-table-toolbar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-tools{
  border-bottom-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-option{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tab:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-option:hover{
  background:var(--dk-elevated)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tab.active{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue-dim)!important;
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-count-box strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-selection-mini,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-direccion-demanda,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-user-copy-note{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-count-box span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-option small,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-help,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-field-hint{
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-row-disabled{
  background:var(--dk-orange-subtle)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-row-disabled .rx-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-row-disabled td{
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-checkbox,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-check input[type="checkbox"]{
  accent-color:var(--dk-blue)!important;
  background-color:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-page .btn-primary{
  background:#2463b9!important;
  border-color:var(--dk-blue)!important;
  color:#fff!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-top{
  background:var(--dk-panel)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-top .sj-page-heading{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-main{ background:var(--dk-bg)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi-strip,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-alert-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-card-head{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-alert-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini-ttl,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini-val,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-td-n,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-bold{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-alert-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-alert-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-count span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-foot,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-year,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini-tot,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini-lbl,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-footer{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi{ border-right-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-kpi:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-row:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-alert-card:hover{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-head{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-foot{ border-top-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-foot strong{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-person-btn{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-chart{ border-left-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-head{ border-bottom-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-mini-bars{ border-bottom-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-tr-hito{ background:var(--dk-blue-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-tr-hito:hover{ background:rgba(91,157,255,.22)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-td-hito{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-td-e{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-tr-client td{ border-top-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-tr-client:nth-child(even) td{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-td-cl{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-ht-ch{ color:var(--dk-blue)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(2){ background:var(--dk-red-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(2) .d-sem-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(2) .d-sem-title span{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(2) .d-dot{ background:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(3){ background:var(--dk-orange-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(3) .d-sem-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(3) .d-sem-title span{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(3) .d-dot{ background:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(4),
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(5){ background:var(--dk-green-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(4) .d-sem-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(4) .d-sem-title span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(5) .d-sem-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(5) .d-sem-title span{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(4) .d-dot,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-list > div:nth-child(5) .d-dot{ background:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-row:hover{ filter:brightness(1.15)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-sem-pct{ color:var(--dk-text)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [class*="sx-"]{ color:var(--dk-text); }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-task-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi strong{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-card-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi small,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-field label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-empty{ color:var(--dk-muted)!important; }

:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpis,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-card{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}

:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-switch-wrap,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-page{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi{ border-right-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-btn.primary{ background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-btn.danger{ background:var(--dk-panel-2)!important; border-color:var(--dk-red)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-page.active{ background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#fff!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-table-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pagination{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-table th{
  background:var(--dk-panel)!important;
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-table td{
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-table tbody tr:hover td{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.bad{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.neutral{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.purple{ background:var(--dk-purple-subtle)!important; color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-avatar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-pill.dark{ background:#0B1F4D!important; color:#fff!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-upload,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-input-wrap{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-file-title{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-file-name{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-input-wrap input[type="text"],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-input-wrap input[type="file"]{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-drop-btn{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue-dim)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-drop-btn:hover{ background:rgba(91,157,255,.22)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-help-link{ color:var(--dk-blue)!important; }

:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="file"]::file-selector-button{
  background:var(--dk-panel-2);
  border:1px solid var(--dk-line);
  color:var(--dk-text);
  border-radius:4px;
  padding:5px 10px;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] input[type="file"]::file-selector-button:hover{ background:var(--dk-elevated); }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dias{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dias.ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dias.warn{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dias.bad{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dot.ok{ background:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dot.warn{ background:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dot.bad{ background:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-dot.neutral{ background:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; border-color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.err{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.pending{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; border-color:var(--dk-blue-dim)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .detail-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-card .detail-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-panel-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-extra-fields,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-sec-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-expand-footer{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .detail-head:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-card .detail-head:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-head:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-sec-head:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .form-panel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-form,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-link-block,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-modal-shell,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-agenda-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-body,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-mini-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-field-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-sugerencias,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rcp-sugerencias,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-ed-doc,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-preview,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-ed-sel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-otros-causa,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-delete-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-row-delete-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-edit-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-toolbar button{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-head small,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ea-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-help,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-mini-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .fecha-digit,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sync-line,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-type,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-folio-line,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .causa-identity-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .causa-identity-tribunal,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-section-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-help,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-field-card label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-collapse-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-mini-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-hint,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-meta,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-vacio,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2 .info-label{
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-value--strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-value--rut,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-main,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ea-val,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .field-group label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-mini-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-state-text,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-date-main,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-observation,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-address-view,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .causa-identity-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .causa-identity-rol,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-header .modal-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-form .field-group label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-form .form-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-form .form-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-agenda-field label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-agenda-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-link-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-ed-doc,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-preview,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-toolbar button,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-modal .modal-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-head strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-sug-nombre,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-autor,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-texto,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2 .info-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2 .info-value--strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2 .info-value--rut{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table tr:hover td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .btn-otros-causa:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-delete-btn:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-row-delete-btn:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-toolbar button:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-edit-btn:hover{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab-card{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.18)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-full-body,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab-panel{
  background:var(--dk-panel)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table th{
  background:var(--dk-panel-2)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table td{
  border-bottom-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .hist-table tbody tr:last-child td{
  border-bottom-color:transparent!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .tag-nuevo{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue-dim)!important;
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab.active{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue-dim)!important;
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab-count{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-tab.active .history-tab-count{ background:rgba(91,157,255,.18)!important; color:var(--dk-blue-hover)!important; }

:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-accion{
  background:linear-gradient(135deg,rgba(255,171,94,.10),rgba(255,171,94,.04))!important;
  border-color:rgba(255,171,94,.55)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-accion .avance-icon{ background:rgba(255,171,94,.14)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .avance-accion .avance-sub{ color:#ffc27d!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-edit-btn{
  color:var(--dk-blue)!important;
  border-color:var(--dk-blue-dim)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-edit-btn:hover{
  background:var(--dk-blue-subtle)!important;
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-row-delete-btn{
  color:var(--dk-red)!important;
  border-color:rgba(255,107,122,.35)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-row-delete-btn:hover{
  background:var(--dk-red-subtle)!important;
  color:var(--dk-red)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .modal-content,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .modal-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .modal-body,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .modal-footer{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito #escritoGestion{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .esc-sec{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .esc-sec-body{
  background:var(--dk-panel)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .form-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .modal-title{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito input[type="file"]::file-selector-button{
  background:var(--dk-elevated)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-primary{
  background:#2463b9!important;
  border-color:var(--dk-blue)!important;
  color:#fff!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-primary:hover{
  background:var(--dk-blue)!important;
  color:#071226!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-outline-primary{
  background:var(--dk-blue-subtle)!important;
  border-color:var(--dk-blue-dim)!important;
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-outline-danger{
  background:var(--dk-red-subtle)!important;
  border-color:rgba(255,107,122,.38)!important;
  color:var(--dk-red)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-success{
  background:#18794a!important;
  border-color:#35b979!important;
  color:#fff!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-success:disabled{
  background:var(--dk-elevated)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-muted)!important;
  opacity:1!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-outline-secondary{
  background:transparent!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #modalSubirEscrito .btn-close{
  filter:invert(1) grayscale(1)!important;
  opacity:.72!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-admin-pill{ background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-admin-pill.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-admin-pill.archived{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-admin-pill.neutral{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-badge{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-badge.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-config-empty{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .info-grid-compact-v2 .info-note{ background:var(--dk-orange-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-box{ background:var(--dk-blue-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-extra-msg{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-status.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-status.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-status.neutral{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-input.warn{ background:var(--dk-orange-subtle)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-save,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-edit-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-pdf-link{ color:var(--dk-blue)!important; background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .busqueda-cancel-btn{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-count{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-cuaderno-select{ border-color:var(--dk-line)!important; background:var(--dk-panel-2)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-agenda-summary{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-expand-btn{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-expand-btn:hover{ background:var(--dk-blue-subtle)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-modal .modal-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-modal .modal-footer{ background:var(--dk-panel)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-modal .modal-body{ background:var(--dk-bg)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-fields-grid,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .otros-field-card{ border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-count{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-sug-item:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-sug-item.activa{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-sug-email{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cmt-item{ border-top-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-tag{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-campo{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; border-color:var(--dk-blue-dim)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .esc-campo.marcado{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpis,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-mini-card{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpi{ border-right-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-card-head{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpi-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-user-main,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-mini-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table th:first-child,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table td:first-child{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpi-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-kpi-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-user-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-mini-text,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-empty{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-btn.primary{ background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-table th{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-table td{ color:var(--dk-text)!important; border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-table tbody tr:hover td{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table td{ color:var(--dk-text)!important; border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table .check{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .permissions-table .dash{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-pill{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; border-color:var(--dk-blue-dim)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-pill.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; border-color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-pill.off{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-pill.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-metric-row{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .admin-metric-row i{ color:var(--dk-blue)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-btn{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card-head{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-title{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-field label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-btn.primary{ background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-btn.dark{ background:#0B1F4D!important; border-color:#0B1F4D!important; color:#fff!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .small-link{ color:var(--dk-blue)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-strip,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .history-row{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-row:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .history-row:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-item{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-val{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-val.green{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-val.purple{ color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-val.orange{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-val.red{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-lbl,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .rp-kpi-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .history-meta,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .month-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .chart-legend,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .empty-note{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-title{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-icon,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .available-go,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .small-link{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .report-card .month-chart{ border-top-color:var(--dk-line-soft)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-topbar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-panel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-mini-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-edit-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-test-result{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-tabs,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-panel-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-mini-head{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-head h3,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-box h4,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-num,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row strong{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-field label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row small{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-tab{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-tab.active{ color:var(--dk-blue)!important; border-bottom-color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-info{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-field input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-field select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-field textarea{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-box{ border-color:var(--dk-line)!important; background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview-kpi{ border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-table-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-drag{ color:var(--dk-muted)!important; border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-name-main{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-name-sub{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-order-input{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-where-pill{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-where-pill.green{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-where-pill.purple{ background:var(--dk-purple-subtle)!important; color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-validation-row{ color:var(--dk-text)!important; border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-test-result{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #ruleRows .cfg-focus-row{ grid-template-columns:minmax(145px,1.15fr) minmax(100px,1fr) minmax(120px,1fr) minmax(130px,1fr) 56px!important; gap:10px!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #ruleRows .cfg-focus-row select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #ruleRows .cfg-focus-row input{ min-width:0!important; background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #ruleRows .cfg-test-btn{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-focus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-focus span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-focus strong{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-focus{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-kpi .cfg-preview-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-kpi .cfg-preview-sub{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview .cfg-preview-kpi .cfg-preview-num{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #previewFocus,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #previewFocus *{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #kpiRows .cfg-focus-row{ grid-template-columns:38px minmax(190px,1fr) 170px 140px!important; gap:12px!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #kpiRows .cfg-check{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] #kpiRows .cfg-name-main{ white-space:normal!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-access-page{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-access-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-user-pill{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-access-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-editor-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-desc{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-user-pill,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpis,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-row{ background:var(--dk-panel)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi{ border-right-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi strong{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi span{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-kpi small{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-head{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-row{ border-bottom-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-search-control{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-info-note{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status{ border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.neutral{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.custom{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.deny{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-status.info{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-desc code{ background:var(--dk-panel-2)!important; color:var(--dk-blue)!important; border-color:var(--dk-line)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-title{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-row:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-row.focus-pendiente-notificacion .d-focus-icon{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .d-focus-row.focus-pendiente-notificacion .d-focus-count strong{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-card{ background:var(--dk-panel)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-head{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-head strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-title{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-meta,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-form label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-item{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-form .form-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-form .form-select{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-status{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-status.done{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-toolbar{ border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-toolbar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-week span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-day.is-other{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-number{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-week span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-more{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-day{ background:var(--dk-panel)!important; border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-day.is-today{ box-shadow:inset 0 0 0 2px var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-event{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-event.tipo-plazo_judicial{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-event.tipo-audiencia{ background:rgba(180,140,255,.14)!important; color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-event.tipo-recordatorio{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .deadline-calendar-event.is-done{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-modal .modal-content,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-day{ background:var(--dk-panel)!important; color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-week span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-day.is-other{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-grid,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-day{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-day-number{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-day.is-today{ box-shadow:inset 0 0 0 2px var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.tipo-plazo_judicial{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.tipo-audiencia{ background:rgba(180,140,255,.14)!important; color:var(--dk-purple)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.tipo-recordatorio{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.is-done{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-editor{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-editor label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.tipo-reunion{ background:rgba(34,211,238,.12)!important; color:#67e8f9!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-calendar-event.tipo-feriado{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .filter-block,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .export-radio-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .auth-panel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .result-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .kpi-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .metric-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .edit-item{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .edit-card{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .edit-card-head{
  background:var(--dk-panel-2)!important;
  border-bottom-color:var(--dk-line-soft)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .edit-label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .edit-savebar{
  background:var(--dk-panel-2)!important;
  border-top-color:var(--dk-line-soft)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-op-btn{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-op-btn:hover{ background:var(--dk-elevated)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .preview-status{
  background:var(--dk-blue-subtle)!important;
  color:var(--dk-blue)!important;
  border-color:var(--dk-blue-dim)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .preview-status.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; border-color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .preview-status.error{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .preview-status.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-dot{ background:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-dot.running{ background:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-dot.error{ background:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-dot.done{ background:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-stage-badge,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-pill{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-pill.ok{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; border-color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-pill.error{ background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-pill.warn{ background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ops-pill.info{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; border-color:var(--dk-blue-dim)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-footer,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-body{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .estado-modal-close{ background-color:var(--dk-panel-2)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-alert,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-filter .input-group-text,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-filter .form-control{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-card-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-filter{ border-color:var(--dk-line-soft)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-kpi-value,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-kpi-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-card-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-name,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-order{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-kpi-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-code{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-alert i{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-order{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-table thead th{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-table tbody td{
  color:var(--dk-text)!important;
  border-bottom-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-table tbody tr:hover{ background:var(--dk-panel-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-pill{ background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-pill.success{ background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-pill.off{ background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-count{ background:var(--dk-blue)!important; color:#071226!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-count.orange{ background:var(--dk-orange)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] div:has(> .form-check > #chkReemplazar){
  background:var(--dk-orange-subtle)!important;
  border-color:var(--dk-orange)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] div:has(> .form-check > #chkReemplazar) .form-check-label{ color:var(--dk-orange)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] ::-webkit-scrollbar{ width:10px; height:10px; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] ::-webkit-scrollbar-track{ background:var(--dk-bg); }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] ::-webkit-scrollbar-thumb{ background:var(--dk-line); border-radius:6px; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] ::selection{ background:var(--dk-blue-subtle); color:var(--dk-text); }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mfa-panel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-hero,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-step{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mfa-secret,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .recovery-code,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-consent,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-switch,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-upload,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-kpi,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-status,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pay-gestion-chip,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-ring-inner,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .donut-inner{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-card-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-table td{
  border-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-table th{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-card-head h2,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-upload strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-kpi b{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-muted,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-kpi span,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-safe div{
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-step.active{
  border-color:var(--dk-blue)!important;
  color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pl-step.done{
  border-color:var(--dk-green)!important;
  color:var(--dk-green)!important;
}




:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .available-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ayuda-nav,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ayuda-ruta,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ayuda-seccion,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .campo-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-edit-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-focus-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-mini-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-panel,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-preview,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-test-result,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-topbar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .crear-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .crear-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .crear-intro,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-campo,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-doc,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-doc-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-hoja,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-seleccion,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ep-sidebar,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .error-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .exp-chip-active,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .exp-chip-avail,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .exp-chip-fixed,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .history-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-exhorto-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-exhorto-detail,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-sync-inline,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-wrap,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nexus-frame-wrap,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nexus-loading,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .nexus-offline,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .password-actions,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .password-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rp-kpi-strip,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-arancel-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-boleta-help,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-dropdown,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-list,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-option,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-count-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-filter-tabs,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-editor,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-tools,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pay-doc,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pay-doc-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-rule-clean,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-upload-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-user-copy-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .states-footer,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-alert,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-desc,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-info-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-mode-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-permission-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-result,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-results,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-steps,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-summary-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-summary-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .tpl-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-link,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-strip{
  background:var(--dk-panel)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .cfg-check,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-btn-light,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-cc-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-mail-selected,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .rx-pay-selected,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-module-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-page-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-page-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-search-control,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-select,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-selector-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .tpl-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-input,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-select{
  background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-footer-actions{
  background:rgba(19,29,51,.94)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sx-user-pill{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
  color:var(--dk-text)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-header,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-body{
  background:var(--dk-panel)!important; color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-divider,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-divider,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-footer-divider{
  background:var(--dk-line)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-badge,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input-group,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-icon-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-action-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-field input{
  background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input::placeholder,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-field input::placeholder{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-field label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-logo-brand{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-subtitle,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-logo-sub,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-footer{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-header{
  background:#001631!important;
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-login-header .sl-logo-top{
  content:url("../brand/logos/logo-reverso-fondo-azul.png?v=brand-20260811")!important;
  width:min(250px, 100%)!important;
  max-height:138px!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input{
  background:var(--dk-panel-2)!important;
  color:var(--dk-text)!important;
  caret-color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input:-webkit-autofill,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input:-webkit-autofill:hover,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--dk-text)!important;
  -webkit-box-shadow:0 0 0 1000px var(--dk-panel-2) inset!important;
  box-shadow:0 0 0 1000px var(--dk-panel-2) inset!important;
  transition:background-color 9999s ease-out 0s!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-input-group:focus-within{
  border-color:var(--dk-blue)!important;
  box-shadow:0 0 0 3px var(--dk-focus-ring)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-submit-btn{
  background:#0b2d68!important;
  color:#fff!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-submit-btn:hover{
  background:#123f86!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-forgot a{
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-toggle-btn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-icon-box,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .sl-action-box{ color:var(--dk-blue)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-page{
  background:transparent!important;
  border-color:transparent!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-breadcrumb{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-breadcrumb a{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-breadcrumb i{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-card{
  background:var(--dk-panel)!important;
  border-color:var(--dk-line)!important;
  box-shadow:var(--dk-shadow-card)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-card-head{
  border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-upload,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi{
  background:var(--dk-panel-2)!important;
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-file-icon.excel{
  background:var(--dk-green-subtle)!important; color:var(--dk-green)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-file-icon.word{
  background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-icon{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-icon.green,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-value.ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-icon.orange{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-icon.red,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-value.err{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-value{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-kpi-label{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-op-btn.dark,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-op-btn.primary:not(:disabled){
  background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas #processLabel{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-demandas .sx-table td{
  border-right-color:var(--dk-line-soft)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-page{
  background:transparent!important; border-color:transparent!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-breadcrumb{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-breadcrumb a{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-breadcrumb i{ color:var(--dk-muted-2)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-card,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-steps{
  background:var(--dk-panel)!important; border-color:var(--dk-line)!important; box-shadow:var(--dk-shadow-card)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-card-head,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-process-state,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-config-row{
  border-color:var(--dk-line-soft)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi{
  background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-escritos .sx-file-icon.excel{
  background:var(--dk-green-subtle)!important; color:var(--dk-green)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-escritos .sx-file-icon.word{
  background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-nexus-escritos .sx-file-icon.folder{
  background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-icon{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-icon.green,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-value.ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-icon.orange,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-value.time{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-icon.red,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-value.err{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-value{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-kpi-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .process-note,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .ops-progress-meta{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .process-label,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-detail-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-detail-row strong,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-activity-row,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-config-value{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-activity-row i.ok,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-config-ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-activity-row i.warn,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-config-warn{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-activity-row i.err{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-activity-row i.info{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-step-icon{
  background:var(--dk-panel-2)!important; color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-step.active .sx-step-icon{
  background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-step.done .sx-step-icon,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-step.done .sx-step-title{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-btn.dark,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-btn.primary:not(:disabled),
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-op-btn.dark,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-op-btn.primary:not(:disabled){
  background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body:is(.endpoint-nexus-distribucion,.endpoint-nexus-escritos) .sx-table td{ border-right-color:var(--dk-line-soft)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#071f4f" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#0d1b3d" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#102658" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#17305e" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#1d3153" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#1e3a5f" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#0d3770" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#1a3c5e" i]{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#0d57c7" i]{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#15803d" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#16a34a" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#059669" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#1a7a40" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#166534" i]{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#ef2432" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#dc2626" i]{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#ea7a00" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="color:#c2410c" i]{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#eef5ff" i]{ background:var(--dk-blue-subtle)!important; border-color:var(--dk-blue-dim)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#eaf8f0" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#f0fdf4" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#dcfce7" i]{ background:var(--dk-green-subtle)!important; border-color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#fff0f0" i]{ background:var(--dk-red-subtle)!important; border-color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#fff5e6" i],
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#fff7ed" i]{ background:var(--dk-orange-subtle)!important; border-color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] [style*="background:#f8fbff" i]{ background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] body.endpoint-firma-index .sx-page{
  background:transparent!important; border-color:transparent!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-card{
  background:var(--dk-panel)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-head{
  background:var(--dk-panel-2)!important; border-bottom-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-head h3,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-body{ color:var(--dk-text)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-consent{
  background:var(--dk-panel-2)!important; border-color:var(--dk-line)!important; color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-head p,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-foot{ color:var(--dk-muted)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-state{
  background:var(--dk-panel)!important; color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-state.ready{
  background:var(--dk-green-subtle)!important; color:var(--dk-green)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .ai-state.warn{
  background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-tab{
  background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-tab:hover{
  background:var(--dk-elevated)!important; color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-tab.is-active{
  background:var(--dk-blue)!important; color:#fff!important; border-color:var(--dk-blue)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-sync-inline{
  background:var(--dk-panel-2)!important; color:var(--dk-muted)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-badge-state{
  background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table thead tr,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table th{
  background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table td.td-folio,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table tbody tr{
  background:var(--dk-panel)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .mpjud-table tbody tr:hover td{
  background:var(--dk-panel-2)!important;
}


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-modal-table td{
  color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-modal-table th{
  background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .pjud-modal-title{ color:var(--dk-blue)!important; }


:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-item,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-card-head{
  border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-link:hover{
  background:var(--dk-elevated)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-val,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-title,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-tab.active{
  color:var(--dk-text)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-val.ok{ color:var(--dk-green)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-val.warn{ color:var(--dk-orange)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-val.err{ color:var(--dk-red)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-kpi-lbl,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-tab,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-empty,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-field label{
  color:var(--dk-muted)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-tab:hover:not(.active){
  color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-link{ color:var(--dk-blue)!important; }
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-btn.primary{
  background:var(--dk-blue)!important; border-color:var(--dk-blue)!important; color:#071226!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-btn.primary:hover{
  background:var(--dk-blue-hover)!important; border-color:var(--dk-blue-hover)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-btn.err{
  background:var(--dk-red-subtle)!important; border-color:var(--dk-red)!important; color:var(--dk-red)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-table th,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-jobs-compact th{
  background:var(--dk-panel-2)!important; color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-table td,
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-jobs-compact td{
  color:var(--dk-text)!important; border-color:var(--dk-line)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-pill{
  background:var(--dk-blue-subtle)!important; color:var(--dk-blue)!important; border-color:var(--dk-blue-dim)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-pill.ok{
  background:var(--dk-green-subtle)!important; color:var(--dk-green)!important; border-color:var(--dk-green)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-pill.warn{
  background:var(--dk-orange-subtle)!important; color:var(--dk-orange)!important; border-color:var(--dk-orange)!important;
}
:root[data-theme="dark"][data-theme="dark"][data-theme="dark"] .upd-pill.err{
  background:var(--dk-red-subtle)!important; color:var(--dk-red)!important; border-color:var(--dk-red)!important;
}
