EARNINGS PER SHARE - Narrative (Details) - USD ($) $ / shares in Units, shares in Thousands |
3 Months Ended | 6 Months Ended | |||
|---|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
Jan. 31, 2022 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||||
| Additional number of shares authorized to be repurchase | $ 200,000,000 | ||||
| Remaining authorized repurchase amount | $ 173,514,000 | $ 173,514,000 | |||
| Number of shares repurchased (in shares) | 6,552 | ||||
| Average cost (USD per share) | $ 40.50 | ||||
| Shares repurchased value | $ 265,420,000 | ||||
| Restricted Stock | |||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||||
| Antidilutive securities excluded from computation of earnings per share (shares) | 372 | 316 | 453 | 158 | |
| Stock Based Awards | |||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||||
| Antidilutive securities excluded from computation of earnings per share (shares) | 401 | 76 | 286 | 76 | |