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 |
| 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
|