/* Tabla Relación IAE-CNAE */
#iae-cnae-search {
  width: 100%; padding: 8px 12px;
  border: 1px solid #ccc; border-radius: 6px;
  margin-bottom: 8px; font-size: 0.9rem;
}
#iae-count-badge {
  display: inline-block; background: #0d6efd; color: #fff;
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.8rem; margin-bottom: 6px;
}
#iae-table-wrap {
  max-height: 520px; overflow-y: auto;
  border: 1px solid #dee2e6; border-radius: 6px;
}
#iae-tb-table { width: 100%; border-collapse: collapse; }
#iae-tb-table thead th {
  background: #1a2c4e; color: #fff;
  padding: 8px 10px; position: sticky; top: 0; z-index: 1;
  font-size: 0.82rem; white-space: nowrap;
}
#iae-tb-table tbody tr:nth-child(even) { background: #f8f9fa; }
#iae-tb-table tbody td {
  padding: 5px 8px; vertical-align: top;
  border-bottom: 1px solid #e9ecef; font-size: 0.85rem;
}
.iae-c { font-weight: 700; color: #c0392b; white-space: nowrap; }
.iae-i { color: #666; font-family: monospace; white-space: nowrap; }
.cnae-r { margin-bottom: 3px; }
.cnae-c {
  display: inline-block; background: #198754; color: #fff;
  padding: 1px 7px; border-radius: 12px;
  font-size: 0.78rem; font-weight: 700; margin-right: 5px;
}
#iae-pagination {
  padding: 6px 8px; background: #f8f9fa;
  border-top: 1px solid #dee2e6; font-size: 0.8rem;
}
#iae-pagination button {
  margin: 2px; padding: 3px 9px; cursor: pointer;
  border: 1px solid #dee2e6; border-radius: 4px; background: #fff;
}
#iae-pagination button.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
