Stock-Based Compensation and Incentive Performance Plans - Schedule of Compensation Cost And Related Income Tax Benefits Recognized (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2026 |
Mar. 31, 2025 |
Mar. 31, 2026 |
Mar. 31, 2025 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Related income tax benefit | $ 128 | $ 275 | $ 161 | $ 748 |
| Selling, General and Administrative Expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 1,506 | 3,264 | 4,887 | 9,985 |
| Selling, General and Administrative Expense | Stock-Based Awards | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | 1,138 | 2,973 | 4,192 | 9,422 |
| Selling, General and Administrative Expense | Cash-Settled Awards | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation expense | $ 368 | $ 291 | $ 695 | $ 563 |