v3.25.2
Stockholders' Equity - Narrative (Details)
12 Months Ended
Nov. 12, 2024
shares
Nov. 14, 2023
shares
Nov. 03, 2022
shares
Oct. 29, 2014
vote
$ / shares
shares
May 31, 2025
USD ($)
period
working_hour
$ / shares
shares
May 31, 2024
USD ($)
$ / shares
shares
May 31, 2023
USD ($)
$ / shares
shares
Other Ownership Interests [Line Items]              
Authorized capital stock (shares)       80,000,000      
Shares of common stock (shares)       75,000,000 75,000,000 75,000,000  
Common stock, par value (usd per share) | $ / shares       $ 0.01 $ 0.01 $ 0.01  
Preferred stock, shares authorized (shares)       5,000,000 5,000,000 5,000,000  
Preferred stock, par value (usd per share) | $ / shares       $ 0.01 $ 0.01 $ 0.01  
Common stock, votes per share | vote       1      
Option grants in the period, weighted average grant date fair value (usd per share) | $ / shares         $ 3.75 $ 4.30 $ 9.27
Risk free interest rate         4.06% 3.96% 3.20%
Expected volatility rate         52.00% 49.00% 44.00%
Expected term         5 years 4 months 9 days 5 years 2 months 23 days 5 years 1 month 20 days
Expected dividend yield         0.00%    
The total intrinsic value of options exercised | $         $ 100,000 $ 0 $ 200,000
Compensation not yet recognized | $         3,200,000    
Proceeds from stock options exercised | $         200,000 0 300,000
Tax benefit | $         $ 2,200,000 $ 2,400,000 $ 2,600,000
Grants in the period, weighted average grant date fair value (usd per share) | $ / shares           $ 8.74 $ 19.99
Average price of share issued | $ / shares         $ 5.31 $ 5.68 $ 13.67
Period of recognition for costs not yet recognized (years)         2 years    
Employee Stock Option              
Other Ownership Interests [Line Items]              
Percentage of grants to employees vesting         25.00%    
Option grants to employees vesting period         4 years    
Tax benefit | $         $ 0 $ 0 $ 0
Period of recognition for costs not yet recognized (years)         4 years    
Restricted Stock Units              
Other Ownership Interests [Line Items]              
Grants in the period, weighted average grant date fair value (usd per share) | $ / shares         $ 7.47    
Employee service, compensation cost not yet recognized | $         $ 9,500,000    
Nonvested compensation (shares)         1,508,239 1,080,898  
Service period         4 years    
Period of recognition for costs not yet recognized (years)         3 years    
Nonvested compensation, weighted average grant date fair value (usd per share) | $ / shares         $ 9.34 $ 12.44  
Performance Share and Restricted Stock Unit Awards              
Other Ownership Interests [Line Items]              
Total fair value of restricted stock awards vesting | $         $ 3,700,000 $ 4,200,000 $ 5,600,000
Performance Shares              
Other Ownership Interests [Line Items]              
Compensation not yet recognized | $         $ 1,600,000    
Vesting period         3 years    
Performance period         3 years    
Period of recognition for costs not yet recognized (years)         1 year    
Nonvested compensation, weighted average grant date fair value (usd per share) | $ / shares         $ 8.29 $ 9.53 $ 23.71
2004 Stock and Incentive Award Plan              
Other Ownership Interests [Line Items]              
Total number of common stock available to be issued (shares)         4,000,000.0    
Stock Purchase Plan              
Other Ownership Interests [Line Items]              
Total number of common stock available to be issued (shares)         2,600,000    
Maximum number of shares to be offered         5,000,000    
Share purchase periods | period         2    
Duration of purchase of shares         6 months    
Employee eligible in participating in offering period         6 months    
Number of working hours to be eligible (working hour) | working_hour         20    
Number of working months to be eligible         5 months    
Employees ownership threshold         5.00%    
Percentage of fair market value of a share of common stock on the first day of the offering period         85.00%    
Percentage of fair market value of a share of common stock on the last day of the offering period         85.00%    
Maximum number of shares to be offered under the Stock Purchase Plan         256,024 282,237 149,778
Employee Stock Purchase Plan              
Other Ownership Interests [Line Items]              
Approved increase (in shares)   1,500,000 1,950,000        
Number of additional shares reserved for issuance (shares)     1,000,000        
2020 Stock And Incentive Award Plan              
Other Ownership Interests [Line Items]              
Number of additional shares reserved for issuance (shares) 3,200,000