{ e.stopPropagation(); cancelHold(); if (!quick) { onFocus(order.id); resetIdle() } }}
onPointerDown={onPointerDown} onPointerUp={cancelHold} onPointerLeave={cancelHold} onPointerCancel={cancelHold}
style={{
position: 'absolute', left: layout.x, top: layout.y, width: layout.w, height: layout.h,
background: headBg, borderRadius: 10, overflow: 'hidden',
boxShadow: focused
? `0 10px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(47,127,240,.25)${glow ? `, 0 0 0 2px ${glow}40` : ''}`
: `0 1px 2px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.22)${glow ? `, 0 0 12px 2px ${glow}55, 0 0 0 2px ${glow}44` : ''}`,
outline: focused ? `2px solid ${KDS.accent}` : '2px solid transparent', outlineOffset: 2,
display: 'flex', flexDirection: 'column',
transform: focused ? 'scale(1.012)' : 'none', transition: 'box-shadow .15s, transform .15s, outline-color .15s',
opacity: dimmed ? 0.42 : 1, filter: dimmed ? 'saturate(.7)' : 'none', zIndex: focused ? 60 : 1,
cursor: 'pointer', userSelect: 'none', WebkitUserSelect: 'none', touchAction: 'none',
}}
>
{ageText}
{t('kds.card.items', { count: itemCount })}
#{order.id}
{t(`kds.card.status.${order.kds_status === 'done' || order.kds_status === 'preparing' ? order.kds_status : 'pending'}`)}
{body}
{order.notes && (
)}
{waiter && (
{waiter}
)}
{quick && !focused && (
setQuick(false)} fs={fs} />
)}
{focused && (
)}
)
}