/* 지연전송 대기열 배지·패널 — 이관 웨이브 M5. 기존 styles.css 변수가 없어도 동작하도록 폴백값 지정 */
.haccp-outbox-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  background: #1f6f43; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.haccp-outbox-badge[data-online="false"] { background: #8a5a00; }
.haccp-outbox-badge[data-attention="true"] { background: #a12626; }
.haccp-outbox-badge:focus-visible { outline: 3px solid #9cc9ff; outline-offset: 2px; }
.haccp-outbox-panel {
  position: fixed; right: 16px; bottom: 60px; z-index: 9000;
  width: min(720px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  padding: 12px 14px; border-radius: 10px; background: #14181f; color: #e8ecf1;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
.haccp-outbox-panel header { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.haccp-outbox-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #3a2f10; color: #ffd27a; }
.haccp-outbox-note { margin: 8px 0; color: #b8c0cc; font-size: 12px; }
.haccp-outbox-panel table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.haccp-outbox-panel th, .haccp-outbox-panel td { text-align: left; padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.haccp-outbox-panel code { font-size: 11px; word-break: break-all; }
.haccp-outbox-panel tr[data-status="REJECTED"] td, .haccp-outbox-panel tr[data-status="CONFLICT"] td { color: #ff9b9b; }
.haccp-outbox-panel tr[data-status="AUTH_REQUIRED"] td { color: #ffd27a; }
@media print { .haccp-outbox-badge, .haccp-outbox-panel { display: none !important; } }
