Fair Value of Financial Instruments - Schedule of Fair Value Measurement (Details) - USD ($) $ in Thousands | Mar. 31, 2019 | Dec. 31, 2018 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | $ 75,550 | $ 100,218 |
Fair value on a recurring basis | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 54,197 | 39,937 |
Fair Value | 75,550 | 100,218 |
Total assets measured at fair value | 129,747 | 140,155 |
Fair value on a recurring basis | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 47,788 | 38,444 |
Fair Value | 25,387 | 22,120 |
Total assets measured at fair value | 73,175 | 60,564 |
Fair value on a recurring basis | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 6,409 | 1,493 |
Fair Value | 50,163 | 78,098 |
Total assets measured at fair value | 56,572 | 79,591 |
Fair value on a recurring basis | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Fair Value | 0 | 0 |
Total assets measured at fair value | 0 | 0 |
Fair value on a recurring basis | Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 8,809 | 10,787 |
Fair value on a recurring basis | Certificates of deposit | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Certificates of deposit | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 8,809 | 10,787 |
Fair value on a recurring basis | Certificates of deposit | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | U.S. Treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 25,387 | 22,120 |
Fair value on a recurring basis | U.S. Treasury securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 25,387 | 22,120 |
Fair value on a recurring basis | U.S. Treasury securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | U.S. Treasury securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | U.S. Agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 6,501 | 7,980 |
Fair value on a recurring basis | U.S. Agency securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | U.S. Agency securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 6,501 | 7,980 |
Fair value on a recurring basis | U.S. Agency securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 8,463 | 17,025 |
Fair value on a recurring basis | Commercial paper | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Commercial paper | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 8,463 | 17,025 |
Fair value on a recurring basis | Commercial paper | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Asset-backed securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 4,391 | 11,998 |
Fair value on a recurring basis | Asset-backed securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Asset-backed securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 4,391 | 11,998 |
Fair value on a recurring basis | Asset-backed securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Corporate notes and bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 21,999 | 30,308 |
Fair value on a recurring basis | Corporate notes and bonds | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Corporate notes and bonds | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 21,999 | 30,308 |
Fair value on a recurring basis | Corporate notes and bonds | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Fair Value | 0 | 0 |
Fair value on a recurring basis | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 47,788 | 38,444 |
Fair value on a recurring basis | Money market funds | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 47,788 | 38,444 |
Fair value on a recurring basis | Money market funds | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Fair value on a recurring basis | Money market funds | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Fair value on a recurring basis | Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 5,182 | 1,493 |
Fair value on a recurring basis | Commercial paper | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Fair value on a recurring basis | Commercial paper | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 5,182 | 1,493 |
Fair value on a recurring basis | Commercial paper | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | $ 0 |
Fair value on a recurring basis | Corporate Notes and Bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 1,227 | |
Fair value on a recurring basis | Corporate Notes and Bonds | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | |
Fair value on a recurring basis | Corporate Notes and Bonds | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 1,227 | |
Fair value on a recurring basis | Corporate Notes and Bonds | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | $ 0 | |