STOCKHOLDERS’ EQUITY - Schedule of Share Repurchases (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
Aug. 31, 2024 |
|
| Equity [Abstract] | |||
| Repurchases of common stock under the share repurchase program (in shares) | 2,608,284 | 684,960 | 537,800 |
| Repurchases of common stock under the share repurchase program | $ 643,961 | $ 300,457 | $ 235,235 |
| Repurchases of common stock to satisfy tax withholding requirements due upon vesting of stock-based awards (in shares) | 26,347 | 35,791 | 37,589 |
| Repurchases of common stock to satisfy tax withholding requirements due upon vesting of stock-based awards | $ 6,936 | $ 16,242 | $ 16,659 |
| Excise tax on share repurchases | $ 6,100 | $ 3,000 | $ 1,700 |
| X | ||||||||||
- Definition Amount of decrease to equity for grantee's tax withholding obligation for award under share-based payment arrangement. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of excise tax on share purchased under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Number of shares used to settle grantee's tax withholding obligation for award under share-based payment arrangement. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and are being held in treasury. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|