I'm not sure if it's possible to use custom CSS to target a particular part of the navbar (@sticky-night-20812 / @elegant-eve-85294 have you ever seen it done?)
This may not work for your particular data structure, but one way to keep a neat navbar is to use different views of data - IE in the below example I used different views of Contacts to have a dropdown nested under Contacts. (You do this via the "Duplicate view" button under Edit Layout. This is reliant on all the data for Contacts being in one table though.