Income Taxes - Schedule of Net Income Taxes Paid (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Federal | $ 14,882 | ||
| State | 3,274 | ||
| Cash paid for income taxes | 208,129 | $ 166,849 | $ 97,295 |
| China | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 66,107 | ||
| Germany | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 28,368 | ||
| Switzerland | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 24,894 | ||
| Sweden | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 15,977 | ||
| Korea | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 13,656 | ||
| Malaysia | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 11,314 | ||
| Other foreign jurisdictions | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | $ 29,657 | ||