Convertible Preferred Stock and Stockholders Equity - Additional Information (Details) | Mar. 02, 2020USD ($)shares | Feb. 28, 2020USD ($)$ / sharesshares | Sep. 24, 2019 | Aug. 29, 2019USD ($)shares | Jan. 04, 2019USD ($) | Jun. 23, 2017shares | Aug. 31, 2016USD ($)$ / shares | Mar. 31, 2020USD ($)Warrant$ / sharesshares | Dec. 31, 2018USD ($)$ / sharesshares | Dec. 31, 2017USD ($)shares | Dec. 31, 2016$ / sharesshares | Dec. 31, 2018$ / sharesshares | Dec. 31, 2019$ / sharesshares | May 29, 2019shares |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Common stock, shares authorized | | | | | | | | 50,000,000 | | | | | 50,000,000 | |
Preferred stock, shares authorized | | | | | | | | 5,000,000 | | | | | | |
Common stock, par value per share | $ / shares | | | | | | | | $ 0.0001 | | | | | $ 0.0001 | |
Preferred stock, par value per share | $ / shares | | | | | | | | $ 0.0001 | | | | | | |
Business combination shares issued for each share of common stock | | | | | | | | 1.16 | | | | | | |
Conversion ratio of reverse stock split | | | | 0.5 | | | | 0.5 | | | | | | |
Preferred stock, issuance costs | $ | | | | | | | | $ 77,000 | | | | | | |
Common stock warrants issued | | | | | | | | | | 102,740 | | | | |
Stock-based compensation expense recognized as a result of accelerated vesting | $ | | | | | $ 400,000 | | | | | | | | | |
2010 Stock Option Plan | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Common stock initially reserved for issuance | | | | | | | | 1,000,000 | | | | | | |
Contractual term of options granted | | | | | | | | 10 years | | | | | | |
Options remain available for future grant | | | | | | | | 39,354 | | | | | 100,000 | |
2010 Stock Option Plan | Incentive Stock Options | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Options granted to shareholder, percentage | | | | | | | | 10.00% | | | | | | |
Minimum | 2010 Stock Option Plan | Incentive and Non-statutory Stock Options | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Options granted, exercise price expressed as a percentage of fair market value | | | | | | | | 100.00% | | | | | | |
Minimum | 2010 Stock Option Plan | Incentive Stock Options | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Options granted, exercise price expressed as a percentage of fair market value | | | | | | | | 110.00% | | | | | | |
Public Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Warrants issued to purchase common stock | | | | | | 14,936,250 | | | | | | | | |
Warrants expiration period | | | | | | | | 5 years | | | | | | |
Number of warrants entitle holder to purchase one share | Warrant | | | | | | | | 4 | | | | | | |
Warrants outstanding | | | | | | | | 14,936,250 | | | | | 14,936,250 | |
Series C Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Warrants expiration period | | | | | | | | 3 years | | | | | | |
Warrants outstanding | | | | | | | | 201,708 | | | | | 202,897 | |
Placement Agent Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Warrants issued to purchase common stock | | | | | | | | | | | 168,522 | 72,658 | | |
Warrants expiration period | | | | | | | | | 7 years | | 7 years | 7 years | | |
Warrants outstanding | | | | | | | | | | | | | 241,217 | |
Placement Agent Warrants | 2018 Convertible Bridge Notes | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Warrants issued to purchase common stock | | | | | | | | 15,724 | | | | | | |
Warrants expiration period | | | | | | | | 7 years | | | | | | |
Warrants outstanding | | | | | | | | 254,258 | | | | | | |
Management Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Warrants expiration period | | | | | | | | 10 years | | | | | | |
Warrants outstanding | | | | | | | | 22,320 | | | | | 22,320 | |
Securities Purchase Agreement | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, issuance costs | $ | | $ 5,100,000 | | | | | | | | | | | | |
Gross proceeds from PIPE financing | $ | | $ 65,000,000 | | | | | | | | | | | | |
2020 PIPE Financing | Securities Purchase Agreement | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
PIPE financing closing date | | | | | | | | Mar. 4, 2020 | | | | | | |
Common Stock | Public Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Number of shares issued for each warrant | | | | | | | | 0.25 | | | | | | |
Exercise price of warrant | $ / shares | | | | | | | | $ 23 | | | | | | |
Common Stock | Series C Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Exercise price of warrant | $ / shares | | | | | | | | $ 9.54 | | | | | | |
Common Stock | Placement Agent Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Number of shares issued for each warrant | | | | | | | | | 1 | | 1 | 1 | | |
Exercise price of warrant | $ / shares | | | | | | | | | $ 9.54 | | $ 8.68 | $ 9.54 | | |
Common Stock | Placement Agent Warrants | 2018 Convertible Bridge Notes | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Number of shares issued for each warrant | | | | | | | | 1 | | | | | | |
Exercise price of warrant | $ / shares | | | | | | | | $ 9.54 | | | | | | |
Common Stock | Management Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Exercise price of warrant | $ / shares | | | | | | | | $ 1.08 | | | | | | |
Warrants vesting period | | | | | | | | 4 years | | | | | | |
Common Stock | 2020 PIPE Financing | Securities Purchase Agreement | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Issuance of preferred stock, price per share | $ / shares | | $ 10.50 | | | | | | | | | | | | |
Issuance of stock | | 2,467,724 | | | | | | | | | | | | |
Issuance price per share | $ / shares | | $ 10.50 | | | | | | | | | | | | |
Series C convertible preferred stock | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Issuance of preferred stock, total offering amount | $ | | | | | | | $ 15,000,000 | | | | | | | |
Issuance of preferred stock, price per share | $ / shares | | | | | | | $ 9.54 | | | | | | | |
Preferred stock, shares issued during period | | | | | | | | | 506,539 | 559,849 | | | | |
Proceeds from issuance of Convertible Preferred Stock | $ | | | | | | | | | $ 4,800,000 | $ 5,300,000 | | | | |
Preferred stock, issuance costs | $ | | | | | | | | | $ 300,000 | $ 400,000 | | | | |
Issuance price per share | $ / shares | | | | | | | $ 9.54 | | | | | | | |
Series C convertible preferred stock | Series C Warrants | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Percentage of warrants issued in connection with preferred stock purchased | | | | | | | | 20.00% | | | | | | |
Series C convertible preferred stock | Series C Warrants | Minimum | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock value of shares purchased in single closing | $ | | | | | | | | $ 1,000,000 | | | | | | |
Series C convertible preferred stock | Common Stock | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Series c convertible preferred stock convert into common stock shares, conversion ratio | | | 1 | | | | | | | | | | | |
Convertible preferred stock convertible into shares of common stock | | | | | | | | | | | | | | 1 |
Series A Convertible Preferred Stock | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, shares authorized | | | | | | | | 1,250 | | | | | 1,250 | |
Preferred stock, par value per share | $ / shares | | | | | | | | $ 0.0001 | | | | | $ 0.0001 | |
Preferred stock, shares issued during period | | | | 1,231 | | | | | | | | | | |
Convertible preferred stock convertible into shares of common stock | | | | | | | | 500 | | | | | | |
Issuance of preferred stock, total offering amount | $ | | | | $ 4,000,000 | | | | | | | | | | |
Convertible preferred stock convertible into shares of common stock, conversion price per share | $ / shares | | | | | | | | $ 6.50 | | | | | | |
Event of convertible preferred stock be convertible if holder beneficially owning outstanding shares of common stock percentage | | | | | | | | 9.99% | | | | | | |
Voting rights of preferred stock holder | | | | | | | | The shares of the Series A Convertible Preferred Stock have no voting rights, except with respect to certain protective provisions set forth in the Series A Certificate of Designation relating to the powers, preferences and rights of such shares. | | | | | | |
Series B-1 Convertible Preferred Stock | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, shares authorized | | | | | | | | 3,200 | | | | | 0 | |
Preferred stock, par value per share | $ / shares | | | | | | | | $ 0.0001 | | | | | $ 0.0001 | |
Preferred stock, shares issued during period | | | | | | | | 3,199 | | | | | | |
Proceeds from issuance of Convertible Preferred Stock | $ | | | | | | | | $ 30,971,000 | | | | | | |
Convertible preferred stock convertible into shares of common stock | | | | | | | | 1,000 | | | | | | |
Convertible preferred stock convertible into shares of common stock, conversion price per share | $ / shares | | | | | | | | $ 10.50 | | | | | | |
Voting rights of preferred stock holder | | | | | | | | The Series B-1 Shares have no voting rights, except with respect to certain protective provisions set forth in the Series B-1 Certificate of Designation relating to the powers, preferences and rights of such shares. | | | | | | |
Series B-1 Convertible Preferred Stock | 2020 PIPE Financing | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, shares issued during period | 3,199 | | | | | | | | | | | | | |
Issuance of preferred stock, total offering amount | $ | $ 33,600,000 | | | | | | | | | | | | | |
Series B-1 Convertible Preferred Stock | 2020 PIPE Financing | Securities Purchase Agreement | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Issuance of preferred stock, price per share | $ / shares | | $ 10,500 | | | | | | | | | | | | |
Issuance of stock | | 3,199 | | | | | | | | | | | | |
Issuance price per share | $ / shares | | $ 10,500 | | | | | | | | | | | | |
Preferred stock designated shares authorized and unissued | | 3,200 | | | | | | | | | | | | |
Series B-2 Convertible Preferred Stock | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, shares authorized | | | | | | | | 525 | | | | | 0 | |
Preferred stock, par value per share | $ / shares | | | | | | | | $ 0.0001 | | | | | $ 0.0001 | |
Preferred stock, shares issued during period | | | | | | | | 524 | | | | | | |
Proceeds from issuance of Convertible Preferred Stock | $ | | | | | | | | $ 5,071,000 | | | | | | |
Convertible preferred stock convertible into shares of common stock | | | | | | | | 1,000 | | | | | | |
Convertible preferred stock convertible into shares of common stock, conversion price per share | $ / shares | | | | | | | | $ 10.50 | | | | | | |
Event of convertible preferred stock be convertible if holder beneficially owning outstanding shares of common stock percentage | | | | | | | | 9.99% | | | | | | |
Voting rights of preferred stock holder | | | | | | | | The Series B-2 Shares have no voting rights, except with respect to certain protective provisions set forth in the Series B-2 Certificate of Designation relating to the powers, preferences and rights of such shares. | | | | | | |
Conversion of stock description | | | | | | | | Each Series B-2 Share will be convertible into Company common stock at the option of the holder, provided that conversion will be prohibited (i) until the first trading day after the Stockholder Approval and (ii) following the Stockholder Approval, if, as a result of any such conversion, the holder would beneficially own in excess of 9.99% of the total number of shares of Company common stock outstanding immediately after giving effect to such conversion. | | | | | | |
Series B-2 Convertible Preferred Stock | 2020 PIPE Financing | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Preferred stock, shares issued during period | | | | | | | | 524 | | | | | | |
Issuance of preferred stock, total offering amount | $ | | | | | | | | $ 5,500,000 | | | | | | |
Series B-2 Convertible Preferred Stock | 2020 PIPE Financing | Securities Purchase Agreement | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | |
Issuance of preferred stock, price per share | $ / shares | | $ 10,500 | | | | | | | | | | | | |
Issuance of stock | | 524 | | | | | | | | | | | | |
Issuance price per share | $ / shares | | $ 10,500 | | | | | | | | | | | | |
Preferred stock designated shares authorized and unissued | | 525 | | | | | | | | | | | | |