How can I change the detail table button on the list page to red if the record count is zero?

Hi,

I would like to modify the detail table button(change the background colour to red) on the list page to change when the detailed record count is zero. Could you please advise on how to achieve this?

Best Regards, Anuradha