Investments in Marketable Securities (Details 1) - USD ($) $ in Thousands | Mar. 31, 2019 | Dec. 31, 2018 |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | $ 25,434 | |
Fair Value, Measurements, Recurring [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | | $ 39,345 |
U.S. and foreign commercial paper | 25,434 | 39,345 |
Total cash equivalents | 25,434 | 39,345 |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 164,429 | 176,609 |
Assets, Fair Value Disclosure | 189,863 | 215,954 |
Short-term Investments | 164,429 | 176,609 |
US Government Agencies Debt Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 60,801 | 73,159 |
Short-term Investments | 60,801 | 73,159 |
Asset-backed Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 33,017 | 28,419 |
Short-term Investments | 33,017 | 28,419 |
US Treasury Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 29,873 | 19,895 |
Short-term Investments | 29,873 | 19,895 |
Commercial Paper [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 40,738 | 55,136 |
Short-term Investments | 40,738 | 55,136 |
Fair Value, Inputs, Level 1 [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | | 39,345 |
U.S. and foreign commercial paper | | 0 |
Total cash equivalents | | 0 |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | |
Short-term Investments | 0 | |
Fair Value, Inputs, Level 1 [Member] | Fair Value, Measurements, Recurring [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | 25,434 | |
U.S. and foreign commercial paper | 25,434 | 39,345 |
Total cash equivalents | 25,434 | 39,345 |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Assets, Fair Value Disclosure | 25,434 | 39,345 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 1 [Member] | US Government Agencies Debt Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | | 0 |
Short-term Investments | | 0 |
Fair Value, Inputs, Level 1 [Member] | Asset-backed Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 1 [Member] | US Treasury Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 1 [Member] | Commercial Paper [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 2 [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | | 0 |
U.S. and foreign commercial paper | | 0 |
Total cash equivalents | | 0 |
Fair Value, Inputs, Level 2 [Member] | Fair Value, Measurements, Recurring [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | 0 | |
U.S. and foreign commercial paper | 0 | |
Total cash equivalents | 0 | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 164,429 | 176,609 |
Assets, Fair Value Disclosure | 164,429 | 176,609 |
Short-term Investments | 164,429 | 176,609 |
Fair Value, Inputs, Level 2 [Member] | US Government Agencies Debt Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 60,801 | 73,159 |
Short-term Investments | 60,801 | 73,159 |
Fair Value, Inputs, Level 2 [Member] | Asset-backed Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 33,017 | 28,419 |
Short-term Investments | 33,017 | 28,419 |
Fair Value, Inputs, Level 2 [Member] | US Treasury Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 29,873 | 19,895 |
Short-term Investments | 29,873 | 19,895 |
Fair Value, Inputs, Level 2 [Member] | Commercial Paper [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 40,738 | 55,136 |
Short-term Investments | 40,738 | 55,136 |
Fair Value, Inputs, Level 3 [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | | 0 |
U.S. and foreign commercial paper | | 0 |
Total cash equivalents | | 0 |
Fair Value, Inputs, Level 3 [Member] | Fair Value, Measurements, Recurring [Member] | | |
Cash Equivalents, at Carrying Value [Abstract] | | |
Money market funds | 0 | |
U.S. and foreign commercial paper | 0 | |
Total cash equivalents | 0 | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Assets, Fair Value Disclosure | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 3 [Member] | US Government Agencies Debt Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 3 [Member] | Asset-backed Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 3 [Member] | US Treasury Securities [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | 0 | 0 |
Fair Value, Inputs, Level 3 [Member] | Commercial Paper [Member] | Fair Value, Measurements, Recurring [Member] | | |
Short-term Investments [Abstract] | | |
U.S. and foreign commercial paper | 0 | 0 |
Short-term Investments | $ 0 | $ 0 |