Fair Value Measurements (Details) - USD ($) $ in Thousands | 12 Months Ended | | |
Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2018 | Dec. 31, 2017 |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | $ 75,476 | |
Warrant liabilities | $ 397 | $ 397 | | 104 | $ 397 |
Change in the estimated fair value of warrant liabilities | | | | | |
Balance at the beginning of the period | 397 | | | | |
Increase in fair value (net of expired warrants) | (2,524) | (257) | $ 0 | | |
Warrant exercise | (3,538) | 0 | 0 | | |
Balance at the end of the period | 104 | 397 | | | |
Other assets | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Interest Receivable and Other Assets | | | | 100 | |
Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Repurchase agreements | | | | 5,000 | 0 |
Assets, fair value | | | | 75,476 | 0 |
Warrant liabilities | 1,014 | 757 | 757 | 0 | 1,014 |
Change in the estimated fair value of warrant liabilities | | | | | |
Balance at the beginning of the period | 1,014 | 757 | | | |
Increase in fair value (net of expired warrants) | 2,524 | 257 | | | |
Warrant exercise | (3,538) | | | | |
Balance at the end of the period | 0 | 1,014 | $ 757 | | |
Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Repurchase agreements | | | | 0 | 0 |
Assets, fair value | | | | 5,838 | 0 |
Warrant liabilities | 0 | 0 | | 0 | 0 |
Change in the estimated fair value of warrant liabilities | | | | | |
Balance at the beginning of the period | 0 | | | | |
Balance at the end of the period | 0 | 0 | | | |
Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Repurchase agreements | | | | 5,000 | 0 |
Assets, fair value | | | | 69,638 | 0 |
Warrant liabilities | 1,014 | 1,014 | | 0 | 1,014 |
Change in the estimated fair value of warrant liabilities | | | | | |
Balance at the beginning of the period | 1,014 | | | | |
Balance at the end of the period | 0 | 1,014 | | | |
Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Repurchase agreements | | | | 0 | 0 |
Assets, fair value | | | | 0 | 0 |
Warrant liabilities | 0 | 0 | | 0 | 0 |
Change in the estimated fair value of warrant liabilities | | | | | |
Balance at the beginning of the period | 0 | | | | |
Balance at the end of the period | $ 0 | $ 0 | | | |
Money market funds | Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Money market funds | | | | 5,838 | 0 |
Money market funds | Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Money market funds | | | | 5,838 | 0 |
Money market funds | Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Money market funds | | | | 0 | 0 |
Money market funds | Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Money market funds | | | | 0 | 0 |
Commercial paper | Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 30,710 | 0 |
Commercial paper | Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
Commercial paper | Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 30,710 | 0 |
Commercial paper | Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
US Government Debt Securities | Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 10,166 | 0 |
US Government Debt Securities | Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
US Government Debt Securities | Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 10,166 | 0 |
US Government Debt Securities | Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
Asset-backed Securities | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 10,618 | |
Asset-backed Securities | Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 10,618 | 0 |
Asset-backed Securities | Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
Asset-backed Securities | Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 10,618 | 0 |
Asset-backed Securities | Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
Corporate Note Securities | Recurring | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 13,144 | 0 |
Corporate Note Securities | Recurring | Level 1 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 0 | 0 |
Corporate Note Securities | Recurring | Level 2 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | 13,144 | 0 |
Corporate Note Securities | Recurring | Level 3 | | | | | |
Liabilities that are measured at fair value on a recurring basis | | | | | |
Debt securities, fair value | | | | $ 0 | $ 0 |