Styling is applied as the style sheets are processed, hence the name CSS (“Cascading Style Sheets”). New rules overide previous ones.
You can see how they are applied by right clicking on an element in the browser and choosing Inspect.
The Elements tab will then show all the rules which apply to the element. If a rule is replaced by a later rule, you will see it crossed out in the Styles sub tab.
You may need to apply your rule rule to each table.