/* release-flow: <!-- EMBED:release-flow --> (partials/release-flow.html). Uses
   flow.css for the frame, switch and status timeline. Without (0-45 %): orders
   released by hand at random moments; the unreserved order is refused at the gate.
   With (48-95 %): the batch schedule fills, then the reserved orders and the one
   that meets the fulfillment policy cross together; the unreserved order is held.
   Base = end frame. */
.rl-o1, .rl-o2, .rl-o3 { transform: translateX(256px); }
.rl-clock { fill: none; stroke: #0E6376; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rl-hold { fill: none; stroke: #E89B43; stroke-width: 3; }
.rl-x { opacity: 0; }
.rl-k--order { background: #FFFFFF; border: 2px solid #0E6376; }
.rl-k--res { width: 22px; height: 6px; border-radius: 3px; background: #2A8C60; }
.rl-k--clock { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #0E6376; }
.rl-k--floor { background: #EFEBE5; border: 1.5px solid #CBC3B7; }

@media (prefers-reduced-motion: no-preference) {
  .rl-o, .rl-clock, .rl-hold, .rl-x { animation: 10s ease-in-out infinite; }
  .rl-o1 { animation-name: rl-o1; } .rl-o2 { animation-name: rl-o2; } .rl-o3 { animation-name: rl-o3; } .rl-o4 { animation-name: rl-o4; }
  .rl-clock { animation-name: rl-clock; animation-timing-function: linear; } .rl-hold { animation-name: rl-hold; } .rl-x { animation-name: rl-x; }
}
/* Without: released by hand, one at a time */
@keyframes rl-o1 { 0%, 4% { transform: none; opacity: 1 } 9%, 43% { transform: translateX(256px); opacity: 1 } 44% { transform: translateX(256px); opacity: 0 } 45% { transform: none; opacity: 0 } 48%, 65% { transform: none; opacity: 1 } 70%, 95% { transform: translateX(256px); opacity: 1 } 97% { transform: translateX(256px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes rl-o2 { 0%, 31% { transform: none; opacity: 1 } 36%, 43% { transform: translateX(256px); opacity: 1 } 44% { transform: translateX(256px); opacity: 0 } 45% { transform: none; opacity: 0 } 48%, 65% { transform: none; opacity: 1 } 70%, 95% { transform: translateX(256px); opacity: 1 } 97% { transform: translateX(256px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes rl-o3 { 0%, 65% { transform: none; opacity: 1 } 70%, 95% { transform: translateX(256px); opacity: 1 } 97% { transform: translateX(256px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
/* Order 4: nothing reserved, so the manual release bounces back; automatic release leaves it */
@keyframes rl-o4 { 0%, 16% { transform: none } 19%, 21% { transform: translateX(40px) } 25%, 100% { transform: none } }
@keyframes rl-x { 0%, 19% { opacity: 0 } 20%, 28% { opacity: 1 } 30%, 100% { opacity: 0 } }
/* With: the batch schedule fills, then everything eligible goes at once */
@keyframes rl-clock { 0%, 48% { stroke-dashoffset: 1 } 63%, 95% { stroke-dashoffset: 0 } 97%, 100% { stroke-dashoffset: 1 } }
@keyframes rl-hold { 0%, 79% { opacity: 0 } 81%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
