Goodwill and Intangible Assets (Intangible assets) (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Intangible assets    
Gross Carrying Amount $ 38,706 $ 30,519
Accumulated Amortization (12,625) (7,399)
Intangible assets, net $ 26,081 23,120
Weighted average amortization period 7 years 3 months 18 days  
Developed technology    
Intangible assets    
Gross Carrying Amount $ 19,626 16,618
Accumulated Amortization (8,914) (5,738)
Intangible assets, net $ 10,712 10,880
Weighted average amortization period 5 years 7 months 6 days  
Customer relationships    
Intangible assets    
Gross Carrying Amount $ 12,009 9,196
Accumulated Amortization (2,556) (1,160)
Intangible assets, net $ 9,453 8,036
Weighted average amortization period 8 years 4 months 24 days  
Trademark/trade name    
Intangible assets    
Gross Carrying Amount $ 6,776 4,410
Accumulated Amortization (869) (337)
Intangible assets, net $ 5,907 4,073
Weighted average amortization period 12 years  
Non-competition agreements    
Intangible assets    
Gross Carrying Amount $ 295 295
Accumulated Amortization (286) (164)
Intangible assets, net $ 9 $ 131
Weighted average amortization period 2 years