/* Cotizador SRYLED MX — modo oscuro (botón sol/luna junto al nombre; se guarda en este navegador).
   Se activa con <html data-tema="oscuro">. Los documentos (la hoja de la cotización) e impresiones siguen en claro. */
html[data-tema="oscuro"] {
  color-scheme: dark;
  --negro: #0a0a0b;
  --tinta: #e4e4e7;
  --gris: #a1a1aa;
  --linea: #2a2a2e;
  --fondo: #0c0c0e;
  --tarjeta: #18181b;
  --ok: #4ade80;
  --ok-fondo: #0f2a1a;
  --sombra: 0 0 0 1px #232327;
}
:where(html[data-tema="oscuro"]) a { color: #ff6b63; }
html[data-tema="oscuro"] .barra { border-bottom: 1px solid #222225; }
html[data-tema="oscuro"] input::placeholder, html[data-tema="oscuro"] textarea::placeholder { color: #71717a; }
html[data-tema="oscuro"] img { filter: none; }

/* La hoja del documento sigue en claro (es lo que se imprime o se manda al cliente) */
html[data-tema="oscuro"] .hoja { color-scheme: light; --tinta: #1d1d1f; --gris: #6b6b70; --linea: #e3e3e6; --tarjeta: #ffffff; }
html[data-tema="oscuro"] body.ver-doc { background: #0c0c0e; }
html[data-tema="oscuro"] .doc-barra { background: rgba(10,10,11,.92); border-bottom-color: #222225; }
html[data-tema="oscuro"] .menu-mas-lista { background: #18181b; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
html[data-tema="oscuro"] .menu-mas-lista button:hover { background: #27272a; }
html[data-tema="oscuro"] .buscador-res { box-shadow: 0 12px 36px rgba(0,0,0,.6); border: 1px solid #27272a; }
html[data-tema="oscuro"] .buscador input { border-color: #3f3f46; background: #18181b; }
html[data-tema="oscuro"] .tema-btn:hover, html[data-tema="oscuro"] .buscador-lupa:hover { background: #27272a; }

/* ---- Colores fijos de app.css pasados a oscuro ---- */
html[data-tema="oscuro"] .calc-fab { background: #18181b; border: 1px solid #3f3f46; }
:where(html[data-tema="oscuro"]) code { background: #2e2e2e; }
:where(html[data-tema="oscuro"]) input, :where(html[data-tema="oscuro"]) select, :where(html[data-tema="oscuro"]) textarea { border: 1px solid #303035; background: #181818; }
:where(html[data-tema="oscuro"]) .btn { border: 1px solid #303035; background: #181818; }
:where(html[data-tema="oscuro"]) .btn:hover { background: #25252a; }
:where(html[data-tema="oscuro"]) .btn.ghost { background: #242427; border-color: #29292e; }
:where(html[data-tema="oscuro"]) .btn.ghost:hover { background: #303036; border-color: #303035; }
:where(html[data-tema="oscuro"]) .aviso.error { background: #371515; color: #f47b7b; }
:where(html[data-tema="oscuro"]) .aviso-mini { color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip { background: #2c2c32; color: #c2c2c2; }
:where(html[data-tema="oscuro"]) .chip.t-cotizacion { background: #381614; }
:where(html[data-tema="oscuro"]) .chip.t-bloqueo { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip.t-envio { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .tabla { background: #181818; }
:where(html[data-tema="oscuro"]) .tabla th { background: #1e1e1e; }
:where(html[data-tema="oscuro"]) .tabla tr.grupo td { background: #242429; }
:where(html[data-tema="oscuro"]) .tabla.docs tbody tr:hover td { background: #1b1b1e; }
:where(html[data-tema="oscuro"]) body > .contenedor > .tabla-scroll { background: #181818; }
:where(html[data-tema="oscuro"]) .kpi { background: #181818; }
:where(html[data-tema="oscuro"]) .paginas a { background: #181818; }
:where(html[data-tema="oscuro"]) .segmentos { background: #303036; }
:where(html[data-tema="oscuro"]) .segmentos a.activo { background: #181818; }
:where(html[data-tema="oscuro"]) .calculo { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .agregar-bloque { border: 2px dashed #303035; }
:where(html[data-tema="oscuro"]) .art-foto { background: #1e1e1e; }
:where(html[data-tema="oscuro"]) .articulo.nuevo { border: 2px dashed #303035; }
:where(html[data-tema="oscuro"]) .resultados { background: #181818; }
:where(html[data-tema="oscuro"]) .res-item span { color: #c2c2c2; }
:where(html[data-tema="oscuro"]) .res-item.marcado { background: #381614; }
:where(html[data-tema="oscuro"]) .chip.usd { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .chip.vencida { background: #26262b; }
:where(html[data-tema="oscuro"]) .precio-incluye { color: #c2c2c2; }
:where(html[data-tema="oscuro"]) .rojo { color: #f47b7b !important; }
:where(html[data-tema="oscuro"]) .chip.e-nuevo { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .chip.e-cotizado { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip.e-perdido { background: #26262b; }
:where(html[data-tema="oscuro"]) .chip.alerta { background: #371515; color: #f47b7b; }
:where(html[data-tema="oscuro"]) .chip.disp-ultimas-piezas { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip.disp-bajo-pedido, :where(html[data-tema="oscuro"]) .chip.disp-proximamente { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .chip.disp-agotado { background: #26262b; }
:where(html[data-tema="oscuro"]) em.disp { color: #84a5ec; background: #162237; }
:where(html[data-tema="oscuro"]) .wa-link { color: #85ebad; }
:where(html[data-tema="oscuro"]) .cliente-sel { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .tl-notas { color: #cccccc; }
:where(html[data-tema="oscuro"]) .barra-acciones { background: #181818; }
:where(html[data-tema="oscuro"]) .barra-mes .barra { background: #612b29; }
:where(html[data-tema="oscuro"]) .calc-caja { background: #181818; }
:where(html[data-tema="oscuro"]) .calc-res { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .tc-modo label:has(input:checked) { background: #181818; }
:where(html[data-tema="oscuro"]) .cp-bien { color: #88e7a4; }
:where(html[data-tema="oscuro"]) .cp-mal { color: #e78888; }
:where(html[data-tema="oscuro"]) .paqueteria { border: 1px dashed var(--borde, #373737); }
:where(html[data-tema="oscuro"]) .selb-lista { background: #181818; border: 1px solid #2f2f2f; }
:where(html[data-tema="oscuro"]) .selb-item.marcado, :where(html[data-tema="oscuro"]) .selb-item:hover { background: #381614; }
:where(html[data-tema="oscuro"]) .foto-prod-img { border: 1px solid #2c2c2c; background: #181818; }
:where(html[data-tema="oscuro"]) .mini-foto { background: #181818; }
:where(html[data-tema="oscuro"]) .bloque-foto { background: #181818; border: 1px solid #2e2e2e; }
:where(html[data-tema="oscuro"]) .precio-foto { background: #181818; }
:where(html[data-tema="oscuro"]) .empresas-precio { border: 1px solid #2c2c2c; }
:where(html[data-tema="oscuro"]) .subbarra a.activo { background: #181818; color: #e0e0e0; }
:where(html[data-tema="oscuro"]) .url-copiable { color: #b8b8b8; background: #262626; }
:where(html[data-tema="oscuro"]) .chip.env-pendiente { background: #381614; }
:where(html[data-tema="oscuro"]) .chip.env-preparado { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip.env-enviado { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .chip.env-cancelado, :where(html[data-tema="oscuro"]) .chip.env-archivado { background: #2c2c32; color: #adadad; }
:where(html[data-tema="oscuro"]) .pasos-linea li::before { background: #29292e; color: #a3a3a3; }
:where(html[data-tema="oscuro"]) .pasos-linea li::after { background: #29292e; }
:where(html[data-tema="oscuro"]) .pasos-linea li.actual::before { box-shadow: 0 0 0 4px #381614; }
:where(html[data-tema="oscuro"]) .evid { background: #232327; }
:where(html[data-tema="oscuro"]) .comentario { background: #232327; }
:where(html[data-tema="oscuro"]) .barra-avance { background: #2c2c32; }
:where(html[data-tema="oscuro"]) .web-l-en textarea, :where(html[data-tema="oscuro"]) .web-l-en input { background: #1c1c20; }
:where(html[data-tema="oscuro"]) .web-tr.viejo { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .web-tr.falta { background: #371515; color: #f47b7b; }
:where(html[data-tema="oscuro"]) .web-medio { background: #181818; }
:where(html[data-tema="oscuro"]) .web-medio img, :where(html[data-tema="oscuro"]) .web-medio video { background: #2e2e2e; }
:where(html[data-tema="oscuro"]) .barra-sel { background: #211d1d; border: 1px solid #341919; }
:where(html[data-tema="oscuro"]) .inv-mod img, :where(html[data-tema="oscuro"]) .inv-sin { background: #242427; }
:where(html[data-tema="oscuro"]) .inv-sin { background: repeating-linear-gradient(45deg, #242427, #242427 6px, #2d2d32 6px, #2d2d32 12px); }
:where(html[data-tema="oscuro"]) .inv-cab img { background: #242427; }
:where(html[data-tema="oscuro"]) .aviso.info { background: #111b3b; border: 1px solid #121a3b; color: #9591df; }
:where(html[data-tema="oscuro"]) .chips-filtro button { border: 1px solid #303035; background: #181818; color: #d1d1d4; }
:where(html[data-tema="oscuro"]) .chips-filtro button b { background: #242427; }
:where(html[data-tema="oscuro"]) .chips-filtro button.alerta { border-color: #682121; color: #ec8383; }
:where(html[data-tema="oscuro"]) .inv-origen { background: #111b3b; color: #9591df; }
:where(html[data-tema="oscuro"]) .vista-inv { border: 1px solid #303035; }
:where(html[data-tema="oscuro"]) .vista-inv button { background: #181818; color: #c0c0c6; }
:where(html[data-tema="oscuro"]) .inv-desglose a { border: 1px solid #29292e; color: #c0c0c6; background: #1e1e1e; }
:where(html[data-tema="oscuro"]) .inv-desglose a:hover { border-color: #45454c; }
:where(html[data-tema="oscuro"]) .inv-desglose a.rojo { color: #ec8383; border-color: #682121; }
:where(html[data-tema="oscuro"]) .revisar-inv { background: #3b3311; color: #efa880; }
:where(html[data-tema="oscuro"]) .lote { border: 1px solid #29292e; background: #181818; }
:where(html[data-tema="oscuro"]) .lote-agotado { border-left-color: #45454c; }
:where(html[data-tema="oscuro"]) .lote-est { color: #84ebab; }
:where(html[data-tema="oscuro"]) .lote-transito .lote-est { color: #f4af7b; }
:where(html[data-tema="oscuro"]) .lote-agotado .lote-est { color: #a1a1a8; }
:where(html[data-tema="oscuro"]) .lote-nota { background: #3b3712; color: #ebb584; }
:where(html[data-tema="oscuro"]) .lote-cif small { color: #a1a1a8; }
:where(html[data-tema="oscuro"]) .lote-cuerpo { border-top: 1px solid #242427; }
:where(html[data-tema="oscuro"]) .lote-reservas { background: #1d1e20; }
:where(html[data-tema="oscuro"]) .lote-reservas>div { border-top: 1px solid #1f252e; }
:where(html[data-tema="oscuro"]) .lotes-chip { background: #153821; color: #8ae5ad; }
:where(html[data-tema="oscuro"]) .btn-guia { border: 1px solid #121a3b; background: #111b3b; color: #9591df; }
:where(html[data-tema="oscuro"]) .pend-chip.pend-alto { background: #231f1f; border-color: #682121; color: #ec8383; }
:where(html[data-tema="oscuro"]) .pend-chip.pend-medio { background: #3b3311; color: #f3a97d; }
:where(html[data-tema="oscuro"]) .pend-chip.pend-bajo { background: #242427; border-color: #303035; color: #b3b3ba; }
:where(html[data-tema="oscuro"]) .pend { border: 1px solid #29292e; border-left: 4px solid #45454c; background: #181818; }
:where(html[data-tema="oscuro"]) .pend-alto .pend-n { color: #ec8383; }
:where(html[data-tema="oscuro"]) .pend-t small { color: #a1a1a8; }
:where(html[data-tema="oscuro"]) .pend-niv { color: #a1a1a8; }
:where(html[data-tema="oscuro"]) .pend-items a { border: 1px solid #29292e; color: #c0c0c6; background: #1e1e1e; }
:where(html[data-tema="oscuro"]) .pend-items a:hover { border-color: #45454c; }
:where(html[data-tema="oscuro"]) .camb-tabs a { border: 1px solid #303035; background: #181818; color: #d1d1d4; }
:where(html[data-tema="oscuro"]) .camb-tabs a b { background: #242427; color: #d1d1d4; }
:where(html[data-tema="oscuro"]) .camb-card { border-left: 4px solid #29292e; }
:where(html[data-tema="oscuro"]) .camb-card-meta { color: #b3b3ba; }
:where(html[data-tema="oscuro"]) .chip.c-nueva { background: #242427; color: #d1d1d4; }
:where(html[data-tema="oscuro"]) .chip.c-revision { background: #11213b; color: #819eee; }
:where(html[data-tema="oscuro"]) .chip.c-aprobada { background: #153821; color: #8ae5ad; }
:where(html[data-tema="oscuro"]) .chip.c-proceso { background: #3b3212; color: #f3a97d; }
:where(html[data-tema="oscuro"]) .chip.c-lista { background: #1a1339; color: #ad86e9; }
:where(html[data-tema="oscuro"]) .chip.c-descartada { background: #29292e; color: #b3b3ba; }
:where(html[data-tema="oscuro"]) .camb-msg.camb-mio { background: #1e1e1e; }
:where(html[data-tema="oscuro"]) .camb-msg.camb-sugerencia { background: #11243b; border: 1px solid #12243b; }
:where(html[data-tema="oscuro"]) .camb-texto code { background: #242427; }
:where(html[data-tema="oscuro"]) .camb-estado { color: #b3b3ba; }
:where(html[data-tema="oscuro"]) .camb-foto img { border: 1px solid #29292e; }
:where(html[data-tema="oscuro"]) .btn-leer:hover, :where(html[data-tema="oscuro"]) .btn-leer.leyendo { background: #242427; }
:where(html[data-tema="oscuro"]) .voz-btn { border: 1px solid #303035; background: #181818; }
:where(html[data-tema="oscuro"]) .compras-cli tr.compra-ini td { border-top: 2px solid #29292e; }
:where(html[data-tema="oscuro"]) .chip.sop-e-nuevo { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .chip.sop-e-en_atencion, :where(html[data-tema="oscuro"]) .chip.sop-e-cita, :where(html[data-tema="oscuro"]) .chip.sop-e-seguimiento { background: #3b2f11; color: #f4ca7b; }
:where(html[data-tema="oscuro"]) .chip.sop-e-pendiente_envio, :where(html[data-tema="oscuro"]) .chip.sop-e-en_transito, :where(html[data-tema="oscuro"]) .chip.sop-e-recibido { background: #231735; color: #aa8ce4; }
:where(html[data-tema="oscuro"]) .chip.sop-e-cancelado { background: #26262b; }
:where(html[data-tema="oscuro"]) .chip.sop-r-revision { background: #371515; color: #f47b7b; }
:where(html[data-tema="oscuro"]) .chip.sop-r-capacitacion { background: #162237; color: #84a5ec; }
:where(html[data-tema="oscuro"]) .sop-progreso { background: #2c2c32; }
:where(html[data-tema="oscuro"]) .sop-opciones label { background: #181818; }
:where(html[data-tema="oscuro"]) .sop-opciones label:has(input:checked) { background: #201d1d; }
:where(html[data-tema="oscuro"]) .sop-check { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .sop-lista li { background: #181818; }
:where(html[data-tema="oscuro"]) .sop-lista .sop-mini { background: #2e2e2e center / cover no-repeat; }
:where(html[data-tema="oscuro"]) .sop-barra { background: #2c2c32; }
:where(html[data-tema="oscuro"]) .sop-lista li.error .sop-estado { color: #f47b7b; }
:where(html[data-tema="oscuro"]) .sop-bitacora li.interno { background: #1c1c20; border-left: 3px solid #2d2d33; }
:where(html[data-tema="oscuro"]) .sop-bitacora li.ev-cliente > div { color: #84a5ec; }
:where(html[data-tema="oscuro"]) .sop-cita { background: #3b2f11; }
:where(html[data-tema="oscuro"]) .sop-linea li { background: #26262b; }
:where(html[data-tema="oscuro"]) .sop-hecho { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .sop-cobertura { background: #3b2f11; color: #f4cf7b; }
:where(html[data-tema="oscuro"]) .sop-cobertura.cob-vencida { background: #371515; color: #f47b7b; }
:where(html[data-tema="oscuro"]) .sop-dir { background: #1f1f23; }
:where(html[data-tema="oscuro"]) .buscador-res { background: #181818; }
:where(html[data-tema="oscuro"]) .buscador-res a.res:hover, :where(html[data-tema="oscuro"]) .buscador-res a.res.sel { background: #25252a; }
:where(html[data-tema="oscuro"]) .lista-busqueda a:hover { background: #1c1c20; }
