Consolidated Statements of Stockholders' Equity - USD ($)
$ in Thousands
Total
Common stock [Member]
Treasury Stock [Member]
Additional paid-in capital [Member]
Accumulated deficit [Member]
Beginning Balance (in shares) at Dec. 31, 2014   17,417,000      
Beginning Balance at Dec. 31, 2014 $ 70,185 $ 2 $ 0 $ 101,158 $ (30,975)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Issuance of common stock upon exercise of stock options and vesting of restricted stock units (in shares)   281,000      
Issuance of common stock upon exercise of stock options and vesting of restricted stock units $ 399     399  
Repurchase of common stock (in shares) (931,664) (932,000)      
Repurchase of common stock $ (4,184)   (203) (3,981)  
Stock-based compensation expense 1,768     1,768  
Net (loss) income 2,155       2,155
Ending Balance (in shares) at Dec. 31, 2015   16,766,000      
Ending Balance at Dec. 31, 2015 70,323 $ 2 (203) 99,344 (28,820)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Net (loss) income (2,981)        
Ending Balance at Mar. 31, 2016 67,500        
Beginning Balance (in shares) at Dec. 31, 2015   16,766,000      
Beginning Balance at Dec. 31, 2015 70,323 $ 2 (203) 99,344 (28,820)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Issuance of common stock upon exercise of stock options and vesting of restricted stock units (in shares)   192,000      
Issuance of common stock upon exercise of stock options and vesting of restricted stock units $ 5     5  
Repurchase of common stock (in shares) (315,503) (315,000)      
Repurchase of common stock $ (1,021)   203 (1,224)  
Stock-based compensation expense 1,631     1,631  
Net (loss) income (26,470)       (26,470)
Ending Balance (in shares) at Dec. 31, 2016   16,643,000      
Ending Balance at Dec. 31, 2016 $ 44,468 $ 2 $ 0 $ 99,756 $ (55,290)