/*
 * Encounter note rich text answers as rendered in the timeline and in print.
 * The editor's own chrome lives in quill-encounter.css (QuillAsset).
 */
.item-phar li.rich-text-answer { white-space: normal; }
.item-phar li.rich-text-answer > *:first-child { margin-top: 0; }
.item-phar li.rich-text-answer > *:last-child { margin-bottom: 0; }

/* .item-details-phar .item-phar p is muted; rich text paragraphs are body copy */
.item-phar li.rich-text-answer p { margin: 0 0 6px; color: inherit; font-size: inherit; }

.item-phar li.rich-text-answer ul { list-style: disc; padding-left: 20px; }
.item-phar li.rich-text-answer ol { list-style: decimal; padding-left: 20px; }
.item-phar li.rich-text-answer blockquote { padding: 4px 12px; margin: 0 0 6px; border-left: 3px solid #ddd; }
.item-phar li.rich-text-answer table { width: 100%; border-collapse: collapse; }
.item-phar li.rich-text-answer table td,
.item-phar li.rich-text-answer table th { border: 1px solid #ddd; padding: 4px 6px; }

/* .cd-timeline__content ul li:last-child is hidden globally; rich text lists are real content */
.cd-timeline__content .item-phar li.rich-text-answer,
.cd-timeline__content .item-phar li.rich-text-answer ul li:last-child,
.cd-timeline__content .item-phar li.rich-text-answer ol li:last-child { display: list-item; }

/* Quill carries indentation and alignment as classes, not inline styles */
.item-phar li.rich-text-answer .ql-align-center { text-align: center; }
.item-phar li.rich-text-answer .ql-align-right { text-align: right; }
.item-phar li.rich-text-answer .ql-align-justify { text-align: justify; }
.item-phar li.rich-text-answer .ql-direction-rtl { direction: rtl; text-align: right; }
.item-phar li.rich-text-answer .ql-indent-1 { padding-left: 24px; }
.item-phar li.rich-text-answer .ql-indent-2 { padding-left: 48px; }
.item-phar li.rich-text-answer .ql-indent-3 { padding-left: 72px; }
.item-phar li.rich-text-answer .ql-indent-4 { padding-left: 96px; }
.item-phar li.rich-text-answer .ql-indent-5 { padding-left: 120px; }
.item-phar li.rich-text-answer .ql-indent-6 { padding-left: 144px; }
.item-phar li.rich-text-answer .ql-indent-7 { padding-left: 168px; }
.item-phar li.rich-text-answer .ql-indent-8 { padding-left: 192px; }
