/* Comunicación (ruta 'entradas') — solo lo que tokens.css y app.css no cubren */

/* Cabecera de filtros: buscador · desplegables · chips activos. */
.ent-filtros { display: flex; flex-direction: column; gap: 8px; }
.ent-barra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ent-busca {
  flex: 1 1 260px;
  min-width: 200px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.ent-busca::placeholder { color: var(--ink3); }
.ent-busca:focus { outline: 2px solid var(--blu); outline-offset: 1px; }

.ent-desplegables { display: flex; gap: 6px; flex-wrap: wrap; }
.ent-desp { position: relative; }
.ent-desp-b { display: inline-flex; align-items: center; gap: 6px; }
.ent-desp-b.on { border-color: var(--ink); color: var(--ink); }
.ent-desp-v { font-size: 9px; color: var(--ink3); }

.ent-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  max-width: 320px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(18, 24, 31, .12);
}

.ent-opcion {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink2);
  padding: 6px 8px;
  border-radius: 6px;
}
.ent-opcion:hover, .ent-opcion:focus { background: var(--bg); }
.ent-opcion:focus { outline: 2px solid var(--blu); outline-offset: -2px; }
.ent-opcion.on { color: var(--ink); font-weight: 600; }

.ent-casilla {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; color: #fff;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.ent-opcion.on .ent-casilla { background: var(--ink); border-color: var(--ink); }

.ent-op-txt { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-op-n { flex: 0 0 auto; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }

.ent-panel-pie {
  all: unset;
  display: block; width: 100%; box-sizing: border-box;
  cursor: pointer; text-align: left;
  font-size: 11px; color: var(--ink3);
  padding: 6px 8px; margin-top: 2px;
  border-top: 1px solid var(--line2);
}
.ent-panel-pie:hover, .ent-panel-pie:focus { color: var(--ink); }

.ent-activos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 20px; font-size: 11.5px; color: var(--ink3); }
.ent-chip-x { cursor: pointer; }
.ent-chip-x .x { color: var(--ink3); font-weight: 700; }
.ent-chip-x:hover .x { color: var(--ink); }

.ent-limpiar {
  all: unset;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--ink3);
  text-decoration: underline;
}
.ent-limpiar:hover, .ent-limpiar:focus { color: var(--ink); }

.ent-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ent-mas { font-size: 10.5px; font-weight: 600; color: var(--ink3); }

.ent-resumen { font-size: 12px; }

.ent-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .ent-cols { grid-template-columns: 1fr; } }

.ent-lista { max-height: 74vh; overflow-y: auto; }
.ent-lista .entry { cursor: pointer; }

.ent-detalle { max-height: 74vh; overflow-y: auto; }

.ent-cuerpo {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.ent-cita {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--line2);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.5;
}

.ent-comp { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.ent-comp:first-of-type { border-top: 0; }

.ent-acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
