Stock-Based Compensation and Incentive Performance Plans - Schedule of Compensation Cost And Related Income Tax Benefits Recognized (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2024 |
Dec. 31, 2023 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Related income tax benefit | $ 190 | $ 398 | $ 473 | $ 854 |
| Selling, General and Administrative Expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 3,845 | 3,376 | 6,721 | 7,118 |
| Selling, General and Administrative Expense | Stock-Based Awards | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 3,573 | 3,376 | 6,449 | 7,118 |
| Selling, General and Administrative Expense | Cash-Settled Awards | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | $ 272 | $ 0 | $ 272 | $ 0 |