XML 95 R72.htm IDEA: XBRL DOCUMENT
v3.22.4

Inventories - Narrative (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Inventory [Line Items] |  |  |
Excess of replacement cost over LIFO value of inventory | $ 39,000 | $ 111,100 | $ 36,900
Increase (decrease) of cost of products sold | 52,400 | 8,700 |
Inventory valuation reserves | $ 61,151 | 8,739 |
Refining |  |  |
Inventory [Line Items] |  |  |
Decrease to cost of product sold due to change in lower of cost or market reserve |  | $ (318,900) |

X
- Definition Cost Of Sales, Effect Of Renewable Fuels Standard + References No definition available. + Details
Name: | dino_CostOfSalesEffectOfRenewableFuelsStandard
Namespace Prefix: | dino_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of inventory reserves for last-in first-out (LIFO) and other inventory valuation methods. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(6)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 330 -SubTopic 10 -Section 50 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314 + Details
Name: | us-gaap_InventoryAdjustments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(6)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 330 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB TOPIC 5.BB) -URI https://asc.fasb.org/extlink&oid=27011343&loc=d3e100047-122729 + 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: |