PDF generation, navigation and CSS fixes