<?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">0001474903</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001474903</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</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">0001474903</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-19">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-1" id="f-20">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c-1" id="f-1">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-2">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-3">BGSF, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-4">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-5">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-6">Common Stock, $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-7">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-8" unitRef="shares">250000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-9" unitRef="usd">5.18</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-10" unitRef="usd">1295000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="8" id="f-11" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-12" unitRef="usd">178.84</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-13" unitRef="usd">1295000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-14" unitRef="usd">178.84</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="0" id="f-15" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-16" unitRef="usd">178.84</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-17">&lt;div style="text-align:center;text-indent:72pt"&gt;&lt;table style="border-collapse:collapse;display:inline-table;margin-bottom:5pt;vertical-align:text-bottom;width:99.358%"&gt;&lt;tr&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:4.867%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:92.933%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt"&gt;&lt;td colspan="3" style="padding:0 1pt"&gt;&lt;div&gt;&lt;span style="font-family:'Tahoma',sans-serif;font-size:8pt;font-weight:400;line-height:120%"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:0 1pt"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;(1)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;Pursuant to Rule 416 under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this registration statement on Form S-8 (this &#x201c;Registration Statement&#x201d;) shall also cover an additional indeterminable number of shares of common stock which become issuable under the BGSF, Inc. 2020 Employee Stock Purchase Plan, as amended (the &#x201c;Plan&#x201d;), by reason of any future stock dividend, stock split, recapitalization, or other similar transaction effected without the receipt of consideration which results in an increase in the number of outstanding shares of common stock.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;(2)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;Additional shares of common stock authorized for issuance pursuant to awards made under the Plan as a result of a recent amendment to the Plan.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;(3)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:120%"&gt;Estimated in accordance with Rules 457(c) and 457(h) solely for purposes of calculating the registration fee. The proposed maximum offering price per share and the proposed maximum aggregate offering price are based on the average of the $5.27 (high) and $5.08 (low) sales prices of the registrant&#x2019;s common stock as reported on the New York Stock Exchange on May 19, 2026, which date is within five business days prior to filing this Registration Statement.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
