Debt_current_Non current (Details) - USD ($)
$ in Thousands
Dec. 31, 2018
Dec. 31, 2017
Debt    
Principal amount of long-term debt $ 25,000 $ 5,500
Less: Current portion of long-term debt   (2,139)
Long term debt net of current maturities 25,000 3,361
Debt discount (653) (59)
Long‑term debt, net of current portion $ 24,347 $ 3,302