In fact you could easily combine the styling requirements by adding lineType as a cssClass and using .credit-allocation .unit or .credit-allocation .investigator?