XML 41 R27.htm IDEA: XBRL DOCUMENT v3.21.2
Summary of Significant Accounting Policies - Summary of Changes in Accumulated Other Comprehensive Income (Loss) net of tax (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2021
May 31, 2020
May 31, 2019
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance $ 725,177 $ 637,899 $ 560,175
Other comprehensive income (loss) 8,334 (8,069) (1,894)
Ending Balance 840,377 725,177 637,899
Foreign Currency Translation Adjustments      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance (20,135) (11,640)  
Other comprehensive income (loss) 8,602 (8,495)  
Ending Balance (11,533) (20,135) (11,640)
Unrealized Gain on Marketable Securities      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance 426    
Other comprehensive income (loss) (268) 426  
Ending Balance 158 426  
Total AOCI      
Accumulated Other Comprehensive Income (Loss) [Line Items]      
Beginning Balance (19,709) (11,640)  
Other comprehensive income (loss) 8,334 (8,069) (1,894)
Ending Balance $ (11,375) $ (19,709) $ (11,640)