STOCK-BASED COMPENSATION PLANS (Yearly Activity of Stock Purchase Plan) (Details) - $ / shares |
12 Months Ended | ||
|---|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
Aug. 31, 2024 |
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | |||
| Shares available for future issuance (in shares) | 2,256,311 | ||
| Employee stock purchase plan | |||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | |||
| Shares subscribed (in shares) | 234,157 | 235,065 | 259,500 |
| Price per share (in dollars per share) | $ 59.64 | $ 42.97 | $ 42.16 |
| Shares purchased (in shares) | 181,129 | 222,154 | 238,850 |
| Price per share (in dollars per share) | $ 41.05 | $ 42.23 | $ 41.31 |
| Shares available for future issuance (in shares) | 1,033,871 | ||
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of shares authorized for issuance under share-based payment arrangement. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Price of a single share of a number of saleable stocks of a company. No definition available.
|
| X | ||||||||||
- Definition Per share or per unit amount of equity securities issued. No definition available.
|
| X | ||||||||||
- Definition Number of shares issued during the period as a result of an employee stock purchase plan. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|