XML 59 R46.htm IDEA: XBRL DOCUMENT v3.21.2
Inventories - Schedule of Inventories (Details) - USD ($)
$ in Thousands
Sep. 30, 2021
Dec. 31, 2020
Inventories    
Crude oil $ 506,545 $ 451,967
Other raw materials and unfinished products 396,745 260,495
Finished products 795,416 595,696
Lower of cost or market reserve 0 (318,862)
Process chemicals 44,904 35,006
Repair and maintenance supplies and other 143,470 149,174
Total inventory $ 1,887,080 $ 1,173,476