Annual report pursuant to Section 13 and 15(d)

SEC Schedule, Article 12-09, Valuation and Qualifying Accounts (Details)

v3.20.2
SEC Schedule, Article 12-09, Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2020
Aug. 31, 2019
Aug. 31, 2018
Aug. 31, 2017
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense $ (9,400) $ (1,700) $ (20,400)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (12,300) (2,900) (11,800)  
SEC Schedule, 12-09, Allowance, Credit Loss [Member]        
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Amount 4,991 5,141 4,958 $ 10,488
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (682) (1,114) (1,732)  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures (1) 0 76  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (726) (833) (3,571)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment (105) (98) (303)  
Valuation Allowance of Deferred Tax Assets        
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Amount 70,414 73,255 32,426 $ 16,758
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (9,383) (43,693) (27,504)  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (12,337) (2,864) (11,836)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment $ 113 $ 0 $ 0