Annual report pursuant to Section 13 and 15(d)

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

v3.21.2
SEC Schedule, Article 12-09, Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2021
Aug. 31, 2020
Aug. 31, 2019
Aug. 31, 2018
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 $ (4,900) $ (9,400) $ (1,700)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (9,100) (12,300) (2,900)  
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,235 4,991 5,141 $ 4,958
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (8) (682) 1,114  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 (1) 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (845) (726) (833)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment 81 (105) (98)  
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 66,155 70,414 73,255 $ 32,426
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (4,886) (9,383) (43,693)  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (9,145) (12,337) (2,864)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment $ 0 $ 113 $ 0