XML 55 R42.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Jul. 31, 2024 | Jan. 31, 2024
--- | --- | ---
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Forward purchase contracts asset | [1] | $ 4 | $ 579
Commodity futures | [2] | 835 | (297)
Total assets |  | 839 | 282
Forward purchase contracts liability | [3] | 4,643 | 802
Commodity futures liability | [2] | 56 |
Total liabilities |  | 4,699 |
Fair Value, Inputs, Level 1 [Member] |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Forward purchase contracts asset | [1] | 0 | 0
Commodity futures | [2] | 835 | (297)
Total assets |  | 835 | (297)
Forward purchase contracts liability | [3] | 0 | 0
Commodity futures liability | [2] | 56 |
Total liabilities |  | 56 |
Fair Value, Inputs, Level 2 [Member] |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Forward purchase contracts asset | [1] | 4 | 579
Commodity futures | [2] | 0 | 0
Total assets |  | 4 | 579
Forward purchase contracts liability | [3] | 4,643 | 802
Commodity futures liability | [2] |  |
Total liabilities |  | 4,643 |
Fair Value, Inputs, Level 3 [Member] |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Forward purchase contracts asset | [1] | 0 | 0
Commodity futures | [2] | 0 | 0
Total assets |  | 0 | 0
Forward purchase contracts liability | [3] | 0 | $ 0
Commodity futures liability | [2] |  |
[1] | The forward purchase contracts asset is included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[2] | The commodity futures assets and liabilities are netted with cash collateral due from broker and included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[3] | The forward purchase contracts liability is included in “Accrued expenses and other current liabilities” on the accompanying Consolidated Balance Sheets.

X
- References No definition available. + Details
Name: | rex_AssetFairValueDisclosure
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_CommodityFutures
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_CommodityFuturesLiability
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsAsset
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsLiability
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_LiabilityFairValueDisclosure
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |