/* R6.17.7.24 · order-entry context and selector convergence */
.r617724-customer-fact-refresh{display:block;margin-top:6px;padding:6px 9px;border-radius:8px;background:#effaf4;color:#197044;font-weight:600}
.r617724-customer-fact-refresh[hidden]{display:none!important}
.r61650-order-entry .r613-category-tree[data-category-scope="enterprise"]{max-height:min(420px,52vh);overflow:auto}
.r61650-order-entry .r613-category-tree .r617724-show-all-categories{width:100%;margin-top:8px;padding:9px 12px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8fafc;color:#475569;text-align:center}
.r61650-order-entry .product-card-metrics .r617724-make-to-order{background:#eef7ff;color:#315d96}
.r61650-order-entry .product-picker-sheet .order-product-card{grid-template-columns:56px minmax(0,1fr) minmax(120px,auto) 98px}
.r61650-order-entry .product-picker-sheet .r613-picker-qty{justify-self:end}
.r61650-order-entry .product-picker-summary{position:sticky;bottom:0;z-index:3;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
@media(max-width:900px){.r61650-order-entry .product-picker-sheet .order-product-card{grid-template-columns:48px minmax(0,1fr)}.r61650-order-entry .product-picker-sheet .r61686-picker-price,.r61650-order-entry .product-picker-sheet .r61686-price-missing,.r61650-order-entry .product-picker-sheet .r613-picker-qty{grid-column:2;justify-self:start}}
.r61650-order-entry .r617724-packaging-toggle{margin-top:6px;padding:4px 8px;border:1px solid #d8deea;border-radius:7px;background:#fff;color:#4f46e5;font-size:12px;font-weight:700}
.r61650-order-entry .r617724-packaging-detail-row>td{padding:0 10px 10px!important;background:#f8faff}
.r61650-order-entry .r617724-packaging-detail-row[hidden]{display:none!important}
.r61650-order-entry .r617724-order-packaging-panel{margin:0;border:1px solid #dce4f2;border-radius:12px;background:#fff;padding:12px 14px}
.r61650-order-entry .r617724-order-packaging-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.r61650-order-entry .r617724-order-packaging-panel>header>div:first-child{display:grid;grid-template-columns:auto auto;gap:3px 10px;align-items:center}
.r61650-order-entry .r617724-order-packaging-panel>header small{grid-column:1/-1;color:#64748b}
.r61650-order-entry .r617724-order-packaging-panel [data-pack-status]{display:inline-flex;padding:2px 7px;border-radius:999px;background:#effaf4;color:#197044;font-size:12px}
.r61650-order-entry .r617724-order-packaging-panel [data-pack-status].overridden{background:#fff7ed;color:#9a5b13}
.r61650-order-entry .r617724-order-packaging-panel .order-packaging-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 10px;padding:0;border-top:0}
@media(max-width:1100px){.r61650-order-entry .r617724-order-packaging-panel .order-packaging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Full-width packaging rows are semantic subrows, not order columns. Column presets must never hide their single colspan cell. */
#orderLines.r67-hide-1 .r617724-packaging-detail-row>td,#orderLines.r67-hide-2 .r617724-packaging-detail-row>td,#orderLines.r67-hide-3 .r617724-packaging-detail-row>td,#orderLines.r67-hide-4 .r617724-packaging-detail-row>td,#orderLines.r67-hide-5 .r617724-packaging-detail-row>td,#orderLines.r67-hide-6 .r617724-packaging-detail-row>td,#orderLines.r67-hide-7 .r617724-packaging-detail-row>td,#orderLines.r67-hide-8 .r617724-packaging-detail-row>td,#orderLines.r67-hide-9 .r617724-packaging-detail-row>td,#orderLines.r67-hide-10 .r617724-packaging-detail-row>td,#orderLines.r67-hide-11 .r617724-packaging-detail-row>td,#orderLines.r67-hide-12 .r617724-packaging-detail-row>td{display:table-cell!important}
/* R6.17.7.24 uses a section-based full-width editor, not legacy <details>. Keep its grid visible whenever the semantic subrow is open. */
.r617711-order-entry .r617724-order-packaging-panel.order-packaging-editor:not([open]) .order-packaging-grid{display:grid!important}
/* Narrow desktop closure: older generic order styles can re-show the hidden summary and wrap actions after R6.17.7.21. Keep one compact readiness + actions row. */
@media(max-width:1350px){
 .r61650-order-entry .r617721-sticky-save{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;padding:8px 10px!important;gap:8px!important}
 .r61650-order-entry .r617721-sticky-save .r617721-order-summary{display:none!important}
 .r61650-order-entry .r617721-sticky-save .r61650-readiness{display:flex!important;flex-wrap:nowrap!important;min-width:0!important}
 .r61650-order-entry .r617721-sticky-save .actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;min-width:max-content}
}
