XML 74 R56.htm IDEA: XBRL DOCUMENT
v3.25.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) | Jan. 31, 2025 USD ($) gal bu | Jan. 31, 2024 USD ($) gal bu
--- | --- | ---
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Debt Instrument, Collateral Amount (in Dollars) | $ | $ 2,523,000 | $ 2,152,000
Liabilities, Total [Member] | Corn [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Forward Purchase Contracts, Quantity | 16,800,000 | 9,300,000
Liabilities, Total [Member] | Corn [Member] | Short [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Commodity Futures, Quantity |  | 255,000
Liabilities, Total [Member] | Corn [Member] | Long [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Commodity Futures, Quantity |  | 6,900,000
Liabilities, Total [Member] | Ethanol [Member] | Short [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Commodity Futures, Quantity | gal | 4,200,000 | 210,000
Assets [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Forward Purchase Contracts, Quantity | 7,600,000 | 8,200,000
Assets [Member] | Corn [Member] | Short [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Commodity Futures, Quantity | 6,300,000 |
Assets [Member] | Corn [Member] | Long [Member] |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |
Commodity Futures, Quantity | 575,000 |

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_DERIVATIVEFINANCIALINSTRUMENTSDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsQuantity
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477734/942-470-50-3 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_LiabilitiesTotalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_CornMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=us-gaap_ShortMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=us-gaap_LongMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_EthanolMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_AssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |