Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Total | Restricted stock units | Performance share units | Common Stock | Common Stock Restricted stock units | Common Stock Performance share units | Additional paid in capital | Additional paid in capital Restricted stock units | Additional paid in capital Performance share units | Accumulated deficit | Accumulated other comprehensive loss | Treasury Stock |
Beginning Balance (in shares) at May. 31, 2023 | | | | 39,981,422,000 | | | | | | | | |
Beginning Balance at May. 31, 2023 | $ 378,296 | | | $ 382 | | | $ 599,206 | | | $ (210,855) | $ (4,723) | $ (5,714) |
Beginning Balance, Treasury Stock (in shares) at May. 31, 2023 | | | | | | | | | | | | (370,000,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | 45,884 | | | | | | | | | 45,884 | | |
Issuance/Cancellation of performance share units and restricted stock units, net (in shares) | | | | | 386,031,000 | 87,377,000 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | $ (280) | $ (210) | | | | | $ (280) | $ (210) | | | |
Purchase of common stock under ESPP (in shares) | | | | 131,811,000 | | | | | | | | |
Purchases of common stock under ESPP | 900 | | | $ 1 | | | 899 | | | | | |
Stock-based compensation | 4,144 | | | | | | 4,144 | | | | | |
Other comprehensive loss, net of tax | (930) | | | | | | | | | | (930) | |
Ending Balance (in shares) at Aug. 31, 2023 | | | | 40,586,641,000 | | | | | | | | |
Ending Balance at Aug. 31, 2023 | 427,804 | | | $ 383 | | | 603,759 | | | (164,971) | (5,653) | $ (5,714) |
Ending Balance, Treasury Stock (in shares) at Aug. 31, 2023 | | | | | | | | | | | | (370,000,000) |
Beginning Balance (in shares) at May. 31, 2023 | | | | 39,981,422,000 | | | | | | | | |
Beginning Balance at May. 31, 2023 | 378,296 | | | $ 382 | | | 599,206 | | | (210,855) | (4,723) | $ (5,714) |
Beginning Balance, Treasury Stock (in shares) at May. 31, 2023 | | | | | | | | | | | | (370,000,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | 16,836 | | | | | | | | | | | |
Ending Balance (in shares) at Nov. 30, 2023 | | | | 40,594,406,000 | | | | | | | | |
Ending Balance at Nov. 30, 2023 | 401,226 | | | $ 383 | | | 605,284 | | | (194,019) | (4,708) | $ (5,714) |
Ending Balance, Treasury Stock (in shares) at Nov. 30, 2023 | | | | | | | | | | | | (370,000,000) |
Beginning Balance (in shares) at Aug. 31, 2023 | | | | 40,586,641,000 | | | | | | | | |
Beginning Balance at Aug. 31, 2023 | 427,804 | | | $ 383 | | | 603,759 | | | (164,971) | (5,653) | $ (5,714) |
Beginning Balance, Treasury Stock (in shares) at Aug. 31, 2023 | | | | | | | | | | | | (370,000,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | (29,048) | | | | | | | | | (29,048) | | |
Issuance/Cancellation of performance share units and restricted stock units, net (in shares) | | | | | 7,765,000 | | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | (16) | (336) | | | | | (16) | (336) | | | |
Stock-based compensation | 1,877 | | | | | | 1,877 | | | | | |
Other comprehensive loss, net of tax | 945 | | | | | | | | | | 945 | |
Ending Balance (in shares) at Nov. 30, 2023 | | | | 40,594,406,000 | | | | | | | | |
Ending Balance at Nov. 30, 2023 | 401,226 | | | $ 383 | | | 605,284 | | | (194,019) | (4,708) | $ (5,714) |
Ending Balance, Treasury Stock (in shares) at Nov. 30, 2023 | | | | | | | | | | | | (370,000,000) |
Beginning Balance (in shares) at May. 31, 2024 | | | | 40,801,597 | | | | | | | | |
Beginning Balance at May. 31, 2024 | $ 205,586 | | | $ 385 | | | 610,484 | | | (395,204) | (4,365) | $ (5,714) |
Beginning Balance, Treasury Stock (in shares) at May. 31, 2024 | (370,000) | | | | | | | | | | | (370,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | $ (12,798) | | | | | | | | | (12,798) | | |
Issuance/Cancellation of performance share units and restricted stock units, net (in shares) | | | | | 432,144 | 60,731 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | (321) | $ (347) | | | | | (321) | $ (347) | | | |
Purchase of common stock under ESPP (in shares) | | | | 151,918 | | | | | | | | |
Purchases of common stock under ESPP | 711 | | | $ 2 | | | 709 | | | | | |
Stock-based compensation | 3,205 | | | | | | 3,205 | | | | | |
Common stock repurchased (in shares) | | | | | | | | | | | | (72,141) |
Common stock repurchased | (552) | | | $ (1) | | | | | | | | $ (551) |
Other comprehensive loss, net of tax | 1,098 | | | | | | | | | | 1,098 | |
Ending Balance (in shares) at Aug. 31, 2024 | | | | 41,446,390 | | | | | | | | |
Ending Balance at Aug. 31, 2024 | 196,582 | | | $ 386 | | | 613,730 | | | (408,002) | (3,267) | $ (6,265) |
Ending Balance, Treasury Stock (in shares) at Aug. 31, 2024 | | | | | | | | | | | | (442,141) |
Beginning Balance (in shares) at May. 31, 2024 | | | | 40,801,597 | | | | | | | | |
Beginning Balance at May. 31, 2024 | $ 205,586 | | | $ 385 | | | 610,484 | | | (395,204) | (4,365) | $ (5,714) |
Beginning Balance, Treasury Stock (in shares) at May. 31, 2024 | (370,000) | | | | | | | | | | | (370,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | $ (23,536) | | | | | | | | | | | |
Ending Balance (in shares) at Nov. 30, 2024 | | | | 41,449,556 | | | | | | | | |
Ending Balance at Nov. 30, 2024 | $ 186,768 | | | $ 384 | | | 616,253 | | | (418,740) | (3,748) | $ (7,381) |
Ending Balance, Treasury Stock (in shares) at Nov. 30, 2024 | (613,847) | | | | | | | | | | | (613,847) |
Beginning Balance (in shares) at Aug. 31, 2024 | | | | 41,446,390 | | | | | | | | |
Beginning Balance at Aug. 31, 2024 | $ 196,582 | | | $ 386 | | | 613,730 | | | (408,002) | (3,267) | $ (6,265) |
Beginning Balance, Treasury Stock (in shares) at Aug. 31, 2024 | | | | | | | | | | | | (442,141) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | |
Net income (loss) | (10,738) | | | | | | | | | (10,738) | | |
Issuance/Cancellation of performance share units and restricted stock units, net (in shares) | | | | | 3,166 | | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | $ (5) | | | | | | $ (5) | | | | |
Stock-based compensation | 2,528 | | | | | | 2,528 | | | | | |
Common stock repurchased (in shares) | | | | | | | | | | | | (171,706) |
Common stock repurchased | (1,118) | | | $ (2) | | | | | | | | $ (1,116) |
Other comprehensive loss, net of tax | (481) | | | | | | | | | | (481) | |
Ending Balance (in shares) at Nov. 30, 2024 | | | | 41,449,556 | | | | | | | | |
Ending Balance at Nov. 30, 2024 | $ 186,768 | | | $ 384 | | | $ 616,253 | | | $ (418,740) | $ (3,748) | $ (7,381) |
Ending Balance, Treasury Stock (in shares) at Nov. 30, 2024 | (613,847) | | | | | | | | | | | (613,847) |