Property, Plant and Equipment, Net - Additional Information (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2024 |
Dec. 31, 2023 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|
| Property, Plant and Equipment [Line Items] | ||||
| Depreciation | $ 8,038 | $ 8,352 | $ 15,948 | $ 18,178 |
| Gain on sale of long-lived assets | 1,700 | 1,700 | ||
| North America | ||||
| Property, Plant and Equipment [Line Items] | ||||
| Long-lived asset impairment | 17,986 | $ 20,666 | 17,986 | 20,666 |
| North America | ParmCrisps | ||||
| Property, Plant and Equipment [Line Items] | ||||
| Long-lived asset impairment | $ 2,254 | $ 2,254 | ||
| Bell CA Production Facility | North America | ||||
| Property, Plant and Equipment [Line Items] | ||||
| Long-lived asset impairment | $ 20,666 | |||