/* ---------- คำสั่งโรงเรียน ---------- */
.ost-pending_number, .ost-pending_sign { background: var(--blue-50); color: var(--blue-700); }
.ost-pending_number::before, .ost-pending_sign::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.ost-signed, .ost-completed { background: var(--success-bg); color: var(--success); }
.ost-assigned { background: var(--orange-100); color: var(--orange-700); }
.ost-returned { background: var(--danger-bg); color: var(--danger); }
.ost-withdrawn { background: var(--surface-2); color: var(--text-3); text-decoration: line-through; }
.no-block.wait { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: none; }
.no-block.wait small { font-size: 12px; }
.no-pill.muted { opacity: .45; }

.check-result { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.check-result li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 12px; animation: rise .35s var(--ease) both; }
.check-result li i { font-size: 18px; margin-top: 1px; flex: none; }
.check-result li.ok { background: var(--success-bg); color: var(--success); }
.check-result li.warn { background: var(--warning-bg); color: var(--warning); }
#check .alert { margin-top: 12px; }

.order-no-input { display: flex; align-items: center; gap: 10px; }
.order-no-input .input { max-width: 140px; font-size: 22px; font-weight: 600; text-align: center; }
.order-no-input span { font-size: 18px; color: var(--text-2); }
.sig-choice { display: grid; gap: 8px; }

/* กรอบลากวางบนหน้ากระดาษ */
.place-box {
  position: absolute; border: 2px dashed var(--orange-500); border-radius: 4px; cursor: grab; touch-action: none; outline: none;
  background: color-mix(in srgb, var(--orange-500) 6%, transparent); transition: box-shadow .2s;
}
.place-box img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.place-box:hover, .place-box:focus-visible { box-shadow: 0 0 0 4px rgba(249, 115, 22, .25); }
.place-box.dragging { cursor: grabbing; box-shadow: 0 14px 30px -12px rgba(234, 88, 12, .6); }
.place-tag {
  position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: #fff;
  background: var(--orange-600); padding: 2px 8px; border-radius: 6px; pointer-events: none;
}
.place-handle {
  position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-600); color: #fff; font-size: 12px; cursor: nwse-resize; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
@media (pointer: coarse) { .place-handle { width: 30px; height: 30px; right: -15px; bottom: -15px; font-size: 15px; } }
.zoom-preview { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
