Changing the distance between bar numbers and the staff/other objects
You can change the minimum distance between bar numbers and the staff, and set a separate value for the distance between bar numbers and other objects, in each layout independently. For example, you can position bar numbers further from the staff/other objects in full score layouts than in part layouts.
Procedure
Result
If you increase the values, bar numbers are positioned further away from the staff and/or other objects, either above or below the staff depending on your setting for Placement relative to staff. If you decrease the values, bar numbers are positioned closer to the staff and/or other objects.
These options affect the minimum distance between bar numbers and the staff and other objects, so bar numbers might be positioned further away than this to avoid collisions.