Annual report pursuant to Section 13 and 15(d)

Long-Term Debt???, Net of Debt Discount and Financing Fees - Narrative (Details)

v3.22.4
Long-Term Debt​, Net of Debt Discount and Financing Fees - Narrative (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 10, 2020
Jun. 30, 2020
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Jun. 30, 2021
Mar. 31, 2021
Debt Instrument [Line Items]              
Interest expense     $ 624 $ 1,356 $ 1,054    
Interest costs capitalized     6,155 4,277      
Amortization of debt discount and deferred financing fees     891 831 $ 232    
Restricted cash     6,251 6,251      
Standby Letters of Credit              
Debt Instrument [Line Items]              
Collateral amount             $ 250
Restricted Cash              
Debt Instrument [Line Items]              
Collateral amount     6,000 6,000      
Debt derivative liabilities              
Debt Instrument [Line Items]              
Debt derivative liabilities   $ 2,387          
Oberland Option              
Debt Instrument [Line Items]              
Exercise price of warrants (in USD per share) $ 14.13            
Oberland Option | TPC Investments II LP              
Debt Instrument [Line Items]              
Number of shares called by warrants (in shares) 247,699            
Credit Facility              
Debt Instrument [Line Items]              
Term of debt   7 years          
Principal balance     $ 45,712 45,325      
Financing costs   $ 642       $ 642  
Period for which quarterly interest payments are required   7 years          
Interest rate   7.50%          
Interest rate at period end     11.24%        
Threshold revenue achievement for payment of additional quarterly royalty   $ 70,000          
Additional payment percentage   1.00%          
Interest expense     $ 756 646      
Interest paid     $ 5,074 4,103      
Make-whole payment, minimum required internal rate of return   11.50%          
Interest rate increase in the event of default   4.00%          
Credit Facility | Oberland Option              
Debt Instrument [Line Items]              
Value of warrants outstanding   $ 3,500          
Moving average of closing stock     45 days        
Gross proceeds from warrant exercises $ 3,500            
Credit Facility | LIBOR              
Debt Instrument [Line Items]              
Additional interest floor rate   2.00%          
First Tranche              
Debt Instrument [Line Items]              
Principal balance   $ 35,000 $ 35,000 35,000      
First Tranche | Debt derivative liabilities              
Debt Instrument [Line Items]              
Debt derivative liabilities           1,076  
Second Tranche              
Debt Instrument [Line Items]              
Principal balance     $ 15,000 $ 15,000   15,000  
Second Tranche | Debt derivative liabilities              
Debt Instrument [Line Items]              
Debt derivative liabilities           $ 1,961