Balance Sheet Details - Inventory (Details 2) - USD ($) $ in Thousands  | 
Mar. 31, 2018  | 
Dec. 31, 2017  | 
|---|---|---|
| Balance Sheet Related Disclosures [Abstract] | ||
| Work-in-process | $ 21,102 | $ 21,823 | 
| Finished goods | 24,518 | 31,611 | 
| Inventory, Distributor Returns | 138 | 0 | 
| Inventory Total | $ 45,758 | $ 53,434 | 
| X | ||||||||||
- Definition Inventory, Distributor Returns No definition available. 
  | 
| 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 
  |