XML 48 R39.htm IDEA: XBRL DOCUMENT
v3.21.2

Leases (Details) - Schedule of Components of Lease Expense - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended
--- | --- | ---
Oct. 31, 2021 | Oct. 31, 2020 | Oct. 31, 2021 | Oct. 31, 2020
Schedule of Components of Lease Expense [Abstract] |  |  |  |
Operating lease expense | $ 1,690 | $ 1,545 | $ 4,805 | $ 4,779
Variable lease expense | 1,090 | 79 | 1,654 | 417
Total lease expense | $ 2,780 | $ 1,624 | $ 6,459 | $ 5,196

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

X
- Definition Amount of lease cost recognized by lessee for lease contract. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI http://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 + Details
Name: | us-gaap_LeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating lease expense. Excludes sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977 + Details
Name: | us-gaap_OperatingLeaseExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of variable lease cost, excluded from lease liability, recognized when obligation for payment is incurred for finance and operating leases. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI http://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971 + Details
Name: | us-gaap_VariableLeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration