v3.25.2
Summary of Significant Accounting Policies - Additional Information (Detail)
3 Months Ended 12 Months Ended
Feb. 28, 2025
USD ($)
May 31, 2024
USD ($)
May 31, 2025
USD ($)
Segment
$ / shares
shares
May 31, 2024
USD ($)
$ / shares
shares
May 31, 2023
USD ($)
$ / shares
shares
Significant Accounting Policies [Line Items]          
Number of operating segments | Segment     2    
Allowance for credit losses related to marketable securities   $ 0 $ 0 $ 0  
Accounts receivable, net   173,005,000 $ 153,384,000 173,005,000 $ 153,253,000
Products and services, payment terms     30 to 90 days    
Depreciation expense     $ 25,566,000 21,771,000 17,292,000
Cost of goods and services sold     $ 473,285,000 $ 460,322,000 $ 416,492,000
Weighted-average fair value per share of stock options granted | $ / shares     $ 4.96 $ 5.98 $ 4.61
Cash held at foreign subsidiaries   68,276,000 $ 58,468,000 $ 68,276,000  
Shares excluded from calculation of diluted net (loss) income per share | shares     120,736 332,025 147,671
Operating Lease, Liability, Statement of Financial Position [Extensible List]     Operating lease liability    
Operating lease payments     $ 5,680,000 $ 4,714,000 $ 2,139,000
Right of use assets in exchange of lease liability     7,113,000 5,562,000 11,192,000
Goodwill and other long-lived asset impairment $ 2,055,000   $ 1,068,747,000 $ 0 $ 0
Weighted-Average Exercise Price, Exercised | $ / shares     $ 14.5 $ 13.61 $ 14.78
Contract liabilities   4,632,000 $ 5,558,000 $ 4,632,000 $ 4,616,000
Additions to deferred revenue     12,658,000 13,267,000  
Deferred revenue recognized     $ 11,732,000 13,251,000  
Number of days determined on fair value of assets and liabilities from the acquisition date     12 months    
Prepaid expenses and other current assets   56,025,000 $ 53,288,000 56,025,000  
Other non-current assets   20,426,000 35,229,000 20,426,000  
Property and equipment   417,392,000 494,562,000 417,392,000  
General and administrative expense     218,167,000 199,889,000 201,179,000
Foreign currency losses     3,697,000 5,184,000 5,322,000
Shipping and Handling          
Significant Accounting Policies [Line Items]          
Cost of goods and services sold     29,719,000 25,290,000 18,513,000
Advertising Cost          
Significant Accounting Policies [Line Items]          
Cost of goods and services sold     $ 4,123,000 $ 3,301,000 $ 2,548,000
Capitalized Cloud Computing Software          
Significant Accounting Policies [Line Items]          
Reclassification of capitalized cost   13,684,000      
Capitalized Cloud Computing Software | Prepaid Expenses and Other Current Assets          
Significant Accounting Policies [Line Items]          
Reclassification of capitalized cost   13,140,000      
Capitalized Cloud Computing Software | General and Administrative Expense          
Significant Accounting Policies [Line Items]          
Reclassification of capitalized cost   $ 544,000      
Customer One          
Significant Accounting Policies [Line Items]          
Account receivable percentage from major customer     10.00% 10.00%  
Minimum          
Significant Accounting Policies [Line Items]          
Marketable securities, maturity period     91 days    
Finite lived intangible assets, useful life     2 years    
Stock option vesting period     3 years    
Minimum | Buildings And Improvements          
Significant Accounting Policies [Line Items]          
Property, Plant and Equipment, Useful Life     7 years    
Minimum | Furniture, fixtures, computers and machinery and equipment          
Significant Accounting Policies [Line Items]          
Property, Plant and Equipment, Useful Life     3 years    
Maximum          
Significant Accounting Policies [Line Items]          
Marketable securities, maturity period     2 years    
Finite lived intangible assets, useful life     25 years    
Stock option vesting period     5 years    
Maximum | Buildings And Improvements          
Significant Accounting Policies [Line Items]          
Property, Plant and Equipment, Useful Life     39 years    
Maximum | Furniture, fixtures, computers and machinery and equipment          
Significant Accounting Policies [Line Items]          
Property, Plant and Equipment, Useful Life     10 years