XML 52 R44.htm IDEA: XBRL DOCUMENT v3.25.2
Interim Financial Statements - Additional Information (Detail)
3 Months Ended 9 Months Ended
Jan. 08, 2025
USD ($)
May 31, 2025
USD ($)
shares
May 31, 2024
shares
May 31, 2025
USD ($)
Segment
shares
May 31, 2024
USD ($)
shares
Equity Class Of Treasury Stock [Line Items]          
Number of reportable segments | Segment       2  
Authorized amount under stock repurchase program   $ 100,000,000   $ 100,000,000  
Remaining authorized repurchase amount $ 100,000,000 $ 78,200,000   $ 78,200,000  
Number of shares repurchased | shares   507,000 0 507,000 38,000
Number of shares repurchased amount   $ 21,800,000   $ 21,800,000 $ 1,300,000
Repurchase program expiration date Jan. 31, 2027     Jan. 31, 2025  
Manufacturing          
Equity Class Of Treasury Stock [Line Items]          
Number of reportable segments | Segment       1