Stock-based compensation - Summary of Employee Service Share Based Compensation Allocation of Recognized Period Costs (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2025 |
Dec. 31, 2024 |
Dec. 31, 2025 |
Dec. 31, 2024 |
|
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total stock-based compensation expense | $ 33,855 | $ 26,980 | $ 87,818 | $ 78,766 |
| Cost of sales | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total stock-based compensation expense | 4,851 | 3,084 | 12,166 | 9,345 |
| Selling general and administrative expense | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total stock-based compensation expense | 25,075 | 21,482 | 67,606 | 62,186 |
| Research and development | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Total stock-based compensation expense | $ 3,929 | $ 2,414 | $ 8,046 | $ 7,235 |