XML 106 R33.htm IDEA: XBRL DOCUMENT v3.10.0.1
Balance Sheet Components - Schedule of Allowance for Sales Returns (Details) - USD ($)
$ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2018
Dec. 31, 2017
Movement in Valuation Allowances and Reserves [Roll Forward]    
Beginning balance $ (17,739)  
Ending balance (10,952) $ (17,739)
Allowance for Sales Returns    
Movement in Valuation Allowances and Reserves [Roll Forward]    
Beginning balance (6,907) (6,916)
Charged to revenue (6,755) (19,089)
Utilization of sales return/incentive reserve 9,158 19,098
Ending balance $ (4,504) $ (6,907)