Annual report pursuant to Section 13 and 15(d)

Employee Stock Plans - Additional Information (Detail)

v3.22.2
Employee Stock Plans - Additional Information (Detail) - USD ($)
12 Months Ended
Oct. 03, 2019
Apr. 30, 2022
Apr. 30, 2021
Apr. 30, 2020
Apr. 30, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Payments of tax withholdings on restricted stock   $ 18,532,000 $ 4,989,000 $ 8,993,000  
Shares repurchased during the period, value   $ 117,301,000 $ 35,376,000 $ 101,439,000  
Treasury Stock, Common          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Shares repurchased during the period   1,470,983 973,451 2,606,861  
Shares repurchased during the period, value   $ 98,800,000 $ 30,400,000 $ 92,400,000  
ESPP          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Shares available for future issuance   400,000      
Maximum number of shares reserved for issuance   3,000,000.0      
Authorized payroll deductions   15.00%      
Authorized payroll deductions, value   $ 25,000      
Employees stock purchased   103,826 188,608 220,161  
Employees stock purchased, average price per share   $ 66.64 $ 30.25 $ 34.90  
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   $ 9,300,000      
Restricted Stock          
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]          
Shares outstanding   1,980,000 2,370,000 1,365,000 1,460,000
Total unrecognized compensation cost related to non-vested awards   $ 51,900,000      
Expected cost recognized over weighted-average period   2 years 4 months 24 days      
Shares repurchased during the period to pay for taxes   271,794 172,749    
Payments of tax withholdings on restricted stock   $ 18,500,000 $ 5,000,000.0    
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