XML 68 R57.htm IDEA: XBRL DOCUMENT v3.24.2.u1
Inventories - Schedule of Inventory (Details) - USD ($)
$ in Thousands
Jun. 30, 2024
Dec. 31, 2023
Inventory [Line Items]    
Crude oil and feedstocks $ 416,464 $ 343,856
Refined products and blendstock 594,041 491,920
Warehouse stock and other 247,832 324,619
Total 1,258,337 1,160,395
RINs and environmental obligations 163,990 286,904
Titled Inventory    
Inventory [Line Items]    
Crude oil and feedstocks 188,057 175,307
Refined products and blendstock 594,041 358,236
Warehouse stock and other 247,832 324,619
Total 1,029,930 858,162
Inventory Intermediation Agreement    
Inventory [Line Items]    
Crude oil and feedstocks 228,407 0
Refined products and blendstock 0 0
Warehouse stock and other 0 0
Total 228,407 0
Supply and Offtake Agreement    
Inventory [Line Items]    
Crude oil and feedstocks 0 168,549
Refined products and blendstock 0 133,684
Warehouse stock and other 0 0
Total 0 302,233
Renewable Identification Numbers “RINs” and Environmental Credits    
Inventory [Line Items]    
Warehouse stock and other 160,100 237,600
RINs and environmental obligations $ 164,000 $ 286,900