XML 68 R54.htm IDEA: XBRL DOCUMENT v3.22.0.1
Balance Sheet Components - Allowance for Doubtful Accounts (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Allowance for doubtful accounts      
Beginning balance $ 4,220 $ 2,919 $ 1,788
Cumulative-effect adjustment upon adoption of ASU 2016-13 (1,394,836) (929,318)  
Provision for credit losses (156) 1,354 1,141
Write-offs (1,635) (457) (10)
Total $ 2,429 4,220 $ 2,919
Cumulative effect adjustment | Adoption Adjustment      
Allowance for doubtful accounts      
Cumulative-effect adjustment upon adoption of ASU 2016-13   $ 404