Quarterly report pursuant to Section 13 or 15(d)

Subsequent Events (Details)

v3.10.0.1
Subsequent Events (Details) - USD ($)
$ in Thousands
1 Months Ended 6 Months Ended
Aug. 01, 2018
Jul. 30, 2018
Jun. 29, 2018
Jul. 31, 2018
Jun. 30, 2018
Jun. 30, 2017
Subsequent Event [Line Items]            
Proceeds from sale of equity method investments         $ 221,965 $ 0
Subsequent event            
Subsequent Event [Line Items]            
Stock repurchased during period (in shares) 10,500,000     400,597    
Stock repurchased during period $ 110,000     $ 5,000    
Amount available under the share repurchase program $ 90,000          
Over-Allotment Option | Mammoth Energy Services LP            
Subsequent Event [Line Items]            
Proceeds from sale of equity method investments     $ 47,000      
Over-Allotment Option | Mammoth Energy Services LP | Subsequent event            
Subsequent Event [Line Items]            
Proceeds from sale of equity method investments   $ 4,500        
Over-Allotment Option | Common Stock | Mammoth Energy Services LP            
Subsequent Event [Line Items]            
Number of shares sold (in shares)     1,235,600      
Over-Allotment Option | Common Stock | Mammoth Energy Services LP | Subsequent event            
Subsequent Event [Line Items]            
Number of shares sold (in shares)   118,974