| Balance Sheet Details - Inventory (Details 2) - USD ($) $ in Thousands | Sep. 30, 2018 | Dec. 31, 2017 | 
|---|---|---|
| Balance Sheet Related Disclosures [Abstract] | ||
| Work-in-process | $ 20,992 | $ 21,823 | 
| Finished goods | 20,765 | 31,611 | 
| Inventory | $ 41,757 | $ 53,434 | 
| 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://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| 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://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| 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://fasb.org/us-gaap/role/ref/legacyRef 
 |