Consolidated Balance Sheets (Parenthetical) - USD ($) $ in Thousands |
Dec. 31, 2016 |
Dec. 31, 2015 |
|---|---|---|
| Statement Of Financial Position [Abstract] | ||
| Allowance for accounts receivable | $ 1,209 | $ 1,765 |
| Preferred stock, par value | $ 0.001 | $ 0.001 |
| Preferred stock, shares authorized | 1,000,000 | 1,000,000 |
| Preferred stock, shares issued | 88,494 | 0 |
| Preferred stock, shares outstanding | 0 | 0 |
| Common stock, par value | $ 0.001 | $ 0.001 |
| Common stock, shares authorized | 100,000,000 | 100,000,000 |
| Common stock, shares issued | 67,565,951 | 58,228,000 |
| Common stock, shares outstanding | 67,565,951 | 58,228,000 |