Quarterly report pursuant to Section 13 or 15(d)

Employee Stock Plans - Additional Information (Detail)

v3.21.2
Employee Stock Plans - Additional Information (Detail) - USD ($)
3 Months Ended
Oct. 03, 2019
Jul. 31, 2021
Jul. 31, 2020
Apr. 30, 2021
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Payments of tax withholdings on restricted stock   $ 17,627,000 $ 4,442,000  
Shares repurchased during the period, value   $ 20,091,000 $ 4,442,000  
Treasury Stock, Common        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares repurchased during the period   37,696 0  
Shares repurchased during the period, value   $ 2,500,000    
ESPP        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares available for future issuance   500,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   55,025 129,047  
Employees stock purchased, price per share   $ 65.30 $ 26.12  
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   $ 12,400,000    
Restricted Stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares outstanding   2,081,000   2,370,000
Total unrecognized compensation cost related to non-vested awards   $ 71,300,000    
Expected cost recognized over weighted-average period   3 years    
Shares repurchased during the period to pay for taxes   259,078 161,027  
Payments of tax withholdings on restricted stock   $ 17,600,000 $ 4,400,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