/* Kroki zamówienia i podgląd z boku listy. */
.flow-card{margin:18px 0 22px;padding:20px 24px;border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(16,24,32,.06),0 0 0 1px rgba(16,24,32,.03)}
.flow-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.flow-step{position:relative;display:flex;align-items:flex-start;gap:10px;padding-right:12px;min-width:0}
.flow-step:not(:last-child)::after{content:"";position:absolute;left:38px;right:10px;top:13px;height:2px;border-radius:2px;background:#E3E5E8}
.flow-step.done:not(:last-child)::after{background:#0047BB}
.flow-dot{position:relative;z-index:1;flex-shrink:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;background:#fff;color:#5F6672;box-shadow:inset 0 0 0 2px #DADDE2}
.flow-step.done .flow-dot{background:#0047BB;color:#fff;box-shadow:none}
.flow-step.current .flow-dot{background:#fff;color:#0047BB;box-shadow:inset 0 0 0 2px #0047BB,0 0 0 4px rgba(0,71,187,.14)}
.flow-text{display:flex;flex-direction:column;gap:1px;padding-top:4px;min-width:0;background:#fff;padding-right:8px;position:relative;z-index:1}
.flow-text strong{font-size:14px;font-weight:600;white-space:nowrap}
.flow-step.todo .flow-text strong{color:#8A919B;font-weight:500}
.flow-text small{font-size:12px;color:#5F6672;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flow-steps.is-cancelled{opacity:.45}
.flow-next{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid #EEF0F2}
.flow-next-label{font-family:var(--display);font-weight:500;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#E4002B;white-space:nowrap}
.flow-next p{margin:0;flex:1;font-size:14px;color:#101820}
.flow-card.is-cancelled .flow-next p{color:#A3001F;font-weight:600}

#orders-table tbody tr{cursor:pointer}
#orders-table tbody tr.is-peeked{background:rgba(0,71,187,.06)!important;box-shadow:inset 3px 0 0 #0047BB}
.order-peek{position:fixed;z-index:30;top:0;right:0;bottom:0;width:420px;display:flex;flex-direction:column;background:rgba(255,255,255,.96);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-left:1px solid #E3E5E8;box-shadow:-18px 0 48px rgba(16,24,32,.08);animation:peek-in .18s ease-out}
@keyframes peek-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.peek-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 24px 14px;border-bottom:1px solid #EEF0F2}
.peek-head h2{margin:0 0 8px;font-family:var(--display);font-weight:600;font-size:26px;letter-spacing:.01em;text-transform:uppercase}
.peek-head .eyebrow{margin-bottom:4px}
.peek-close{border:0;background:#EEF1F5;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:#101820}
.peek-close:hover{background:#E3E7ED}
.peek-body{flex:1;overflow-y:auto;padding:16px 24px}
.peek-customer{display:flex;flex-direction:column;gap:2px;margin-bottom:18px}
.peek-customer strong{font-size:17px}
.peek-customer small{color:#5F6672}
.peek-body .flow-steps{grid-template-columns:1fr;gap:10px}
.peek-body .flow-step:not(:last-child)::after{left:13px;right:auto;top:30px;width:2px;height:12px}
.peek-next{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#F5F7FB;font-size:13px}
.peek-body h3{margin:22px 0 8px;font-size:13px;font-weight:600;color:#5F6672;text-transform:uppercase;letter-spacing:.06em}
.peek-body h3 span{color:#8A919B}
.peek-lines{list-style:none;margin:0;padding:0}
.peek-lines li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #EEF0F2}
.peek-lines img,.peek-nophoto{width:40px;height:40px;border-radius:10px;object-fit:contain;background:#F5F5F7}
.peek-lines strong{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.peek-lines small{font-size:12px;color:#5F6672}
.peek-lines em{font-style:normal;font-weight:600;font-size:14px;white-space:nowrap}
.peek-more{display:block!important;color:#5F6672;font-size:13px}
.peek-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:6px;padding-top:12px;border-top:2px solid #101820}
.peek-total strong{font-size:22px;letter-spacing:-.01em}
.peek-address{white-space:pre-line;margin:0;font-size:14px}
.peek-foot{display:flex;gap:10px;padding:16px 24px;border-top:1px solid #EEF0F2}
.peek-foot .button{flex:1;justify-content:center;text-align:center}
.peek-loading{padding:40px 24px;color:#5F6672}

/* Na dużym ekranie lista robi miejsce podglądowi; na mniejszym podgląd nachodzi na listę, jak w Poczcie. */
@media(min-width:1700px){body.has-peek .with-side .main-shell{margin-right:420px;max-width:calc(100% - 668px)}}
@media(max-width:760px){.flow-steps{grid-template-columns:1fr 1fr;row-gap:14px}.flow-step:nth-child(2)::after{display:none}.flow-next{flex-wrap:wrap}}
.terms-badge{display:inline-flex;align-items:center;margin-left:10px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.04em;background:#EEF1F5;color:#4A525C}.terms-badge.t1{background:#FFF1E9;color:#B44A12}
