XML 53 R40.htm IDEA: XBRL DOCUMENT v3.21.1
GOODWILL AND INTANGIBLE ASSETS Schedule of amortization expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2021
Apr. 30, 2020
Apr. 30, 2021
Apr. 30, 2020
Finite-Lived Intangible Assets [Line Items]        
Amortization of intangible assets $ 4,182 $ 6,531 $ 16,076 $ 20,719
Customer relationships        
Finite-Lived Intangible Assets [Line Items]        
Amortization of intangible assets 4,182 4,825 13,511 15,589
Trademarks and trade names        
Finite-Lived Intangible Assets [Line Items]        
Amortization of intangible assets $ 0 $ 1,706 $ 2,565 $ 5,130