XML 42 R31.htm IDEA: XBRL DOCUMENT v3.8.0.1
Balance Sheet Components - Schedule of Accounts Receivable, Net (Details) - USD ($)
$ in Thousands
Mar. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Valuation And Qualifying Accounts Disclosure [Line Items]      
Gross accounts receivable $ 115,851 $ 138,292  
Allowance for accounts receivable (9,757) (17,739)  
Total Accounts Receivable—net 106,094 120,553  
Allowance for Sales Returns      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Allowance for accounts receivable (3,799) (6,907) $ (6,916)
Allowance for Sales Incentives      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Allowance for accounts receivable (5,433) (10,442) $ (8,503)
Other Allowances      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Allowance for accounts receivable $ (525) $ (390)