Perspective Table, dataset help

Im looking for someone to help me craft some scripting to make my dataset table change a row/cell color to red if the 'Delivered" column has a timestamp and the “Quad_Scan” column has ‘Not Scanned’ in the row/cell.

I am using this Named query to get table data:

My Table looks like this:

Much thanks in advance for the help!

The whole row or just the one cell?

if you set your query to get json format
you can change the enter to have value and style. look at the table the first cell is orange, you can do the same for the whole row.
image

some script inspiration: