XML 49 R40.htm IDEA: XBRL DOCUMENT
v3.20.2

Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis - USD ($) $ in Thousands | Oct. 31, 2020 | Jan. 31, 2020
--- | --- | ---
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts |  |  |  | $ (230) |
Commodity futures and swaps |  | $ (378) |  |  |
Derivative Financial Instruments, Liabilities [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts | [1] | 351 |  |  |
Total assets |  | 705 |  |  |
Forward purchase contract liability | [2] |  |  | 230 |
Fair Value, Inputs, Level 1 [Member] | Derivative Financial Instruments, Liabilities [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts | [1] |  |  |  |
Forward purchase contract liability | [2] |  |  |  |
Fair Value, Inputs, Level 2 [Member] | Derivative Financial Instruments, Liabilities [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts | [1] | 351 |  |  |
Total assets |  | 351 |  |  |
Forward purchase contract liability | [2] |  |  | 230 |
Fair Value, Inputs, Level 3 [Member] | Derivative Financial Instruments, Liabilities [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Forward purchase contracts | [1] |  |  |  |
Total assets |  | 354 |  |  |
Forward purchase contract liability | [2] |  |  |  |
Derivative Financial Instruments, Assets [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Investment in cooperative | [3] | 354 |  | 341 |
Total assets |  |  |  | 693 |
Commodity futures and swaps |  | 378 | [2] | 352 | [1]
Derivative Financial Instruments, Assets [Member] | Fair Value, Inputs, Level 1 [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Investment in cooperative | [3] |  |  |  |
Commodity futures and swaps |  |  | [2] |  | [1]
Derivative Financial Instruments, Assets [Member] | Fair Value, Inputs, Level 2 [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Investment in cooperative | [3] |  |  |  |
Total assets |  |  |  | 352 |
Commodity futures and swaps |  | 378 | [2] | 352 | [1]
Derivative Financial Instruments, Assets [Member] | Fair Value, Inputs, Level 3 [Member] |  |  |  |  |
Fair Value (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] |  |  |  |  |
Investment in cooperative | [3] | 354 |  | 341 |
Total assets |  |  |  | 341 |
Commodity futures and swaps |  |  | [2] |  | [1]
[1] | The forward purchase contract asset and the commodity futures and swaps asset are included in “Prepaid expenses and other current assets” on the accompanying Consolidated Condensed Balance Sheets.
[2] | The forward purchase contract liability and the commodity futures and swaps liability are included in “Accrued expenses and other current liabilities” on the accompanying Consolidated Condensed Balance Sheets.
[3] | The investment in cooperative is included in “Other assets” on the accompanying Consolidated Condensed Balance Sheets.

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
- Definition Forward purchase contract liability + References No definition available. + Details
Name: | rex_ForwardPurchaseContractLiability
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 The fair value as of the balance sheet date of firm holdings in all assets resulting from contracts that meet the criteria of being accounted for as derivative instruments. Their value is derived from the values of one or more underlying assets, reference rates, or indices of asset values. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph c -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959 + Details
Name: | us-gaap_FinancialInstrumentsOwnedDerivativesAndOtherContractualAgreementsAtFairValue
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_FairValueByLiabilityClassAxis=us-gaap_DerivativeFinancialInstrumentsLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_DerivativeFinancialInstrumentsAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |