<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bbsi-20260506.xsd" xlink:type="simple"/>
    <context id="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000902791</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_6b519a1e-4fc0-48fa-a84f-1c833e12b78c">0000902791</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_9c823af9-7347-43cd-b827-452ce1a49263">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_36a10dc6-e0a0-4107-ab04-e35bc3bb2cde">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_098279e1-2308-4276-8bf2-6a56dda25713">2026-05-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_8cc6282b-d4d9-475d-b1a1-c0fe1134a0e5">BARRETT BUSINESS SERVICES, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_0b0f1e9b-8c10-4350-8db7-f94fe3dc21be">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_7248476d-b4df-46c8-bf13-f070e400f526">0-21886</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_c2bf8ac3-2d05-4029-8e16-b237f70ec763">52-0812977</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_716dc3ec-282a-4057-9aa7-62c82821d1c0">8100 NE Parkway Drive</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_4e10ac1f-fa26-4dbb-a160-e29b03cb63ca">Vancouver</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_8f8ded14-2c0b-4886-b586-363dc1f27762">WA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_5e44ef6d-6092-4bee-808c-925b602b8018">98662</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_d971b884-b185-4136-bf4f-f2e6800d26d8">(360)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_0749b3bf-7b70-400e-a4c4-b23a14ae4a6d">828-0700</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_b9101b3e-a6f3-4ddc-9b7d-acae2a8e0023">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_156ceff6-b28a-474b-ad60-e2d64aede40d">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_c1a9ca14-7e74-4b08-8c23-735f2ef1469e">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_b6ece50a-6c1e-4275-97b7-aa4d0632c635">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_9a625505-4024-4054-966d-c8cda5cb7747">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_00b6d59e-b19e-4958-8920-32b957d59435">BBSI</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_dd51770f-7ce4-46ed-a3d4-4bf51defd448">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_1ad9595c-1ddb-4670-8f7b-4a6061db8e6d"
      id="F_e74462ed-4a4b-474f-aa33-a065134f0085">false</dei:EntityEmergingGrowthCompany>
</xbrl>
