Color A Row Of Doctype

Hello Everyone,
I have doctype “KRA” and this doctype have a child doctype “KRA Deatails” ,“KRA Deatails” have two fields “target” and “achievement” .
What i want is when achievement is grater then target the rows turn to be green and when achievement is less then target the rows turn to be red.
Please give me solution ,Thanks in advance.


Check for example this for clues? [Tutorial] Add Color to Cells in Query Report

But I Want to make it from client Side Custom Script (from Front Desk),Not By .Js and .py file.