<?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/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bgsf-20230303.xsd" xlink:type="simple"/>
    <context id="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001474903</identifier>
        </entity>
        <period>
            <startDate>2023-03-03</startDate>
            <endDate>2023-03-03</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV80L2ZyYWc6ZWMxMWEzMjMyYTM5NGNjMDkzZGYyNTdhZmZiMjM1MDMvdGFibGU6YTE0NzkyNWY4ZTVhNDIyZDg3OWZhM2E0OWQ0NTA5MjMvdGFibGVyYW5nZTphMTQ3OTI1ZjhlNWE0MjJkODc5ZmEzYTQ5ZDQ1MDkyM18zLTItMS0xLTc4OTA4_ac13c113-6bce-49eb-b9d1-47c7a7be8bc9">0001474903</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV80L2ZyYWc6ZWMxMWEzMjMyYTM5NGNjMDkzZGYyNTdhZmZiMjM1MDMvdGFibGU6YTE0NzkyNWY4ZTVhNDIyZDg3OWZhM2E0OWQ0NTA5MjMvdGFibGVyYW5nZTphMTQ3OTI1ZjhlNWE0MjJkODc5ZmEzYTQ5ZDQ1MDkyM180LTItMS0xLTc4OTA4_c5f86ef3-d256-4d64-9d0a-c7e391c6b8d5">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV84NA_7ed88db5-3f68-4aa5-835f-998bf79f63b7">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV81NDk3NTU4MTU4OTg_b406b733-a004-4e20-8afc-972502b4d634">2023-03-03</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTg3_266d62b7-2794-49e5-a79a-2b48ac1255e6">BGSF, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6YmM3ZjA4ZDA5Y2I1NGM2MGE3ZTEyMzk2M2VmOGEyNjIvdGFibGVyYW5nZTpiYzdmMDhkMDljYjU0YzYwYTdlMTIzOTYzZWY4YTI2Ml8wLTAtMS0xLTc4OTA4_e42777e9-0a10-4eb1-9d0c-db6592e03eca">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6YmM3ZjA4ZDA5Y2I1NGM2MGE3ZTEyMzk2M2VmOGEyNjIvdGFibGVyYW5nZTpiYzdmMDhkMDljYjU0YzYwYTdlMTIzOTYzZWY4YTI2Ml8wLTEtMS0xLTc4OTA4_6f3e5107-5ffa-4747-8bc6-69e3732fff59">001-36704</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6YmM3ZjA4ZDA5Y2I1NGM2MGE3ZTEyMzk2M2VmOGEyNjIvdGFibGVyYW5nZTpiYzdmMDhkMDljYjU0YzYwYTdlMTIzOTYzZWY4YTI2Ml8wLTItMS0xLTc4OTA4_28daccf1-9979-4f03-88e9-c35da4f8d476">26-0656684</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTg4_204d42cc-2f0a-4c3a-8ad3-a3c0270e5b85">5850 Granite Parkway, Suite 730</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTg5_cd111a59-7bc8-4470-9948-7e5145ef44e3">Plano</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTky_39e252fa-3a30-49e1-8774-c49d4e245339">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTkz_d40f046d-2954-42f1-a3f7-93e97fedd8c1">75024</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTk0_5c453dd8-d3a3-4f85-8b91-a84836ce52eb">972</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTk1_8bedfff0-c966-4eb0-a105-ac6c1ba684ac">692-2400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6MDUzYzQ5ZjgyZjc4NGZlZmJhODFhZjAwOGI5N2M3ODkvdGFibGVyYW5nZTowNTNjNDlmODJmNzg0ZmVmYmE4MWFmMDA4Yjk3Yzc4OV8wLTEtMS0xLTc4OTA4_6b8b4f8e-866f-4fd3-a9e3-425cffd2b842">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6M2E2ZDdlYWYwYmIzNGYzN2FiMzA3YWZhZDgxOTQyOGUvdGFibGVyYW5nZTozYTZkN2VhZjBiYjM0ZjM3YWIzMDdhZmFkODE5NDI4ZV8wLTEtMS0xLTc4OTA4_f3c5d257-e168-421b-945c-68ec2d546bca">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6MDY3ZjVlMjk3NTg2NGQ0NmE0ZDNjNjc2Mjk1ZmRlMmIvdGFibGVyYW5nZTowNjdmNWUyOTc1ODY0ZDQ2YTRkM2M2NzYyOTVmZGUyYl8wLTEtMS0xLTc4OTA4_61c4d0b8-9d94-4bb2-b6d9-a3e9e5fc2d5f">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6ZDYzZWZhNTYxZmE1NGEwMmIwZWNlYWI5NDdkODY0ODIvdGFibGVyYW5nZTpkNjNlZmE1NjFmYTU0YTAyYjBlY2VhYjk0N2Q4NjQ4Ml8wLTEtMS0xLTc4OTA4_5e2985a2-6d7f-43c1-9fcc-1c80d3eea085">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGV4dHJlZ2lvbjpiYTc0NzIwZTVkM2Y0MjlkODIwNTdiOGRjYWE3MGI5ZV8xOTkx_1b31dac2-f3b0-4aae-b1d8-0e854d8e7697">false</dei:EntityEmergingGrowthCompany>
    <dei:Security12bTitle
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6MGYyYTkyMDIzMmVjNDA4YWJiM2MxYzNhMjdlZmQ2Y2EvdGFibGVyYW5nZTowZjJhOTIwMjMyZWM0MDhhYmIzYzFjM2EyN2VmZDZjYV8xLTAtMS0xLTc4OTA4_6f831521-a607-4d0f-b0a3-7c4bd9b2c9a6">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6MGYyYTkyMDIzMmVjNDA4YWJiM2MxYzNhMjdlZmQ2Y2EvdGFibGVyYW5nZTowZjJhOTIwMjMyZWM0MDhhYmIzYzFjM2EyN2VmZDZjYV8xLTEtMS0xLTc4OTA4_1c2ac48a-59d6-4bb9-85fb-cf0246ac242f">BGSF</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="idf8fea167ad444c7a0ced3c0bc918ed3_D20230303-20230303"
      id="id3VybDovL2RvY3MudjEvZG9jOjAwMzFiYzdlMzZiNTRjZDQ4M2EyNjYwOTY3YWI3ZDM5L3NlYzowMDMxYmM3ZTM2YjU0Y2Q0ODNhMjY2MDk2N2FiN2QzOV8xL2ZyYWc6YmE3NDcyMGU1ZDNmNDI5ZDgyMDU3YjhkY2FhNzBiOWUvdGFibGU6MGYyYTkyMDIzMmVjNDA4YWJiM2MxYzNhMjdlZmQ2Y2EvdGFibGVyYW5nZTowZjJhOTIwMjMyZWM0MDhhYmIzYzFjM2EyN2VmZDZjYV8xLTItMS0xLTc4OTA4_a83784d7-2d12-4171-bab8-37d168786bbc">NYSE</dei:SecurityExchangeName>
</xbrl>
