/* Scoped styles for 1.4.8 navigation, field help and evidence intake. */
#steps .phase-step > .gw-phase-line{display:flex;align-items:stretch;gap:4px}#steps .gw-phase-line > button:first-child{flex:1;min-width:0}#steps .gw-branch-toggle{width:42px;flex:0 0 42px;border:1px solid #bdd4d9;background:#eff6f7;color:#18465b;border-radius:10px;font-size:20px;cursor:pointer}#steps .active b{color:#0a6155!important;background:#fff!important}#steps .gw-branches{list-style:none;margin:8px 0 14px 18px;padding:0 0 0 10px;border-left:3px solid #bedbd5}#steps .gw-branches li{margin:5px 0}#steps .gw-branches button{width:100%;text-align:left;display:block;border:1px solid transparent;border-radius:10px;background:#f5f9fa;color:#203f48;padding:10px;cursor:pointer;overflow-wrap:anywhere;font:inherit}#steps .gw-branches button:hover{background:#e7f3ef}#steps .gw-branches button.is-active{border:2px solid #0b695b;background:#e4f4ee}#steps .gw-branches strong{display:block;font-size:16px;line-height:1.35}#steps .gw-branches small{display:block;font-size:12px;line-height:1.4;margin-top:4px}.gw-nav-empty{font-size:14px;line-height:1.5;color:#4a6870;padding:10px}.gw-mobile-toggle{display:none}.gw-editor-heading{padding:20px;border-radius:14px;background:#e7f5f1;border-left:5px solid #126b5b;margin-bottom:18px}.gw-editor-heading h2{margin:0 0 10px;font-size:26px}.gw-editor-heading p{margin:6px 0;line-height:1.6}.gw-editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.gw-part-section{margin:12px 0;border:1px solid #c1d7da;border-radius:14px;overflow:hidden;background:#fff}.gw-part-section>summary{padding:17px 20px;background:#f0f7f8;font-weight:800;cursor:pointer;font-size:19px}.gw-part-body{padding:12px}.gw-part-body .layer-head,.gw-part-body .component-summary{display:none}.gw-part-body .layer{border:0;padding:10px;margin:0}.gw-component-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:18px 0}.gw-component-card{padding:18px;border:1px solid #bfd7d3;border-radius:14px;background:#f6fbfa;min-width:0}.gw-component-card h3{margin:0 0 10px}.gw-component-card p{overflow-wrap:anywhere}.gw-component-card .btn{margin-top:12px}.gw-brief{font-size:14px;line-height:1.6;color:#39555c;margin:8px 0}.gw-scope{font-size:13px;line-height:1.55;color:#285969;border-left:3px solid #76a5ac;padding:5px 9px;margin:7px 0;overflow-wrap:anywhere}.gw-help{margin:10px 0;background:#f5f9fc;border-radius:9px;border:1px solid #dce7eb}.gw-help>summary{padding:10px 12px;cursor:pointer;color:#245575;font-size:14px;font-weight:700;line-height:1.5}.gw-i{display:inline-flex;width:21px;height:21px;border-radius:50%;align-items:center;justify-content:center;border:1px solid #4d7894;margin-right:5px;font:700 15px Georgia,serif}.gw-help dl{margin:0;padding:0 14px 12px}.gw-help dl>div{margin:10px 0}.gw-help dt{font-weight:700;font-size:14px;margin-bottom:3px}.gw-help dd{margin:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.gw-short{min-height:46px!important;height:50px;resize:vertical}.gw-link-warning{font-size:14px;line-height:1.6;border-left:4px solid #507893;padding:12px;background:#edf4fb}.gw-advanced{grid-column:1/-1;padding:12px;border:1px solid #d6e5e8;border-radius:12px}.gw-advanced>summary{font-weight:750;cursor:pointer}.gw-workspace{color:#173c45}.gw-workspace>header{padding:20px;border-radius:15px;background:#eaf5f1;border-top:5px solid #136455;margin:8px 0 18px}.gw-workspace h2{font-size:25px;line-height:1.3;margin:8px 0 12px}.gw-workspace>header p{line-height:1.65;margin:8px 0}.gw-eyebrow{font-size:12px;letter-spacing:.05em;font-weight:800}.gw-materials{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;margin:15px 0}.gw-material{font:inherit;text-align:left;cursor:pointer;background:#fff;border:1px solid #b8d2d5;border-radius:13px;padding:14px;color:#204b54;min-width:0}.gw-material strong,.gw-material small,.gw-material span{display:block;overflow-wrap:anywhere}.gw-material strong{font-size:17px;line-height:1.4}.gw-material small{font-size:12px;margin:6px 0}.gw-material span{font-size:12px;line-height:1.5}.gw-material.is-active{background:#e3f3ec;border:2px solid #0c6a5d;padding:13px}.gw-material:hover{box-shadow:0 0 0 2px #dceae6}.gw-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.gw-toolbar label{font-weight:700;font-size:14px}.gw-toolbar select{font-size:14px;min-height:48px;width:100%;margin-top:6px}.gw-note{padding:13px;border-left:4px solid #ad7c29;background:#fff7e7;font-size:14px;line-height:1.6}.gw-total{font-size:14px;font-weight:650}.gw-group{margin:22px 0}.gw-group>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.gw-group h3{font-size:22px}.gw-row{margin:12px 0;border:1px solid #c5d9dd;border-radius:13px;background:#fff;padding:16px;min-width:0}.gw-row-head{display:flex;gap:15px;justify-content:space-between;align-items:start}.gw-row-head>div:first-child{min-width:0;flex:1}.gw-row h4{font-size:17px;margin:0 0 6px;line-height:1.5}.gw-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:210px}.gw-row .btn{font-size:13px;padding:9px 12px;min-height:42px}.gw-status{font-size:12px;padding:4px 8px;display:inline-block;border-radius:6px;background:#edf2f5;color:#35515e;margin:5px 6px 4px 0}.gw-status.is-open,.gw-status.is-insufficient,.gw-status.is-stale{background:#fff1d4;color:#765116}.gw-status.is-sufficient,.gw-status.is-not_applicable{background:#e3f3e9;color:#235639}.gw-status.is-skip{background:#eaedf6;color:#454976}.gw-reply{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#425f67;margin-top:10px}.gw-entry{padding:16px;margin-top:12px;border-top:2px solid #b5d5d0;background:#f8fbfc;border-radius:8px}.gw-entry h5{font-size:17px;margin:10px 0 14px}.gw-entry label,.gw-skip-panel label{display:block;font-size:14px;line-height:1.5;font-weight:700;min-width:0}.gw-entry input,.gw-entry select,.gw-entry textarea,.gw-skip-panel input{font-size:15px;margin:6px 0 12px;min-height:44px;width:100%;box-sizing:border-box}.gw-entry textarea{font-weight:400;line-height:1.6}.gw-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}.gw-entry .gw-check{display:flex;align-items:start;gap:10px;margin:16px 0}.gw-check input{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;margin:2px 0}.gw-history{font-size:13px;margin-top:12px}.gw-history summary{cursor:pointer}.gw-history li{margin:6px 0;overflow-wrap:anywhere}.gw-inline-status{font-weight:700;color:#8b3c25;line-height:1.6}.gw-skip-panel{background:#f2f4fa;padding:14px;border-radius:10px;margin-top:12px;font-size:14px;line-height:1.6}.gw-locked{opacity:.85}.gw-footer{padding:18px;border-top:2px solid #c7dfd8;background:#f3faf7;font-size:14px;line-height:1.65}.gw-empty{padding:20px;background:#eef5f8}.gw-source-saved{font-size:13px;color:#476660}.gw-more{display:block;margin:20px auto}.gw-row [hidden],.gw-skip-panel[hidden],.gw-entry[hidden]{display:none!important}.gw-workspace .field{max-width:100%}.gw-workspace *{box-sizing:border-box}.gw-preview{font-size:14px;line-height:1.7}.gw-preview h3{border-bottom:1px solid #bfd4d8;padding-bottom:8px}.gw-preview pre{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}.gw-scope,.gw-brief{max-width:100%}#steps button:focus-visible,.gw-workspace button:focus-visible,.gw-help summary:focus-visible{outline:3px solid #245ca8;outline-offset:3px}
@media(min-width:1100px){main>aside{position:sticky;top:14px;max-height:calc(100vh - 30px);overflow-y:auto;align-self:start}#steps .phase-step button{font-size:16px}}
@media(max-width:760px){.gw-materials{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-fields,.gw-toolbar{grid-template-columns:1fr}.gw-row-head{display:block}.gw-row-actions{justify-content:flex-start;max-width:none;margin-top:8px}.gw-workspace h2{font-size:22px}.gw-workspace>header{padding:15px}.gw-row{padding:12px}.gw-entry{padding:10px}.gw-material{padding:11px}.gw-material.is-active{padding:10px}.gw-material strong{font-size:15px}.gw-mobile-toggle{display:block;width:100%;padding:12px;border:1px solid #b3d0cc;background:#ecf6f2;border-radius:10px;color:#15564f;font:700 16px inherit}aside.gw-mobile #steps{display:none}aside.gw-mobile.is-open #steps{display:block}aside.gw-mobile .aside-note{display:none}.gw-editor-heading h2{font-size:23px}.gw-editor-heading{padding:15px}.gw-part-section>summary{font-size:17px;padding:13px}.gw-component-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.gw-workspace *,.gw-branches *{scroll-behavior:auto!important;transition:none!important}}@media print{#evidence-workspace .gw-entry,#evidence-workspace .gw-row-actions,#evidence-workspace .gw-toolbar,.gw-mobile-toggle{display:none!important}}
/* Keep hidden navigation hidden even when the legacy responsive grid is active. */
#phaseSubsteps[hidden],#steps .gw-branches[hidden]{display:none!important}
.gw-part-body .layer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.gw-part-body .layer-grid label{font-size:15px!important;line-height:1.5!important}
.gw-part-body .layer-grid input,.gw-part-body .layer-grid textarea,.gw-part-body .layer-grid select{font-size:16px!important;line-height:1.5!important}
.gw-workspace header{position:static!important;min-height:0!important;width:auto!important;box-shadow:none!important;backdrop-filter:none!important;z-index:auto!important}
.gw-workspace>.gw-group>header,.gw-workspace .gw-group>header{padding:12px 16px!important;margin:0!important;background:#eef5f8!important;border:0!important}
.gw-row>.gw-scope{display:none}
@media(min-width:981px){.layout>aside{align-self:start;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}}
@media(max-width:980px){
 .layout>aside.gw-mobile:not(.is-open) #steps{display:none!important}
 .layout>aside.gw-mobile.is-open #steps{display:block!important}
 .gw-mobile-toggle{display:block!important;width:100%;padding:14px!important;font-size:17px!important;border-radius:12px;background:#edf6f4;color:#124f47;border:1px solid #a8cfca;font-weight:700;text-align:left}
 .layout>aside{max-height:none;position:static}
}
@media(max-width:600px){.gw-part-body .layer-grid{grid-template-columns:1fr!important}}

/* FoodCare 1.5.1 - expanded synchronized central navigation tree */
@media(min-width:981px){.layout>aside{width:390px;max-width:390px;padding:20px}.layout>aside #steps .step button{font-size:16px;line-height:1.35;padding:11px 12px}.layout>aside #steps .step b{width:36px;height:36px;font-size:16px}}
#steps .phase-step.has-current>.gw-phase-line>button:first-child{border-color:#7fb9ad;background:#e5f3ef;color:#0a6155;font-weight:850}
#steps .gw-phase-subtree{margin-top:5px;margin-bottom:9px}
#steps .gw-phase-subtree button,#steps .gw-report-tree>li>button{font-size:14px;line-height:1.35}
#steps .gw-report-tree{margin-top:7px}
#steps .gw-report-tree>li{margin:6px 0}
#steps .gw-report-components{list-style:none;margin:5px 0 8px 12px;padding:0 0 0 9px;border-left:2px solid #d1e3df}
#steps .gw-report-components li{margin:4px 0}
#steps .gw-report-components button{width:100%;display:block;text-align:left;border:1px solid transparent;border-radius:9px;background:#fafcfc;color:#29474d;padding:8px 9px;cursor:pointer;font:inherit}
#steps .gw-report-components strong{display:block;font-size:14px;line-height:1.35}
#steps .gw-report-components small{display:block;margin-top:3px;font-size:11.5px;line-height:1.35;color:#557178}
#steps .gw-report-components button.is-current{border:2px solid #0b695b;background:#e4f4ee;color:#153f38}
#steps .phase-step.active>.gw-phase-line>button:first-child{background:var(--green);color:white;font-weight:850}
#steps .phase-step.active>.gw-phase-line>button:first-child b{color:#0a6155!important;background:#fff!important}
#steps .gw-branches button.is-current,#steps .gw-branches button.is-active{border:2px solid #0b695b!important;background:#e4f4ee!important;color:#153f38!important;font-weight:800}
#steps .phase-step.active .gw-branches button:not(.is-current):not(.is-active){background:#f5f9fa;color:#203f48}

/* FoodCare 1.5.2 - compact central tree and explicit role-stage navigation. */
@media(min-width:981px){
 .layout>aside{padding:11px 12px!important;border-radius:16px!important;}
 .layout>aside .version{padding:8px 10px!important;border-radius:10px!important;}
 .layout>aside .version strong{font-size:13px!important;line-height:1.25!important;margin-top:1px!important;}
 .layout>aside .version small{font-size:10.8px!important;line-height:1.3!important;margin-top:3px!important;}
 .layout>aside .version .faq-edition-status{margin-top:5px!important;padding:6px 8px!important;font-size:11px!important;line-height:1.25!important;}
 .layout>aside .updated-label{font-size:9px!important;padding:2px 6px!important;}
 #steps{gap:3px!important;margin:10px 0!important;}
 #steps .step button{grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important;padding:6px 8px!important;border-radius:9px!important;font-size:13.5px!important;line-height:1.25!important;}
 #steps .step b{width:28px!important;height:28px!important;border-radius:8px!important;font-size:13px!important;}
 #steps .gw-branch-toggle{width:34px!important;flex-basis:34px!important;border-radius:8px!important;font-size:16px!important;}
 #steps .gw-branches{margin:3px 0 7px 10px!important;padding-left:7px!important;border-left-width:2px!important;}
 #steps .gw-branches li{margin:2px 0!important;}
 #steps .gw-branches button{padding:6px 8px!important;border-radius:8px!important;font-size:12.5px!important;line-height:1.28!important;min-height:0!important;}
 #steps .gw-branches strong{font-size:13.5px!important;line-height:1.25!important;}
 #steps .gw-branches small{font-size:10.5px!important;line-height:1.25!important;margin-top:2px!important;}
 #steps .cl149-node-head{gap:2px!important;}
 #steps .cl149-node-head>.cl149-expand{width:25px!important;flex-basis:25px!important;font-size:16px!important;padding:2px!important;}
 #steps .cl149-sections{margin:3px 0 6px 8px!important;padding-left:5px!important;}
 #steps .cl149-sections button{padding:5px 6px!important;font-size:11.8px!important;line-height:1.3!important;min-height:0!important;}
 #steps .gw-report-components{margin:3px 0 5px 8px!important;padding-left:6px!important;}
 #steps .gw-report-components li{margin:2px 0!important;}
 #steps .gw-report-components button{padding:5px 7px!important;border-radius:7px!important;}
 #steps .gw-report-components strong{font-size:12.5px!important;}
 #steps .gw-report-components small{font-size:10px!important;margin-top:1px!important;}
}
#steps .gw-role-tree button{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;color:#183f3a!important;background:#f4f9f7!important;}
#steps .gw-role-tree button:hover,#steps .gw-role-tree button:focus-visible{color:#0a4f45!important;background:#e6f3ef!important;}
#steps .gw-role-tree button.is-current{color:#103f37!important;background:#dff2ec!important;border:2px solid #0b695b!important;font-weight:850!important;}
#steps .gw-role-step-number{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;background:#e1eeea;color:#15584e;font-size:11px;font-weight:850;}
#steps .gw-role-tree button.is-current .gw-role-step-number{background:#0b695b;color:#fff;}
