XML 170 R136.htm IDEA: XBRL DOCUMENT v3.21.2
Financial Risk Management and Financial Instruments - Additional Information (Details)
$ in Thousands
12 Months Ended
May 31, 2021
USD ($)
May 31, 2020
USD ($)
May 31, 2019
USD ($)
Financial Risk Management And Financial Instruments [Line Items]      
Long-term debt, subject to fixed interest rates $ 20,358 $ 19,398  
Cash and cash equivalents 488,466 360,646  
Unrealized gain or loss due to change in foreign exchange rate $ (49,342) 451 $ 194
Hypothetical decrease in fair value of investments 10.00%    
Estimated decrease in fair values of investments upon hypothetical decrease of 10% in the prices $ 1,769    
Hypothetical increase in common stock 10.00%    
Estimated increase in fair values of warrant liability upon hypothetical increase of 10% in the price of common stock $ 9,800    
Allowance for doubtful accounts $ 4,571 $ 2,313  
Discount Rate      
Financial Risk Management And Financial Instruments [Line Items]      
Business combination, contingent consideration, liability, measurement input 0.05    
Level 3 [Member] | Discount Rate      
Financial Risk Management And Financial Instruments [Line Items]      
Business combination, contingent consideration, liability, measurement input 0.05