XML 51 R43.htm IDEA: XBRL DOCUMENT
v3.23.3

Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Oct. 31, 2023 | Jan. 31, 2023
--- | --- | ---
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Commodity futures asset | [1] | $ 172 | $ 80
Total assets |  |  | 185
Forward purchase contracts liability | [2] | 1,405 | 355
Commodity futures liability | [2] | 7 | 67
Total liabilities |  | 1,412 | 422
Forward purchase contracts asset | [1] |  | 105
Fair Value, Inputs, Level 1 [Member] |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Commodity futures asset | [1] |  |
Total assets |  |  |
Forward purchase contracts liability | [2] |  |
Commodity futures liability | [2] |  |
Total liabilities |  |  |
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] |  |  |
Commodity futures asset | [1] | 172 | 80
Total assets |  |  | 185
Forward purchase contracts liability | [2] | 1,405 | 355
Commodity futures liability | [2] | 7 | 67
Total liabilities |  | 1,412 | 422
Forward purchase contracts asset | [1] |  | 105
Fair Value, Inputs, Level 3 [Member] |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |
Commodity futures asset | [1] |  |
Total assets |  |  |
Forward purchase contracts liability | [2] |  |
Commodity futures liability | [2] |  |
Total liabilities |  |  |
Forward purchase contracts asset | [1] |  |
[1] | The forward purchase contracts and commodity futures assets are included in “Prepaid expenses and other” on the accompanying Consolidated Balance Sheets.
[2] | The commodity futures and forward purchase contracts liabilities are included in “Accrued expenses and other current liabilities” on the accompanying Consolidated Balance Sheets.

X
- References No definition available. + Details
Name: | rex_CommodityFuturesLiability
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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_ForwardPurchaseContractAsset
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContracts
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -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 Fair value of firm holdings in securities classified as other. Includes pledged and unpledged holdings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 940 -SubTopic 320 -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481961/940-320-45-2 + Details
Name: | us-gaap_FinancialInstrumentsOwnedOtherAtFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of financial obligations, including, but not limited to, debt instruments, derivative liabilities, federal funds purchased and sold under agreements to repurchase, securities loaned or sold under agreements to repurchase, financial instruments sold not yet purchased, guarantees, line of credit, loans and notes payable, servicing liability, and trading liabilities. + References No definition available. + Details
Name: | us-gaap_FinancialLiabilitiesFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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: |