XML 62 R50.htm IDEA: XBRL DOCUMENT v3.8.0.1
Contingent Liabilities, Commitments and Legal Matters - Additional Information (Detail) - USD ($)
$ in Thousands
6 Months Ended
Jan. 31, 2018
Jul. 31, 2017
Commitments and Contingencies Disclosure [Abstract]    
Standby repurchase obligations amount $ 3,076,327 $ 2,200,544
Term of commitments Up to eighteen months  
Repurchase and guarantee reserve balances $ 8,550 $ 6,345