v3.21.2
Balance Sheet Components - Schedule of Accounts Receivable, Net (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Dec. 31, 2020
Valuation And Qualifying Accounts Disclosure [Line Items]    
Gross accounts receivable $ 611,936 $ 565,088
Allowance for accounts receivable (24,455) (41,236)
Total accounts receivable, net of allowances 587,481 523,852
Allowance for Sales Returns    
Valuation And Qualifying Accounts Disclosure [Line Items]    
Allowance for accounts receivable (4,515) (5,912)
Allowance for Sales Incentives    
Valuation And Qualifying Accounts Disclosure [Line Items]    
Allowance for accounts receivable (16,640) (30,838)
Allowance for Doubtful Accounts    
Valuation And Qualifying Accounts Disclosure [Line Items]    
Allowance for accounts receivable (3,082) (4,181)
Other Allowances    
Valuation And Qualifying Accounts Disclosure [Line Items]    
Allowance for accounts receivable $ (218) $ (305)