XML 72 R61.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Segment Information - Schedule Of Segment Reporting Information (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2024 | Jun. 30, 2023
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | $ 7,845,831 | $ 7,833,646 | $ 14,872,976 | $ 15,398,788
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 6,750,525 | 6,273,605 | 12,677,025 | 12,377,662
Lower of cost or market inventory valuation adjustment | (3,123) | (7,863) | (222,493) | 39,734
Operating expenses | 591,317 | 546,800 | 1,198,429 | 1,186,183
Total cost of products sold (exclusive of depreciation and amortization) | 7,338,719 | 6,812,542 | 13,652,961 | 13,603,579
Selling, general and administrative expenses | 104,858 | 127,388 | 208,232 | 223,301
Depreciation and amortization | 205,320 | 189,360 | 404,049 | 363,343
Income from operations | 196,934 | 704,356 | 607,734 | 1,208,565
Earnings of equity method investments | 8,115 | 3,545 | 15,461 | 7,427
Capital expenditures | 84,209 | 80,181 | 173,317 | 180,250
Corporate, Other and Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | (1,212,198) | (1,346,860) | (2,237,666) | (2,611,176)
Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | (1,212,198) | (1,346,860) | (2,237,666) | (2,611,176)
Corporate, Non-Segment |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 0 | 0 | 0 | 0
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | (1,211,561) | (1,346,661) | (2,235,232) | (2,609,382)
Lower of cost or market inventory valuation adjustment | 0 | 0 | 0 | 0
Operating expenses | 1,981 | 1,216 | 1,028 | 2,197
Total cost of products sold (exclusive of depreciation and amortization) | (1,209,580) | (1,345,445) | (2,234,204) | (2,607,185)
Selling, general and administrative expenses | 4,255 | 14,461 | 11,257 | 19,519
Depreciation and amortization | 19,286 | 9,636 | 31,439 | 18,561
Income from operations | (26,159) | (25,512) | (46,158) | (42,071)
Earnings of equity method investments | 957 | 0 | 915 | 0
Capital expenditures | 13,967 | 10,873 | 24,454 | 16,806
Refining |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 5,970,098 | 5,901,713 | 11,343,123 | 11,566,927
Refining | Operating Segments |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 6,977,809 | 7,039,382 | 13,182,054 | 13,757,997
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 6,291,029 | 5,842,573 | 11,765,551 | 11,483,704
Lower of cost or market inventory valuation adjustment | 0 | 26,842 | (220,558) | 26,842
Operating expenses | 449,097 | 411,324 | 921,183 | 913,083
Total cost of products sold (exclusive of depreciation and amortization) | 6,740,126 | 6,280,739 | 12,466,176 | 12,423,629
Selling, general and administrative expenses | 50,740 | 53,038 | 99,457 | 92,116
Depreciation and amortization | 122,215 | 112,542 | 239,585 | 212,625
Income from operations | 64,728 | 593,063 | 376,836 | 1,029,627
Earnings of equity method investments | 0 | 0 | 0 | 0
Capital expenditures | 35,694 | 45,187 | 90,718 | 112,961
Refining | Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | (1,007,711) | (1,137,669) | (1,838,931) | (2,191,070)
Renewables |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 180,228 | 175,063 | 359,897 | 377,476
Renewables | Operating Segments |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 248,278 | 273,185 | 487,837 | 571,201
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 220,056 | 258,806 | 450,329 | 521,544
Lower of cost or market inventory valuation adjustment | (3,123) | (34,705) | (1,935) | 12,892
Operating expenses | 24,705 | 24,373 | 51,166 | 55,744
Total cost of products sold (exclusive of depreciation and amortization) | 241,638 | 248,474 | 499,560 | 590,180
Selling, general and administrative expenses | 1,384 | 1,336 | 2,786 | 2,251
Depreciation and amortization | 19,786 | 18,968 | 40,058 | 38,942
Income from operations | (14,530) | 4,407 | (54,567) | (60,172)
Earnings of equity method investments | 0 | 0 | 0 | 0
Capital expenditures | 3,271 | 3,537 | 5,921 | 8,381
Renewables | Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | (68,050) | (98,122) | (127,940) | (193,725)
Marketing |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 942,362 | 1,040,933 | 1,718,169 | 1,978,318
Marketing | Operating Segments |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 942,362 | 1,040,933 | 1,718,169 | 1,978,318
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 919,611 | 1,008,306 | 1,672,141 | 1,932,355
Lower of cost or market inventory valuation adjustment | 0 | 0 | 0 | 0
Operating expenses | 0 | 0 | 0 | 0
Total cost of products sold (exclusive of depreciation and amortization) | 919,611 | 1,008,306 | 1,672,141 | 1,932,355
Selling, general and administrative expenses | 7,345 | 8,127 | 15,101 | 15,090
Depreciation and amortization | 6,374 | 6,016 | 12,677 | 11,887
Income from operations | 9,032 | 18,484 | 18,250 | 18,986
Earnings of equity method investments | 0 | 0 | 0 | 0
Capital expenditures | 12,960 | 6,200 | 20,491 | 11,455
Marketing | Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 0 | 0 | 0 | 0
Lubricants & Specialties |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 726,049 | 686,104 | 1,401,594 | 1,419,818
Lubricants & Specialties | Operating Segments |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 731,399 | 690,633 | 1,409,386 | 1,430,143
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 531,390 | 510,581 | 1,024,236 | 1,049,441
Lower of cost or market inventory valuation adjustment | 0 | 0 | 0 | 0
Operating expenses | 64,445 | 64,034 | 128,445 | 127,627
Total cost of products sold (exclusive of depreciation and amortization) | 595,835 | 574,615 | 1,152,681 | 1,177,068
Selling, general and administrative expenses | 38,209 | 44,914 | 72,777 | 84,178
Depreciation and amortization | 22,716 | 20,379 | 45,227 | 39,747
Income from operations | 74,639 | 50,725 | 138,701 | 129,150
Earnings of equity method investments | 0 | 0 | 0 | 0
Capital expenditures | 7,173 | 5,734 | 12,484 | 14,383
Lubricants & Specialties | Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | (5,350) | (4,529) | (7,792) | (10,325)
Midstream |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 27,094 | 29,833 | 50,193 | 56,249
Midstream | Operating Segments |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | 158,181 | 136,373 | 313,196 | 272,305
Cost of sales (exclusive of depreciation and amortization): |  |  |  |
Cost of materials and other (exclusive of lower of cost or market inventory valuation adjustment) | 0 | 0 | 0 | 0
Lower of cost or market inventory valuation adjustment | 0 | 0 | 0 | 0
Operating expenses | 51,089 | 45,853 | 96,607 | 87,532
Total cost of products sold (exclusive of depreciation and amortization) | 51,089 | 45,853 | 96,607 | 87,532
Selling, general and administrative expenses | 2,925 | 5,512 | 6,854 | 10,147
Depreciation and amortization | 14,943 | 21,819 | 35,063 | 41,581
Income from operations | 89,224 | 63,189 | 174,672 | 133,045
Earnings of equity method investments | 7,158 | 3,545 | 14,546 | 7,427
Capital expenditures | 11,144 | 8,650 | 19,249 | 16,264
Midstream | Intersegment Eliminations |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |
Sales and other revenues | $ (131,087) | $ (106,540) | $ (263,003) | $ (216,056)

X
- Definition Cost of material used for good produced and service rendered. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_CostDirectMaterial
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Cost of product sold and service rendered, excluding depreciation, depletion, and amortization. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(2)(a)) -SubTopic 10 -Topic 220 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(2)(d)) -SubTopic 10 -Topic 220 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_CostOfRevenueAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 48 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482785/280-10-55-48 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 49 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482785/280-10-55-49 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 + Details
Name: | us-gaap_DepreciationDepletionAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate direct operating costs incurred during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_DirectOperatingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of income (loss) for proportionate share of equity method investee's income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(10)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477250/944-220-S99-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 323 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481664/323-10-45-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (g) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(12)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(f)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478524/942-220-S99-1 + Details
Name: | us-gaap_IncomeLossFromEquityMethodInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of loss from reductions in inventory due to subsequent measurement adjustments, including, but not limited to, physical deterioration, obsolescence, or changes in price levels. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 330 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483080/330-10-50-2 + Details
Name: | us-gaap_InventoryWriteDown
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The net result for the period of deducting operating expenses from operating revenues. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 30 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-30 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 6: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 7: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 31 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-31 + Details
Name: | us-gaap_OperatingIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 41 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-41 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 4: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 5: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 924 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 11.L) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479941/924-10-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-5 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 30 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-30 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 42 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-42 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 40 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-40 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-22 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-4 + Details
Name: | us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of expenditure for addition to long-lived assets included in determination of segment assets by chief operating decision maker (CODM) or otherwise regularly provided to CODM. Excludes expenditure for addition to financial instrument, long-term customer relationship of financial institution, mortgage and other servicing rights, deferred policy acquisition cost, and deferred tax assets. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 48 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482785/280-10-55-48 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 49 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482785/280-10-55-49 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 270 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482964/270-10-50-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 32 -Subparagraph (ee) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-32 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 25 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-25 + Details
Name: | us-gaap_SegmentExpenditureAdditionToLongLivedAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_SegmentReportingInformationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The aggregate total costs related to selling a firm's product and services, as well as all other general and administrative expenses. Direct selling expenses (for example, credit, warranty, and advertising) are expenses that can be directly linked to the sale of specific products. Indirect selling expenses are expenses that cannot be directly linked to the sale of specific products, for example telephone expenses, Internet, and postal charges. General and administrative expenses include salaries of non-sales personnel, rent, utilities, communication, etc. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_SellingGeneralAndAdministrativeExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | srt_ConsolidationItemsAxis=dino_CorporateAndEliminationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_IntersegmentEliminationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_CorporateNonSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_RefiningSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_OperatingSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_RenewablesSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_MarketingSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_LubricantsAndSpecialtiesSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_MidstreamSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |