Quarterly report pursuant to Section 13 or 15(d)

Employee Stock Plans - Additional Information (Detail)

v3.22.2.2
Employee Stock Plans - Additional Information (Detail) - USD ($)
3 Months Ended
Oct. 03, 2019
Jul. 31, 2022
Jul. 31, 2021
Apr. 30, 2022
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Payments of tax withholdings on restricted stock   $ 21,870,000 $ 17,627,000  
Shares repurchased during the period, value   $ 44,276,000 $ 20,091,000  
Treasury Stock, Common        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares repurchased during the period   369,867 37,696  
Shares repurchased during the period, value   $ 22,400,000 $ 2,500,000  
ESPP        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares available for future issuance   400,000    
Authorized payroll deductions   15.00%    
Authorized payroll deductions, value   $ 25,000    
Maximum number of shares reserved for issuance   3,000,000.0    
Employees stock purchased   83,704 55,025  
Employees stock purchased, price per share   $ 52.22 $ 65.30  
ESPP | Minimum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Fair market price of common stock   85.00%    
ESPP | Maximum        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Fair market price of common stock   100.00%    
Time Based Restricted Stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   4 years    
Market Based Restricted Stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period   3 years    
Shares outstanding   400,000    
Total unrecognized compensation cost related to non-vested awards   $ 22,700,000    
Restricted Stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares outstanding   2,053,000   1,980,000
Total unrecognized compensation cost related to non-vested awards   $ 92,700,000    
Expected cost recognized over weighted-average period   3 years    
Shares repurchased during the period to pay for taxes   365,464 259,078  
Payments of tax withholdings on restricted stock   $ 21,900,000 $ 17,600,000  
Stock Incentive Plan        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Common stock available for stock-based awards 2,141,807      
Shares available for future issuance 3,600,000      
Vesting period 1 year