/* Mise en forme des textes IA rendus par markdown-render.js : mêmes couleurs que le cahier. */
.md-p {
  margin: 0 0 0.75em;
}
ul.md-list,
ol.md-list {
  margin: 0.5em 0 0.9em;
  padding-left: 1.5em;
}
ul.md-list {
  list-style: disc;
}
ol.md-list {
  list-style: decimal;
}
.md-list li {
  margin: 0.2em 0;
}
.md-list li.md-l2 {
  margin-left: 1.2em;
}
.md-table-wrap {
  overflow-x: auto;
}
table.md-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.9375rem;
}
table.md-table th {
  background: #1e3a8a;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  text-align: left;
}
table.md-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  vertical-align: top;
}
table.md-table tr:last-child td {
  border-bottom: none;
}
blockquote.md-quote {
  margin: 0.9em 0;
  padding: 0.8em 1em;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
}
/* Dans le cahier, les listes gardent leur marqueur ▸ et les listes numérotées leur numéro. */
.cahier-content ul.md-list,
.cahier-content ol.md-list {
  list-style: none;
  padding-left: 0;
}
.cahier-content ol.md-list > li {
  counter-increment: mdn;
}
.cahier-content ol.md-list > li:before {
  content: counter(mdn) '.';
  font-size: 1rem;
  font-weight: 700;
  color: #3b82f6;
}
.cahier-content ol.md-list > li {
  padding-left: 1.75rem;
}

/* Fenêtre des rapports d'experts : listes numérotées avec leur numéro. */
.agent-doc-modal .document-content ol.md-list {
  list-style: none;
  padding: 0;
  counter-reset: mdn;
}
.agent-doc-modal .document-content ol.md-list > li {
  counter-increment: mdn;
}
.agent-doc-modal .document-content ol.md-list > li:before {
  content: counter(mdn) '.';
  font-weight: 700;
  color: #3b82f6;
}
