/* Modal de avisos: cartão simples, sem o cabeçalho do SmartAdmin.
   Tudo escopado em .cl-aviso-window / .cl-aviso para não afetar outras modais. */

.modal.cl-aviso-window .modal-dialog {
  width: 680px;
  max-width: calc(100% - 32px);
  margin-top: 10vh;
}

.modal.cl-aviso-window .modal-dialog .modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.cl-aviso {
  padding: 24px;
  background: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cl-aviso__cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.cl-aviso__titulo {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  word-wrap: break-word;
  min-width: 0;
}

.cl-aviso__pilula {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.cl-aviso__x {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cl-aviso__x:hover,
.cl-aviso__x:focus {
  background: #f3f4f6;
  color: #111827;
  outline: none;
}

.cl-aviso__corpo {
  padding: 20px 0;
  max-height: 55vh;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  word-wrap: break-word;
}

.cl-aviso__corpo p {
  margin: 0 0 14px;
}

.cl-aviso__corpo p:last-child {
  margin-bottom: 0;
}

.cl-aviso__corpo h1,
.cl-aviso__corpo h2,
.cl-aviso__corpo h3,
.cl-aviso__corpo h4 {
  margin: 18px 0 8px;
  font-weight: 600;
  color: #111827;
}

.cl-aviso__corpo ul,
.cl-aviso__corpo ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.cl-aviso__corpo li {
  margin-bottom: 4px;
}

.cl-aviso__corpo a {
  color: #1d4ed8;
  text-decoration: underline;
}

.cl-aviso__corpo strong {
  color: #111827;
}

.cl-aviso__corpo blockquote {
  margin: 0 0 14px;
  padding: 8px 14px;
  border-left: 3px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
}

.cl-aviso__corpo code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
}

.cl-aviso__corpo hr {
  margin: 16px 0;
  border-top: 1px solid #e5e7eb;
}

.cl-aviso__rodape {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.cl-aviso__fechar {
  margin-left: auto;
  padding: 9px 22px;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cl-aviso__fechar:hover,
.cl-aviso__fechar:focus {
  border-color: #1e40af;
  background: #1e40af;
  outline: none;
}

.cl-aviso__dispensar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.cl-aviso__dispensar input[type="checkbox"] {
  position: static;
  opacity: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #1d4ed8;
}

/* Editor Markdown (cl-markdown-editor): sem o brilho azul do foco do plugin. */
.cl-md-editor.active {
  border-color: transparent;
  box-shadow: none;
}

/* Botões do mesmo grupo da barra com uma separação sutil (o Bootstrap os cola). */
.cl-md-editor .md-header .btn-group > .btn {
  border-radius: 4px;
}

.cl-md-editor .md-header .btn-group > .btn + .btn {
  margin-left: 2px;
}

/* O plugin dimensiona o preview com a largura do textarea; o padding de 10px estourava a caixa. */
.cl-md-editor > .md-preview {
  box-sizing: border-box;
}

.smart-form .textarea .cl-md-editor > textarea:focus {
  border-color: #9ca3af;
  box-shadow: none;
}
