v3.26.3
Schedule II - Valuation and Qualifying Accounts and Reserves (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Allowances for doubtful accounts      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at Beginning of Year $ 81,712 $ 79,809 $ 76,627
Additions: Charged to Costs and Expenses 14,394 4,850 8,359
Deductions: Write-offs, Net of Recoveries (2,583) (2,947) (5,177)
Balance at End of Year 93,523 81,712 79,809
Valuation allowance for deferred tax assets      
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]      
Balance at Beginning of Year 205,637 166,590 182,466
Additions: Charged to Costs and Expenses 26,680 47,387 6,745
Deductions: Write-offs, Net of Recoveries (15,272) (8,340) (22,621)
Balance at End of Year $ 217,045 $ 205,637 $ 166,590