/* pack-flow: <!-- EMBED:pack-flow --> (partials/pack-flow.html). Uses flow.css for
   the frame, switch and status timeline. Without (0-45 %): items into a plain box,
   closed with no label or record, carried to the dock. With (48-95 %): container
   created with its label, each packed item fills the record and the weight gauge,
   then the closed container is released to the final shipping location.
   Base styles are the end frame. Items carry the box/container movement themselves. */
.pk-item { fill: #E89B43; stroke: #91521E; stroke-width: 1.5; transform: translate(375px, 30px); }
.pk-box, .pk-boxlid { fill: #FAE6C7; stroke: #91521E; stroke-width: 2; opacity: 0; }
.pk-boxlid { fill: #F4CD8E; }
.pk-cont { fill: #FFFFFF; stroke: #0E6376; stroke-width: 2.5; transform: translateX(185px); }
.pk-contlid { fill: #ECF6F8; stroke: #0E6376; stroke-width: 2.5; transform: translateX(185px); }
.pk-label { transform: translateX(185px); }
.pk-r { fill: #0E6376; }
.pk-wt { fill: #0E6376; transform-box: fill-box; transform-origin: bottom; }
.pk-k--box { background: #FAE6C7; border: 2px solid #91521E; }
.pk-k--cont { background: #FFFFFF; border: 2px solid #0E6376; }
.pk-k--rec { background: #0E6376; }

@media (prefers-reduced-motion: no-preference) {
  .pk-item, .pk-box, .pk-boxlid, .pk-cont, .pk-contlid, .pk-label, .pk-rec, .pk-r, .pk-wt { animation: 10s ease-in-out infinite; }
  .pk-i1 { animation-name: pk-i1; } .pk-i2 { animation-name: pk-i2; } .pk-i3 { animation-name: pk-i3; }
  .pk-box { animation-name: pk-bmove, pk-box-op; } .pk-boxlid { animation-name: pk-bmove, pk-boxlid-op; }
  .pk-cont { animation-name: pk-cmove, pk-cont-op; } .pk-contlid { animation-name: pk-cmove, pk-contlid-op; } .pk-label { animation-name: pk-cmove, pk-label-op; }
  .pk-rec { animation-name: pk-rec; } .pk-r1 { animation-name: pk-r1; } .pk-r2 { animation-name: pk-r2; } .pk-r3 { animation-name: pk-r3; } .pk-wt { animation-name: pk-wt; }
}
/* Items: tote -> box (without) or container (with); then they ride to the dock */
@keyframes pk-i1 { 0%, 2% { transform: none; opacity: 1 } 5%, 31% { transform: translate(190px, 30px) } 41%, 43% { transform: translate(375px, 30px); opacity: 1 } 44% { transform: translate(375px, 30px); opacity: 0 } 45% { transform: none; opacity: 0 } 48%, 66% { transform: none; opacity: 1 } 69%, 84% { transform: translate(190px, 30px) } 92%, 95% { transform: translate(375px, 30px); opacity: 1 } 97% { transform: translate(375px, 30px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes pk-i2 { 0%, 6% { transform: none; opacity: 1 } 9%, 31% { transform: translate(190px, 30px) } 41%, 43% { transform: translate(375px, 30px); opacity: 1 } 44% { transform: translate(375px, 30px); opacity: 0 } 45% { transform: none; opacity: 0 } 48%, 70% { transform: none; opacity: 1 } 73%, 84% { transform: translate(190px, 30px) } 92%, 95% { transform: translate(375px, 30px); opacity: 1 } 97% { transform: translate(375px, 30px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes pk-i3 { 0%, 10% { transform: none; opacity: 1 } 13%, 31% { transform: translate(190px, 30px) } 41%, 43% { transform: translate(375px, 30px); opacity: 1 } 44% { transform: translate(375px, 30px); opacity: 0 } 45% { transform: none; opacity: 0 } 48%, 74% { transform: none; opacity: 1 } 77%, 84% { transform: translate(190px, 30px) } 92%, 95% { transform: translate(375px, 30px); opacity: 1 } 97% { transform: translate(375px, 30px); opacity: 0 } 98% { transform: none; opacity: 0 } 100% { transform: none; opacity: 1 } }
/* Without: plain box, closed with no label, carried to the dock */
@keyframes pk-bmove { 0%, 31% { transform: none } 41%, 44% { transform: translateX(185px) } 45%, 100% { transform: none } }
@keyframes pk-box-op { 0%, 43% { opacity: 1 } 44%, 98% { opacity: 0 } 100% { opacity: 1 } }
@keyframes pk-boxlid-op { 0%, 17% { opacity: 0 } 19%, 43% { opacity: 1 } 44%, 100% { opacity: 0 } }
/* With: container + label at creation, record and weight fill per item, release */
@keyframes pk-cmove { 0%, 84% { transform: none } 92%, 100% { transform: translateX(185px) } }
@keyframes pk-cont-op { 0%, 49% { opacity: 0 } 51%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-contlid-op { 0%, 81% { opacity: 0 } 83%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-label-op { 0%, 52% { opacity: 0 } 54%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-rec { 0%, 49% { opacity: 0 } 51%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-r1 { 0%, 68.5% { opacity: 0 } 69.5%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-r2 { 0%, 72.5% { opacity: 0 } 73.5%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-r3 { 0%, 76.5% { opacity: 0 } 77.5%, 95% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes pk-wt { 0%, 66% { transform: scaleY(0) } 69% { transform: scaleY(.33) } 73% { transform: scaleY(.67) } 77%, 95% { transform: scaleY(1) } 97%, 100% { transform: scaleY(0) } }
