INCOME TAXES - Schedule of Total Deferred Tax Assets and Liabilities (Details) - USD ($) $ in Thousands |
Aug. 31, 2026 |
Aug. 31, 2025 |
|---|---|---|
| Income Tax Disclosure [Abstract] | ||
| Deferred tax assets | $ 74,550 | $ 61,226 |
| Deferred tax liabilities | (11,279) | (14,902) |
| Total deferred tax assets (liabilities), net | $ 63,271 | $ 46,324 |
| X | ||||||||||
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, with jurisdictional netting. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|