Fixes for invoice pdf layout in offline mode