Balance Sheet Components - Additional Information (Details) - USD ($) $ in Millions |
12 Months Ended | ||
---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
Schedule Of Available For Sale Securities [Line Items] | |||
Depreciation expense | $ 12.9 | $ 12.1 | $ 8.3 |
Maximum | |||
Schedule Of Available For Sale Securities [Line Items] | |||
Available-for-sale securities remaining contractual maturities | 3 years |