XML 30 R54.htm IDEA: XBRL DOCUMENT v3.19.3
PROPERTY AND EQUIPMENT - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2019
Jul. 31, 2018
Property, Plant and Equipment [Line Items]    
Depreciation expense $ 22,058 $ 16,791
Proceeds associated with the sale of property and equipment 19 20,748
Gain associated with the sale of property (485) 12,692
Supply Chain    
Property, Plant and Equipment [Line Items]    
Impairment of long-lived assets 3,000  
Depreciation expense 5,600 6,800
Direct Marketing    
Property, Plant and Equipment [Line Items]    
Depreciation expense $ 16,400 $ 10,000