DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Gain or Loss on Interest Rate Swaps and Cross-Currency Interest Rate Swap Agreements (Details) - Cash Flow Hedging - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
Aug. 31, 2024 |
|
| Derivative [Line Items] | |||
| Net Gain (Loss) | $ 8,241 | $ 6,561 | $ 7,138 |
| Interest expense on borrowings | |||
| Derivative [Line Items] | |||
| Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] | Interest Expense, Nonoperating | Interest Expense, Nonoperating | Interest Expense, Nonoperating |
| Net Gain (Loss) | $ 3,131 | $ 3,473 | $ 4,784 |
| Cost of swaps | |||
| Derivative [Line Items] | |||
| Net Gain (Loss) | $ 5,110 | $ 3,088 | $ 2,354 |