XML 57 R45.htm IDEA: XBRL DOCUMENT v3.8.0.1
Investments - Additional Information (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Jul. 31, 2017
Investment [Line Items]        
Sale (purchase) of Trading Securities $ 2,200 $ 13,800 $ 8,000  
Gains (losses) on Trading Securities 2,509 1,876 2,603  
Trading securities   0   $ 11,898
Cash        
Investment [Line Items]        
Gains (losses) on Trading Securities 400 4,600 900  
Non Cash        
Investment [Line Items]        
Gains (losses) on Trading Securities $ 2,200 $ (2,700) $ 1,700