/* Optimizo · contactos (V02). Solo estilos propios de esta sección; los colores salen de tokens.css.
   Los turnos van en etiquetas neutras: no son estados ni prioridades (corrección §12.5 del prompt). */
.ct-filtros { margin-bottom: 16px; }
.ct-filtros .control.buscar { flex: 0 1 440px; }
.ct-sel-turno { margin-left: auto; min-width: 220px; }
.ct-sel-turno select { flex: 1; }

/* tabla */
.ct-tabla td { padding: 10px 12px; }
.ct-tabla tr.pausado .ct-nombre, .ct-tabla tr.pausado .ct-ini { color: var(--opt-text-secondary); }
.ct-persona { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.ct-ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--opt-surface-inset); color: var(--opt-heading); font-weight: 700; font-size: var(--opt-text-sm); letter-spacing: 0.02em; }
.ct-nom { display: grid; gap: 2px; min-width: 0; }
.ct-nombre { text-align: left; font-weight: 600; font-size: var(--opt-text-body); color: var(--opt-heading); padding: 0; border-radius: 4px; }
.ct-nombre:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-nom small { color: var(--opt-text-secondary); font-size: var(--opt-text-xs); overflow-wrap: anywhere; }
.ct-turnos { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-turno { min-height: 26px; }
.ct-canales { display: flex; gap: 6px; }
.ct-canal { width: 32px; height: 32px; border-radius: var(--opt-radius-control); display: grid; place-items: center; background: var(--opt-surface-inset); color: var(--opt-heading); }
.ct-canal.off { background: none; border: 1px dashed var(--opt-border-strong); color: var(--opt-text-muted); }
.ct-recibe { display: grid; gap: 2px; font-size: var(--opt-text-sm); }
.ct-recibe small { color: var(--opt-text-secondary); }
.ct-mal { color: var(--opt-warning); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.ct-tenue { color: var(--opt-text-secondary); font-weight: 400; }
.ct-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--opt-border); color: var(--opt-text-secondary); font-size: var(--opt-text-sm); }
.ct-pie > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* cobertura y reglas */
.ct-fila { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ct-cob { list-style: none; padding: 0; display: grid; gap: 10px; }
.ct-cob li { padding: 12px 16px; border: 1px solid var(--opt-border); border-radius: var(--opt-radius-card); background: var(--opt-surface-raised); display: grid; gap: 8px; }
.ct-cob li.actual { border-color: var(--opt-accent-border); box-shadow: inset 3px 0 0 var(--opt-accent); }
.ct-cob-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-cob-t b { color: var(--opt-heading); font-size: var(--opt-text-md); }
.ct-cob-t small { color: var(--opt-text-secondary); font-size: var(--opt-text-sm); font-variant-numeric: tabular-nums; }
.ct-cob dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: var(--opt-text-sm); align-items: center; }
.ct-cob dt { color: var(--opt-text-secondary); }
.ct-cob dd { margin: 0; color: var(--opt-text); overflow-wrap: anywhere; }
.ct-nota { margin-top: 12px; display: flex; gap: 6px; align-items: flex-start; }
.ct-nota .ic { flex: none; margin-top: 2px; }
.ct-reglas { list-style: none; padding: 0; display: grid; gap: 10px; }
.ct-reglas li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--opt-border); border-radius: var(--opt-radius-card); background: var(--opt-surface-raised); }
.ct-reglas li.off { background: var(--opt-surface); }
.ct-r-ico { width: 40px; height: 40px; border-radius: var(--opt-radius-control); display: grid; place-items: center; flex: none; background: var(--opt-surface-inset); color: var(--opt-heading); }
.ct-r-ico .ic.alta { color: var(--opt-error); }
.ct-r-txt { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ct-r-txt b { color: var(--opt-heading); font-weight: 600; font-size: var(--opt-text-md); }
.ct-r-txt small { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: var(--opt-text-secondary); font-size: var(--opt-text-sm); }
.ct-r-txt small > span:not(.chip) { display: inline-flex; align-items: center; gap: 4px; }
.ct-r-txt small.ct-mal { color: var(--opt-warning); }

/* diálogo */
.ct-form { max-width: none; gap: 14px; }
.ct-campo { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ct-campo label { display: block; }
.ct-dup, .ct-info { display: flex; gap: 6px; align-items: flex-start; font-size: var(--opt-text-xs); color: var(--opt-warning); line-height: 1.4; }
.ct-info { color: var(--opt-text-secondary); }
.ct-dup .ic, .ct-info .ic { flex: none; margin-top: 1px; }
.ct-form fieldset.ct-grupo { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.ct-form fieldset.ct-grupo legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: var(--opt-text-sm); color: var(--opt-text); }
.ct-form legend small, .ct-opciones label small { font-weight: 400; color: var(--opt-text-secondary); }
.ct-opciones { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-opciones .pill { cursor: pointer; }
.ct-opciones .pill:has(input:checked) { background: var(--opt-accent-soft); border-color: var(--opt-accent-border); color: var(--opt-heading); }
.ct-sangria { padding-left: 27px; }
.ct-sangria.off { opacity: 0.55; }
.ct-err { margin-top: 16px; }
.ct-huecos { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--opt-warning); background: var(--opt-warning-soft); border-radius: var(--opt-radius-control); padding: 10px 12px; }
.ct-huecos .ic { flex: none; margin-top: 2px; }

@media (max-width: 1099px) {
  .ct-fila { grid-template-columns: minmax(0, 1fr); }
  .ct-sel-turno { margin-left: 0; }
}
#ct-n { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ct-leyenda { display: inline-flex; align-items: center; gap: 6px; font-size: var(--opt-text-xs); }
.ct-leyenda .ct-canal { width: 18px; height: 18px; border-radius: 5px; }
