| Balance Sheet Details - Inventory (Details 2) - USD ($) $ in Thousands | Sep. 30, 2017 | Dec. 31, 2016 | 
|---|---|---|
| Balance Sheet Related Disclosures [Abstract] | ||
| Work-in-process | $ 27,093 | $ 13,947 | 
| Finished goods | 36,599 | 12,636 | 
| Inventory Total | $ 63,692 | $ 26,583 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount before valuation and LIFO reserves of completed merchandise or goods expected to be sold within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Amount before valuation and LIFO reserves of merchandise or goods in the production process expected to be completed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 |