Inventories - Schedule of Inventories (Details) - USD ($) $ in Thousands |
Nov. 30, 2021 |
May 31, 2021 |
|---|---|---|
| Inventory Disclosure [Abstract] | ||
| Raw materials | $ 26,706 | $ 22,925 |
| Work in process | 6,673 | 8,022 |
| Finished goods | 14,804 | 17,667 |
| Inventories | $ 48,183 | $ 48,614 |