Equity (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Jul. 20, 2018
Dec. 31, 2018
Jun. 30, 2018
Apr. 30, 2018
Feb. 28, 2018
Jan. 31, 2018
Dec. 31, 2017
Equity              
Common stock, authorized (in shares) 150,000,000 150,000,000 79,000,000 78,800,000 75,000,000 65,000,000 65,000,000
Shares authorized 160,000,000            
Common stock, par value (in dollars per share) $ 0.001 $ 0.001         $ 0.001
Preferred stock, share authorized (in shares) 10,000,000 10,000,000         0
Preferred stock, par value (in dollars per share) $ 0.001 $ 0.001         $ 0.001
Net proceeds after deducting underwriting discounts and commissions and other offering costs   $ 257,866          
Common stock              
Equity              
Stock Issued During Period, Shares, New Issues   12,055,450          
Number of shares converted into number of common stock 51,845,438            
IPO              
Equity              
Stock Issued During Period, Shares, New Issues 12,055,450            
Net proceeds after deducting underwriting discounts and commissions and other offering costs $ 254,300            
Overallotment              
Equity              
Stock Issued During Period, Shares, New Issues 1,572,450