Quarterly report pursuant to Section 13 or 15(d)

Summary of Significant Accounting Policies - Deferred Revenue (Details)

v3.21.2
Summary of Significant Accounting Policies - Deferred Revenue (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Dec. 31, 2020
Dec. 31, 2019
Deferred Revenue Arrangement [Line Items]      
Deferred revenue $ 836,193 $ 799,276 $ 729,500
Customer agreements      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue 692,575 666,741  
Customer agreements | Payments received, net      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue 637,388 614,906  
Customer agreements | Financing component balance      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue 55,187 51,835  
SREC contracts      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue 143,618 132,535  
SREC contracts | Payments received, net      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue 136,473 126,793  
SREC contracts | Financing component balance      
Deferred Revenue Arrangement [Line Items]      
Deferred revenue $ 7,145 $ 5,742