Cash and Cash Equivalents, Restricted Cash and Marketable Securities - Summary of Marketable Securities (Details) - USD ($) $ in Thousands |
Jun. 30, 2018 |
Dec. 31, 2017 |
---|---|---|
Cash and cash equivalents: | ||
Amortized Cost | $ 199,798 | $ 11,769 |
Gross Unrealized Gains | 49 | 2 |
Gross Unrealized Losses | (8) | (18) |
Estimated Fair Value | 199,839 | 11,753 |
Level 2 | U.S. treasuries | ||
Cash and cash equivalents: | ||
Amortized Cost | 177,679 | 2,249 |
Gross Unrealized Gains | 30 | 0 |
Gross Unrealized Losses | (3) | (3) |
Estimated Fair Value | 177,706 | 2,246 |
Level 2 | Fixed-income debt securities | ||
Cash and cash equivalents: | ||
Amortized Cost | 15,679 | 9,520 |
Gross Unrealized Gains | 19 | 2 |
Gross Unrealized Losses | (5) | (15) |
Estimated Fair Value | 15,693 | $ 9,507 |
Level 2 | Commercial paper | ||
Cash and cash equivalents: | ||
Amortized Cost | 6,440 | |
Gross Unrealized Gains | 0 | |
Gross Unrealized Losses | 0 | |
Estimated Fair Value | $ 6,440 |