<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>390</ContextCount>
  <ElementCount>505</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>106</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information Document</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformationDocument</Role>
      <ShortName>Document and Entity Information Document</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Property, Equipment and Capitalized Software</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftware</Role>
      <ShortName>Property, Equipment and Capitalized Software</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Lease Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitments</Role>
      <ShortName>Lease Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Deferred Compensation Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefits</Role>
      <ShortName>Deferred Compensation Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Employee Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEmployeeBenefits</Role>
      <ShortName>Employee Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Equity-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensation</Role>
      <ShortName>Equity-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Significant Clients</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSignificantClients</Role>
      <ShortName>Significant Clients</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureContingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Segments and Enterprise-Wide Disclosures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosures</Role>
      <ShortName>Segments and Enterprise-Wide Disclosures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Schedule II-Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccounts</Role>
      <ShortName>Schedule II-Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Property, Equipment and Capitalized Software (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftwareTables</Role>
      <ShortName>Property, Equipment and Capitalized Software (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftware</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitions</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Lease Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitmentsTables</Role>
      <ShortName>Lease Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitments</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Deferred Compensation Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsTables</Role>
      <ShortName>Deferred Compensation Benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefits</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Equity-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationTables</Role>
      <ShortName>Equity-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensation</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Segments and Enterprise-Wide Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosuresTables</Role>
      <ShortName>Segments and Enterprise-Wide Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosures</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Summary of Significant Accounting Policies - Basis of Presentation and Consolidation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesBasisOfPresentationAndConsolidationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Basis of Presentation and Consolidation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Summary of Significant Accounting Policies - Revenue by Vertical Market as Percentage of Total Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesRevenueByVerticalMarketAsPercentageOfTotalRevenueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Revenue by Vertical Market as Percentage of Total Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Summary of Significant Accounting Policies - Revenue by Contract Type (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesRevenueByContractTypeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Revenue by Contract Type (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Summary of Significant Accounting Policies - Schedule of Revenue by Geographic Location (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfRevenueByGeographicLocationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Revenue by Geographic Location (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Summary of Significant Accounting Policies - Billable Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesBillableExpensesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Billable Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Summary of Significant Accounting Policies - Transaction Price Allocated to Remaining Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTransactionPriceAllocatedToRemainingPerformanceObligationsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Transaction Price Allocated to Remaining Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Summary of Significant Accounting Policies - Transaction Price Allocated to Remaining Performance Obligations (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTransactionPriceAllocatedToRemainingPerformanceObligationsDetails1</Role>
      <ShortName>Summary of Significant Accounting Policies - Transaction Price Allocated to Remaining Performance Obligations (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Summary of Significant Accounting Policies - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesFairValueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Summary of Significant Accounting Policies - Life Insurance Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesLifeInsurancePoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Life Insurance Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies - Cash and Cash Equivalents, and Cash Overdrafts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsAndCashOverdraftsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Cash and Cash Equivalents, and Cash Overdrafts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Summary of Significant Accounting Policies - Accounts Receivable Factoring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAccountsReceivableFactoringDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Accounts Receivable Factoring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Summary of Significant Accounting Policies - Property, Equipment and Capitalized Software Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyEquipmentAndCapitalizedSoftwareCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Property, Equipment and Capitalized Software Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Summary of Significant Accounting Policies - Impairment of Long-lived assets and Long-lived assets to be disposed of (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesImpairmentOfLongLivedAssetsAndLongLivedAssetsToBeDisposedOfDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Impairment of Long-lived assets and Long-lived assets to be disposed of (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Summary of Significant Accounting Policies - Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSegmentsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Summary of Significant Accounting Policies - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesGoodwillDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Summary of Significant Accounting Policies - Summary of Changes in Carrying Amount of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfChangesInCarryingAmountOfGoodwillDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Changes in Carrying Amount of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Summary of Significant Accounting Policies - Summary of Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfAcquiredIntangibleAssetsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Summary of Significant Accounting Policies - Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAcquiredIntangibleAssetsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Summary of Significant Accounting Policies - Summary of Estimated Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedAmortizationExpenseDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Estimated Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Summary of Significant Accounting Policies - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Summary of Significant Accounting Policies - Basic and Diluted Earnings Per Share (EPS) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesBasicAndDilutedEarningsPerShareEPSDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Basic and Diluted Earnings Per Share (EPS) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Summary of Significant Accounting Policies - Net Income Per Share - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesNetIncomePerShareAdditionalInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Net Income Per Share - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Loss (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveLossParentheticalDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Loss (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Summary of Significant Accounting Policies - Schedule of Net Benefit Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfNetBenefitCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Net Benefit Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Summary of Significant Accounting Policies - Guarantees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesGuaranteesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Guarantees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Property, Equipment and Capitalized Software Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/DisclosurePropertyEquipmentAndCapitalizedSoftwareAdditionalInformationDetails</Role>
      <ShortName>Property, Equipment and Capitalized Software Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Property, Equipment and Capitalized Software - Schedule of Property, Equipment and Capitalized Software (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftwareScheduleOfPropertyEquipmentAndCapitalizedSoftwareDetails</Role>
      <ShortName>Property, Equipment and Capitalized Software - Schedule of Property, Equipment and Capitalized Software (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Property, Equipment and Capitalized Software - Useful Life (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftwareUsefulLifeDetails</Role>
      <ShortName>Property, Equipment and Capitalized Software - Useful Life (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Property, Equipment and Capitalized Software - Schedule of Capitalized Software Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftwareScheduleOfCapitalizedSoftwareCostsDetails</Role>
      <ShortName>Property, Equipment and Capitalized Software - Schedule of Capitalized Software Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Property, Equipment and Capitalized Software - Schedule of Amortization Expense and Accumulated Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosurePropertyEquipmentAndCapitalizedSoftwareScheduleOfAmortizationExpenseAndAccumulatedAmortizationDetails</Role>
      <ShortName>Property, Equipment and Capitalized Software - Schedule of Amortization Expense and Accumulated Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Acquisitions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetails</Role>
      <ShortName>Acquisitions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Acquisitions - Summary of Acquisition Date Fair Value of Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsSummaryOfAcquisitionDateFairValueOfConsiderationDetails</Role>
      <ShortName>Acquisitions - Summary of Acquisition Date Fair Value of Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Acquisitions - Summary of Allocation of Aggregate Purchase Consideration to Fair Values of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsSummaryOfAllocationOfAggregatePurchaseConsiderationToFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails</Role>
      <ShortName>Acquisitions - Summary of Allocation of Aggregate Purchase Consideration to Fair Values of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Acquisitions - Summary of Intangible Assets Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsSummaryOfIntangibleAssetsAcquiredDetails</Role>
      <ShortName>Acquisitions - Summary of Intangible Assets Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Income Taxes - Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesProvisionForIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Lease Commitments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitmentsAdditionalInformationDetails</Role>
      <ShortName>Lease Commitments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Lease Commitments - Summary of Lease Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/DisclosureLeaseCommitmentsSummaryOfLeaseCostsDetails</Role>
      <ShortName>Lease Commitments - Summary of Lease Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Lease Commitments - Summary of Maturities of Lease Liabilities for Operating Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitmentsSummaryOfMaturitiesOfLeaseLiabilitiesForOperatingLiabilitiesDetails</Role>
      <ShortName>Lease Commitments - Summary of Maturities of Lease Liabilities for Operating Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Lease Commitments - Summary of Weighted Average Remaining Lease Term, Discount Rate and Supplemental Cash Flow Information for All Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureLeaseCommitmentsSummaryOfWeightedAverageRemainingLeaseTermDiscountRateAndSupplementalCashFlowInformationForAllOperatingLeasesDetails</Role>
      <ShortName>Lease Commitments - Summary of Weighted Average Remaining Lease Term, Discount Rate and Supplemental Cash Flow Information for All Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Deferred Compensation Benefits - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsAdditionalInformationDetails</Role>
      <ShortName>Deferred Compensation Benefits - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Deferred Compensation Benefits - Schedule of Net Periodic Pension Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsScheduleOfNetPeriodicPensionCostDetails</Role>
      <ShortName>Deferred Compensation Benefits - Schedule of Net Periodic Pension Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Deferred Compensation Benefits - Deferred Compensation Benefits Change in Benefit Obligation and Reconciliation of Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsDeferredCompensationBenefitsChangeInBenefitObligationAndReconciliationOfFairValueDetails</Role>
      <ShortName>Deferred Compensation Benefits - Deferred Compensation Benefits Change in Benefit Obligation and Reconciliation of Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Deferred Compensation Benefits - Schedule of Accrued Benefit Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsScheduleOfAccruedBenefitCostDetails</Role>
      <ShortName>Deferred Compensation Benefits - Schedule of Accrued Benefit Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Deferred Compensation Benefits - Deferred Compensation Benefits Anticipated Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureDeferredCompensationBenefitsDeferredCompensationBenefitsAnticipatedBenefitPaymentsDetails</Role>
      <ShortName>Deferred Compensation Benefits - Deferred Compensation Benefits Anticipated Benefit Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Employee Benefits - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEmployeeBenefitsAdditionalInformationDetails</Role>
      <ShortName>Employee Benefits - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Shareholders' Equity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureShareholdersEquityAdditionalInformationDetails</Role>
      <ShortName>Shareholders' Equity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Equity-Based Compensation - Summary of Equity-Based Compensation Expense, the Corresponding Tax Benefit and Net Equity-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfEquityBasedCompensationExpenseCorrespondingTaxBenefitAndNetEquityBasedCompensationExpenseDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Equity-Based Compensation Expense, the Corresponding Tax Benefit and Net Equity-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Equity-Based Compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Equity-Based Compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Equity-Based Compensation - Summary of Weighted-Average Assumptions Used to Estimate Fair Value of Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfWeightedAverageAssumptionsUsedToEstimateFairValueOfOptionsDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Weighted-Average Assumptions Used to Estimate Fair Value of Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Equity-Based Compensation - Summary of Stock Option Activity Under the 2020 Plan, 2010 Plan and Equity Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfStockOptionActivityUnder2020Plan2010PlanAndEquityPlanDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Stock Option Activity Under the 2020 Plan, 2010 Plan and Equity Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Equity-Based Compensation - Summary of Restricted Stock Activity Under the 2010 Plan, Equity Plan and the 1991 Restricted Stock Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfRestrictedStockActivityUnder2010PlanEquityPlanAnd1991RestrictedStockPlanDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Restricted Stock Activity Under the 2010 Plan, Equity Plan and the 1991 Restricted Stock Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Equity-Based Compensation - Summary of Stock Options Outstanding for the 2020 Plan, 2010 Plan and Equity Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfStockOptionsOutstandingFor2020Plan2010PlanAndEquityPlanDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Stock Options Outstanding for the 2020 Plan, 2010 Plan and Equity Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100900 - Disclosure - Equity-Based Compensation - Summary of Stock Options that are Exercisable for the 2020 Plan, 2010 Plan and the Equity Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureEquityBasedCompensationSummaryOfStockOptionsThatAreExercisableFor2020Plan2010PlanAndEquityPlanDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Stock Options that are Exercisable for the 2020 Plan, 2010 Plan and the Equity Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100910 - Disclosure - Significant Clients - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSignificantClientsAdditionalInformationDetails</Role>
      <ShortName>Significant Clients - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>100920 - Disclosure - Segments and Enterprise-Wide Disclosures - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosuresAdditionalInformationDetails</Role>
      <ShortName>Segments and Enterprise-Wide Disclosures - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>100930 - Disclosure - Segments and Enterprise-Wide Disclosures - Schedule of Operating Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosuresScheduleOfOperatingSegmentsDetails</Role>
      <ShortName>Segments and Enterprise-Wide Disclosures - Schedule of Operating Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>100940 - Disclosure - Segments and Enterprise-Wide Disclosures - Schedule of Revenue from External Customers and Long-Lived Assets, by Geographical Areas (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureSegmentsAndEnterpriseWideDisclosuresScheduleOfRevenueFromExternalCustomersAndLongLivedAssetsByGeographicalAreasDetails</Role>
      <ShortName>Segments and Enterprise-Wide Disclosures - Schedule of Revenue from External Customers and Long-Lived Assets, by Geographical Areas (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="ctg-20221231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>100950 - Disclosure - Schedule II-Valuation and Qualifying Accounts - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule II-Valuation and Qualifying Accounts - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ctg.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccounts</ParentRole>
      <Position>93</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 14 fact(s) appearing in ix:hidden were eligible for transformation: ctg:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfInstallments, dei:CurrentFiscalYearEndDate, us-gaap:PropertyPlantAndEquipmentUsefulLife, us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1, us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1, us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod -  ctg-20221231.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-K" original="ctg-20221231.htm">ctg-20221231.htm</File>
    <File>ctg-20221231.xsd</File>
    <File>ctg-20221231_cal.xml</File>
    <File>ctg-20221231_def.xml</File>
    <File>ctg-20221231_lab.xml</File>
    <File>ctg-20221231_pre.xml</File>
    <File>ctg-ex21.htm</File>
    <File>ctg-ex23.htm</File>
    <File>ctg-ex31_1.htm</File>
    <File>ctg-ex31_2.htm</File>
    <File>ctg-ex32.htm</File>
    <File>ctg-ex3_2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img137873428_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2022</BaseTaxonomy>
    <BaseTaxonomy items="1464">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
