/* Acompanhamento > Últimas atualizações: cabeçalho fixo opaco, grupos por dia, linha do tempo e cartões. */
.cm3-modal .cm3-activity .cm3-activity-head { position: sticky; top: -20px; z-index: 4; margin: -20px -20px 14px; padding: 20px 20px 14px; background: #fff; border-bottom: 1px solid #e2e9f2; box-shadow: 0 8px 14px -14px rgba(16, 45, 81, .45); }
.cm3-modal .cm3-activity-head p { color: #5b7393; font-size: var(--text-xs); }

.cm3-modal .cm3-composer .comment-composer-trigger { min-height: 48px; padding: 7px 8px 7px 12px; gap: 10px; }
.cm3-modal .cm3-composer .comment-composer-trigger .user-avatar { width: 28px; height: 28px; min-width: 28px; flex-basis: 28px; font-size: var(--text-2xs); }
.cm3-modal .cm3-composer .comment-composer-trigger > span:nth-child(2) { flex: 1; min-width: 0; }
.cm3-modal .cm3-composer .comment-composer-trigger > .comment-composer-cta:last-child { flex: none; width: auto; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: #0766dc; color: #fff; font-size: var(--text-sm); font-weight: 700; }


.cm3-activity-feed .feed-day-label { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: #3d5a80; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm3-activity-feed .feed-day-label::after { content: ""; flex: 1; height: 1px; background: #dfe6ef; }

.cm3-activity-feed .activity-item.feed-item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin: 0; padding: 0 0 14px; border: 0; }
.cm3-activity-feed .feed-item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: #e2e8f0; }
.cm3-activity-feed .feed-day .feed-item:last-child::before { display: none; }
.cm3-activity-feed .feed-icon { position: relative; z-index: 1; width: 32px; height: 32px; box-shadow: 0 0 0 3px #f7f9fc; }
.cm3-activity-feed .feed-card { min-width: 0; padding: 12px 14px; border: 1px solid #e2e9f2; border-radius: 12px; background: #fff; }
.cm3-activity-feed .activity-item.status-update > div.feed-card { border-color: #d6e9dd; background: #fff; }
.cm3-activity-feed .activity-item.status-update--distrato > div.feed-card { border-color: #f1dcc8; }
.cm3-activity-feed .activity-item.status-update--aberto > div.feed-card { border-color: #d4e2f0; }
.cm3-activity-feed .comment.is-editing .feed-card { padding: 8px; }

.cm3-activity-feed .feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; min-height: 28px; }
.cm3-activity-feed .feed-author { flex: 0 1 auto; min-width: 0; overflow: hidden; color: #5b7393; font-size: var(--text-sm); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cm3-activity-feed .feed-kind { flex: none; padding: 1px 8px; border-radius: 999px; background: #eef2f7; color: #3d5a80; font-size: var(--text-2xs); font-weight: 700; }
.cm3-activity-feed .feed-kind--status { background: #e8f6ee; color: #1f6b3e; }
.cm3-activity-feed .feed-meta time { margin-left: auto; color: #5b7393; font-size: var(--text-xs); font-variant-numeric: tabular-nums; line-height: 28px; white-space: nowrap; }
.cm3-activity-feed .feed-meta .timeline-menu { margin-right: -6px; }

.cm3-activity-feed .feed-card .comment-body { margin-top: 6px; color: #1e3a5f; }
.cm3-activity-feed .feed-card .rich-text-viewer { font-size: var(--text-base); line-height: 1.6; text-align: left; }
.cm3-activity-feed .feed-card .rich-text-viewer [style*="justify"] { text-align: left !important; }
.cm3-activity-feed .feed-clamp { max-height: 10.5em; overflow: hidden; }
.cm3-activity-feed .feed-clamp.is-clamped:not(.is-open) { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.cm3-activity-feed .feed-clamp.is-open { max-height: none; }
.cm3-activity-feed .feed-more { margin-top: 6px; padding: 0; border: 0; background: none; color: #0766dc; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.cm3-activity-feed .feed-more[hidden] { display: none; }
.cm3-activity-feed .feed-card .status-update-line { margin-top: 8px; }
.cm3-activity-feed .feed-card { position: relative; }
.cm3-activity-feed .feed-card:has(> .feed-meta .timeline-menu) > .feed-meta { padding-right: 26px; }
.cm3-activity-feed .feed-meta .timeline-menu { position: absolute; top: 8px; right: 6px; margin: 0; }
.cm3-activity-drawer .cm3-activity-head { top: 0; margin: 0 0 14px; padding: 0 0 14px; box-shadow: none; }
@media (max-width: 600px) {
  .cm3-modal .cm3-activity .cm3-activity-head { top: -12px; margin: -12px -12px 12px; padding: 12px 12px 12px; }
}

/* Eventos registrados automaticamente (documentos, prazos, posse e kits, cadastro). */
.cm3-activity-feed .feed-event .feed-card { padding: 10px 14px; background: #fbfcfe; }
.cm3-activity-feed .feed-event-title { margin: 4px 0 0; color: #1e3a5f; font-size: var(--text-sm); font-weight: 600; line-height: 1.45; }
.cm3-activity-feed .feed-event-detail { margin: 2px 0 0; color: #4f6787; font-size: var(--text-sm); line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.cm3-activity-feed .feed-event .feed-icon { background: #eef2f7; color: #3d5a80; }
.cm3-activity-feed .feed-event--documents .feed-icon { background: #e7f0fd; color: #0a4fa8; }
.cm3-activity-feed .feed-event--deadlines .feed-icon { background: #fdf1e7; color: #9a4a0a; }
.cm3-activity-feed .feed-event--possession .feed-icon { background: #eaf6ef; color: #1f6b3e; }
.cm3-activity-feed .feed-event--status .feed-icon { background: #e8f0fb; color: #0a4fa8; }
.cm3-activity-feed .feed-kind--documents { background: #e7f0fd; color: #0a4fa8; }
.cm3-activity-feed .feed-kind--deadlines { background: #fdf1e7; color: #8a420a; }
.cm3-activity-feed .feed-kind--possession { background: #e8f6ee; color: #1f6b3e; }
.cm3-activity-feed .feed-kind--registry { background: #eef2f7; color: #3d5a80; }

.cm3-activity-feed .feed-more:focus-visible { outline: 2px solid #0766dc; outline-offset: 2px; }
