Annual report pursuant to Section 13 and 15(d)

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

v3.22.2.2
SEC Schedule, Article 12-09, Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2022
Aug. 31, 2021
Aug. 31, 2020
Aug. 31, 2019
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 $ (900) $ (4,900) $ (9,400)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (5,500) (9,100) (12,300)  
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 17,504 4,235 4,991 $ 5,141
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (14,277) (8) 682  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 0 (1)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (350) (845) (726)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment (658) 81 (105)  
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 61,630 66,155 70,414 $ 73,255
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense (925) (4,886) (9,383)  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (5,450) (9,145) (12,337)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment $ 0 $ 0 $ 113