v3.26.1
Employee Stock Plans - Additional Information (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Apr. 30, 2026
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Payments of tax withholdings on restricted stock $ 24,912 $ 18,704  
Shares repurchased during the period, value $ 24,912 $ 28,597  
Treasury Stock, Common      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Shares repurchased during the period (in shares) 0 145,770  
Shares repurchased during the period, value   $ 9,900  
ESPP      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Employees stock purchased (in shares) 67,843 63,001  
Employees stock purchased, price per share (in usd per share) $ 59.92 $ 66.00  
Shares available for future issuance (in shares) 1,300,000    
Market Based Restricted Stock      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Shares outstanding (in shares) 800,000    
Total unrecognized compensation cost related to non-vested awards $ 47,400    
Restricted Stock      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Shares outstanding (in shares) 1,951,000   1,884,000
Total unrecognized compensation cost related to non-vested awards $ 126,000    
Expected cost recognized over weighted-average period 2 years 9 months 18 days    
Shares repurchased during the period to pay for taxes (in shares) 330,514 254,047  
Payments of tax withholdings on restricted stock $ 24,900 $ 18,700