XML 74 R59.htm IDEA: XBRL DOCUMENT v3.20.4
Notes Payable and Stock Purchase Warrants - Carrying amount of notes payable (Details) - USD ($)
12 Months Ended
Dec. 31, 2020
Aug. 14, 2020
Aug. 09, 2020
Dec. 31, 2019
Jul. 31, 2019
Feb. 28, 2018
Jan. 31, 2018
Debt Instrument [Line Items]              
Warrants     $ 4,800,000        
Carrying Amount $ 57,216,000     $ 11,800,000      
Solar Term Loan              
Debt Instrument [Line Items]              
Aggregate principal amount       45,000,000      
Debt Discount       (1,466,000)      
Issuance costs       (100,000)      
Carrying Amount       43,434,000      
2023 Notes              
Debt Instrument [Line Items]              
Amount of principal which is converted to shares             $ 1,000
Conversion price             $ 3.40
Aggregate principal amount 15,700,000     15,700,000   $ 3,000,000.0 $ 50,000,000.0
Debt Discount (2,755,000)     (3,900,000)      
Carrying Amount 12,945,000     11,800,000      
2025 Notes              
Debt Instrument [Line Items]              
Amount of principal which is converted to shares         $ 1,000    
Conversion price         $ 1.32    
Aggregate principal amount 57,700,000     82,000,000 $ 82,000,000.0    
Debt Discount (28,276,000)     (46,482,000)      
Issuance costs (431,000)     (708,000) $ (3,300,000)    
Carrying Amount 28,993,000     $ 34,810,000      
PHC Notes              
Debt Instrument [Line Items]              
Amount of principal which is converted to shares     $ 1,000        
Conversion price     $ 0.54        
Aggregate principal amount 36,312,000   $ 35,000,000.0        
Debt Discount (22,237,000)            
Issuance costs (1,359,000)   $ (2,900,000)        
Carrying Amount 12,716,000            
PPP Loan              
Debt Instrument [Line Items]              
Aggregate principal amount 5,763,000            
Carrying Amount 5,763,000            
Other income              
Debt Instrument [Line Items]              
Change in fair value of warrants $ 23,500,000            
Series A Preferred Stock | Masters Capital              
Debt Instrument [Line Items]              
Number of shares issued and sold   3,000 27,000        
Stock price per share   $ 1,000.00 $ 1,000.00        
Amount of principal which is converted to shares     $ 1,000        
Conversion price     $ 0.476