XML 57 R46.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Inventories - Narrative (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2024 | Jun. 30, 2023 | Dec. 31, 2023
Inventory [Line Items] |  |  |  |  |
Inventory valuation reserves | $ 109,077 |  | $ 109,077 |  | $ 331,570
Refining |  |  |  |  |
Inventory [Line Items] |  |  |  |  |
Inventory valuation reserves |  |  |  |  | 220,600
Increase (decrease) to cost of sales |  | $ 26,800 | (220,600) | $ 26,800 |
Renewables |  |  |  |  |
Inventory [Line Items] |  |  |  |  |
Inventory valuation reserves | 109,100 |  | 109,100 |  | $ 111,000
Increase (decrease) to cost of sales | $ (3,100) | $ (34,700) | $ (1,900) | $ 12,900 |

X
- Definition The difference between the change in the inventory reserve representing the cumulative difference in cost between the first in, first out and the last in, first out inventory valuation methods and any LIFO decrement which have been reflected in the statement of income during the period. + References No definition available. + Details
Name: | us-gaap_InventoryLIFOReserveEffectOnIncomeNet
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_InventoryLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of valuation reserve for inventory. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 330 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.BB) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480581/330-10-S99-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(6)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_InventoryValuationReserves
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=dino_RefiningSegmentMember
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: |