/* /Pages/Redesign/AssociateReviewCenter/Tabs/AssociatePerspective/AssociateHubTab.razor.rz.scp.css */
/* Scoped overrides for the Pesticide Result modal instance only.
   Reaches the child-rendered modal DOM through ::deep so neither
   FarmerStylishModal nor PesticideResultStatementTab are modified. */

.pesticide-result-modal-host[b-j4jzydbngu]  .fsm-container.fsm-size-xl {
    max-width: 1200px;
    width: min(1200px, 95vw);
}

/* Cap the body to the viewport and turn it into a flex column so the
   inner form owns the scroll; header stays fixed above it. */
.pesticide-result-modal-host[b-j4jzydbngu]  .fsm-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow: hidden;
}

/* Propagate the constrained height down the wrapper chain. */
.pesticide-result-modal-host[b-j4jzydbngu]  .pesticide-result-tab {
    flex: 1 1 auto;
    min-height: 0;
}

.pesticide-result-modal-host[b-j4jzydbngu]  .pesticide-result-form-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.pesticide-result-modal-host[b-j4jzydbngu]  .pesticide-result-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Only the categories area scrolls, so Save / Cancel / Submit stay pinned. */
.pesticide-result-modal-host[b-j4jzydbngu]  .pesticide-result-form-categories {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Keep each accordion at its natural height instead of being shrunk by the
   flex column, so the categories area overflows and the scrollbar forms. */
.pesticide-result-modal-host[b-j4jzydbngu]  .category-accordion {
    flex: 0 0 auto;
}

/* Let a wide 5-column table scroll horizontally instead of clipping. */
.pesticide-result-modal-host[b-j4jzydbngu]  .category-body {
    overflow-x: auto;
}
/* /Pages/Redesign/AssociateReviewCenter/Tabs/JtiPerspective/PesticideResultJtiDetail.razor.rz.scp.css */
.result-detail[b-45p1vmp630] {
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.result-detail-category-title[b-45p1vmp630] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0D0F11;
    padding: 8px 0 6px;
    border-bottom: 2px solid #007476;
    letter-spacing: 0.01em;
}

.result-detail-table th[b-45p1vmp630] {
    position: sticky;
    top: 40px;
    z-index: 1;
    background: #F7F8F9;
    color: #4B5768;
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-heanlotg3o] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-heanlotg3o] {
    flex: 1;
}

.farmer-body[b-heanlotg3o] {
    margin-top: var(--mud-appbar-height) !important;
}

.mud-snackbar-custom-position[b-heanlotg3o] {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    justify-content: center !important;
}
