/* Consulta de maestros. Usa solo variables de tokens.css. */
.erp-maestro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.erp-filtro { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
/* Controles: altura fija de 44px. Dentro de un .erp-campo (columna flex) el `flex: 1 1 240px` del
   control se interpretaba como ALTO; se anula para que no se estire nunca. */
.erp-campo > .erp-filtro-input, .erp-campo > .erp-textarea { flex: 0 0 auto; width: 100%; }
.erp-filtro-input {
  flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--cosigein-line); border-radius: 10px; background: #f9fbfd; color: var(--cosigein-ink);
}
.erp-btn--inline { width: auto; }
/* Tabla desplazable: scroll horizontal dentro de la tarjeta con sombras en los bordes que
   solo aparecen cuando hay contenido oculto (técnica de "scroll shadows"). */
.erp-table-wrap {
  overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--cosigein-card) 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--cosigein-card) 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 27, 45, 0.22), rgba(15, 27, 45, 0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 27, 45, 0.22), rgba(15, 27, 45, 0)) right center / 12px 100% no-repeat scroll;
  background-attachment: local, local, scroll, scroll;
}
@media (max-width: 900px) { .erp-table { min-width: 560px; } }
.erp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.erp-table th {
  text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cosigein-muted); border-bottom: 1px solid var(--cosigein-line); white-space: nowrap;
}
.erp-table td { padding: 12px; border-bottom: 1px solid var(--cosigein-line); color: var(--cosigein-ink); vertical-align: top; }
.erp-table tbody tr:hover { background: var(--cosigein-bg); }
.erp-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.erp-pill--ok { background: #e6f6ec; color: #15693a; }
.erp-pill--off { background: #eef1f5; color: var(--cosigein-muted); }
.erp-vacio { margin: 0; padding: 20px 4px; color: var(--cosigein-muted); font-size: 14px; }
.erp-paginacion { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--cosigein-muted); }
.erp-paginacion-enlaces { display: flex; gap: 16px; }
.erp-paginacion a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.erp-card-titulo { margin: 0 0 12px; font-size: 16px; }
.erp-datos { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px 24px; }
.erp-datos dt { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cosigein-muted); }
.erp-datos dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.erp-lista-rel { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Incidencias de migración */
.erp-pill--bloqueante { background: #fde8e8; color: #9b1c1c; }
.erp-pill--aviso { background: #fff4d6; color: #7a5200; }
.erp-resumen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.erp-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.erp-campo label { font-size: 12px; font-weight: 600; color: var(--cosigein-muted); }
.erp-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.erp-textarea { min-height: 96px; height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.erp-ayuda { margin: 0 0 10px; font-size: 13px; color: var(--cosigein-muted); }
.erp-form .erp-ayuda { margin: 0; }
.erp-error { margin: 0; font-size: 13px; font-weight: 600; color: #9b1c1c; }
.erp-error ul { margin: 0; padding-left: 18px; }
.erp-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
