STOCKHOLDERS' EQUITY (Details Textual) - USD ($) | Dec. 11, 2017 | Dec. 02, 2016 | Feb. 04, 2016 | Feb. 28, 2018 | Jan. 31, 2018 | Dec. 19, 2017 | Oct. 31, 2017 | Apr. 30, 2017 | Mar. 31, 2017 | Feb. 28, 2017 | Dec. 31, 2016 | Jun. 30, 2016 | Jun. 24, 2016 | May 31, 2016 | Mar. 31, 2016 | Mar. 28, 2016 | Feb. 29, 2016 | Feb. 25, 2016 | Mar. 31, 2017 | Dec. 31, 2017 | Oct. 31, 2017 | Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015 | Jun. 17, 2015 | Jun. 16, 2015 |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 50,000,000 | | | | | | | | | 50,000,000 | | 50,000,000 | 50,000,000 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | | | | | | | | | | | | | 9,374 | | | | | | | | |
Stock issued (in shares) | | | | | | | | | | | | | | 4,843 | | | | | | | | | | | | |
Number of shares of common stock to be acquired | | | | | | 1,117,800 | | | | 100,000 | | | | | | | | 304.615 | | | | | | | | |
Number of share of preferred stock converted in common shares | | | | | | | | 15,995 | | | | | | | | | | 2,855,469 | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | | | | | | | | | | | $ 520,000 | $ 530,000 | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 3.40 | | | | $ 3.45 | | | | | | | | | | | | | | | | |
Common Stock Prior To Adjustment | | | | | | | | | | | | | | | | | | 2,729,489 | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Share Price | | | | | | | | | | | | | | $ 4.12 | | | | | | | | | | | | |
Common Stock, Shares Authorized | | | | | | | | | | | 200,000,000 | | | | | | | | | 200,000,000 | | 200,000,000 | 200,000,000 | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | $ 20,000 | $ 35,599 | | | | | | | $ 0 | $ 55,599 | | | |
Additional Collateral, Aggregate Fair Value | | | | | | | | | | | | | | | | | | $ 580,000 | | | | | | | | |
Conversion of Stock, Amount Issued | | | | | | | | | | | | | | | | | | $ 990 | | | | | | | | |
Proceeds from Issuance of Common Stock | | | | | | | | | | | | | | | | | | | | | | 13,193,831 | 19,795,476 | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | 9,480 | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | 68,002 | | | | |
Deferred Compensation Liability, Current | | | | | | | | | | | | | | | | | | | | $ 73,000 | | 73,000 | | | | |
Share-based Compensation | | | | | | | | | | | | | | | | | | | | | | 1,260,179 | 2,311,410 | | | |
Stock Issued During Period, Shares, Conversion of Units | | | | | | | | 15,995 | | | | | | | | | | | | | | | | | | |
Deferred Compensation Liability, Current and Noncurrent | | | | | | | | | | | | | | | | | | | | $ 520,000 | | 520,000 | | | | |
Accrued Bonus Redulction Related To Vesting Of Restricted Stock | | | | | | | | | | | | | | | | | | | | | | $ 511,526 | $ 0 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price | | | | | | | | | | | $ 7.21 | | | | | | | | | $ 7.21 | | $ 7.21 | $ 7.21 | $ 7.2 | | |
Underwriting Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock issued (in shares) | 2,430,000 | | | | | 2,794,500 | | | | | | | | | | | | | | | | | | | | |
Number of shares of common stock to be acquired | 972,000 | | | | | 145,800 | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ 2.80 | | | | | | | | | | | | | | | | | | | | | | | | | |
Gross proceeds from sale of units | | | | | | $ 7,800,000 | | | | | | | | | | | | | | | | | | | | |
Legal Fees | | | | | | $ 6,500,000 | | | | | | | | | | | | | | | | | | | | |
Accounts Payable and Accrued Liabilities [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Deferred Compensation Liability, Current | | | | | | | | | | | $ 530,000 | | | | | | | | | $ 59,000 | | $ 59,000 | $ 530,000 | | | |
Share-based Compensation | | | | | | | | | | | | | | | | | | | | | | | 530,000 | | | |
Laidlaw Company UK Ltd [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock issued (in shares) | | 2,205,883 | | | | | | | | | | | | | | | | | | | | | | | | |
Payments of Stock Issuance Costs | | $ 859,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | $ 3.40 | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Common Stock | | $ 6,600,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | | | | | | | | | | 50,000,000 | | 50,000,000 | | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | $ 0.0001 | | | | |
Amendment [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock, Shares Authorized | | | | | | | | | | | | | | | | | | | | | | | | | 200,000,000 | 800,000,000 |
Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of common shares issued upon conversion | | | | | | | | | | | | | | | | 261,590 | | | | | | | | | | |
Stock issued (in shares) | | | 367,647 | | | 2,347,236 | | | | | | | | | | 1,850,000 | | 2,120,882 | | | | | | | | |
Number of shares of common stock to be acquired | | | | | | | | | | | | | | | | 0.5 | | 0.5 | | | | | | | | |
Number of shares of common stock issued for each warrant | | | | | | 0.40 | | | | | | | | | | 925,000 | | 1,060,429 | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 3.40 | | | | | | | | | | $ 5.06 | | | | | | | | | | |
Gross proceeds from sale of units | | | $ 1,250,000 | | | $ 6,800,000 | | | | | | | | | | | | $ 6,900,000 | | | | | | | | |
Commissions paid in cash | | | | | | | | | | | | | | | | $ 695,000 | | | | | | | | | | |
Payments of Stock Issuance Costs | | | | | | | | | | | | | | | | 25,000 | | | | | | | | | | |
Legal Fees | | | | | | | | | | | | | | | | $ 6,000,000 | $ 229,000 | $ 6,100,000 | | | | | | | | |
Common Stock Prior To Adjustment | | | | | | | | | | | | | | | | | | | | 938,891 | | 938,891 | | | | |
Share Price | | | | | | | | | | | | | | | | $ 4.35 | | $ 5.06 | | | | | | | | |
Common Stock, Shares Authorized | | | | | | | | | | | | | | | | 1,850,000 | | 2,120,882 | | 2,347,236 | | 2,347,236 | | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | 2,347,236 | | | | | | | | | | | | | | | | | | | | |
Units Shares [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price per share of common stock (in dollars per share) | | | | | | | | | | | | | | | | | | $ 261,590 | | | | | | | | |
Number Of Common Stock Per Unit | | | | | | | | | | | | | | | | | | 5.06 | | | | | | | | |
Number of shares of common stock issued for each warrant | | | | | | | | | | | | | | | | 925,000 | | 1,060,429 | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | | | | | | | | | | | $ 4.35 | | $ 5.06 | | | | | | | | |
Warrants Expiration Date | | | | | | | | | | | | | | | | | | Aug. 25, 2018 | | | | | | | | |
Warrant [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | | | | 100,000 | | | | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | | | | | | | | | | | $ 86,899 | | | | |
Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Options Granted In Period Total Fair Value | | | | | | | | | | $ 87,000 | | | | | | | | | | | | | | | | |
Share Price | | | | | | | | | | $ 3.32 | | | | | | | | | | | | | | | | |
Share-based Goods and Nonemployee Services Transaction, Valuation Method, Expected Volatility Rate | | | | | | | | | | 48.00% | | | | | | | | | | | | | | | | |
Share-based Goods and Nonemployee Services Transaction, Valuation Method, Expected Term | | | | | | | | | | 10 years | | | | | | | | | | | | | | | | |
Share-based Goods and Nonemployee Services Transaction, Valuation Method, Risk Free Interest Rate | | | | | | | | | | 1.17% | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | | | | | $ 0.87 | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period | | | | | | 2,056,691 | | | | | | | | | | | | | | | 2,033,590 | | | | | |
Warrant [Member] | Underwriting Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of common stock to be acquired | 145,800 | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ 0.136 | | | | | | | | | | | | | | | | | | | | | | | | | |
Subsequent Event | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share Price | | | | | $ 2.36 | | | | | | | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | $ 1.19 | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Forfeited | | | | 85,135 | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Shares Issued in Period | | | | | 436,000 | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period | | | | | 10 years | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price | | | | | $ 2.80 | | | | | | | | | | | | | | | | | | | | | |
Sale of Stock, Price Per Share | | | | | $ 2.80 | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | | | 41.00% | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term | | | | | 10 years | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | | | | | 2.70% | | | | | | | | | | | | | | | | | | | | | |
Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share Price | | | | | | | | | | | | | | | $ 3.90 | | | | | | | | | | | |
Maximum | Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | | | | | | | | | | | | | | | | 3.40 | | | | | | | | |
Minimum | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share Price | | | | | | | | | | | | | | | $ 3.70 | | | | | | | | | | | |
Minimum | Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | | | | | | | | | | | | | | | | 3.25 | | | | | | | | |
Stock Option | Underwriting Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | 364,500 | | | | | | | | | | | | | | | | | | | | | | | | | |
Share Price | $ 2.468 | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | | | | | | | | | | | 1,110,111 | $ 2,255,811 | | | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Share-based Awards Other than Options | | | | | | | | | | | | | | | | | | | | $ 1,861,521 | | $ 1,861,521 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | 1,000 | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period | | | | | | | | | | | 2,000 | | | | | | | | | | | | | | | |
Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | | | | 25,000 | | | 5,995 | | | | | | | | | 241,051 | 5,995 | | | |
Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Granted In Period Total Fair Value | | | | | | | | | | $ 80,000 | | | $ 25,239 | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | | | | | | | | | | | | | | | | | $ 3.19 | $ 4.21 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | | | | | | | | | 5,591 | | | 21,586 | 1,000 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period | | | | | | | | | | | | | | | | | | | 3,759 | | | 3,759 | 2,000 | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures | | | | | | | | | | | | | | | | | | | 5,591 | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Forfeited | | | | | | | | | | | | | | | | | | | 10,926 | | | | | | | |
Incentive RSU [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | $ 702,000 | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | | 120,000 | | | | | | | | | | | | | | |
Chief Executive Officer | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | | | 50,000 | | | | | | | | | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Options Granted In Period Total Fair Value | | | | | | | | | $ 149,500 | | | | | | | | | | | | | | | | | |
Board of Directors | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | | | | | | | | | | | | | | 41,201 | | | | | | |
Stock Issued During Period, Shares, Share-based Compensation, Gross | | | | | | | | | | | | | | | | | | | | 2,351 | | | | | | |
Deferred Compensation Liability, Current and Noncurrent | | | | | | | | | | | $ 73,250 | | | | | | | | | $ 68,000 | | $ 68,000 | $ 73,250 | $ 73,250 | | |
Board of Directors | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | 8,621 | | | | | | | | | | | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Granted In Period Total Fair Value | | | | | | | $ 25,000 | | | | | | | | | | | | | | | | | | | |
Employee and Directors [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted common stock granted | | | | | | | | | | 116,229 | | | | | | | | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Granted In Period Total Fair Value | | | | | | | | | | $ 382,000 | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | 50.00% | | | | | | | | | | | | | | | | |
Convertible Series A Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 2,250,000 | | | | | | | | | 2,250,000 | | 2,250,000 | 2,250,000 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | | | | | | 0 | | | | | | | | | 0 | | 0 | 0 | | | |
Stock issued (in shares) | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 0 | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | |
Convertible Series B Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 8,000,000 | | | | | | | | | 8,000,000 | | 8,000,000 | 8,000,000 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | | | | | | 0 | | | | | | | | | 0 | | 0 | 0 | | | |
Stock issued (in shares) | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 0 | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | |
Convertible Series C Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 3,284,396 | | | | | | | | | 3,284,396 | | 3,284,396 | 3,284,396 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | | | | | | 0 | | | | | | | | | 0 | | 0 | 0 | | | |
Stock issued (in shares) | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 0 | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | |
Convertible Series D Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 7,500,000 | | | | | | | | | 7,500,000 | | 7,500,000 | 7,500,000 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | | | | | | 0 | | | | | | | | | 0 | | 0 | 0 | | | |
Stock issued (in shares) | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 0 | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | |
Series E Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 15,151 | 328 | | | 100 | | | | | 15,151 | | 15,151 | 15,151 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |
Preferred stock, Outstanding (in shares) | | | | | | 8,946 | | | | | 8,946 | | | | | | | | | 8,946 | | 8,946 | 8,946 | | | |
Stock issued (in shares) | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Number of shares of common stock to be acquired | | | 291.176 | | | 353.571 | | | | | | | | | | | | | | | | | | | | |
Number of share of preferred stock converted in common shares | | | | | | 3,163,051 | | | | | | | | | | | | | | | | | | | | |
Aggregate number of common shares issued upon conversion | | | | | | | | | | | | 99,916 | | | 30,461 | | 292 | | | | | | | | | |
Common Stock Units Sold | | | 9,375 | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock Prior To Adjustment | | | 1,841,528 | | | 2,725,089 | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Issued for Services | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 0 | | | |
Additional Collateral, Aggregate Fair Value | | | $ 3,020,000 | | | | | | | | | | | | | | | | | $ 1,070,000 | | $ 1,070,000 | | | | |
Conversion of Stock, Amount Issued | | | $ 990 | | | $ 990 | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Issued for Services | | | | | | | | | | | | | | | | | | | | | | 0 | 0 | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | | | | | $ 0 | | | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities | | | 2,729,780 | | | | | | | | | | | | | | | | | | | | | | | |
Series E Preferred Stock | Maximum | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | | | | 3.25 | | | | | | | | | | | | | | | | | | | | |
Series E Preferred Stock | Maximum | February 4, 2016 Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | 5.04 | | | | | | | | | | | | | | | | | | | | | | | |
Series E Preferred Stock | Minimum | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | | | | 2.80 | | | | | | | | | | | | | | | | | | | | |
Series E Preferred Stock | Minimum | February 4, 2016 Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjusted Conversion Price | | | 3.40 | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | $ 1,000 | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Forfeitures | | | | | | | | | | | 11,111 | | | | | | | | | | | | | | | |
Common Stock | Consultant Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Forfeitures | | | | | | | | | | | $ 12,964 | | | | | | | | | | | | | | | |
9% Series D Cumulative Preferred Stock | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock authorized, shares | | | | | | | | | | | 7,500,000 | | | | | | | | | 7,500,000 | | 7,500,000 | 7,500,000 | | | |
Par value of preferred stock authorized (in dollars per share) | | | | | | | | | | | $ 0.0001 | | | | | | | | | $ 0.0001 | | $ 0.0001 | $ 0.0001 | | | |