XML 52 R43.htm IDEA: XBRL DOCUMENT
v3.24.1.1.u2

Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Apr. 30, 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] | $ 1,438 | $ 579
Commodity futures | [2] | 25 | (297)
Total assets |  | 1,463 | 282
Forward purchase contracts liability | [3] | 227 | 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] | 25 | (297)
Total assets |  | 25 | (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] | 1,438 | 579
Commodity futures | [2] | 0 | 0
Total assets |  | 1,438 | 579
Forward purchase contracts liability | [3] | 227 | 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] |
| (1) | The forward purchase contracts asset is included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[2] |
| (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] |
| (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: |