/* Placed crates stay in their fixed grid cell until removed or moved again. */
body[data-mission="2"] #rf-stage:is([data-mechanic="delivery-order"],[data-mechanic="inspection-order"],[data-mechanic="route-order"],[data-mechanic="lift-order"]) .rf-card-button.rf-order-placed {
  visibility:hidden;
  pointer-events:none;
}
body[data-mission="2"] #rf-stage:is([data-mechanic="delivery-order"],[data-mechanic="inspection-order"],[data-mechanic="route-order"],[data-mechanic="lift-order"]) .rf-target {
  min-width:0;min-height:82px!important;flex:1 1 0;max-width:130px;padding:6px;overflow:visible;
}
body[data-mission="2"] #rf-stage:is([data-mechanic="delivery-order"],[data-mechanic="inspection-order"],[data-mechanic="route-order"],[data-mechanic="lift-order"]) .rf-target small {margin:0 0 3px}
.rf-order-slot-crate {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:1672/941;min-height:38px;padding:0 12%;
  background:transparent url('/assets/robot-factory/delivery-crate-v1.webp') center / 100% 100% no-repeat;
}
.rf-order-slot-crate strong {display:block;color:#273e38;font-size:clamp(9px,2vw,13px);line-height:1.05;white-space:nowrap}
#rf-stage[data-mechanic="delivery-order"] .rf-order-slot-crate {background-image:url('/assets/robot-factory/receiving-gold-crate-v1.webp')}
#rf-stage[data-mechanic="inspection-order"] .rf-order-slot-crate {background-image:url('/assets/robot-factory/material-crate-v1.webp')}
.rf-order-slot-crate.rf-order-arriving,.rf-card-button.rf-order-arriving {visibility:hidden}
.rf-order-placement-ghost {position:fixed!important;z-index:10000!important;pointer-events:none!important;margin:0!important;transform-origin:0 0!important}
@media(prefers-reduced-motion:reduce) {.rf-order-placement-ghost {display:none!important}}

/* A visible drop area and clear keyboard/touch alternative for returning crates. */
.rf-order-return-zone {width:100%;box-sizing:border-box;padding:.55rem .8rem;border:2px dashed #d8bc77;border-radius:9px;background:#fff7e4;color:#31574c;text-align:center;font-size:.85rem;line-height:1.35;font-weight:750}
.rf-order-return-zone.rf-order-drop-active,#rf-stage .rf-cards.rf-order-drop-active {outline:4px solid #ffdb72;outline-offset:3px;box-shadow:0 0 0 7px #216f53a8}
