v3.26.1
LEASES - Cash Flow and Other Information Related to Leases (Details) - USD ($)
$ in Thousands
6 Months Ended
Feb. 28, 2026
Feb. 28, 2025
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash outflows from operating leases $ 25,847 $ 24,294
Operating cash outflows from finance leases 4,367 3,700
Financing cash outflows from finance leases 22,529 19,834
Right-of-Use Assets Obtained in Exchange for Lease Obligations [Abstract]    
Operating leases 80,551 21,710
Finance leases $ 48,746 $ 24,582