Consider the attached 2Pack
It creates a Style and applies it to Sales Order > Document Status
The style shows the docstatus field in Yellow for Drafted orders and green for the rest.
The style works when opening the window, and if you keep navigating to records with the same status as the first navigated when opening the window.
But just after you navigate to a different status, the style disappears.
Opened the Sales Order window in a Drafted order -> style yellow - perfect
Navigated to second record also Draft -> style still yellow - perfect
Navigated to third record In Progress status -> style disappears and after that it doesn't work anymore
Checked the style in chrome developer tool - after navigating to that record the style is stick to width, even if the program sets the style correctly - green or yellow - when rendering at the end the style that appears is something like "width: 249px;"
My guess is that something is overwriting the style after navigating a record, but I could not find the cause.