Strike a happy medium

To find a compromise position.

The manager always tries to strike a happy medium between being professional and being friendly to the staff.