/* Passo 365 — Quadro de Conteúdos (aba "Quadro" de Conteúdos). Reaproveita
   .mat-board/.mat-col/.mat-resumo/.mat-tags de matriculas.css (mesma
   estrutura de quadro do resto do app) — só o cartão, a barra de progresso,
   o destaque de coluna ao arrastar e os elementos novos do modal (pílulas
   de etapa, modelos) ganham classe própria aqui. */

@keyframes ct-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ct-dialog-in { from { opacity: 0; transform: scale(.98) translateY(10px); } to { opacity: 1; transform: none; } }

.mat-col--over { background: var(--blue-50); }

/* Poucas colunas (4 etapas) — quadro estica pra ficar do mesmo tamanho dos
   cards de contador acima, mesmo padrão de .transf-board em matriculas.css. */
.ct-board .mat-col { flex: 1; min-width: 150px; width: auto; }

.ct-col__hint { margin-left: auto; font-size: 10.5px; font-style: italic; color: var(--slate-400); }

.ct-col__add { border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--slate-500); text-align: left; cursor: pointer; padding: 6px 8px; border-radius: var(--radius); }
.ct-col__add:hover { color: var(--blue-700); background: var(--blue-50); }

.ct-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: grab; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 1px 2px oklch(0.2 0 0 / 0.04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; animation: ct-card-in .2s ease both; }
.ct-card:hover { border-color: var(--slate-400); box-shadow: 0 4px 14px oklch(0.2 0 0 / 0.08); transform: translateY(-2px); }
.ct-card:active { cursor: grabbing; }
.ct-card__top { display: flex; align-items: center; gap: 6px; }
.ct-card__date { font-size: 11px; color: var(--slate-500); }
.ct-card__title { font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--slate-900); }
.ct-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-card__tags .mat-tag-chip { padding: 2px 8px; font-size: 10.5px; }
.ct-card__atrasado { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--danger); background: oklch(0.6 0.2 25 / 0.1); border-radius: 20px; padding: 1px 7px; flex: none; }
.ct-card__meta { font-size: 11.5px; color: var(--slate-500); }

.ct-progress { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ct-progress__track { flex: 1; height: 4px; border-radius: 2px; background: var(--slate-200); overflow: hidden; }
.ct-progress__bar { height: 100%; border-radius: 2px; background: var(--blue-600); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.ct-progress__label { font-size: 10.5px; color: var(--slate-500); font-variant-numeric: tabular-nums; }

.ct-pill { cursor: pointer; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700; transition: filter .15s ease; }
.ct-pill:hover { filter: brightness(0.95); }

.ct-modal-section { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ct-modal-section__title { font-size: 12.5px; font-weight: 700; color: var(--slate-600); display: flex; align-items: baseline; gap: 6px; }
.ct-modal-section__count { font-weight: 400; color: var(--slate-400); }
.ct-refs-list { display: flex; flex-direction: column; gap: 4px; }
.ct-refs-list__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ct-refs-list__item a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-refs-list__item button { border: none; background: transparent; color: var(--slate-400); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.ct-refs-list__item button:hover { color: var(--danger); }
.ct-inline-form { display: flex; gap: 6px; }
.ct-inline-form input { background: var(--bg-card); color: var(--slate-900); flex: 1; font-size: 12.5px; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: inherit; }

.crm-modal--ct { animation: ct-dialog-in .22s cubic-bezier(.2,.8,.2,1) both; }

.ct-templates-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ct-template-item { display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-radius: var(--radius); cursor: pointer; transition: background .15s; border: 1px solid transparent; }
.ct-template-item:hover { background: var(--blue-50); border-color: var(--blue-100); }
.ct-template-item__name { font-weight: 700; font-size: 14.5px; color: var(--slate-900); }
.ct-template-item__steps { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.ct-template-item__arrow { font-size: 18px; color: var(--blue-600); flex: none; }
