STOCK-BASED COMPENSATION AND INCENTIVE PERFORMANCE PLANS - Compensation Cost And Related Income Tax Benefits Recognized (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Related income tax benefit | $ 552 | $ 434 | $ 954 | $ 707 |
| Selling, general and administrative expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | $ 3,435 | $ 4,156 | $ 7,429 | $ 8,443 |