/* Contactos y Clientes potenciales al estilo de Softmax (GoHighLevel). Solo usa los tokens de la plataforma (claro y oscuro).
   Clases «cv-» = Contactos (contactos_vista.js) · «ov-» = Clientes potenciales (opo_vista.js). */

.cv-i { display: inline-flex; width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.cv-i svg { width: 100%; height: 100%; pointer-events: none; }
.cv-i.peq { width: 13px; height: 13px; vertical-align: -2px; color: var(--text-3); }
.cv-i.grande { width: 40px; height: 40px; color: var(--text-4); }
.sr-solo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button svg, .icono svg { pointer-events: none; }
.chip.claro { background: var(--surface-3); color: var(--text-3); }
.enlace-az { border: 0; background: none; color: var(--electric-text); cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.enlace-az:hover { text-decoration: underline; }
.cv-pil { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.cv-pil.ok { background: var(--success-light); color: var(--success-text); }
.cv-pil.az { background: var(--electric-light); color: var(--electric-text); }
.cv-pil.av { background: var(--warning-light); color: var(--warning-text); }
.cv-ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-1); background: none; color: transparent; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.cv-ck svg { width: 14px; height: 14px; }
.cv-ck:hover { border-color: var(--success); color: var(--success); }
.cv-ck.si { background: var(--success); border-color: var(--success); color: #fff; }

/* ── barras superiores de las listas ── */
.cv-listas { align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-listas-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cv-botones { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.cv-ib { padding: 7px 9px; }
.cv-ib b { font-size: 11px; margin-left: 1px; }
.cv-barra { gap: 8px; }
.cv-f { background: var(--surface-2); }
.cv-f.con { background: var(--electric-light); border-color: var(--electric-border); color: var(--electric-text); }
.cv-barra .chip.azul, .ov-cab .chip.azul { padding: 5px 12px; font-size: 12px; }
.cv-busca { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 0 10px; margin: 0; min-width: 0; }
.cv-busca input { border: 0; background: none; outline: none; box-shadow: none; width: 200px; padding: 7px 0; font-size: 13px; }
.cv-busca:focus-within { border-color: var(--electric); box-shadow: 0 0 0 2px var(--electric-dim); }
.cv-busca.grande { display: flex; width: 100%; }
.cv-busca.grande input { width: 100%; }
.cv-sel { display: inline-flex; align-items: center; gap: 4px; background: var(--electric-light); border-radius: 99px; padding: 3px 6px; flex-wrap: wrap; }
.cv-sel .chip.azul { background: transparent; padding: 3px 8px; font-size: 13px; }
.cv-acc { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.cv-ab { border: 0; background: none; cursor: pointer; padding: 7px 9px; border-radius: 6px; font-size: 13px; color: var(--text-1); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cv-ab:hover { background: var(--surface-3); }
.cv-ab:focus-visible, .ov-ic:focus-visible, .cv-campo:focus-visible { outline: 2px solid var(--electric); outline-offset: 1px; }

/* ── tabla ── */
.cv-tabla table, .cv-tabla2 table { border-collapse: collapse; width: 100%; min-width: max-content; }
.cv-tabla th, .cv-tabla2 th { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--text-1); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-2); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.cv-tabla td, .cv-tabla2 td { padding: 8px 14px; border-bottom: 1px solid var(--border-3); font-size: 13px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-tabla td.cv-nom b, .cv-tabla2 td b { font-weight: 600; }
.cv-tabla tr.clic:hover td, .cv-tabla2 tr.clic:hover td { background: var(--surface-3); cursor: pointer; }
.cv-tabla2 { border: 1px solid var(--border-2); border-radius: var(--radius-card, 14px); background: var(--surface-2); max-height: calc(100vh - 290px); }
.cv-tabla th.ordenable, .cv-tabla2 th.ordenable { cursor: pointer; }
.cv-ord { font-style: normal; font-size: 10px; color: var(--text-4); margin-left: 4px; }
.cv-ch { width: 36px; }
.cv-tabla td svg, .cv-tabla2 td svg { vertical-align: -3px; }
.cv-tabla td a, .cv-tabla2 td a { color: inherit; text-decoration: none; }
.cv-tabla td a:hover, .cv-tabla2 td a:hover { color: var(--electric-text); }
.cv-pie { display: flex; align-items: center; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.cv-pie select { width: auto; }
.cv-pg { border: 1px solid var(--electric); color: var(--electric-text); border-radius: 6px; padding: 3px 10px; font-size: 13px; }

/* ── páginas internas (Acciones en lote, Tareas, Empresas, Pronóstico, Secuencia) ── */
.cv-pag { padding: 14px 18px; }
.cv-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cv-cab h2, .cv-t { font-size: 18px; margin: 0; }
.cv-fichas { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.cv-ficha { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border-1); background: var(--surface-2); border-radius: 99px; padding: 0 6px 0 12px; font-size: 13px; margin: 0; }
.cv-ficha select { border: 0; background: none; width: auto; padding: 6px 4px; font-size: 13px; font-weight: 600; }
.cv-subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-2); margin-bottom: 4px; }
.cv-subtabs.en-linea { border-bottom: 0; margin: 0; }
.cv-subtabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; }
.cv-subtabs button.activo { color: var(--electric-text); border-bottom-color: var(--electric); }
.cv-filtros { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.cv-filtros label { margin: 0; font-weight: 600; }
.cv-filtros input, .cv-filtros select { width: auto; }
.cv-vacio { text-align: center; padding: 56px 12px; }
.cv-vacio .cv-ilus { width: 72px; height: 72px; margin: 0 auto 10px; color: var(--text-4); }
.cv-vacio .cv-ilus svg { width: 100%; height: 100%; }
.cv-asa { color: var(--text-4); cursor: grab; width: 20px; user-select: none; }

/* ── panel lateral (Filtros, Gestionar campos) ── */
.cv-cajon-fondo { position: fixed; inset: 0; background: rgba(15, 32, 68, .28); z-index: 140; display: flex; justify-content: flex-end; }
.cv-cajon { width: min(400px, 100vw); height: 100%; background: var(--surface-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: cv-entra .18s ease-out; }
@keyframes cv-entra { from { transform: translateX(30px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cv-cajon { animation: none; } }
.cv-cajon header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 16px; border-bottom: 1px solid var(--border-2); }
.cv-cajon-c { flex: 1; overflow: auto; padding: 14px 18px; }
.cv-cajon footer { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-2); flex-wrap: wrap; }
.cv-h4 { font-size: 13px; margin: 16px 0 8px; color: var(--text-1); }
.cv-grupo { border-bottom: 1px solid var(--border-3); }
.cv-grupo summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 11px 6px; background: var(--surface-3); border-radius: 6px; margin: 4px 0; }
.cv-campo { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; font-size: 13px; cursor: pointer; border-radius: 6px; color: var(--text-1); }
.cv-campo:hover { background: var(--surface-3); }
.cv-campo-l { display: flex; padding: 6px 14px; }
.cv-fil { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; border: 1px solid var(--border-2); border-radius: 8px; margin-bottom: 8px; background: var(--surface); }
.cv-fil.grupo { grid-template-columns: 1fr auto; align-items: center; }
.cv-fil .fila { gap: 4px; }
.cv-fil button { justify-self: end; }
.cv-modo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; flex-wrap: wrap; }
.cv-lista { list-style: none; margin: 0; padding: 0; }
.cv-lista li { display: flex; align-items: center; gap: 6px; padding: 7px 4px; border-radius: 6px; border: 1px solid transparent; }
.cv-lista li:focus-visible { outline: 2px solid var(--electric); }
.cv-lista li.sobre { border-color: var(--electric); background: var(--electric-dim); }
.cv-lista li.arrastrando { opacity: .4; }
.cv-lista li label { margin: 0; flex: 1; }
.cv-mover button { border: 0; background: none; cursor: pointer; color: var(--text-4); font-size: 10px; padding: 2px 3px; }
.cv-mover { display: inline-flex; flex-direction: column; opacity: 0; }
.cv-lista li:hover .cv-mover, .cv-lista li:focus-within .cv-mover { opacity: 1; }
.cv-cand { color: var(--text-4); }

/* ── ficha del contacto: tres columnas ── */
.chat2.de-contacto { grid-template-columns: 310px 1fr 300px 44px; }
.chat2.de-contacto.sin-campos { grid-template-columns: 1fr 300px 44px; }
.chat2.de-contacto.sin-campos > .campos { display: none; }
.chat2.de-contacto.sin-ficha { grid-template-columns: 310px 1fr 44px; }
.chat2.de-contacto.sin-ficha.sin-campos { grid-template-columns: 1fr 44px; }
.chat2.de-contacto.sin-ficha > .ficha { display: none; }
.chat2.de-contacto > .hilo { display: flex; flex-direction: column; min-width: 0; }
.cv-ficha-col { padding: 0 !important; position: relative; display: flex; flex-direction: column; background: var(--surface) !important; }
.cv-ficha-col > * { margin-left: 12px; margin-right: 12px; }
.cv-fcab { display: flex; align-items: center; gap: 4px; padding: 12px 0 8px; font-size: 13px; }
.cv-volver { color: var(--text-1); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.cv-fnom { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-bottom: 10px; }
.cv-fnom b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-fdueno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.cv-fdueno label, .cv-etq { font-size: 12px; font-weight: 600; margin: 0 0 3px; display: block; }
.cv-fdueno select { padding: 5px 6px; font-size: 12px; }
.cv-fetq { margin-bottom: 10px; font-size: 12px; }
.cv-fetq-c { display: flex; align-items: center; justify-content: space-between; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cv-fetq input { margin: 6px 0; }
.cv-ftabs { display: flex; border-bottom: 1px solid var(--border-2); margin-bottom: 10px; }
.cv-ftabs button { flex: 1; border: 0; background: none; padding: 9px 2px; cursor: pointer; font-weight: 600; font-size: 11.5px; white-space: nowrap; color: var(--text-3); border-bottom: 2px solid transparent; }
.cv-ftabs button.activo { color: var(--electric-text); border-bottom-color: var(--electric); }
.cv-fg { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px; margin-bottom: 10px; padding: 0 12px !important; }
.cv-fg summary { font-weight: 700; padding: 11px 0; cursor: pointer; }
.cv-fc { display: block; margin-bottom: 12px; }
.cv-fc > span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.cv-fc input, .cv-fc select, .cv-fc textarea { border: 0; border-bottom: 1px solid var(--border-2); border-radius: 0; background: transparent; padding: 4px 0; font-weight: 600; }
.cv-fc input:focus, .cv-fc select:focus, .cv-fc textarea:focus { border-bottom-color: var(--electric); outline: none; box-shadow: none; }
.cv-cambios { position: sticky; bottom: 0; margin: 0 !important; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--border-1); box-shadow: 0 -4px 12px rgba(15, 32, 68, .08); font-weight: 600; font-size: 13px; z-index: 2; }
.cv-cambios[hidden] { display: none; }
.cv-ctab { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-2); flex: none; }
.cv-ctab > button:first-child { border: 0; background: none; padding: 11px 10px; font-weight: 600; color: var(--electric-text); border-bottom: 2px solid var(--electric); cursor: default; }
.cv-act { padding: 2px; }
.cv-act-t { font-size: 14px; margin-bottom: 8px; }
.cv-act-f { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cv-act-f select { width: auto; padding: 4px 6px; font-size: 12px; border-radius: 99px; }
.cv-act-d { font-size: 12px; font-weight: 700; color: var(--text-3); margin: 12px 0 6px; }
.cv-act-e { display: flex; gap: 10px; margin-bottom: 10px; }
.cv-act-i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #1c2b4a; }
.cv-act-i svg { width: 15px; height: 15px; }
.cv-act-c { background: var(--surface-3); border-radius: 8px; padding: 6px 8px; margin-top: 4px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.cv-act-v { text-align: center; padding: 26px 8px; }

/* ═════════ Clientes potenciales ═════════ */
.ov-cab { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; flex-wrap: wrap; }
.ov-emb { margin: 0; }
.ov-emb select { width: auto; min-width: 190px; font-weight: 700; font-size: 14px; background: var(--surface-2); padding: 8px 12px; }
.ov-alt { display: inline-flex; border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); }
.ov-alt button { border: 0; background: none; padding: 7px 10px; cursor: pointer; color: var(--text-3); display: grid; place-items: center; }
.ov-alt button svg { width: 16px; height: 16px; }
.ov-alt button.activo { background: var(--electric-light); color: var(--electric-text); }
.ov-cuerpo { flex: 1; min-height: 0; }
.ov-tab { display: flex; gap: 12px; height: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 0 12px; }
.ov-col { flex: 0 0 255px; display: flex; flex-direction: column; min-height: 0; background: var(--surface-3); border-radius: 10px; border: 2px solid transparent; }
.ov-col.sobre { border-color: var(--electric); background: var(--electric-dim); }
.ov-col header { padding: 10px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; background: var(--surface-2); border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--border-2); }
.ov-col header b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ov-col header small { color: var(--text-3); font-size: 11px; display: block; }
.ov-col header > div { min-width: 0; }
.ov-pl { border: 0; background: none; cursor: pointer; color: var(--text-3); padding: 2px; border-radius: 6px; display: grid; place-items: center; }
.ov-pl:hover { background: var(--surface-3); }
.ov-pl svg { width: 16px; height: 16px; }
.ov-col.plegada { flex: 0 0 46px; align-items: center; padding: 10px 0; gap: 8px; }
.ov-col.plegada b { writing-mode: vertical-rl; white-space: nowrap; }
.ov-col.plegada .ov-pl svg { transform: rotate(180deg); }
.ov-cartas { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ov-carta { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px; cursor: pointer; box-shadow: var(--shadow-sm); }
.ov-carta:hover { border-color: var(--border-1); box-shadow: var(--shadow-md); }
.ov-carta:focus-visible { outline: 2px solid var(--electric); outline-offset: 1px; }
.ov-carta.arrastrando { opacity: .45; }
.ov-carta-t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.ov-carta-t b { font-size: 13px; word-break: break-word; }
.ov-av { margin: 0 !important; flex: none; }
.ov-av.sin { background: var(--surface-3) !important; color: var(--text-3); border: 1px solid var(--border-2); }
.ov-av svg { width: 13px; height: 13px; }
.ov-fila { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.ov-fila span:first-child { color: var(--text-3); min-width: 44px; }
.ov-iconos { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.ov-ic { position: relative; border: 0; background: none; cursor: pointer; padding: 3px; border-radius: 6px; color: var(--text-3); display: inline-grid; place-items: center; }
.ov-ic svg { width: 15px; height: 15px; }
.ov-ic:hover { background: var(--surface-3); color: var(--text-1); }
.ov-ic.con { color: var(--text-1); }
.ov-ic b { position: absolute; top: -4px; right: -5px; min-width: 14px; height: 14px; border-radius: 99px; background: var(--text-3); color: #fff; font-size: 9px; line-height: 14px; padding: 0 3px; text-align: center; }
.ov-ic b.az { background: var(--electric); }
.ov-vacia { padding: 14px 4px; text-align: center; }

/* ── ventana añadir / editar ── */
.caja.ov-caja { max-width: 700px; width: 94vw; padding: 0; overflow: hidden; }
.ov-ventana { display: flex; flex-direction: column; max-height: 88vh; }
.ov-ventana header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 10px; }
.ov-ventana header h2 { margin: 0 0 2px; font-size: 17px; }
.ov-ventana header p { margin: 0; font-size: 12px; }
.ov-cuerpo2 { display: flex; min-height: 0; flex: 1; border-top: 1px solid var(--border-2); }
.ov-menu { width: 150px; flex: none; padding: 12px 10px; display: flex; flex-direction: column; border-right: 1px solid var(--border-3); }
.ov-menu button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ov-menu button.activo { background: var(--electric-light); color: var(--electric-text); }
.ov-menu #vGest { color: var(--electric-text); }
.ov-form { flex: 1; overflow: auto; padding: 8px 20px 14px; min-height: 0; max-height: 58vh; }
.ov-sec { font-size: 13px; margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-3); }
.ov-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ov-f { display: block; font-size: 12px; font-weight: 600; margin: 0; }
.ov-f.ancho { grid-column: 1 / -1; }
.ov-f input, .ov-f select { font-weight: 400; margin-top: 4px; }
.ov-f .req { color: var(--danger); font-style: normal; }
.ov-din { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border-1); border-radius: var(--radius-md); padding-left: 10px; margin-top: 4px; background: var(--surface-2); }
.ov-din input { border: 0; margin: 0; box-shadow: none; }
.ov-sel { position: relative; }
.ov-res { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--surface-2); border: 1px solid var(--border-1); border-radius: 8px; box-shadow: var(--shadow-md); max-height: 220px; overflow: auto; }
.ov-res:empty { display: none; }
.ov-ventana footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--border-2); }
.ov-cp { display: grid; gap: 10px; margin-top: 10px; }

/* ── panel lateral de la oportunidad ── */
.ov-panel-f { position: fixed; inset: 0; z-index: 130; background: rgba(15, 32, 68, .22); display: flex; justify-content: flex-end; }
.ov-panel { width: min(470px, 100vw); height: 100%; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: cv-entra .18s ease-out; }
.ov-panel > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-2); }
.ov-panel > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-panel > header a.icono { text-decoration: none; color: inherit; display: inline-grid; place-items: center; padding: 6px; }
.ov-panel-c { flex: 1; display: flex; min-height: 0; }
.ov-panel-s { flex: 1; overflow: auto; padding: 14px; min-width: 0; }
.ov-pt { font-size: 14px; margin: 0 0 10px; }
.ov-riel { width: 50px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; background: var(--surface-2); border-left: 1px solid var(--border-2); overflow-y: auto; }
.ov-riel button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--text-2); display: grid; place-items: center; flex: none; }
.ov-riel button svg { width: 18px; height: 18px; }
.ov-riel button:hover { background: var(--surface-3); }
.ov-riel button.activo { background: var(--electric-light); color: var(--electric-text); box-shadow: inset 0 0 0 1px var(--electric); }
.ov-riel button:focus-visible { outline: 2px solid var(--electric); }
.ov-opo { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.ov-opo.esta { border-color: var(--electric); }
.ov-opo-t .ov-et { color: var(--warning-text); font-weight: 700; }
.ov-opo-p { display: flex; justify-content: space-between; margin-top: 2px; }
.ov-opo-p .az { color: var(--electric-text); }
.ov-opo-f { display: flex; align-items: center; margin-top: 8px; }
.ov-acciones { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ov-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin: 0 0 12px; }
.ov-dl dt { color: var(--text-3); }
.ov-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.ov-msjs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ov-m { max-width: 85%; padding: 7px 10px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.ov-m small { display: block; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.ov-m.ent { background: var(--surface-3); align-self: flex-start; }
.ov-m.sal { background: var(--electric-light); align-self: flex-end; }

/* ── pronóstico ── */
.ov-pron .kpi .n.verde { color: var(--success); }
.ov-kpis { grid-template-columns: repeat(4, 1fr); }
.op-riesgo.calidad { display: flex; align-items: center; gap: 10px; border-left-color: transparent; }
.op-riesgo.calidad > div { flex: 1; }
.ov-ci { width: 30px; height: 30px; border-radius: 8px; background: var(--electric-light); color: var(--electric-text); display: grid; place-items: center; flex: none; }
.ov-ci svg { width: 16px; height: 16px; }
.ov-leyenda { font-size: 11px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ov-leyenda i, .ov-barras .g, .ov-barras .e, .ov-barras .m { display: inline-block; }
.ov-leyenda i { width: 9px; height: 9px; border-radius: 50%; }
.ov-leyenda .g { background: var(--success); } .ov-leyenda .e { background: var(--electric); } .ov-leyenda .m { background: var(--border-1); }
.ov-barras { padding: 6px 0 2px; }
.ov-b { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.ov-b .n { text-align: right; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-b .pista { position: relative; height: 16px; background: var(--surface-3); border-radius: 4px; }
.ov-b .pista div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; min-width: 2px; }
.ov-b .m { background: var(--border-1); } .ov-b .e { background: var(--electric); opacity: .85; } .ov-b .g { background: var(--success); }
.ov-eje { display: flex; justify-content: space-between; margin-left: 140px; color: var(--text-4); font-size: 10px; }

/* ═════════ teléfono ═════════ */
@media (max-width: 760px) {
  .cv-pag { padding: 10px; }
  .cv-busca input { width: 100%; }
  .cv-busca { flex: 1 1 160px; }
  .cv-botones { width: 100%; }
  .cv-cajon { width: 100vw; }
  .cv-tabla, .cv-tabla2 { border: 0; background: none; max-height: none; }
  .cv-tabla table, .cv-tabla2 table { min-width: 0; }
  .cv-tabla thead, .cv-tabla2 thead { display: none; }
  .cv-tabla table[data-m], .cv-tabla table[data-m] tbody, .cv-tabla2 table[data-m], .cv-tabla2 table[data-m] tbody { display: block; width: 100%; }
  .cv-tabla tr[data-e], .cv-tabla2 tr[data-e] { display: block; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px; margin: 0 0 10px; padding: 10px 12px; }
  .cv-tabla td, .cv-tabla2 td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; padding: 3px 0; white-space: normal; max-width: none; text-align: right; overflow: visible; word-break: break-word; }
  .cv-tabla td::before, .cv-tabla2 td::before { content: attr(data-label); color: var(--text-3); font-size: 12px; text-align: left; flex: none; max-width: 42%; }
  .cv-tabla td[data-label=""]::before, .cv-tabla2 td[data-label=""]::before { display: none; }
  .cv-tabla td:empty, .cv-tabla2 td:empty { display: none; }
  #app .cv-tabla td.cv-nom { font-size: 15px; justify-content: flex-start; text-align: left; }
  .cv-tabla .cv-ch { width: auto; justify-content: flex-end; }
  .cv-tabla td .avatar, .cv-tabla2 td .avatar { margin-right: 6px; }
  .cv-tabla2 .vacio, .cv-tabla .vacio { display: block; text-align: center; }
  .cv-acc, .cv-sel { width: 100%; }
  .ov-cab .hueco { display: none; }
  .ov-emb { flex: 1 1 100%; } .ov-emb select { width: 100%; }
  .ov-tab { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .ov-col { flex: 0 0 84vw; scroll-snap-align: start; }
  .ov-col.plegada { flex: 0 0 46px; }
  .ov-g2 { grid-template-columns: 1fr; }
  .caja.ov-caja { width: 100vw; max-width: 100vw; border-radius: 0; }
  .ov-ventana { max-height: 100vh; height: 100vh; }
  .ov-form { max-height: none; }
  .ov-menu { display: none; }
  .ov-panel { width: 100vw; }
  .ov-kpis { grid-template-columns: 1fr 1fr; }
  .ov-b { grid-template-columns: 90px 1fr; }
  .ov-eje { margin-left: 100px; }
  .cv-fdueno { grid-template-columns: 1fr; }
}
/* tamaño de los íconos sueltos dentro de estas vistas */
.cv .icono svg, .cv .cv-ib svg, .ov .icono svg, .ov .cv-ib svg, .cv-pag .icono svg, .cv-cajon .icono svg, .ov-panel .icono svg, .ov-ventana .icono svg, .cv-ficha-col .icono svg, .cv-ficha-col .cv-ck svg,
.cv-tabla td .icono svg, .cv-tabla2 td .icono svg, .cv-tabla2 .cv-ck svg { width: 16px; height: 16px; }
.cv-cand svg, .cv-act-v svg { width: 100%; height: 100%; }
/* los botones que otros módulos añaden a la barra («Enviar difusión», «Pedir reseña») solo cuando hay filas seleccionadas */
.cv-barra:not(.con-sel) #dfEnviarSel, .cv-barra:not(.con-sel) #rpLoteSel { display: none; }
.cv-barra.con-sel #dfEnviarSel, .cv-barra.con-sel #rpLoteSel { margin-left: 4px; }
