Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details)

v3.22.4
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 110,633 $ 211,000 $ 170,587
Cost of customer agreements and incentives      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 9,181 11,469 4,315
Cost of solar energy systems and product sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 9,274 5,775 1,582
Sales and marketing      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 56,857 104,087 53,366
Research and development      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 2,667 3,806 2,518
General and administration      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 32,654 $ 85,863 $ 108,806