XML 95 R80.htm IDEA: XBRL DOCUMENT
v3.23.2

Income Taxes - Additional Information (Detail) - USD ($) $ in Thousands | 12 Months Ended |  |  |
--- | --- | --- | --- | ---
Jun. 29, 2023 | Jun. 30, 2022 | Jun. 24, 2021 | Jun. 25, 2020
IncomeTaxDisclosure [Line Items] |  |  |  |
Year of tax returns audit | 2020 2021 2022 |  |  |
Unrecognized tax benefits and accrued interest and penalties long-term | $ 448 | $ 381 |  |
Total gross amounts of unrecognized tax benefits | $ 463 | $ 390 | $ 326 | $ 203
California [Member] |  |  |  |
IncomeTaxDisclosure [Line Items] |  |  |  |
Year of tax returns audit | 2019 2020 2021 2022 |  |  |
Tax Year 2021 [Member] | Illinois [Member] |  |  |  |
IncomeTaxDisclosure [Line Items] |  |  |  |
Income Tax Examination, Year under Examination | 2021 |  |  |
Tax Year 2022 [Member] | Illinois [Member] |  |  |  |
IncomeTaxDisclosure [Line Items] |  |  |  |
Year of tax returns audit | 2022 |  |  |

X
- Definition Income Tax Disclosure [Line Items] + References No definition available. + Details
Name: | jbss_IncometaxdisclosureLineItems
Namespace Prefix: | jbss_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax year being audited in the income tax examination, in YYYY format. + References No definition available. + Details
Name: | us-gaap_IncomeTaxExaminationYearUnderExamination
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:gYearListItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tax year that remains open to examination under enacted tax laws, in YYYY format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_OpenTaxYear
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:gYearListItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of unrecognized tax benefits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15A -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-15A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 10B -Publisher FASB -URI https://asc.fasb.org//1943274/2147482525/740-10-45-10B + Details
Name: | us-gaap_UnrecognizedTaxBenefits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 15 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-15 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | jbss_StateAxis=stpr_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TaxPeriodAxis=us-gaap_TaxYear2021Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | jbss_StateAxis=stpr_IL
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TaxPeriodAxis=us-gaap_TaxYear2022Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |