| Schedule of fair values of warrants based on unobservable inputs | 
    |   | 
  | 
    Warrants to  Senior  Noteholders | 
  | 
  | 
    Pre-funded  Warrants | 
  | 
  | 
    Other  Warrants | 
  | 
 
    | Balance, December 31, 2019 | 
  | 
    $ | 
977 | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
 
    | Issuance of warrants in October offering | 
  | 
      | 
— | 
  | 
  | 
      | 
23,638 | 
  | 
  | 
      | 
27,048 | 
  | 
 
    | Exercise of warrants/reclass to equity | 
  | 
      | 
(8,474 | 
) | 
  | 
      | 
(21,917 | 
) | 
  | 
      | 
(31,231 | 
) | 
 
    | Adjustments to fair value for the period | 
  | 
      | 
7,497 | 
  | 
  | 
      | 
(1,721 | 
) | 
  | 
      | 
4,183 | 
  | 
 
    | Balance, December 31, 2020 | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
 
 
 | 
| Schedule of recurring and nonrecurring fair value measurements | 
    |   | 
  | 
    Fair   Value | 
  | 
  | 
    Level 1 | 
  | 
  | 
    Level 2 | 
  | 
  | 
    Level 3 | 
  | 
  | 
    Benefit Plan   Percentage   Allocation | 
  | 
 
    | Assets: | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
 
    | Derivative financial instruments | 
  | 
    $ | 
17,149 | 
  | 
  | 
    $ | 
17,149 | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
      | 
  | 
  | 
 
    | Long-lived assets held-for-sale | 
  | 
      | 
58,295 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
58,295 | 
  | 
  | 
      | 
  | 
  | 
 
    | Defined benefit plan assets(1) (pooled separate accounts): | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    | Large U.S. Equity(2) | 
  | 
      | 
5,470 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
5,470 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
31 | 
% | 
 
    | Small/Mid U.S. Equity(3) | 
  | 
      | 
2,605 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
2,605 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
15 | 
% | 
 
    | International Equity(4) | 
  | 
      | 
2,921 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
2,921 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
17 | 
% | 
 
    | Fixed Income(5) | 
  | 
      | 
6,592 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
6,592 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
37 | 
% | 
 
    |   | 
  | 
    $ | 
93,032 | 
  | 
  | 
    $ | 
17,149 | 
  | 
  | 
    $ | 
17,588 | 
  | 
  | 
    $ | 
58,295 | 
  | 
  | 
      | 
  | 
  | 
 
    |   | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    | Liabilities: | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    |   | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
      | 
  | 
  | 
 
 
    |   | 
  | 
    Fair  Value | 
  | 
  | 
    Level 1 | 
  | 
  | 
    Level 2 | 
  | 
  | 
    Level 3 | 
  | 
  | 
    Benefit Plan   Percentage   Allocation | 
  | 
 
    | Assets: | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
  | 
      | 
  | 
 
    | Derivative financial instruments | 
  | 
    $ | 
2,438 | 
  | 
  | 
    $ | 
2,438 | 
  | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
      | 
  | 
  | 
 
    | Long-lived assets held-for-sale | 
  | 
      | 
70,400 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
70,400 | 
  | 
  | 
      | 
  | 
  | 
 
    | Defined benefit plan assets(1) (pooled separate accounts): | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    | Large U.S. Equity(2) | 
  | 
      | 
4,654 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
4,654 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
30 | 
% | 
 
    | Small/Mid U.S. Equity(3) | 
  | 
      | 
2,348 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
2,348 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
15 | 
% | 
 
    | International Equity(4) | 
  | 
      | 
2,596 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
2,596 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
17 | 
% | 
 
    | Fixed Income(5) | 
  | 
      | 
6,056 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
6,056 | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
38 | 
% | 
 
    |   | 
  | 
    $ | 
88,492 | 
  | 
  | 
    $ | 
2,438 | 
  | 
  | 
    $ | 
15,654 | 
  | 
  | 
    $ | 
70,400 | 
  | 
  | 
      | 
  | 
  | 
 
    |   | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    | Liabilities: | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
    | Derivative financial instruments | 
  | 
    $ | 
(1,860 | 
) | 
  | 
    $ | 
(1,860 | 
) | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
— | 
  | 
  | 
      | 
  | 
  | 
 
    | Warrants | 
  | 
      | 
(977 | 
) | 
  | 
      | 
— | 
  | 
  | 
      | 
— | 
  | 
  | 
      | 
(977 | 
) | 
  | 
      | 
  | 
  | 
 
    |   | 
  | 
    $ | 
(2,837 | 
) | 
  | 
    $ | 
(1,860 | 
) | 
  | 
    $ | 
— | 
  | 
  | 
    $ | 
(977 | 
) | 
  | 
      | 
  | 
  | 
 
    |   | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
  | 
      | 
  | 
  | 
 
 
 |