/**
 * HTML renderizado a partir do Jodit (chat, anotações, contratos, etc.)
 */
.asf-rich-content,
.chat-rich-content {
  font-family: Inter, "PT Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: auto;
}

.asf-rich-content :where(p, ul, ol, blockquote, pre, table, h1, h2, h3, h4, h5, h6),
.chat-rich-content :where(p, ul, ol, blockquote, pre, table, h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
}

.asf-rich-content p,
.chat-rich-content p {
  margin: 0 0 0.65em;
  font-size: inherit;
  line-height: inherit;
}

.asf-rich-content p:last-child,
.chat-rich-content p:last-child {
  margin-bottom: 0;
}

.asf-rich-content h1,
.asf-rich-content h2,
.asf-rich-content h3,
.asf-rich-content h4,
.chat-rich-content h1,
.chat-rich-content h2,
.chat-rich-content h3,
.chat-rich-content h4 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 700;
  color: inherit;
}

.asf-rich-content h1,
.chat-rich-content h1 { font-size: 1.45em; }
.asf-rich-content h2,
.chat-rich-content h2 { font-size: 1.3em; }
.asf-rich-content h3,
.chat-rich-content h3 { font-size: 1.15em; }
.asf-rich-content h4,
.chat-rich-content h4 { font-size: 1.05em; }

.asf-rich-content ul,
.asf-rich-content ol,
.chat-rich-content ul,
.chat-rich-content ol {
  margin: 0.4em 0 0.75em;
  padding-left: 1.35em;
}

.asf-rich-content li,
.chat-rich-content li {
  margin: 0.2em 0;
}

.asf-rich-content blockquote,
.chat-rich-content blockquote {
  margin: 0.6em 0;
  padding: 0.35em 0 0.35em 0.85em;
  border-left: 3px solid #7aa8e8;
  background: rgba(122, 168, 232, 0.12);
  color: inherit;
}

.asf-rich-content a:not([style*="color"]),
.chat-rich-content a:not([style*="color"]) {
  color: #1e63c6;
  text-decoration: underline;
  word-break: break-word;
}

.asf-rich-content img,
.chat-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.35em 0;
  display: inline-block;
}

.asf-rich-content table,
.chat-rich-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.6em 0;
  font-size: 0.95em;
  table-layout: auto;
}

.asf-rich-content table td,
.asf-rich-content table th,
.chat-rich-content table td,
.chat-rich-content table th {
  border: 1px solid #c5d4e8;
  padding: 6px 10px;
  vertical-align: top;
  min-width: 60px;
}

.asf-rich-content table th,
.chat-rich-content table th {
  background: #eef4fc;
  font-weight: 600;
}

.asf-rich-content pre,
.asf-rich-content code,
.chat-rich-content pre,
.chat-rich-content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.asf-rich-content pre,
.chat-rich-content pre {
  margin: 0.6em 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5fb;
  border: 1px solid #d8e3f2;
  overflow-x: auto;
  white-space: pre-wrap;
}

.asf-rich-content code,
.chat-rich-content code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #f1f5fb;
}

.asf-rich-content hr,
.chat-rich-content hr {
  border: 0;
  border-top: 1px solid #d5e0ef;
  margin: 0.75em 0;
}

.asf-rich-content strong,
.asf-rich-content b,
.chat-rich-content strong,
.chat-rich-content b {
  font-weight: 700;
}

.asf-rich-content em,
.asf-rich-content i,
.chat-rich-content em,
.chat-rich-content i {
  font-style: italic;
}

.asf-rich-content u,
.chat-rich-content u {
  text-decoration: underline;
}

.asf-rich-content s,
.asf-rich-content strike,
.asf-rich-content del,
.chat-rich-content s,
.chat-rich-content strike,
.chat-rich-content del {
  text-decoration: line-through;
}

.asf-rich-content sub,
.asf-rich-content sup,
.chat-rich-content sub,
.chat-rich-content sup {
  font-size: 0.75em;
  line-height: 0;
}

.asf-rich-content [style*="text-align"],
.chat-rich-content [style*="text-align"] {
  display: block;
}
