Redeemable Convertible Preferred Stock and Equity - Additional Information (Details) - USD ($) | May 20, 2015 | Jun. 30, 2017 | Jun. 30, 2018 | Jun. 30, 2017 | Jun. 30, 2018 | Jun. 30, 2017 | Dec. 31, 2015 | Oct. 14, 2016 |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Proceeds from issuance of preferred stock and warrants | $ 22,500,000 | | | | | | | |
Debt conversion, original debt amount | $ 8,500,000 | | | | | | | |
Preferred stock dividend percentage | | | | | 8.00% | | | |
Preferred stock dividend stated value (in dollars per share) | | | | | $ 1,000 | | | |
Preferred stock dividend payment due date | | | | | Jul. 1, 2017 | | | |
Number of shares issued upon conversion | | | 333.3 | | 333.3 | | | |
Trading price percentage | | | 85.00% | | 85.00% | | | |
Preferred stock shares | | | | | | | | 16,500 |
Addition to conversion rate floor | | | | | | | | $ 0.50 |
Conversion rate floor | | | | | | | | $ 2.49 |
Penalty percentage to maturity redemption price | | | | | | | | 20.00% |
Accreted value of dividends | | | $ 193,000 | $ 379,000 | $ 386,000 | $ 756,000 | | |
Accumulated unpaid dividends on preferred stock | | | 354,000 | | 354,000 | | | |
Dividend payments to preferred stockholders | | | | | 708,000 | $ 0 | | |
Aggregated subscription amount | | | | | | | $ 31,000,000 | |
Unrecognized compensation expense related to restricted stock-based awards | | | 1,300,000 | | $ 1,300,000 | | | |
Remaining weighted-average vesting period | | | | | 1 year 2 months 12 days | | | |
Unrecognized stock-based compensation expense, vesting percentage | | | | | 100.00% | | | |
Compensation expense, recognize | | | | | $ 2,000,000 | | | |
Performance Shares [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Unrecognized compensation expense related to restricted stock-based awards | | | $ 1,000,000 | | $ 1,000,000 | | | |
Remaining weighted-average vesting period | | | | | 1 year 6 months | | | |
Unrecognized stock-based compensation expense, vesting percentage | | | | | 130.00% | | | |
Unrecognized stock-based compensation expense, Vesting (shares) | | | 700,000 | | 700,000 | | | |
Unvested Stock Options [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Stock based compensation, options granted (in shares) | | | | | 0 | | | |
Remaining weighted-average vesting period | | | | | 1 year 8 months 12 days | | | |
Unrecognized compensation expense | | | $ 1,400,000 | | $ 1,400,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,000) | | | | | | |
Maximum [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Preferred stock conversion price (in dollars per share) | | | | | $ 3 | | | |
Payment of partial liquidation damages percentage on aggregated subscription amount | | | | | | | 6.00% | |
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 | | | |
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 | | | |
Unregistered Warrants [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Number of shares called by warrant | | | 21,332,000 | | 21,332,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 Officer [Member] | 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 [Member] | 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) | | | | | 0.7 | | | |
Stock based compensation, exercise price | | | | | $ 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) | | | | | 0.7 | | | |
Stock based compensation, exercise price | | | | | $ 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 [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] | Restricted Stock [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Common stock, shares issued | | | | | 233,000 | | | |
Common Stock [Member] | Restricted Stock Units (RSUs) [Member] | | | | | | | | |
Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | | | | | | | | |
Common stock, shares issued | | | | | 75,000 | | | |
Common stock vested period | | | | | Dec. 31, 2017 | | | |
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 | | | | | | | |