XML 14 R46.htm IDEA: XBRL DOCUMENT v3.20.1
LEASES - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2020
Jan. 31, 2020
Apr. 30, 2019
Apr. 30, 2020
Apr. 30, 2019
Lessee, Lease, Description [Line Items]          
Operating lease, cost $ 10,000     $ 28,900  
Operating leases, expense under topic 840     $ 9,400   $ 25,000
Impairment loss   $ 3,000   3,002 $ 0
Right-of-use asset, impairment loss   1,800      
Impairment of leasehold   $ 1,200      
Lease not yet commenced, undiscounted amount $ 3,500     $ 3,500  
Minimum          
Lessee, Lease, Description [Line Items]          
Remaining lease term       1 year  
Lease not yet commenced, term of contract 2 years     2 years  
Maximum          
Lessee, Lease, Description [Line Items]          
Remaining lease term       9 years  
Lease not yet commenced, term of contract 5 years     5 years