Condensed Consolidated Statement of Stockholders' Equity (Deficit) (Unaudited) - USD ($) $ in Thousands | Total | Series B Preferred Stock | Common stock | Common stockSeries B Preferred Stock | Additional Paid-in Capital | Additional Paid-in CapitalSeries B Preferred Stock | Accumulated Deficit | Accumulated Other Comprehensive Income (Loss) |
Beginning Balance at Dec. 31, 2017 | $ (22,157) | | $ 12 | | $ 148,082 | | $ (170,048) | $ (203) |
Beginning Balance, shares at Dec. 31, 2017 | | | 12,349,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Cumulative effect of the adoption of ASC 606 | (605) | | | | | | (605) | |
Net income (loss) | 1,962 | | | | | | 1,962 | |
Other comprehensive income, net of tax | 155 | | | | | | | 155 |
Stock-based compensation | 223 | | | | 223 | | | |
Ending Balance at Mar. 31, 2018 | (20,422) | | $ 12 | | 148,305 | | (168,691) | (48) |
Ending Balance, shares at Mar. 31, 2018 | | | 12,349,000 | | | | | |
Beginning Balance at Dec. 31, 2017 | (22,157) | | $ 12 | | 148,082 | | (170,048) | (203) |
Beginning Balance, shares at Dec. 31, 2017 | | | 12,349,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | 14,576 | | | | | | | |
Other comprehensive income, net of tax | (196) | | | | | | | |
Ending Balance at Sep. 30, 2018 | 12,458 | | $ 14 | | 168,920 | | (156,077) | (399) |
Ending Balance, shares at Sep. 30, 2018 | | | 14,230,000 | | | | | |
Beginning Balance at Mar. 31, 2018 | (20,422) | | $ 12 | | 148,305 | | (168,691) | (48) |
Beginning Balance, shares at Mar. 31, 2018 | | | 12,349,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | (2,318) | | | | | | (2,318) | |
Other comprehensive income, net of tax | (270) | | | | | | | (270) |
Stock issued during period, value, series B exchange | | $ 15,475 | | $ 1 | | $ 15,474 | | |
Stock issued during period, shares, series B exchange | | | | 1,307,000 | | | | |
Issuance of restricted stock, shares | | | 28,000 | | | | | |
Stock options exercised | 734 | | $ 1 | | 733 | | | |
Stock options exercised, shares | | | 110,000 | | | | | |
Stock-based compensation | 599 | | | | 599 | | | |
Ending Balance at Jun. 30, 2018 | (6,202) | | $ 14 | | 165,111 | | (171,009) | (318) |
Ending Balance, shares at Jun. 30, 2018 | | | 13,794,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | 14,932 | | | | | | 14,932 | |
Other comprehensive income, net of tax | (81) | | | | | | | (81) |
Issuance of restricted stock, shares | | | 16,000 | | | | | |
Repurchase of common stock and retirement of related treasury shares | (141) | | | | (141) | | | |
Repurchase of common stock and retirement of related treasury shares, shares | | | (6,000) | | | | | |
Issuance of common stock upon exercise of warrants | 778 | | | | 778 | | | |
Issuance of common stock upon exercise of warrants, shares | | | 77,000 | | | | | |
Stock options exercised | 2,585 | | | | 2,585 | | | |
Stock options exercised, shares | | | 349,000 | | | | | |
Stock-based compensation | 587 | | | | 587 | | | |
Ending Balance at Sep. 30, 2018 | 12,458 | | $ 14 | | 168,920 | | (156,077) | (399) |
Ending Balance, shares at Sep. 30, 2018 | | | 14,230,000 | | | | | |
Beginning Balance at Dec. 31, 2018 | 37,496 | | $ 14 | | 169,421 | | (131,463) | (476) |
Beginning Balance, shares at Dec. 31, 2018 | | | 14,268,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | 3,055 | | | | | | 3,055 | |
Other comprehensive income, net of tax | 165 | | | | | | | 165 |
Reclassification of financial instrument obligation | 6,248 | | | | 6,248 | | | |
Issuance of restricted stock, shares | | | 12,000 | | | | | |
Repurchase of common stock and retirement of related treasury shares | (101) | | | | (101) | | | |
Repurchase of common stock and retirement of related treasury shares, shares | | | (6,000) | | | | | |
Issuance of common stock upon exercise of warrants, shares | | | 295,000 | | | | | |
Stock options exercised | 23 | | | | 23 | | | |
Stock options exercised, shares | | | 6,000 | | | | | |
Stock-based compensation | 522 | | | | 522 | | | |
Ending Balance at Mar. 31, 2019 | 47,408 | | $ 14 | | 176,113 | | (128,408) | (311) |
Ending Balance, shares at Mar. 31, 2019 | | | 14,575,000 | | | | | |
Beginning Balance at Dec. 31, 2018 | 37,496 | | $ 14 | | 169,421 | | (131,463) | (476) |
Beginning Balance, shares at Dec. 31, 2018 | | | 14,268,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | (2,442) | | | | | | | |
Other comprehensive income, net of tax | $ (323) | | | | | | | |
Stock options exercised, shares | 60,645 | | | | | | | |
Ending Balance at Sep. 30, 2019 | $ 41,606 | | $ 15 | | 176,295 | | (133,905) | (799) |
Ending Balance, shares at Sep. 30, 2019 | | | 14,513,000 | | | | | |
Beginning Balance at Mar. 31, 2019 | 47,408 | | $ 14 | | 176,113 | | (128,408) | (311) |
Beginning Balance, shares at Mar. 31, 2019 | | | 14,575,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | (2,373) | | | | | | (2,373) | |
Other comprehensive income, net of tax | (158) | | | | | | | (158) |
Issuance of restricted stock, shares | | | 56,000 | | | | | |
Repurchase of common stock and retirement of related treasury shares | (44) | | | | (44) | | | |
Repurchase of common stock and retirement of related treasury shares, shares | | | (4,000) | | | | | |
Common stock buyback | (1,499) | | | | (1,499) | | | |
Common stock buyback, shares | | | (156,000) | | | | | |
Stock options exercised | 71 | | | | 71 | | | |
Stock options exercised, shares | | | 22,000 | | | | | |
Stock-based compensation | 1,003 | | | | 1,003 | | | |
Ending Balance at Jun. 30, 2019 | 44,408 | | $ 14 | | 175,644 | | (130,781) | (469) |
Ending Balance, shares at Jun. 30, 2019 | | | 14,493,000 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net income (loss) | (3,124) | | | | | | (3,124) | |
Other comprehensive income, net of tax | (330) | | | | | | | (330) |
Issuance of restricted stock | | | $ 1 | | (1) | | | |
Issuance of restricted stock, shares | | | 43,000 | | | | | |
Repurchase of common stock and retirement of related treasury shares | (56) | | | | (56) | | | |
Repurchase of common stock and retirement of related treasury shares, shares | | | (6,000) | | | | | |
Common stock buyback | (442) | | | | (442) | | | |
Common stock buyback, shares | | | (50,000) | | | | | |
Stock options exercised | 120 | | | | 120 | | | |
Stock options exercised, shares | | | 33,000 | | | | | |
Stock-based compensation | 1,030 | | | | 1,030 | | | |
Ending Balance at Sep. 30, 2019 | $ 41,606 | | $ 15 | | $ 176,295 | | $ (133,905) | $ (799) |
Ending Balance, shares at Sep. 30, 2019 | | | 14,513,000 | | | | | |