XML 63 R50.htm IDEA: XBRL DOCUMENT
v3.25.2

Derivative Financial Instruments (Details) gal in Millions | Jul. 31, 2025 bu gal | Jan. 31, 2025 bu gal
--- | --- | ---
Assets [Member] | Corn [Member] |  |
Derivative Financial Instruments (Details) [Line Items] |  |
Forward Purchase Contracts, Quantity | 800,000 | 16,800,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
Liabilities, Total [Member] | Corn [Member] |  |
Derivative Financial Instruments (Details) [Line Items] |  |
Forward Purchase Contracts, Quantity | 14,200,000 | 7,600,000
Liabilities, Total [Member] | Corn [Member] | Short [Member] |  |
Derivative Financial Instruments (Details) [Line Items] |  |
Commodity Futures, Quantity | 6,200,000 |
Liabilities, Total [Member] | Corn [Member] | Long [Member] |  |
Derivative Financial Instruments (Details) [Line Items] |  |
Commodity Futures, Quantity | 500,000 |
Liabilities, Total [Member] | Ethanol [Member] | Short [Member] |  |
Derivative Financial Instruments (Details) [Line Items] |  |
Commodity Futures, Quantity | gal | 3.8 | 4.2

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
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_AssetsMember
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_DerivativeInstrumentRiskAxis=us-gaap_LiabilitiesTotalMember
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: |