Stock-Based Compensation and Incentive Performance Plans - Schedule of Compensation Cost And Related Income Tax Benefits Recognized (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Related income tax benefit | $ 273 | $ 882 |
| Selling, General and Administrative Expense | ||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Stock-based compensation expense | 6,399 | 8,846 |
| Selling, General and Administrative Expense | Stock-Based Awards | ||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Stock-based compensation expense | 5,471 | 8,149 |
| Selling, General and Administrative Expense | Cash-Settled Awards | ||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Stock-based compensation expense | $ 928 | $ 697 |