v3.22.4
Debt - Schedule of Debt (With Related Parties) (Parenthetical) (Details) - USD ($)
1 Months Ended 3 Months Ended
Mar. 11, 2022
Sep. 16, 2019
Aug. 30, 2019
Feb. 02, 2019
Jun. 01, 2018
Feb. 01, 2017
Mar. 31, 2022
Oct. 31, 2020
Feb. 28, 2019
Mar. 31, 2022
Mar. 31, 2021
Jun. 30, 2018
Dec. 31, 2021
Jan. 01, 2021
Dec. 31, 2020
Oct. 19, 2020
Oct. 31, 2019
Sep. 30, 2019
Aug. 31, 2018
Aug. 08, 2018
Debt Instrument [Line Items]                                        
Current portion of long-term debt             $ 36,405,000     $ 36,405,000     $ 33,164,000              
(Loss) gain on extinguishment of debt                   $ (5,318,000) $ 534,000                  
Warrants to purchase shares of common stock             52,304,758     52,304,758                    
Warrants, exercise price                             $ 0.01 $ 2.50        
Fair Value Adjustment of Warrants                   $ (11,049,000) (3,107,000)                  
Warrants issued               7,925,000                        
Fair value of the warrants                             $ 800,000          
Omnibus Amendment [Member]                                        
Debt Instrument [Line Items]                                        
Common stock               5,072,000                        
Class of warrant to purchase number of common stock             7,925,000     7,925,000       500,000 1,500,000          
Warrants, exercise price             $ 2.50 $ 0.01   $ 2.50       $ 0.01            
Warrants, terms                           10 years            
Warrants issued               5,072,000                        
Executive Lenders [Member]                                        
Debt Instrument [Line Items]                                        
Debt borrowed $ 200,000                                      
Executive Loans [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate 14.00%           14.00%     14.00%                    
Debt borrowed $ 800,000           $ 800,000     $ 800,000                    
Senior Secured Loan and Executive Loan Agreement [Member]                                        
Debt Instrument [Line Items]                                        
Maturity date May 31, 2022                 Jun. 03, 2022                    
Note payable maturity, description a maturity date of the earlier of (i) demand by Antara Capital at any time prior to the date on which a collateral agent designated by Antara Capital has been granted a valid and enforceable, perfected, first priority lien on the collateral described in the Bridge Loan Agreement, subject only to permitted liens, on terms reasonably acceptable to Antara Capital, and (ii) May 31, 2022.                                      
Principle and interest payments                   $ 0                    
Fair Value Adjustment of Warrants $ 12,800,000                                      
Senior Secured Loan and Executive Loan Agreement [Member] | Executive Lenders [Member]                                        
Debt Instrument [Line Items]                                        
Warrants to purchase shares of common stock 1,097,219                                      
Warrants, exercise price $ 0.01                                      
Secured Convertible Note [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount                                       $ 200,000
(Loss) gain on extinguishment of debt $ 200,000                                      
Common Stock [Member]                                        
Debt Instrument [Line Items]                                        
Warrants issued                                   4,375,000    
Term Loan [Member] | Antara Financing Agreement [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount   $ 24,500,000         $ 19,400,000     $ 19,400,000                    
Interest rate   12.00%         14.50%     14.50%                    
Maturity date   Sep. 16, 2022                                    
Interest paid in kind rate                   14.50%                    
Interest payable in cash rate                   12.00%                    
Current portion of long-term debt             $ 19,400,000     $ 19,400,000     18,700,000              
Debt borrowed   $ 22,400,000                             $ 2,100,000      
Note payable maturity, description                   The maturity date is ninety-one days after the fifth anniversary of the closing date of the Main Street Loan (March 15, 2026) or the date that is ninety-one days after the date of payment in full in cash of all obligations in respect of the Main Street Loan, whichever occurs first.                    
Unamortized debt discount   $ 9,000,000.0         900,000     $ 900,000     1,000,000.0              
Term Loan [Member] | Omnibus Amendment [Member]                                        
Debt Instrument [Line Items]                                        
Interest paid in kind rate                   17.00%                    
Four Promissory Notes Issued February 1, 2017 to Former EAF [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount           $ 9,500,000                            
Interest rate           1.50%                            
Maturity date                   Feb. 01, 2026                    
Interest rate           5.10%                            
Note payable maturity, description                   The four promissory notes were issued to the former EAF members with interest at 1.5%, issued February 1, 2017, and mature February 1, 2026.                    
Percentage of number common stock shares                   10.00%                    
Conversion of minimum principal amount             35,000,000     $ 35,000,000                    
Unamortized debt discount             $ 0     $ 0     5,800,000              
Four Promissory Notes Issued February 1, 2017 to Former EAF [Member] | Common Stock [Member]                                        
Debt Instrument [Line Items]                                        
Common stock           7,000,000                            
Bridge Loan and Executive Loans [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate             14.00%     14.00%                    
Maturity date                   Jun. 03, 2022                    
Principle and interest payments $ 0                                      
Bridge Loan and Executive Loans [Member] | Executive Loans [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate 14.00%                                      
Debt borrowed $ 800                                      
Bridge Loan and Executive Loans [Member] | Senior Secured Loan and Executive Loan Agreement [Member]                                        
Debt Instrument [Line Items]                                        
Maturity date May 31, 2022                                      
Debt borrowed $ 9,000,000                                      
Note payable maturity, description an original maturity date of the earlier of (i) demand by Antara Capital at any time prior to the date on which a collateral agent designated by Antara Capital has been granted a valid and enforceable, perfected, first priority lien on the collateral described in the Bridge Loan Agreement, subject only to permitted liens, on terms reasonably acceptable to Antara Capital, and (ii) May 31, 2022.                                      
Senior Promissory Note Issued February One Two Thousand And Seventeen To Former EAF [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount           $ 3,800,000                            
Interest rate           7.50%                            
Maturity date, month and year           2017-12                            
Current portion of long-term debt             $ 3,800,000     $ 3,800,000     3,800,000              
Note payable maturity, description                   an original maturity of the earlier of (a) December 2017; (b) ten days after the initial closing of a private offering of capital stock of the Company in an amount not less than $10 million; or (c) an event of default.                    
Default interest rate           12.50%                            
Principle and interest payments                       $ 0                
Unamortized debt discount             $ 100,000     $ 100,000     100,000              
Warrants, terms             5 years     5 years                    
Fair Value Adjustment of Warrants                   $ 200,000                    
Debt instrument extended maturity month and year           2019-07                            
Senior Promissory Note Issued February One Two Thousand And Seventeen To Former EAF [Member] | Common Stock [Member]                                        
Debt Instrument [Line Items]                                        
Class of warrant to purchase number of common stock             350,000     350,000                    
Warrants, exercise price             $ 0.01     $ 0.01                    
Senior Promissory Note Issued February One Two Thousand And Seventeen To Former EAF [Member] | Maximum [Member] | Initial Public Offering [Member]                                        
Debt Instrument [Line Items]                                        
Private offering of capital stock           $ 10,000,000                            
Promissory Note Issued February One Two Thousand And Seventeen To Former EAF [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate           7.50%                            
Current portion of long-term debt             $ 4,000,000.0     $ 4,000,000.0     4,000,000.0              
Principle and interest payments           $ 0                            
Unamortized debt discount             $ 100,000     $ 100,000     $ 100,000              
Promissory note           $ 4,000,000.0                            
Class of warrant or rights, exercisable term   5 years                                    
Fair value of the warrants   $ 300,000                                    
Promissory Note Issued February One Two Thousand And Seventeen To Former EAF [Member] | Common Stock [Member]                                        
Debt Instrument [Line Items]                                        
Warrants, exercise price   $ 0.01                                    
Warrants issued   350,000                                    
Secured Convertible Promissory Notes [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate                                     9.00%  
Warrants, exercise price             $ 2.50     $ 2.50                    
Warrants, terms             10 years     10 years                    
Secured convertible promissory notes             $ 4,000,000.0     $ 4,000,000.0 $ 4,000,000.0               $ 4,000,000.0  
Secured Convertible Promissory Notes [Member] | Executive Lenders [Member]                                        
Debt Instrument [Line Items]                                        
Debt borrowed             200,000     200,000                    
Secured Convertible Promissory Notes [Member] | Senior Secured Loan and Executive Loan Agreement [Member]                                        
Debt Instrument [Line Items]                                        
Debt borrowed             9,000,000     $ 9,000,000                    
Secured Convertible Promissory Notes [Member] | Secured Convertible Note [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount                                       $ 200,000
(Loss) gain on extinguishment of debt             $ 200,000                          
Secured Convertible Promissory Notes [Member] | Common Stock [Member]                                        
Debt Instrument [Line Items]                                        
Warrants issued             1,602,000     1,602,000                    
Promissory Note Stockholder Issued June One Two Thousand And Eighteen [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount         $ 2,500,000                              
Interest rate         6.00%                              
Maturity date                   Nov. 30, 2022                    
Note payable maturity, description                   a maturity date of the earlier of (a) the date the Company raises $40.0 million in public or private offerings of debt or equity; (b) December 31, 2018, or (c) termination of Trey Peck’s employment with the Company by the Company without cause or by Trey Peck for good reason.                    
Default interest rate         9.00%                              
Debt instrument extended maturity month and year     2019-08                                  
Proceeds from public or private offering         $ 40,000,000.0                              
Maturity start date         Dec. 31, 2018                              
Payment of principal amount to Peck         $ 150,000                              
Payment of increased monthly principal amount to Peck     $ 20,000                                  
Maturity date                   monthly                    
Promissory Note Stockholder Issued February Two Two Thousand And Nineteen [Member] | Ursa and JB Lease [Member]                                        
Debt Instrument [Line Items]                                        
Principal amount       $ 6,400,000                                
Interest rate       9.00%                                
Maturity date       Aug. 31, 2020                                
Maturity date, month and year     2022-11                                  
Extended maturity date     Aug. 30, 2019                                  
Principle and interest payments       $ 6,400,000                                
Debt instrument, date of first required payment       Jun. 01, 2019                                
Notes Payable Acquired From Ritter [Member]                                        
Debt Instrument [Line Items]                                        
Interest rate                 7.00%                      
Maturity date, month and year                 2028-12