<?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/2021q4"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bgsf-20220427.xsd" xlink:type="simple"/>
    <context id="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001474903</identifier>
        </entity>
        <period>
            <startDate>2022-04-27</startDate>
            <endDate>2022-04-27</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N180L2ZyYWc6OWFiZDJlZTExNTQzNGE4Y2FhMTc3YzVjMzdjNDZlYWYvdGFibGU6ZTU2ODU4MzQyYTk5NDllZTlmZDMzZmIwYWRhYjRmMjUvdGFibGVyYW5nZTplNTY4NTgzNDJhOTk0OWVlOWZkMzNmYjBhZGFiNGYyNV8zLTItMS0xLTI2OTgz_546fc9b1-87c1-4a8a-8639-573fce5442a5">0001474903</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N180L2ZyYWc6OWFiZDJlZTExNTQzNGE4Y2FhMTc3YzVjMzdjNDZlYWYvdGFibGU6ZTU2ODU4MzQyYTk5NDllZTlmZDMzZmIwYWRhYjRmMjUvdGFibGVyYW5nZTplNTY4NTgzNDJhOTk0OWVlOWZkMzNmYjBhZGFiNGYyNV80LTItMS0xLTI2OTgz_448d33fb-0031-45d9-a507-c6647e13b8cd">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl84NA_4194b91c-a895-44ed-8dcf-ffca7c600da6">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMzA_319658dc-ed53-4dcf-a477-e166fbb51a8b">2022-04-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTIz_55bdb1d4-b9f2-4437-93a5-1091f7d46679">BGSF, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6Y2NmMDE2YWM2YTJjNDcxNmE4MTRlMjA3MDc4YTY3MzYvdGFibGVyYW5nZTpjY2YwMTZhYzZhMmM0NzE2YTgxNGUyMDcwNzhhNjczNl8wLTAtMS0xLTI2OTgz_01060898-2294-4398-a900-ac5e20ea44e9">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6Y2NmMDE2YWM2YTJjNDcxNmE4MTRlMjA3MDc4YTY3MzYvdGFibGVyYW5nZTpjY2YwMTZhYzZhMmM0NzE2YTgxNGUyMDcwNzhhNjczNl8wLTEtMS0xLTI2OTgz_5cf7688b-865d-468a-b219-c028207532cd">001-36704</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6Y2NmMDE2YWM2YTJjNDcxNmE4MTRlMjA3MDc4YTY3MzYvdGFibGVyYW5nZTpjY2YwMTZhYzZhMmM0NzE2YTgxNGUyMDcwNzhhNjczNl8wLTItMS0xLTI2OTgz_4cedc506-9d2f-4117-981a-214474750525">26-0656684</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTIw_0514338f-7dc0-4b08-abd0-cb201ea04a74">5850 Granite Parkway, Suite 730</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTI0_174743ef-7ccd-4cb4-bc45-a0fdafbd08ef">Plano</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTIx_d16beef8-bebb-4f55-8563-fffeb981316e">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTI1_b3052fb6-ebf7-4d87-9697-9a06d30ef2e6">75024</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTIy_7811c0da-0cee-47b9-9e68-fa5f8571ffe1">972</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTI2_e41a5319-03de-4d71-811a-9cd8219ada02">692-2400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6MWFmMGNjZDJkYjllNDkyODhhMDBjN2U2NzNiZTM3Y2QvdGFibGVyYW5nZToxYWYwY2NkMmRiOWU0OTI4OGEwMGM3ZTY3M2JlMzdjZF8wLTEtMS0xLTI2OTgz_a5803eee-f01f-49ec-8c2a-3919c188acce">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6ZTE3ZWE5Njk4NjQzNGI0NTg3NzY1MTE1ZTg5MzJjNWUvdGFibGVyYW5nZTplMTdlYTk2OTg2NDM0YjQ1ODc3NjUxMTVlODkzMmM1ZV8wLTEtMS0xLTI2OTgz_b569383a-8de3-4857-a2a9-829dc612839b">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6NjBjZWJhZmUzMjk5NDYyYjlkZTA2MjY1MzJjODc3NDkvdGFibGVyYW5nZTo2MGNlYmFmZTMyOTk0NjJiOWRlMDYyNjUzMmM4Nzc0OV8wLTEtMS0xLTI2OTgz_c6223075-90e5-463a-b049-f6691c118f53">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6MTE4MTJkMDAwOWQzNDExOTk2YTgxZGQ5NjI3YjRiMTQvdGFibGVyYW5nZToxMTgxMmQwMDA5ZDM0MTE5OTZhODFkZDk2MjdiNGIxNF8wLTEtMS0xLTI2OTgz_83930e61-47a6-4f78-b863-66121a0cd6fb">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGV4dHJlZ2lvbjpmYjY1NzY2NjMxZjE0MmQxYTE3NzAzZTNlZDRmYzQ3Nl8yMTI4_fecd1b60-9c3c-4517-81a1-c0db659927a4">false</dei:EntityEmergingGrowthCompany>
    <dei:Security12bTitle
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6ODMzYWRiZGQ0ZjZmNDNjOWJhOGI0YjM2YmQ3ZWRlMDEvdGFibGVyYW5nZTo4MzNhZGJkZDRmNmY0M2M5YmE4YjRiMzZiZDdlZGUwMV8xLTAtMS0xLTI2OTgz_688447a5-fbc9-4f0c-b507-35d74d3c7607">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6ODMzYWRiZGQ0ZjZmNDNjOWJhOGI0YjM2YmQ3ZWRlMDEvdGFibGVyYW5nZTo4MzNhZGJkZDRmNmY0M2M5YmE4YjRiMzZiZDdlZGUwMV8xLTEtMS0xLTI2OTgz_d35e9e0a-d28f-4809-9c61-bd5c111e257d">BGSF</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6ODMzYWRiZGQ0ZjZmNDNjOWJhOGI0YjM2YmQ3ZWRlMDEvdGFibGVyYW5nZTo4MzNhZGJkZDRmNmY0M2M5YmE4YjRiMzZiZDdlZGUwMV8xLTItMS0xLTI2OTgz_679b251f-a59a-4f32-897d-2958280ee3fb">NYSE</dei:SecurityExchangeName>
    <dei:DocumentPeriodEndDate
      contextRef="iaa59dc254ae24928a4f33e6cd38b926b_D20220427-20220427"
      id="id3VybDovL2RvY3MudjEvZG9jOmM2NzlkN2QyYjZlYTQwMjk4N2QyMDgwOTFlZTkyMzY3L3NlYzpjNjc5ZDdkMmI2ZWE0MDI5ODdkMjA4MDkxZWU5MjM2N18xL2ZyYWc6ZmI2NTc2NjYzMWYxNDJkMWExNzcwM2UzZWQ0ZmM0NzYvdGFibGU6YWE1MWRiNmEzMWFjNDY3MGE0MTAyOTcwNDVhM2IyMWQvdGFibGVyYW5nZTphYTUxZGI2YTMxYWM0NjcwYTQxMDI5NzA0NWEzYjIxZF80LTEtMS0xLTI2OTgz_319658dc-ed53-4dcf-a477-e166fbb51a8b">2022-04-27</dei:DocumentPeriodEndDate>
</xbrl>
