/* =========================[ TIMELINE STANDALONE ]========================= */
.timeline {
  --timeline-axis: 22px;        /* posição do eixo a partir da borda esquerda */
  position: relative;
  margin-top: 8px;
  background: #fff;
  border: 0;                    /* remove moldura de tabela */
  border-radius: 2px;
  box-shadow: none;             /* remove sombra do container */
  font-size: inherit;
  color: inherit;
}

/* Header só por compatibilidade com seu JS (fica oculto) */
.timeline-header { display: none; }

/* Eixo vertical — fica sempre por baixo dos itens */
.timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-axis);
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #e6e6e6;
  z-index: 0;
}

/* Item */
.timeline-row {
  position: relative;
  padding: 10px 12px 10px 44px;
  background: transparent;    /* deixa ver o eixo ao fundo */
  box-shadow: none;           /* remove sombra de “cartão” */
  border: 0;                  /* remove qualquer borda */
  display: flex;
  align-items: flex-start;    /* conteúdo alinhado ao topo/esquerda */
  gap: 8px;
}

/* Sem hover “tabela” */
.timeline-row:hover { background: transparent; box-shadow: none; }

/* Ponto — centrado exatamente no eixo */
.timeline-row::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - 6px);  /* 12px/2 */
  top: 18px;
  width: 12px; height: 12px;
  background: #888;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #e6e6e6;
  z-index: 1; /* acima do eixo, abaixo do conteúdo */
}

/* Colunas utilitárias (layout) */
.timeline-col { 
  display: flex;              /* não inline-flex */
  gap: 6px; 
  align-items: flex-start;
  min-width: 0;               /* fundamental no flex para permitir quebra */
}
.timeline-col.col-tiny   { flex: 0 0 60px; }
.timeline-col.col-small  { flex: 0 0 120px; justify-content: flex-end; }
.timeline-col.col-medium { flex: 1 1 240px; }
.timeline-col.col-large  { flex: 2 1 420px; }

/* Checkbox padrão */
.timeline-col input[type="checkbox"] { transform: scale(1.1); cursor: pointer; }

/* Bloco de texto: data+pessoa em cima, descrição embaixo */
.timeline-text {
  display: flex;
  flex-direction: column;
  min-width: 0; /* evita overflow no flex */
  text-align: left;
}

/* Linha superior: data + pessoa (cinza suave, pequeno) */
.timeline-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-gray-medium);
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
}

/* Força alinhar totalmente à esquerda em qualquer tamanho */
.timeline-date, .timeline-person { text-align: left; }

/* Descrição SEM truncar */
.timeline-desc {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;                    /* ocupa espaço flexível */
  min-width: 0;               /* permite encolher junto */
  max-width: 100%;
  color: #222;
}

/* Ações apenas posicionadas à direita (estilo do botão herda do FEX) */
.timeline-col--actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}

/* Cores por tipo (opcional) */
.timeline-row[data-activity-type="1"]::before { background: #3b82f6; }
.timeline-row[data-activity-type="2"]::before { background: #10b981; }
.timeline-row[data-activity-type="3"]::before { background: #f59e0b; }
.timeline-row[data-activity-type="4"]::before { background: #ef4444; }

/* Paginação (se usar) */
.timeline-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 0;
  font-size: inherit;
}


/* esconda qualquer linha que seja template */
.timeline-row[data-template="true"],
.data-list-row[data-template="true"] {
  display: none;
}



/* Avatar redondo pequeno */
.timeline-avatar__img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* Realce suave ao passar o mouse / focar via teclado */
.timeline-row {
  transition: background 120ms ease;
}
.timeline-row:hover,
.timeline-row:focus-within {
  background: rgba(0,0,0,0.02);
  border-radius: 6px;
}

.timeline-col.col-large {
  flex: 1 1 100%;     /* ocupa toda a largura possível */
  min-width: 0;       /* evita overflow */
  max-width: 100%;    /* garante que nunca estoure o container */
}