Commitments and Contingencies - Schedule of Capital Lease Commitments (Detail) - USD ($) $ in Thousands |
Sep. 30, 2017 |
Dec. 31, 2016 |
|---|---|---|
| Capital Leases, Future Minimum Payments Due, Fiscal Year Maturity [Abstract] | ||
| 2017 (three months remaining) | $ 719 | |
| 2018 | 2,712 | |
| 2019 | 2,351 | |
| 2020 | 1,152 | |
| Total minimum capital lease commitments | 6,934 | |
| Less-amount representing interest | 474 | |
| Total capital lease obligations | 6,460 | |
| Less-current portion of capital lease obligations | 2,479 | $ 982 |
| Long-term portion of capital lease obligations | $ 3,981 | $ 1,014 |