Annual report pursuant to Section 13 and 15(d)

Debt (Details)

v3.22.1
Debt (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Debt Instrument [Line Items]    
Capital leases $ 3,204 $ 229
Total debt principal balance 171,659 315,051
Unamortized debt discount and issuance costs (11,792) (28,501)
Current maturities (9,504) (13,573)
Net long-term debt 174,747 283,902
Senior Secured Term Loan [Member]    
Debt Instrument [Line Items]    
Long-term debt, gross 120,745 246,250
Senior Secured Term Loan future interest payable 24,384 10,925
ABL Credit Facility [Member]    
Debt Instrument [Line Items]    
Long-term debt, gross 14,170 23,710
PPP Loan [Member]    
Debt Instrument [Line Items]    
Long-term debt, gross 0 10,000
USDA Loan [Member]    
Debt Instrument [Line Items]    
Long-term debt, gross 25,000 21,996
Equipment Financing [Member]    
Debt Instrument [Line Items]    
Long-term debt, gross $ 8,540 $ 12,866