/* ==========================================================================
   LDR Workspace - Design Tokens & Theme Variables (Light & Dark)
   ========================================================================== */

:root {
  /* Brand & Headers - Sistema Base Azul Morado (#6b75eb) */
  --color-header: #6b75eb;
  --color-primary: #6b75eb;
  --color-primary-hover: #5660dd;
  --color-primary-rgb: 107, 117, 235;
  --color-secondary: #858ff5;
  --color-secondary-rgb: 133, 143, 245;
  --color-accent-blue: #4f5bd8;
  --color-accent-purple: #858ff5;
  --brand-gradient: linear-gradient(135deg, #505bd8 0%, #6b75eb 50%, #8791f8 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(107, 117, 235, 0.08) 0%, rgba(135, 145, 248, 0.08) 100%);

  /* App Backgrounds & Canvas */
  --bg-app: #f4f6fb;
  --bg-canvas: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8f9ff;
  --bg-surface-hover: #f1f3fd;

  /* Sidebar / Nav */
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: rgba(107, 117, 235, 0.08);
  --bg-header-gradient-start: #505bd8;
  --bg-header-gradient-end: #6b75eb;

  /* Typography / Text */
  --text-primary: #1e1b4b;
  --text-secondary: #6b75eb;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --text-heading: #0f172a;

  /* Borders & Dividers */
  --border-color: rgba(107, 117, 235, 0.16);
  --border-color-subtle: rgba(107, 117, 235, 0.08);
  --border-strong: #6b75eb;

  /* Form Elements */
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-border-focus: #6b75eb;
  --input-text: #1e1b4b;
  --input-placeholder: #94a3b8;

  /* Cards & Containers */
  --card-bg: #ffffff;
  --card-border: rgba(107, 117, 235, 0.12);
  --card-shadow: 0 4px 14px rgba(107, 117, 235, 0.08);

  /* Modals & Dropdowns */
  --modal-bg: #ffffff;
  --modal-header-bg: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%);
  --modal-header-text: #ffffff;
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(107, 117, 235, 0.16);
  --dropdown-hover: #f5f3ff;

  /* Tables */
  --table-bg: #ffffff;
  --table-striped-bg: rgba(107, 117, 235, 0.03);
  --table-hover-bg: rgba(107, 117, 235, 0.06);
  --table-border: rgba(107, 117, 235, 0.12);
  --table-header-bg: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%);
  --table-header-text: #ffffff;

  /* Scrollbars */
  --scrollbar-thumb: #6b75eb99;
  --scrollbar-track: rgba(107, 117, 235, 0.05);

  /* Theme transition speed */
  --theme-transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   Dark Theme Definition - Azul Morado (#6b75eb) Luminoso
   ========================================================================== */
html[data-theme="dark"],
[data-theme="dark"] {
  /* Brand & Headers - Azul Morado (#6b75eb) Luminoso */
  --color-header: #121424;
  --color-primary: #6b75eb;
  --color-primary-hover: #8791f8;
  --color-primary-rgb: 107, 117, 235;
  --color-secondary: #9da6f8;
  --color-secondary-rgb: 157, 166, 248;
  --color-accent-blue: #6b75eb;
  --color-accent-purple: #9da6f8;
  --brand-gradient: linear-gradient(135deg, #363ca8 0%, #505bd8 50%, #6b75eb 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(107, 117, 235, 0.2) 0%, rgba(135, 145, 248, 0.2) 100%);

  /* Bootstrap variables adaptadas al modo oscuro */
  --bs-body-bg: #121624;
  --bs-body-color: #f8fafc;

  /* App Backgrounds & Canvas - Tono nocturno con sutil matiz azul-morado */
  --bg-app: #0b0d17;
  --bg-canvas: #0b0d17;
  --bg-surface: #121624;
  --bg-surface-elevated: #191e32;
  --bg-surface-hover: #232a46;

  /* Sidebar / Nav */
  --bg-sidebar: #0e111d;
  --bg-sidebar-hover: rgba(107, 117, 235, 0.1);
  --bg-header-gradient-start: #1b1e45;
  --bg-header-gradient-end: #272c63;

  /* Typography / Text */
  --text-primary: #e8ebff;
  --text-secondary: #9da6f8;
  --text-muted: #6b75eb99;
  --text-inverse: #0f172a;
  --text-heading: #f8fafc;

  /* Borders & Dividers */
  --border-color: rgba(107, 117, 235, 0.2);
  --border-color-subtle: rgba(107, 117, 235, 0.1);
  --border-strong: #6b75eb;

  /* Form Elements */
  --input-bg: #141829;
  --input-border: #28304c;
  --input-border-focus: #6b75eb;
  --input-text: #f1f5f9;
  --input-placeholder: #64748b;

  /* Cards & Containers */
  --card-bg: #121624;
  --card-border: rgba(107, 117, 235, 0.16);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

  /* Modals & Dropdowns */
  --modal-bg: #121624;
  --modal-header-bg: linear-gradient(135deg, #2b3180 0%, #4a54c9 100%);
  --modal-header-text: #ffffff;
  --dropdown-bg: #121624;
  --dropdown-border: rgba(107, 117, 235, 0.22);
  --dropdown-hover: #1e243a;

  /* Tables */
  --table-bg: #121624;
  --table-striped-bg: rgba(107, 117, 235, 0.035);
  --table-hover-bg: rgba(107, 117, 235, 0.08);
  --table-border: rgba(107, 117, 235, 0.15);
  --table-header-bg: linear-gradient(135deg, #2b3180 0%, #4a54c9 100%);
  --table-header-text: #ffffff;

  /* Scrollbars */
  --scrollbar-thumb: #6b75eb77;
  --scrollbar-track: rgba(11, 13, 23, 0.8);
}

/* ==========================================================================
   Structural Theme Bindings
   ========================================================================== */

/* Smooth transitions for theme switching */
body,
.principalcontenedorcontenido,
.contenedorcontenidointerfaz,
.modal-content,
.card,
.table,
.principalseccionusuinfo,
.principalmenu {
  transition: var(--theme-transition);
}

/* Global scrollbars adhering to theme */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track) !important;
}

/* Base Body & App Canvas */
body.body-color,
.body-color {
  background-color: var(--bg-app) !important;
  color: var(--text-primary);
}

.principalcontenedorcontenido {
  background-color: var(--bg-app) !important;
}

.contenedorcontenidointerfaz {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary);
}

/* Sidebar user info card */
html[data-theme="dark"] .principalseccionusuinfo {
  background: var(--bg-sidebar) !important;
  border-bottom: 1px solid var(--border-color);
}

/* Standard cards & surfaces in dark mode */
html[data-theme="dark"] .card {
  background-color: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  color: var(--text-primary) !important;
}

/* ==========================================================================
   Estructura Global de Modales (Unificada Light & Dark Mode)
   ========================================================================== */
.modal-header-icon-box,
.modal-icon-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 8px !important;
  background-color: #6b75eb !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}

.modal-header-icon-box i,
.modal-icon-badge i,
.modal-header-icon-box svg,
.modal-icon-badge svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Envolver automáticamente cualquier ícono suelto dentro del encabezado del modal */
.modal-header .modal-title > i:first-child:not(.modal-header-icon-box i),
.modal-header h5 > i:first-child:not(.modal-header-icon-box i),
.modal-header h1 > i:first-child:not(.modal-header-icon-box i),
.modal-header h2 > i:first-child:not(.modal-header-icon-box i),
.modal-header h3 > i:first-child:not(.modal-header-icon-box i),
.modal-header h4 > i:first-child:not(.modal-header-icon-box i) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 8px !important;
  background-color: #6b75eb !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  margin-right: 0.65rem !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}

/* Subcards dentro de modales (e.g. atributos foto/firma, formularios divididos) */
.modal-subcard {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.modal-subcard-title {
  color: var(--text-heading, #1e293b);
  font-size: 0.95rem;
}

.modal-subcard-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
}

.modal-firma-preview {
  background: #ffffff;
  border-color: #e2e8f0 !important;
}

/* Modales en Modo Oscuro */
html[data-theme="dark"] .modal-content {
  background-color: #141824 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-header.bg-white,
html[data-theme="dark"] .modal-header.bg-light {
  background-color: #10131c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .modal-header h1,
html[data-theme="dark"] .modal-header h2,
html[data-theme="dark"] .modal-header h3,
html[data-theme="dark"] .modal-header h4,
html[data-theme="dark"] .modal-header h5,
html[data-theme="dark"] .modal-header h6,
html[data-theme="dark"] .modal-header .modal-title,
html[data-theme="dark"] .modal-header .text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .modal-header .btn-close,
html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 0.85 !important;
}
html[data-theme="dark"] .modal-header .btn-close:hover,
html[data-theme="dark"] .btn-close:hover {
  opacity: 1 !important;
}

html[data-theme="dark"] .modal-header div[style*="background-color: #dee2e6"],
html[data-theme="dark"] .modal-header div[style*="background-color:#dee2e6"] {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .modal-body {
  background-color: #141824 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .modal-subcard,
html[data-theme="dark"] .modal-body .card,
html[data-theme="dark"] .modal-body .bg-light {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .modal-subcard-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .modal-subcard-subtitle,
html[data-theme="dark"] .modal-body .text-muted,
html[data-theme="dark"] .modal-body label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .modal-firma-preview {
  background: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .modal-footer.bg-light,
html[data-theme="dark"] .modal-footer.bg-white {
  background-color: #10131c !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .modal-footer .btn-outline-secondary,
html[data-theme="dark"] .modal-footer .btn-light,
html[data-theme="dark"] .modal-footer .btn-secondary {
  background-color: #1e2433 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .modal-footer .btn-outline-secondary:hover,
html[data-theme="dark"] .modal-footer .btn-light:hover,
html[data-theme="dark"] .modal-footer .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* Botón principal del modal */
.modal-footer .btn-primary,
html[data-theme="dark"] .modal-footer .btn-primary {
  background-color: #6b75eb !important;
  border-color: #6b75eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}
.modal-footer .btn-primary:hover,
html[data-theme="dark"] .modal-footer .btn-primary:hover {
  background-color: #555fd6 !important;
  border-color: #555fd6 !important;
}

/* Forms & Inputs */
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] select.form-select,
html[data-theme="dark"] textarea.form-control {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--input-text) !important;
}

html[data-theme="dark"] input.form-control:focus,
html[data-theme="dark"] select.form-select:focus,
html[data-theme="dark"] textarea.form-control:focus {
  border-color: var(--input-border-focus) !important;
  box-shadow: 0 0 0 0.25rem rgba(123, 151, 182, 0.25) !important;
}

html[data-theme="dark"] input.form-control::placeholder,
html[data-theme="dark"] textarea.form-control::placeholder {
  color: var(--input-placeholder) !important;
}

/* Tables (Universal Dark Mode & Hover Rules) */
html[data-theme="dark"] .table {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  --bs-table-bg: #141824 !important;
  --bs-table-color: #ffffff !important;
  --bs-table-hover-bg: rgba(107, 117, 235, 0.2) !important;
  --bs-table-hover-color: #ffffff !important;
}

html[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: #141824 !important;
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .table thead,
html[data-theme="dark"] .table thead tr,
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table thead.bg-light,
html[data-theme="dark"] .table thead .bg-light {
  background-color: #10131c !important;
  color: #94a3b8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #171b26 !important;
}

/* TABLE HOVER UNIVERSAL (Protegido contra fondos claros o blancos) */
html[data-theme="dark"] .table-hover > tbody > tr:hover,
html[data-theme="dark"] .table-hover > tbody > tr:hover > *,
html[data-theme="dark"] .table tbody tr:hover,
html[data-theme="dark"] .table tbody tr:hover > *,
html[data-theme="dark"] table.table tr:hover,
html[data-theme="dark"] table.table tr:hover > *,
html[data-theme="dark"] .ho_tr:hover,
html[data-theme="dark"] .ho_tr:hover > * {
  background-color: rgba(107, 117, 235, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover td,
html[data-theme="dark"] .table-hover > tbody > tr:hover th,
html[data-theme="dark"] .table-hover > tbody > tr:hover span:not(.badge),
html[data-theme="dark"] .table-hover > tbody > tr:hover div:not(.badge),
html[data-theme="dark"] .table-hover > tbody > tr:hover p {
  color: #ffffff !important;
}

/* Dropdowns */
html[data-theme="dark"] .dropdown-menu {
  background-color: var(--dropdown-bg) !important;
  border-color: var(--dropdown-border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .dropdown-item {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background-color: var(--dropdown-hover) !important;
  color: var(--text-heading) !important;
}

/* Header & Breadcrumb Dark Mode */
html[data-theme="dark"] .contenedorbreadcrumb {
  background: rgba(18, 24, 32, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .titulobreadcrumb {
  color: var(--text-heading) !important;
  border-left-color: rgba(255, 255, 255, 0.15) !important;
  border-right-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .opcionesheader,
html[data-theme="dark"] .navbar-nav .nav-link {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .opcionesheader:hover,
html[data-theme="dark"] .navbar-nav .nav-link:hover,
html[data-theme="dark"] .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

html[data-theme="dark"] .navbar-nav .nav-link::after {
  background: var(--color-primary) !important;
}

html[data-theme="dark"] .contenedornombreavatarheader .text-c,
html[data-theme="dark"] .contenedornombreavatarheader .text-blanco.text-c {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedornombreavatarheader .text-xc,
html[data-theme="dark"] .contenedornombreavatarheader .text-blanco.text-xc {
  color: #a5b4fc !important;
}

/* Floating Action / Theme Switcher Button */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1b1b23;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  padding: 0;
  margin-right: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

html[data-theme="dark"] .btn-theme-toggle {
  background: rgba(30, 38, 51, 0.7);
  border-color: var(--border-color);
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .btn-theme-toggle:hover {
  background: rgba(45, 55, 72, 0.9);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* ==========================================================================
   Inicio (Dashboard) Dark Mode
   ========================================================================== */
html[data-theme="dark"] .contenedoropcioninicio {
  background: rgba(23, 29, 38, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .contenedoropcioninicio:hover {
  background: rgba(32, 41, 54, 0.9) !important;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .titulocontenedoropcioninicio {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .subtitulo-opcion-inicio {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .contenedoropcioninicio.card-disabled {
  background: rgba(23, 29, 38, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   AI Chat Assistant Dark Mode
   ========================================================================== */
html[data-theme="dark"] {
  --ai-primary: #818cf8;
  --ai-primary-hover: #a5b4fc;
  --ai-primary-light: rgba(99, 102, 241, 0.22);
  --ai-primary-tint: rgba(99, 102, 241, 0.12);
  --ai-blue-send: #4f46e5;
  --ai-blue-send-hover: #4338ca;
  --ai-surface: #101423;
  --ai-bg-subtle: #192035;
  --ai-border: rgba(255, 255, 255, 0.1);
  --ai-border-light: rgba(255, 255, 255, 0.07);
  --ai-text-main: #f8fafc;
  --ai-text-muted: #94a3b8;
  --ai-text-subtle: #64748b;
}

html[data-theme="dark"] .ai-chat-floating-btn {
  background: #171b30 !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .ai-chat-window {
  background: #101423 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .ai-chat-header,
html[data-theme="dark"] .ai-chat-sidebar,
html[data-theme="dark"] .ai-chat-bottom-dock,
html[data-theme="dark"] .ai-sidebar-footer {
  background: #13182b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ai-chat-main-area,
html[data-theme="dark"] .ai-chat-layout-body {
  background: #0d111d !important;
}

html[data-theme="dark"] .ai-input-pill-container {
  background: #192035 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .ai-chat-input-field {
  color: #ffffff !important;
}

html[data-theme="dark"] .ai-welcome-bubble,
html[data-theme="dark"] .ai-message-row.assistant .ai-message-bubble {
  background: #171d30 !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ai-shortcut-card {
  background: #14192b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ai-shortcut-card:hover {
  background: #1b223d !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
}

/* ==========================================================================
   Inicio de Sesión (Login - default.php) Dark Mode
   ========================================================================== */
html[data-theme="dark"] .inisesioncontenedor {
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(8, 10, 18, 0.97) 0%,
      rgba(10, 14, 25, 0.94) 55%,
      rgba(14, 19, 36, 0.88) 75%,
      rgba(18, 25, 46, 0.72) 88%,
      rgba(16, 22, 42, 0.45) 100%
    ),
    url("../img/fondos/poligon.jpg") !important;
}

html[data-theme="dark"] .inisesioncuadro {
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .inisesionformulario {
  background: rgba(14, 18, 32, 0.38) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .inisesioninformacion {
  background-color: #0b0e1b !important;
}

html[data-theme="dark"] .inisesioninformacion .inisesionimgs {
  filter: brightness(0.92) contrast(1.05);
}

html[data-theme="dark"] .inisesioncontra {
  background: rgba(14, 18, 32, 0.38) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .inisesioninputs {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .inisesioninputs:focus-within {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28) !important;
}

html[data-theme="dark"] .inisesioninputs .input-group-text {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #a5b4fc !important;
}

html[data-theme="dark"] .inisesioninputs .input-group-text i {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .inisesioninputs .form-floating label {
  color: rgba(255, 255, 255, 0.65) !important;
}

html[data-theme="dark"] .inisesioninputs .form-control:focus ~ label,
html[data-theme="dark"] .inisesioninputs .form-control:not(:placeholder-shown) ~ label {
  color: #818cf8 !important;
}

html[data-theme="dark"] .inisesionolvidaste {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .inisesionolvidaste:hover {
  color: #c7d2fe !important;
}

html[data-theme="dark"] .inisesionbtnini {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .inisesionbtnini:hover {
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.6) !important;
}

html[data-theme="dark"] .continuarsinbtnini {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .continuarsinbtnini:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .politicasdeprivacidad {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .politicasdeprivacidad:hover {
  color: #f8fafc !important;
}

html[data-theme="dark"] .inisesionimgfondo {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html[data-theme="dark"] .inisesionimgfondo:hover {
  opacity: 1;
}

.inisesion-theme-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 25px !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 1.15rem !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}

html[data-theme="dark"] .inisesion-theme-toggle {
  background: rgba(22, 28, 48, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   Directorio de Colaboradores Dark Mode
   ========================================================================== */
html[data-theme="dark"] {
  --dir-primary: #8791f8;
  --dir-primary-hover: #a5b4fc;
  --dir-primary-light: rgba(107, 117, 235, 0.25);
  --dir-surface: #141824;
  --dir-surface-subtle: #1a2030;
  --dir-border: rgba(255, 255, 255, 0.2);
  --dir-border-hover: rgba(107, 117, 235, 0.5);
  --dir-text-main: #ffffff;
  --dir-text-muted: #cbd5e1;
  --dir-text-subtle: #94a3b8;
  --dir-shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.5);
  --dir-shadow-md: 0 8px 20px -3px rgba(0, 0, 0, 0.6);
  --dir-shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .colaborador-card-wrapper {
  background: #141824 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="dark"] .card-view-expanded {
  background: rgba(20, 24, 36, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.75),
    0 10px 20px -5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .card-expanded-header-bar {
  background: #10131c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .expanded-header-title {
  color: #8791f8 !important;
}

html[data-theme="dark"] .expanded-header-title .pulse-dot {
  background-color: #8791f8 !important;
  box-shadow: 0 0 0 2px rgba(135, 145, 248, 0.3) !important;
}

html[data-theme="dark"] .expanded-header-num {
  color: #ffffff !important;
  background: rgba(107, 117, 235, 0.35) !important;
  border: 1px solid rgba(107, 117, 235, 0.5) !important;
}

html[data-theme="dark"] .expanded-colab-name,
html[data-theme="dark"] .compact-colab-name {
  color: #ffffff !important;
}

html[data-theme="dark"] .expanded-colab-role,
html[data-theme="dark"] .compact-colab-role {
  color: #8791f8 !important;
}

html[data-theme="dark"] .expanded-submeta-chips {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .expanded-submeta-chip i {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .expanded-section-title {
  color: #8791f8 !important;
}

html[data-theme="dark"] .estructura-reporte-box {
  background: #1b202e !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .estructura-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .estructura-value {
  color: #ffffff !important;
}

html[data-theme="dark"] .canal-card-pill {
  background: #1b202e !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .canal-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .canal-value {
  color: #ffffff !important;
}

html[data-theme="dark"] .canal-icon-circle.email-icon {
  background: rgba(107, 117, 235, 0.25) !important;
  color: #8791f8 !important;
}

html[data-theme="dark"] .canal-icon-circle.phone-icon {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
}

html[data-theme="dark"] .btn-copy-clip {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-copy-clip:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .card-expanded-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .btn-collapse-card {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-collapse-card:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-dir-organigrama {
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  border-color: #6b75eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-dir-primary,
html[data-theme="dark"] .colaborador-card-wrapper .btn-ver-ficha-footer.btnacercadelaborador {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Modal Ver Ficha del Colaborador (Light & Dark Mode)
   ========================================================================== */
.ficha-colab-avatar {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%);
  font-size: 1.5rem;
  font-weight: 600;
}

.ficha-colab-name {
  color: var(--text-heading);
  font-size: 1.35rem;
}

.ficha-colab-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  border: 1px solid rgba(107, 117, 235, 0.3) !important;
  background-color: rgba(107, 117, 235, 0.1) !important;
  border-radius: 30px;
}

.ficha-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
}

.ficha-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ficha-info-label i {
  color: var(--color-primary);
  font-size: 0.95rem;
}

.ficha-info-value {
  color: var(--text-heading);
  font-size: 0.85rem;
}

.ficha-section-title {
  color: var(--text-heading);
  font-size: 0.9rem;
}

.ficha-section-title i {
  color: var(--color-primary);
}

.ficha-textarea-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.ficha-doc-empty {
  border-color: var(--border-color) !important;
  border-style: dashed !important;
  border-width: 2px !important;
  border-radius: 12px;
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
}

.ficha-header-border {
  border-color: var(--border-color) !important;
}

.ficha-text-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ficha-link-whatsapp {
  color: #10b981;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.ficha-link-whatsapp:hover {
  color: #059669;
  text-decoration: underline !important;
}

.ficha-link-email {
  color: var(--color-primary);
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.ficha-link-email:hover {
  color: var(--color-primary-hover);
  text-decoration: underline !important;
}

/* Modal Ver Ficha en Modo Oscuro */
html[data-theme="dark"] #modalinformaciondirectoriocolaborador .modal-content {
  background: #141824 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #modalinformaciondirectoriocolaborador .modal-header,
html[data-theme="dark"] #modalinformaciondirectoriocolaborador .modal-footer {
  background: #10131c !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .ficha-colab-name {
  color: #ffffff !important;
}

html[data-theme="dark"] .ficha-colab-badge {
  color: #ffffff !important;
  background-color: rgba(107, 117, 235, 0.35) !important;
  border: 1px solid rgba(107, 117, 235, 0.6) !important;
}

html[data-theme="dark"] .ficha-info-card,
html[data-theme="dark"] .ficha-textarea-box {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .ficha-info-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .ficha-info-label i {
  color: #8791f8 !important;
}

html[data-theme="dark"] .ficha-info-value {
  color: #ffffff !important;
}

html[data-theme="dark"] .ficha-link-whatsapp {
  color: #34d399 !important;
}
html[data-theme="dark"] .ficha-link-whatsapp:hover {
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .ficha-link-email {
  color: #8791f8 !important;
}
html[data-theme="dark"] .ficha-link-email:hover {
  color: #a5b4fc !important;
}
html[data-theme="dark"] .ficha-text-empty {
  color: #64748b !important;
}

html[data-theme="dark"] .ficha-section-title {
  color: #8791f8 !important;
}

html[data-theme="dark"] .ficha-textarea-box {
  color: #ffffff !important;
}

html[data-theme="dark"] .ficha-doc-empty {
  background: #171b26 !important;
  border: 1px dashed rgba(255, 255, 255, 0.3) !important;
  color: #94a3b8 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .ficha-doc-empty-icon {
  color: #8791f8 !important;
}
html[data-theme="dark"] .ficha-doc-empty-title {
  color: #ffffff !important;
}
html[data-theme="dark"] .ficha-doc-empty-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .ficha-header-border {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .ficha-pdf-wrapper {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: #11141d !important;
}

html[data-theme="dark"] #modalinformaciondirectoriocolaborador .btn-outline-secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background-color: transparent !important;
}
html[data-theme="dark"] #modalinformaciondirectoriocolaborador .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
}
html[data-theme="dark"] #modalinformaciondirectoriocolaborador .btn-outline-primary {
  color: #8791f8 !important;
  border-color: #6b75eb !important;
  background-color: transparent !important;
}
html[data-theme="dark"] #modalinformaciondirectoriocolaborador .btn-outline-primary:hover {
  background-color: #6b75eb !important;
  color: #ffffff !important;
}


/* ==========================================================================
   Cumpleaños & Nuevos Ingresos Dark Mode
   ========================================================================== */
html[data-theme="dark"] .cumple-featured {
  background: rgba(23, 29, 38, 0.85) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .cumple-container {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #111827 !important;
}

html[data-theme="dark"] .cumple-title {
  color: #818cf8 !important;
  -webkit-text-stroke: 2px #ffffff !important;
  paint-order: stroke fill;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 30px rgba(107, 117, 235, 0.4) !important;
}

html[data-theme="dark"] .cumple-name-large {
  color: #f8fafc !important;
}

html[data-theme="dark"] .cumple-puesto-large {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .cumple-list-column {
  background: #0f172a !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .cumple-list-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .cumple-list-header h3 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .cumple-list-header h3 i {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .cumple-scroll-area p.text-muted,
html[data-theme="dark"] .cumple-scroll-area .text-muted {
  color: #818cf8 !important;
  font-weight: 500 !important;
}

html[data-theme="dark"] .cumple-day-label {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .cumple-name-small {
  color: #f8fafc !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .cumple-meta-small {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .cumple-item {
  color: #f8fafc !important;
}

html[data-theme="dark"] .cumple-item:hover {
  background: rgba(107, 117, 235, 0.15) !important;
}

html[data-theme="dark"] .cumple-item.today {
  background: rgba(107, 117, 235, 0.22) !important;
  border: 1px solid rgba(107, 117, 235, 0.45) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .cumple-item.today .cumple-name-small {
  color: #ffffff !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .cumple-avatar-small.is-fallback {
  filter: brightness(2) opacity(0.85) !important;
}

html[data-theme="dark"] .btn-enviar-mensaje {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .btn-enviar-mensaje:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .cumple-scroll-area {
  scrollbar-color: rgba(107, 117, 235, 0.5) rgba(15, 23, 42, 0.5) !important;
}

html[data-theme="dark"] .cumple-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(107, 117, 235, 0.5) !important;
  border-radius: 6px;
}

html[data-theme="dark"] .cumple-scroll-area::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5) !important;
}

/* ==========================================================================
   SweetAlert2 & Toastify Dark Mode
   ========================================================================== */
html[data-theme="dark"] .swal2-popup {
  background: #171d26 !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .swal2-title,
html[data-theme="dark"] .swal2-html-container {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .toastify {
  background: #1e2633 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid #334155 !important;
}

/* ==========================================================================
   Assets Library Dropdown Dark Mode
   ========================================================================== */
html[data-theme="dark"] .assets-dropdown-container {
  background: rgba(18, 24, 32, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .assets-search-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .btn-close-assets {
  background: rgba(30, 38, 51, 0.9) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .column-header {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .asset-item-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .subcategory-wrapper.expanded {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .subcategory-header {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .subcategory-wrapper.expanded .subcategory-header {
  color: #f1f5f9 !important;
}

/* ==========================================================================
   Módulos Administrativos, Tablas y RBAC Dark Mode
   ========================================================================== */
html[data-theme="dark"] {
  --bg-dark-card: #171d26;
  --text-label: #94a3b8;
  --border-light: #334155;
}

/* RBAC specific overrides */
html[data-theme="dark"] .card-rbac {
  background: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .nav-pills-custom {
  background: var(--bg-surface) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .nav-pills-custom .nav-link {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .nav-pills-custom .nav-link:hover {
  background-color: var(--bg-surface-elevated) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .rbac-accordion .accordion-item {
  border-color: var(--border-color) !important;
  background-color: var(--bg-surface) !important;
}

html[data-theme="dark"] .rbac-accordion .accordion-button {
  background-color: var(--bg-surface) !important;
  color: var(--text-heading) !important;
}

html[data-theme="dark"] .rbac-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--color-primary) !important;
  border-bottom-color: var(--border-color) !important;
}

/* Tablas Administrativas (Planeación, Puestos, Áreas, Direcciones, Vacaciones) */
html[data-theme="dark"] .table-white,
html[data-theme="dark"] .table-striped,
html[data-theme="dark"] .table-hover {
  background-color: var(--table-bg) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .tablaplaneacionaltas,
html[data-theme="dark"] .tablapuestosaltas,
html[data-theme="dark"] .tablareasalta,
html[data-theme="dark"] .tabladireccionesalta {
  background-color: var(--table-bg) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .tablaplaneacionaltas th,
html[data-theme="dark"] .tablaplaneacionaltas td,
html[data-theme="dark"] .tablapuestosaltas th,
html[data-theme="dark"] .tablapuestosaltas td,
html[data-theme="dark"] .tablareasalta th,
html[data-theme="dark"] .tablareasalta td,
html[data-theme="dark"] .tabladireccionesalta th,
html[data-theme="dark"] .tabladireccionesalta td {
  background-color: var(--table-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--table-border) !important;
}

/* Utilidades de texto y bordes comunes en vistas */
html[data-theme="dark"] .text-dark {
  color: var(--text-heading) !important;
}

html[data-theme="dark"] .text-gris {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end,
html[data-theme="dark"] .border {
  border-color: var(--border-color) !important;
}

/* Paginación */
html[data-theme="dark"] .pagination .page-link {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .pagination .page-item.disabled .page-link {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-muted) !important;
}

/* Select2 Components */
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--input-text) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--input-text) !important;
}

html[data-theme="dark"] .select2-dropdown {
  background-color: var(--dropdown-bg) !important;
  border-color: var(--dropdown-border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .select2-results__option {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .select2-results__option--highlighted {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}

/* Inversión de iconos de calendario para date inputs */
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Purga universal para elementos con fondos blancos forzados inline */
html[data-theme="dark"] div[style*="background: #ffffff"],
html[data-theme="dark"] div[style*="background-color: #ffffff"],
html[data-theme="dark"] div[style*="background:#ffffff"],
html[data-theme="dark"] div[style*="background-color:#ffffff"],
html[data-theme="dark"] div[style*="background: #fff"],
html[data-theme="dark"] div[style*="background-color: #fff"],
html[data-theme="dark"] div[style*="background:#fff"],
html[data-theme="dark"] div[style*="background-color:#fff"],
html[data-theme="dark"] .card[style*="background: #ffffff"],
html[data-theme="dark"] .card[style*="background: #fff"] {
  background-color: var(--card-bg) !important;
  background: var(--card-bg) !important;
  color: var(--text-primary) !important;
}

/* ==========================================================================
   Sidebar Navigation Menu Dark Mode
   ========================================================================== */
html[data-theme="dark"] .menu-sidebar-nav,
html[data-theme="dark"] .principalseccionopcionesmenu,
html[data-theme="dark"] #principalcolumnamenu {
  background-color: var(--bg-sidebar) !important;
  border-right-color: var(--border-color) !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .menu-link {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .menu-link.active,
html[data-theme="dark"] .menu-link[aria-expanded="true"] {
  background-color: rgba(123, 151, 182, 0.18) !important;
  color: #ffffff !important;
  border-left-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .menu-icon {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .menu-link:hover .menu-icon,
html[data-theme="dark"] .menu-link.active .menu-icon,
html[data-theme="dark"] .menu-link[aria-expanded="true"] .menu-icon {
  color: #ffffff !important;
}

html[data-theme="dark"] img.menu-icon {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}

html[data-theme="dark"] .menu-submenu {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .menu-sublink {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .menu-sublink:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .menu-cerrar {
  color: #f87171 !important;
}

html[data-theme="dark"] .menu-cerrar .menu-icon {
  color: #f87171 !important;
}

html[data-theme="dark"] .menu-cerrar:hover {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
  border-left-color: #ef4444 !important;
}

/* ==========================================================================
   Perfil de Usuario Dark Mode
   ========================================================================== */
html[data-theme="dark"] .modulocolumnainfousuario {
  background-color: var(--bg-surface) !important;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45) !important;
  border-right: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .modulocolumnahistoriausuario {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .imgavatarperfil {
  background-color: var(--bg-surface-elevated) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .titulonombreperfil {
  color: var(--text-heading) !important;
}

html[data-theme="dark"] .titulotipousuperfil {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .titulonumerocolabperfil {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .titulocontenedormasinfoperfil,
html[data-theme="dark"] .titulocontenedormasinfoperfilvacaciones {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-heading) !important;
  border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .contenidocontenedormasinfoperfil {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .h1masinfoperfil,
html[data-theme="dark"] .h1masinfoperfil span {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .separadordevacaciones {
  background-color: var(--border-color) !important;
}

html[data-theme="dark"] .titulolineadeltiempohistoriausuario {
  color: var(--text-heading) !important;
}

html[data-theme="dark"] .contenedorlineadeltiempohistoriausuario {
  background-color: var(--bg-canvas) !important;
}

/* ==========================================================================
   Perfil de Usuario - Cards Negro-Gris con Borde Blanco y Letras Blancas
   ========================================================================== */
html[data-theme="dark"] .main-timeline5 .timeline-content,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(2n) .timeline-content,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(3n) .timeline-content,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(4n) .timeline-content {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .main-timeline5 .timeline-content:before,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(2n) .timeline-content:before,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(3n) .timeline-content:before,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(4n) .timeline-content:before {
  background: #171b26 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"] .main-timeline5 .title,
html[data-theme="dark"] .main-timeline5 .timeline-content h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .main-timeline5 .description,
html[data-theme="dark"] .main-timeline5 .timeline-content p {
  color: #ffffff !important;
  font-weight: 400 !important;
}

html[data-theme="dark"] .main-timeline5 .titulocontactolineadeltiempo,
html[data-theme="dark"] .titulocontactolineadeltiempo {
  color: #ffffff !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .main-timeline5 .timeline-icon {
  border-top-color: #6b75eb !important;
  border-right-color: #6b75eb !important;
}

html[data-theme="dark"] .main-timeline5 .timeline:nth-child(2n) .timeline-icon,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(3n) .timeline-icon,
html[data-theme="dark"] .main-timeline5 .timeline:nth-child(4n) .timeline-icon {
  border-top-color: #6b75eb !important;
  border-right-color: #6b75eb !important;
}

html[data-theme="dark"] .main-timeline5 .year {
  background: #171b26 !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .main-timeline5 .year img {
  filter: brightness(0) invert(1) !important;
}

html[data-theme="dark"] .titulolineadeltiempohistoriausuario {
  color: #ffffff !important;
}

html[data-theme="dark"] .main-timeline5 .timeline:before {
  box-shadow: -8px 0 5px -5px rgba(0, 0, 0, 0.7) inset !important;
}

html[data-theme="dark"] .contenedorequiposperfilusuario {
  background-color: var(--bg-canvas) !important;
}

html[data-theme="dark"] .cardpcperfilusuario {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .cardpcperfilusuario * {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordocumentoscolaborador {
  background-color: var(--bg-canvas) !important;
}

html[data-theme="dark"] .contenedorcarddocumentosperfil {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .contenedorcarddocumentosperfil * {
  color: #ffffff !important;
}

/* Columna Izquierda de Información de Usuario */
html[data-theme="dark"] .modulocolumnainfousuario {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .titulonombreperfil {
  color: #ffffff !important;
}

html[data-theme="dark"] .titulotipousuperfil {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .contenidocontenedormasinfoperfil,
html[data-theme="dark"] .h1masinfoperfil,
html[data-theme="dark"] .h1masinfoperfil span {
  color: #ffffff !important;
}

html[data-theme="dark"] .titulocontenedormasinfoperfil,
html[data-theme="dark"] .titulocontenedormasinfoperfilvacaciones {
  background-color: #26304a !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedorvacionesperfilusuario {
  background-color: var(--bg-canvas) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones {
  background-color: var(--card-bg, #141824) !important;
  border: 1px solid var(--border-color, #23293e) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones h2 {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones label.form-label-custom,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones label {
  color: #60a5fa !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones .text-blanco {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input.inputvacacionesperfilusuario,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones select.inputvacacionesperfilusuario,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="date"],
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="time"],
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="number"],
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="file"],
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones textarea {
  background-color: var(--input-bg, #141829) !important;
  border: 1px solid var(--input-border, #2d3548) !important;
  color: var(--text-primary, #ffffff) !important;
  color-scheme: dark !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input:focus,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones select:focus,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones textarea:focus {
  background-color: var(--input-bg, #141829) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input:disabled,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones select:disabled {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--border-color, #23293e) !important;
  color: var(--text-muted, #94a3b8) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones select option {
  background-color: var(--dropdown-bg, #141829) !important;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones .form-check-input {
  background-color: var(--input-bg, #141829) !important;
  border-color: var(--input-border, #2d3548) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones .form-check-input:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones .form-check-label {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2) !important;
  cursor: pointer !important;
  opacity: 0.9 !important;
}

html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="date"]::-webkit-calendar-picker-indicator:hover,
html[data-theme="dark"] .contenedorformulariopeticionesvacaciones input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1 !important;
}

html[data-theme="dark"] #btnreiniciarvacacionesperfilusuario {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color, #2d3548) !important;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] #btnreiniciarvacacionesperfilusuario:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Documentos de Colaboradores en Actualizar Colaborador - Dark Mode */
html[data-theme="dark"] .contenedordocumentosformularioaltacolaboradoractualizar {
  background-color: var(--card-bg, #1e293b) !important;
  border: 1px solid var(--border-color, #334155) !important;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .contenedortitulodocumentoseditar {
  background: var(--bg-surface-elevated, #1e293b) !important;
  border-bottom: 1px solid var(--border-color, #334155) !important;
}

html[data-theme="dark"] .contenedortitulodocumentoseditar h5 {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .card-documento-colaborador {
  background-color: var(--bg-surface, #0f172a) !important;
  border: 1px solid var(--border-color, #334155) !important;
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .card-documento-colaborador .titulo-documento-card {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .card-documento-colaborador .document-file-info {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-secondary, #94a3b8) !important;
}

html[data-theme="dark"] .card-documento-colaborador .label-archivo-nombre {
  color: var(--text-primary, #ffffff) !important;
}

html[data-theme="dark"] .card-documento-colaborador .preview-documento-box {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .card-documento-colaborador .preview-documento-box:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .card-documento-colaborador .preview-documento-box span {
  color: var(--text-secondary, #94a3b8) !important;
}

/* vCard Modal Dark Mode */
html[data-theme="dark"] .vcard-modal .modal-content {
  background-color: var(--modal-bg) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .vcard-left {
  background-color: var(--bg-surface) !important;
  border-right-color: var(--border-color) !important;
}

html[data-theme="dark"] .vcard-right {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .vcard-badge {
  background-color: var(--bg-surface-elevated) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* ==========================================================================
   Contenedor Colaboradores & Sub-módulos Dark Mode
   ========================================================================== */
html[data-theme="dark"] .contenedorcolaboradores,
html[data-theme="dark"] #contenedorcolaboradores,
html[data-theme="dark"] .contenedormodulovacaciones,
html[data-theme="dark"] .contenedormodulopuestos,
html[data-theme="dark"] .contenedormoduloareas,
html[data-theme="dark"] .contenedormodulodirecciones,
html[data-theme="dark"] .contenedormodulosedes,
html[data-theme="dark"] .contenedormodulojefes,
html[data-theme="dark"] .contenedormoduloplaneacion,
html[data-theme="dark"] .contenedormodulonomina,
html[data-theme="dark"] .contenedormoduloasuetos,
html[data-theme="dark"] .contenedormodulo,
html[data-theme="dark"] .contenedorformularioaltacolaborador {
  background-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .contenedormodulopuestos h3,
html[data-theme="dark"] .contenedormoduloareas h3,
html[data-theme="dark"] .contenedormodulodirecciones h3,
html[data-theme="dark"] .contenedormodulosedes h3,
html[data-theme="dark"] .contenedormodulojefes h3,
html[data-theme="dark"] .contenedormoduloplaneacion h3,
html[data-theme="dark"] .contenedormodulonomina h3,
html[data-theme="dark"] .contenedormoduloasuetos h3,
html[data-theme="dark"] h3[style*="color: #3c6e8f"],
html[data-theme="dark"] h3[style*="color:#3c6e8f"],
html[data-theme="dark"] h1[style*="color: #3c6e8f"],
html[data-theme="dark"] h1[style*="color:#3c6e8f"] {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .contenedortablapuestos,
html[data-theme="dark"] .contenedortablareas,
html[data-theme="dark"] .contenedortabladirecciones,
html[data-theme="dark"] .contenedortablasedes,
html[data-theme="dark"] .contenedortablaplaneacion {
  scrollbar-color: rgba(107, 117, 235, 0.4) transparent !important;
}

html[data-theme="dark"] .contendorbusquedaadministracioncolaboradores {
  background-color: var(--bg-surface) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .input-group-text.bg-white,
html[data-theme="dark"] .input-group-text {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .btn-light {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .btn-light:hover {
  background-color: var(--bg-surface-hover) !important;
  border-color: var(--border-strong) !important;
  color: #ffffff !important;
}

/* Botones de filtros en Administración de Planeaciones y Colaboradores */
html[data-theme="dark"] #btnfiltros-dropdown,
html[data-theme="dark"] #btnsedesfechas-dropdown,
html[data-theme="dark"] #btnordenar-dropdown,
html[data-theme="dark"] #btnlimpiar-filtros,
html[data-theme="dark"] #btnlimpiarfiltros-planeaciones,
html[data-theme="dark"] #btnlimpiarfiltros-colaboradores,
html[data-theme="dark"] .btn-pill-custom {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] #btnfiltros-dropdown:hover,
html[data-theme="dark"] #btnsedesfechas-dropdown:hover,
html[data-theme="dark"] #btnordenar-dropdown:hover,
html[data-theme="dark"] #btnlimpiar-filtros:hover,
html[data-theme="dark"] #btnlimpiarfiltros-planeaciones:hover,
html[data-theme="dark"] #btnlimpiarfiltros-colaboradores:hover,
html[data-theme="dark"] .btn-pill-custom:hover {
  background-color: var(--bg-surface-hover) !important;
  border-color: var(--border-strong) !important;
  color: #ffffff !important;
}

/* Dropdowns interiores en Planeaciones y Colaboradores */
html[data-theme="dark"] .dropdown-menu h6 {
  color: var(--text-secondary) !important;
  border-color: var(--border-subtle) !important;
}

html[data-theme="dark"] .dropdown-menu label,
html[data-theme="dark"] .dropdown-menu .form-check-label {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .dropdown-menu .text-muted {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .dropdown-menu .form-select,
html[data-theme="dark"] .dropdown-menu input[type="date"] {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .alert-light {
  background-color: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
}

html[data-theme="dark"] .alert-light i {
  color: #818cf8 !important;
}

html[data-theme="dark"] .alert-light span {
  color: #e0e7ff !important;
}

html[data-theme="dark"] h1[style*="color: #597592"],
html[data-theme="dark"] h1[style*="color:#597592"] {
  color: var(--text-heading) !important;
}

/* ==========================================================================
   Clases Utilitarias para Invertir Iconos (Negro a Blanco en Dark Mode)
   ========================================================================== */
.icon-invert-theme,
.img-theme-invert {
  filter: brightness(0);
  transition: filter 0.25s ease, opacity 0.25s ease;
}

html[data-theme="dark"] .icon-invert-theme,
html[data-theme="dark"] .img-theme-invert {
  filter: brightness(0) invert(1) !important;
  opacity: 0.95 !important;
}

/* Inversión automática para imágenes y logos en Header y Breadcrumbs */
html[data-theme="dark"] .contenedorbreadcrumb .principalheadlogoldr,
html[data-theme="dark"] .principalheader .principalheadlogoldr {
  filter: brightness(1) invert(0) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .contenedorbreadcrumb img:not(.img-avatar-breadcrumb):not(.imgavatarperfil),
html[data-theme="dark"] .contenedorheader img:not(.img-avatar-breadcrumb):not(.imgavatarperfil) {
  filter: brightness(1) invert(0) !important;
  opacity: 0.95 !important;
}

/* ==========================================================================
   Organigrama (D3.js + Controles)
   ========================================================================== */
html[data-theme="dark"] .contenedormoduloorganigrama {
  color: var(--text-primary);
}

html[data-theme="dark"] #tree {
  background: radial-gradient(circle at 50% 50%, #151c27 0%, #0c1017 100%) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .node rect {
  fill: #171f2b !important;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) !important;
}

html[data-theme="dark"] .node-name {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .node-title {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .node-num {
  color: #64748b !important;
}

html[data-theme="dark"] .node-img {
  background-color: #171f2b !important;
  border-color: #171f2b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .link {
  stroke: #334155 !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .card {
  background-color: var(--card-bg) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="dark"] #colaboradorInfo {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] #colaboradorInfo hr {
  border-color: var(--border-color) !important;
}

html[data-theme="dark"] #colaboradorInfo .text-muted {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] #selectEmpresa {
  background-color: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html[data-theme="dark"] #searchInput {
  background-color: var(--input-bg) !important;
  color: var(--input-text) !important;
  border-color: var(--input-border) !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama label.form-label {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .btn-outline-primary {
  color: #60a5fa !important;
  border-color: #2563eb !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .btn-check:checked + .btn-outline-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .btn-outline-secondary {
  color: var(--text-secondary) !important;
  border-color: var(--border-color) !important;
  background-color: var(--bg-surface-elevated) !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .btn-outline-secondary:hover:not(:disabled) {
  background-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .contenedormoduloorganigrama .btn-outline-secondary:disabled {
  opacity: 0.35 !important;
  border-color: var(--border-color) !important;
}

/* ==========================================================================
/* ==========================================================================
   Hero Banner Workspace - Efecto Liquid Glass (Estilo iOS)
   ========================================================================== */
.hero-banner-workspace {
  background: linear-gradient(135deg, rgba(42, 54, 224, 0.9) 0%, rgba(68, 75, 236, 0.83) 48%, rgba(108, 102, 246, 0.76) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) contrast(105%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(105%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 1.15rem !important;
  box-shadow: 
    0 14px 34px -8px rgba(42, 54, 224, 0.42),
    0 6px 16px -4px rgba(68, 75, 236, 0.25),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.12) !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 1.2rem 1.55rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.hero-banner-workspace .hero-workspace-title,
.hero-banner-workspace h1 {
  font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.72rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

.hero-banner-workspace .hero-workspace-subtitle,
.hero-banner-workspace p {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
}

.hero-banner-workspace .search-icon {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.92rem !important;
}

.hero-banner-workspace .hero-workspace-input,
.hero-banner-workspace #buscador-modulos {
  padding-left: 2.75rem !important;
  padding-right: 1.1rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  height: 42px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0.75rem !important;
  font-size: 0.96rem !important;
  color: #ffffff !important;
  outline: none !important;
  width: 100% !important;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 4px 14px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-banner-workspace .hero-workspace-input::placeholder,
.hero-banner-workspace #buscador-modulos::placeholder {
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.96rem !important;
}

.hero-banner-workspace .hero-workspace-input:focus,
.hero-banner-workspace #buscador-modulos:focus {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 0 0 3px rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.12) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .hero-banner-workspace {
  background: linear-gradient(135deg, rgba(18, 22, 82, 0.9) 0%, rgba(28, 34, 138, 0.84) 50%, rgba(45, 52, 190, 0.76) 100%) !important;
  border: 1px solid rgba(110, 145, 255, 0.3) !important;
  border-top: 1px solid rgba(185, 205, 255, 0.6) !important;
  border-left: 1px solid rgba(145, 175, 255, 0.4) !important;
  box-shadow: 
    0 16px 38px -8px rgba(12, 15, 65, 0.65),
    0 0 24px rgba(68, 75, 236, 0.25),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .hero-banner-workspace .hero-workspace-input,
html[data-theme="dark"] .hero-banner-workspace #buscador-modulos {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .hero-banner-workspace .hero-workspace-input:focus,
html[data-theme="dark"] .hero-banner-workspace #buscador-modulos:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(140, 190, 255, 0.8) !important;
  box-shadow: 
    0 0 0 3px rgba(46, 108, 238, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Empty State Directorio (Dark Mode) */
html[data-theme="dark"] .directorio-empty-state {
  background: #171b26 !important;
  border: 1px dashed rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .directorio-empty-icon,
html[data-theme="dark"] .directorio-empty-state .directorio-empty-icon {
  color: #8791f8 !important;
}

html[data-theme="dark"] .directorio-empty-title,
html[data-theme="dark"] .directorio-empty-state .directorio-empty-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .directorio-empty-subtitle,
html[data-theme="dark"] .directorio-empty-state .directorio-empty-subtitle {
  color: #94a3b8 !important;
}

/* Header Templates Button (Dark Mode) */
html[data-theme="dark"] #btn-assets-header {
  color: #94a3b8 !important;
}

html[data-theme="dark"] #btn-assets-header:hover,
html[data-theme="dark"] #btn-assets-header:focus,
html[data-theme="dark"] #btn-assets-header:active,
html[data-theme="dark"] #btn-assets-header.menu-open {
  color: #ffffff !important;
}

html[data-theme="dark"] #btn-assets-header .btn-assets-chevron,
html[data-theme="dark"] #btn-assets-header span {
  background-color: rgba(107, 117, 235, 0.3) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #btn-assets-header:hover .btn-assets-chevron,
html[data-theme="dark"] #btn-assets-header.menu-open .btn-assets-chevron,
html[data-theme="dark"] #btn-assets-header:hover span,
html[data-theme="dark"] #btn-assets-header.menu-open span {
  background-color: #6b75eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(107, 117, 235, 0.5) !important;
}

/* ==========================================================================
   Hubs en Modo Oscuro (Administración RH y vistas Hub)
   ========================================================================== */
html[data-theme="dark"] .hub-container {
  background-color: #141824 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .hub-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .hub-header-badge {
  background-color: #6b75eb !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.4) !important;
}

html[data-theme="dark"] .hub-card {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .hub-card:hover {
  background: #1e2433 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-5px);
}

html[data-theme="dark"] .hub-card-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .hub-card-description {
  color: #94a3b8 !important;
}

/* ==========================================================================
   Formulario de Registro / Alta de Colaboradores (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .contenedorformularioaltacolaborador {
  background-color: #141824 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .form-alta-colab-title,
html[data-theme="dark"] .contenedorformularioaltacolaborador h1 {
  color: #ffffff !important;
}

html[data-theme="dark"] .form-alta-colab-badge {
  background-color: #6b75eb !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.4) !important;
}

/* Tarjetas de Secciones (Datos Personales, Laborales, Clínicos, Nómina, Viáticos) */
html[data-theme="dark"] .contenedordatospersonalesformularioaltacolaborador,
html[data-theme="dark"] .contenedordatoslaboralesformularioaltacolaborador,
html[data-theme="dark"] .contenedordatosclinicosformularioaltacolaborador,
html[data-theme="dark"] .contenedordatosnominaformularioaltacolaborador,
html[data-theme="dark"] .contenedordatosviaticosformularioaltacolaborador {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordatospersonalesformularioaltacolaborador:hover,
html[data-theme="dark"] .contenedordatoslaboralesformularioaltacolaborador:hover,
html[data-theme="dark"] .contenedordatosclinicosformularioaltacolaborador:hover,
html[data-theme="dark"] .contenedordatosnominaformularioaltacolaborador:hover,
html[data-theme="dark"] .contenedordatosviaticosformularioaltacolaborador:hover {
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45) !important;
}

/* Títulos y encabezados de sección dentro de las cards */
html[data-theme="dark"] .contenedorformularioaltacolaborador h2,
html[data-theme="dark"] .contenedorformularioaltacolaborador h2.text-g {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador h2 svg,
html[data-theme="dark"] .contenedorformularioaltacolaborador h2 i {
  fill: #8791f8 !important;
  color: #8791f8 !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador h5,
html[data-theme="dark"] .contenedorformularioaltacolaborador h5.text-c {
  color: #ffffff !important;
}

/* Unificación permanente de labels flotantes en formulario de alta de colaboradores */
.contenedorformularioaltacolaborador .form-floating > label {
  opacity: 1 !important;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem) !important;
  pointer-events: none;
}

.contenedorformularioaltacolaborador .form-floating > .form-control {
  padding-top: 1.625rem !important;
  padding-bottom: 0.625rem !important;
}

.contenedorformularioaltacolaborador .form-floating > label::after {
  position: absolute;
  inset: 1rem 0.375rem;
  z-index: -1;
  height: 1.5em;
  content: "";
  background-color: #ffffff;
  border-radius: 0.375rem;
}

/* Floating labels e inputs dentro del formulario en Dark Mode */
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > label {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > label::after {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-control:focus ~ label,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-select:focus ~ label {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-control:focus ~ label::after,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-select:focus ~ label::after {
  border-color: #6b75eb !important;
  background-color: #1e2436 !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-control,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-floating > .form-select,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-control,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-select {
  background-color: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-control:focus,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-select:focus {
  border-color: #6b75eb !important;
  box-shadow: 0 0 0 0.25rem rgba(107, 117, 235, 0.28) !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-control:disabled,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-select:disabled {
  background-color: #141824 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #64748b !important;
}

/* Textos auxiliares y radio/checkboxes */
html[data-theme="dark"] .contenedorformularioaltacolaborador .text-c,
html[data-theme="dark"] .contenedorformularioaltacolaborador .form-check-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-check-input {
  background-color: #10131c;
  border-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .contenedorformularioaltacolaborador .form-check-input:checked {
  background-color: #6b75eb !important;
  border-color: #6b75eb !important;
}

/* Drawer lateral de Documentos en Dark Mode */
html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-right: none !important;
  color: #ffffff !important;
  scrollbar-width: thin;
  scrollbar-color: #6b75eb #10131c;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores::-webkit-scrollbar {
  width: 6px;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores::-webkit-scrollbar-thumb {
  background: #6b75eb;
  border-radius: 4px;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores::-webkit-scrollbar-track {
  background: #10131c;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores:hover,
html[data-theme="dark"] #contenedordocumentospersonalesformulariocolaboradores.contenedordocumentosabierto {
  background-color: #171b26 !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores h1 {
  color: #8791f8 !important;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores .form-control {
  background-color: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Botón selector de archivo nativo estilizado para Dark Mode */
html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores input[type="file"]::file-selector-button,
html[data-theme="dark"] .contenedorformularioaltacolaborador input[type="file"]::file-selector-button {
  background-color: #6b75eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.85rem !important;
  margin-right: 0.75rem !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] .contenedorformularioaltacolaborador input[type="file"]::file-selector-button:hover {
  background-color: #5660dd !important;
}

/* Labels e inputs dentro del drawer de documentos */
html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores .form-floating > label {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores .form-floating > label::after {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* ==========================================================================
   Dashboard de Gestión de Colaboradores en Dark Mode
   ========================================================================== */
html[data-theme="dark"] .contenedordashboardcolaboradores {
  background-color: #0e121e !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dashboard-colaboradores-header {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .dashboard-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .dashboard-badge {
  background-color: #171b26 !important;
  color: #8791f8 !important;
  border-color: rgba(107, 117, 235, 0.35) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .card {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .card-header span,
html[data-theme="dark"] .contenedordashboardcolaboradores .card-header h6,
html[data-theme="dark"] .contenedordashboardcolaboradores h6.text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-label {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .input-group-text.bg-light {
  background-color: #1e2436 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #8791f8 !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-control.bg-light,
html[data-theme="dark"] .contenedordashboardcolaboradores .form-select.bg-light {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-control.bg-light:focus,
html[data-theme="dark"] .contenedordashboardcolaboradores .form-select.bg-light:focus {
  border-color: #6b75eb !important;
  box-shadow: 0 0 0 0.25rem rgba(107, 117, 235, 0.25) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .btn-primary {
  background: #6b75eb !important;
  border-color: #6b75eb !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .btn-primary:hover {
  background: #5660dd !important;
}

/* Números de KPI y textos */
html[data-theme="dark"] .contenedordashboardcolaboradores h3.text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .text-slate-800,
html[data-theme="dark"] .contenedordashboardcolaboradores .text-slate-700 {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .bg-white {
  background-color: #10131c !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .border {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .border-bottom {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Base styles para Control Documental y Presets */
.btn-preset-doc {
  border-radius: 50rem !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

.btn-preset-basico {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.btn-preset-bajas {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-preset-todos {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.btn-preset-limpiar {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dashboard-resumen-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dashboard-stat-esperados {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.dashboard-stat-cargados {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.dashboard-stat-faltantes {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

#multiselect-trigger {
  background: #ffffff;
  border-color: #dee2e6;
}

#multiselect-dropdown {
  background: #ffffff;
  border-color: #dee2e6;
}

.doc-search-input {
  background: #f8fafc;
}

.doc-opt-item:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   Control Documental y Expedientes en Dark Mode
   ========================================================================== */
html[data-theme="dark"] #groupEstatusDoc {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn.active {
  background: #6b75eb !important;
  border-color: #6b75eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn:not(.active) {
  background: transparent !important;
  border-color: transparent !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Presets Rápidos en Dark Mode */
html[data-theme="dark"] .btn-preset-basico {
  background: rgba(107, 117, 235, 0.16) !important;
  color: #8791f8 !important;
  border: 1px solid rgba(107, 117, 235, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-basico:hover {
  background: rgba(107, 117, 235, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-bajas {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-bajas:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-todos {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-todos:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-limpiar {
  background: #10131c !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .btn-preset-limpiar:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Multiselect en Dark Mode */
html[data-theme="dark"] #multiselect-trigger {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #multiselect-trigger #multiselect-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] #multiselect-dropdown {
  background-color: #171b26 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .doc-search-input {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .doc-opt-item {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .doc-opt-item:hover {
  background-color: rgba(107, 117, 235, 0.2) !important;
  color: #ffffff !important;
}

/* Resumen General de Selección en Dark Mode */
html[data-theme="dark"] .dashboard-resumen-box {
  background-color: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .dashboard-resumen-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-stat-esperados {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .dashboard-stat-esperados .stat-esperados-num {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-stat-cargados {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .dashboard-stat-faltantes {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

/* ==========================================================================
   Iconos de Encabezado de Módulos (Squircle / Semi-cuadrado Institucional)
   ========================================================================== */
.modulo-badge-icon,
.modulo-header-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  border-radius: 10px !important; /* Medio cuadrado / Squircle */
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.modulo-badge-icon:hover,
.modulo-header-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 117, 235, 0.45) !important;
}

.modulo-badge-icon svg,
.modulo-header-icon svg {
  width: 1.35rem !important;
  height: 1.35rem !important;
  fill: #ffffff !important;
}

.modulo-badge-icon i,
.modulo-header-icon i {
  font-size: 1.25rem !important;
  color: #ffffff !important;
}

/* Compatibilidad universal: convertir cualquier span circular gris o #3c6e8f existente a squircle azulmorado */
span[style*="#597592"],
span[style*="background-color: #597592"],
span[style*="background-color:#597592"],
span[style*="#3c6e8f"],
span[style*="background-color: #3c6e8f"],
span[style*="background-color:#3c6e8f"],
.form-alta-colab-badge,
.hub-header-badge {
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}

/* Títulos adyacentes a los iconos de módulos en Dark Mode */
html[data-theme="dark"] h1.text-m,
html[data-theme="dark"] h1.text-g,
html[data-theme="dark"] h1[style*="#597592"] {
  color: #ffffff !important;
}












html[data-theme="dark"] input[type="file"],
html[data-theme="dark"] .form-control[type="file"] {
  background-color: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Botón selector de archivo nativo estilizado globalmente para Dark Mode */
html[data-theme="dark"] input[type="file"]::file-selector-button,
html[data-theme="dark"] .form-control::file-selector-button,
html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button,
html[data-theme="dark"] .form-control::-webkit-file-upload-button {
  background-color: #6b75eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.85rem !important;
  margin-right: 0.75rem !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

html[data-theme="dark"] input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] .form-control::file-selector-button:hover,
html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button:hover,
html[data-theme="dark"] .form-control::-webkit-file-upload-button:hover {
  background-color: #5660dd !important;
}

html[data-theme="dark"] input[type="file"] {
  background-color: #101423 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] select option,
html[data-theme="dark"] .form-select option {
  background-color: #171b26 !important;
  color: #ffffff !important;
}

/* Labels e inputs dentro del drawer de documentos */
html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores .form-floating > label {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .contenedordocumentospersonalesformulariocolaboradores .form-floating > label::after {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* ==========================================================================
   Dashboard de Gestión de Colaboradores en Dark Mode
   ========================================================================== */
html[data-theme="dark"] .contenedordashboardcolaboradores {
  background-color: #0e121e !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dashboard-colaboradores-header {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .dashboard-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .dashboard-badge {
  background-color: #171b26 !important;
  color: #8791f8 !important;
  border-color: rgba(107, 117, 235, 0.35) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .card {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .card-header span,
html[data-theme="dark"] .contenedordashboardcolaboradores .card-header h6,
html[data-theme="dark"] .contenedordashboardcolaboradores h6.text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-label {
  color: #a5b4fc !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .input-group-text.bg-light {
  background-color: #1e2436 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #8791f8 !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-control.bg-light,
html[data-theme="dark"] .contenedordashboardcolaboradores .form-select.bg-light {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .form-control.bg-light:focus,
html[data-theme="dark"] .contenedordashboardcolaboradores .form-select.bg-light:focus {
  border-color: #6b75eb !important;
  box-shadow: 0 0 0 0.25rem rgba(107, 117, 235, 0.25) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .btn-primary {
  background: #6b75eb !important;
  border-color: #6b75eb !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .btn-primary:hover {
  background: #5660dd !important;
}

/* Números de KPI y textos */
html[data-theme="dark"] .contenedordashboardcolaboradores h3.text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .text-slate-800,
html[data-theme="dark"] .contenedordashboardcolaboradores .text-slate-700 {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .bg-white {
  background-color: #10131c !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .border {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .text-dark {
  color: #ffffff !important;
}

html[data-theme="dark"] .contenedordashboardcolaboradores .border-bottom {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Base styles para Control Documental y Presets */
.btn-preset-doc {
  border-radius: 50rem !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

.btn-preset-basico {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.btn-preset-bajas {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-preset-todos {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.btn-preset-limpiar {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dashboard-resumen-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dashboard-stat-esperados {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.dashboard-stat-cargados {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.dashboard-stat-faltantes {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

#multiselect-trigger {
  background: #ffffff;
  border-color: #dee2e6;
}

#multiselect-dropdown {
  background: #ffffff;
  border-color: #dee2e6;
}

.doc-search-input {
  background: #f8fafc;
}

.doc-opt-item:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   Control Documental y Expedientes en Dark Mode
   ========================================================================== */
html[data-theme="dark"] #groupEstatusDoc {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn.active {
  background: #6b75eb !important;
  border-color: #6b75eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn:not(.active) {
  background: transparent !important;
  border-color: transparent !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] #groupEstatusDoc .btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Presets Rápidos en Dark Mode */
html[data-theme="dark"] .btn-preset-basico {
  background: rgba(107, 117, 235, 0.16) !important;
  color: #8791f8 !important;
  border: 1px solid rgba(107, 117, 235, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-basico:hover {
  background: rgba(107, 117, 235, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-bajas {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-bajas:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-todos {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .btn-preset-todos:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-preset-limpiar {
  background: #10131c !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .btn-preset-limpiar:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Multiselect en Dark Mode */
html[data-theme="dark"] #multiselect-trigger {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #multiselect-trigger #multiselect-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] #multiselect-dropdown {
  background-color: #171b26 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .doc-search-input {
  background-color: #10131c !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .doc-opt-item {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .doc-opt-item:hover {
  background-color: rgba(107, 117, 235, 0.2) !important;
  color: #ffffff !important;
}

/* Resumen General de Selección en Dark Mode */
html[data-theme="dark"] .dashboard-resumen-box {
  background-color: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .dashboard-resumen-title {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-stat-esperados {
  background-color: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .dashboard-stat-esperados .stat-esperados-num {
  color: #ffffff !important;
}

html[data-theme="dark"] .dashboard-stat-cargados {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .dashboard-stat-faltantes {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

/* ==========================================================================
   Iconos de Encabezado de Módulos (Squircle / Semi-cuadrado Institucional)
   ========================================================================== */
.modulo-badge-icon,
.modulo-header-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  border-radius: 10px !important; /* Medio cuadrado / Squircle */
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.modulo-badge-icon:hover,
.modulo-header-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 117, 235, 0.45) !important;
}

.modulo-badge-icon svg,
.modulo-header-icon svg {
  width: 1.35rem !important;
  height: 1.35rem !important;
  fill: #ffffff !important;
}

.modulo-badge-icon i,
.modulo-header-icon i {
  font-size: 1.25rem !important;
  color: #ffffff !important;
}

/* Compatibilidad universal: convertir cualquier span circular gris o #3c6e8f existente a squircle azulmorado */
span[style*="#597592"],
span[style*="background-color: #597592"],
span[style*="background-color:#597592"],
span[style*="#3c6e8f"],
span[style*="background-color: #3c6e8f"],
span[style*="background-color:#3c6e8f"],
.form-alta-colab-badge,
.hub-header-badge {
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}

/* Títulos adyacentes a los iconos de módulos en Dark Mode */
html[data-theme="dark"] h1.text-m,
html[data-theme="dark"] h1.text-g,
html[data-theme="dark"] h1[style*="#597592"],
html[data-theme="dark"] h2.text-g,
html[data-theme="dark"] h3.text-gris,
html[data-theme="dark"] h4.text-gris {
  color: #ffffff !important;
}

/* ==========================================================
   DARK MODE: HOME OFFICE VIEWER (PERFIL DE USUARIO)
   ========================================================== */
html[data-theme="dark"] .contenedorhomeofficeviewer,
html[data-theme="dark"] #contenedorhomeofficeviewer {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .contenedorhomeofficeviewer h2,
html[data-theme="dark"] #contenedorhomeofficeviewer h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] #buscador_homeoffice {
  background: #101423 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] #buscador_homeoffice::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="dark"] #buscador_homeoffice:focus {
  border-color: #6b75eb !important;
  box-shadow: 0 0 0 3px rgba(107, 117, 235, 0.25) !important;
}

html[data-theme="dark"] #btn_viewer_mis_colaboradores {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="dark"] #btn_viewer_mis_colaboradores:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
}

html[data-theme="dark"] #btn_viewer_todos {
  background: #26304a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] #btn_viewer_todos:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #contenedor_tabla_homeoffice {
  background: #10131c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

html[data-theme="dark"] #tabla_homeoffice {
  color: #e2e8f0 !important;
  background-color: transparent !important;
}

html[data-theme="dark"] #tabla_homeoffice thead th {
  background: #141824 !important;
  color: #a5b4fc !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
}

html[data-theme="dark"] #tabla_homeoffice tbody td {
  background: #10131c !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] #tabla_homeoffice tbody tr:hover td {
  background: rgba(107, 117, 235, 0.12) !important;
  color: #ffffff !important;
}

/* Modal Home Office Viewer */
html[data-theme="dark"] #modalHomeOfficeViewer .modal-content,
html[data-theme="dark"] .ho_modal_light {
  background: #141824 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] #modalHomeOfficeViewer .modal-header,
html[data-theme="dark"] #modalHomeOfficeViewer .modal-footer {
  background: #10131c !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] #modalHomeOfficeViewer .btn-close {
  filter: invert(1) brightness(2) !important;
}

html[data-theme="dark"] .ho_banner_info_light {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

/* ==========================================================
   DARK MODE: SOLICITUDES DE MIS COLABORADORES (PERFIL)
   ========================================================== */
html[data-theme="dark"] .contenedoraprovacionesdevacionesperfilusuario,
html[data-theme="dark"] #contenedoraprovacionesdevacacionesperfilusuario {
  background: #171b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .contenedorfiltrodevacaciones {
  background-color: #171b26 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .contenedorfiltrodevacaciones h4 {
  color: #ffffff !important;
}

html[data-theme="dark"] #busquedavacacionesaprobacionesperfil,
html[data-theme="dark"] .busquedavacacionesaprobacionesperfil {
  background: #101423 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] #busquedavacacionesaprobacionesperfil::placeholder,
html[data-theme="dark"] .busquedavacacionesaprobacionesperfil::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="dark"] #busquedavacacionesaprobacionesperfil:focus,
html[data-theme="dark"] .busquedavacacionesaprobacionesperfil:focus {
  border-color: #6b75eb !important;
  box-shadow: 0 0 0 3px rgba(107, 117, 235, 0.25) !important;
}

html[data-theme="dark"] .btnopcionessolicitudesvacaciones {
  background: #26304a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  transition: all 0.25s ease !important;
}

html[data-theme="dark"] .btnopcionessolicitudesvacaciones:hover {
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  color: #ffffff !important;
  border-color: #6b75eb !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.35) !important;
}

html[data-theme="dark"] .btnopcionessolicitudesvacaciones.active,
html[data-theme="dark"] .btnopcionessolicitudesvacaciones:focus {
  background: linear-gradient(135deg, #505bd8 0%, #6b75eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(107, 117, 235, 0.4) !important;
}

/* Tabla de solicitudes de vacaciones */
html[data-theme="dark"] #contenedorvacacionesaprobacionescolaboradores {
  background: #171b26 !important;
}

html[data-theme="dark"] .titulotablasolicitudesvacaciones th {
  background: #141824 !important;
  color: #a5b4fc !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #tablasolicitudesvacaciones tbody td {
  background: #10131c !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] #tablasolicitudesvacaciones tbody tr:hover td {
  background: rgba(107, 117, 235, 0.12) !important;
  color: #ffffff !important;
}













