XML 106 R94.htm IDEA: XBRL DOCUMENT
v3.25.2

Employee Benefit Plans - Additional Information (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 26, 2025 | Jun. 27, 2024
Defined Benefit Plan And Defined Contribution Plan Disclosure [Line Items] |  |
Life Insurance, Corporate or Bank Owned, Amount | $ 2,599 | $ 1,214
Deferred Compensation Liability, Classified, Noncurrent | 2,769 | 1,261
Matching contribution expense | $ 53 | $ 246
Employee Contribution First Three Percent [Member] |  |
Defined Benefit Plan And Defined Contribution Plan Disclosure [Line Items] |  |
Matching percentage by employer for 401(k) plan contributions | 100.00% |
Percent of employee contribution under contributory plan | 3.00% |
Employee Contribution Next Two Percent [Member] |  |
Defined Benefit Plan And Defined Contribution Plan Disclosure [Line Items] |  |
Matching percentage by employer for 401(k) plan contributions | 50.00% |
Percent of employee contribution under contributory plan | 2.00% |
Maximum [Member] |  |
Defined Benefit Plan And Defined Contribution Plan Disclosure [Line Items] |  |
Deferral percentage of performance-based compensation | 100.00% |
Deferral percentage of base salary | 80.00% |
Maximum length in years that NQDCP benefits may be paid through | 10 years |

X
- Definition Deferral percentage of base salary + References No definition available. + Details
Name: | jbss_DeferralPercentageOfBaseSalary
Namespace Prefix: | jbss_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Deferral percentage of performance-based compensation + References No definition available. + Details
Name: | jbss_DeferralPercentageOfPerformanceBasedCompensation
Namespace Prefix: | jbss_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Defined Benefit Plan and Defined Contribution Plan Disclosure [Line Items] + References No definition available. + Details
Name: | jbss_DefinedBenefitPlanAndDefinedContributionPlanDisclosureLineItems
Namespace Prefix: | jbss_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum length in years that NQDCP benefits may be paid through + References No definition available. + Details
Name: | jbss_MaximumLengthInYearsThatNqdcpBenefitsMayBePaidThrough
Namespace Prefix: | jbss_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate carrying value as of the balance sheet date of the liabilities for all deferred compensation arrangements payable beyond one year (or the operating cycle, if longer). + References No definition available. + Details
Name: | us-gaap_DeferredCompensationLiabilityClassifiedNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of discretionary contributions made by an employer to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage employer matches of the employee's percentage contribution matched. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition This item represents the amount that could be realized under a life insurance contract or contracts owned by the Entity as of the date of the statement of financial position. Such Entity-owned life insurance policies are commonly known as corporate-owned life insurance (COLI) or bank-owned life insurance (BOLI). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(12)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 325 -SubTopic 30 -Name Accounting Standards Codification -Section 25 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481612/325-30-25-1 + Details
Name: | us-gaap_LifeInsuranceCorporateOrBankOwnedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=jbss_EmployeeContributionFirstThreePercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=jbss_EmployeeContributionNextTwoPercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |