Stock-Based Compensation - Compensation expense (Details) - USD ($) $ in Thousands  | 
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2021  | 
Jun. 30, 2020  | 
Jun. 30, 2021  | 
Jun. 30, 2020  | 
|
| Stock Based Compensation | ||||
| Stock-based compensation | $ 10,565 | $ 1,933 | $ 20,435 | $ 3,734 | 
| Operating expense | ||||
| Stock Based Compensation | ||||
| Stock-based compensation | 7 | 12 | 10 | 13 | 
| Selling, general and administrative | ||||
| Stock Based Compensation | ||||
| Stock-based compensation | $ 10,558 | $ 1,921 | $ 20,425 | $ 3,721 | 
| X | ||||||||||
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |