Assuming specificity is exactly the same, order does matter. Styles declared later win. Within a single stylesheet. Say we have some HTML like ...
There is a defined cascade in which the styles are sorted and applied. When declarations have the same importance (weight), origin and ...
Order within a file only matters if the same property is set in two matching selectors of equal specificity. This can extend to separate CSS files if the two matching ...
CSS rules are applied in order if they have the same specificity. In your case, they do, so order matters. With the order you have in your question, ...
The order of elements matters when we have conflicting CSS
CSS Order Matters. In CSS, the order in which we specify our rules matters. If a rule from the same style sheet, with the same level of ...
The Cascading Order helps us determine how styles will be overridden
What I would suggest is to use the "Inspect element" option in your browser to take a look at the styles applied to the uncoloured rows and see ...
A complete guide for your CSS styling order.
No matter the order, text will be green because that rule is most specific.