/* ============================================================
   Oasis Omnicanal · Contacto (panel derecho) y Contactos (#/contactos) · prefijo .ct-
   Usa los tokens de css/oasis.css (var(--...)) y los componentes .o-*; ver oasis/NOTAS-base.md.
   ============================================================ */

/* ---------------- piezas comunes ---------------- */
.ct-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ct-punto.vacio { background: transparent; border: 1.5px dashed #B9B6A6; width: 10px; height: 10px; }
.ct-nada { color: var(--ink-3t); }
.ct-suave { color: var(--ink-3t); font-weight: 400; }
.ct-mini { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.ct-mini .ct-punto { width: 8px; height: 8px; }
.ct-flecha { color: var(--ink-3t); margin: 0 1px; }
.ct-mencion { color: var(--cobre-t); font-weight: 600; }
.ct-check { width: 16px; height: 16px; accent-color: var(--verde); cursor: pointer; vertical-align: middle; }

/* ---------------- panel derecho: Contacto ---------------- */
.ct-panel { padding-bottom: 28px; }
.ct-cab { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px 16px; border-bottom: 1px solid var(--line-2); }
.ct-foto { margin-bottom: 8px; }
.ct-foto .o-av .o-canal { right: -2px; bottom: -2px; }
.ct-nombre-fila { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; max-width: 100%; min-height: 34px; padding: 0 30px; }
.ct-nombre { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; padding: 2px 6px; border-radius: 7px; }
.ct-nombre.editable { cursor: text; }
.ct-nombre.editable:hover { background: var(--hover); }
.ct-lapiz { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .12s; color: var(--ink-3t); }
.ct-cab:hover .ct-lapiz, .ct-lapiz:focus-visible { opacity: 1; }
@media (hover: none) { .ct-lapiz { opacity: 1; } }
.ct-nombre-in { height: 36px; text-align: center; font-size: 15px; font-weight: 600; width: 240px; max-width: 100%; }
.ct-ident { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: var(--ink-2); max-width: 100%; }
.ct-ident span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-cab-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ct-cab-acc .o-btn.sm { height: 30px; }
.ct-estado { margin-top: 8px; }
.ct-estado .o-insignia { font-weight: 500; }

/* etapa, asignado, etiquetas */
.ct-props { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px 16px; border-bottom: 1px solid var(--line-2); }
.ct-prop { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 38px; }
.ct-prop-et { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3t); white-space: nowrap; overflow: hidden; }
.ct-prop-et .o-ico { color: var(--ink-3); }
.ct-prop-val { min-width: 0; }
.ct-sel { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 32px; padding: 4px 8px; margin-left: -8px; border-radius: var(--radio-s); font-size: 14px; color: var(--ink); transition: background .12s; }
.ct-sel:hover, .ct-sel[aria-expanded="true"] { background: var(--olivo-50); }
.ct-sel > span:not(.o-av):not(.ct-sin-av) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-sel .ct-chev { color: var(--ink-3); flex: none; }
.ct-sin-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #C9C5B3; color: var(--ink-3); flex: none; }
.ct-pronto { font-size: 13px; }
.ct-prop-etq { align-items: start; }
.ct-prop-etq .ct-prop-et { min-height: 34px; }
.ct-etqs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; }
.ct-etq { padding-right: 3px; height: 26px; }
.ct-etq-x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-3); flex: none; }
.ct-etq-x:hover { background: var(--line-2); color: var(--ink); }
.ct-etq-mas { display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; justify-content: center; padding: 0 8px; border-radius: 99px; border: 1px dashed #CFCAB6; font-size: 12px; font-weight: 500; color: var(--ink-2); transition: background .12s; }
.ct-etq-mas:hover, .ct-etq-mas[aria-expanded="true"] { background: var(--olivo-50); border-style: solid; border-color: #D6DBC2; }

/* secciones plegables */
.ct-sec { border-bottom: 1px solid var(--line-2); }
.ct-sec-cab { display: flex; align-items: center; gap: 8px; padding: 8px 14px 2px 10px; min-height: 42px; }
.ct-sec-tit { flex: 1; display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3t); border-radius: 6px; }
.ct-sec-tit:hover { color: var(--ink-2); }
.ct-sec-tit .o-ico { color: var(--ink-3); transition: transform .15s; }
.ct-sec.cerrada .ct-sec-tit .o-ico { transform: rotate(-90deg); }
.ct-sec.cerrada .ct-sec-cuerpo { display: none; }
.ct-sec-cuerpo { padding: 2px 14px 16px 16px; }
.ct-guardado { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3t); transition: opacity .4s; white-space: nowrap; }
.ct-guardado .o-cargando { width: 12px; height: 12px; }
.ct-guardado.ok { color: var(--ok); }
.ct-guardado.error { color: var(--rojo); }
.ct-guardado.fuera { opacity: 0; }
.ct-reintentar { color: var(--olivo); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; margin-left: 2px; }

