/* RECUPERO BETA 1.0 — Dark theme final polish */
html[data-theme="dark"] .pf-back,
html[data-theme="dark"] #back-projects{
  background:#14263d !important;
  color:#eef5ff !important;
  border:1px solid #3a5876 !important;
  box-shadow:0 6px 18px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .pf-back:hover,
html[data-theme="dark"] #back-projects:hover{background:#1b314c !important;border-color:#55779a !important}
html[data-theme="dark"] .pf-table-wrap{background:#0f1c2d !important;border:1px solid #2a4059 !important;border-radius:14px}
html[data-theme="dark"] .pf-table{background:#0f1c2d !important;color:#eef5ff !important}
html[data-theme="dark"] .pf-table thead th{background:#13243a !important;color:#a8bad0 !important;border-bottom:1px solid #304a66 !important}
html[data-theme="dark"] .pf-table tbody td{background:#0f1c2d !important;color:#dce7f4 !important;border-top:1px solid #243b54 !important}
html[data-theme="dark"] .pf-table tbody tr:hover td{background:#162b43 !important}
html[data-theme="dark"] .pf-client-name{color:#f3f7ff !important}
html[data-theme="dark"] .pf-institution,
html[data-theme="dark"] .pf-credit,
html[data-theme="dark"] .pf-dui{color:#b8c8da !important}
html[data-theme="dark"] .pf-count,
html[data-theme="dark"] .pf-hint{color:#a6b8cc !important}
html[data-theme="dark"] .pf-search,
html[data-theme="dark"] .pf-select-filter{background:#0e1a2b !important;color:#f2f6fc !important;border-color:#36506f !important}

/* Dashboard — resultados total, tabla y gestor */
html[data-theme="dark"] .db-result-table thead th{background:#111f33 !important;color:#9fb2c8 !important;border-bottom-color:#2d4562 !important}
html[data-theme="dark"] .db-result-table tbody td{background:#111f33 !important;color:#d9e5f2 !important;border-bottom-color:#29415d !important}
html[data-theme="dark"] .db-result-table tbody tr:hover td{background:#172b43 !important}
html[data-theme="dark"] .db-result-table tfoot td{background:#1b2c43 !important;color:#f3f7ff !important;border-top:1px solid #3a5572 !important}
html[data-theme="dark"] .db-result-table-name strong{color:#eef5ff !important}
html[data-theme="dark"] .db-result-pct{color:#dbe7f4 !important}
html[data-theme="dark"] .db-result-mini-track{background:#24394f !important}
html[data-theme="dark"] .db-rank-row:hover{background:#172b43 !important}
html[data-theme="dark"] .db-rank-pos{color:#9fb2c8 !important}
html[data-theme="dark"] .db-rank-avatar{background:linear-gradient(135deg,#1c3552,#27476d) !important;color:#dfeaff !important;border:1px solid #3a5a7c}
html[data-theme="dark"] .db-rank-head strong{color:#eef5ff !important}
html[data-theme="dark"] .db-rank-head b{color:#f3f7ff !important}
html[data-theme="dark"] .db-rank-track{background:#253b54 !important}
html[data-theme="dark"] .db-rank-foot{color:#a0b2c6 !important}
html[data-theme="dark"] .db-priority-card,
html[data-theme="dark"] .db-priority-item{background:#122238 !important;border-color:#304a66 !important;color:#edf4fc !important}
html[data-theme="dark"] .db-priority-card:hover,
html[data-theme="dark"] .db-priority-item:hover{background:#172d46 !important;border-color:#476788 !important}
html[data-theme="dark"] .db-priority-card>div span{color:#9db0c5 !important}
html[data-theme="dark"] .db-priority-card>div strong{color:#f3f7ff !important}
html[data-theme="dark"] .db-priority-card>div small{color:#9eb1c7 !important}
html[data-theme="dark"] .db-priority-copy strong{color:#edf4fc !important}
html[data-theme="dark"] .db-priority-copy small,
html[data-theme="dark"] .db-priority-type{color:#9fb2c8 !important}
html[data-theme="dark"] .db-priority-type{background:#1a3048 !important}

/* Centro de notificaciones */
html[data-theme="dark"] .notification-panel{background:#0f1d2f !important;color:#eef5ff !important;border-color:#344d68 !important;box-shadow:0 24px 70px rgba(0,0,0,.48) !important}
html[data-theme="dark"] .notification-head{background:#12233a !important;border-bottom-color:#2b435e !important}
html[data-theme="dark"] .notification-head strong{color:#f3f7ff !important}
html[data-theme="dark"] .notification-item{background:#0f1d2f !important;color:#eef5ff !important;border-bottom-color:#273f59 !important}
html[data-theme="dark"] .notification-item:hover,
html[data-theme="dark"] .notification-item.unread{background:#172b43 !important}
html[data-theme="dark"] .notification-copy strong{color:#f1f6fd !important}
html[data-theme="dark"] .notification-copy small{color:#a4b6ca !important}
html[data-theme="dark"] .notification-copy em{color:#8196ad !important}
html[data-theme="dark"] .notification-empty{background:#0f1d2f !important;color:#9fb2c8 !important}
html[data-theme="dark"] .notification-type{border:1px solid #35506d !important}

/* Configuración / Apariencia — evitar superficies blancas residuales */
html[data-theme="dark"] .settings-sidebar,
html[data-theme="dark"] .settings-sidebar-head,
html[data-theme="dark"] .settings-sidebar-foot,
html[data-theme="dark"] .settings-main .panel,
html[data-theme="dark"] .appearance-hero,
html[data-theme="dark"] .appearance-card,
html[data-theme="dark"] .appearance-footer,
html[data-theme="dark"] .system-card,
html[data-theme="dark"] .theme-option,
html[data-theme="dark"] .appearance-preview,
html[data-theme="dark"] .font-preview,
html[data-theme="dark"] .background-note,
html[data-theme="dark"] .color-value{
  background:#111f33 !important;
  color:#eef5ff !important;
  border-color:#2d4562 !important;
}
html[data-theme="dark"] .settings-nav-btn{background:transparent !important;color:#a9bad0 !important}
html[data-theme="dark"] .settings-nav-btn:hover{background:#172b43 !important}
html[data-theme="dark"] .settings-nav-btn.active{background:#1a2f49 !important}
html[data-theme="dark"] .settings-nav-btn strong{color:#edf4fc !important}
html[data-theme="dark"] .settings-nav-btn small{color:#9eb1c6 !important}
html[data-theme="dark"] .settings-sidebar-head strong,
html[data-theme="dark"] .settings-section-heading h3,
html[data-theme="dark"] .settings-section-heading p,
html[data-theme="dark"] .appearance-copy h3,
html[data-theme="dark"] .appearance-copy p,
html[data-theme="dark"] .appearance-card h3,
html[data-theme="dark"] .appearance-card p{color:#eef5ff !important}
html[data-theme="dark"] .theme-option strong{color:#edf4fc !important}
html[data-theme="dark"] .theme-option small{color:#9eb1c6 !important}
html[data-theme="dark"] .appearance-preview{background:linear-gradient(135deg,#13243a,#0e1c2c) !important}
html[data-theme="dark"] .appearance-preview-body div{background:#182b43 !important;border-color:#304963 !important}

/* Final dark surfaces for remaining dashboard/settings fragments */
html[data-theme="dark"] .db-panel,
html[data-theme="dark"] .db-kpi,
html[data-theme="dark"] .db-kpi-strip .db-kpi,
html[data-theme="dark"] .db-priority-grid{background:#111f33!important;border-color:#2d4562!important;color:#eef5ff!important}
html[data-theme="dark"] .db-panel-head{border-bottom-color:#2d4562!important}
html[data-theme="dark"] .db-panel-head h3,
html[data-theme="dark"] .db-panel-head p,
html[data-theme="dark"] .db-panel-subtitle{color:#eef5ff!important}
html[data-theme="dark"] .db-panel-subtitle{color:#9fb2c8!important}
html[data-theme="dark"] .db-filters,
html[data-theme="dark"] .db-header-controls .db-control-group label{color:#b7c7da!important}
html[data-theme="dark"] .db-result-table tfoot td:first-child{background:#1c2f47!important}
html[data-theme="dark"] .db-result-table tfoot td{background:#1c2f47!important}
html[data-theme="dark"] .notification-head .compact-link{color:#8fb8ff!important}
html[data-theme="dark"] .notification-list::-webkit-scrollbar-track{background:#0c1727}
html[data-theme="dark"] .notification-list::-webkit-scrollbar-thumb{background:#334e6b;border-radius:10px}
html[data-theme="dark"] .pf-table-wrap::-webkit-scrollbar-track{background:#0c1727}
html[data-theme="dark"] .pf-table-wrap::-webkit-scrollbar-thumb{background:#334e6b;border-radius:10px}
