XML 108 R91.htm IDEA: XBRL DOCUMENT v3.22.0.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 211,000 $ 170,587 $ 26,306
Stock-based compensation expense capitalized 10,900 6,500  
Cost of customer agreements and incentives      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 11,469 4,315 2,434
Cost of solar energy systems and product sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 5,775 1,582 844
Sales and marketing      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 104,087 53,366 5,162
Research and development      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 3,806 2,518 1,439
General and administration      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 85,863 $ 108,806 $ 16,427