Preferred stock warrants (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | ||
|---|---|---|---|
Jun. 30, 2018 |
Jun. 30, 2017 |
Mar. 31, 2018 |
|
| Preferred stock warrants | |||
| Fair value of the warrant liability | $ 7,092 | $ 1,642 | |
| Loss from change in fair value of the warrant liability | $ 5,450 | ||
| Series Seed preferred stock | |||
| Preferred stock warrants | |||
| Number of preferred stock warrants issued | 50,000 | ||
| Exercise price (in dollars per share) | $ 10.00 | ||
| Fair value of the warrants to purchase shares of series seed preferred stock | $ 391 | ||
| Other income (expense), net | |||
| Preferred stock warrants | |||
| Loss from change in fair value of the warrant liability | $ 5,450 | $ 0 | |