Earnings (Loss) Per Share (Tables)
6 Months Ended
Jun. 30, 2018
Earnings Per Share [Abstract]  
Computation of basic and diluted earnings (loss) per common share
The computation of basic and diluted earnings (loss) per common share for the three and six months ended June 30, 2018 and 2017 is as follows (in thousands, except share and per share data):
 
Three Months Ended
June 30,
 
Six Months Ended
June 30,
 
2018
 
2017
 
2018
 
2017
Numerator:
 
 
 
 
 
 
 
Net income (loss)
$
7,678

 
$
(245
)
 
$
12,405

 
$
(3,117
)
Denominator:
 

 
 
 
 
 
 
Denominator for basic earnings (loss) per common share - weighted-average shares
27,603,096

 
28,016,122

 
27,466,689

 
28,085,710

Effect of dilutive securities:
 

 
 
 
 
 
 
Employee stock awards
268,850

 

 
332,249

 

Denominator for dilutive earnings (loss) per common share
27,871,946

 
28,016,122

 
27,798,938

 
28,085,710

Basic earnings (loss) per common share
$
0.28

 
$
(0.01
)
 
$
0.45

 
$
(0.11
)
Diluted earnings (loss) per common share
$
0.28

 
$
(0.01
)
 
$
0.45

 
$
(0.11
)