Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Total | Restricted stock units | Performance share units | Common Stock | Common StockRestricted stock units | Common StockPerformance share units | Additional paid in capital | Additional paid in capitalRestricted stock units | Retained earnings | Accumulated other comprehensive loss | Treasury Stock |
Beginning Balance, Shares at May. 31, 2018 | | | | 37,594,493 | | | | | | | |
Beginning Balance at May. 31, 2018 | $ 542,595 | | | $ 370 | | | $ 543,762 | | $ 5,129 | $ (952) | $ (5,714) |
Beginning Balance,Treasury Shares at May. 31, 2018 | | | | | | | | | | | (370,000) |
Net income (loss) | (469) | | | | | | | | (469) | | |
Exercise of stock options, Shares | | | | 71,336 | | | | | | | |
Exercise of stock options | 608 | | | $ 1 | | | 607 | | | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 149,446 | 5,235 | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | $ (460) | $ 0 | | | | | $ (460) | | | |
Purchase of common stock under ESPP, Shares | | | | 40,547 | | | | | | | |
Purchases of common stock under ESPP | 557 | | | $ 1 | | | 556 | | | | |
Stock-based compensation | 2,150 | | | | | | 2,150 | | | | |
Other comprehensive income, net of tax | (92) | | | | | | | | | (92) | |
Ending Balance, Shares at Aug. 31, 2018 | | | | 37,861,057 | | | | | | | |
Ending Balance at Aug. 31, 2018 | 544,889 | | | $ 372 | | | 546,615 | | 4,660 | (1,044) | $ (5,714) |
Ending Balance,Treasury Shares at Aug. 31, 2018 | | | | | | | | | | | (370,000) |
Beginning Balance, Shares at May. 31, 2018 | | | | 37,594,493 | | | | | | | |
Beginning Balance at May. 31, 2018 | 542,595 | | | $ 370 | | | 543,762 | | 5,129 | (952) | $ (5,714) |
Beginning Balance,Treasury Shares at May. 31, 2018 | | | | | | | | | | | (370,000) |
Net income (loss) | 2,467 | | | | | | | | | | |
Ending Balance, Shares at Feb. 28, 2019 | | | | 37,955,894 | | | | | | | |
Ending Balance at Feb. 28, 2019 | 554,079 | | | $ 372 | | | 552,902 | | 7,596 | (1,077) | $ (5,714) |
Ending Balance,Treasury Shares at Feb. 28, 2019 | | | | | | | | | | | (370,000) |
Beginning Balance, Shares at Aug. 31, 2018 | | | | 37,861,057 | | | | | | | |
Beginning Balance at Aug. 31, 2018 | 544,889 | | | $ 372 | | | 546,615 | | 4,660 | (1,044) | $ (5,714) |
Beginning Balance,Treasury Shares at Aug. 31, 2018 | | | | | | | | | | | (370,000) |
Net income (loss) | 2,140 | | | | | | | | 2,140 | | |
Exercise of stock options, Shares | | | | 10,571 | | | | | | | |
Exercise of stock options | 149 | | | | | | 149 | | | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 3,901 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | 0 | | | | | | | | | |
Stock-based compensation | 2,591 | | | | | | 2,591 | | | | |
Other comprehensive income, net of tax | (206) | | | | | | | | | (206) | |
Ending Balance, Shares at Nov. 30, 2018 | | | | 37,875,529 | | | | | | | |
Ending Balance at Nov. 30, 2018 | 549,563 | | | $ 372 | | | 549,355 | | 6,800 | (1,250) | $ (5,714) |
Ending Balance,Treasury Shares at Nov. 30, 2018 | | | | | | | | | | | (370,000) |
Net income (loss) | 796 | | | | | | | | 796 | | |
Exercise of stock options, Shares | | | | 40,346 | | | | | | | |
Exercise of stock options | 603 | | | | | | 603 | | | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 7,703 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | (49) | | | | | | (49) | | | |
Purchase of common stock under ESPP, Shares | | | | 32,316 | | | | | | | |
Purchases of common stock under ESPP | 615 | | | | | | 615 | | | | |
Stock-based compensation | 2,378 | | | | | | 2,378 | | | | |
Other comprehensive income, net of tax | 173 | | | | | | | | | 173 | |
Ending Balance, Shares at Feb. 28, 2019 | | | | 37,955,894 | | | | | | | |
Ending Balance at Feb. 28, 2019 | 554,079 | | | $ 372 | | | 552,902 | | 7,596 | (1,077) | $ (5,714) |
Ending Balance,Treasury Shares at Feb. 28, 2019 | | | | | | | | | | | (370,000) |
Beginning Balance, Shares at May. 31, 2019 | | | | 37,984,382 | | | | | | | |
Beginning Balance at May. 31, 2019 | $ 614,815 | | | $ 372 | | | 555,040 | | 66,469 | (1,352) | $ (5,714) |
Beginning Balance,Treasury Shares at May. 31, 2019 | (370,000) | | | | | | | | | | (370,000) |
Net income (loss) | $ (1,275) | | | | | | | | (1,275) | | |
Exercise of stock options, Shares | | | | 48,136 | | | | | | | |
Exercise of stock options | 531 | | | $ 1 | | | 530 | | | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 287,087 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | (2,459) | | | | | | (2,459) | | | |
Purchase of common stock under ESPP, Shares | | | | 40,270 | | | | | | | |
Purchases of common stock under ESPP | 628 | | | | | | 628 | | | | |
Stock-based compensation | 1,984 | | | | | | 1,984 | | | | |
Other comprehensive income, net of tax | (151) | | | | | | | | | (151) | |
Ending Balance, Shares at Aug. 31, 2019 | | | | 38,359,875 | | | | | | | |
Ending Balance at Aug. 31, 2019 | 614,073 | | | $ 373 | | | 555,723 | | 65,194 | (1,503) | $ (5,714) |
Ending Balance,Treasury Shares at Aug. 31, 2019 | | | | | | | | | | | (370,000) |
Beginning Balance, Shares at May. 31, 2019 | | | | 37,984,382 | | | | | | | |
Beginning Balance at May. 31, 2019 | $ 614,815 | | | $ 372 | | | 555,040 | | 66,469 | (1,352) | $ (5,714) |
Beginning Balance,Treasury Shares at May. 31, 2019 | (370,000) | | | | | | | | | | (370,000) |
Net income (loss) | $ (9,720) | | | | | | | | | | |
Ending Balance, Shares at Feb. 29, 2020 | | | | 38,434,757 | | | | | | | |
Ending Balance at Feb. 29, 2020 | $ 610,475 | | | $ 374 | | | 560,330 | | 56,749 | (1,264) | $ (5,714) |
Ending Balance,Treasury Shares at Feb. 29, 2020 | (370,000) | | | | | | | | | | (370,000) |
Beginning Balance, Shares at Aug. 31, 2019 | | | | 38,359,875 | | | | | | | |
Beginning Balance at Aug. 31, 2019 | $ 614,073 | | | $ 373 | | | 555,723 | | 65,194 | (1,503) | $ (5,714) |
Beginning Balance,Treasury Shares at Aug. 31, 2019 | | | | | | | | | | | (370,000) |
Net income (loss) | (2,736) | | | | | | | | (2,736) | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 4,051 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | | $ 0 | | | | | | | | |
Stock-based compensation | 2,242 | | | | | | 2,242 | | | | |
Other comprehensive income, net of tax | 231 | | | | | | | | | 231 | |
Ending Balance, Shares at Nov. 30, 2019 | | | | 38,363,926 | | | | | | | |
Ending Balance at Nov. 30, 2019 | 613,810 | | | $ 373 | | | 557,965 | | 62,458 | (1,272) | $ (5,714) |
Ending Balance,Treasury Shares at Nov. 30, 2019 | | | | | | | | | | | (370,000) |
Net income (loss) | (5,709) | | | | | | | | (5,709) | | |
Exercise of stock options, Shares | | | | 2,500 | | | | | | | |
Exercise of stock options | 30 | | | | | | 30 | | | | |
Issuance/Cancellation of performance share units and restricted stock units, net, Shares | | | | | 8,034 | | | | | | |
Issuance/Cancellation of performance share units and restricted stock units | | $ (25) | | | | | | $ (25) | | | |
Purchase of common stock under ESPP, Shares | | | | 60,297 | | | | | | | |
Purchases of common stock under ESPP | 589 | | | $ 1 | | | 588 | | | | |
Stock-based compensation | 1,772 | | | | | | 1,772 | | | | |
Other comprehensive income, net of tax | 8 | | | | | | | | | 8 | |
Ending Balance, Shares at Feb. 29, 2020 | | | | 38,434,757 | | | | | | | |
Ending Balance at Feb. 29, 2020 | $ 610,475 | | | $ 374 | | | $ 560,330 | | $ 56,749 | $ (1,264) | $ (5,714) |
Ending Balance,Treasury Shares at Feb. 29, 2020 | (370,000) | | | | | | | | | | (370,000) |