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 |
| X | ||||||||||
- Definition Cash Flow, Leases [Abstract] No definition available.
|
| X | ||||||||||
- Definition Right-of-Use Assets Obtained in Exchange for Lease Obligations [Abstract] No definition available.
|
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|