Annual report pursuant to Section 13 and 15(d)

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

v3.23.3
SEC Schedule, Article 12-09, Valuation and Qualifying Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2023
Aug. 31, 2022
Aug. 31, 2021
Aug. 31, 2020
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 $ 16,781 $ 17,504 $ 4,235 $ 4,991
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 1,177 14,277 8  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures (32) 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (2,230) (350) (845)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment 362 (658) 81  
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,432 61,630 66,155 $ 70,414
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 3,305 925 4,886  
Valuation Allowances And Reserves Reserves Of Businesses Acquired And Divestitures 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction (3,503) (5,450) (9,145)  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment $ 0 $ 0 $ 0