Annual report pursuant to Section 13 and 15(d)

Long-term Debt (Details Textual)

v3.22.0.1
Long-term Debt (Details Textual)
$ in Thousands
12 Months Ended
Dec. 31, 2021
USD ($)
item
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Nov. 02, 2021
USD ($)
May 19, 2021
USD ($)
Oct. 18, 2018
USD ($)
Current portion of long-term debt $ 42,960            
Repayments of outstanding balance 80,000 $ 50,000 $ 66,000        
Gain (Loss) on Extinguishment of Debt, Total 0 47,469 $ 0        
Term Loan [Member]              
Current portion of long-term debt 43,000            
Debt Instrument, Face Amount           $ 215,000  
Debt Instrument, Interest Rate, Stated Percentage           7.00%  
Repayments of outstanding balance $ 48,000            
Credit Agreement [Member]              
Line of Credit Facility, Interest Rate During Period 3.20%            
Letters of Credit Outstanding, Amount $ 4,400 4,400          
Senior Second Lien Notes Due November 2023 [Member]              
Debt Instrument, Face Amount             $ 625,000
Debt Instrument, Interest Rate, Stated Percentage             9.75%
Debt Instrument, Interest Rate, Effective Percentage             10.30%
Extinguishment of Debt, Amount   72,500          
Repayments of Long-term Debt, Total   23,900          
Gain (Loss) on Extinguishment of Debt, Total   47,500   $ 47,100      
Write off of Deferred Debt Issuance Cost   $ 1,100          
Senior Second Lien Notes Due November 2023 [Member] | Debt Instrument, Redemption, Period One [Member]              
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed 104.875%            
Senior Second Lien Notes Due November 2023 [Member] | Debt Instrument, Redemption, Period Two [Member]              
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed 102.438%            
Senior Second Lien Notes Due November 2023 [Member] | Debt Instrument, Redemption, Period Three [Member]              
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed 100.00%            
Senior Second Lien Notes Due November 2023 [Member] | Debt Instrument, Redemption, Period Four [Member]              
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed 101.00%            
Short Term First Priority Lien Secured Revolving Facility [Member]              
Line of Credit Facility, Maximum Borrowing Capacity         $ 100,000    
Calculus Lending Facility [Member]              
Letters of Credit Outstanding, Amount $ 4,400       4,400    
Line of Credit Facility, Maximum Borrowing Capacity $ 50,000       $ 50,000    
Commitment fee percentage for unused Portion 3.00%            
Number of trailing quarters | item 4            
Total proved PV -10 to debt ratio 2.00            
Percentage of funding or utilization of the credit facility 100.00%            
Credit Agreement Leverage Ratio 2.50            
Credit Agreement Minimum Current Ratio 1.00%            
Calculus Lending Facility [Member] | London Interbank Offered Rate (LIBOR) [Member]              
Debt Instrument, Basis Spread on Variable Rate 6.00%