XML 66 R51.htm IDEA: XBRL DOCUMENT v3.22.0.1
Revenue Recognition and Related Balance Sheet Accounts - Composition of the Allowance for Credit Losses (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Accounts Receivable, Allowance for Credit Loss [Roll Forward]      
Balance at beginning of year $ 16,546 $ 9,398 $ 5,839
Provision for credit losses 34,890 3,656 11,249
Direct write-offs charged against the allowance (1,687) (1,575) (7,690)
Balance at end of year 49,749 16,546 $ 9,398
Cumulative Effect, Period of Adoption, Adjustment      
Accounts Receivable, Allowance for Credit Loss [Roll Forward]      
Balance at beginning of year $ 5,067    
Balance at end of year   $ 5,067