XML 64 R52.htm IDEA: XBRL DOCUMENT
v3.25.2

Significant Accounting Policies - Shipping and Handling Cost for Last Three Fiscal Years (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 26, 2025 | Jun. 27, 2024 | Jun. 29, 2023
Shipping And Handling Costs [Abstract] |  |  |
Shipping and handling costs | $ 33,800 | $ 32,460 | $ 30,918

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