XML 76 R65.htm IDEA: XBRL DOCUMENT
v3.22.1

DISCONTINUED OPERATIONS (Details) - Schedule Of Discontinued Items Statement of Operations - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2022 | Jan. 31, 2021 | Jan. 31, 2020
Schedule Of Discontinued Items Statement of Operations [Abstract] |  |  |  |
Net sales and revenue | [1] | $ 400 | $ 182 | $ 334
Cost of Sales |  | 8,602 | 5,854 | 8,251
Gross loss |  | (8,202) | (5,672) | (7,917)
Selling, general and administrative |  | 698 | 22 | (274)
Loss before income taxes |  | (8,900) | (5,694) | (7,643)
Benefit for income taxes |  | 13,295 | 6,554 | 10,828
Net income from discontinued operations, net of tax |  | 4,395 | 860 | 3,185
Net loss attributable to noncontrolling interests | [2] | 397 | 261 | 340
Net income attributable to REX common shareholders |  | $ 4,792 | $ 1,121 | $ 3,525
[1] | Refined coal sales were recorded net of the cost of coal as the Company purchased the coal feedstock from the customer to which the processed refined coal was sold.
[2] | Net loss attributable to noncontrolling interest represents the minority investor’s share of the loss before income taxes as noncontrolling interests does not include any gain from the refined coal tax credits.

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

X
- Definition Amount of tax expense (benefit) related to a discontinued operation. Includes, but is not limited to, tax expense (benefit) related to income (loss) from operations during the phase-out period, tax expense (benefit) related to gain (loss) on disposal, tax expense (benefit) related to gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and tax expense (benefit) related to adjustments of a prior period gain (loss) on disposal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3B -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 20 -Section 45 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3A -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -URI https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5C -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319 + Details
Name: | us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of costs of goods sold attributable to disposal group, including, but not limited to, discontinued operation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of general and administrative expense attributable to disposal group, including, but not limited to, discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of gross profit attributable to disposal group, including, but not limited to, discontinued operation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of other income attributable to disposal group, including, but not limited to, discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760 + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after tax of income (loss) from a discontinued operation including the portion attributable to the noncontrolling interest. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(12)) -URI https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3B -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5C -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3A -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 270 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=109227538&loc=d3e44648-109337 + Details
Name: | us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after tax of income (loss) from a discontinued operation attributable to the noncontrolling interest. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 15 -URI https://asc.fasb.org/extlink&oid=126929396&loc=SL4568447-111683 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 19 -URI https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5C -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3B -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3A -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759 Reference 9: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759 + Details
Name: | us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount after tax of income (loss) from a discontinued operation attributable to the parent. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3A -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 3B -URI https://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5C -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 5B -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 19 -URI https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 45 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759 + Details
Name: | us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration