Derivative Instruments and Hedging Activities - Schedule of Non-Designated Derivative Gains (Losses) (Details) - Not Designated as Hedging Instruments - USD ($) $ in Thousands |
3 Months Ended | |
|---|---|---|
Sep. 30, 2023 |
Sep. 30, 2022 |
|
| Derivative Instruments and Hedging Activities Disclosures [Line Items] | ||
| Total | $ 2,573 | $ (1,433) |
| Foreign currency hedging instruments | Other Nonoperating Income (Expense) | ||
| Derivative Instruments and Hedging Activities Disclosures [Line Items] | ||
| Total | (15,073) | (20,522) |
| Other Foreign Exchange Contracts | Other Nonoperating Income (Expense) | ||
| Derivative Instruments and Hedging Activities Disclosures [Line Items] | ||
| Total | $ 17,646 | $ 19,089 |