v3.22.2.2
Inventories - Schedule of Inventories (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Inventories    
Crude oil $ 866,995 $ 630,873
Other raw materials and unfinished products 830,489 530,067
Finished products 1,431,746 726,930
Lower of cost or market reserve (51,578) (8,739)
Process chemicals 50,280 43,025
Repair and maintenance supplies and other 309,220 199,972
Total inventory $ 3,437,152 $ 2,122,128