BORROWINGS - Additional Information (Details) | Mar. 27, 2019USD ($)$ / sharesshares | Mar. 31, 2019USD ($) | Dec. 31, 2018USD ($) | Dec. 28, 2018USD ($)$ / sharesshares | Oct. 15, 2018USD ($)tranche | Jul. 02, 2018$ / shares | Apr. 10, 2018USD ($) | Feb. 28, 2018USD ($)tranche$ / sharesshares | Dec. 31, 2013$ / sharesshares |
Debt Instrument [Line Items] | | | | | | | | | |
Long-term portion of Term Loan | | $ 36,940,000 | $ 38,071,000 | | | | | | |
Number of shares called by warrant (in shares) | shares | | | | | | | | | 95,936 |
Exercise price of warrant (in USD per share) | $ / shares | | | | | | | | | $ 0.886 |
Class of Warrant or Right, Percentage of Principal Amount of Applicable Tranche | | 1.00% | | | | | | | |
Contractual life of warrant | | | | | | | | | 7 years |
Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | | | | | $ 100,000,000 | | | $ 100,000,000 | |
Debt, number of tranches | tranche | | | | | 5 | | | 5 | |
Long-term portion of Term Loan | | | 40,000,000 | | | | | | |
Debt payment terms, multiplier | 7.55% | | | | | | | | |
Number of shares called by warrant (in shares) | shares | | | | | | | | 53,458 | |
Exercise price of warrant (in USD per share) | $ / shares | | | | | | | | $ 9.35 | |
Warrants and Rights Outstanding | | | | | | | | $ 156,000 | |
Increase (decrease) in equity due to warrants | | | | $ 900,000 | | | $ 200,000 | | |
Fair value of embedded derivative liability | | $ 300,000 | | | | | $ 700,000 | | |
Unamortized issuance costs and debt discounts | | $ 4,100,000 | $ 2,700,000 | | | | | | |
Term Loan | Minimum | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt prepayment fee, percentage | 2.00% | | | | | | | | |
Term Loan | Term Loan, Tranche One | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | | | | | | | | 25,000,000 | |
Term Loan | Term Loan, Tranche Two | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | | | | | $ 15,000,000 | | | $ 25,000,000 | |
Number of shares called by warrant (in shares) | shares | | | | 53,458 | | | | | |
Exercise price of warrant (in USD per share) | $ / shares | | | | $ 9.35 | | | | | |
New Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Maximum borrowing capacity of term loan | $ 200,000,000 | | | | | | | | |
Term of principal and interest payments | 30 months | | | | | | | | |
One time payment of principal | $ 2,600,000 | | | | | | | | |
Debt prepayment fee, percentage year two | 1.50% | | | | | | | | |
Debt prepayment fee, percentage year three | 1.00% | | | | | | | | |
Debt prepayment fee, percentage after year three | 0.00% | | | | | | | | |
New Term Loan | Maximum | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Extended period for payment of interest only | 24 months | | | | | | | | |
New Term Loan | Term Loan, Tranche One | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | $ 20,000,000 | | | | | | | | |
New Term Loan | Term Loan, Tranche Two | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | 15,000,000 | | | | | | | | |
New Term Loan | Term Loan, Tranche Three | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | 75,000,000 | | | | | | | | |
New Term Loan | Term Loan, Tranche Four | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt aggregate principal amount | $ 50,000,000 | | | | | | | | |
Third Amendment to Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Number of shares called by warrant (in shares) | shares | 16,721 | | | | | | | | |
Exercise price of warrant (in USD per share) | $ / shares | $ 23.92 | | | | | | | | |
Increase (decrease) in equity due to warrants | $ 300,000 | | | | | | | | |
Floating variable rate 1 | Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt interest rate | | | 8.35% | | | | | | |
Floating variable rate 2 | Term Loan | Prime rate | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt, basis spread on variable rate | | | 8.35% | | | | | | |
Floating variable rate 2 | New Term Loan | Prime rate | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt, basis spread on adjusted variable rate | 6.00% | | | | | | | | |
Floating variable rate 3 | Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt interest rate | | | 9.85% | | | | | | |
Time To Liquidity | Third Amendment to Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Measurement input, time to liquidity | 7 years | | | | | | | | |
Volatility | Third Amendment to Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Warrants measurement input | 0.75 | | | | | | | | |
Risk-free interest rate | Third Amendment to Term Loan | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Warrants measurement input | 0.023 | | | | | | | | |
Discount Rate | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Derivative liability, measurement input | | 0.112 | | | | | | | |
Measurement Input, Probability Of Occurrence Of Certain Events | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Derivative liability, measurement input | | 0.10 | | | | | | | |
IPO | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Share price (in USD per share) | $ / shares | | | | | | $ 19 | | | |