XML 57 R46.htm IDEA: XBRL DOCUMENT
v3.22.1

FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Jan. 31, 2022 | Jan. 31, 2021
--- | --- | ---
FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Forward purchase contracts asset | [1] | $ 993 |
Investment in cooperative | [2] | 354 | $ 354
Total assets |  | 1,347 | 2,498
Commodity futures | [3] |  | 1,794
Commodity futures | [3] | 933 |
Forward purchase contracts asset | [1] |  | 2,144
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] |  |
Investment in cooperative | [2] |  |
Commodity futures | [3] |  |
Commodity futures | [3] |  |
Forward purchase contracts asset | [1] |  |
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] | 993 |
Investment in cooperative | [2] |  |
Total assets |  | 993 | 2,144
Commodity futures | [3] |  | 1,794
Commodity futures | [3] | 933 |
Forward purchase contracts asset | [1] |  | 2,144
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] |  |
Investment in cooperative | [2] | 354 | 354
Total assets |  | 354 | 354
Commodity futures | [3] |  |
Commodity futures | [3] |  |
Forward purchase contracts asset | [1] |  |
[1] | The forward purchase contracts asset is included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[2] | The investment in cooperative is included in “Other assets” on the accompanying Consolidated Balance Sheets.
[3] | The commodity futures liability is included in “Accrued expenses and other current liabilities” on the accompanying Consolidated Balance Sheets.

X
- References No definition available. + Details
Name: | rex_CommodityContractLiabilityCurrent
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
- Definition Fair value of investment in cooperative as of the reporting date. + References No definition available. + Details
Name: | rex_InvestmentInCooperativeFairValueDisclosure
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(8)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + 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: |