XML 66 R48.htm IDEA: XBRL DOCUMENT
v3.25.1

FAIR VALUE - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($) $ in Thousands | Jan. 31, 2025 | Jan. 31, 2024
--- | --- | ---
FAIR VALUE - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) [Line Items] |  |  |
Forward purchase contracts asset | [1] | $ 1,253 | $ 579
Commodity futures | [2] | (1,291) | (297)
Total assets |  | (38) | 282
Forward purchase contracts liability | [3] | 378 | 802
Fair Value, Inputs, Level 1 [Member] |  |  |
FAIR VALUE - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) [Line Items] |  |  |
Forward purchase contracts asset | [1] |  |
Commodity futures | [2] | (1,291) | (297)
Total assets |  | (1,291) | (297)
Forward purchase contracts liability | [3] |  |
Fair Value, Inputs, Level 2 [Member] |  |  |
FAIR VALUE - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) [Line Items] |  |  |
Forward purchase contracts asset | [1] | 1,253 | 579
Commodity futures | [2] |  |
Total assets |  | 1,253 | 579
Forward purchase contracts liability | [3] | 378 | 802
Fair Value, Inputs, Level 3 [Member] |  |  |
FAIR VALUE - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) [Line Items] |  |  |
Forward purchase contracts asset | [1] |  |
Commodity futures | [2] |  |
Total assets |  |  |
Forward purchase contracts liability | [3] |  |
[1] | The forward purchase contracts asset is included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[2] | The commodity futures liability is netted with cash collateral due from broker and included in “Prepaid expense 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_FAIRVALUEScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetailsLineItems
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
- Definition Fair value portion of asset recognized for present right to economic benefit. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 100 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-100 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Carrying amount as of the balance sheet date of the asset arising from commodity contracts such as futures contracts tied to the movement of a particular commodity, which are expected to be converted into cash or otherwise disposed of within a year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(8)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_CommodityContractAssetCurrent
Namespace Prefix: | us-gaap_
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: |