<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000731012</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000731012</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-18">0000731012</dei:EntityCentralIndexKey>
    <ffd:FormTp contextRef="c-1" id="f-19">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-20">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-1" id="f-22">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName contextRef="c-1" id="f-1">HEALTHCARE SERVICES GROUP, INC.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-2">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-3">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-4">Common Stock, $0.01 par value per share: Reserved for future issuance under the Amended and Restated 2020 Omnibus Incentive Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-5">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-6" unitRef="shares">2500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-7" unitRef="usd">22.75</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="0" id="f-8" unitRef="usd">56875000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="8" id="f-9" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">7854.44</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="0" id="f-11" unitRef="usd">56875000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">7854.44</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-13" unitRef="usd">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-14" unitRef="usd">7854.44</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-15">As described in the Explanatory Note in this registration statement, the number of shares of common stock, par value $0.01 per share ("Common Stock") registered hereby consists of 2,500,000 shares being registered for the first time pursuant to the Healthcare Services Group, Inc. ("the Company") Second Amended and Restated 2020 Omnibus Incentive Plan (the "Amended Plan"). Such shares are subject to reissuance under the Amended Plan in the event the awards are subsequently forfeited, terminated, lapsed, or satisfied thereunder in cash or property other than shares. (2) Pursuant to Rule 416(c) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;) this Registration Statement covers an indeterminate amount of interests to be offered or sold pursuant to the Amended Plan. Pursuant to Rule 416(a), this Registration Statement also covers an indeterminate number of additional shares that may be offered or issued as a result of any stock dividend, stock split, recapitalization, or similar transaction effected without the receipt of consideration that results in an increase in the number of the outstanding shares of Common Stock. (3) With respect to the shares available for issuance under the Amended Plan, pursuant to Rule 457(c) and Rule 457(h) under the Securities Act, the offering price per share, solely for the purpose of determining the registration fee, is equal to the average of the high and low prices of the Company&#x2019;s Common Stock reported on the Nasdaq Global Select Market on July&#160;23, 2026 of $22.75 per share.</ffd:OfferingNote>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-16" unitRef="shares">2500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-17" unitRef="usd">22.75</ffd:MaxOfferingPricPerScty>
</xbrl>
