/* Avisos visíveis em qualquer módulo, sem bloquear o atendimento. */
.crm-error-center {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(450px, calc(100vw - 28px));
  pointer-events: none;
}
.crm-error-notice {
  pointer-events: auto;
  background: #241d27;
  border: 1px solid #ac626c;
  border-left: 4px solid #e18a8c;
  border-radius: 12px;
  padding: 14px 16px;
  color: #f6edef;
  box-shadow: 0 14px 40px #0009;
  max-height: min(65vh, 490px);
  overflow: auto;
}
.crm-error-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}
.crm-error-heading strong { font-size: 14px; line-height: 1.5; }
.crm-error-heading button {
  background: transparent;
  border: 1px solid #8e7580;
  color: #f6edef;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12px;
}
.crm-error-notice p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}
.crm-error-notice details { font-size: 12px; margin-top: 8px; }
.crm-error-notice summary { cursor: pointer; color: #ead8d8; }
.crm-error-notice code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 8px;
  margin-top: 7px;
  background: #140f18;
  border-radius: 6px;
}
@media (max-width: 650px) {
  .crm-error-center { top: 12px; right: 12px; }
}
