styling changes to make invalid datetimes styling stick properly