Consolidated Balance Sheets (Parenthetical) - USD ($) $ in Thousands |
Dec. 31, 2015 |
Dec. 31, 2014 |
|---|---|---|
| Statement of Financial Position [Abstract] | ||
| Allowance for doubtful accounts receivable | $ 2,720 | $ 2,069 |
| Related party receivables | 328 | 1,865 |
| Related party prepaid expenses | 0 | 906 |
| Related party payables | 7,490 | 4,954 |
| Related party accrued expense and other current liabilities | $ 318 | $ 0 |
| Preferred stock, par value (in dollar per share) | $ 0.0001 | $ 0.0001 |
| Preferred stock, shares authorized | 20,000,000 | 20,000,000 |
| Preferred stock, shares issued | 0 | 0 |
| Preferred stock, shares outstanding | 0 | 0 |
| Common stock, par value (in dollars per share) | $ 0.0001 | $ 0.0001 |
| Common stock, shares authorized | 1,000,000,000 | 1,000,000,000 |
| Common stock, shares issued | 83,016,735 | 79,811,769 |
| Common stock, shares outstanding | 83,016,735 | 79,811,769 |