v3.25.2
Stockholders' Equity - Schedule of Total Stock-Based Compensation Costs Incurred and Associated Tax Benefit Recognized (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Stock-based compensation costs $ 91,661 $ 80,184 $ 71,142
Tax benefit (21,833) (15,053) (24,860)
Stock-based compensation costs, net of tax benefit 69,828 65,131 46,282
Cost of sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Stock-based compensation costs 8,945 7,563 6,465
Selling, general and administrative expenses      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Stock-based compensation costs 64,588 58,149 53,049
Research and development expenses      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Stock-based compensation costs $ 18,128 $ 14,472 $ 11,628