CONDENSED CONSOLIDATED STATEMENTS OF EQUITY - USD ($) shares in Thousands, $ in Thousands | Total | Cumulative Effect, Period of Adoption, Adjustment | Cumulative Effect, Period of Adoption, Adjusted Balance | Common Stock | Common StockCumulative Effect, Period of Adoption, Adjusted Balance | Additional Paid-in Capital | Additional Paid-in CapitalCumulative Effect, Period of Adoption, Adjusted Balance | Accumulated Other Comprehensive Loss | Accumulated Other Comprehensive LossCumulative Effect, Period of Adoption, Adjusted Balance | Treasury Stock | Treasury StockCumulative Effect, Period of Adoption, Adjusted Balance | Retained Earnings | Retained EarningsCumulative Effect, Period of Adoption, Adjustment | Retained EarningsCumulative Effect, Period of Adoption, Adjusted Balance |
Beginning balance (in shares) at Dec. 31, 2018 | | | | 34,457 | 34,457 | | | | | | | | | |
Beginning balance at Dec. 31, 2018 | $ 158,491 | $ (39) | $ 158,452 | $ 34 | $ 34 | $ 96,486 | $ 96,486 | $ (1,410) | $ (1,410) | $ (49,733) | $ (49,733) | $ 113,114 | $ (39) | $ 113,075 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | |
Net income (loss) | (11,078) | | | | | | | | | | | (11,078) | | |
Other comprehensive income (loss) | (956) | | | | | | | (956) | | | | | | |
Treasury stock purchase | (722) | | | | | | | | | (722) | | | | |
Restricted stock release (in shares) | | | | 241 | | | | | | | | | | |
Employee stock purchase plan release (in shares) | | | | 7 | | | | | | | | | | |
Employee stock purchase plan release | 61 | | | | | 61 | | | | | | | | |
Stock-based compensation expense | 3,291 | | | | | 3,291 | | | | | | | | |
Payment of withholding taxes on restricted stock units | (887) | | | | | (887) | | | | | | | | |
Shares issued as consideration for acquisition (in shares) | | | | 1,458 | | | | | | | | | | |
Shares issued as consideration for acquisition | 12,968 | | | $ 2 | | 12,966 | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2019 | | | | 36,163 | | | | | | | | | | |
Ending balance at Sep. 30, 2019 | 161,129 | | | $ 36 | | 111,917 | | (2,366) | | (50,455) | | 101,997 | | |
Beginning balance (in shares) at Jun. 30, 2019 | | | | 36,140 | | | | | | | | | | |
Beginning balance at Jun. 30, 2019 | 152,750 | | | $ 36 | | 111,279 | | (1,425) | | (50,455) | | 93,315 | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | |
Net income (loss) | 8,682 | | | | | | | | | | | 8,682 | | |
Other comprehensive income (loss) | (941) | | | | | | | (941) | | | | | | |
Restricted stock release (in shares) | | | | 19 | | | | | | | | | | |
Employee stock purchase plan release (in shares) | | | | 4 | | | | | | | | | | |
Employee stock purchase plan release | 48 | | | | | | | | | | | | | |
Stock-based compensation expense | 631 | | | | | 631 | | | | | | | | |
Payment of withholding taxes on restricted stock units | (41) | | | | | (41) | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2019 | | | | 36,163 | | | | | | | | | | |
Ending balance at Sep. 30, 2019 | 161,129 | | | $ 36 | | 111,917 | | (2,366) | | (50,455) | | 101,997 | | |
Beginning balance (in shares) at Dec. 31, 2019 | | | | 36,610 | 36,610 | | | | | | | | | |
Beginning balance at Dec. 31, 2019 | 191,479 | $ (359) | $ 191,120 | $ 37 | $ 37 | 116,533 | $ 116,533 | (1,631) | $ (1,631) | (50,455) | $ (50,455) | 126,995 | $ (359) | $ 126,636 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | |
Net income (loss) | (72,669) | | | | | | | | | | | (72,669) | | |
Other comprehensive income (loss) | 669 | | | | | | | 669 | | | | | | |
Restricted stock release (in shares) | | | | 270 | | | | | | | | | | |
Employee stock purchase plan release (in shares) | | | | 4 | | | | | | | | | | |
Employee stock purchase plan release | 39 | | | | | 39 | | | | | | | | |
Stock-based compensation expense | 3,930 | | | | | 3,930 | | | | | | | | |
Payment of withholding taxes on restricted stock units | (314) | | | | | (314) | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | | | | 36,884 | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | 122,775 | | | $ 37 | | 120,188 | | (962) | | (50,455) | | 53,967 | | |
Beginning balance (in shares) at Jun. 30, 2020 | | | | 36,884 | | | | | | | | | | |
Beginning balance at Jun. 30, 2020 | 114,958 | | | $ 37 | | 118,862 | | (1,234) | | (50,455) | | 47,748 | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | |
Net income (loss) | 6,219 | | | | | | | | | | | 6,219 | | |
Other comprehensive income (loss) | 272 | | | | | | | 272 | | | | | | |
Stock-based compensation expense | 1,326 | | | | | 1,326 | | | | | | | | |
Payment of withholding taxes on restricted stock units | | | | | | 0 | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | | | | 36,884 | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 122,775 | | | $ 37 | | $ 120,188 | | $ (962) | | $ (50,455) | | $ 53,967 | | |