XML 24 R41.htm IDEA: XBRL DOCUMENT v3.20.1
Notes Payable and Stock Purchase Warrants - Carrying amount of notes payable (Details) - USD ($)
$ in Thousands
Mar. 31, 2020
Dec. 31, 2019
Jul. 31, 2019
Mar. 31, 2018
Solar Term Loan        
Debt Instrument [Line Items]        
Aggregate principal amount   $ 45,000    
Debt Discount   (1,466)    
Issuance costs   (100)    
Carrying Amount   43,434    
2023 Notes        
Debt Instrument [Line Items]        
Aggregate principal amount $ 15,700 15,700   $ 53,000
Debt Discount (3,624) (3,900)    
Carrying Amount 12,076 11,800    
2025 Notes        
Debt Instrument [Line Items]        
Aggregate principal amount 82,000 82,000 $ 82,000  
Debt Discount (45,006) (46,482)    
Issuance costs (686) (708)    
Carrying Amount $ 36,308 $ 34,810