XML 67 R58.htm IDEA: XBRL DOCUMENT
v3.24.1.1.u2

Related-Party Transactions (Details) - One Earth Energy And Nu Gen Energy [Member] - USD ($) $ in Millions | 3 Months Ended |
--- | --- | ---
Apr. 30, 2024 | Apr. 30, 2023 | Jan. 31, 2024
Related-Party Transactions (Details) [Line Items] |  |  |
Costs and Expenses, Related Party | $ 30.6 | $ 33.8 |
Accounts Payable Related Parties | $ 1.9 |  | $ 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
- Details
Name: | dei_LegalEntityAxis=rex_OneEarthEnergyAndNuGenEnergyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |