/* Tema oscuro profesional: capa final compartida por todos los módulos. */
html[data-theme="dark"]{color-scheme:dark;--ux-bg:#0c1118;--ux-navy:#eef3f8;--ux-muted:#a8b4c3;--ux-border:#2a3543;--ux-blue:#6ba6f8;--surface:#141b24;--surface-subtle:#1a232e;--bg:#0c1118;--ink:#eef3f8;--muted:#a8b4c3;--line:#2a3543;--line-strong:#394757;--faint:#8391a3;--brand:#6ba6f8;--brand-soft:#1d3350}
html[data-theme="dark"] body,html[data-theme="dark"] #appScreen,html[data-theme="dark"] .shell-main{background:#0c1118!important;color:#eef3f8}
html[data-theme="dark"] .shell-main{background-image:radial-gradient(circle at 15% -10%,rgba(75,124,190,.09),transparent 30%),linear-gradient(180deg,#0d131b,#0b1017 70%)!important}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .liquid-topnav{border-color:#293544!important;background:rgba(15,21,29,.97)!important;box-shadow:0 14px 38px rgba(0,0,0,.28)!important;backdrop-filter:blur(18px)}
html[data-theme="dark"] .sidebar .nav-item,html[data-theme="dark"] .sidebar .nav-label,html[data-theme="dark"] .liquid-nav-scroll button{color:#b8c4d2!important}
html[data-theme="dark"] .sidebar .nav-item:hover,html[data-theme="dark"] .liquid-nav-scroll button:hover{background:#18222e!important;color:#f3f7fb!important}
html[data-theme="dark"] .sidebar .nav-item.active,html[data-theme="dark"] .liquid-nav-scroll button.active{background:#1b304a!important;color:#8ebcff!important;box-shadow:inset 3px 0 #6ba6f8}

html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] strong,html[data-theme="dark"] b{color:#f1f5f9}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] dt,html[data-theme="dark"] .section-label{color:#a8b4c3}
html[data-theme="dark"] a{color:#8ebcff}

html[data-theme="dark"] .welcome-banner,html[data-theme="dark"] .dashboard-company-active,html[data-theme="dark"] .dashboard-company-empty,html[data-theme="dark"] .dashboard-critical-card,html[data-theme="dark"] .dashboard-declarations-section,html[data-theme="dark"] .dashboard-calendar-card,html[data-theme="dark"] .dashboard-declaration-kpis article,html[data-theme="dark"] .action-card,html[data-theme="dark"] .consult-card,html[data-theme="dark"] .account-panel,html[data-theme="dark"] .admin-panel,html[data-theme="dark"] .billing-editor,html[data-theme="dark"] .opinion-status-card,html[data-theme="dark"] .csf-status-card,html[data-theme="dark"] .fiscal-agent-shell,html[data-theme="dark"] .imss-sua-upload,html[data-theme="dark"] .imss-sua-header,html[data-theme="dark"] .sat-auto-create,html[data-theme="dark"] .sat-auto-card,html[data-theme="dark"] .declaration-tab-panel{border-color:#2a3543!important;background:#141b24!important;color:#eef3f8!important;box-shadow:0 12px 32px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .action-card:hover,html[data-theme="dark"] .dashboard-critical-card:hover{border-color:#49617d!important;background:#18222d!important;box-shadow:0 16px 36px rgba(0,0,0,.26)!important}
html[data-theme="dark"] .action-card small,html[data-theme="dark"] .dashboard-company-name p,html[data-theme="dark"] .card-heading p{color:#a8b4c3!important}
html[data-theme="dark"] .action-go{background:#1c2632!important;color:#9aabc0!important}
html[data-theme="dark"] .action-card:hover .action-go{background:#233247!important;color:#8ebcff!important}

html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .fiscal-filters,html[data-theme="dark"] .csf-settings,html[data-theme="dark"] .schedule-box{border-color:#344151!important;background:#101720!important;color:#edf3f8!important;box-shadow:none!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#748397!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:#6598dc!important;outline:2px solid rgba(101,152,220,.2)!important;outline-offset:1px}
html[data-theme="dark"] option{background:#141b24;color:#edf3f8}
html[data-theme="dark"] button.secondary,html[data-theme="dark"] .back-link,html[data-theme="dark"] .wp-paid-action.secondary{border-color:#3a485a!important;background:#18212c!important;color:#d8e2ed!important}
html[data-theme="dark"] button.secondary:hover,html[data-theme="dark"] .back-link:hover{background:#202c3a!important;border-color:#53657b!important}

html[data-theme="dark"] .wp-table-wrap,html[data-theme="dark"] .xml-table-wrap,html[data-theme="dark"] .declaration-table-wrap,html[data-theme="dark"] .csf-history-table,html[data-theme="dark"] .opinion-activity,html[data-theme="dark"] .mailbox-table,html[data-theme="dark"] .admin-table,html[data-theme="dark"] .imss-sua-table-card,html[data-theme="dark"] .sat-auto-table{border-color:#2b3745!important;background:#121922!important;color:#e8eef5!important}
html[data-theme="dark"] table{color:#e6edf5!important}
html[data-theme="dark"] table thead th,html[data-theme="dark"] .wp-table-wrap thead th{border-color:#344150!important;background:#1b2531!important;color:#b9c5d2!important;box-shadow:none!important}
html[data-theme="dark"] table tbody td,html[data-theme="dark"] table tbody th,html[data-theme="dark"] table tfoot td{border-color:#293542!important;background:transparent;color:#dfe7f0!important}
html[data-theme="dark"] table tbody tr:nth-child(even){background:#111923!important}
html[data-theme="dark"] table tbody tr:hover{background:#1a2633!important}
html[data-theme="dark"] table tfoot tr,html[data-theme="dark"] .imss-sua-total-row td{border-color:#3b4a5d!important;background:#1a2532!important;color:#f2f6fa!important}
html[data-theme="dark"] .imss-sua-cell-diff,html[data-theme="dark"] td.imss-sua-cell-diff{background:#3a2024!important;color:#ffb4b8!important}
html[data-theme="dark"] .wp-table-wrap td small,html[data-theme="dark"] table td small{color:#94a3b5!important}

html[data-theme="dark"] .dashboard-certificate-indicator>header,html[data-theme="dark"] .dashboard-document-indicator>footer,html[data-theme="dark"] .dashboard-certificate-indicator>footer,html[data-theme="dark"] .dashboard-recent-activity>div,html[data-theme="dark"] .dashboard-recent-activity button{border-color:#2a3543!important;background:#161f29!important}
html[data-theme="dark"] .dashboard-document-indicator>footer strong{border-color:#3a4859!important;background:#1c2632!important;color:#dce6f0!important;box-shadow:none!important}
html[data-theme="dark"] .dashboard-document-indicator>footer strong svg{color:#8ebcff!important}
html[data-theme="dark"] .dashboard-document-indicator:hover>footer strong{border-color:#557091!important;background:#223044!important;color:#f2f6fa!important}
html[data-theme="dark"] .dashboard-recent-activity button:hover{background:#1c2734!important}
html[data-theme="dark"] .document-status-ring:before,html[data-theme="dark"] .certificate-days-ring:before{background:#141b24!important}
html[data-theme="dark"] .document-status-ring span{background:#1b2530!important}
html[data-theme="dark"] .dashboard-declaration-month{border-color:#344150!important;background:#19232e!important;color:#dce5ee!important;opacity:1}
html[data-theme="dark"] .dashboard-declaration-month.presented{border-color:#2d7654!important;background:#142b22!important;color:#70d5a2!important}
html[data-theme="dark"] .dashboard-declaration-month.missing{border-color:#754047!important;background:#2d1c21!important;color:#ff9ba3!important}
html[data-theme="dark"] .dashboard-declaration-month.current{border-color:#765c2f!important;background:#2d2619!important;color:#ffc76b!important}
html[data-theme="dark"] .dashboard-declaration-month.future{color:#7f8d9f!important;opacity:.72}

html[data-theme="dark"] .wp-overview>div,html[data-theme="dark"] .opinion-kpis article,html[data-theme="dark"] .xml-summary article,html[data-theme="dark"] .declaration-kpis article,html[data-theme="dark"] .mailbox-kpis article,html[data-theme="dark"] .admin-kpis article{border-color:#2a3543!important;background:#141b24!important;color:#eef3f8!important}
html[data-theme="dark"] .imss-sua-upload>header{border-color:#2a3543!important;background:linear-gradient(135deg,#17212c,#141b24)!important;color:#eef3f8!important}
html[data-theme="dark"] .imss-sua-upload>header h3{color:#f1f5f9!important}
html[data-theme="dark"] .imss-sua-upload>header p{color:#aebac8!important}
html[data-theme="dark"] .imss-sua-upload>header>span{border-color:#315b4b!important;background:#183328!important;color:#8de0b6!important}
html[data-theme="dark"] .imss-sua-upload>footer{border-color:#2a3543!important;background:#111923!important;color:#b8c4d2!important}
html[data-theme="dark"] .imss-sua-upload>footer>div{color:#b1becd!important}
html[data-theme="dark"] .imss-sua-upload>footer>div svg{color:#79adf4!important}
html[data-theme="dark"] .imss-sua-upload>footer>button.secondary{border-color:#426083!important;background:#1a2b40!important;color:#9bc5ff!important}
html[data-theme="dark"] .imss-sua-upload>footer>button.secondary:hover{border-color:#5f82ad!important;background:#213650!important;color:#d9e9ff!important}
html[data-theme="dark"] .imss-sua-export{border-color:#31506b!important;background:linear-gradient(135deg,#152431,#172a28)!important}
html[data-theme="dark"] .wp-overview strong,html[data-theme="dark"] .opinion-kpis b,html[data-theme="dark"] .xml-summary b,html[data-theme="dark"] .declaration-kpis b{color:#f1f5f9}
html[data-theme="dark"] .wp-tabs{border-color:#2b3745!important}
html[data-theme="dark"] .wp-tabs button{color:#aab7c6!important}
html[data-theme="dark"] .wp-tabs button.active{border-color:#6ba6f8!important;color:#8ebcff!important}

html[data-theme="dark"] .wp-status,html[data-theme="dark"] .opinion-table-status,html[data-theme="dark"] .payment-state{border:1px solid #4a3c25;background:#302719;color:#ffd184}
html[data-theme="dark"] .wp-status.pagada,html[data-theme="dark"] .opinion-table-status.positive{border-color:#285f47;background:#173126;color:#7ee2ae}
html[data-theme="dark"] .wp-status.diferencia,html[data-theme="dark"] .opinion-table-status.negative{border-color:#714047;background:#321d22;color:#ff9ea5}
html[data-theme="dark"] .wp-status.parcial{border-color:#365579;background:#192b42;color:#9bc5ff}
html[data-theme="dark"] .company-fiel-state.valid,html[data-theme="dark"] .current-certificate dd.valid{background:#173126!important;color:#7ee2ae!important}
html[data-theme="dark"] .company-fiel-state.warning{background:#302719!important;color:#ffd184!important}
html[data-theme="dark"] .company-fiel-state.expired{background:#321d22!important;color:#ff9ea5!important}
html[data-theme="dark"] .company-fiel-state.missing{background:#202a35!important;color:#b5c0cd!important}

html[data-theme="dark"] .history-empty,html[data-theme="dark"] .wp-empty,html[data-theme="dark"] .sat-auto-empty,html[data-theme="dark"] .dashboard-summary-empty{border-color:#344150!important;background:#111923!important;color:#b5c1cf!important}
html[data-theme="dark"] .wp-error,html[data-theme="dark"] .sat-auto-error{border-color:#714047!important;background:#2c1b20!important;color:#ffb1b7!important}
html[data-theme="dark"] details,html[data-theme="dark"] .draft-notes,html[data-theme="dark"] .billing-guidance{border-color:#303c4b!important;background:#111923!important;color:#cbd5e1!important}
html[data-theme="dark"] .workspace-context,html[data-theme="dark"] .workspace-company,html[data-theme="dark"] .global-taxpayer-menu,html[data-theme="dark"] .global-taxpayer-menu button,html[data-theme="dark"] .mailbox-workspace,html[data-theme="dark"] .mailbox-item,html[data-theme="dark"] .mailbox-detail,html[data-theme="dark"] .mailbox-empty,html[data-theme="dark"] .official-fiscal-card,html[data-theme="dark"] .idse-panel,html[data-theme="dark"] .idse-operation-types button,html[data-theme="dark"] .infonavit-credit-card,html[data-theme="dark"] .infonavit-history,html[data-theme="dark"] .infonavit-history>button,html[data-theme="dark"] .curp-query-form,html[data-theme="dark"] .curp-history-card,html[data-theme="dark"] .curp-history-card>div>button,html[data-theme="dark"] .certificate-phase,html[data-theme="dark"] .current-certificate,html[data-theme="dark"] .certificate-history,html[data-theme="dark"] .certificate-faq,html[data-theme="dark"] .certificate-recovery-head,html[data-theme="dark"] .recovered-certificate,html[data-theme="dark"] .retention-flow,html[data-theme="dark"] .preloaded-declaration,html[data-theme="dark"] .preloaded-sat-summary{border-color:#2a3543!important;background:#141b24!important;color:#e8eef5!important}
html[data-theme="dark"] .workspace-company:hover,html[data-theme="dark"] .global-taxpayer-menu button:hover,html[data-theme="dark"] .mailbox-item:hover,html[data-theme="dark"] .infonavit-history>button:hover,html[data-theme="dark"] .curp-history-card>div>button:hover{background:#1b2632!important}
html[data-theme="dark"] .workspace-company.active,html[data-theme="dark"] .mailbox-item.active{border-color:#41658f!important;background:#1a3049!important}
html[data-theme="dark"] .fiscal-agent-shell>aside,html[data-theme="dark"] .fiscal-agent-shell>aside>button,html[data-theme="dark"] .fiscal-agent-composer,html[data-theme="dark"] .fiscal-agent-suggestions button,html[data-theme="dark"] .fiscal-agent-messages article>div{border-color:#2a3543!important;background:#151e28!important;color:#e8eef5!important}
html[data-theme="dark"] .fiscal-agent-messages article.user>div{background:#1a3049!important}
html[data-theme="dark"] .fiscal-agent-messages article p{color:#d9e2ec!important}
html[data-theme="dark"] .declaration-tabs,html[data-theme="dark"] .mailbox-view-tabs,html[data-theme="dark"] .idse-tabs,html[data-theme="dark"] .certificate-recovery-filters{border-color:#2a3543!important;background:#101720!important}
html[data-theme="dark"] .declaration-tabs button.active,html[data-theme="dark"] .mailbox-view-tabs button.active,html[data-theme="dark"] .idse-tabs button.active,html[data-theme="dark"] .certificate-recovery-filters button.active{background:#1d2b3b!important;color:#8ebcff!important;box-shadow:none!important}
html[data-theme="dark"] .status.warning,html[data-theme="dark"] .idse-warning,html[data-theme="dark"] .phase-warning,html[data-theme="dark"] .retention-disabled-warning{border-color:#695334!important;background:#2b2419!important;color:#ffd38a!important}
html[data-theme="dark"] .curp-result-card,html[data-theme="dark"] .retention-complete{border-color:#2d6a4d!important;background:#142a21!important;color:#89e3b6!important}
html[data-theme="dark"] .coming-soon-modal{background:rgba(4,8,13,.68)!important}
html[data-theme="dark"] .coming-soon-modal section{border-color:#354252!important;background:#151d27!important;box-shadow:0 28px 80px rgba(0,0,0,.5)!important}
html[data-theme="dark"] .coming-soon-close,html[data-theme="dark"] .repse-delete,html[data-theme="dark"] .mailbox-actions button,html[data-theme="dark"] .mailbox-detail>button,html[data-theme="dark"] .dashboard-company-selector>footer button{border-color:#394758!important;background:#18212c!important;color:#dbe5ef!important}
html[data-theme="dark"] .email-verification-popup{background:rgba(3,8,15,.28)!important}html[data-theme="dark"] .email-verification-popup>section{border-color:#35465b!important;background:#151e2a!important;box-shadow:0 22px 65px rgba(0,0,0,.48)!important}html[data-theme="dark"] .email-verification-icon{background:#1a3150!important;color:#79adf5!important}html[data-theme="dark"] .email-verification-popup small{color:#7fb1f5!important}html[data-theme="dark"] .email-verification-popup h2{color:#edf4fc!important}html[data-theme="dark"] .email-verification-popup p{color:#aebdd0!important}html[data-theme="dark"] .email-verification-resend{border-color:#405672!important;background:#1a2737!important;color:#a8cdfb!important}html[data-theme="dark"] .email-verification-whatsapp,html[data-theme="dark"] .verification-whatsapp-help{color:#71d6a3!important}
html[data-theme="dark"] .verification-pending-card{border-color:#35465b!important;background:#151e2a!important;color:#edf4fc!important}html[data-theme="dark"] .verification-pending-card span{color:#aebdd0!important}html[data-theme="dark"] .verification-pending-card a{border-color:#315f4b!important;background:#172a24!important;color:#71d6a3!important}
html[data-theme="dark"] hr{border-color:#2a3543}
html[data-theme="dark"] ::selection{background:#315b8f;color:#fff}
html[data-theme="dark"] *{scrollbar-color:#43536a #111821}
