XML 68 R53.htm IDEA: XBRL DOCUMENT
v3.23.2

Significant Accounting Policies - Shipping and Handling Cost for Last Three Fiscal Years (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 29, 2023 | Jun. 30, 2022 | Jun. 24, 2021
Shipping And Handling Costs [Abstract] |  |  |
Shipping and handling costs | $ 30,918 | $ 33,851 | $ 26,456

X
- Definition Shipping and handling costs. + References No definition available. + Details
Name: | jbss_ShippingAndHandlingCostsAbstract
Namespace Prefix: | jbss_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Shipping handling and transportation cost. + References No definition available. + Details
Name: | jbss_ShippingHandlingAndTransportationCost
Namespace Prefix: | jbss_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration