CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY - USD ($)
$ in Thousands
Common Stock
Treasury Stock
Additional Paid-In Capital
Accumulated Deficit
Accumulated Other Comprehensive (Loss) Income
Total
Balance at Dec. 31, 2015 $ 2 $ (9,020) $ 220,782 $ (95,580) $ (739) $ 115,445
Balance (in shares) at Dec. 31, 2015 23,436,288          
Balance (in shares) at Dec. 31, 2015   1,154,480        
Increase (Decrease) in Stockholders' Equity            
Net income       12,298   12,298
Other comprehensive loss         (125) (125)
Cumulative effect of accounting change       (4,065)   (4,065)
Excess tax benefit from exercise of options for common stock     89     89
Stock-based compensation     8,324     8,324
Issuance of common stock upon exercise of stock options and vesting of restricted stock     3,437     3,437
Issuance of common stock upon exercise of stock options and vesting of restricted stock (in shares) 721,138          
Repurchase of common stock for treasury   $ (3,242)       (3,242)
Repurchase of common stock for treasury (in shares) (427,646) 427,646        
Retirement of treasury stock   $ 12,262 (12,262)      
Retirement of treasury stock (in shares)   (1,582,126)        
Balance at Dec. 31, 2016 $ 2   220,370 (87,347) (864) 132,161
Balance (in shares) at Dec. 31, 2016 23,729,780          
Increase (Decrease) in Stockholders' Equity            
Net income       15,455   15,455
Other comprehensive loss         333 333
Cumulative effect of accounting change     333 (333)    
Stock-based compensation     11,975     11,975
Stock-based compensation (in shares) 65,171          
Issuance of common stock upon exercise of stock options and vesting of restricted stock $ 1   11,424     11,425
Issuance of common stock upon exercise of stock options and vesting of restricted stock (in shares) 2,156,951          
Repurchase of common stock for treasury   $ (1,821)       (1,821)
Repurchase of common stock for treasury (in shares) (119,007) 119,007        
Retirement of treasury stock   $ 1,821 (1,821)      
Retirement of treasury stock (in shares)   (119,007)        
Balance at Dec. 31, 2017 $ 3   242,281 (72,225) (531) $ 169,528
Balance (in shares) at Dec. 31, 2017 25,832,895         25,832,895
Increase (Decrease) in Stockholders' Equity            
Net income       43,840   $ 43,840
Other comprehensive loss         (269) (269)
Stock-based compensation     13,511     13,511
Stock-based compensation (in shares) 62,230          
Issuance of common stock upon exercise of stock options and vesting of restricted stock     3,609     3,609
Issuance of common stock upon exercise of stock options and vesting of restricted stock (in shares) 1,559,051          
Repurchase of common stock for treasury   $ (23,872)       (23,872)
Repurchase of common stock for treasury (in shares) (937,264) 937,264        
Retirement of treasury stock   $ 23,872 (23,872)      
Retirement of treasury stock (in shares)   (937,264)        
Balance at Dec. 31, 2018 $ 3   $ 235,529 $ (28,385) $ (800) $ 206,347
Balance (in shares) at Dec. 31, 2018 26,516,912         26,516,912