/* GENERADO por nucleo/herramientas/tema-oscuro.js (tema-4) para hub/public/codificacion.html. NO editar a mano:
   los ajustes van en nucleo/public/tema-extra.css o en tema-extra.css del módulo, y se vuelve a generar. */
@media screen {
html[data-tema="oscuro"] { color-scheme: dark; }
/* ---- styles.css ---- */
html[data-tema="oscuro"] { --ns-ink: #d2dbe8; --ns-muted: #8ca4c4; --ns-line: #2b3e5b; --ns-bg: #14243c; }
html[data-tema="oscuro"] *::-webkit-scrollbar-thumb { background: #2f3842; }
html[data-tema="oscuro"] .auth-brand-top b i, html[data-tema="oscuro"] .hub-brand b i { color: #80efca; }
html[data-tema="oscuro"] .auth-brand-core h1 b { color: #80efca; }
html[data-tema="oscuro"] .auth-brand footer { color: #8ca4c4; }
html[data-tema="oscuro"] .auth-card { background: #111f33; }
html[data-tema="oscuro"] .auth-card label { color: #b3c3d8; }
html[data-tema="oscuro"] .auth-card input { background: #132239; }
html[data-tema="oscuro"] .auth-card input:hover { border-color: #314768; }
html[data-tema="oscuro"] .auth-card input:focus { background: #111f33; }
html[data-tema="oscuro"] .auth-error { color: #e78888; }
html[data-tema="oscuro"] .btn-ghost { background: #111f33; color: #b3c3d8; }
html[data-tema="oscuro"] .btn-ghost:hover { border-color: #8f2828; color: #e78888; background: #3b1717; }
html[data-tema="oscuro"] .btn-mini { background: #111f33; color: #b3c3d8; }
html[data-tema="oscuro"] .btn-mini:hover { color: #7af5cf; }
html[data-tema="oscuro"] .hub-top { background: #111f33; }
html[data-tema="oscuro"] .hub-user { color: #b3c3d8; }
html[data-tema="oscuro"] .hub-kpi { background: #111f33; }
html[data-tema="oscuro"] .hub-section { background: #111f33; }
html[data-tema="oscuro"] td { border-bottom: 1px solid #273953; }
html[data-tema="oscuro"] .pill { background: #152640; color: #a4b7d0; }
html[data-tema="oscuro"] .pill.green { background: #1c4731; color: #7af5d2; }
html[data-tema="oscuro"] .pill.blue { background: #1a2c43; color: #85a0ea; }
html[data-tema="oscuro"] .pill.orange { background: #44331b; color: #f29f7e; }
html[data-tema="oscuro"] .pill.red { background: #411919; color: #e88787; }
html[data-tema="oscuro"] .risk-I, html[data-tema="oscuro"] .risk-II { background: #1c4731; color: #7af5d2; }
html[data-tema="oscuro"] .risk-III { background: #49401d; color: #f3b07c; }
html[data-tema="oscuro"] .risk-IV, html[data-tema="oscuro"] .risk-V { background: #411919; color: #e88787; }
html[data-tema="oscuro"] .module-card { background: #111f33; }
html[data-tema="oscuro"] .module-card:not(.off):hover { border-color: #328650; }
html[data-tema="oscuro"] .module-card .mod-norm { color: #85a0ea; }
html[data-tema="oscuro"] .modal-card { background: #111f33; }
html[data-tema="oscuro"] #modalClose { background: #152640; }
html[data-tema="oscuro"] #modalClose:hover { background: #411919; color: #e88787; }
html[data-tema="oscuro"] .form-grid label { color: #b3c3d8; }
html[data-tema="oscuro"] .form-grid input, html[data-tema="oscuro"] .form-grid select, html[data-tema="oscuro"] .form-grid textarea { background: #132239; }
html[data-tema="oscuro"] .form-grid input:focus, html[data-tema="oscuro"] .form-grid select:focus, html[data-tema="oscuro"] .form-grid textarea:focus { background: #111f33; }
html[data-tema="oscuro"] .form-msg { color: #e78888; }
html[data-tema="oscuro"] .std-hint { background: #183c23; border: 1px solid #30874f; color: #8de2ad; }
html[data-tema="oscuro"] #modalBody .form-actions { background: #132239; }
html[data-tema="oscuro"] .cons-card { background: #111f33; }
html[data-tema="oscuro"] .cs-red { color: #e78888; }
html[data-tema="oscuro"] .cs-orange { color: #f6bc79; }
html[data-tema="oscuro"] .cs-green { color: #7af5cf; }
html[data-tema="oscuro"] .cons-bar { background: #162843; }
html[data-tema="oscuro"] body { background-image: linear-gradient(180deg, #162843 0, var(--ns-bg) 230px); }
html[data-tema="oscuro"] .pill { border: 1px solid #2e4363; }
html[data-tema="oscuro"] .pill.green { border-color: #44745a; }
html[data-tema="oscuro"] .pill.blue { border-color: #2f5388; }
html[data-tema="oscuro"] .pill.orange { border-color: #865f31; }
html[data-tema="oscuro"] .pill.red { border-color: #823636; }
html[data-tema="oscuro"] .setup-camara { background: #132239; }
html[data-tema="oscuro"] .setup-grid label { color: #b3c3d8; }
html[data-tema="oscuro"] .setup-grid input, html[data-tema="oscuro"] .setup-grid select, html[data-tema="oscuro"] .setup-grid textarea { background: #132239; }
html[data-tema="oscuro"] .setup-grid input:focus, html[data-tema="oscuro"] .setup-grid select:focus, html[data-tema="oscuro"] .setup-grid textarea:focus { background: #111f33; }
html[data-tema="oscuro"] .setup-user { background: #132239; }
html[data-tema="oscuro"] .ns-firma { color: #8da5c5; background: #111f33; border-top: 1px solid var(--line, #2a3d59); }
html[data-tema="oscuro"] .ns-firma a { color: #c5d1e1; }
html[data-tema="oscuro"] .cons-triaje .tri { background: #111f33; border-left: 3px solid #314768; }
html[data-tema="oscuro"] .cons-triaje .tri-mal b { color: #e78888; }
html[data-tema="oscuro"] .cons-triaje .tri-ojo b { color: #f3b07c; }
html[data-tema="oscuro"] .dir-card { background: #111f33; }
html[data-tema="oscuro"] .dir-logo { background: #15253e; }
html[data-tema="oscuro"] .dir-logo img { background: #111f33; }
html[data-tema="oscuro"] .dir-logo span { color: #cbd6e4; }
html[data-tema="oscuro"] .dir-top b { color: #cbd6e4; }
html[data-tema="oscuro"] .dir-links a { color: #b3c3d8; }
html[data-tema="oscuro"] .dir-links a:hover { color: #81efe5; }
/* ---- relieve.css ---- */
html[data-tema="oscuro"] .kpi::before, html[data-tema="oscuro"] .hub-kpi::before, html[data-tema="oscuro"] .fac-kpi::before, html[data-tema="oscuro"] .plan-kpi::before, html[data-tema="oscuro"] .module-card::before, html[data-tema="oscuro"] .phva-card::before, html[data-tema="oscuro"] .ind-card::before, html[data-tema="oscuro"] .crit-card::before, html[data-tema="oscuro"] .cons-card::before, html[data-tema="oscuro"] .sec-card::before, html[data-tema="oscuro"] .pts-card::before, html[data-tema="oscuro"] .score-card::before, html[data-tema="oscuro"] .kpi::after, html[data-tema="oscuro"] .hub-kpi::after, html[data-tema="oscuro"] .fac-kpi::after, html[data-tema="oscuro"] .plan-kpi::after, html[data-tema="oscuro"] .module-card::after, html[data-tema="oscuro"] .phva-card::after, html[data-tema="oscuro"] .ind-card::after, html[data-tema="oscuro"] .crit-card::after, html[data-tema="oscuro"] .cons-card::after, html[data-tema="oscuro"] .sec-card::after, html[data-tema="oscuro"] .pts-card::after, html[data-tema="oscuro"] .score-card::after { border: 1px solid var(--line, #2a3c59); background: #111f33; }
html[data-tema="oscuro"] .kpi:hover, html[data-tema="oscuro"] .hub-kpi:hover, html[data-tema="oscuro"] .fac-kpi:hover, html[data-tema="oscuro"] .plan-kpi:hover, html[data-tema="oscuro"] .module-card:hover, html[data-tema="oscuro"] .phva-card:hover, html[data-tema="oscuro"] .ind-card:hover, html[data-tema="oscuro"] .crit-card:hover, html[data-tema="oscuro"] .cons-card:hover, html[data-tema="oscuro"] .sec-card:hover, html[data-tema="oscuro"] .pts-card:hover, html[data-tema="oscuro"] .score-card:hover { border-color: #395379; }
html[data-tema="oscuro"] .card:hover { border-color: #2f4464; }
html[data-tema="oscuro"] .table-wrap thead th { border-right: 1px solid rgba(36, 52, 76, 0.18); }
html[data-tema="oscuro"] .table-wrap tbody td { border-bottom: 1px solid var(--line, #2a3c59); }
html[data-tema="oscuro"] .table-wrap tbody tr:nth-child(even) td { background: #132239; }
html[data-tema="oscuro"] .table-wrap tbody tr:hover td { background: #192b3e; }
/* ---- remate.css ---- */
html[data-tema="oscuro"] .saltar-al-contenido:focus, html[data-tema="oscuro"] .saltar-al-contenido:focus-visible { outline: 2px solid #24344c; }
/* ---- marca.css ---- */
html[data-tema="oscuro"] { --mod-tinta: color-mix(in srgb, var(--mod) 72%, #e7ecf3); --mod-suave: color-mix(in srgb, var(--mod) 10%, #111f33); }
html[data-tema="oscuro"] ::selection { background: color-mix(in srgb, var(--marca-cian) 35%, #111f33); color: #cbd6e4; }
html[data-tema="oscuro"] .topbar .hamburger:hover { background: rgba(17, 31, 51, 0.12); }
html[data-tema="oscuro"] .topbar .mod-badge { border: 1.5px solid color-mix(in srgb, var(--mod) 85%, #24344c); }
html[data-tema="oscuro"] .topbar .company-sel, html[data-tema="oscuro"] .topbar .tb-hub, html[data-tema="oscuro"] .topbar .suite-sel, html[data-tema="oscuro"] .topbar .suite-salir { background: rgba(17, 31, 51, 0.07); border: 1px solid rgba(36, 52, 76, 0.22); }
html[data-tema="oscuro"] .topbar .company-sel:hover, html[data-tema="oscuro"] .topbar .tb-hub:hover, html[data-tema="oscuro"] .topbar .suite-sel:hover, html[data-tema="oscuro"] .topbar .suite-salir:hover { background: rgba(17, 31, 51, 0.13); }
html[data-tema="oscuro"] .g-head:hover .g-ico.nsi { background: color-mix(in srgb, var(--mod) 16%, #111f33); }
html[data-tema="oscuro"] .module-card .mod-ico .nsi-t { color: color-mix(in srgb, var(--c) 78%, #e7ecf3); }
html[data-tema="oscuro"] .head-row h1, html[data-tema="oscuro"] .hub-hero h1 { color: #cbd6e4; }
html[data-tema="oscuro"] .card-head h2, html[data-tema="oscuro"] .hub-section-head h2, html[data-tema="oscuro"] .dialog header h2, html[data-tema="oscuro"] .modal-card header h2 { color: #cbd6e4; }
html[data-tema="oscuro"] .kpi:hover, html[data-tema="oscuro"] .plan-kpi:hover, html[data-tema="oscuro"] .ind-card:hover, html[data-tema="oscuro"] .sec-card:hover, html[data-tema="oscuro"] .score-card:hover, html[data-tema="oscuro"] .pts-card:hover { border-color: color-mix(in srgb, var(--mod) 45%, #24344c); }
html[data-tema="oscuro"] .card:hover { border-color: color-mix(in srgb, var(--mod) 25%, #2b3e5b); }
html[data-tema="oscuro"] .hub-brand .hub-sep { background: rgba(17, 31, 51, 0.22); }
html[data-tema="oscuro"] .hub-brand .hub-editar { color: #7fe1f0; }
html[data-tema="oscuro"] .hub-top .ns-logo { background: rgba(17, 31, 51, 0.08); }
html[data-tema="oscuro"] .hub-top .btn-ghost { background: rgba(17, 31, 51, 0.07); border: 1px solid rgba(36, 52, 76, 0.2); }
html[data-tema="oscuro"] .hub-top .btn-ghost:hover { background: rgba(17, 31, 51, 0.14); }
html[data-tema="oscuro"] .hub-top #btnLogout:hover { border-color: #912734; }
html[data-tema="oscuro"] body:has(.hub:not([hidden])) { background-image: radial-gradient(1100px 380px at 12% -90px, rgba(0, 184, 230, .12), transparent 70%),
    linear-gradient(180deg, #162842 0, var(--ns-bg) 260px); }
html[data-tema="oscuro"] .hub-kpi strong { color: #cbd6e4; }
html[data-tema="oscuro"] .module-card { border: 1.5px solid color-mix(in srgb, var(--c) 30%, #2b3e5b); }
html[data-tema="oscuro"] .module-card .mod-ico { background: color-mix(in srgb, var(--c) 13%, #111f33); }
html[data-tema="oscuro"] .module-card .mod-norm { color: color-mix(in srgb, var(--c) 72%, #e7ecf3); }
html[data-tema="oscuro"] .module-card b { color: #cbd6e4; }
html[data-tema="oscuro"] .auth-brand::before { border: 1px solid rgba(39, 110, 144, 0.18); }
html[data-tema="oscuro"] .ns-lema b { color: #7fe1f0; }
html[data-tema="oscuro"] .ns-nodo { background: linear-gradient(180deg, #111f33, #18253c); border: 2px solid color-mix(in srgb, var(--c) 85%, #24344c); color: #cbd6e4; }
html[data-tema="oscuro"] .ns-nodo i { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #111f33), var(--c) 55%, color-mix(in srgb, var(--c) 75%, #000)); }
html[data-tema="oscuro"] .ns-nodo small { color: #b3c3d8; }
html[data-tema="oscuro"] .ns-centro { border: 3px solid #276e90; }
html[data-tema="oscuro"] .ns-fichas span + span { border-left: 1px solid rgba(36, 52, 76, 0.18); }
html[data-tema="oscuro"] .ns-fichas i { color: #76a3f9; background: radial-gradient(circle at 50% 30%, #111f33, #1a2641); }
html[data-tema="oscuro"] .auth-card h2 { color: #cbd6e4; }
html[data-tema="oscuro"] .ns-cab-constructor .ns-marca { border-right: 1px solid var(--ns-linea, #2b3e5b); }
/* ---- <style> de la página ---- */
html[data-tema="oscuro"] .cod-filtros label, html[data-tema="oscuro"] .cod-form label { color: #b3c3d8; }
html[data-tema="oscuro"] .cod-filtros select, html[data-tema="oscuro"] .cod-filtros input, html[data-tema="oscuro"] .cod-form input, html[data-tema="oscuro"] .cod-form select, html[data-tema="oscuro"] .cod-form textarea { background: #111f33; }
html[data-tema="oscuro"] .cod-tabla td { border-bottom: 1px solid #273953; }
html[data-tema="oscuro"] .cod-code { color: #cbd6e4; }
html[data-tema="oscuro"] .cod-sug { background: #183e2c; color: #7ef1d1; }
html[data-tema="oscuro"] .cod-pill { background: #152640; color: #b3c3d8; }
html[data-tema="oscuro"] .cod-pill.vigente { background: #1a4328; color: #8de2ad; }
html[data-tema="oscuro"] .cod-pill.solicitado { background: #1a3141; color: #b2c2d7; }
html[data-tema="oscuro"] .cod-pill.borrador { background: #4b471d; color: #edbb82; }
html[data-tema="oscuro"] .cod-pill.obsoleto, html[data-tema="oscuro"] .cod-pill.historico { background: #1a2f4f; color: #a4b7d0; }
html[data-tema="oscuro"] .cod-pill.anulado { background: #411919; color: #e68a8a; }
html[data-tema="oscuro"] .cod-pill.FIELD { background: #1a2c43; color: #899fe6; }
html[data-tema="oscuro"] .cod-pill.BOTH { background: #20193e; color: #ae8ae5; }
html[data-tema="oscuro"] .cod-esq.ok { color: #8de2ad; }
html[data-tema="oscuro"] .cod-esq.pend { color: #f3b07c; }
html[data-tema="oscuro"] .cod-msg.bad { background: #3b1717; color: #e68a8a; }
html[data-tema="oscuro"] .cod-msg.ok { background: #183e2c; color: #7ef1d1; }
/* ---- colores puestos en línea desde los .js ---- */
html[data-tema="oscuro"] [style*="color:var(--ns-navy)" i]:not([style*="-color:var(--ns-navy)" i]):not([style*="-color: var(--ns-navy)" i]), html[data-tema="oscuro"] [style*="color: var(--ns-navy)" i]:not([style*="-color:var(--ns-navy)" i]):not([style*="-color: var(--ns-navy)" i]) { color: #cbd6e4 !important; }
html[data-tema="oscuro"] [style*="background:#dbeafe" i], html[data-tema="oscuro"] [style*="background: #dbeafe" i], html[data-tema="oscuro"] [style*="background-color: rgb(219, 234, 254)" i] { background-color: #1a2c43 !important; }
html[data-tema="oscuro"] [style*="background:#dcfce7" i], html[data-tema="oscuro"] [style*="background: #dcfce7" i], html[data-tema="oscuro"] [style*="background-color: rgb(220, 252, 231)" i] { background-color: #1a4328 !important; }
html[data-tema="oscuro"] [style*="background:#e0f2fe" i], html[data-tema="oscuro"] [style*="background: #e0f2fe" i], html[data-tema="oscuro"] [style*="background-color: rgb(224, 242, 254)" i] { background-color: #1a3141 !important; }
html[data-tema="oscuro"] [style*="background:#e2e8f0" i], html[data-tema="oscuro"] [style*="background: #e2e8f0" i], html[data-tema="oscuro"] [style*="background-color: rgb(226, 232, 240)" i] { background-color: #1a2f4f !important; }
html[data-tema="oscuro"] [style*="background:#ecfdf5" i], html[data-tema="oscuro"] [style*="background: #ecfdf5" i], html[data-tema="oscuro"] [style*="background-color: rgb(236, 253, 245)" i] { background-color: #183e2c !important; }
html[data-tema="oscuro"] [style*="background:#ede9fe" i], html[data-tema="oscuro"] [style*="background: #ede9fe" i], html[data-tema="oscuro"] [style*="background-color: rgb(237, 233, 254)" i] { background-color: #20193e !important; }
html[data-tema="oscuro"] [style*="background:#f1f5f9" i], html[data-tema="oscuro"] [style*="background: #f1f5f9" i], html[data-tema="oscuro"] [style*="background-color: rgb(241, 245, 249)" i] { background-color: #152640 !important; }
html[data-tema="oscuro"] [style*="background:#fee2e2" i], html[data-tema="oscuro"] [style*="background: #fee2e2" i], html[data-tema="oscuro"] [style*="background-color: rgb(254, 226, 226)" i] { background-color: #411919 !important; }
html[data-tema="oscuro"] [style*="background:#fef2f2" i], html[data-tema="oscuro"] [style*="background: #fef2f2" i], html[data-tema="oscuro"] [style*="background-color: rgb(254, 242, 242)" i] { background-color: #3b1717 !important; }
html[data-tema="oscuro"] [style*="background:#fef9c3" i], html[data-tema="oscuro"] [style*="background: #fef9c3" i], html[data-tema="oscuro"] [style*="background-color: rgb(254, 249, 195)" i] { background-color: #4b471d !important; }
html[data-tema="oscuro"] [style*="background:#fff" i], html[data-tema="oscuro"] [style*="background: #fff" i], html[data-tema="oscuro"] [style*="background-color: rgb(255, 255, 255)" i] { background-color: #111f33 !important; }
html[data-tema="oscuro"] [style*="border-bottom:#f1f5f9" i], html[data-tema="oscuro"] [style*="border-bottom: #f1f5f9" i], html[data-tema="oscuro"] [style*="border-bottom-color: rgb(241, 245, 249)" i] { border-bottom-color: #273953 !important; }
html[data-tema="oscuro"] [style*="color:#065f46" i]:not([style*="-color:#065f46" i]):not([style*="-color: #065f46" i]):not([style*="-color: rgb(6, 95, 70)" i]), html[data-tema="oscuro"] [style*="color: #065f46" i]:not([style*="-color:#065f46" i]):not([style*="-color: #065f46" i]):not([style*="-color: rgb(6, 95, 70)" i]), html[data-tema="oscuro"] [style*="color: rgb(6, 95, 70)" i]:not([style*="-color:#065f46" i]):not([style*="-color: #065f46" i]):not([style*="-color: rgb(6, 95, 70)" i]) { color: #7ef1d1 !important; }
html[data-tema="oscuro"] [style*="color:#075985" i]:not([style*="-color:#075985" i]):not([style*="-color: #075985" i]):not([style*="-color: rgb(7, 89, 133)" i]), html[data-tema="oscuro"] [style*="color: #075985" i]:not([style*="-color:#075985" i]):not([style*="-color: #075985" i]):not([style*="-color: rgb(7, 89, 133)" i]), html[data-tema="oscuro"] [style*="color: rgb(7, 89, 133)" i]:not([style*="-color:#075985" i]):not([style*="-color: #075985" i]):not([style*="-color: rgb(7, 89, 133)" i]) { color: #b2c2d7 !important; }
html[data-tema="oscuro"] [style*="color:#166534" i]:not([style*="-color:#166534" i]):not([style*="-color: #166534" i]):not([style*="-color: rgb(22, 101, 52)" i]), html[data-tema="oscuro"] [style*="color: #166534" i]:not([style*="-color:#166534" i]):not([style*="-color: #166534" i]):not([style*="-color: rgb(22, 101, 52)" i]), html[data-tema="oscuro"] [style*="color: rgb(22, 101, 52)" i]:not([style*="-color:#166534" i]):not([style*="-color: #166534" i]):not([style*="-color: rgb(22, 101, 52)" i]) { color: #8de2ad !important; }
html[data-tema="oscuro"] [style*="color:#1e40af" i]:not([style*="-color:#1e40af" i]):not([style*="-color: #1e40af" i]):not([style*="-color: rgb(30, 64, 175)" i]), html[data-tema="oscuro"] [style*="color: #1e40af" i]:not([style*="-color:#1e40af" i]):not([style*="-color: #1e40af" i]):not([style*="-color: rgb(30, 64, 175)" i]), html[data-tema="oscuro"] [style*="color: rgb(30, 64, 175)" i]:not([style*="-color:#1e40af" i]):not([style*="-color: #1e40af" i]):not([style*="-color: rgb(30, 64, 175)" i]) { color: #899fe6 !important; }
html[data-tema="oscuro"] [style*="color:#334155" i]:not([style*="-color:#334155" i]):not([style*="-color: #334155" i]):not([style*="-color: rgb(51, 65, 85)" i]), html[data-tema="oscuro"] [style*="color: #334155" i]:not([style*="-color:#334155" i]):not([style*="-color: #334155" i]):not([style*="-color: rgb(51, 65, 85)" i]), html[data-tema="oscuro"] [style*="color: rgb(51, 65, 85)" i]:not([style*="-color:#334155" i]):not([style*="-color: #334155" i]):not([style*="-color: rgb(51, 65, 85)" i]) { color: #b3c3d8 !important; }
html[data-tema="oscuro"] [style*="color:#475569" i]:not([style*="-color:#475569" i]):not([style*="-color: #475569" i]):not([style*="-color: rgb(71, 85, 105)" i]), html[data-tema="oscuro"] [style*="color: #475569" i]:not([style*="-color:#475569" i]):not([style*="-color: #475569" i]):not([style*="-color: rgb(71, 85, 105)" i]), html[data-tema="oscuro"] [style*="color: rgb(71, 85, 105)" i]:not([style*="-color:#475569" i]):not([style*="-color: #475569" i]):not([style*="-color: rgb(71, 85, 105)" i]) { color: #a4b7d0 !important; }
html[data-tema="oscuro"] [style*="color:#5b21b6" i]:not([style*="-color:#5b21b6" i]):not([style*="-color: #5b21b6" i]):not([style*="-color: rgb(91, 33, 182)" i]), html[data-tema="oscuro"] [style*="color: #5b21b6" i]:not([style*="-color:#5b21b6" i]):not([style*="-color: #5b21b6" i]):not([style*="-color: rgb(91, 33, 182)" i]), html[data-tema="oscuro"] [style*="color: rgb(91, 33, 182)" i]:not([style*="-color:#5b21b6" i]):not([style*="-color: #5b21b6" i]):not([style*="-color: rgb(91, 33, 182)" i]) { color: #ae8ae5 !important; }
html[data-tema="oscuro"] [style*="color:#854d0e" i]:not([style*="-color:#854d0e" i]):not([style*="-color: #854d0e" i]):not([style*="-color: rgb(133, 77, 14)" i]), html[data-tema="oscuro"] [style*="color: #854d0e" i]:not([style*="-color:#854d0e" i]):not([style*="-color: #854d0e" i]):not([style*="-color: rgb(133, 77, 14)" i]), html[data-tema="oscuro"] [style*="color: rgb(133, 77, 14)" i]:not([style*="-color:#854d0e" i]):not([style*="-color: #854d0e" i]):not([style*="-color: rgb(133, 77, 14)" i]) { color: #edbb82 !important; }
html[data-tema="oscuro"] [style*="color:#991b1b" i]:not([style*="-color:#991b1b" i]):not([style*="-color: #991b1b" i]):not([style*="-color: rgb(153, 27, 27)" i]), html[data-tema="oscuro"] [style*="color: #991b1b" i]:not([style*="-color:#991b1b" i]):not([style*="-color: #991b1b" i]):not([style*="-color: rgb(153, 27, 27)" i]), html[data-tema="oscuro"] [style*="color: rgb(153, 27, 27)" i]:not([style*="-color:#991b1b" i]):not([style*="-color: #991b1b" i]):not([style*="-color: rgb(153, 27, 27)" i]) { color: #e68a8a !important; }
html[data-tema="oscuro"] [style*="color:#b45309" i]:not([style*="-color:#b45309" i]):not([style*="-color: #b45309" i]):not([style*="-color: rgb(180, 83, 9)" i]), html[data-tema="oscuro"] [style*="color: #b45309" i]:not([style*="-color:#b45309" i]):not([style*="-color: #b45309" i]):not([style*="-color: rgb(180, 83, 9)" i]), html[data-tema="oscuro"] [style*="color: rgb(180, 83, 9)" i]:not([style*="-color:#b45309" i]):not([style*="-color: #b45309" i]):not([style*="-color: rgb(180, 83, 9)" i]) { color: #f3b07c !important; }
}
/* ---- ajustes a mano (tema-extra.css) ---- */
/* NormaSuite · ajustes a mano del MODO OSCURO, comunes a todos los módulos (19-11-2026).
   Lo demás lo genera nucleo/herramientas/tema-oscuro.js, que copia este archivo al final de cada oscuro*.css.
   Aquí va solo lo que no sale de convertir un color: el interruptor, las barras de desplazamiento y los casos raros. */

/* El interruptor sol / luna (lo pone nucleo/public/tema.js). */
.ns-tema { display: inline-grid; place-items: center; cursor: pointer; padding: 0; width: 38px; height: 38px; }
.ns-tema-suelto { position: fixed; left: 14px; bottom: 14px; z-index: 900; border-radius: 999px; border: 1px solid rgba(15, 30, 46, .15);
  background: #fff; color: #00254A; box-shadow: 0 6px 18px -8px rgba(2, 19, 49, .45); }
@media print { .ns-tema { display: none !important; } }

@media screen {
html[data-tema="oscuro"] .ns-tema-suelto { background: #16263F; color: #E6EDF7; border-color: rgba(255, 255, 255, .14); }
html[data-tema="oscuro"] body { background-color: #0A1424; color: #C9D4E3; }
html[data-tema="oscuro"] ::selection { background: #1F4C7A; color: #fff; }
html[data-tema="oscuro"] *::-webkit-scrollbar-track { background: #0E1A2D; }
html[data-tema="oscuro"] :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="submit"], [type="button"]) { background-color: #0E1A2D; color: #E6EDF7; border-color: #314661; }
html[data-tema="oscuro"] :is(input, textarea)::placeholder { color: #7F92AA; }
html[data-tema="oscuro"] select option { background-color: #111E33; color: #E6EDF7; }
html[data-tema="oscuro"] :is(input, select, textarea):disabled { background-color: #16263F; color: #9FB0C5; }
html[data-tema="oscuro"] hr { border-color: #24364F; }
html[data-tema="oscuro"] dialog { background-color: #111E33; color: #C9D4E3; }
/* «Saltar al contenido» (remate.css) usa var(--ns-ink) de fondo, que en oscuro pasa a tinta clara: letra blanca sobre claro. */
html[data-tema="oscuro"] .saltar-al-contenido { background: #16263F; color: #fff; }
/* Reloj del tablero (tablero-suite.js lo dibuja con colores fijos en los atributos): aguja, eje y marcas de la escala. */
html[data-tema="oscuro"] .tb-medidor svg .aguja path, html[data-tema="oscuro"] .tb-medidor svg circle[fill="#163250"] { fill: #C0CEDF; }
html[data-tema="oscuro"] .tb-medidor svg circle[fill="#fff"] { fill: #111E33; }
html[data-tema="oscuro"] .tb-medidor svg line { stroke: #3B5273; }
/* Ventanas tipo Mac (ventana-mac.css): los signos de los tres botones van oscuros sobre rojo, amarillo y verde. */
html[data-tema="oscuro"] .vm-b svg { stroke: rgba(0, 0, 0, .55); }
html[data-tema="oscuro"] .vm-verde svg path { fill: rgba(0, 0, 0, .55); }
/* Botón flotante de ayuda y soporte: sus dos rayas son <span> de fondo blanco sobre el azul del botón, que se queda. */
html[data-tema="oscuro"] .nsd-tog span { background: #fff; }
/* Las sombras claras de relieve (brillo blanco arriba) no van sobre fondo oscuro. */
/* El logo de letras azules se cambia por el blanco donde el fondo pasó a oscuro. */
html[data-tema="oscuro"] img[src$="normasuite-logo.svg"] { content: url("marca/normasuite-logo-blanco.svg"); }
html[data-tema="oscuro"] img[src$="normasuite-simbolo.svg"] { content: url("marca/normasuite-simbolo-blanco.svg"); }
}