/* ficha */
.ct-campos { display: flex; flex-direction: column; gap: 1px; }
.ct-campo { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 36px; }
.ct-campo-et { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3t); white-space: nowrap; overflow: hidden; }
.ct-campo-et .o-ico { color: var(--ink-3); }
.ct-in { display: block; width: 100%; min-width: 0; height: 32px; padding: 0 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14px; transition: border-color .12s, background .12s, box-shadow .12s; }
.ct-campo .ct-in { width: calc(100% + 8px); }
.ct-in:hover { background: var(--hover); border-color: var(--line-2); }
.ct-in:focus { background: var(--panel); border-color: var(--olivo); box-shadow: var(--foco); outline: none; }
.ct-in::placeholder { color: var(--ink-3t); } /* en la ficha el placeholder es la única pista del campo: --ink-3t (5.2:1 sobre blanco, AA); --ink-3 daba 3.2:1 */
.ct-in.error, .ct-campo.error .ct-in { border-color: #E3B9AE; background: var(--rojo-50); }
select.ct-in { appearance: none; -webkit-appearance: none; padding: 0 6px; cursor: pointer; background-repeat: no-repeat; background-position: right 4px center; }
select.ct-in:hover, select.ct-in:focus { padding-right: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E9182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select.ct-in:invalid, select.ct-in option[value=""] { color: var(--ink-3t); }
.ct-cumple { display: grid; grid-template-columns: 50px minmax(0, 1fr) 54px; gap: 2px; margin-left: -8px; }
.ct-cumple .ct-in { margin-left: 0; text-align: left; }
.ct-campo-error { font-size: 12px; color: var(--rojo); margin: 4px 0 2px; line-height: 1.4; }
.ct-bloque { display: block; margin-top: 14px; }
.ct-bloque-et { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3t); margin-bottom: 6px; }
.ct-bloque-et .o-ico { color: var(--ink-3); }
.ct-bloque-et small { margin-left: auto; font-size: 12px; color: var(--ink-3t); }
textarea.ct-notas { height: auto; min-height: 72px; margin-left: 0; padding: 8px 10px; resize: none; line-height: 1.45; border-color: var(--line); background: var(--panel); overflow-y: auto; }
textarea.ct-notas:hover { background: var(--panel); border-color: #D9D4C1; }
.ct-contador { display: block; text-align: right; font-size: 12px; color: var(--ink-3t); margin-top: 3px; min-height: 0; }
.ct-contador:empty { display: none; }
.ct-cp { display: flex; flex-direction: column; gap: 4px; }
.ct-cp:empty { display: none; }
.ct-cp-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 4px; align-items: center; }
.ct-cp-fila .ct-in { margin-left: 0; border-color: var(--line-2); background: var(--panel); }
.ct-cp-fila .ct-in.ct-cp-k { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.ct-cp-fila .ct-in:hover { border-color: var(--line); }
.ct-cp-fila .ct-in:focus { border-color: var(--olivo); }
.ct-cp-x { color: var(--ink-3); }
.ct-cp-mas { margin: 6px 0 0 -8px; color: var(--olivo); }
.ct-cp-mas:hover:not(:disabled) { color: var(--verde); }
.ct-cp-ayuda { font-size: 12px; color: var(--ink-3t); margin-top: 2px; }
.ct-suave-caja { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radio-s); background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.ct-suave-caja > span { flex: 1; min-width: 160px; }
.ct-suave-caja .o-ico { margin-top: 1px; color: var(--ink-3); }
.ct-suave-caja.error { background: var(--rojo-50); border-color: #EED3CB; color: #7A3324; }
.ct-suave-caja.error .o-ico { color: var(--rojo); }
.ct-cargando .o-esq-caja.texto { padding: 4px 0; }

/* conversación */
.ct-datos { display: flex; flex-direction: column; }
.ct-dato { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; line-height: 1.4; }
.ct-dato dt { color: var(--ink-3t); font-size: 13px; }
.ct-dato dd { color: var(--ink); overflow-wrap: anywhere; }
.ct-cuenta { display: inline-flex; align-items: center; gap: 6px; }
.ct-esq-dato { display: inline-block; width: 70%; height: 11px; vertical-align: middle; }
.ct-nota-vieja { margin-top: 10px; padding: 9px 11px; border-radius: var(--radio-s); background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; }
.ct-nota-vieja span { display: flex; align-items: center; gap: 6px; color: var(--ink-3t); font-size: 12px; margin-bottom: 4px; }
.ct-nota-vieja p { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* selector de etiquetas (varias a la vez) */
.o-menu.ct-etq-pop { width: 264px; padding: 0; display: flex; flex-direction: column; max-height: min(70vh, 430px); overflow: hidden; }
.ct-etq-busca { padding: 8px; border-bottom: 1px solid var(--line-2); flex: none; }
.ct-etq-busca .o-input { height: 34px; font-size: 14px; }
.ct-etq-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 5px; }
.ct-etq-op { gap: 9px; }
.ct-caja { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #CFCAB6; color: transparent; flex: none; transition: background .1s, border-color .1s; }
.ct-etq-op[aria-selected="true"] .ct-caja { background: var(--olivo); border-color: var(--olivo); color: #fff; }
.o-menu-item .ct-caja .o-ico { color: inherit; }
.ct-etq-op[aria-selected="true"] .o-menu-txt { font-weight: 500; }
.ct-etq-crear .o-ico { color: var(--olivo); }
.ct-etq-crear .o-menu-txt { color: var(--olivo); font-weight: 500; }
.ct-etq-ayuda { padding: 10px 10px 8px; font-size: 13px; color: var(--ink-3t); line-height: 1.45; }
.ct-etq-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line-2); flex: none; }
.ct-etq-cuenta { font-size: 12px; color: var(--ink-3t); }
.o-menu.hoja.ct-etq-pop { width: auto; max-height: 82vh; max-height: 82dvh; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.o-menu.hoja .ct-etq-op { min-height: 48px; font-size: 15px; }

/* ---------------- panel derecho: Actividad ---------------- */
.ct-act { min-height: 100%; }
.ct-act-barra { position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 12px 16px 6px; }
.ct-act-seg { display: flex; width: 100%; }
.ct-act-seg button { flex: 1; padding: 0 6px; }
.ct-act-esq .o-esq-fila { padding: 10px 16px; }
.ct-act-esq .o-esq-av { width: 28px; height: 28px; }
.ct-dia { font-size: 12px; font-weight: 600; color: var(--ink-3t); padding: 14px 16px 6px; }
.ct-evs { padding: 0 16px; }
.ct-ev { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 5px 0 9px; }
.ct-ev::before { content: ''; position: absolute; left: 13.5px; top: 33px; bottom: -4px; width: 1px; background: var(--line); }
.ct-ev:last-child::before { display: none; }
.ct-ev-ico { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olivo-50); color: var(--olivo); box-shadow: 0 0 0 3px var(--panel); }
.ct-ev-ico.t-etapa { background: var(--arena-50); color: var(--arena-t); }
.ct-ev-ico.t-asignada { background: #E8EEF2; color: #3D5A70; }
.ct-ev-ico.t-etiquetas { background: #EFE6EE; color: #664664; }
.ct-ev-ico.t-cerrada { background: var(--olivo-100); color: var(--verde); }
.ct-ev-ico.t-reabierta, .ct-ev-ico.t-pospuesta { background: var(--cobre-50); color: var(--cobre-t); }
.ct-ev-ico.t-ficha, .ct-ev-ico.t-creada { background: var(--line-2); color: var(--ink-2); }
.ct-ev-ico.t-auto { background: var(--olivo-50); color: var(--olivo); }
.ct-ev-ico.t-error { background: var(--rojo-50); color: var(--rojo); }
.ct-ev-ico.t-com { background: var(--arena-50); color: var(--arena-t); }
.ct-ev-txt { min-width: 0; padding-top: 4px; }
.ct-ev-txt p { font-size: 13px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ct-ev-txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3t); }
.ct-ev-nota { margin: 6px 0 2px; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--arena-50); border: 1px solid #F0DCBC; font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------------- vista Contactos ---------------- */
/* absoluta dentro de #principal: así su alto no empuja al armazón (en celular .o-centro es columna sin min-height:0) */
.ct-vista { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.ct-vcab .o-btn.sm { height: 32px; }
.ct-total { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--line-2); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.ct-total:empty { display: none; }
.ct-solo-movil { display: none; }
.ct-barra { flex: none; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ct-busca { flex: 0 1 320px; min-width: 220px; }
.ct-busca .o-input { height: 34px; font-size: 14px; }
.ct-busca input::-webkit-search-cancel-button { cursor: pointer; }
.ct-filtros { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-filtros-esp { flex: 1; }
.ct-filtro { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.ct-filtro:hover, .ct-filtro[aria-expanded="true"] { background: var(--olivo-50); border-color: #DAD6C3; }
.ct-filtro .o-ico { color: var(--ink-3); }
.ct-filtro.on { background: var(--olivo-50); border-color: #CDD4B2; color: var(--verde); }
.ct-filtro.on > span:not(.o-canal) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ct-filtro .o-canal { width: 14px; height: 14px; }
.ct-orden { border-color: transparent; color: var(--ink-2); padding-left: 8px; }
.ct-limpiar { height: 32px; padding: 0 6px; font-size: 13px; font-weight: 500; color: var(--olivo); border-radius: 6px; }
.ct-limpiar:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 2px; }

/* barra de acciones en lote */
.ct-lote { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 50px; padding: 8px 16px; background: var(--olivo-50); border-bottom: 1px solid #DCE1C8; animation: ct-lote .15s ease-out; }
@keyframes ct-lote { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ct-lote-n { font-size: 14px; color: #3B4524; margin-right: 6px; white-space: nowrap; }
.ct-lote-n b { font-weight: 600; color: var(--verde); font-variant-numeric: tabular-nums; }
.ct-lote-acc { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-lote .o-btn.sec { background: var(--panel); border-color: #D6DBC2; }
.ct-lote .o-btn.sec:hover:not(:disabled) { background: #FBFCF7; }
.ct-lote-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #3B4524; }

/* tabla */
.ct-cuerpo { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.ct-tabla-caja { flex: 1; min-height: 0; overflow: auto; }
.ct-tabla { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ct-tabla.sin-info { min-width: 880px; }
.ct-tabla th { position: sticky; top: 0; z-index: 2; height: 40px; padding: 0 12px; background: #FAF9F4; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ct-tabla td { height: 56px; padding: 6px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; background: var(--panel); }
.ct-tabla tbody tr { cursor: pointer; }
.ct-tabla tbody tr:hover td { background: var(--hover); }
.ct-tabla tbody tr.sel td { background: var(--olivo-50); }
.ct-tabla tbody tr.sel:hover td { background: #EBEEDF; }
.ct-tabla tbody tr:focus { outline: none; }
.ct-tabla tbody tr:focus-visible td { box-shadow: inset 0 2px 0 var(--olivo), inset 0 -2px 0 var(--olivo); }
.ct-tabla tbody tr:focus-visible td:first-child { box-shadow: inset 2px 2px 0 var(--olivo), inset 0 -2px 0 var(--olivo); }
.ct-tabla .ct-c-sel { width: 46px; padding: 0 4px 0 18px; }
.ct-tabla th.ct-c-sel { z-index: 4; }
/* las dos primeras columnas se quedan fijas al deslizar a los lados */
.ct-tabla .ct-c-sel, .ct-tabla .ct-c-nombre { position: sticky; left: 0; z-index: 1; }
.ct-tabla .ct-c-nombre { left: 46px; min-width: 240px; max-width: 300px; box-shadow: 1px 0 0 var(--line-2); }
.ct-tabla th.ct-c-sel, .ct-tabla th.ct-c-nombre { z-index: 3; }
.ct-th-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; margin-left: -6px; padding: 0 6px; border-radius: 6px; font: inherit; color: inherit; }
.ct-th-btn:hover { background: var(--olivo-50); color: var(--ink); }
.ct-th-btn.on { color: var(--verde); }
.ct-th-btn .ct-th-ico { color: var(--ink-3); opacity: 0; transition: opacity .12s; }
.ct-th-btn:hover .ct-th-ico, .ct-th-btn:focus-visible .ct-th-ico { opacity: 1; }
.ct-persona { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ct-persona-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ct-persona-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ct-persona-l1 b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ct-persona-txt small { font-size: 12px; color: var(--ink-3t); overflow: hidden; text-overflow: ellipsis; }
.ct-persona .o-num { flex: none; }
.ct-est { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--line-2); color: var(--ink-2); }
.ct-est.pospuestas { background: var(--cobre-50); color: var(--cobre-t); }
.ct-est.archivadas { background: var(--bg); color: var(--ink-3t); border: 1px solid var(--line); }
.ct-canal-celda { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ct-etq-celda { display: inline-flex; align-items: center; gap: 4px; max-width: 260px; }
.ct-etq-celda .o-chip { max-width: 120px; }
.ct-mas-n { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.ct-asig { display: inline-flex; align-items: center; gap: 7px; max-width: 180px; color: var(--ink); }
.ct-asig span:not(.o-av) { overflow: hidden; text-overflow: ellipsis; }
.ct-ultimo { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ct-dir { color: var(--ink-3); }
.ct-dir.in { color: var(--cobre); }
.ct-c-tel { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ct-c-correo { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ct-mas { display: flex; justify-content: center; padding: 18px 16px 24px; }
.ct-esq { padding: 6px 0; }
.ct-esq .o-esq-tabla { grid-template-columns: 2.2fr 1fr 1fr .8fr; }

/* tarjetas (celular) */
.ct-tarjetas { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; overscroll-behavior: contain; }
.ct-tj { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ct-tj:active { background: var(--hover); }
.ct-tj.sel { background: var(--olivo-50); }
.ct-tj:focus { outline: none; }
.ct-tj:focus-visible { box-shadow: inset 0 0 0 2px var(--olivo); }
.ct-tj .o-av { margin-top: 1px; }
.ct-tj-check { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 11px; border-radius: 6px; border: 1.5px solid #CFCAB6; color: #fff; flex: none; background: var(--panel); }
.ct-tj.sel .ct-tj-check, .ct-tj-check.on, .ct-tj-check.medio { background: var(--olivo); border-color: var(--olivo); }
.ct-lote-todos { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 0; font-size: 14px; color: #3B4524; white-space: nowrap; flex: none; }
.ct-lote-todos .ct-tj-check { margin-top: 0; }
.ct-tj-check.medio::after { content: ''; width: 10px; height: 2px; border-radius: 1px; background: #fff; }
.ct-lote-todos b { font-weight: 600; color: var(--verde); }
.ct-tj-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-tj-l1 { display: flex; align-items: baseline; gap: 8px; }
.ct-tj-l1 b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-tj-l1 time { flex: none; font-size: 12px; color: var(--ink-3t); }
.ct-tj-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.ct-tj-l2 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-tj-l2 .o-num { margin-left: auto; }
.ct-tj-l3 { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.ct-tj-l3 .ct-asig { margin-left: auto; }

/* ---------------- tablet ---------------- */
@media (max-width: 1099px) {
  .ct-busca { flex: 1 1 100%; }
}

/* ---------------- celular ---------------- */
@media (max-width: 759px) {
  .ct-solo-movil { display: inline-flex; }
  .ct-sin-movil { display: none; }
  .ct-vcab [data-v="exportar"] { width: 36px; padding: 0; }
  .ct-barra { padding: 10px 12px 8px; gap: 8px; }
  .ct-busca { flex: 1 1 100%; min-width: 0; }
  .ct-busca .o-input { height: 42px; font-size: 16px; }
  .ct-filtros { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .ct-filtros::-webkit-scrollbar { display: none; }
  .ct-filtro { height: 36px; flex: none; }
  .ct-limpiar { flex: none; height: 36px; }
  .ct-lote { order: 5; border-bottom: 0; border-top: 1px solid #DCE1C8; padding: 8px 12px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; animation: none; }
  .ct-lote::-webkit-scrollbar { display: none; }
  .ct-lote-n { font-size: 13px; }
  .ct-lote-acc { flex-wrap: nowrap; }
  .ct-lote-acc .o-btn { height: 38px; flex: none; }
  .ct-lote-acc .o-btn span { display: none; }
  .ct-lote-acc .o-btn { width: 40px; padding: 0; }
  .ct-lote .o-esp { flex: 1; }
  .ct-vista.modo-sel .ct-tj-l3 .ct-asig { margin-left: 0; }

  /* panel del contacto como hoja: más aire para tocar */
  .ct-prop { grid-template-columns: 104px minmax(0, 1fr); min-height: 46px; }
  .ct-sel { min-height: 40px; font-size: 15px; }
  .ct-campo { grid-template-columns: 104px minmax(0, 1fr); min-height: 46px; }
  .ct-in { height: 44px; font-size: 16px; }
  .ct-cumple { grid-template-columns: 62px minmax(0, 1fr) 70px; }
  .ct-etq { height: 30px; }
  .ct-etq-x { width: 24px; height: 24px; }
  .ct-etq-mas { height: 30px; min-width: 30px; }
  .ct-cp-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 40px; }
  .ct-dato { grid-template-columns: 132px minmax(0, 1fr); font-size: 14px; }
  .ct-ev-txt p, .ct-ev-nota { font-size: 14px; }
  .ct-nombre { font-size: 19px; }
  .ct-nombre-in { font-size: 16px; }
}

/* ---------------- con el dedo (celular, tablet o cualquier pantalla táctil) ----------------
   oasis.css ya da 44 px y letra de 16 px a los campos con (pointer: coarse) y agranda el área de .ct-etq-x y .ct-th-btn.
   Aquí solo se acomoda la ficha a esos campos más altos (en una tablet táctil antes se quedaba con el diseño de escritorio). */
@media (pointer: coarse) {
  .ct-campo, .ct-prop { min-height: 46px; }
  .ct-cumple { grid-template-columns: 62px minmax(0, 1fr) 70px; }
  .ct-cp-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 40px; }
  .ct-etq { height: 30px; }
}
