XML 65 R56.htm IDEA: XBRL DOCUMENT
v3.21.2

Related-Party Transactions (Details) - USD ($) | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Oct. 31, 2021 | Oct. 31, 2020 | Oct. 31, 2021 | Oct. 31, 2020 | Jan. 31, 2021
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | $ 39,000 | $ (15,000) | $ 230,000 | $ (160,000) |
Accounts Payable, Related Parties, Current | 1,700 |  | 1,700 |  | $ 700
One Earth Energy And Nu Gen Energy [Member] |  |  |  |  |
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | 22,900,000 | 16,900,000 | 60,300,000 | 34,000,000 |
Accounts Payable, Related Parties, Current | 1,700,000 |  | 1,700,000 |  | 700,000
Refined Coal [Member] |  |  |  |  |
Related-Party Transactions (Details) [Line Items] |  |  |  |  |
Costs and Expenses, Related Party | $ 40,000 | $ (15,000) | $ 200,000 | $ (200,000) |
Accrued Liabilities for Commissions, Expense and Taxes |  |  |  |  | $ 100,000

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