XML 70 R57.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Related-Party Transactions (Details) - One Earth Energy And Nu Gen Energy [Member] - USD ($) $ in Millions | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jul. 31, 2024 | Jul. 31, 2023 | Jul. 31, 2024 | Jul. 31, 2023 | Jan. 31, 2024
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | $ 28.3 | $ 26.4 |  |  |
Related Party Transaction, Purchases from Related Party |  |  | $ 59.0 | $ 59.9 |
Accounts Payable Related Parties | $ 1.0 |  | $ 1.0 |  | $ 5.8

X
- References No definition available. + Details
Name: | rex_AccountsPayableRelatedParties
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Costs of sales and operating expenses for the period incurred from transactions with related parties. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_CostsAndExpensesRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | dei_LegalEntityAxis=rex_OneEarthEnergyAndNuGenEnergyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |