/* AUGE CRM: Tarefas. Checklist em cartões, com um cartão escuro do dia no topo. */

.tela-tarefas { display: flex; flex-direction: column; gap: 18px; }

/* ---------- cartão escuro do dia ---------- */
.tar-hero { position: relative; overflow: hidden; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; animation: entrar-suave 0.4s var(--ease) both; }
.tar-hero > * { position: relative; z-index: 1; }
.tar-hero-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tar-hero-topo .rotulo-mini { color: #a9b2a8; }
.tar-hero-numeros { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.tar-hero-bloco { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tar-hero-num { font-size: clamp(54px, 7vw, 88px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.tar-hero-bloco span { font-size: 13px; color: #a9b2a8; font-weight: 500; }
.tar-hero-bloco.alerta .tar-hero-num { color: var(--neon); }
.tar-hero-sep { width: 1px; align-self: stretch; margin: 6px 0; background: rgba(255, 255, 255, 0.14); }
.tar-hero-prog { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.tar-hero-prog span { font-size: 12.5px; color: #a9b2a8; font-weight: 500; }
.tar-prog { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.tar-prog > i { display: block; height: 100%; border-radius: 999px; background: var(--neon); box-shadow: 0 0 14px rgba(10, 234, 20, 0.6); transition: width 0.7s var(--ease); }
.tar-hero-simbolo { position: absolute !important; right: -34px; top: -34px; width: 230px; opacity: 0.1; z-index: 0 !important; pointer-events: none; }

/* ---------- barra de filtros ---------- */
.tar-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tar-chips { min-width: 0; }
.tar-chip-resp { margin-left: auto; }
.tar-chips .aba-contador { background: var(--fundo-2); color: var(--tinta-2); }
.tar-chips .chip.ativo .aba-contador { background: var(--neon); color: var(--sobre-neon); }
:root[data-tema='escuro'] .tar-chips .chip.ativo .aba-contador { background: var(--sobre-neon); color: var(--neon); }

/* ---------- seções ---------- */
.tar-corpo { display: flex; flex-direction: column; gap: 18px; }
.tar-secao { padding: 8px 10px 10px; animation: entrar-suave 0.35s var(--ease) both; }
.tar-secao-cab { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px; }
.tar-secao-cab h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; flex: 1; }
.tar-ponto { width: 9px; height: 9px; border-radius: 3px; background: var(--tinta-3); flex: none; }
.tar-ponto-neon { background: var(--neon); box-shadow: 0 0 0 3px var(--neon-suave); }
.tar-ponto-perigo { background: var(--perigo); box-shadow: 0 0 0 3px var(--perigo-fundo); }
.tar-ponto-ok { background: var(--ok); }
.tar-atrasadas { box-shadow: var(--sombra-2), inset 0 0 0 1px var(--perigo-fundo); }
.tar-atrasadas .tar-secao-cab h3 { color: var(--perigo); }

.tar-lista { display: flex; flex-direction: column; gap: 2px; }
.tar-linha {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 18px; min-width: 0;
  transition: background var(--t-rapido);
  animation: entrar-suave 0.35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.tar-linha:hover { background: var(--superficie-2); }
.tar-corpo-linha { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* checkbox redondo grande: vira neon ao concluir */
.tar-check {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 2px solid var(--linha-2); background: var(--superficie); color: transparent;
  transition: background var(--t) var(--ease), border-color var(--t), transform var(--t) var(--mola), box-shadow var(--t);
}
.tar-check:hover { border-color: var(--neon-forte); transform: scale(1.06); }
.tar-check:active { transform: scale(0.92); }
.tar-check .icone { stroke-width: 2.6; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 0.35s var(--ease) 0.08s; }
.tar-check.feita { background: var(--neon); border-color: var(--neon); color: var(--sobre-neon); box-shadow: 0 0 0 5px var(--neon-suave); }
.tar-check.feita .icone { stroke-dashoffset: 0; }
.tar-check:focus-visible { border-radius: 50%; }

/* título com risco que cresce ao concluir */
.tar-titulo { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.tar-titulo span {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.4s var(--ease), color var(--t);
}
.tar-linha.feita .tar-titulo span { background-size: 100% 2px; color: var(--tinta-3); }
.tar-desc { font-size: 13px; color: var(--tinta-2); }
.tar-linha.feita .tar-desc { color: var(--tinta-3); }

.tar-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tar-venc {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--fundo-2); color: var(--tinta-2); white-space: nowrap;
}
:root[data-tema='escuro'] .tar-venc { background: rgba(255, 255, 255, 0.06); }
.tar-venc.atrasada { background: var(--perigo-fundo); color: var(--perigo); }
.tar-venc.hoje { background: var(--neon); color: var(--sobre-neon); }
.tar-venc.feita { opacity: 0.7; }
.tar-contato {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 3px; border-radius: 999px; max-width: 220px;
  font-size: 12px; font-weight: 600; color: var(--tinta); border: 1px solid var(--linha); background: var(--superficie);
  transition: border-color var(--t-rapido), background var(--t-rapido);
}
.tar-contato:hover { border-color: var(--tinta); }
.tar-resp { flex: none; display: inline-flex; }
.tar-mais { flex: none; }

@media (max-width: 640px) {
  .tar-hero { padding: 20px; }
  .tar-hero-numeros { gap: 18px; }
  .tar-barra { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .tar-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .tar-chips::-webkit-scrollbar { display: none; }
  .tar-chips .chip { flex: none; }
  .tar-chip-resp { margin-left: 0; align-self: flex-start; }
  .tar-secao { padding: 6px 4px 8px; }
  .tar-linha { gap: 12px; padding: 12px 8px; }
  .tar-resp { display: none; }
}

/* o tema escuro apaga o fundo de .selo-neon por especificidade: devolve o neon nos selos desta tela */
:root[data-tema='escuro'] .tar-hero .selo-neon, :root[data-tema='escuro'] .tar-secao .selo-neon { background: var(--neon); color: var(--sobre-neon); }
:root[data-tema='escuro'] .tar-secao .selo-perigo { background: var(--perigo-fundo); color: var(--perigo); }
