/* FoodCare Foodborne Guide v0.20.9 — Environmental Monitoring state machine */
.fbp-environment-hub [hidden]{display:none!important}
.fbp-environment-profile{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:18px!important;overflow:visible!important}
.fbp-env-profile-copy{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin:0 0 18px!important}
.fbp-env-profile-copy>div{min-width:0!important}.fbp-env-profile-copy p{margin:5px 0 0!important;max-width:1100px!important}
.fbp-env-jump-top{flex:0 0 auto!important;white-space:normal!important}
.fbp-env-profile-actions{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:14px!important;align-items:end!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
.fbp-env-profile-actions>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;grid-row:auto!important}
.fbp-env-profile-actions>.fbp-environment-food-search{grid-column:span 6!important;width:100%!important}
.fbp-env-profile-actions>.fbp-env-pathogen-search{grid-column:span 3!important;width:100%!important;position:relative!important;z-index:32!important}
.fbp-env-profile-actions>.fbp-environment-profile-run{grid-column:span 3!important;width:100%!important;min-width:0!important;height:49px!important;min-height:49px!important;white-space:normal!important}
.fbp-env-profile-actions>.fbp-environment-profile-run:disabled{opacity:.48!important;cursor:not-allowed!important;box-shadow:none!important}
.fbp-env-profile-actions .fbp-canonical-food-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:stretch!important;width:100%!important;min-width:0!important}
.fbp-env-profile-actions .fbp-search-with-clear{position:relative!important;min-width:0!important;width:100%!important}
.fbp-env-profile-actions input[type=search],.fbp-env-profile-actions select{width:100%!important;min-width:0!important;height:49px!important;min-height:49px!important;box-sizing:border-box!important}
.fbp-env-profile-actions .fbp-taxonomy-open{height:49px!important;min-height:49px!important;min-width:150px!important;white-space:normal!important}
.fbp-env-pathogen-search>label{display:block!important;margin:0 0 6px!important;font-weight:800!important;color:#142f70!important}
.fbp-env-pathogen-menu{position:absolute!important;z-index:2147483000!important;left:0!important;right:0!important;top:calc(100% + 7px)!important;max-height:340px!important;overflow:auto!important;padding:6px!important;border:1px solid #cbd8ea!important;border-radius:12px!important;background:#fff!important;box-shadow:0 18px 45px rgba(15,40,90,.2)!important}
.fbp-env-pathogen-menu button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:52px!important;padding:9px 11px!important;border:0!important;border-radius:8px!important;background:#fff!important;color:#173a85!important;text-align:left!important;cursor:pointer!important}
.fbp-env-pathogen-menu button:hover,.fbp-env-pathogen-menu button.is-active{background:#edf4ff!important}
.fbp-env-pathogen-menu button span{display:block!important;min-width:0!important}.fbp-env-pathogen-menu button b,.fbp-env-pathogen-menu button small{display:block!important;overflow-wrap:anywhere!important}.fbp-env-pathogen-menu button small{margin-top:3px!important;color:#6d7c94!important}.fbp-env-pathogen-menu button em{flex:0 0 auto!important;font-style:normal!important;font-size:12px!important;color:#66768e!important}
.fbp-env-pathogen-state{padding:12px!important;color:#64748b!important}
.fbp-environment-profile>small{display:block!important;margin:14px 0 0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.fbp-environment-profile-results{display:block!important;width:100%!important;min-width:0!important;margin-top:16px!important}
.fbp-env-idle-state,.fbp-env-ready-state,.fbp-env-general-warning,.fbp-env-no-results{padding:18px 20px!important;border:1px solid #d7e2f0!important;border-radius:14px!important;background:#f8fbff!important;color:#334766!important}
.fbp-env-idle-state b,.fbp-env-ready-state b,.fbp-env-general-warning b,.fbp-env-no-results b{display:block!important;margin-bottom:5px!important;color:#173b88!important;font-size:17px!important}
.fbp-env-idle-state p,.fbp-env-ready-state p,.fbp-env-general-warning p,.fbp-env-no-results p{margin:0!important;line-height:1.55!important}
.fbp-env-ready-state{border-left:5px solid #2858ad!important;background:#f3f7ff!important}.fbp-env-ready-state.is-general-only,.fbp-env-general-warning{border-left:5px solid #15947d!important;background:#f0faf7!important}
.fbp-env-profile-toolbar{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;margin-bottom:13px!important}.fbp-env-profile-toolbar>div{min-width:0!important}.fbp-env-profile-toolbar small,.fbp-env-profile-toolbar span{display:block!important}.fbp-env-profile-toolbar h3{margin:4px 0 5px!important;color:#173d8c!important}.fbp-env-profile-toolbar button{flex:0 0 auto!important}
.fbp-env-context-basis{margin-top:6px!important;color:#6b7b93!important}
.fbp-env-criticality-note,.fbp-env-general-warning{margin-bottom:14px!important}
.fbp-env-summary-table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;border:1px solid #dbe4ef!important;border-radius:14px!important;background:#fff!important;-webkit-overflow-scrolling:touch!important}
.fbp-env-summary-table{width:100%!important;min-width:1220px!important;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important}
.fbp-env-summary-table th,.fbp-env-summary-table td{font-size:13px!important;line-height:1.45!important;overflow-wrap:anywhere!important;word-break:normal!important}
.fbp-env-summary-table th:nth-child(1){width:190px!important}.fbp-env-summary-table th:nth-child(2){width:190px!important}.fbp-env-summary-table th:nth-child(3),.fbp-env-summary-table th:nth-child(4){width:75px!important}.fbp-env-summary-table th:nth-child(5){width:120px!important}.fbp-env-summary-table th:nth-child(6){width:190px!important}.fbp-env-summary-table th:nth-child(7){width:200px!important}.fbp-env-summary-table th:nth-child(8){width:95px!important}.fbp-env-summary-table th:nth-child(9){width:125px!important}
.fbp-env-priority-pill{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:7px!important;padding:6px 8px!important;border-radius:10px!important;font-size:12px!important;line-height:1.25!important;text-align:left!important}
.fbp-env-priority-pill em{display:inline-grid!important;place-items:center!important;min-width:34px!important;height:30px!important;border-radius:8px!important;background:rgba(255,255,255,.8)!important;font-style:normal!important;font-weight:950!important}
.fbp-env-priority-pill.priority-p1{background:#fde9ed!important;color:#981b33!important}.fbp-env-priority-pill.priority-p2{background:#fff0df!important;color:#8b4d0a!important}.fbp-env-priority-pill.priority-p3{background:#fff6d5!important;color:#75550a!important}.fbp-env-priority-pill.priority-p4{background:#e5f7f0!important;color:#096b55!important}.fbp-env-priority-pill.priority-p5{background:#ebf1ff!important;color:#214b9a!important}
.fbp-env-detail-row>td{padding:0!important}.fbp-env-detail-row .fbp-env-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:14px!important;background:#f7faff!important}.fbp-env-detail-row section{min-width:0!important;padding:14px!important;border:1px solid #dbe5f1!important;border-radius:11px!important;background:#fff!important}.fbp-env-detail-row section h5{margin:0 0 8px!important;color:#173e8d!important;font-size:14px!important}.fbp-env-detail-row section p,.fbp-env-detail-row section li{font-size:13px!important;line-height:1.52!important}
.fbp-library-environment{width:100%!important;max-width:100%!important;min-width:0!important;margin-top:18px!important;overflow:visible!important}.fbp-library-environment[hidden]{display:none!important}
.fbp-env-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important}.fbp-env-top>.fbp-sampling-export-actions{grid-column:1/-1!important}.fbp-env-view-toggle{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.fbp-env-quicknav{position:sticky!important;top:10px!important;z-index:18!important;display:block!important;max-width:100%!important;overflow:visible!important}.fbp-env-quicknav>b{display:block!important;margin-bottom:6px!important}.fbp-env-quicknav>div{display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-height:116px!important;overflow:auto!important}
.fbp-em-priority-line{display:flex!important;align-items:center!important;gap:9px!important;padding:10px 13px!important;border-bottom:1px solid #e3e9f1!important;background:#fafcff!important}.fbp-em-priority-code{display:inline-grid!important;place-items:center!important;min-width:42px!important;height:34px!important;border-radius:9px!important;background:#eaf0ff!important;color:#173e91!important;font-weight:950!important}.fbp-em-priority-code.is-p1{background:#fde9ed!important;color:#9b1d35!important}.fbp-em-priority-code.is-p2{background:#fff0df!important;color:#8a4b09!important}.fbp-em-priority-code.is-p3{background:#fff5cf!important;color:#73520a!important}.fbp-em-priority-code.is-p4{background:#e4f6ef!important;color:#086a53!important}.fbp-em-priority-code.is-p5{background:#eaf1ff!important;color:#224d9d!important}
.fbp-em-zoning-note,.fbp-em-guidance-panel{margin:12px!important;padding:13px 14px!important;border:1px solid #dbe4ef!important;border-radius:11px!important;background:#f8fbff!important}.fbp-em-zoning-note b,.fbp-em-guidance-panel h4{display:block!important;margin:0 0 6px!important;color:#173e8d!important}.fbp-em-zoning-note p,.fbp-em-guidance-panel p{margin:0 0 7px!important;line-height:1.5!important}.fbp-em-guidance-panel>div+div{margin-top:9px!important;padding-top:9px!important;border-top:1px solid #e3e9f1!important}.fbp-em-zoning-note.is-no-zoning{background:#f7f8fb!important}.fbp-em-zoning-note.is-zoning{background:#fff8e8!important;border-color:#efd690!important}

@media(max-width:1100px){
  .fbp-env-profile-actions>.fbp-environment-food-search{grid-column:1/-1!important}
  .fbp-env-profile-actions>.fbp-env-pathogen-search{grid-column:span 7!important}
  .fbp-env-profile-actions>.fbp-environment-profile-run{grid-column:span 5!important}
  .fbp-env-top{grid-template-columns:1fr!important}.fbp-env-quicknav{position:relative!important;top:auto!important}
}
@media(max-width:760px){
  .fbp-environment-profile{padding:13px!important}
  .fbp-env-profile-copy{display:block!important}.fbp-env-jump-top{width:100%!important;margin-top:10px!important}
  .fbp-env-profile-actions{grid-template-columns:1fr!important;gap:11px!important}
  .fbp-env-profile-actions>.fbp-environment-food-search,.fbp-env-profile-actions>.fbp-env-pathogen-search,.fbp-env-profile-actions>.fbp-environment-profile-run{grid-column:1!important;width:100%!important}
  .fbp-env-profile-actions .fbp-canonical-food-row{grid-template-columns:1fr!important}.fbp-env-profile-actions .fbp-taxonomy-open{width:100%!important}
  .fbp-env-pathogen-menu{position:fixed!important;inset:12px!important;max-height:none!important;border-radius:16px!important;padding:10px!important}
  .fbp-env-profile-toolbar{display:block!important}.fbp-env-profile-toolbar button{width:100%!important;margin-top:10px!important}
  .fbp-env-detail-row .fbp-env-detail-grid{grid-template-columns:1fr!important}
  .fbp-env-summary-table{min-width:1040px!important}
  .fbp-env-view-toggle{display:grid!important;grid-template-columns:1fr!important}.fbp-env-view-toggle button{width:100%!important}
}


/* Deterministic pre-analysis states are enforced by clearing and the hidden attribute. */
.fbp-env-profile-actions label,.fbp-env-profile-actions .fbp-food-product-field{font-size:13px!important;line-height:1.35!important}
.fbp-environment-profile-results,.fbp-library-environment{scroll-margin-top:18px!important}
.fbp-env-summary-table td>small{display:block!important;margin-top:4px!important;line-height:1.35!important}
.fbp-environment-profile[data-selection-state="analysis"] .fbp-env-ready-state{border-left-color:#203f95!important;background:#eef4ff!important}
