/* D21/D22 use the same authorized snapshot and native controller nodes. */
.v2-inventory-recipes{display:grid;gap:20px;min-width:0;color:#242724;font-family:'Plus Jakarta Sans Catalog','Plus Jakarta Sans',sans-serif;font-size:14px;line-height:1.5}
.v2-ir-card{padding:24px;background:#fff;border:1px solid #e7e8e5;border-radius:16px;min-width:0}.v2-ir-card h2{font-size:18px;line-height:1.4;margin:0 0 8px;font-weight:700}.v2-ir-card p{line-height:1.6;color:#5d625d}.v2-ir-card>p{margin:8px 0 16px}.v2-ir-card>p:last-child{margin-bottom:0;font-size:12px}
.v2-ir-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0}.v2-ir-metrics>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;background:#fff;border:1px solid #e7e8e5;border-radius:14px;padding:18px;min-width:0}.v2-ir-metrics svg{grid-row:1;color:#636963;width:22px;height:22px}.v2-ir-metrics dt{grid-column:1/-1;grid-row:2;font-size:12px;color:#626862}.v2-ir-metrics dd{grid-column:2;grid-row:1;margin:0;font-size:23px;line-height:1.2;font-weight:700;overflow-wrap:anywhere}
.v2-ir-notice{display:flex;gap:12px;padding:14px 16px;background:#fff4ec;border:1px solid #f0dfd1;border-radius:12px;line-height:1.55;min-width:0;font-size:14px}.v2-ir-notice>svg{flex:0 0 20px;width:20px;height:20px;margin-top:2px;color:#a34317}.v2-ir-notice p{margin:2px 0 0}.v2-ir-notice strong{font-weight:600}
.v2-ir-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto;gap:12px;align-items:end;margin:16px 0 8px}.v2-ir-filter label{display:grid;gap:6px;min-width:0;font-size:12px;color:#626862}.v2-ir-filter input,.v2-ir-filter select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #dfe2dd;background:#fff;border-radius:8px;color:#242724;font:inherit;font-size:14px}.v2-ir-filter button{background:#252925!important;color:#fff!important;border-color:#252925!important}
.v2-ir-table{overflow-x:auto;max-width:100%;min-width:0}.v2-ir-table table{border-collapse:collapse;width:100%;font-size:14px;table-layout:fixed}.v2-ir-table th,.v2-ir-table td{padding:14px 12px;border-bottom:1px solid #e7e8e5;text-align:left;vertical-align:middle;overflow-wrap:anywhere;background:#fff;color:#242724}.v2-ir-table thead th{background:#f7f8f6;color:#626862;font-weight:600;font-size:12px}.v2-ir-table tbody th{font-weight:600}.v2-ir-table small{display:block;color:#646a64;font-size:12px;font-weight:400;margin-top:5px;line-height:1.5}.hpp-menu-list .v2-ir-table th:first-child{width:22%}.hpp-menu-list .v2-ir-table th:last-child{width:16%}.v2-ir-menu-identity{display:flex;gap:10px;align-items:center;min-width:0}.v2-ir-menu-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #e6e8e2;background:#f4f6f2;border-radius:8px;color:#677163}.v2-ir-menu-icon svg{width:20px;height:20px}.v2-ir-actions{display:flex;gap:8px;flex-wrap:wrap}.v2-ir-badge{display:inline-block;background:#f8eee5;color:#87480c;padding:4px 8px;border-radius:999px;font-size:12px;line-height:1.5}.v2-ir-badge.is-ready{background:#eaf3ec;color:#28603e}.v2-ir-badge.status-NOT_SET{background:#f0f2ef;color:#5e655e}.v2-ir-badge.status-NEEDS_REVIEW{background:#fff0eb;color:#913d27}.v2-ir-source{color:#646a64;font-size:12px;overflow-wrap:anywhere;margin:0}
.v2-inventory-recipes .button{box-sizing:border-box;min-height:44px;min-width:44px;border-radius:8px;white-space:normal;font:inherit;font-size:14px;font-weight:600;background:#fff;color:#242724;border-color:#dfe2dd}.v2-inventory-recipes .button-primary{background:#252925;color:#fff;border-color:#252925}.v2-inventory-recipes :focus-visible{outline:3px solid #aa481e;outline-offset:3px}.v2-ir-row-source{font-weight:400;font-size:12px}.v2-ir-row-source summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#556451}.v2-ir-support-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.v2-ir-support{min-width:0;border:1px solid #e7e8e5;background:#fff;border-radius:14px}.v2-ir-support summary{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px;box-sizing:border-box;cursor:pointer;list-style:none}.v2-ir-support summary::-webkit-details-marker{display:none}.v2-ir-support summary>svg{width:22px;height:22px;flex:none;color:#626b60}.v2-ir-support summary>svg:last-child{margin-left:auto;width:18px}.v2-ir-support[open] summary>svg:last-child{transform:rotate(180deg)}.v2-ir-support summary strong{font-size:14px}.v2-ir-support summary small{display:block;color:#646a64;font-size:12px;margin-top:3px}.v2-ir-support-body{padding:0 16px 16px;min-width:0;overflow-wrap:anywhere}.v2-ir-support[open]{grid-column:1/-1}.v2-ir-support-body>section,.v2-ir-support-body>div{max-width:100%;min-width:0}
/* Scope native editor styling to these destinations; field/controller ownership stays unchanged. */
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog,#hpp-recipe-dialog){font-family:'Plus Jakarta Sans Catalog','Plus Jakarta Sans',sans-serif;color:#242724;box-sizing:border-box;max-width:calc(100vw - 32px);width:1120px;max-height:calc(100% - 32px);padding:0;border:1px solid #e2e5df;border-radius:16px;background:#fff;overflow:hidden}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-shell{max-height:calc(100dvh - 32px);height:auto;display:flex;flex-direction:column;overflow:hidden;background:#fff}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-header{padding:20px 24px;background:#fff;border-bottom:1px solid #e7e8e5;gap:14px;flex:none}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-header h1{overflow-wrap:anywhere}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) h1{font-size:24px;line-height:1.3;margin:4px 0 8px;font-weight:700}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) h2{font-size:18px;line-height:1.4;font-weight:700}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);min-height:0;overflow:auto;overscroll-behavior:contain}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) :is(.prep-form-pane,.prep-review-pane){min-width:0;padding:24px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-review-pane{overflow-wrap:anywhere}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-review-pane{background:#f7f9f5;border-color:#e7e8e5;position:static}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) :is(input,select,button){box-sizing:border-box;min-height:44px;max-width:100%;font-family:inherit;font-size:14px;border-radius:8px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) :is(input,select){color:#242724;background:#fff;border-color:#dfe2dd;min-width:0}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .button-primary{background:#252925;color:#fff;border-color:#252925}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) :is(.prep-input-row,.prep-component-row){background:#fff;border-color:#dfe2dd;border-radius:10px}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions{position:sticky;bottom:0;z-index:2;flex:none;background:#fff;border-top:1px solid #e7e8e5;padding:12px 24px;gap:8px;max-width:100%;box-sizing:border-box}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions [role=status]{min-width:0;overflow-wrap:anywhere}
body[data-v2-destination=D21] #hpp-recipe-dialog{overflow:auto;padding:24px}body[data-v2-destination=D21] #hpp-recipe-dialog .hpp-recipe-builder{background:#fff;box-shadow:none;border:0;padding:0;min-width:0}body[data-v2-destination=D21] #hpp-recipe-dialog .button-primary{background:#252925;border-color:#252925;color:#fff}body[data-v2-destination=D21] #hpp-recipe-dialog :is(button,input,select){font-family:inherit;min-height:44px;max-width:100%;box-sizing:border-box}body[data-v2-destination=D21] #hpp-recipe-dialog :is(.hpp-component-main,.hpp-component-cost,.hpp-component-controls,.hpp-summary-card){min-width:0;overflow-wrap:anywhere}body[data-v2-destination=D21] #hpp-recipe-dialog .hpp-summary-card{background:#f7f9f5}
@media(max-width:767px){.v2-inventory-recipes{gap:16px}.v2-ir-card{padding:16px;border-radius:14px}.v2-ir-card h2{font-size:17px}.v2-ir-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v2-ir-metrics>div{padding:14px;gap:6px}.v2-ir-metrics>div:last-child{grid-column:1/-1;grid-template-columns:24px auto minmax(0,1fr);align-items:center}.v2-ir-metrics>div:last-child dt{grid-column:3;grid-row:1;margin-left:8px}.v2-ir-metrics dd{font-size:21px}.v2-ir-notice{padding:12px;font-size:14px}.v2-ir-filter{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px}.v2-ir-filter input,.v2-ir-filter select{font-size:16px;padding:10px 8px}.v2-ir-filter button{grid-column:1/-1}.v2-ir-table table,.v2-ir-table tbody{display:block;min-width:0;width:100%}.v2-ir-table thead{display:none}.v2-ir-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0;border-bottom:1px solid #e7e8e5}.v2-ir-table th,.v2-ir-table td{display:block;padding:0;border:0;min-width:0;line-height:1.5}.v2-ir-table th:first-child{grid-column:1/-1;width:auto}.v2-ir-table td:last-child{grid-column:1/-1}.v2-ir-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#646a64;margin-bottom:5px}.v2-ir-table td[data-label=Aksi]::before{display:none}.v2-ir-table td:last-child .button{width:100%}.v2-ir-actions{display:grid;grid-template-columns:minmax(0,1fr)}.v2-ir-actions .button+ .button{background:#fff}.hpp-menu-list .v2-ir-table tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}.hpp-menu-list .v2-ir-table th:first-child{grid-column:1/3;grid-row:1;width:auto}.hpp-menu-list .v2-ir-table td[data-label=Status]{grid-column:3;grid-row:1;text-align:right}.hpp-menu-list .v2-ir-table td[data-label=Status]::before{display:none}.hpp-menu-list .v2-ir-table td:last-child{grid-column:1/-1}.hpp-menu-list .v2-ir-table td[data-label=Aksi] .button{background:#252925;color:#fff;border-color:#252925}.hpp-menu-list .v2-ir-table td{font-size:14px}.hpp-menu-list .v2-ir-table small{font-size:12px}.v2-ir-menu-icon{flex-basis:32px;width:32px;height:32px}.v2-ir-menu-identity{gap:8px;font-size:14px}.v2-ir-support-grid{grid-template-columns:minmax(0,1fr);gap:12px}.v2-ir-support summary{min-height:72px}.v2-ir-support-body{padding:0 12px 12px}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog,#hpp-recipe-dialog){width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100% - 24px);margin:auto;border-radius:14px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-shell{max-height:calc(100dvh - 24px)}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-header{padding:16px;align-items:start}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) h1{font-size:20px;margin-top:4px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-grid{grid-template-columns:minmax(0,1fr)}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) :is(.prep-form-pane,.prep-review-pane){padding:16px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-review-pane{border-left:0;border-top:1px solid #e7e8e5}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions{display:grid;grid-template-columns:1fr 1fr;padding:12px;gap:8px}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions [role=status]{grid-column:1/-1;margin:0;max-height:96px;overflow:auto}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions button{width:100%;min-width:0;margin:0}body[data-v2-destination=D21] #hpp-recipe-dialog{padding:16px}body[data-v2-destination=D21] #hpp-recipe-dialog .hpp-entry-row{grid-template-columns:minmax(0,1fr)}
}

.v2-ir-table tbody :is(th,td){font-size:14px}
@media(max-width:767px){.hpp-menu-list .v2-ir-table tbody :is(th,td){font-size:14px}}

body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog){height:min(880px,calc(100% - 32px))}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-shell{height:100%;max-height:100%}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-grid{flex:1 1 auto}
@media(max-width:767px){body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog){height:calc(100% - 24px)}body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog) .prep-dialog-actions [data-v2-production-reconcile]{grid-column:1/-1}}

@media(max-width:767px){body:is([data-v2-destination=D21],[data-v2-destination=D22]) :is(#prep-production-dialog,#prep-recipe-dialog,#hpp-modifier-dialog,#hpp-recipe-dialog) :is(input,select){font-size:16px}}
body:is([data-v2-destination=D21],[data-v2-destination=D22]) #surface-title{font-family:'Plus Jakarta Sans Catalog','Plus Jakarta Sans',sans-serif;font-weight:700}
@media(min-width:390px) and (max-width:767px){.v2-ir-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.v2-ir-metrics>div{grid-template-columns:20px minmax(0,1fr);padding:12px 8px;gap:6px}.v2-ir-metrics>div>svg{width:20px;height:20px}.v2-ir-metrics dt{overflow-wrap:anywhere}.v2-ir-metrics>div:last-child{grid-column:1/-1;grid-template-columns:20px auto minmax(0,1fr);padding:12px 14px}.v2-ir-metrics>div:last-child dt{grid-column:3;grid-row:1;margin-left:8px}}

.v2-inventory-recipes .v2-ir-table tbody tr{background:#fff}
@media(min-width:390px) and (max-width:767px){.v2-ir-metrics>div:not(:last-child) dt{margin-inline:-3px;overflow-wrap:normal;word-break:normal}}
/* D21 route title already names HPP; retain the native form labels accessibly. */
@media(max-width:767px){
 body[data-v2-destination=D21] .hpp-menu-list>h2,body[data-v2-destination=D21] .v2-ir-filter-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 body[data-v2-destination=D21] .v2-ir-filter{margin:0 0 8px;gap:8px}
 body[data-v2-destination=D21] .v2-ir-filter label{gap:0}
 body[data-v2-destination=D21] #hpp-menu-results{font-size:12px;margin:8px 0}
}
body[data-v2-destination=D21] [data-hpp-dashboard-stale]{display:block}
