/* Modo oscuro: superficies claras fijas de cada ventana pasan a las del tema oscuro (generado revisando cada hoja de estilos) */

/* admin-lab-a.css */
html[data-theme="dark"] .lb-kpi.mal b { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .lb-pill { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .lb-pill.e-enviada { background:hsla(35,90%,55%,.16) !important; color:hsl(35,85%,76%) !important; }
html[data-theme="dark"] .lb-pill.e-recibida { background:hsla(150,67%,55%,.16) !important; color:hsl(152,81%,76%) !important; }
html[data-theme="dark"] .lb-pill.e-instalada { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .lb-pz.mal { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .lb-pz.ok { color:hsl(152,81%,74%) !important; }
html[data-theme="dark"] .lb-av { background:hsla(324,90%,55%,.16) !important; color:hsl(322,74%,76%) !important; }

/* agenda-a.css */
html[data-theme="dark"] .aga-card { background:var(--card) !important; }
html[data-theme="dark"] .aga-x { background:var(--card-2) !important; color:var(--ink) !important; }
html[data-theme="dark"] .aga-x:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-pill.g { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .aga-pill.b { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .aga-pill.a { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] .aga-pill.r { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .aga-name { color:var(--ink) !important; }
html[data-theme="dark"] .aga-b { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-b:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-s { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-s:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-s.on { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-info b { color:var(--ink) !important; }
html[data-theme="dark"] .aga-info b.aga-red { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] html body #appointmentWeekView .week-v-day-head.is-today .week-v-day-name { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] .aga-mail { color:var(--ink-2) !important; }
html[data-theme="dark"] .aga-chip.g { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .aga-chip.r { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .aga-chip.a { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] .aga-chip.n { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .aga-at b { color:var(--ink) !important; }
html[data-theme="dark"] .aga-at .aga-r { color:var(--ink) !important; }
html[data-theme="dark"] .aga-tel { color:var(--ink-2) !important; }
html[data-theme="dark"] .aga-debe { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] .aga-box { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-seg .aga-s { color:var(--ink-2) !important; }
html[data-theme="dark"] .aga-seg .aga-s:hover { background:var(--card) !important; }
html[data-theme="dark"] .aga-seg .aga-s.on { background:var(--card) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .aga-ri { background:var(--card) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .aga-rt { color:var(--ink) !important; }
html[data-theme="dark"] .aga-ib { background:var(--card) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-ib:hover { background:hsla(205,90%,55%,.16) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-na { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-na:hover { background:hsla(204,90%,55%,.16) !important; }
html[data-theme="dark"] .aga-asist { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-asist h4 { color:var(--ink) !important; }
html[data-theme="dark"] .aga-s2 { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-s2:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-s3 { color:var(--ink-2) !important; }
html[data-theme="dark"] .aga-s3:hover { background:var(--card) !important; }
html[data-theme="dark"] .aga-s3.on { background:var(--card) !important; }
html[data-theme="dark"] .aga-s3.b.on { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] .aga-s3.g.on { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] .aga-s3.r.on { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] .aga-va h4 { color:var(--ink) !important; }
html[data-theme="dark"] .aga-row { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-row:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-rico { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .aga-rtx b { color:var(--ink) !important; }
html[data-theme="dark"] .aga-row.b .aga-rico { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .aga-row.g .aga-rico { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .aga-row.r .aga-rico { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .aga-row.b.on { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-row.b.on .aga-rck { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] .aga-row.g.on { background:hsla(142,64%,55%,.16) !important; }
html[data-theme="dark"] .aga-row.r.on { background:var(--card-2) !important; }
html[data-theme="dark"] .aga-row.r.on .aga-rck { color:hsl(0,75%,74%) !important; }
html[data-theme="dark"] .aga-hero.n { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .aga-hero.b { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .aga-hero.a { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] .aga-hero.g { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .aga-hero.r { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .aga-xb { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-xb.r { background:var(--card) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .aga-xb.out { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] .aga-vc h4 { color:var(--ink) !important; }
html[data-theme="dark"] .aga-ab { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-ab.g { background:hsla(142,64%,55%,.16) !important; color:hsl(145,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .aga-ab.r { background:var(--card-2) !important; color:hsl(0,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #calendario .week-appointment-block.aga-bad.aga-bad.aga-bad { background:hsla(0,90%,55%,.16) !important; }
html[data-theme="dark"] #calendario .week-appointment-block.aga-bad.aga-bad.aga-bad .week-block-name,
html[data-theme="dark"] #calendario .week-appointment-block.aga-bad.aga-bad.aga-bad .week-block-time,
html[data-theme="dark"] #calendario .week-appointment-block.aga-bad.aga-bad.aga-bad .week-block-meta,
html[data-theme="dark"] #calendario .week-appointment-block.aga-bad.aga-bad.aga-bad .week-block-dur { color:hsl(0,77%,74%) !important; }

/* ajustes-v2.css */
html[data-theme="dark"] #ajv2 .av-bar { background:var(--card-2) !important; }
html[data-theme="dark"] #ajv2 .av-btn.r { background:hsla(0,90%,55%,.16) !important; }
html[data-theme="dark"] #ajv2 .av-tag.g { background:var(--card-2) !important; color:var(--ink) !important; }
html[data-theme="dark"] #ajv2 .av-alert { color:hsl(38,85%,74%) !important; }
html[data-theme="dark"] #ajv2 .av-msg { background:hsla(0,90%,55%,.16) !important; color:hsl(0,77%,76%) !important; }
html[data-theme="dark"] #ajv2 .av-kbd { background:var(--card-2) !important; }

/* apple-movil.css */
html[data-theme="dark"] html body nav.tabs { background:var(--card) !important; }
html[data-theme="dark"] html body .tab-btn { color:var(--ink-2) !important; }
html[data-theme="dark"] html body .tab-btn.active,
html[data-theme="dark"] html body .tab-btn.pill-on { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] html body nav.tabs .nav-pill { background:var(--card) !important; }
html[data-theme="dark"] html body header .secondary,
html[data-theme="dark"] html body header button.secondary { background:var(--card) !important; }
html[data-theme="dark"] html body button.secondary,
html[data-theme="dark"] html body .secondary:not(header *),
html[data-theme="dark"] html body button.ghost { background:var(--card) !important; }
html[data-theme="dark"] html body button.secondary:hover { background:var(--card-2) !important; }
html[data-theme="dark"] html body .mini-card,
html[data-theme="dark"] html body .ini-card,
html[data-theme="dark"] html body .report-card,
html[data-theme="dark"] html body .card { background:var(--card) !important; }
html[data-theme="dark"] html body tbody tr:hover td { background:var(--card-2) !important; }
html[data-theme="dark"] html body input:not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-theme="dark"] html body select,
html[data-theme="dark"] html body textarea { background:var(--card) !important; }
html[data-theme="dark"] html body .modal-foot { background:var(--card-2) !important; }
html[data-theme="dark"] html body .modal-close { background:hsla(220,41%,55%,.16) !important; }
html[data-theme="dark"] html body nav.tabs .tab-btn.active,
html[data-theme="dark"] html body nav.tabs .tab-btn.pill-on,
html[data-theme="dark"] html body nav.tabs .tab-btn.active *,
html[data-theme="dark"] html body nav.tabs .tab-btn.pill-on * { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] html body nav.tabs .tab-btn.pill-on::after,
html[data-theme="dark"] html body nav.tabs .tab-btn.active::after { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] html body .pd-rail-item { color:var(--ink) !important; }
html[data-theme="dark"] html body .pd-rail-item.active,
html[data-theme="dark"] html body .pd-rail-item[aria-current="true"],
html[data-theme="dark"] html body .pd-rail-item.on { background:hsla(204,90%,55%,.16) !important; color:hsl(204,85%,76%) !important; }
html[data-theme="dark"] html body .pd-rail-back { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] html body .pd-rail .danger,
html[data-theme="dark"] html body .pd-rail-item.danger { color:hsl(4,84%,74%) !important; }
html[data-theme="dark"] html body .rx-search-box,
html[data-theme="dark"] html body .reminders-search-box input { background:var(--card-2) !important; }
html[data-theme="dark"] html body .breakdown-progress-track { background:var(--card-2) !important; }
html[data-theme="dark"] html body .report-action-btn { background:var(--card) !important; }
html[data-theme="dark"] html body .pd-rail-item.pd-on { background:hsla(204,90%,55%,.16) !important; color:hsl(204,85%,76%) !important; }
html[data-theme="dark"] html body .pd-stat { background:var(--card-2) !important; }

/* atenciones-a.css */
html[data-theme="dark"] .atn-k { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .atn-k b { color:var(--ink) !important; }
html[data-theme="dark"] .atn-k.g b { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] .atn-k.r b { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] #atnA .up { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] #atnA .dn { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] .atn-count { color:var(--ink-2) !important; }
html[data-theme="dark"] .atn-seg button { color:var(--ink-2) !important; }
html[data-theme="dark"] .atn-seg button.on { background:var(--card) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .atn-day { background:var(--card-2) !important; }
html[data-theme="dark"] .atn-day .cb { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] .atn-day .pc { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] .atn-sd.r { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] .atn-st.g { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .atn-st.o { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] .atn-st.r { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .atn-me { color:var(--ink-2) !important; }
html[data-theme="dark"] .atn-ac .js-add-session { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .atn-card { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .atn-c { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .atn-deu span { color:hsl(0,74%,74%) !important; }
html[data-theme="dark"] .atn-bar2 div { background:hsla(206,81%,55%,.16) !important; }
html[data-theme="dark"] .atn-tabs button { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .atn-tabs button.on { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }

/* avatar-paciente.css */
html[data-theme="dark"] html body #patientDetail .pd-av2 { background:hsla(214,45%,55%,.16) !important; }
html[data-theme="dark"] html body #patientDetail .pd-head .pd-av { background:hsla(214,45%,55%,.16) !important; }
html[data-theme="dark"] .avp-menu { background:var(--card) !important; }
html[data-theme="dark"] .avp-it { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] .avp-rojo,
html[data-theme="dark"] .avp-rojo:hover,
html[data-theme="dark"] .avp-rojo:focus-visible { color:hsl(0,76%,74%) !important; }

/* avisos-a.css (usa tokens --rm-* definidos en avisos-a.css para modo oscuro consistente con estilo odontOS) */
html[data-theme="dark"] .er-test-in { border-color:var(--line) !important; background:var(--card-2) !important; color:var(--ink) !important; }
html[data-theme="dark"] .er-test-st.ok { background:hsla(142,67%,55%,.16) !important; color:hsl(149,85%,76%) !important; }
html[data-theme="dark"] .er-test-st.err { background:hsla(0,72%,55%,.16) !important; color:hsl(0,85%,78%) !important; }

/* avisos-canal.css (dentro de #recordatorios los colores los manejan --rm-* de avisos-a.css; aquí queda el chip de #appointmentForm y móvil) */
html[data-theme="dark"] .av-pill.wa { background:rgba(52,211,153,.14) !important; color:#34D399 !important; }
html[data-theme="dark"] .av-pill.wa-manual { background:rgba(245,158,11,.14) !important; color:#F59E0B !important; }
html[data-theme="dark"] .av-pill.ma { background:rgba(56,189,248,.16) !important; color:#38BDF8 !important; }
html[data-theme="dark"] .av-pill.auto { background:rgba(167,139,250,.16) !important; color:#A78BFA !important; }
html[data-theme="dark"] #recordatorios .av-go.sent { background:#252528 !important; color:#ECECEC !important; }
html[data-theme="dark"] #recordatorios .av-go-sec { background:var(--card-2) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #recordatorios .av-go-sec:hover { background:var(--card) !important; }
html[data-theme="dark"] #recordatorios .av-go-sec.sent { background:rgba(56,189,248,.16) !important; color:#38BDF8 !important; border-color:rgba(56,189,248,.3) !important; }
html[data-theme="dark"] #recordatorios .av-ic { background:#252528 !important; color:#BDBDC2 !important; }
html[data-theme="dark"] #recordatorios .av-mas:hover { background:#252528 !important; }
html[data-theme="dark"] #recordatorios #avBanner button { background:var(--card) !important; }
html[data-theme="dark"] #appointmentForm .av-sw span { background:var(--card-2) !important; }
html[data-theme="dark"] #appointmentForm .av-sw span::after { background:var(--card) !important; }

/* bot-config.css */
html[data-theme="dark"] .bt-seg { background:var(--card-2) !important; }
html[data-theme="dark"] .bt-seg button[aria-pressed="true"] { background:var(--card) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] .bt-pill.on { background:hsla(144,62%,55%,.16) !important; color:hsl(145,78%,76%) !important; }
html[data-theme="dark"] .bt-pill.off { background:hsla(214,45%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] #botPanel .bt-sw span { background:var(--card-2) !important; }
html[data-theme="dark"] #botPanel .bt-sw span::after { background:var(--card) !important; }
html[data-theme="dark"] .bt-chip { background:hsla(202,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] .bt-chip button { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] .bt-add { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] #btToast button { background:var(--card) !important; }
html[data-theme="dark"] #btSheet .bt-sh { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] #btSheet .bt-msg.u { background:var(--card-2) !important; }
html[data-theme="dark"] #btSheet .bt-close { background:hsla(202,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }

/* categorias-trat.css */
html[data-theme="dark"] .qcatset-sw i { background:var(--card) !important; }

/* comisiones-v2.css */
html[data-theme="dark"] html body #cmBody .cd table.tat td.r { color:hsl(222,57%,74%) !important; }

/* css/02-bloque.css */
html[data-theme="dark"] button.secondary { background:var(--card) !important; }
html[data-theme="dark"] button.danger { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background:var(--card) !important; }
html[data-theme="dark"] .table-wrap { background:var(--card) !important; }
html[data-theme="dark"] .icon-btn { background:var(--card) !important; }
html[data-theme="dark"] .inline-date-day { background:var(--card) !important; }
html[data-theme="dark"] .wl-day.is-today .wl-head { background:var(--card-2) !important; }
html[data-theme="dark"] .wl-state.ok { color:hsl(161,85%,74%) !important; }
html[data-theme="dark"] .wl-btn.danger { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .week-v-day-head.is-today { background:var(--card-2) !important; }
html[data-theme="dark"] .week-v-day-col:hover { background:hsla(209,60%,55%,.16) !important; }
html[data-theme="dark"] .week-v-day-col.is-today { background:hsla(213,90%,55%,.16) !important; }
html[data-theme="dark"] .week-v-day-col.is-today:hover { background:hsla(213,90%,55%,.16) !important; }
html[data-theme="dark"] .week-appointment-block { background:var(--card-2) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .week-appointment-block.confirmed { background:hsla(151,90%,55%,.16) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .week-appointment-block.cancelled { background:var(--card-2) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .week-appointment-block.has-alert { background:hsla(47,90%,55%,.16) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .week-block-time { color:hsl(229,68%,74%) !important; }
html[data-theme="dark"] .week-appointment-block.confirmed .week-block-time { color:hsl(162,85%,74%) !important; }
html[data-theme="dark"] .week-appointment-block.cancelled .week-block-time { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .week-appointment-block.has-alert .week-block-time { color:hsl(25,85%,74%) !important; }
html[data-theme="dark"] .week-block-meta { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] .week-appointment-block.confirmed .week-block-meta { color:hsl(161,85%,74%) !important; }
html[data-theme="dark"] .week-appointment-block.cancelled .week-block-meta { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .week-appointment-block:not(.is-blocked) { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .week-appointment-block[title*="alergia" i],
html[data-theme="dark"] .week-appointment-block[title*="sistémica" i],
html[data-theme="dark"] .week-appointment-block[title*="sistemica" i],
html[data-theme="dark"] .week-appointment-block[title*="hipertens" i],
html[data-theme="dark"] .week-appointment-block[title*="diabet" i],
html[data-theme="dark"] .week-appointment-block[title*="médica" i],
html[data-theme="dark"] .week-appointment-block[title*="medica" i],
html[data-theme="dark"] .week-appointment-block.has-alert { background:hsla(52,90%,55%,.16) !important; }
html[data-theme="dark"] .budget-estado-btns span { background:var(--card) !important; }
html[data-theme="dark"] .quick-chip { background:var(--card) !important; }
html[data-theme="dark"] .offline-icon-wrap { background:var(--card-2) !important; color:hsl(0,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .theme-mode-icon.theme-moon { color:hsl(243,85%,74%) !important; }
html[data-theme="dark"] .pd-status.Pagado { background:hsla(140,90%,55%,.16) !important; color:hsl(142,81%,76%) !important; }
html[data-theme="dark"] .pd-status.Pendiente { background:hsla(47,90%,55%,.16) !important; color:hsl(25,85%,76%) !important; }
html[data-theme="dark"] .pd-status.Abonado { background:var(--card-2) !important; color:hsl(201,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pd-status.Sesión { background:hsla(209,60%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .view-segmented-control { background:hsla(35,38%,55%,.16) !important; }
html[data-theme="dark"] .view-segment-btn { color:var(--ink-2) !important; }
html[data-theme="dark"] .view-segment-btn.active { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] #ficha .panel-title { color:hsl(224,74%,74%) !important; }
html[data-theme="dark"] #ficha .record-section h2,
html[data-theme="dark"] #ficha .record-section h3 { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] #ficha table thead th,
html[data-theme="dark"] #reportes table thead th { background:hsla(215,70%,55%,.16) !important; color:hsl(224,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .summary-dropdown-option:hover { background:hsla(209,60%,55%,.16) !important; }
html[data-theme="dark"] .modal-close:hover,
html[data-theme="dark"] .modal-close-compact:hover { background:rgba(255,255,255,.10) !important; color:var(--ink) !important; }
html[data-theme="dark"] .format-jpg .export-card-title-compact { color:hsl(163,85%,74%) !important; }
html[data-theme="dark"] .format-jpg .export-card-sub-compact { color:hsl(161,85%,74%) !important; }
html[data-theme="dark"] .analytic-icon.expense { background:hsla(0,90%,55%,.16) !important; color:hsl(0,82%,76%) !important; }
html[data-theme="dark"] .pd-table thead th { background:hsla(215,70%,55%,.16) !important; color:hsl(224,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #recordatorios .nav-tab-btn[data-reminders-tab="enviados"].active { color:hsl(173,85%,74%) !important; }
html[data-theme="dark"] #recordatorios .nav-tab-btn[data-reminders-tab="enviados"].active .tab-counter { background:hsla(167,58%,55%,.16) !important; color:hsl(173,85%,76%) !important; }
html[data-theme="dark"] #recordatorios .btn-whatsapp-outline { background:hsla(138,90%,55%,.16) !important; color:hsl(173,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #recordatorios .btn-whatsapp-outline:hover { background:hsla(149,81%,55%,.16) !important; }
html[data-theme="dark"] #recordatorios .appointment-card .status-badge.badge-sent { background:hsla(167,58%,55%,.16) !important; color:hsl(173,85%,76%) !important; }
html[data-theme="dark"] .rx-annot-tool,
html[data-theme="dark"] .rx-annot-select { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .rx-annot-select option { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] .rx-annot-tool:hover { background:var(--card) !important; }
html[data-theme="dark"] .rx-annot-divider { background:var(--card) !important; }
html[data-theme="dark"] .rx-note-panel textarea { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .rx-ctrl-btn { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .rx-ctrl-btn:hover { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .rx-patient-badge { background:hsla(251,90%,55%,.16) !important; color:hsl(263,79%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .rx-card-actions .rx-card-btn.rx-del:hover { background:var(--card-2) !important; color:hsl(0,82%,76%) !important; }
html[data-theme="dark"] .pill-rx-mini { background:hsla(251,90%,55%,.16) !important; color:hsl(263,79%,76%) !important; border-color:var(--line) !important; }

/* css/03-winStd.css */
html[data-theme="dark"] html body .modal-overlay .modal-card .modal-foot button.danger { color:hsl(3,73%,74%) !important; }
html[data-theme="dark"] #quickCareModal #qcPiezaInput.falta { background:var(--card-2) !important; }
html[data-theme="dark"] #quickCareModal #qcPiezaRow:has(#qcPiezaInput.falta) label { color:hsl(0,82%,74%) !important; }

/* css/04-bloque.css (ventanas #erEditar y #dlgPruebaCorreo usan tokens --er-* propios en css/04-bloque.css) */
html[data-theme="dark"] .er-meta-mail.ok { color:hsl(149,85%,74%) !important; }
html[data-theme="dark"] .er-meta-mail.warn { color:hsl(22,85%,74%) !important; }
html[data-theme="dark"] .er-meta-mail.prog em { color:hsl(207,85%,74%) !important; }
html[data-theme="dark"] .er-sheet #avisoVistaPrevia { background:var(--card) !important; }

/* css/06-responsive-pass.css */
html[data-theme="dark"] .rx-menu .rx-ctrl-btn:hover,
html[data-theme="dark"] .rx-menu .rx-annot-tool:hover { background:var(--card) !important; }
html[data-theme="dark"] .rx-menu-title { color:var(--ink-2) !important; }
html[data-theme="dark"] .pd-chip-warn { background:hsla(47,90%,55%,.16) !important; color:hsl(22,85%,76%) !important; }
html[data-theme="dark"] .pd-chip-warn:hover { background:hsla(48,90%,55%,.16) !important; }
html[data-theme="dark"] .mobile-bottom-nav { background:var(--card) !important; }
html[data-theme="dark"] #inicio .ini-qa-btn.main .ic { background:var(--card) !important; }
html[data-theme="dark"] header .hd-rem .nav-tab-btn.active .tab-counter { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail .pd-section .pd-sec-head .pd-ic { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail .pd-section .pd-sec-head .pd-count { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail .pd-section .pd-sec-head button { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #patientDetail .pd-section .pd-sec-head button:hover { background:var(--card) !important; }
html[data-theme="dark"] .pdo-mov { color:hsl(263,79%,74%) !important; }
html[data-theme="dark"] .pdo-mov.on { background:hsla(251,90%,55%,.16) !important; }
html[data-theme="dark"] .pd-chip-warn b { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] #presupuestos .bp-tabs b { background:var(--card) !important; }

/* css/07-rxVisorV2Css.css */
html[data-theme="dark"] .rx-bg-opt:hover { background:var(--card) !important; }
html[data-theme="dark"] .rxc-lab button { background:var(--card) !important; }
html[data-theme="dark"] .rxc-tools button:hover { background:var(--card) !important; }
html[data-theme="dark"] .rxe-q { background:var(--card) !important; }
html[data-theme="dark"] .rxe-q button:hover { background:var(--card) !important; }
html[data-theme="dark"] .rxe-row { background:var(--card) !important; }
html[data-theme="dark"] .rxe-row:hover { background:var(--card) !important; }
html[data-theme="dark"] .rxe-tg::after { background:var(--card) !important; }
html[data-theme="dark"] .rxe-foot button { background:var(--card) !important; }
html[data-theme="dark"] .rxe-foot button:hover { background:var(--card) !important; }
html[data-theme="dark"] html body #rxLightboxModal #rxAnnotBar .rx-annot-tool:hover { background:var(--card) !important; }

/* css/08-qcSimpleCss.css */
html[data-theme="dark"] #quickCareModal #quickCareForm.qa[data-step] .qa-lab .qc2-req { color:hsl(0,82%,74%) !important; }

/* css/14-agendaSemanalMovil.css */
html[data-theme="dark"] #calendario .wl-day.is-empty .wl-add { color:hsl(200,85%,74%) !important; }

/* css/20-pacientesTarjeta.css */
html[data-theme="dark"] .pi2-date { color:var(--ink-2) !important; }
html[data-theme="dark"] .pi2-cita { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] .pi2-debe { color:hsl(346,85%,74%) !important; }

/* css/21-qcCCss.css */
html[data-theme="dark"] #quickCareModal[data-size] #quickCareForm.qa.qc.modal-card { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc .mf-hicon { background:hsla(209,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #quickCareTitle { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #quickCareClose { background:hsla(209,60%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #quickCareClose:hover { background:hsla(214,51%,55%,.16) !important; color:hsl(222,57%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-h { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-row4 input,
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-row4 select { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-seg { background:hsla(209,60%,55%,.16) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-seg button { color:var(--ink) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-seg button.on { background:var(--card) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-search input { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-nav { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-pill { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-pill.on { background:hsla(209,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-item { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-item.on { background:hsla(209,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-ipg button { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-add { background:var(--card-2) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-addno { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #qcPiezaRow { background:var(--card-2) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-wl b { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-pzg label { color:var(--ink) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-pzrow { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #qcPiezaInput { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #qcDiente { background:var(--card) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-wt b { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-bal-l { color:hsl(22,85%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-bal-r { color:hsl(21,85%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcCostoGroup > span:first-child,
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcAbonoGroup > span:first-child,
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcMetodoPagoGroup > span:first-child { color:var(--ink) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcCostoTotal,
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcAbonoInicial { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcMetodoPago,
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #qcMetodoPago { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcEstadoSeg .qc2-segbtn { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc #qcEstadoSeg .qc2-segbtn[aria-pressed="true"] { background:hsla(209,90%,55%,.16) !important; color:hsl(200,85%,76%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-opt > summary { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qc .qcn-opt > summary .pl { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc[data-step] .modal-foot { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #quickCareModal #quickCareForm.qa.qc #quickCareCancel { background:var(--card) !important; color:hsl(222,57%,76%) !important; border-color:var(--line) !important; }

/* css/24-fichaCompactaStyle.css */
html[data-theme="dark"] #patientDetail .pd-nameline .pd-alerts .clinical-banner.cb-pend { background:hsla(36,90%,55%,.16) !important; color:hsl(26,85%,76%) !important; }
html[data-theme="dark"] #patientDetail.pd-has-rail { background:hsla(222,48%,55%,.16) !important; }

/* css/29-modulosIntegradosStyle.css */
html[data-theme="dark"] #patientDetail .pd-del-btn { color:hsl(4,84%,74%) !important; }

/* ficha-b.css */
html[data-theme="dark"] #patientDetail.pd-has-rail.fb { background:hsla(222,48%,55%,.16) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-title h3 { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #patientDetail.fb > .pd-card:has(> .pd-head) > .pd-stats { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-rail-back { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-rail-nav { background:var(--card) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-rail-item em { background:hsla(218,53%,55%,.16) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-rail-danger .pd-rail-item { color:hsl(0,82%,74%) !important; }
html[data-theme="dark"] .fb-th .im { background:hsla(209,60%,55%,.16) !important; }
html[data-theme="dark"] #patientDetail.fb { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-sec-head h4 { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #patientDetail.fb [data-sec="salud"] .pd-ic { background:hsla(0,90%,55%,.16) !important; color:hsl(0,77%,76%) !important; }
html[data-theme="dark"] #patientDetail.fb [data-sec="pend"] .pd-ic { background:hsla(43,90%,55%,.16) !important; color:hsl(25,85%,76%) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-table th { background:hsla(209,60%,55%,.16) !important; }
html[data-theme="dark"] #patientDetail.fb .pd-table td { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #patientDetail.fb > .pd-section > .pd-sec-head h4 { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] #patientDetail.fb > [data-sec="salud"] .pd-sec-head .pd-ic { background:hsla(0,90%,55%,.16) !important; color:hsl(0,77%,76%) !important; }
html[data-theme="dark"] #patientDetail.fb > [data-sec="pend"] .pd-sec-head .pd-ic { background:hsla(43,90%,55%,.16) !important; color:hsl(25,85%,76%) !important; }
html[data-theme="dark"] #patientDetail.fb > .pd-section .pd-sec-head .pd-count { color:var(--ink-2) !important; }

/* gastos-a.css */
html[data-theme="dark"] #gastos tr.exp-month td { background:hsla(214,61%,55%,.16) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #gastos tr.exp-month .exp-month-sum { color:var(--ink-2) !important; }
html[data-theme="dark"] #gastos tr.exp-month .exp-month-sum .tot { color:var(--ink) !important; }
html[data-theme="dark"] #gastos tr.exp-month:hover td { background:hsla(214,61%,55%,.16) !important; }
html[data-theme="dark"] #gastos .exp-pager-txt { color:var(--ink-2) !important; }
html[data-theme="dark"] #gastos .exp-pager-btn { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }

/* ia-b.css */
html[data-theme="dark"] #copilotDrawer .ia-perm { background:hsla(43,90%,55%,.16) !important; color:hsl(44,85%,76%) !important; }
html[data-theme="dark"] #copilotDrawer .ia-warn { background:hsla(0,90%,55%,.16) !important; color:hsl(0,78%,76%) !important; }
html[data-theme="dark"] #copilotDrawer .ia-note { background:hsla(43,90%,55%,.16) !important; color:hsl(44,85%,76%) !important; }
html[data-theme="dark"] #copilotDrawer .ia-done { background:hsla(142,67%,55%,.16) !important; color:hsl(150,85%,76%) !important; }
html[data-theme="dark"] #copilotDrawer .copilot-voice-btn.listening { background:hsla(0,90%,55%,.16) !important; color:hsl(0,82%,76%) !important; }

/* inicio-v1.css */
html[data-theme="dark"] html body #inicio .summary { background:var(--card) !important; }
html[data-theme="dark"] html body #inicio .summary .mini-card:hover { background:var(--card-2) !important; }
html[data-theme="dark"] #iniV1 .v1-card { background:var(--card) !important; }
html[data-theme="dark"] #iniV1 .v1-ch h3 { color:var(--ink) !important; }
html[data-theme="dark"] #iniV1 a[data-v1] { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] #iniV1 .v1-warn { background:var(--card) !important; }
html[data-theme="dark"] #iniV1 .v1-b { background:var(--card) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-b.v1-t { background:var(--card) !important; }
html[data-theme="dark"] #iniV1 .v1-tm { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] #iniV1 .v1-ed { background:hsla(207,77%,55%,.16) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-pill.g { background:hsla(142,67%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-pill.b { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-pill.a { background:hsla(35,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-pill.r { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] #iniV1 .v1-cl:hover,
html[data-theme="dark"] #iniV1 .v1-deb:hover { background:var(--card-2) !important; }

/* movil-a.css */
html[data-theme="dark"] .ma-h1 { color:var(--ink) !important; }
html[data-theme="dark"] .ma-w { background:var(--card) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .ma-g { background:var(--card) !important; }
html[data-theme="dark"] .ma-q { color:var(--ink) !important; }
html[data-theme="dark"] .ma-sh a { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] .ma-list { background:var(--card) !important; }
html[data-theme="dark"] .ma-rt { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] .ma-rw b { color:var(--ink) !important; }
html[data-theme="dark"] .ma-p.g { background:hsla(142,71%,55%,.16) !important; color:hsl(146,73%,76%) !important; }
html[data-theme="dark"] .ma-p.a { background:hsla(40,90%,55%,.16) !important; color:hsl(38,85%,76%) !important; }
html[data-theme="dark"] .ma-m { background:var(--card) !important; }
html[data-theme="dark"] .ma-m b { color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .patients-toolbar-search { background:var(--card-2) !important; }
html[data-theme="dark"] html body #pacientes .patients-toolbar-search input { color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .pm-btn { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .pi2-name { color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .pi2-ok { background:hsla(142,71%,55%,.16) !important; color:hsl(146,73%,76%) !important; }
html[data-theme="dark"] html body #calendario #agSummary .mini-card strong { color:var(--ink) !important; }
html[data-theme="dark"] html body #calendario .view-segmented-control { background:var(--card-2) !important; }
html[data-theme="dark"] html body #calendario .view-segment-btn { color:var(--ink) !important; }
html[data-theme="dark"] html body #calendario .view-segment-btn.active { background:var(--card) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] html body #calendario #agNavGroup .view-segmented-control .view-segment-btn { color:var(--ink) !important; }
html[data-theme="dark"] html body #calendario #agNavGroup .view-segmented-control .view-segment-btn.active { background:var(--card) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] html body #patientDetail .pd-back-btn { background:var(--card) !important; }
html[data-theme="dark"] html body #patientDetail .pd-nameline h3 { color:var(--ink) !important; }
html[data-theme="dark"] html body #patientDetail .pd-more-btn { background:var(--card) !important; }
html[data-theme="dark"] html body #patientDetail .pd-stat { background:var(--card) !important; }
html[data-theme="dark"] html body #patientDetail .pd-stats .pd-stat { background:var(--card) !important; }
html[data-theme="dark"] html body #patientDetail .pd-head .pd-head-actions.open > .pd-act-group button:not(.pd-care-btn) { background:var(--card) !important; }
html[data-theme="dark"] html body #patientDetail .pd-head .pd-head-actions.open .pd-edit::after { color:var(--ink) !important; }
html[data-theme="dark"] html body #patientDetail .pd-head .pd-head-actions.open .pd-del-btn { color:hsl(3,83%,74%) !important; }
html[data-theme="dark"] html body #atenciones #careSearchInput { background:var(--card-2) !important; }
html[data-theme="dark"] html body #atenciones #careFilterBtn { background:var(--card) !important; }
html[data-theme="dark"] html body #atenciones tr.care-card { background:var(--card) !important; }
html[data-theme="dark"] html body #atenciones tr.care-card > td:nth-child(5) { color:var(--ink) !important; }
html[data-theme="dark"] html body #atenciones tr.care-card > td:nth-child(2) { color:var(--ink-2) !important; }
html[data-theme="dark"] html body #atenciones tr.care-card > td:nth-child(7) { color:var(--ink) !important; }
html[data-theme="dark"] html body .mobile-bottom-nav { background:var(--card) !important; }
html[data-theme="dark"] html body .mobile-bottom-nav .mbn-item.active { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] .ma-mas-sh { background:hsla(240,43%,55%,.16) !important; }
html[data-theme="dark"] .ma-mas-h b { color:var(--ink) !important; }
html[data-theme="dark"] .ma-mas-x { background:var(--card) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] .ma-mt { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] .ma-mt:active { background:var(--card-2) !important; }
html[data-theme="dark"] .ma-mas-list { background:var(--card) !important; }
html[data-theme="dark"] html body .ma-mas .ma-mr { color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .patient-top-pagination > div > div > span,
html[data-theme="dark"] html body #pacientes .patient-pagination-bar > div > div > span { color:var(--ink) !important; }
html[data-theme="dark"] html body #pacientes .patient-top-pagination button[onclick*="changePatientPage"],
html[data-theme="dark"] html body #pacientes .patient-pagination-bar button[onclick*="changePatientPage"] { background:var(--card) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] html body #gastos .table-wrap tbody tr { background:var(--card) !important; }
html[data-theme="dark"] html body #gastos .table-wrap tbody td:nth-child(4) { color:var(--ink) !important; }
html[data-theme="dark"] html body #gastos .table-wrap tbody td:nth-child(6) { color:var(--ink) !important; }
html[data-theme="dark"] html body header #maHd b { color:var(--ink) !important; }
html[data-theme="dark"] html body #nrPop .nr-open { background:hsla(240,43%,55%,.16) !important; color:hsl(201,85%,76%) !important; }
html[data-theme="dark"] html body #nrBoard { background:hsla(240,43%,55%,.16) !important; }
html[data-theme="dark"] html body #presupuestos #plSeg button { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos #plReglas,
html[data-theme="dark"] html body #presupuestos #plTpl { background:var(--card) !important; }
html[data-theme="dark"] html body #reportes .report-download-group .report-action-btn { background:var(--card) !important; }
html[data-theme="dark"] html body #invBody > .iv-row:first-child { background:var(--card-2) !important; }
html[data-theme="dark"] html body #cwWizard .cw-body { background:hsla(240,43%,55%,.16) !important; }
html[data-theme="dark"] html body #cwWizard .cw-tplsel { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] html body #cwWizard .cw-f input:not([type=checkbox]),
html[data-theme="dark"] html body #cwWizard .cw-f select,
html[data-theme="dark"] html body #cwWizard .cw-f textarea { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] html body #cwWizard .cw-tpls:has([data-who]) { background:var(--card-2) !important; }
html[data-theme="dark"] html body #cwWizard .cw-tpls:has([data-who]) .cw-chip { color:var(--ink) !important; }
html[data-theme="dark"] html body #cwWizard .cw-tpls:has([data-who]) .cw-chip.on { background:var(--card) !important; }

/* movil-rediseno.css */
html[data-theme="dark"] html body .view-segmented-control { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body .view-segmented-control .view-segment-btn.active { background:var(--card) !important; }
html[data-theme="dark"] html body #patientSearch { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body #plSeg,
html[data-theme="dark"] html body .iv-row:first-child,
html[data-theme="dark"] html body #anRangeBtns,
html[data-theme="dark"] html body #recordatorios nav.nav-tabs { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body #plSeg > button.on,
html[data-theme="dark"] html body .iv-row:first-child > .iv-tab.on,
html[data-theme="dark"] html body #anRangeBtns > button.active,
html[data-theme="dark"] html body #anRangeBtns > button.on,
html[data-theme="dark"] html body #recordatorios nav.nav-tabs > .nav-tab-btn.active { background:var(--card) !important; }
html[data-theme="dark"] html body #presupuestos .pl-tools input { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body #inventario .iv-search,
html[data-theme="dark"] html body #inventario #ivQ { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body #radiografias .rx-search-box input { background:hsla(216,50%,55%,.16) !important; }
html[data-theme="dark"] html body .modal-overlay:not(.hidden) > .modal-card::before { background:hsla(212,46%,55%,.16) !important; }

/* odontograma-cristal.css */
html[data-theme="dark"] #patientDetail .pdo-wrap { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #patientDetail .pdo-n { color:hsl(217,42%,74%) !important; }

/* pacientes-a.css */
html[data-theme="dark"] .pq-chip { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pq-chip b { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .pq-chip:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .pq-chip.on { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .pq-chip.r b { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .pq-chip.r.on { background:hsla(0,90%,55%,.16) !important; color:hsl(0,74%,76%) !important; }
html[data-theme="dark"] .pq-tto { color:var(--ink-2) !important; }
html[data-theme="dark"] .pq-tto select { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pi2-act { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pi2-act.main { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pm-btn { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pm-btn.on { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .pm-panel { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pm-panel select { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pm-clear { background:hsla(220,41%,55%,.16) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .pi2-act.ic { color:hsl(202,85%,74%) !important; }

/* plan-a.css (usa tokens --pl-* definidos en plan-a.css para modo oscuro consistente con Nueva atención / Nueva cita) */
html[data-theme="dark"] #presupuestos .pla-k:hover { border-color:var(--pl-line) !important; }
html[data-theme="dark"] #presupuestos .pla-k.on { border-color:var(--pl-acc) !important; box-shadow:0 0 0 3px var(--pl-acc-soft) !important; }
html[data-theme="dark"] #presupuestos .pla-bar #plSearch { background:var(--pl-fld) !important; border-color:var(--pl-fld-line) !important; color:var(--pl-ink) !important; }
html[data-theme="dark"] #presupuestos .pla-fp select { background:var(--pl-fld) !important; color:var(--pl-ink) !important; border-color:var(--pl-fld-line) !important; }
html[data-theme="dark"] #presupuestos .pla-sel { background:var(--pl-fld) !important; color:var(--pl-ink) !important; border-color:var(--pl-fld-line) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc-tot { background:var(--card-2) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc .bp-ph { background:hsla(214,53%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc .bp-ph em { color:var(--ink-2) !important; }
html[data-theme="dark"] .pla-prow { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-prow:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .pla-prow.on { background:hsla(205,90%,55%,.16) !important; }
html[data-theme="dark"] .pla-pt { color:var(--ink) !important; }
html[data-theme="dark"] .pla-pm.good { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] .pla-prow.on .pla-ch { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc.pla-open { background:var(--card) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc.pla-open .pla-x { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .pla-prow { color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pn b { color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pt { color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pm { color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pm.good { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc.pla-open { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pm small.good { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] html body #presupuestos .pla-pn small,
html[data-theme="dark"] html body #presupuestos .pla-phead span,
html[data-theme="dark"] html body #presupuestos .pla-kk small,
html[data-theme="dark"] html body #presupuestos .pla-kk i { color:var(--ink-2) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc.pla-open .bp-pc-a .js-budget-status[data-status="Aceptado"] { background:hsla(142,64%,55%,.16) !important; color:hsl(145,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pc.pla-open .bp-pc-a .js-budget-delete { background:var(--card-2) !important; color:hsl(0,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi .js-budget-done { background:var(--card) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi .js-budget-done:hover { background:hsla(205,90%,55%,.16) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi.done { background:hsla(142,64%,55%,.16) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi:not(.done):hover { background:var(--card-2) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi .bp-link { color:hsl(145,74%,74%) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi .js-budget-done:not(.on) { background:var(--card-2) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi .js-budget-done:not(.on):hover { background:hsla(205,90%,55%,.16) !important; }
html[data-theme="dark"] .pla-addbtn { background:var(--card-2) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .pla-addbtn:hover { background:hsla(206,90%,55%,.16) !important; }
html[data-theme="dark"] .pla-addf,
html[data-theme="dark"] .pla-reg { background:var(--card-2) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-addf label,
html[data-theme="dark"] .pla-reg label { color:var(--ink-2) !important; }
html[data-theme="dark"] .pla-addf input,
html[data-theme="dark"] .pla-addf select,
html[data-theme="dark"] .pla-reg input,
html[data-theme="dark"] .pla-reg select { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-cancel { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-cancel:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .pla-link { color:hsl(202,85%,74%) !important; }
html[data-theme="dark"] .pla-rt { color:var(--ink) !important; }
html[data-theme="dark"] .pla-seg3 button { color:var(--ink-2) !important; }
html[data-theme="dark"] .pla-seg3 button.on { background:var(--card) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .pla-pop { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-amt { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-amt span { color:var(--ink-2) !important; }
html[data-theme="dark"] .pla-amt input { color:var(--ink) !important; }
html[data-theme="dark"] .pla-xs { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-xs:hover { background:var(--card-2) !important; }
html[data-theme="dark"] .pla-chips button { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] .pla-chips button.on { background:hsla(143,64%,55%,.16) !important; color:hsl(145,74%,76%) !important; }
html[data-theme="dark"] .pla-addcell { background:var(--card-2) !important; color:hsl(202,85%,76%) !important; }
html[data-theme="dark"] .pla-addcell:hover { background:hsla(206,90%,55%,.16) !important; }
html[data-theme="dark"] .pla-addf label { color:var(--ink-2) !important; }
html[data-theme="dark"] .pla-addf input,
html[data-theme="dark"] .pla-addf select { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .pla-amt input { color:var(--ink) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi.pla-wait .js-budget-done { background:hsla(47,90%,55%,.16) !important; color:hsl(31,85%,76%) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi.pla-wait { background:hsla(47,90%,55%,.16) !important; }
html[data-theme="dark"] html body #presupuestos .bp-pi.pla-y-row { background:hsla(47,90%,55%,.16) !important; }
html[data-theme="dark"] #planPaneEsp .esp-count { color:var(--ink-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-q { background:var(--card) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #planPaneEsp .esp-clear { background:var(--card) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #planPaneEsp .esp-card { background:var(--card) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #planPaneEsp .esp-card:hover { background:var(--card-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-card.on { background:var(--card-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-s { color:var(--ink-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-lab { color:var(--ink-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-hd { color:var(--ink-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-row:hover { background:var(--card-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-tag { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] #planPaneEsp .esp-fe small { color:var(--ink-2) !important; }
html[data-theme="dark"] #planPaneEsp .esp-open { background:hsla(205,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #planPaneEsp .esp-open:hover { background:hsla(203,90%,55%,.16) !important; }
html[data-theme="dark"] .pla-use { background:hsla(143,64%,55%,.16) !important; color:hsl(145,74%,76%) !important; border-color:var(--line) !important; }
html[data-theme="dark"] html body #presupuestos .pla-use input[type="checkbox"] { background:var(--card) !important; }

/* reportes-v2.css */
html[data-theme="dark"] #reportes.rv2 .rv2-seg { background:var(--card-2) !important; }
html[data-theme="dark"] #reportes.rv2 .rv2-seg button[aria-pressed="true"] { background:var(--card) !important; }
html[data-theme="dark"] #reportes.rv2 .report-chip-btn.active { background:var(--card) !important; }
html[data-theme="dark"] #reportes.rv2 .ct-tabs { background:var(--card-2) !important; }
html[data-theme="dark"] #reportes.rv2 .ct-tab.on { background:var(--card) !important; }

/* reportes-v2b.css */
html[data-theme="dark"] #corteModal .modal-card,
html[data-theme="dark"] #liquidacionesModal .modal-card,
html[data-theme="dark"] #exportSummaryModal .modal-card { background:hsla(240,43%,55%,.16) !important; }
html[data-theme="dark"] #exportSummaryModal .export-summary-body .export-format-card-compact { background:var(--card) !important; }
html[data-theme="dark"] #corteModal .modal-head .modal-close,
html[data-theme="dark"] #liquidacionesModal .modal-head .modal-close { background:var(--card-2) !important; }
html[data-theme="dark"] #exportSummaryModal .modal-close-compact { background:var(--card-2) !important; }

/* reportes-v3.css */
html[data-theme="dark"] .rv3-pop { background:hsla(240,43%,55%,.16) !important; color:var(--ink) !important; }
html[data-theme="dark"] .rv3-pop .rv3-grp { background:var(--card) !important; }
html[data-theme="dark"] .rv3-opt .ck { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] .rv3-fechas input { background:var(--card) !important; color:var(--ink) !important; }
html[data-theme="dark"] .rv3-btn.s { background:var(--card-2) !important; color:var(--ink) !important; }
html[data-theme="dark"] #reportes.rv3 .rv3a-sw i { background:var(--card) !important; }

/* rx-a.css */
html[data-theme="dark"] #radiografias .rx-patient-card:hover { background:var(--card-2) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #radiografias .rx-patient-card.active { background:hsla(204,90%,55%,.16) !important; }
html[data-theme="dark"] #radiografias .rx-patient-badge { background:hsla(220,41%,55%,.16) !important; color:var(--ink) !important; border-color:var(--line) !important; }
html[data-theme="dark"] #radiografias .rx-size-btn.active { background:hsla(204,90%,55%,.16) !important; color:hsl(202,85%,76%) !important; }

/* sidebar-a.css */
html[data-theme="dark"] html body.sidebar-hidden nav.tabs .tab-btn .tab-label { color:var(--ink-2) !important; }
html[data-theme="dark"] html body.sidebar-hidden nav.tabs .nav-pill { background:var(--card) !important; }
html[data-theme="dark"] html body.sidebar-hidden nav.tabs .tab-btn::after { color:var(--ink-2) !important; }

/* suscripcion-menu.css */
html[data-theme="dark"] .hd-sub-chip { background:var(--card) !important; }

/* Estilos puestos directamente en el HTML/JS (en línea) con colores claros */
html[data-theme="dark"] [style*="background:#dbeafe" i],
html[data-theme="dark"] [style*="background: #dbeafe" i],
html[data-theme="dark"] [style*="background-color:#dbeafe" i],
html[data-theme="dark"] [style*="background-color: #dbeafe" i] { background:hsla(214,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#dcfce7" i],
html[data-theme="dark"] [style*="background: #dcfce7" i],
html[data-theme="dark"] [style*="background-color:#dcfce7" i],
html[data-theme="dark"] [style*="background-color: #dcfce7" i] { background:hsla(140,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#e0f2fe" i],
html[data-theme="dark"] [style*="background: #e0f2fe" i],
html[data-theme="dark"] [style*="background-color:#e0f2fe" i],
html[data-theme="dark"] [style*="background-color: #e0f2fe" i] { background:hsla(204,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#e2e8f0" i],
html[data-theme="dark"] [style*="background: #e2e8f0" i],
html[data-theme="dark"] [style*="background-color:#e2e8f0" i],
html[data-theme="dark"] [style*="background-color: #e2e8f0" i] { background:hsla(214,51%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#ecfdf5" i],
html[data-theme="dark"] [style*="background: #ecfdf5" i],
html[data-theme="dark"] [style*="background-color:#ecfdf5" i],
html[data-theme="dark"] [style*="background-color: #ecfdf5" i] { background:hsla(151,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#edf1ff" i],
html[data-theme="dark"] [style*="background: #edf1ff" i],
html[data-theme="dark"] [style*="background-color:#edf1ff" i],
html[data-theme="dark"] [style*="background-color: #edf1ff" i] { background:hsla(226,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#eef6f3" i],
html[data-theme="dark"] [style*="background: #eef6f3" i],
html[data-theme="dark"] [style*="background-color:#eef6f3" i],
html[data-theme="dark"] [style*="background-color: #eef6f3" i] { background:hsla(157,50%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#eff6ff" i],
html[data-theme="dark"] [style*="background: #eff6ff" i],
html[data-theme="dark"] [style*="background-color:#eff6ff" i],
html[data-theme="dark"] [style*="background-color: #eff6ff" i] { background:hsla(213,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#f0f9ff" i],
html[data-theme="dark"] [style*="background: #f0f9ff" i],
html[data-theme="dark"] [style*="background-color:#f0f9ff" i],
html[data-theme="dark"] [style*="background-color: #f0f9ff" i] { background:var(--card-2) !important; }
html[data-theme="dark"] [style*="background:#f0fdf4" i],
html[data-theme="dark"] [style*="background: #f0fdf4" i],
html[data-theme="dark"] [style*="background-color:#f0fdf4" i],
html[data-theme="dark"] [style*="background-color: #f0fdf4" i] { background:hsla(138,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#f1f5f9" i],
html[data-theme="dark"] [style*="background: #f1f5f9" i],
html[data-theme="dark"] [style*="background-color:#f1f5f9" i],
html[data-theme="dark"] [style*="background-color: #f1f5f9" i] { background:hsla(209,60%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#f3f5fa" i],
html[data-theme="dark"] [style*="background: #f3f5fa" i],
html[data-theme="dark"] [style*="background-color:#f3f5fa" i],
html[data-theme="dark"] [style*="background-color: #f3f5fa" i] { background:hsla(222,61%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#f8fafc" i],
html[data-theme="dark"] [style*="background: #f8fafc" i],
html[data-theme="dark"] [style*="background-color:#f8fafc" i],
html[data-theme="dark"] [style*="background-color: #f8fafc" i] { background:var(--card-2) !important; }
html[data-theme="dark"] [style*="background:#fee2e2" i],
html[data-theme="dark"] [style*="background: #fee2e2" i],
html[data-theme="dark"] [style*="background-color:#fee2e2" i],
html[data-theme="dark"] [style*="background-color: #fee2e2" i] { background:hsla(0,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#fef2f2" i],
html[data-theme="dark"] [style*="background: #fef2f2" i],
html[data-theme="dark"] [style*="background-color:#fef2f2" i],
html[data-theme="dark"] [style*="background-color: #fef2f2" i] { background:var(--card-2) !important; }
html[data-theme="dark"] [style*="background:#fef3c7" i],
html[data-theme="dark"] [style*="background: #fef3c7" i],
html[data-theme="dark"] [style*="background-color:#fef3c7" i],
html[data-theme="dark"] [style*="background-color: #fef3c7" i] { background:hsla(47,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#fff" i],
html[data-theme="dark"] [style*="background: #fff" i],
html[data-theme="dark"] [style*="background-color:#fff" i],
html[data-theme="dark"] [style*="background-color: #fff" i] { background:var(--card) !important; }
html[data-theme="dark"] [style*="background:#fff3e0" i],
html[data-theme="dark"] [style*="background: #fff3e0" i],
html[data-theme="dark"] [style*="background-color:#fff3e0" i],
html[data-theme="dark"] [style*="background-color: #fff3e0" i] { background:hsla(36,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#fffbeb" i],
html[data-theme="dark"] [style*="background: #fffbeb" i],
html[data-theme="dark"] [style*="background-color:#fffbeb" i],
html[data-theme="dark"] [style*="background-color: #fffbeb" i] { background:hsla(47,90%,55%,.16) !important; }
html[data-theme="dark"] [style*="background:#ffffff" i],
html[data-theme="dark"] [style*="background: #ffffff" i],
html[data-theme="dark"] [style*="background-color:#ffffff" i],
html[data-theme="dark"] [style*="background-color: #ffffff" i] { background:var(--card) !important; }
html[data-theme="dark"] [style*="color:#0284c7" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0284c7" i]:not([style*="background"]) { color:hsl(200,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#0369a1" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0369a1" i]:not([style*="background"]) { color:hsl(201,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#047857" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #047857" i]:not([style*="background"]) { color:hsl(162,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#059669" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #059669" i]:not([style*="background"]) { color:hsl(161,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#065f46" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #065f46" i]:not([style*="background"]) { color:hsl(163,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#0a7d61" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0a7d61" i]:not([style*="background"]) { color:hsl(165,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#0b2f63" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0b2f63" i]:not([style*="background"]) { color:hsl(215,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#0d386b" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0d386b" i]:not([style*="background"]) { color:hsl(212,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#0f172a" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0f172a" i]:not([style*="background"]) { color:hsl(222,57%,74%) !important; }
html[data-theme="dark"] [style*="color:#0f9d58" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #0f9d58" i]:not([style*="background"]) { color:hsl(150,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#14532d" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #14532d" i]:not([style*="background"]) { color:hsl(143,71%,74%) !important; }
html[data-theme="dark"] [style*="color:#15803d" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #15803d" i]:not([style*="background"]) { color:hsl(142,81%,74%) !important; }
html[data-theme="dark"] [style*="color:#166534" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #166534" i]:not([style*="background"]) { color:hsl(142,74%,74%) !important; }
html[data-theme="dark"] [style*="color:#1d1d1f" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #1d1d1f" i]:not([style*="background"]) { color:var(--ink) !important; }
html[data-theme="dark"] [style*="color:#1d4ed8" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #1d4ed8" i]:not([style*="background"]) { color:hsl(224,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#1e293b" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #1e293b" i]:not([style*="background"]) { color:hsl(217,42%,74%) !important; }
html[data-theme="dark"] [style*="color:#1e3a8a" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #1e3a8a" i]:not([style*="background"]) { color:hsl(224,74%,74%) !important; }
html[data-theme="dark"] [style*="color:#1e40af" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #1e40af" i]:not([style*="background"]) { color:hsl(225,80%,74%) !important; }
html[data-theme="dark"] [style*="color:#2563eb" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #2563eb" i]:not([style*="background"]) { color:hsl(221,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#334155" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #334155" i]:not([style*="background"]) { color:var(--ink) !important; }
html[data-theme="dark"] [style*="color:#374151" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #374151" i]:not([style*="background"]) { color:var(--ink-2) !important; }
html[data-theme="dark"] [style*="color:#5a6580" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #5a6580" i]:not([style*="background"]) { color:var(--ink-2) !important; }
html[data-theme="dark"] [style*="color:#5f6168" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #5f6168" i]:not([style*="background"]) { color:var(--ink-2) !important; }
html[data-theme="dark"] [style*="color:#6d28d9" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #6d28d9" i]:not([style*="background"]) { color:hsl(263,79%,74%) !important; }
html[data-theme="dark"] [style*="color:#7a4a00" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #7a4a00" i]:not([style*="background"]) { color:hsl(36,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#7c3aed" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #7c3aed" i]:not([style*="background"]) { color:hsl(262,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#7f1d1d" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #7f1d1d" i]:not([style*="background"]) { color:hsl(0,72%,74%) !important; }
html[data-theme="dark"] [style*="color:#92400e" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #92400e" i]:not([style*="background"]) { color:hsl(22,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#991b1b" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #991b1b" i]:not([style*="background"]) { color:hsl(0,80%,74%) !important; }
html[data-theme="dark"] [style*="color:#b45309" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #b45309" i]:not([style*="background"]) { color:hsl(25,85%,74%) !important; }
html[data-theme="dark"] [style*="color:#b91c1c" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #b91c1c" i]:not([style*="background"]) { color:hsl(0,83%,74%) !important; }
html[data-theme="dark"] [style*="color:#dc2626" i]:not([style*="background"]),
html[data-theme="dark"] [style*="color: #dc2626" i]:not([style*="background"]) { color:hsl(0,82%,74%) !important; }

/* Avisos y mensajes que se crean con estilo propio */
html[data-theme="dark"] #noSessionBanner { background: #3b1517 !important; color: #fecaca !important; border-bottom-color: #f87171 !important; }
html[data-theme="dark"] #noSessionBanner button { background: var(--card-2) !important; color: #fecaca !important; border-color: #f87171 !important; }

/* Cabecera de ficha v2 en oscuro */
html[data-theme="dark"] #patientDetail .pd-stats { --pd-debe: var(--warn); --pd-ok: var(--good); }
html[data-theme="dark"] #patientDetail .pd-card:has(> .pd-head) > .pd-stats, html[data-theme="dark"] #patientDetail .ec-033-info { background: hsla(0,0%,100%,.08) !important; }
html[data-theme="dark"] #patientDetail .ci-v.alto { background: hsla(0,80%,60%,.16); }
html[data-theme="dark"] #patientDetail .ci-v.alto small, html[data-theme="dark"] #patientDetail .ci-v.alto b, html[data-theme="dark"] #patientDetail .ci-v.alto i { color: hsl(0,85%,76%); }
