Calculation of Basic and Diluted Net Income (Loss) Per Share (Detail) - USD ($) $ / shares in Units, shares in Thousands, $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Numerator: | |||
| Net income (loss) | $ 13,100 | $ 6,267 | $ (819) |
| Denominator (in thousands): | |||
| Basic weighted-average common stock outstanding | 20,850 | 20,480 | 20,622 |
| Effect of stock options, stock appreciation rights and restricted stock units | 715 | 509 | |
| Diluted weighted-average common stock outstanding | 21,565 | 20,989 | 20,622 |
| Basic net income (loss) per share | $ 0.63 | $ 0.31 | $ (0.04) |
| Diluted net income (loss) per share | $ 0.61 | $ 0.30 | $ (0.04) |