Earnings (Loss) Per Share (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2018
Jun. 30, 2017
Numerator:        
Net income (loss) $ 7,678 $ (245) $ 12,405 $ (3,117)
Denominator:        
Denominator for basic earnings (loss) per common share - weighted-average shares (in shares) 27,603,096 28,016,122 27,466,689 28,085,710
Effect of dilutive securities:        
Employee stock awards (in shares) 268,850 0 332,249 0
Denominator for dilutive earnings (loss) per common share (in shares) 27,871,946 28,016,122 27,798,938 28,085,710
Basic earnings (loss) per common share (in usd per share) $ 0.28 $ (0.01) $ 0.45 $ (0.11)
Diluted earnings (loss) per common share (in usd per share) $ 0.28 $ (0.01) $ 0.45 $ (0.11)
Employee stock option        
Anti-dilutive securities excluded from the calculation of earnings (loss) per share:        
Shares excluded from the calculation of diluted earnings (loss) per share (in shares) 0   0  
Unvested restricted stock        
Anti-dilutive securities excluded from the calculation of earnings (loss) per share:        
Shares excluded from the calculation of diluted earnings (loss) per share (in shares) 0   0  
Performance shares        
Anti-dilutive securities excluded from the calculation of earnings (loss) per share:        
Shares excluded from the calculation of diluted earnings (loss) per share (in shares) 2,538   2,538  
Stock-based awards        
Anti-dilutive securities excluded from the calculation of earnings (loss) per share:        
Shares excluded from the calculation of diluted earnings (loss) per share (in shares)   239,440   331,618