Share-based compensation - Schedule of Share-Based Compensation Expense Recorded in Condensed Consolidated Statements of Operations and Comprehensive Income (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2023 |
Mar. 25, 2022 |
Mar. 31, 2023 |
Mar. 25, 2022 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 6,719 | $ 5,723 | $ 21,217 | $ 21,701 |
| Cost of revenue | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | 1,453 | 1,183 | 5,028 | 4,579 |
| Selling, general and administrative expense | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | 5,080 | 4,540 | 16,003 | 17,122 |
| Restructuring and other related costs | ||||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total share-based compensation expense | $ 186 | $ 0 | $ 186 | $ 0 |