v3.26.1
LEASES - Cash Flow and Other Information Related to Leases (Details) - USD ($)
$ in Thousands
9 Months Ended
May 31, 2026
May 31, 2025
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash outflows from operating leases $ 40,993 $ 35,997
Operating cash outflows from finance leases 6,773 5,668
Financing cash outflows from finance leases 35,391 30,010
Right-of-Use Assets Obtained in Exchange for Lease Obligations [Abstract]    
Operating leases 84,318 24,911
Finance leases $ 67,325 $ 38,442