<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>184</ContextCount>
  <ElementCount>343</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>69</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="ctg-20230331.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/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformationDocument</Role>
      <ShortName>Document and Entity Information Document</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Condensed Consolidated Statements of Shareholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfShareholdersEquityUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Shareholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureFinancialStatements</Role>
      <ShortName>Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAcquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Net Income Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureNetIncomePerShare</Role>
      <ShortName>Net Income Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Lease Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitments</Role>
      <ShortName>Lease Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Deferred Compensation and Other Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefits</Role>
      <ShortName>Deferred Compensation and Other Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ctg-20230331.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/20230331/taxonomy/role/Role_DisclosureEquityBasedCompensation</Role>
      <ShortName>Equity-based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Treasury Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureTreasuryStock</Role>
      <ShortName>Treasury Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Significant Clients</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSignificantClients</Role>
      <ShortName>Significant Clients</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureAcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAcquisitions</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Net Income Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureNetIncomePerShareTables</Role>
      <ShortName>Net Income Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureNetIncomePerShare</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Lease Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitmentsTables</Role>
      <ShortName>Lease Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitments</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Deferred Compensation and Other Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefitsTables</Role>
      <ShortName>Deferred Compensation and Other Benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefits</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSegmentInformation</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Financial Statements - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureFinancialStatementsAdditionalInformationDetails</Role>
      <ShortName>Financial Statements - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Summary of Significant Accounting Policies - Basis of Presentation and Consolidation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesBasisOfPresentationAndConsolidationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Basis of Presentation and Consolidation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Summary of Significant Accounting Policies - Summary of Segment Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfSegmentRevenueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Segment Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ctg-20230331.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/20230331/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-20230331.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/20230331/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-20230331.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/20230331/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-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Summary of Significant Accounting Policies - Transaction Price Allocated to Remaining Performance Obligations (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/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>36</Position>
    </Report>
    <Report instance="ctg-20230331.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/20230331/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-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Summary of Significant Accounting Policies - Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesFairValueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Summary of Significant Accounting Policies - Life Insurance Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesLifeInsurancePoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Life Insurance Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Summary of Significant Accounting Policies - Cash and Cash Equivalents, and Cash Overdrafts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesCashAndCashEquivalentsAndCashOverdraftsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Cash and Cash Equivalents, and Cash Overdrafts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies - Accounts Receivable Factoring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAccountsReceivableFactoringDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Accounts Receivable Factoring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property, Equipment and Capitalized Software (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPropertyEquipmentAndCapitalizedSoftwareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property, Equipment and Capitalized Software (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Summary of Significant Accounting Policies - Schedule of Capitalized Software Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfCapitalizedSoftwareCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Capitalized Software Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Summary of Significant Accounting Policies - Property, Equipment and Capitalized Software Costs - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyEquipmentAndCapitalizedSoftwareCostsAdditionalInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Property, Equipment and Capitalized Software Costs - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Summary of Significant Accounting Policies - Schedule of Amortization Expense and Accumulated Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfAmortizationExpenseAndAccumulatedAmortizationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Amortization Expense and Accumulated Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Summary of Significant Accounting Policies - Guarantees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesGuaranteesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Guarantees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Summary of Significant Accounting Policies - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesGoodwillDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Summary of Significant Accounting Policies - Summary of Changes in Carrying Amount of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/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>48</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Summary of Significant Accounting Policies - Summary of Goodwill by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfGoodwillBySegmentDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Goodwill by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Summary of Significant Accounting Policies - Summary of Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfAcquiredIntangibleAssetsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Summary of Significant Accounting Policies - Summary of Estimated Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfEstimatedAmortizationExpenseDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Estimated Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Acquisitions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetails</Role>
      <ShortName>Acquisitions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Acquisitions - Summary of Acquisition Date Fair Value of Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureAcquisitionsSummaryOfAcquisitionDateFairValueOfConsiderationDetails</Role>
      <ShortName>Acquisitions - Summary of Acquisition Date Fair Value of Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Acquisitions - Summary of Aggregate Purchase Consideration to Fair Values of Assets Acquired &amp; Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureAcquisitionsSummaryOfAggregatePurchaseConsiderationToFairValuesOfAssetsAcquiredLiabilitiesAssumedDetails</Role>
      <ShortName>Acquisitions - Summary of Aggregate Purchase Consideration to Fair Values of Assets Acquired &amp; Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Acquisitions - Summary of Intangible Assets Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureAcquisitionsSummaryOfIntangibleAssetsAcquiredDetails</Role>
      <ShortName>Acquisitions - Summary of Intangible Assets Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Net Income Per Share - Schedule of Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureNetIncomePerShareScheduleOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Net Income Per Share - Schedule of Basic and Diluted Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Net Income Per Share - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureNetIncomePerShareAdditionalInformationDetails</Role>
      <ShortName>Net Income Per Share - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Lease Commitments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitmentsAdditionalInformationDetails</Role>
      <ShortName>Lease Commitments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Lease Commitments - Summary of Lease Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitmentsSummaryOfLeaseCostsDetails</Role>
      <ShortName>Lease Commitments - Summary of Lease Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Lease Commitments - Summary of Maturities of Lease Liabilities for Operating Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureLeaseCommitmentsSummaryOfMaturitiesOfLeaseLiabilitiesForOperatingLiabilitiesDetails</Role>
      <ShortName>Lease Commitments - Summary of Maturities of Lease Liabilities for Operating Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - 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/20230331/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>61</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Accumulated Other Comprehensive Loss - Schedule of Accumulated Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossScheduleOfAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Schedule of Accumulated Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Accumulated Other Comprehensive Loss - Schedule of Accumulated Other Comprehensive Loss (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossScheduleOfAccumulatedOtherComprehensiveLossParentheticalDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Schedule of Accumulated Other Comprehensive Loss (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Accumulated Other Comprehensive Loss - Schedule of Actuarial Losses Amortized to Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossScheduleOfActuarialLossesAmortizedToExpenseDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Schedule of Actuarial Losses Amortized to Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Deferred Compensation and Other Benefits - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefitsAdditionalInformationDetails</Role>
      <ShortName>Deferred Compensation and Other Benefits - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Deferred Compensation and Other Benefits - Schedule of Net Periodic Pension Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefitsScheduleOfNetPeriodicPensionCostDetails</Role>
      <ShortName>Deferred Compensation and Other Benefits - Schedule of Net Periodic Pension Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Deferred Compensation and Other Benefits - Schedule of Change in Fair Value of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureDeferredCompensationAndOtherBenefitsScheduleOfChangeInFairValueOfPlanAssetsDetails</Role>
      <ShortName>Deferred Compensation and Other Benefits - Schedule of Change in Fair Value of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Equity-based Compensation - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureEquityBasedCompensationAdditionalInformationDetails</Role>
      <ShortName>Equity-based Compensation - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Treasury Stock - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureTreasuryStockAdditionalInformationDetails</Role>
      <ShortName>Treasury Stock - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Significant Clients - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSignificantClientsAdditionalInformationDetails</Role>
      <ShortName>Significant Clients - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Segment Information - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSegmentInformationAdditionalInformationDetails</Role>
      <ShortName>Segment Information - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Segment Information - Schedule of Operating Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/Role_DisclosureSegmentInformationScheduleOfOperatingSegmentsDetails</Role>
      <ShortName>Segment Information - Schedule of Operating Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ctg-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Segment Information - Schedule of Goodwill by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ctg.com/20230331/taxonomy/role/DisclosureSegmentInformationScheduleOfGoodwillBySegmentDetails</Role>
      <ShortName>Segment Information - Schedule of Goodwill by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</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">[dq-0542-Deprecated-Concept] Concept TreasuryStockMember in us-gaap/2022 used in 20 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. ctg-20230331.htm 1602, 1606, 1637, 1641, 1672, 1676, 1707, 1711, 1882, 1886, 2057, 2061, 2092, 2096, 2127, 2131, 2162, 2166, 2337, 2341</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:PropertyPlantAndEquipmentUsefulLife, us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1 -  ctg-20230331.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="ctg-20230331.htm">ctg-20230331.htm</File>
    <File>ctg-20230331.xsd</File>
    <File>ctg-20230331_cal.xml</File>
    <File>ctg-20230331_def.xml</File>
    <File>ctg-20230331_lab.xml</File>
    <File>ctg-20230331_pre.xml</File>
    <File>ctg-ex31_1.htm</File>
    <File>ctg-ex31_2.htm</File>
    <File>ctg-ex32.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="657">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
