Stockholders' Deficit - Additional Information (Details) | Jan. 31, 2020$ / sharesshares | Jan. 14, 2020USD ($)$ / sharesshares | Nov. 14, 2019USD ($)$ / sharesshares | Oct. 28, 2019USD ($)$ / sharesshares | Oct. 24, 2019$ / sharesshares | Oct. 11, 2019$ / sharesshares | Sep. 10, 2019USD ($)$ / sharesshares | Aug. 28, 2019USD ($)$ / sharesshares | Aug. 14, 2019USD ($)$ / sharesshares | Jul. 24, 2019USD ($)$ / shares | Jul. 08, 2019USD ($)$ / sharesshares | Jun. 24, 2019USD ($)$ / sharesshares | May 15, 2019USD ($)$ / sharesshares | May 14, 2019USD ($)$ / sharesshares | May 10, 2019USD ($)$ / sharesshares | May 03, 2019USD ($)$ / sharesshares | Apr. 29, 2019USD ($)$ / sharesshares | Apr. 26, 2019USD ($)$ / sharesshares | Apr. 16, 2019USD ($)$ / sharesshares | Mar. 29, 2019USD ($) | Nov. 20, 2018USD ($)$ / sharesshares | Nov. 19, 2018USD ($)shares | Aug. 07, 2017USD ($)$ / sharesshares | Aug. 03, 2017USD ($)$ / sharesshares | Jan. 31, 2020USD ($)$ / sharesshares | Nov. 30, 2019USD ($)$ / sharesshares | Oct. 31, 2019USD ($) | Dec. 31, 2018USD ($)$ / sharesshares | Aug. 31, 2017 | May 31, 2017shares | Sep. 30, 2018USD ($)shares | Dec. 31, 2019USD ($)$ / sharesshares | Dec. 31, 2018USD ($)$ / sharesshares | Jan. 13, 2020shares | Nov. 15, 2019 | Nov. 08, 2019USD ($) | Oct. 10, 2019$ / shares | Sep. 30, 2019shares | Aug. 17, 2019$ / shares | Jul. 26, 2019USD ($) | Jul. 10, 2019USD ($)$ / sharesshares | Jul. 09, 2019$ / shares | Mar. 28, 2019USD ($)$ / shares | Jan. 01, 2019USD ($) | Dec. 10, 2018USD ($) | Dec. 06, 2018 |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | 1,643,991 | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of Series A preferred stock for cash | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 14,221,000 | $ 1,415,000 | | | | | | | | | | | | | |
Warrants not settleable in cash, fair value disclosure | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 6,900,000 | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45,130,273 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (2,649,982) | | | | | | | | | | | | | | |
Proceeds from exercise of warrants, net of issuance costs | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1,000 | $ 57,767,000 | | | | | | | | | | | | | |
Derivative liabilities | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 41,000,000 | | | | | | | | | | | | $ 41,000,000 | | |
Stock price (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 3.34 | | | | $ 3.09 | $ 3.34 | | | | | | | | | | $ 2.10 | | | |
Preferred stock, shares outstanding, ending balance | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14,656 | | | | 8,280 | 14,656 | | | | | | | | | | | | | |
Adjustments to adjustments additional paid in capital, other | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 6,800,000 | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | | | | | $ 8,700,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, beneficial ownership limitation | | | | | | | 6.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | | | $ 0.0001 | $ 0.0001 | | | | | | | | | | | | | |
Interest expense | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 58,665,000 | $ 42,703,000 | | | | | | | | | | | | | |
Fair value adjustment of debt | $ | | | | | | | | | | $ 900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Percent of composite trading volume | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10.00% | | | | | | | | | | | | | | |
Debt instrument, fair value | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 149,300,000 | | | | $ 194,800,000 | $ 149,300,000 | | | | | | | | | | | | | |
Warrants exercised, net settled (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2,500,000 | | | | | | | | | | | | | | |
Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3,610,944 | 205,168 | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (2,515,174) | (20,891,038) | | | | | | | | | | | | | |
Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.21 | | | | | |
Stock price volatility | July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.24 | | | | | |
Measurement Input, Risk Free Interest Rate | July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.0182 | | | | | |
Measurement Input, Exercise Price | July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.87 | | | | | |
Measurement Input, Expected Term | July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.9 | | | | | |
Measurement Input, Expected Dividend Rate | July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | |
Series B Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, shares outstanding, ending balance | shares | | | | | 6,376.28 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Series B Preferred Stock | Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion of series B preferred shares into common shares (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1,012,071 | | | | | | | | | | | | | | |
Series D Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, stated value | | | | | | | | | | | | | | | | | | | | | | | | $ 1,000 | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, conversion price per share to common stock | | | | | | | | | | | | | | | | | | | | | | | | 4.26 | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, shares outstanding, ending balance | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8,280 | | | | 8,280 | 8,280 | | | | | | | | | | | | | |
Common stock, dividends, per share, declared | | | | | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | | | | | | | | | | | | | | | | | | | | | |
Dividends, preferred stock, total | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | | | | | | | | | | | |
Preferred stock, beneficial ownership limitation | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9.99% | | | | | | | | | | | | | | |
Convertible Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, dividend rate | | | | | 17.38% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock (in dollars per share) | | | | | $ 0.0001 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, beneficial ownership limitation, percent | | | | | 4.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, percent of shares outstanding after conversion, maximum | | | | | 9.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion of series B preferred shares into common shares (in shares) | shares | | | | | 1,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
DSM Supply Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | 1,643,991,000,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of Series A preferred stock for cash | $ | | | | | | | | | | | | | | | | | | | | $ 7,300,000 | | $ 6,100,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 4.41 | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | | | 181 days | | | | | | | | | | | | | | | | | | | | | | | | | |
Subsequent Event | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | $ 2.87 | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | 1,200,000 | | | | | | | | | | | | | | | | | | | | | | | | 1,200,000 | | | | | | | | | 4,877,386 | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | (25,326,095) | (4,877,386) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from exercise of warrants, net of issuance costs | $ | | $ 14,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument, amount | $ | | | | | | | | | | | | | | | | | | | | | | | | | $ 75,000,000 | | | | | | | | | | | | | | | | | | | | | |
Subsequent Event | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | 10,200,000 | | | | | | | | | | | | | | | | | | | | | | | | 10,200,000 | | | | | | | | | | | | | | | | | | | | | |
Subsequent Event | Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | 7,500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
DSM International B.V. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Designated holder maximum common stock ownership | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 33.00% | | | | | | | | | | | | | | | | | |
DSM International B.V. | Designated Director One | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Designated director, minimum beneficial ownership level | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.50% | | | | | | | | | | | | | | | | | |
DSM International B.V. | Designated Director Two | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Designated director, minimum beneficial ownership level | | | | | | | | | | | | | | | | | | | | | | | 10.00% | | | | | | | | | | | | | | | | | | | | | | | |
DSM International B.V. | Series B Convertible Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | 25,000 | | | | | | | | | | | | | | | | | | | | | | | |
Stock price (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | $ 1,000 | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of convertible preferred stock | $ | | | | | | | | | | | | | | | | | | | | | | | $ 25,900,000 | | | | | | | | | | | | | | | | | | | | | | | |
Vivo Capital LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | | $ 4,500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | | | $ 15,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | | 1,300,000 | 8,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | $ 5,000,000 | $ 5,800,000 | $ 23,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial common stock ownership maximum percentage | | | | | | | | | | | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement | DSM | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | 1,643,991 | | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | | | | | | | | | | | $ 3.68 | | | | | | | | | | | | | | | | | | | | | | | | | |
Derivative liabilities | $ | | | | | | | | | | | | | | | | | | | | | $ 1,200,000 | | | | | | | | | | | $ 1,800,000 | | | | | | | | | | | $ 3,800,000 | | | |
Gain (loss) from fair value adjustment in collaboration agreement | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 600,000 | | | | | | | | | | | | | | |
Private Placement | Vivo Capital LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | 900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | | | | | | | $ 4.76 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | 1,200,000 | 300,000 | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | | | | | | $ 4.02 | $ 4.02 | $ 4.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | 2,800,000 | 6,700,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | | | | | | | | $ 5.12 | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | | | | $ 20,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Securities Purchase Agreement | Vivo Capital LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ | | | | | | | | | | | | | | | | | | | | | | | | $ 24,800,000 | | | | | | | | | | | | | | | | | | | | | | |
Securities Purchase Agreement | Vivo Capital LLC | Series D Convertible Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | 12,958 | | | | | | | | | | | | | | | | | | | | | | |
Stock price (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | $ 1,000 | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6.0% Due in 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 60,000,000 | |
Interest rate per annum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6.00% | 6.00% |
August 2013 Convertible Notes | Wolverine | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | $ 5,100,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument (in shares) | shares | | | | | | | | | | | 1,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants not settleable in cash, fair value disclosure | $ | | | | | | | | | | | $ 1,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Shares issued (in dollars per share) | | | | | | | | | | | $ 3.30 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument, shares issued, value | $ | | | | | | | | | | | $ 5,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rule 144A Convertible Notes | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | | $ 5,000,000 | $ 13,500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument (in shares) | shares | | | | | | | | | | | | | | 1,100,000 | 3,500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, warrants issued | shares | | | | | | | | | | | | | | | 1,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | $ 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rule 144A Convertible Notes | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | | $ 5,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Rule 144A Convertible Notes | Maxwell (Mauritius) Pte Ltd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | $ 10,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument (in shares) | shares | | | | | | | | | | | | | 2,500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 60,000,000 | | | | | $ 57,918,000 | | | | | | | | | | | | | |
Interest expense | $ | | | | | | | | | | | | $ 4,400,000 | | | | | | | | | | | | | | | | $ 5,300,000 | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 66,000,000 | | | | | | | | | | |
Debt conversion, converted instrument, amount | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 15,000,000 | | | | | | | | | | | | | | |
Interest rate per annum | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6.00% | | | | | 6.00% | | 6.00% | 6.00% | | | | | | | | | | |
The Naxyris Loan Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ | | | | $ 24,400,000 | | | | | $ 10,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate per annum | | | | | | | | | 12.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | $ 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | 4,900,000 | | | | | | 400,000 | | | | 3,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | | | | | $ 5,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial common stock ownership maximum percentage | | | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjustments to additional paid-in capital warrant exercised | $ | | | | | | | | $ 1,100,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, cashless exercise term | | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | | | | | $ 8,700,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, unamortized discount | $ | | | | | | | | $ 6,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, percent of face amount | | | | | | | | 100.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, relative fair value | $ | | | | | | | | $ 5,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate per annum | | | | | | | | 12.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 3.67 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 0.0150 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 2 | | | | | | 1.7 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Minimum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 0.98 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
August Foris Credit Agreement | Maximum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | 1 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | $ 400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | $ 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, unamortized discount | $ | | | $ 6,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument, amount | $ | | | $ 50,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate per annum | | | 12.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | $ 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Senior Convertible Notes Due 2022 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 10,000,000 | | | | | | | | | | | | | | |
Interest rate per annum | | | | | | | | | | 5.00% | | | | | | | | | | | | | | | | | | | | | | 15.00% | | | 5.00% | | | | | | | | | | | |
Senior Convertible Notes Due 2022 | Convertible Debt | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 10,000,000 | | | | | | | | | | | | | | |
Senior Convertible Notes Due 2022 | Minimum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, percent of face amount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 110.00% | | | | | | | | | | | | | | |
Senior Convertible Notes Due 2022 | Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, percent of face amount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 115.00% | | | | | | | | | | | | | | |
Senior Convertible Notes Due 2022 | Subsequent Event | Convertible Debt | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, original debt | $ | | $ 10,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument (in shares) | shares | | 2,742,160 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term | | 18 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ | | $ 51,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, fair value | $ | | $ 4,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cost approach borrowing rate | | 9.75% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
May 2017 Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | $ 2.87 | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6,078,156 | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | |
May 2017 Warrants, Warrant 1 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14,768,380 | | | | | | | | | | | | | | | | |
Class of warrant or right, dilution period | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 years | | | | | | | | | | | | | | | | |
May 2017 dilution warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.0015 | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4,795,924 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1,758,009) | | | | | | | | | | | | | | |
Dilution Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from exercise of warrants, net of issuance costs | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | | | | | | | | | | | |
Preferred stock effective conversion price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | |
Class of warrant or right, exercises during the period | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2,600,000 | | | | | | | | | | | | | | |
DSM Warrants | DSM International B.V. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | $ 6.30 | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | 3,968,116 | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | |
DSM Dilution Warrant | DSM International B.V. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock effective conversion price | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | |
August 2017 Vito Dilution Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (4,678) | | | | | | | | | | | | | | | |
Designated holder maximum common stock ownership | | | | | | | | | | | | | | | | | | | | | | | | 33.00% | | | | | | | | | | | | | | | | | | | | | | |
Minimum beneficial ownership level to designate a director | | | | | | | | | | | | | | | | | | | | | | | | 4.50% | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, stock ownership percentage, restriction on ability to exercise | | | | | | | | | | | | | 4.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | $ 3.90 | | | | | | $ 4.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants not settleable in cash, fair value disclosure | $ | | | | | | | | | | | | | $ 5,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 0.96 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Minimum | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 4.27 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Minimum | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 4.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Minimum | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 0.0220 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Maximum | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 4.54 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Maximum | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Other Non-affiliated Investors | Maximum | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | 0.0226 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument (in shares) | shares | | | | | | | | | | | | | | 1,100,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, warrants issued | shares | | | | | | | | | | | | | | 400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | 3.90 | | | | | | $ 4.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | Rule 144A Convertible Notes | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, warrants issued | shares | | | | | | | | | | | | | | | 1,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | $ 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of common stock for cash (in shares) | shares | | | | | | | | | | | | | 7,100,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of Series A preferred stock for cash | $ | | | | | | | | | | | | | $ 30,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | 1,700,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants not settleable in cash, fair value disclosure | $ | | | | | | | | | | | | | $ 3,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, cashless exercise term | | | | | | | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate per annum | | | | | | | | | | | | | 6.50% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued for 2014 Rule 144A Convertible Notes Exchanges | August Foris Credit Agreement | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | 3.90 | | | | | | $ 4.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | 400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | Wolverine | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | 3.33 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | Wolverine | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | Wolverine | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | Wolverine | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | 0.0188 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | Wolverine | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued For August 2013 Convertible Notes | August 2013 Convertible Notes | Wolverine | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, warrants issued | shares | | | | | | | | | | | 1,100,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants not settleable in cash, fair value disclosure | $ | | | | | | | | | | | $ 1,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement, April 16, 2019 | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | | 5,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement, April 26, 2019 | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | 3.90 | | | | | | | | | | $ 5.12 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement, April 26, 2019 | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | $ 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | 1,600,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement, April 26, 2019 | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | $ 5.12 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | 4,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement, April 26, 2019 | August Foris Credit Agreement | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | $ 3.90 | | | | | | | | | | $ 5.12 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | 3,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement April 29, 2019 | Vivo Capital LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | $ 4.76 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | 1,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement April 29, 2019 | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | $ 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | 300,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Private Placement May 3, 2019 | Other Non-affiliated Investors | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | $ 5.02 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | 1,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cash and Dilution Warrants and Temasek Funding Warrant | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8,100,000 | | | | | | | | |
July Foris Credit Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 7.52 | | $ 2.87 | $ 7.52 | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4,900,000 | | | | | |
Debt instrument, unamortized discount | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 4,000,000 | | | | | |
July Foris Credit Agreement | Foris Ventures, LLC | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Long-term line of credit | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 8,000,000 | 16,000,000 | | | | | |
Debt instrument, face amount | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 8,000,000 | | | | | |
Interest rate per annum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12.50% | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | $ 5.12 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | 200,000 | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, percent of face amount | | | | | | | | | | | | 4.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Minimum | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 3.55 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Minimum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Minimum | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 0.0172 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Maximum | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 4.39 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Maximum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 0.96 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants Issued in Exchange for 6 Percent Convertible Notes Due 2021 | Maximum | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | 0.0216 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | $ 2.87 | | | $ 5.12 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | 0.93 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | 0.0186 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | 1.8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible Senior Notes, 6 Percent Due in 2021 | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | | | | $ 7,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 4.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 0.0167 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Minimum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Investor Credit Agreements | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | $ 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | 3,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, beneficial ownership limitation | | | | | | | 9.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock repurchase program, period in force | | | | | | | 60 days | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, term | | | | | | | 120 days | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants or rights outstanding, reduction in exercise price | | | | | | | 10.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants or rights outstanding, additional reduction in exercise price | | | | | | | 5.00% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrant, failure of registration, period | | | | | | | 90 days | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, cashless exercise term | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Investor Credit Agreements | Minimum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | $ 3.31 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Investors Warrants | Investor Credit Agreements | Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | 3.90 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Foris Loan And Security Amendment | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Foris Loan And Security Amendment | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.65 | | | | | | | | | |
Adjustments to additional paid-in capital warrant exercised | $ | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 4,100,000 | | | | | | | | | | | | | | | | | | | |
Foris Loan And Security Amendment | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.87 | | | | | | | | | |
Foris Loan And Security Amendment | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.94 | | | | | | | | | |
Foris Loan And Security Amendment | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.0163 | | | | | | | | | |
Foris Loan And Security Amendment | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | |
November 2019 Foris warrant | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | $ 3.87 | | | | | | $ 3.87 | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | 1,000,000 | | | | | | | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1,000,000 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | |
Beneficial common stock ownership maximum percentage | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, cashless exercise term | | | | | | | | | | | | | | | | | | | | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | |
November 2019 Foris warrant | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | 4 | | | | | | | | | | | | | | | | | | | | |
Adjustments to additional paid-in capital warrant exercised | $ | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2,100,000 | | | | | | | | | | | | | | | | | | | | |
November 2019 Foris warrant | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | 3.87 | | | | | | | | | | | | | | | | | | | | |
November 2019 Foris warrant | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | |
November 2019 Foris warrant | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | 0.0163 | | | | | | | | | | | | | | | | | | | | |
November 2019 Foris warrant | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | 1,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial common stock ownership maximum percentage | | | | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjustments to additional paid-in capital warrant exercised | $ | | | | | | | | | $ 2,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, cashless exercise term | | | | | | | | | 6 months | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 3.59 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0.0158 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LSA Amendment Warrants | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2,000,000 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | $ 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | | | | | | $ 4,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, relative fair value | $ | | | | | | | | | $ 3,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 3.59 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0.0158 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 2.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Naxyris LSA warrants | The Naxyris Loan Agreement | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | | | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | $ 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 3.87 | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Additional Warrants Issued (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2,000,000 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of warrants (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | | $ 3,600,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, relative fair value | $ | | | | $ 2,800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 3.69 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Measurement Input, Strike Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0.94 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0.0164 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Measurement Input, Expected Term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
October 2019 Naxyris warrant | Measurement Input, Expected Dividend Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | $ 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, number of securities called by warrants or rights (in shares) | shares | | | | | | | 2,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding | $ | | | $ 4,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, term | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Fair value of common stock on issue date | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 3.89 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Measurement Input, Risk Free Interest Rate | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 0.0158 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Measurement Input, Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Minimum | Stock price volatility | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, measurement input | | | 0.95 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Schottenfeld November 2019 Credit and Security Agreement | Investor Credit Agreements | Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | $ 3.87 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
April 6th 2019 PIPE Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 3.9 | | | | | | | | | | | | | | |
April 29 2021 PIPE Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.76 | | | | | | | | | | | | | | |
APril 2019 PIPE Warrants Due May 3 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5.02 | | | | | | | | | | | | | | |
September 2019 Investor Credit Agreement Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.87 | | | | | | | | | | | | | | |
November 2019 Investor Credit Agreement Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.9 | | | | | | | | | | | | | | |
May 2019 Note Exchange Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.87 | | | | | | | | | | | | | | |
June 2019 Note Exchange Warrants | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5.12 | | | | | | | | | | | | | | |
May 2019 6.5% Note Exchange Warrants, Due May 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3.9 | | | | | | | | | | | | | | |
May 2019 6.5% Note Exchange Warrants, Due May 14, 2021 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5.02 | | | | | | | | | | | | | | |
August 2018 Warrant Exercise Agreements, Due May 17, 2020 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.87 | | | | | | | | | | | | | | |
August 2018 Warrant Exercise Agreements, Due May 20, 2020 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exercise price of warrants or rights (in dollars per share) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 7.52 | | | | | | | | | | | | | | |