Balance Sheet Components - Schedule of Allowance for Sales Returns (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
|
| Movement in Valuation Allowances and Reserves [Roll Forward] | ||
| Beginning balance | $ (21,897) | |
| Ending balance | (27,521) | $ (21,897) |
| Allowance for Sales Returns | ||
| Movement in Valuation Allowances and Reserves [Roll Forward] | ||
| Beginning balance | (7,335) | (6,907) |
| Charged to revenue | (15,541) | (17,396) |
| Utilization of sales return/incentive reserve | 16,326 | 16,968 |
| Ending balance | $ (6,550) | $ (7,335) |