XML 520 R81.htm IDEA: XBRL DOCUMENT v3.24.0.1
Stock-Based Compensation - Summary of Stock-Based Compensation Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 111,781 $ 110,633 $ 211,000
Cost of customer agreements and incentives      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 8,772 9,181 11,469
Cost of solar energy systems and product sales      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 5,267 9,274 5,775
Sales and marketing      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 59,026 56,857 104,087
Research and development      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized 1,739 2,667 3,806
General and administration      
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]      
Compensation expense recognized $ 36,977 $ 32,654 $ 85,863