XML 54 R41.htm IDEA: XBRL DOCUMENT
v3.24.3

Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Oct. 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] | $ 597 | $ 579
Commodity futures | [2] | (76) | (297)
Total assets |  | 521 | 282
Forward purchase contracts liability | [3] | 1,061 | 802
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] | (76) | (297)
Total assets |  | (76) | (297)
Forward purchase contracts liability | [3] | 0 | 0
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] | 597 | 579
Commodity futures | [2] | 0 | 0
Total assets |  | 597 | 579
Forward purchase contracts liability | [3] | 1,061 | 802
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
[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_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
- 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: |