Redeemable Convertible Preferred Stock and Equity - Additional Information (Details) $ / shares in Units, $ in Thousands | May 20, 2015USD ($)shares | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($) | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($)$ / shares | Dec. 31, 2016USD ($)Stockholdershares | Dec. 31, 2015USD ($) | Oct. 14, 2016$ / sharesshares |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares called by warrant | | 28,433,000 | 28,433,000 | | 28,433,000 | | | | |
Proceeds from issuance of preferred stock and warrants | $ | $ 22,500 | | | | | | | | |
Debt conversion, original debt amount | $ | 8,500 | | | | | | | | |
Prepayment of penalties, legal and accounting fees | $ | 1,900 | | | | | | | | |
Additional debt discounts | $ | 500 | | | | | | | | |
Interest expense | $ | 200 | | | | | | | | |
Preferred stock dividend percentage | | | | | 8.00% | | | | |
Preferred stock dividend stated value (in dollars per share) | $ / shares | | | | | $ 1,000 | | | | |
Preferred stock dividend payment due date | | | | | Jul. 1, 2017 | | | | |
Number of shares issued upon conversion | | 333.3 | 333.3 | | 333.3 | | | | |
Trading price percentage | | 85.00% | 85.00% | | 85.00% | | | | |
Preferred stock shares | | | | | | | | | 16,500 |
Addition to conversion rate floor | $ / shares | | | | | | | | | $ 0.50 |
Conversion rate floor | $ / shares | | | | | | | | | $ 2.49 |
Penalty percentage to maturity redemption price | | | | | | | | | 20.00% |
Accreted value of dividends | $ | | | $ 379 | $ 1,164 | $ 756 | $ 2,290 | | | |
Accumulated unpaid dividends on preferred stock | $ | | $ 2,800 | 2,800 | | 2,800 | | | | |
Increase in accumulated dividends on preferred stock | $ | | | | | $ 1,300 | $ 1,300 | | | |
Preferred Stock, Dividends, Per Share, Cash Paid | $ / shares | | | | | $ 45.90 | $ 42.61 | | | |
Number of preferred shareholders | Stockholder | | | | | | | 2 | | |
Amount of accreted dividends converted to common stock | $ | | | | | | | $ (100) | | |
Aggregated subscription amount | $ | | | | | | | | $ 31,000 | |
Vested (in shares) | | | | | 127,837 | | | | |
Performance shares forfeited due to performance criteria (in shares) | | | | | 2,000 | | | | |
Restricted stock awards issued fair value per share | $ / shares | | | | | $ 2.40 | | | | |
Stock-based compensation expense | $ | | | 400 | $ 300 | $ 512 | $ 637 | | | |
Unamortized compensation | $ | | $ 3,600 | $ 3,600 | | $ 3,600 | | | | |
Remaining weighted-average vesting period | | | | | 1 year 7 months 6 days | | | | |
Unrecognized stock-based compensation expense, vesting percentage | | | | | 100.00% | | | | |
Compensation expense, recognize | $ | | | | | $ 2,200 | | | | |
Vesting Option Three [Member] | Black Scholes Model [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards issued fair value per share | $ / shares | | | | | $ 1.90 | | | | |
Restricted stock awards vesting period | | | | | 2 years | | | | |
Stock price, fair value | $ / shares | | $ 2.66 | $ 2.66 | | $ 2.66 | | | | |
Risk-free interest rate | | | | | 1.97% | | | | |
Expected volatility | | | | | 75.00% | | | | |
Expected term of option, exercise price | $ / shares | | $ 2.66 | $ 2.66 | | $ 2.66 | | | | |
Restricted stock awards, contractual term | | | | | 10 years | | | | |
Vesting Option Three [Member] | Lattice Model [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 10 years | | | | |
Restricted Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Granted (in shares) | | | | | 307,000 | | | | |
Vested (in shares) | | | | | 128,000 | | | | |
Restricted stock awards issued fair value per share | $ / shares | | | | | $ 2.40 | | | | |
Performance Shares [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Granted (in shares) | | | | | 500,000 | | | | |
Vested (in shares) | | | | | 0 | | | | |
Restricted stock awards issued fair value per share | $ / shares | | | | | $ 2.40 | | | | |
Stock-based compensation expense | $ | | | | | $ 1,900 | | | | |
Remaining weighted-average vesting period | | | | | 2 years | | | | |
Unrecognized stock-based compensation expense, vesting percentage | | | | | 100.00% | | | | |
Unrecognized stock-based compensation expense, Vesting (shares) | | 500,000 | 500,000 | | 500,000 | | | | |
RLJ SPAC Acquisition, LLC [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Amount of accreted dividends converted to common stock | $ | | $ (2,700) | | | | | | | |
Maximum [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Preferred stock conversion price (in dollars per share) | $ / shares | | | | | $ 3 | | | | |
Payment of partial liquidation damages percentage on aggregated subscription amount | | | | | | | | 6.00% | |
Maximum [Member] | Vesting Option Three [Member] | Black Scholes Model [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Expected term (in years) | | | | | 8 years 4 months 24 days | | | | |
Maximum [Member] | Performance Shares [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Unrecognized stock-based compensation expense, Vesting (shares) | | 1,000,000 | 1,000,000 | | 1,000,000 | | | | |
Minimum [Member] | Vesting Option Three [Member] | Black Scholes Model [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Expected term (in years) | | | | | 7 years | | | | |
Minimum [Member] | Performance Shares [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Unrecognized stock-based compensation expense, Vesting (shares) | | 0 | 0 | | 0 | | | | |
Certain Board Members or their Affiliated Companies [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Proceeds from issuance of preferred stock and warrants | $ | $ 10,000 | | | | | | | | |
Certain Board Members or their Affiliated Companies [Member] | Restricted Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 1 year | | | | |
Executive Officers And Directors | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Options granted (in shares) | | | | | 1,400,000 | | | | |
Granted (in shares) | | | | | 807,131 | | | | |
Executive Officer | Maximum [Member] | Restricted Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 4 years | | | | |
Executive Officer | Minimum [Member] | Restricted Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 3 years | | | | |
Employees [Member] | Restricted Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 3 years | | | | |
Chief Executive Officer [Member] | Vesting Option One [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 2 years | | | | |
Stock based compensation, options granted (in shares) | | | | | 700,000 | | | | |
Stock based compensation, exercise price | $ / shares | | | | | $ 2.66 | | | | |
Chief Executive Officer [Member] | Vesting Option Two [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Restricted stock awards vesting period | | | | | 4 years | | | | |
Stock based compensation, options granted (in shares) | | | | | 700,000 | | | | |
Stock based compensation, exercise price | $ / shares | | | | | $ 3 | | | | |
Preferred Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Preferred stock shares issued (in shares) | 31,046 | | | | | | | | |
Preferred stock issuance fees | $ | $ 900 | | | | | | | | |
Number of shares converted | | 15,000 | | | | | 849 | | |
Preferred Stock [Member] | RLJ SPAC Acquisition, LLC [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares converted | | 15,000 | | | | | | | |
Preferred Stock [Member] | Certain Board Members or their Affiliated Companies [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Preferred stock shares issued (in shares) | 16,500 | | | | | | | | |
Common Stock [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares issued upon conversion | | 5,900,000 | 5,900,000 | | 5,900,000 | | 312,000 | | |
Common Stock [Member] | RLJ SPAC Acquisition, LLC [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares issued upon conversion | | 5,900,000 | 5,900,000 | | 5,900,000 | | | | |
Common Stock [Member] | 2015 Warrants [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares called by warrant | 3,100,000 | | | | | | | | |
Common Stock [Member] | 2015 Warrants [Member] | Certain Board Members or their Affiliated Companies [Member] | Unregistered Warrants [Member] | | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | | |
Number of shares called by warrant | 1,700,000 | | | | | | | | |