LEASES - Schedule of Lease Cost and Other Information Related to Leases (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
Aug. 31, 2025 |
|
| Leases [Abstract] | |||||
| Operating lease costs | $ 8,084 | $ 7,974 | $ 24,269 | $ 23,152 | |
| Variable lease costs | $ 4,624 | $ 4,031 | $ 13,814 | 13,696 | |
| Weighted average remaining lease term (in years) | 6 years 2 months 12 days | 6 years 2 months 12 days | 6 years 1 month 6 days | ||
| Weighted average discount rate (IBR) | 4.80% | 4.80% | 4.70% | ||
| Cash paid for amounts included in the measurement of lease liabilities | $ 29,807 | 30,218 | |||
| Lease ROU assets obtained in exchange for lease liabilities | 23,875 | 5,175 | |||
| Reductions to ROU assets resulting from reductions to lease liabilities | $ 0 | $ (5,528) | |||
| X | ||||||||||
- Definition Right-Of-Use Asset Decrease Due To Reduction In Operating Lease Liability No definition available.
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| 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 Weighted average discount rate for operating lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. 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/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of variable lease cost, excluded from lease liability, recognized when obligation for payment is incurred for finance and operating leases. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|