XML 61 R52.htm IDEA: XBRL DOCUMENT
v3.21.2

Related-Party Transactions (Details) - USD ($) $ in Millions | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jul. 31, 2021 | Jul. 31, 2020 | Jul. 31, 2021 | Jul. 31, 2020 | Jan. 31, 2021
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Accounts Payable, Related Parties, Current | $ 2.5 |  | $ 2.5 |  | $ 0.7
One Earth Energy And Nu Gen Energy [Member] |  |  |  |  |
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | 20.7 | $ 4.9 | 37.4 | $ 17.2 |
Accounts Payable, Related Parties, Current | 2.5 |  | 2.5 |  | 0.7
Refined Coal [Member] |  |  |  |  |
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | 0.2 | $ 0.2 | 0.2 | $ 0.1 |
Accrued Liabilities for Commissions, Expense and Taxes | $ 0.1 |  | $ 0.1 |  | $ 0.1

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

X
- Definition Amount for accounts payable to related parties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(a)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(k)(1)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 + Details
Name: | us-gaap_AccountsPayableRelatedPartiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying amount for commissions, taxes and other expenses that were incurred but unpaid as of the balance sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.15) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 + Details
Name: | us-gaap_AccruedLiabilitiesForCommissionsExpenseAndTaxes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.2) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 + 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: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=rex_RefinedCoalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |