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