Restructuring Program - Additional Information (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2026 |
Mar. 31, 2025 |
Mar. 31, 2026 |
Mar. 31, 2025 |
|
| Restructuring and Related Activities [Abstract] | ||||
| Restructuring charges recorded in productivity and transformation costs | $ 4,066 | $ 7,289 | $ 16,061 | $ 16,497 |
| Restructuring charges recorded in cost of sales | 726 | $ 379 | 6,009 | 1,613 |
| Restructuring charges recorded in long lived asset and intangibles impairment | $ 10 | $ 10 | $ 2,285 | |