.theme-settings{margin:16px 0;padding:16px;border:1px solid #dbe5f3;border-radius:13px;background:#f8fbff}.theme-setting-title{font-size:14px;font-weight:800;color:inherit}.theme-setting-options{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.theme-setting-options button{min-height:42px;padding:9px 14px;border:1px solid #b8c9e4;border-radius:10px;background:#fff;color:#183c78;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.theme-setting-options button.is-selected{border-color:#2563eb;background:#eaf2ff;color:#1744a5;box-shadow:0 0 0 2px #2563eb25}.theme-setting-options button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}[data-theme-status]{display:block;min-height:17px;font-size:12px}
html[data-theme=oscuro]{--bg:#0b1426;--surface:#14243c;--panel:#14243c;--line:#31435f;--ink:#eaf2ff;--text:#eaf2ff;--muted:#adc0db;--navy:#09172d;--dark:#09172d;--shadow:0 14px 34px #0207125e;color-scheme:dark}
html[data-theme=oscuro],html[data-theme=oscuro] body{background:#0b1426!important;color:#eaf2ff!important}
html[data-theme=oscuro] :is(.main,.content,.mechanic-main,.mechanic-content,#workspace,#contents,.app-main){background-color:#0b1426;color:#eaf2ff}
html[data-theme=oscuro] :is(.sidebar,.side,.mechanic-sidebar){background:#0a1931!important;color:#eaf2ff!important;border-color:#31435f!important}
html[data-theme=oscuro] :is(.topbar,.top,.mechanic-account-bar,.mobile-head,.panel-header){color:#eaf2ff}
html[data-theme=oscuro] :is(.panel,.stat,.card,.box,.surface,.record,.modalbox,.modal-content,.account-modal-card,.account-admin-modal,.account-admin-profile,.account-admin-form,.admin-profile,.portal-account-panel,.portal-list-filters,.operational-notification-stack,.operational-notification-card,.notification-center-header,.notification-center-list,.notification-pagination,.notification-preferences,.liftevo-select-menu,.liftevo-select-options,.table-container,.table-wrap,.data-table-wrap,.form-card,.settings-card,.crm-stat-card,.crm-list,.crm-detail,.machine-quick-card,.machine-info,.history-box,.thread-card,.role-home-panel,.role-home-grid>button){background:#14243c!important;color:#eaf2ff!important;border-color:#31435f!important;box-shadow:none!important}
html[data-theme=oscuro] .theme-settings{background:#172a46!important;color:#eaf2ff!important;border-color:#415778!important}
html[data-theme=oscuro] :is(.surface-head,.thread-top,.machine-hero,.crm-hero,.account-admin-header,.modal-header,.modalhead,.notification-center-empty,.operational-notification-head,.portal-list-toolbar){background:#1a2d49!important;color:#eaf2ff!important;border-color:#31435f!important}
html[data-theme=oscuro] :is(h1,h2,h3,h4,h5,h6,strong,.stat-number,.machine-info-value,.crm-detail-value,.account-section-title,.section-title,.form-label,.notification-center-header strong,.operational-notification-head b,.record h3){color:#f1f6ff!important}
html[data-theme=oscuro] :is(p,small,.muted,.small,.topbar p,.stat-title,.form-status,.machine-info-label,.crm-detail-label,.notification-center-header span,.operational-notification-body p,.notification-preferences small,.employee-position,.employee-company){color:#b4c3d9!important}
html[data-theme=oscuro] :is(label,.portal-remember,.checkbox-label,.form-group label,.account-admin-form label){color:#dce9fb!important}
html[data-theme=oscuro] input[type=checkbox],html[data-theme=oscuro] input[type=radio]{accent-color:#60a5fa}
html[data-theme=oscuro] :is(input,select,textarea,.liftevo-select-trigger,.user,.panel-sidebar-account,.notification-search input,.mechanic-account-button){background:#101f36!important;color:#f1f6ff!important;border-color:#415778!important;box-shadow:none!important}
html[data-theme=oscuro] :is(input,textarea)::placeholder{color:#95a9c7!important;opacity:1}
html[data-theme=oscuro] :is(input,select,textarea,.liftevo-select-trigger,button):focus-visible{outline:2px solid #74b7ff!important;outline-offset:2px}
html[data-theme=oscuro] :is(input:disabled,select:disabled,textarea:disabled){background:#18253a!important;color:#91a7c4!important}
html[data-theme=oscuro] :is(button,.btn,.button,.secondary-button,.account-admin-action,.theme-setting-options button){border-color:#486080;color:#eaf2ff}
html[data-theme=oscuro] :is(.btn-secondary,.secondary-button,.button,.user,.notification-center-close,.notification-pagination button,.operational-notification-bell,.theme-setting-options button){background:#1b304d!important;color:#eaf2ff!important;border-color:#486080!important}
html[data-theme=oscuro] :is(.btn-primary,.btn-new,.primary-button,.primary,.login-button,.account-admin-save){background:#2865df;color:#fff;border-color:#4381ff}
html[data-theme=oscuro] .theme-setting-options button.is-selected{background:#24477d!important;border-color:#74b7ff!important;color:#fff!important}
html[data-theme=oscuro] :is(table,thead,tbody,tr,td,th){border-color:#31435f;color:#eaf2ff}
html[data-theme=oscuro] :is(th,thead,.table-head,.table-header){background:#1b304d!important;color:#d5e5ff!important}
html[data-theme=oscuro] :is(tbody tr:hover,.history-item:hover,.crm-row:hover,.liftevo-select-option:hover){background:#1c3454!important}
html[data-theme=oscuro] :is(.notification-preferences,.notification-clear-toolbar,.notification-center-empty,.notification-pagination){background:#1b304d!important}
html[data-theme=oscuro] :is(.operational-notification-head,.operational-notification-body,.operational-notification-actions){color:#eaf2ff!important;border-color:#31435f!important}
html[data-theme=oscuro] :is(.liftevo-select-option,.menu-item,.mechanic-nav,.nav button){color:#c8d9f0!important}
html[data-theme=oscuro] :is(.menu-item.active,.menu-item:hover,.mechanic-nav.active,.mechanic-nav:hover,.nav button.active,.nav button:hover){background:#274879!important;color:#fff!important}
html[data-theme=oscuro] :is(.badge,.status-badge,.stat-info,.stat-warning,.stat-danger){border-color:#486080}
html[data-theme=oscuro] :is(.workspace-clock,.company-brand,.workspace-brand,.panel-clock){background:#102341!important;color:#eaf2ff!important;border-color:#37547e!important}
html[data-theme=oscuro] :is(.login-card,#access,.portal-account-panel,.employee-info,.fichaje-inline,.time-display,.status-section,.settings-section){background:#14243c!important;color:#eaf2ff!important;border-color:#31435f!important}
html[data-theme=oscuro] :is(.account-admin-scroll,.account-admin-form .form-grid>label,.account-admin-form .account-section-title,.account-admin-form .security-note,.portal-install-guide,.portal-empty,.portal-account-panel){background:#172a46!important;color:#eaf2ff!important;border-color:#415778!important;box-shadow:none!important}
html[data-theme=oscuro] :is(.portal-list-head h2,.portal-list-filters label,.portal-install-guide li,.portal-install-guide p){color:#dce9fb!important}
html[data-theme=oscuro] :is(.portal-password-help.invalid,.error,.field-error){color:#ffaaa5!important}
html[data-theme=oscuro] .portal-password-toggle{color:#bdd5f7!important}
html[data-theme=oscuro] :is(.liftevo-select-option.is-selected,.liftevo-select-option:focus-visible){background:#24477d!important;color:#fff!important}
html[data-theme=oscuro] :is(.modal-content [style*="background: #f8fafc"],.modal-content [style*="background:#f8fafc"],.modal-content [style*="background: #f7faff"]){background:#1a2d49!important;border-color:#415778!important}
html[data-theme=oscuro] :is(.modal-content [style*="color: #172033"],.modal-content [style*="color:#172033"]){color:#eaf2ff!important}
html[data-theme=oscuro] :is(.chat-log,.lc-messages,.chat-messages){background:#0f1d33!important}
html[data-theme=oscuro] :is(.chat-message,.lc-message,.notification-toast-stack .operational-notification-card){background:#1b304d!important;color:#eaf2ff!important;border-color:#415778!important}
html[data-theme=oscuro] :is(.chat-message.user,.lc-message.mine){background:#2458be!important;color:#fff!important}
html[data-theme=oscuro] :is(.chart-card,.chart-container,.vapi-card,.billing-card,.quote-card,.stock-card,.invoice-card,.portal-list-card){background:#14243c!important;color:#eaf2ff!important;border-color:#31435f!important}
html[data-theme=oscuro] :is(svg text,.chart-label){fill:#d7e5fa!important;color:#d7e5fa!important}
html[data-theme=oscuro] a{color:#83b8ff}
html[data-theme=oscuro] :is(img,video,canvas,iframe,.workspace-brand-logo){filter:none!important}
/* Campos claros y legibles dentro del tema oscuro, incluidos los controles nativos. */
html[data-theme=oscuro] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true],[role=combobox]:not(button),.liftevo-select-trigger){background-color:#253e5d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #718caf!important;caret-color:#fff!important;box-shadow:inset 0 1px 2px #06132545!important}
html[data-theme=oscuro] :is(input,textarea)::placeholder{color:#c4d5ec!important;opacity:1!important}
html[data-theme=oscuro] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true],[role=combobox],.liftevo-select-trigger):focus{background-color:#2c496d!important;border-color:#9ecaff!important;box-shadow:0 0 0 3px #75b5ff40!important;outline:2px solid #8cc2ff!important;outline-offset:1px}
html[data-theme=oscuro] :is(input,select,textarea):disabled{background-color:#1b2d46!important;color:#b9cae1!important;-webkit-text-fill-color:#b9cae1!important;opacity:1!important}
html[data-theme=oscuro] :is(input,select,textarea):read-only:not([type=checkbox]){border-color:#4b6382!important}
html[data-theme=oscuro] :is(input,textarea):-webkit-autofill,html[data-theme=oscuro] :is(input,textarea):-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #253e5d inset!important;-webkit-text-fill-color:#fff!important;caret-color:#fff!important}
html[data-theme=oscuro] :is(select option,select optgroup){background:#203854!important;color:#f4f8ff!important}
html[data-theme=oscuro] input::file-selector-button{margin-right:10px;padding:8px 11px;border:1px solid #87a8d1;border-radius:8px;background:#335782;color:#fff;font:inherit;font-weight:700;cursor:pointer}
html[data-theme=oscuro] :is(input[type=date],input[type=time],input[type=datetime-local])::-webkit-calendar-picker-indicator,html[data-theme=oscuro] input[type=search]::-webkit-search-cancel-button{filter:invert(1) brightness(1.45);cursor:pointer}
html[data-theme=oscuro] ::selection{background:#4584dd;color:#fff}
html[data-theme=oscuro] :is(.liftevo-select-menu,.liftevo-select-options,.delivery-combobox-results,.share-machine-results){background:#1b304d!important;color:#eef5ff!important;border-color:#607b9e!important;box-shadow:0 16px 32px #020b1b70!important}
html[data-theme=oscuro] :is(.liftevo-select-option,.delivery-combobox-results button,.share-machine-results button){background:#233d5c!important;color:#f0f6ff!important;border-color:#496587!important}
html[data-theme=oscuro] :is(.liftevo-select-option:hover,.liftevo-select-option.is-selected,.delivery-combobox-results button:hover,.share-machine-results button:hover){background:#305984!important;color:#fff!important}
/* Superficies que los modulos de inicio y los asistentes crean fuera de las tarjetas comunes. */
html[data-theme=oscuro] :is(.home-kpi,.home-panel,.home-menu-card,.role-home-stats article,.revenue-totals>div,.annual-bar,.superadmin-toast,.assistant-dock,.role-assistant-dock,.role-support-panel){background:#14243c!important;color:#eaf2ff!important;border-color:#405776!important;box-shadow:0 10px 26px #020b1b50!important}
html[data-theme=oscuro][data-theme-scope=fichaje] .container{background:#14243c!important;color:#eaf2ff!important;border-color:#405776!important;box-shadow:0 10px 26px #020b1b50!important}
html[data-theme=oscuro] :is(.home-kpi-value,.home-menu-card strong,.home-panel-head h3,.role-home-stats strong,.revenue-totals strong,.annual-bar strong){color:#f2f7ff!important}
html[data-theme=oscuro] :is(.home-kpi-label,.home-menu-card span,.home-panel-head p,.role-home-stats span){color:#b9cbe4!important}
html[data-theme=oscuro] :is(.assistant-messages,.role-assistant-messages,.assistant-suggestions,.assistant-form,.role-assistant-head,.role-assistant-form){background:#102039!important;color:#eaf2ff!important;border-color:#405776!important}
html[data-theme=oscuro] :is(.assistant-message-bot,.role-assistant-message.bot){background:#23405f!important;color:#eef5ff!important;border-color:#567397!important}
html[data-theme=oscuro] :is(.assistant-message-user,.role-assistant-message.user){background:#255bb8!important;color:#fff!important}
html[data-theme=oscuro] :is(.assistant-suggestions button,.role-home-panel-links button){background:#203854!important;color:#eaf2ff!important;border-color:#4d6789!important}
html[data-theme=oscuro] :is(.home-kpi-icon,.home-menu-icon){background:#203c60!important;color:var(--home-kpi-color,#8fc2ff)!important}
html[data-theme=oscuro] .home-kpi:after{background:#203c60!important}
html[data-theme=oscuro] .revenue-pill{background:#244778!important;color:#b8d8ff!important}
html[data-theme=oscuro] .loading-screen{background:#0b1426!important;color:#eaf2ff!important}
html[data-theme=oscuro] #superadminOfflineAuthNotice{background:#0b1426!important;color:#eaf2ff!important}
html[data-theme=oscuro] #superadminOfflineAuthNotice>div{background:#14243c!important;border-color:#405776!important;box-shadow:0 16px 34px #020b1b70!important}
@media(max-width:600px){.theme-setting-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.theme-setting-options button{min-width:0;padding:9px 6px;font-size:12px}}
@media print{html[data-theme=oscuro],html[data-theme=oscuro] body{background:#fff!important;color:#111827!important;color-scheme:light}html[data-theme=oscuro] :is(.panel,.card,.surface,.record,table,th,td,input,select,textarea){background:#fff!important;color:#111827!important;border-color:#d1d5db!important}html[data-theme=oscuro] :is(h1,h2,h3,h4,h5,h6,strong,p,small,label){color:#111827!important}}

/* El tema claro usa una navegacion blanca en todos los espacios privados. */
html[data-theme=claro]{--bg:#fbfcff;--surface:#fff;--panel:#fff;--line:#e2eaf5;--ink:#142b4b;--text:#142b4b;--muted:#627590;--shadow:0 6px 22px #1539670b;color-scheme:light}
html[data-theme=claro],html[data-theme=claro] body{background:#fbfcff!important;color:#142b4b}
html[data-theme=claro] :is(.main,.mechanic-main,.mechanic-content,#workspace,#contents,.app-main){background-color:#fbfcff!important}
html[data-theme=claro] body :is(#panelSidebar.sidebar,.mechanic-sidebar,.side.side){background:#fff!important;color:#244363!important;border-right:1px solid #e1e9f4!important;box-shadow:5px 0 22px #183a680b!important}
html[data-theme=claro] body :is(.menu-title,.mechanic-menu-title,.side .eyebrow,.side .nav-group-label){color:#7285a1!important}
html[data-theme=claro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button){background:transparent!important;color:#29486c!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme=claro] body :is(#panelSidebar .menu-item:hover,.mechanic-sidebar .mechanic-nav:hover,.side .nav button:hover){background:#f0f5fd!important;color:#174aa0!important;border-color:#dce8fa!important}
html[data-theme=claro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button):is(.active,[aria-current=page]){background:#e8f1ff!important;color:#1554b9!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme=claro] body :is(#panelSidebarAccount,.mechanic-sidebar #mechanicAccountButton,.side>#superAdminAccountTrigger,.side .bottom .profile){background:#f8fbff!important;color:#254365!important;border-color:#dbe6f5!important;box-shadow:none!important}
html[data-theme=claro] body :is(#panelSidebarAccount strong,.mechanic-sidebar #mechanicAccountButton strong,.side>#superAdminAccountTrigger strong,.side .bottom .profile strong){color:#17345b!important}
html[data-theme=claro] body :is(#panelSidebarAccount small,.mechanic-sidebar #mechanicAccountButton small,.side>#superAdminAccountTrigger small,.side .bottom .profile,.side .profile){color:#667d9b!important}
html[data-theme=claro] body :is(#panelSidebar .workspace-brand,.mechanic-sidebar .workspace-brand,.side .workspace-brand){background:#fff!important;color:#19385f!important;border-color:#e1eaf6!important;box-shadow:0 6px 18px #1539670b!important}
html[data-theme=claro] body .workspace-brand .workspace-brand-logo{border-bottom-color:#e8eef7!important}
html[data-theme=claro] body .workspace-brand .company-brand>strong{color:#17345b!important}
html[data-theme=claro] body .workspace-brand .company-brand>span{color:#5277a9!important}
html[data-theme=claro] body :is(.workspace-brand .workspace-clock,.panel-clock,.live-clock){background:#f8fbff!important;color:#17345b!important;border-color:#dce7f5!important;box-shadow:none!important}
html[data-theme=claro] body .workspace-brand :is(.company-menu-time,.company-menu-date){color:#17345b!important}
html[data-theme=claro] body .workspace-brand .workspace-clock-icon:before,html[data-theme=claro] body .workspace-brand .workspace-clock-icon:after{background:#2563eb!important}
html[data-theme=claro] body :is(.side .bottom,.mechanic-sidebar .logout-button){border-color:#e1e9f4!important;color:#315175!important}
html[data-theme=claro] body :is(.panel-sidebar-close,.side .mobile-menu-toggle,.mobile-head){background:#fff!important;color:#244363!important;border-color:#dce7f5!important}
html[data-theme=claro] body :is(.panel,.stat,.card,.box,.surface,.record,.modalbox,.modal-content,.account-modal-card,.account-admin-modal,.portal-account-panel,.notification-center-list,.table-container,.form-card,.settings-card){background:#fff!important;border-color:#e2eaf5!important;box-shadow:0 5px 18px #1539670a!important}
html[data-theme=claro] body :is(.surface-head,.account-admin-scroll,.account-admin-profile,.account-admin-form .form-grid>label,.account-admin-form .account-section-title,.portal-install-guide,.portal-empty,.portal-list-filters,.theme-settings){background:#fff!important;border-color:#e2eaf5!important}
html[data-theme=claro] body :is(th,thead,.table-head,.table-header,.toolbar,.mobile-head){background:#f8fbff!important}
html[data-theme=claro] body :is(input,select,textarea,.liftevo-select-trigger){background:#fff!important;border-color:#ccd9ea!important}
html[data-theme=claro] body :is(.liftevo-select-menu,.liftevo-select-options,.notification-center-header,.notification-center-empty){background:#fff!important;border-color:#e2eaf5!important}
html[data-theme=claro] body :is(.theme-setting-options button.is-selected,.nav button.active){color:#1554b9}
html[data-theme=claro][data-theme-scope=clientes] header{background:#fff!important;color:#17345b!important;border-bottom:1px solid #e2eaf5;box-shadow:0 3px 14px #1539670a}
html[data-theme=claro][data-theme-scope=fichaje] body{background:#fbfcff!important}
html[data-theme=claro][data-theme-scope=fichaje] :is(.container,.card,.section,.employee-info,.status-section,.settings-section){background:#fff!important;border-color:#e2eaf5!important;box-shadow:0 6px 20px #1539670a}
@media(max-width:1100px){html[data-theme=claro] body :is(#panelSidebar.sidebar,.mechanic-sidebar,.side.side){border-right:1px solid #e1e9f4!important;box-shadow:14px 0 34px #183a681c!important}}

/* Paleta compartida: cada superficie define también un texto con contraste.
   Solo pantalla: las hojas de impresión y los documentos conservan su papel blanco. */
@media screen {
  html[data-theme=oscuro] {
    --theme-surface:#14243c;
    --theme-raised:#1b304d;
    --theme-hover:#264462;
    --theme-border:#486080;
    --theme-text:#eef5ff;
    --theme-muted:#b8c9e0;
    --theme-link:#9cc9ff;
    --theme-primary:#215bc5;
    --submenu-bg:#14243c;
    --submenu-border:#486080;
    --submenu-text:#eaf2ff;
    --submenu-hover:#264462;
    --submenu-active:#215bc5;
    scrollbar-color:#657d9d #101f36;
  }

  /* Acciones comunes, incluidos botones sin clase de los portales. */
  html[data-theme=oscuro] body :is(button,.btn,a.button,input[type=submit],input[type=button]) {
    background-color:var(--theme-raised);
    color:var(--theme-text);
    border-color:var(--theme-border);
  }
  html[data-theme=oscuro] body :is(.btn,.button,.secondary-button,.btn-secondary,.btn-share,.btn-print,.table-action,.user-action,.admin-action,.home-hero-button,.daily-controls button,.lc-new,.lc-icon,.lc-mute,.assistant-reset,.info-pin-toggle,.recovery-close,.portal-pagination button) {
    background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
  }
  html[data-theme=oscuro] body :is(button,.btn,a.button):not(:disabled):hover {
    border-color:#9cc9ff;
  }
  html[data-theme=oscuro] body :is(.btn-primary,.btn-new,.primary-button,.primary,.login-button,.account-admin-save,.admin-action-save,.daily-primary,.lc-send,.operational-notification-open,button[type=submit],input[type=submit]) {
    background:var(--theme-primary)!important;color:#fff!important;border-color:#659dff!important;
  }
  html[data-theme=oscuro] body :is(.btn-danger,.danger,.admin-action-danger,.lc-delete,.material-remove,.lc-delete-group-hold) {
    background:#8c2737!important;color:#fff!important;border-color:#e38c97!important;
  }
  html[data-theme=oscuro] body :is(.btn-success,.success-button) {
    background:#146246!important;color:#fff!important;border-color:#65cda7!important;
  }
  html[data-theme=oscuro] body :is(button,.btn,a.button):is(.active,.selected,[aria-selected=true],[aria-pressed=true],[aria-current=page]) {
    background:var(--theme-primary)!important;color:#fff!important;border-color:#83b5ff!important;
  }
  html[data-theme=oscuro] body :is(.btn-primary,.btn-danger,.btn-new,.primary-button,.login-button,.lc-send,.daily-primary) :is(span,strong,small,svg) {color:inherit!important}
  html[data-theme=oscuro] body :is(button:disabled,.btn[aria-disabled=true]) {opacity:.65;cursor:not-allowed}
  html[data-theme=oscuro] body a:not(.btn):not(.button) {color:var(--theme-link)}
  html[data-theme=oscuro] body :is(.liftevo-menu-icon,.panel-interface-icon,.home-menu-icon,.home-kpi-icon,.config-submenu-icon,.eyebrow,.fichaje-kicker) {color:#9cc9ff!important}
  html[data-theme=oscuro] body :is(button,.menu-item):is(.active,.selected) :is(svg,.liftevo-menu-icon) {color:#fff!important}

  /* Inicio y contexto de sesión: mismos colores dentro y fuera de la cabecera. */
  html[data-theme=oscuro] body :is(.home-hero-button,.sa-home-hero-actions button:first-child) {background:#e7f0ff!important;color:#142f59!important;border-color:#b7d3ff!important}
  html[data-theme=oscuro] body :is(.home-hero-button,.sa-home-hero-actions button:first-child) :is(span,strong,svg) {color:inherit!important}
  html[data-theme=oscuro] body .home-hero-button.secondary {background:#243d6b!important;color:#fff!important;border-color:#708ebf!important}
  html[data-theme=oscuro] body :is(.delegacion-context-selector,.home-delegacion-context,.topbar-delegacion-context,.home-operational-label) {background:#172e50!important;color:var(--theme-text)!important;border-color:#607da5!important}
  html[data-theme=oscuro] body .delegacion-context-selector>span {color:#dceaff!important}
  html[data-theme=oscuro] body #liftevoOfflineStatus {background:#173a31!important;color:#b9f6d8!important;border-color:#508c77!important}
  html[data-theme=oscuro] body #liftevoOfflineStatus.syncing {background:#193c69!important;color:#d7eaff!important;border-color:#719fd7!important}
  html[data-theme=oscuro] body #liftevoOfflineStatus.pending {background:#493718!important;color:#ffe0a2!important;border-color:#b79754!important}
  html[data-theme=oscuro] body #liftevoOfflineStatus:is(.error,.offline) {background:#6c2432!important;color:#ffe3e8!important;border-color:#d88394!important}
  html[data-theme=oscuro] body #liftevoOfflineStatus * {color:inherit!important}

  /* Listados, filtros, fichas, formularios y ventanas de los módulos. */
  html[data-theme=oscuro] body :is(.modal-bg>.modal,.lc-modal>.modal,.recovery-card,.user-create-modal,.delivery-machine-modal-card,.delivery-machine-modal-head,.quote-modal,.smtp-mail-modal,.document-mail-modal,.panel-action-dialog,.excel-choice,.support-panel,.info-box,.config-card,.config-info-item,.config-panel,.metrics-panel,.daily-card,.daily-panel,.daily-modal,.daily-list-row,.employee-card,.employee-modal,.fleet-card,.fleet-modal,.material-card,.material-form,.stock-form,.stock-header,.stock-pending-summary,.billing-summary-card,.billing-summary-block,.billing-section,.quote-card,.quote-detail,.gastos-card,.expense-card,.work-order-card,.expediente-card,.incident-card,.detail,.detail-card,.machine-detail-card,.client-detail-card,.user-edit-card,.user-row,.superadmin-home-area,.section-card,.document-recipient-picker,.portal-install-guide,.portal-list-card,.portal-pagination,.account-session,.account-session-card) {
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
  }
  html[data-theme=oscuro] body :is(.filters,.filters-box,.filter-bar,.filter-count,.toolbar,.section-title,.company-schedule,.company-schedule-different,.form-grid>label,.delivery-form-grid>label,.delivery-form .block-field,.delivery-form .form-footer,.delivery-signature-section,.labour-list label,.user-status-toggle,.config-info,.password-requirements-side,.users-section,.calendar-controls,.calendar-summary-item,.daily-controls,.daily-filters,.control-toolbar,.control-filters,.control-summary,.stock-metric,.stock-status,.material-toolbar,.fleet-toolbar,.billing-toolbar,.quote-toolbar,.table-toolbar,.modal-footer,.form-actions,.filter-chip,.chip,.tag,.lc-contact,.lc-file,.lc-date-separator span,.lc-system-message,.thread-meta span,.reply,.reply.staff,.history-entry,.empty-state,.login-home-link,.support-version,.support-toggle,.role-support-toggle) {
    background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
  }
  html[data-theme=oscuro] body :is(#modalAdministrador,#modalNuevoUsuario,#modalEditarUsuario) :is(.form-group,.user-create-grid>div,.user-password-checks,.admin-modal-scroll,.users-section,.form-actions) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.home-empty,.empty,.empty-state,.login-subtitle,.checkbox-hint,.security,.support-toggle-label,.role-support-toggle-text,.thread-body,.thread-meta,.lc-empty,.lc-message-meta,.lc-message-footer,.lc-receipt,.lc-row-top time,.employee-position,.table-subtitle,.form-help,.help-text,.detail-label,.detail-title,.model) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.detail-value,.employee-name,.status-title,.kpi .num,.kpi .label,.kpi .delta,.stock-metric-value,.daily-number) {color:var(--theme-text)!important}
  html[data-theme=oscuro] body :is(.role-assistant-online,.customer-signature-status.signed,.password-requirement.ok) {color:#89e9ba!important}
  html[data-theme=oscuro] body :is(.form-grid>label,.delivery-form-grid>label) :is(.liftevo-select-trigger,input,select,textarea) {background:#253e5d!important;color:#fff!important;border-color:#718caf!important}
  html[data-theme=oscuro] body :is(tbody,tbody tr,tbody td) {background-color:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
  html[data-theme=oscuro] body :is(tbody tr:hover,tbody tr:hover td) {background-color:#1d3553!important}
  html[data-theme=oscuro] body :is(.tabs,.metrics-submenus,.config-submenu,.billing-tabs,.fleet-tabs,.stock-tabs,.material-tabs,.employee-tabs,.commercial-tabs,.portal-tabs,.profit-tabs,.work-tabs,.gastos-facturacion-submenu,.albaran-subnav) {background:var(--theme-surface)!important;border-color:var(--theme-border)!important}

  /* Compatibilidad con las superficies claras insertadas en formularios antiguos.
     Se enumeran colores neutros concretos, nunca imágenes, firmas ni documentos. */
  html[data-theme=oscuro] body :is(div,section,article,aside,header,footer,form,label,details,summary,td,li)[style]:is(
    [style*="background:#fff"],[style*="background: #fff"],[style*="background-color:#fff"],[style*="background-color: #fff"],
    [style*="background:white"],[style*="background: white"],
    [style*="background:#f8"],[style*="background: #f8"],[style*="background:#f9"],[style*="background: #f9"],
    [style*="background:#f1f5"],[style*="background: #f1f5"],[style*="background:#f3f4"],[style*="background: #f3f4"],
    [style*="background:#f7fa"],[style*="background: #f7fa"],[style*="background:#eff6"],[style*="background: #eff6"],
    [style*="background:#eef2"],[style*="background: #eef2"],[style*="background:#f0fd"],[style*="background: #f0fd"]
  ) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(div,span,b,label,td,li)[style]:is(
    [style*="color:#334155"],[style*="color: #334155"],[style*="color:#475569"],[style*="color: #475569"],
    [style*="color:#64748b"],[style*="color: #64748b"],[style*="color:#111827"],[style*="color: #111827"],
    [style*="color:#172033"],[style*="color: #172033"],[style*="color:#1e293b"],[style*="color: #1e293b"]
  ) {color:var(--theme-muted)!important}

  /* Estados mantienen su significado sin texto pálido sobre fondos pastel. */
  html[data-theme=oscuro] body :is(.badge,.status-badge,.pill,.status-pill,.stat-info) {background:#203f66!important;color:#d9eaff!important;border-color:#6b90bc!important}
  html[data-theme=oscuro] body :is(.badge-activo,.badge-success,.status-badge.resuelto,.status-badge.completado,.stat-success,.success-message) {background:#173f35!important;color:#a6f2ca!important;border-color:#52967a!important}
  html[data-theme=oscuro] body :is(.badge-pendiente,.badge-warning,.stat-warning,.warning-message,.lc-status,.status-badge.pendiente) {background:#493718!important;color:#ffe0a2!important;border-color:#ad8d50!important}
  html[data-theme=oscuro] body :is(.badge-danger,.badge-urgente,.stat-danger,.error-message,.field-error,.lc-picker-error) {background:#522535!important;color:#ffd1dc!important;border-color:#b96b81!important}
  html[data-theme=oscuro] body :is(.badge,.status-badge,.pill,.status-pill) :is(strong,small,span) {color:inherit!important}

  /* Conversaciones y centro de notificaciones de todos los roles. */
  html[data-theme=oscuro] body :is(.liftevo-chat-shell,.lc-sidebar,.lc-main,.lc-conversation-head,.lc-compose,.lc-attachments,.lc-office-pane,.notification-center,.notification-center-panel,.notification-center-dialog,.notification-center-toolbar,.notification-item,.notification-toast-more,.operational-notification-controls) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.lc-avatar,.lc-attachment,.lc-contact,.lc-row:hover,.lc-row.active,.lc-admin-toggle) {background:#26476c!important;color:#e4f0ff!important}
  html[data-theme=oscuro] body :is(.lc-message,.chat-message,.assistant-message,.role-assistant-message) p {color:#edf4ff!important}
  html[data-theme=oscuro] body .lc-message.mine {background:#204b8d!important}
  html[data-theme=oscuro] body .lc-receipt.visto {color:#80d9ff!important}
  html[data-theme=oscuro] body .operational-notification-stack {background:transparent!important}

  /* Planificadores: días, horas, cola pendiente y editor de cita. */
  html[data-theme=oscuro] body :is(#tallerPlanificador,#calendarioEntregasPanel,.calendar-overlay,.calendar-day,.tp-cell,.tp-worker-label,.tp-queue,.tp-toolbar,.tp-foot,.tp-form,.tp-editor-card,.calendar-pending,.calendar-summary-item,.calendar-route,.tp-card) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.tp-days,.tp-days .tp-worker-label,.calendar-weekday,.calendar-day-head,.calendar-controls,.calendar-pending-head,.tp-card,.calendar-route,.calendar-pending-route) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.tp-cell:hover,.calendar-day:hover,.calendar-day.today,.tp-cell.tp-today) {background:#224064!important}
  html[data-theme=oscuro] body :is(.tp-cell.drag-over,.calendar-day.drag-over,.calendar-pending-route.is-selected) {background:#254f79!important;outline:2px solid #9cc9ff}
  html[data-theme=oscuro] body :is(.tp-week,.tp-days span,.calendar-day-number,.calendar-day-count) {color:var(--theme-text)!important}

  html[data-theme=oscuro][data-theme-scope=clientes] body :is(nav button,header button,.portal-heading-actions button,#account-close,#portal-install,#portal-notifications) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro][data-theme-scope=clientes] body nav button.active {background:var(--theme-primary)!important;color:#fff!important;border-color:#83b5ff!important}
  html[data-theme=oscuro][data-theme-scope=fichaje] body :is(.section,.info-box,.history-item,.history-list,.solicitud-form,.settings-card) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(input[type=date],input[type=time],input[type=datetime-local])::-webkit-calendar-picker-indicator {filter:none}
  html[data-theme=oscuro] body :is(label:has(>select),label:has(>.liftevo-select),.activity-filters,.activity-filters label,.client-work-sites,.client-work-site,.client-extra-editor,.delivery-billing-request,#entregasPendientesResumen,#supportToggle) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:none!important}
  html[data-theme=oscuro] body :is(.metrics-empty,.config-empty,.user-empty,.user-check,.info-label,.customer-signature-head span,.customer-signature-status,#photoSummary,#deliveryPhotoSummary,.calendar-pending-head span) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.info-title,.recovery-card>span,.recovery-card .eyebrow,button[style*="color:#2563eb"],button[style*="color: #2563eb"]) {color:var(--theme-link)!important}
  html[data-theme=oscuro] body .user-check.ok {color:#89e9ba!important}
  html[data-theme=oscuro] body :is(.metrics-filters,.metric-card,.config-toggle,.stripe-webhook,.stripe-shortcuts a,.billing-summary>div,.billing-send-card,.billing-send-feedback,.billing-issue,.billing-message,.billing-pill,.mutedbox,.sa-vf-item,.sa-vf-hero strong,.user-create-grid>div,.config-session,.config-session-current,.portal-empty,.account-load-status,.material-stat,.material-offers,#materialToast,.fleet-workspace,.fleet-filters,.fleet-kpis article,.fleet-location-placeholder,.fleet-cost-total,.fleet-detail-hero,.fleet-detail-grid>div,.fleet-stock,.fleet-user-picker,.fleet-check,.daily-block,.daily-detail,.daily-tag,.daily-notice,.billing-real-kpis button,.gastos-dialog,.gastos-ticket-card,.gastos-warning,.work-card,.work-overlay,.work-head,.work-badge,.work-map-link,.work-review-machines,.work-review-machine,.work-calendar,.work-calendar-day,.work-calendar-blank,.work-visit-timer,.work-visit-apply,.machine-history-identity,.machine-history-stat,.machine-history-marker,.machine-history-card,.machine-history-stop,.employee-form,.employee-account-note,.employee-create-access,.time-nav,.time-summary article,.time-page,.bt-library,.bt-upload,.bt-queue li,.bt-card,.bt-pill,.bt-entries) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.metrics-filters label,.metrics-filters label>span,.company-schedule-head span,.client-extra-editor-title,.nav-group-label,.billing-summary span,.billing-optional,.billing-totals span,.billing-summary>div>span,#billingHistoryPage,.grand,.role-assistant-head span,.bt-meta,.bt-filename,.fleet-kpis span,.work-meta,.work-visit-label) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body #supportWidget #supportToggle {background:#243a55!important;color:var(--theme-text)!important;border-color:#637e9f!important}
  html[data-theme=oscuro] body :is(.bt-actions a,.bt-actions button,.bt-pages button,.time-page a,.billing-row-actions a,.gastos-secondary,.gastos-pagination button,.work-actions button,.work-toolbar button,.employee-pagination button) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(.fleet-status,.billing-pill,.daily-tag,.bt-pill,.material-badge,.work-badge) {background:#203f66!important;color:#d9eaff!important;border-color:#6b90bc!important}
  html[data-theme=oscuro] body :is(.fleet-status.operativo,.fleet-status.resuelta,.employee-state.active,.bt-pill.indexado,.bt-pill.procesado) {background:#173f35!important;color:#a6f2ca!important}
  html[data-theme=oscuro] body :is(.fleet-status.fuera-servicio,.bt-pill.error,.daily-tag.alert,.gastos-warning,.gastos-delete,.billing-delete-confirm,.billing-product-delete,.billing-editor-delete) {background:#522535!important;color:#ffd1dc!important}
  html[data-theme=oscuro] body :is(.fleet-status.taller,.fleet-status.en-reparacion,.billing-pill.borrador,.bt-pill.sin_extractor,.bt-pill.sin_texto,.bt-pill.en_cola) {background:#493718!important;color:#ffe0a2!important}
  html[data-theme=oscuro] body .liftevo-billing {--billing-ink:#eef5ff;--billing-blue:#9cc9ff;--billing-line:#486080}
  html[data-theme=oscuro] body :is(.metric-card>span,.company-schedule>span,.config-toggle>div>div,.billing-total span,.billing-eyebrow,.stripe-webhook code) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.client-extra-contacts,.company-schedule-day,.user-create-fields .form-group,.export-options label,#companyExportModal label) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body .company-schedule-day label {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.integration-row span,.user-password-helper) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.user-password-fields .form-group,.user-password-requirements) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body :is(h1,h2,h3,h4,.section-title,.selector-icon)>.liftevo-ui-icon {color:var(--theme-link)!important}
  html[data-theme=oscuro] body :is(.gastos-primary,.support-send,.bt-upload button,.bt-edit button) {background:var(--theme-primary)!important;color:#fff!important;border-color:#659dff!important}
  html[data-theme=oscuro] body :is(#modalTrabajador,.employees-card) .employee-form :is(.liftevo-select-trigger,input,select) {background:#253e5d!important;color:#fff!important;border-color:#718caf!important}
  html[data-theme=oscuro] body :is(.support-head span,.support-panel label span) {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body :is(.mobile-select-all,.user-password-requirements .user-check) {background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
  html[data-theme=oscuro] body .permissions-heading span {color:var(--theme-muted)!important}
  html[data-theme=oscuro] body .home-hero .home-hero-button.secondary {background:#243d6b!important;color:#fff!important;border-color:#708ebf!important}
  html[data-theme=oscuro] body #vistaInicio .home-delegacion-context :is(select,.liftevo-select-trigger) {background:#253e5d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#718caf!important}
  /* La sección actual se distingue solo por el sombreado. */
  html[data-theme=oscuro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button):is(.active,[aria-current=page]) {
    background:#203a60!important;
    color:#eef5ff!important;
    border-color:transparent!important;
    box-shadow:none!important;
  }

  /* Gris grafito: jerarquía neutra con azul reservado a acciones y selección. */
  html[data-theme=oscuro] {
    --bg:#121519;--surface:#222831;--panel:#222831;--line:#48515e;
    --ink:#f5f7fb;--text:#f5f7fb;--muted:#c2cad5;
    --navy:#1a1e24;--dark:#1a1e24;
    --theme-surface:#222831;--theme-raised:#2d3540;--theme-hover:#364555;
    --theme-border:#48515e;--theme-text:#f5f7fb;--theme-muted:#c2cad5;
    --theme-link:#a9ceff;--theme-primary:#326dc3;
    --submenu-bg:#222831;--submenu-border:#566473;
    --submenu-text:#f2f6fb;--submenu-hover:#364555;--submenu-active:#326dc3;
    color-scheme:dark;scrollbar-color:#748397 #181d24;
  }
  html[data-theme=oscuro],html[data-theme=oscuro] body,
  html[data-theme=oscuro] body :is(.main,.content,.mechanic-main,.mechanic-content,#workspace,#contents,.app-main) {
    background:#121519!important;color:#f5f7fb!important;
  }
  html[data-theme=oscuro] body :is(#panelSidebar.sidebar,.sidebar,.side,.mechanic-sidebar) {
    background:#1a1e24!important;color:#f2f6fb!important;border-color:#48515e!important;
  }
  html[data-theme=oscuro] body .mechanic-sidebar {background:linear-gradient(180deg,#202833,#181c23)!important}
  html[data-theme=oscuro] body :is(.panel,.stat,.card,.box,.surface,.record,.modalbox,.modal-content,.table-container,.table-wrap,.data-table-wrap,.form-card,.settings-card,.notification-center-list,.role-home-panel,.home-kpi,.home-panel,.home-menu-card,.role-home-stats article,.role-home-grid>button,.superadmin-home-area,.login-card,#access,.portal-account-panel,.employee-info,.fichaje-inline,.time-display,.status-section,.settings-section) {
    background:#222831!important;color:#f5f7fb!important;border-color:#48515e!important;
    box-shadow:0 10px 25px rgba(0,0,0,.13)!important;
  }
  html[data-theme=oscuro] body :is(.chart-card,.chart-container,.vapi-card,.billing-card,.quote-card,.stock-card,.invoice-card,.portal-list-card,.crm-stat-card,.crm-list,.crm-detail,.machine-quick-card,.machine-info,.history-box,.thread-card,.account-modal-card,.account-admin-modal,.account-admin-profile,.account-admin-form,.admin-profile,.notification-center,.notification-center-panel,.notification-center-dialog,.operational-notification-card,.assistant-dock,.role-assistant-dock,.role-support-panel) {
    background:#222831!important;color:#f5f7fb!important;border-color:#48515e!important;
  }
  html[data-theme=oscuro] body :is(.surface-head,.thread-top,.account-admin-header,.modal-header,.modalhead,.notification-center-header,.notification-center-empty,.operational-notification-head,.portal-list-toolbar,.toolbar,.table-head,.table-header,thead,th) {
    background:#2d3540!important;color:#f5f7fb!important;border-color:#48515e!important;
  }
  html[data-theme=oscuro] body :is(.theme-settings,.account-admin-scroll,.account-admin-form .form-grid>label,.account-admin-form .account-section-title,.portal-install-guide,.portal-empty,.portal-list-filters,.notification-preferences,.notification-clear-toolbar,.notification-pagination) {
    background:#2a323c!important;color:#f5f7fb!important;border-color:#48515e!important;
  }
  html[data-theme=oscuro] body :is(.workspace-brand,.company-brand,.workspace-clock,.panel-clock) {
    background:#252d37!important;color:#f5f7fb!important;border-color:#4d5b6b!important;
  }
  html[data-theme=oscuro] body .workspace-brand .company-brand {background:transparent!important;border:0!important;box-shadow:none!important}
  html[data-theme=oscuro] body :is(.workspace-brand,#panelSidebar .workspace-brand,.mechanic-sidebar .workspace-brand,.side .workspace-brand) {
    background:linear-gradient(145deg,#293440,#202832)!important;
    border-color:#536173!important;box-shadow:0 12px 28px rgba(0,0,0,.2)!important;
  }
  html[data-theme=oscuro] body :is(.home-hero,#dashboard .sa-home-hero,.role-home-head) {
    background:radial-gradient(circle at 87% 18%,rgba(132,175,221,.16),transparent 36%),linear-gradient(125deg,#252b35 0%,#303d4d 62%,#3a536c 100%)!important;
    border-color:#5e7286!important;box-shadow:0 18px 35px rgba(0,0,0,.22)!important;
  }
  html[data-theme=oscuro] body :is(.home-identity,.sa-home-identity) {
    background:rgba(18,23,30,.35)!important;border-color:rgba(194,211,233,.29)!important;
  }
  html[data-theme=oscuro] body :is(.home-hero h1,.home-hero strong,.home-hero p,#dashboard .sa-home-hero h2,#dashboard .sa-home-hero p,.role-home-head h1,.role-home-head p) {color:#f7f9fc!important}
  html[data-theme=oscuro] body :is(.home-hero p,#dashboard .sa-home-hero p,.role-home-head p) {color:#e0e8f2!important}
  html[data-theme=oscuro] body :is(.home-hero .home-hero-button,#dashboard .sa-home-hero-actions button:first-child) {
    background:#e5efff!important;color:#193a60!important;border-color:#d0e0f7!important;
    box-shadow:0 4px 11px rgba(0,0,0,.13)!important;
  }
  html[data-theme=oscuro] body :is(.home-hero .home-hero-button.secondary,#dashboard .sa-home-hero-actions button:not(:first-child)) {
    background:rgba(203,220,243,.12)!important;color:#f7f9fc!important;border-color:rgba(201,222,250,.46)!important;box-shadow:none!important;
  }
  html[data-theme=oscuro] body :is(.home-kpi-icon,.home-menu-icon,.liftevo-menu-icon) {color:#b5d3fb!important}
  html[data-theme=oscuro] body :is(.home-kpi-icon,.home-menu-icon,.assistant-suggestions button,.role-home-panel-links button,.revenue-pill) {background:#303d4b!important;border-color:#596a7c!important}
  html[data-theme=oscuro] body .home-kpi:after {background:#303d4b!important}
  html[data-theme=oscuro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button) {color:#d4deeb!important}
  html[data-theme=oscuro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button):not(.active):hover {background:#303b49!important;color:#fff!important}
  html[data-theme=oscuro] body :is(#panelSidebar .menu-item,.mechanic-sidebar .mechanic-nav,.side .nav button):is(.active,[aria-current=page]) {
    background:#34475e!important;color:#fff!important;border-color:transparent!important;box-shadow:none!important;
  }
  html[data-theme=oscuro] body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.liftevo-select-trigger,[contenteditable=true]) {
    background:#323c49!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#78899d!important;
  }
  html[data-theme=oscuro] body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):disabled {
    background:#252d37!important;color:#c1ccd9!important;-webkit-text-fill-color:#c1ccd9!important;border-color:#586677!important;opacity:1!important;
  }
  html[data-theme=oscuro] body :is(input,textarea)::placeholder {color:#c7d2df!important}
  html[data-theme=oscuro] body :is(.btn-primary,.btn-new,.primary-button,.primary,.login-button,.account-admin-save,.admin-action-save,.daily-primary,.lc-send,.operational-notification-open,button[type=submit],input[type=submit]) {
    background:#326dc3!important;color:#fff!important;border-color:#75a7eb!important;
  }
  html[data-theme=oscuro] body :is(.btn-secondary,.secondary-button,.button,.user,.notification-center-close,.notification-pagination button,.operational-notification-bell,.theme-setting-options button,.btn-share,.btn-print) {
    background:#2d3540!important;color:#f5f7fb!important;border-color:#596a7c!important;
  }
  html[data-theme=oscuro] body .theme-setting-options button.is-selected {background:#344f70!important;border-color:#83b8f5!important;color:#fff!important}
  html[data-theme=oscuro] body :is(.liftevo-select-menu,.liftevo-select-options,.delivery-combobox-results,.share-machine-results) {background:#2d3540!important;color:#f5f7fb!important;border-color:#65768a!important}
  html[data-theme=oscuro] body :is(.liftevo-select-option,.delivery-combobox-results button,.share-machine-results button) {background:#323c49!important;color:#f5f7fb!important;border-color:#596a7c!important}
  html[data-theme=oscuro] body :is(.liftevo-select-option:hover,.liftevo-select-option.is-selected,.delivery-combobox-results button:hover,.share-machine-results button:hover) {background:#3b5a7a!important;color:#fff!important}
  html[data-theme=oscuro] body :is(table,thead,tbody,tr,td,th) {border-color:#48515e!important}
  html[data-theme=oscuro] body :is(tbody tr:hover,.history-item:hover,.crm-row:hover) {background:#303b49!important}
  html[data-theme=oscuro] body :is(.lc-sidebar,.lc-main,.lc-conversation-head,.lc-compose,.lc-attachments,.lc-office-pane,.notification-item,.operational-notification-controls) {background:#222831!important;color:#f5f7fb!important;border-color:#48515e!important}
  html[data-theme=oscuro] body :is(.chat-log,.lc-messages,.chat-messages,.assistant-messages,.role-assistant-messages) {background:#1d232b!important}
  html[data-theme=oscuro] body :is(.chat-message,.lc-message,.notification-toast-stack .operational-notification-card,.assistant-message-bot,.role-assistant-message.bot) {background:#2d3540!important;color:#f5f7fb!important;border-color:#596a7c!important}
  html[data-theme=oscuro] body :is(.chat-message.user,.lc-message.mine,.assistant-message-user,.role-assistant-message.user) {background:#315b8f!important;color:#fff!important}
  html[data-theme=oscuro] body .lc-message.mine .lc-message-footer {color:#f2f7ff!important}
  html[data-theme=oscuro] body :is(.loading-screen,#superadminOfflineAuthNotice) {background:#121519!important;color:#f5f7fb!important}
  html[data-theme=oscuro] body #superadminOfflineAuthNotice>div {background:#222831!important;border-color:#566473!important}
  html[data-theme=oscuro] body #vistaInicio .home-delegacion-context :is(select,.liftevo-select-trigger) {background:#3b4857!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#8298af!important}
  html[data-theme=oscuro] body :is(#modalTrabajador,.employees-card) .employee-form :is(.liftevo-select-trigger,input,select) {background:#323c49!important;color:#fff!important;border-color:#78899d!important}
  html[data-theme=oscuro] body #supportWidget #supportToggle {background:#303b49!important;color:#f5f7fb!important;border-color:#65768a!important}
}
