/* 全局提示必须高于加工单、销售单、对账单等所有弹窗。 */
#toast {
  position: fixed !important;
  z-index: 2147483647 !important;
  top: max(18px, env(safe-area-inset-top)) !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: max-content;
  max-width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%) !important;
  padding: 12px 20px !important;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px !important;
  background: rgba(27,31,30,.96) !important;
  color: #fff !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.34) !important;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

#toast.toast-visible {
  animation: toastLayerIn .2s ease-out both;
}

@keyframes toastLayerIn {
  from { opacity: 0; transform: translate(-50%, -10px) scale(.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 600px) {
  #toast {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 24px);
    max-width: none;
    padding: 11px 14px !important;
  }
}
