EARNINGS PER SHARE - Schedule of Awards Excluded from Diluted EPS (Details) - shares shares in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
|
| Stock options and stock options with performance conditions | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 1,839 | 888 | 1,616 | 759 |
| Restricted stock units and performance share units | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 313 | 93 | 280 | 95 |