/* Toasts globais CRM */
#crmToastHost {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  left: auto;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.crm-toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 10px 40px rgba(26, 32, 54, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: crmToastIn 0.22s ease-out;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

@keyframes crmToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crm-toast--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.crm-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.crm-toast--info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.crm-toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.crm-toast__close:hover {
  opacity: 1;
}
