Ui-table and template - use CSS selectors

When working with ui-table, you can use a 'template' to define style parameters, e.g. to change the background color for a line when selecting it with the cursor:

<style>
	.tabulator-row.tabulator-selected {
		color: yellow !important;
	}
</style>

How can different situations be achieved for tables?

CSS selectors are generally defined for different situations and/or multiple tables.
I do not see this possibility in NR with ui-table/template. How do you proceed here?