You can enter custom CSS code for an invoice under Settings > Account settings > Print settings, and then under Customize print with CSS. More information on this topic can be found here.