Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies - Additional Information (Details)

v3.19.3.a.u2
Summary of Significant Accounting Policies - Additional Information (Details)
$ in Thousands
12 Months Ended
Dec. 31, 2019
USD ($)
business_activity
segment
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
Jan. 01, 2019
USD ($)
Oct. 01, 2018
USD ($)
Jan. 01, 2018
USD ($)
Jan. 01, 2017
USD ($)
Summary Of Significant Accounting Policies [Line Items]              
Number of operating segments | segment 1            
Number of business activities | business_activity 1            
Bad debt expense $ 3,400 $ 3,400 $ 2,100        
Uncollectible receivables written off 2,000 2,800 1,600        
Capitalized additional costs associated with software $ 2,600 2,500 $ 6,100        
Customer Agreements, initial set up, discount percent 10.00%            
Deferred tax assets, gross $ 450,294 352,038          
Cumulative effect of adoption       $ 0   $ 1,992 $ 2,996
Solar materials purchases from top five suppliers $ 180,100 $ 221,500          
Minimum              
Summary Of Significant Accounting Policies [Line Items]              
Power purchase or lease agreement term 20 years            
Maximum              
Summary Of Significant Accounting Policies [Line Items]              
Power purchase or lease agreement term 25 years            
Inverters              
Summary Of Significant Accounting Policies [Line Items]              
Estimated useful life 10 years            
Solar energy systems              
Summary Of Significant Accounting Policies [Line Items]              
Estimated useful life 35 years            
Retained Earnings (Accumulated Deficit)              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption       740     2,996
Retained Earnings (Accumulated Deficit) | Accounting Standards Update 2016-09              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption             3,300
Retained Earnings (Accumulated Deficit) | Accounting Standards Update 2017-12              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption         $ 2,000    
Retained Earnings (Accumulated Deficit) | Accounting Standards Update 2018-02              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption       (700)      
Accumulated Other Comprehensive Income (Loss)              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption       $ (740)   $ 1,992  
Accumulated Other Comprehensive Income (Loss) | Accounting Standards Update 2017-12              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption         $ (2,000)    
Adjustment | Accounting Standards Update 2016-16              
Summary Of Significant Accounting Policies [Line Items]              
Prepaid taxes             (378,500)
Deferred tax assets, gross             378,200
Cumulative effect of adoption             (300)
Deferred Tax Liability | Accounting Standards Update 2016-09              
Summary Of Significant Accounting Policies [Line Items]              
Cumulative effect of adoption             $ (3,300)