XML 40 R31.htm IDEA: XBRL DOCUMENT
v3.23.3

DEPRECIATION AND AMORTIZATION (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2023
DEPRECIATION AND AMORTIZATION |
Schedule of depreciation and amortization | ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Three months ended | ​ | Nine months ended
​ | ​ | September 30, | ​ | September 30,
(in thousands) |  | ​ | 2023 | ​ | ​ | 2022 |  | ​ | 2023 | ​ | ​ | 2022
Cost of revenues | ​ | $ | 25,590 | ​ | $ | 18,795 | ​ | $ | 71,249 | ​ | $ | 53,942
Selling, general and administrative expenses | ​ | ​ | 2,798 | ​ | ​ | 2,146 | ​ | ​ | 7,467 | ​ | ​ | 6,559
Total | ​ | ​ | 28,388 | ​ | ​ | 20,941 | ​ | ​ | 78,716 | ​ | ​ | 60,501
​

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

X
- Definition The tabular disclosure of depreciation and amortization. + References No definition available. + Details
Name: | res_ScheduleOfDepreciationAndAmortizationTableTextBlock
Namespace Prefix: | res_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration