XML 65 R57.htm IDEA: XBRL DOCUMENT
v3.23.3

Related-Party Transactions (Details) - One Earth Energy And Nu Gen Energy [Member] - USD ($) $ in Millions | 3 Months Ended | 9 Months Ended | 12 Months Ended
--- | --- | --- | ---
Oct. 31, 2023 | Oct. 31, 2022 | Oct. 31, 2023 | Oct. 31, 2022 | Jan. 31, 2023
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | $ 32.7 | $ 35.2 | $ 92.6 | $ 101.2 |
Accounts Payable Related Parties |  |  | $ 1.9 |  | $ 1.5

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

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