/* Tarefas da equipe (só esta tela). Usa os tokens de estilo.css. Mobile first, alvos de 44 px no celular.
   Refino visual (12/11/2026): menos faixas antes da primeira tarefa, situações como seletor compacto. */

/* Subtítulo: resumo do que está na tela */
.tf-atrasadas { color: var(--perigo); font-weight: 600; }
/* Faixa de resumo abaixo do título: progresso do mês + alertas clicáveis (12/11/2026) */
.conteudo > .cabecalho-tela + .tf-resumo { margin-top: 4px; }
.tf-resumo { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.tf-progresso { flex: 1 1 260px; display: grid; gap: 8px; align-content: center; padding: 10px 14px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; }
.tf-progresso-txt { display: flex; align-items: baseline; gap: 8px; }
.tf-progresso-txt b { font: 700 1.3rem/1 Sora, Inter, sans-serif; color: var(--texto); font-variant-numeric: tabular-nums; }
.tf-progresso-txt span { font-size: 0.84rem; color: var(--texto-2); }
.tf-progresso .progresso { height: 8px; }
.tf-alertas { display: flex; gap: 10px; flex: 1 1 auto; }
.tf-alerta { flex: 1 1 0; min-width: 140px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; font-weight: 600; font-size: 0.88rem; transition: border-color 0.15s, transform 0.15s; }
.tf-alerta b { font: 700 1.3rem/1 Sora, Inter, sans-serif; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.tf-alerta small { grid-column: 2; font-size: 0.74rem; font-weight: 500; opacity: 0.85; }
.tf-alerta.perigo { background: var(--perigo-fundo); color: var(--perigo); }
.tf-alerta.alerta { background: var(--alerta-fundo); color: var(--alerta); }
.tf-alerta:hover, .tf-alerta[aria-pressed="true"] { border-color: currentColor; }
@media (prefers-reduced-motion: no-preference) { .tf-alerta:active { transform: scale(0.98); } }
@media (max-width: 699px) {
  .tf-alerta { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 0.84rem; line-height: 1.2; }
  .tf-alerta b { font-size: 1.15rem; }
  .tf-alerta small { display: none; }
}
@media (min-width: 1000px) { .tf-progresso { flex: 1 1 auto; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; } .tf-progresso .progresso { height: 10px; } }

/* Detalhe da tarefa: tempo de execução (só para o gestor) */
.tf-tempo-exec { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-tempo-exec .g2-relogio { font-size: 0.78rem; }
.tf-meta { color: var(--alerta); font-weight: 600; }

/* Filtro rápido ativo: uma linha discreta, não uma faixa de alerta */
.tf-filtro-ativo { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--texto-2); }
.tf-filtro-ativo button { white-space: nowrap; }
@media (min-width: 1000px) { .tf-filtro-ativo { justify-content: flex-start; } }
.tf-filtro-ativo span { font-weight: 600; color: var(--texto); }
.tf-filtro-ativo em { font-style: normal; font-weight: 500; color: var(--texto-2); }
@media (max-width: 699px) { .tf-filtro-ativo em { display: none; } }

/* Situações e visão na mesma linha (no desktop: situações à esquerda, Quadro/Lista/Matriz à direita) */
.tf-linha { display: flex; flex-direction: column; gap: 10px; }
/* Bloco de ferramentas (situações + visão + filtros): itens próximos entre si e um respiro maior antes do conteúdo */
/* Barra de filtros: um painel próprio, separado do quadro (controles em cima, trabalho embaixo) */
.tf-ferramentas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; box-shadow: 0 1px 2px color-mix(in srgb, var(--t-escuro-1) 4%, transparent); }
.tf-ferramentas > * { min-width: 0; }
.tf-ferramentas .tf-situacoes { margin-inline: -12px; padding-inline: 12px; }
.tf-ferramentas .tf-barra { padding-top: 12px; border-top: 1px solid var(--linha); }
.tf-ferramentas .tf-situacoes button { background: var(--fundo); border-color: transparent; }
.tf-ferramentas .tf-situacoes button:hover { border-color: var(--linha-forte); }
.tf-ferramentas .tf-situacoes button[aria-pressed="true"] { background: var(--marinho); border-color: var(--marinho); }
.conteudo > .tf-ferramentas + * { margin-top: 24px; }
.tf-visoes button { font-size: 0.86rem; }
@media (min-width: 1000px) { .tf-visoes { padding: 2px; } .tf-visoes button { min-height: 32px; padding: 0 12px; } }
.tf-linha-so-visao .tf-visoes { max-width: 100%; }
@media (max-width: 699px) { .tf-por { display: none; } .tf-visoes button { text-transform: capitalize; } }
/* Visões Por empresa / Por pessoa dentro de Tarefas: mesmo ritmo de 16 px entre blocos */
.tf-sub > * + * { margin-top: 16px; }
@media (max-width: 699px) { .tf-sub .g2-kpis-auto { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.tf-sub .g-avatar { background: var(--marinho); color: #fff; }
@media (min-width: 1000px) { .tf-linha.tf-linha-so-visao { justify-content: flex-start; } }
.tf-filtro-ativo button { border: 0; background: none; padding: 10px 0; color: var(--verde); font-weight: 600; cursor: pointer; }

/* Situações: seletor compacto com a contagem (substitui os 5 cartões grandes) */
.tf-situacoes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.tf-situacoes button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--linha); border-radius: 999px; background: var(--cartao); color: var(--texto-2); font-weight: 600; font-size: 0.9rem; }
.tf-situacoes button .n { font: 700 0.85rem Sora, Inter, sans-serif; color: var(--texto); font-variant-numeric: tabular-nums; }
.tf-situacoes button:hover { border-color: var(--linha-forte); }
.tf-situacoes button[aria-pressed="true"] { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.tf-situacoes button[aria-pressed="true"] .n { color: var(--verde-claro); }

/* Barra: busca e 2 filtros à vista, o resto em "Mais filtros"; visão à direita no desktop */
.tf-barra { display: flex; flex-direction: column; gap: 10px; }
.tf-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tf-filtros input, .tf-filtros select { min-height: 44px; border: 1px solid var(--linha); border-radius: 10px; padding: 0 12px; background-color: var(--cartao); }
.tf-filtros input[type="search"] { flex: 1 1 100%; }
.tf-filtros > select { flex: 1 1 140px; min-width: 0; width: 0; }
.tf-mais { flex: 1 1 100%; }
/* "Mais filtros" (12/11/2026): botão que abre direto a lista de opções; o campo fica escondido (só guarda o valor). */
.tf-mais-btn { cursor: pointer; border: 0; background: none; color: var(--verde); font: 600 0.9rem Inter, sans-serif; padding: 10px 6px; border-radius: 10px; white-space: nowrap; }
.tf-mais-btn:hover { background: var(--ok-fundo); }
.tf-mais .tf-mais-sel { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.tf-mais summary::-webkit-details-marker { display: none; }
.tf-mais[open] summary { padding-bottom: 6px; }
.tf-mais select { width: 100%; min-height: 44px; }
.tf-visoes { align-self: flex-start; }

/* Quadro: colunas só da altura do conteúdo (coluna vazia não ocupa a tela inteira) */
.tf-quadro { align-items: start; }
.tf-quadro .g2-col:has(> .vazio) { min-height: 0; }
.tf-quadro .g2-col > .vazio { padding: 14px 0 10px; }

/* Quadro: título da coluna centralizado, com a contagem num selo ao lado */
.tf-quadro .g2-col h3 { justify-content: center; align-items: center; gap: 8px; padding: 4px 4px 8px; font: 600 0.88rem Sora, Inter, sans-serif; letter-spacing: -0.01em; color: var(--texto); text-align: center; }
.tf-quadro .g2-col h3 span { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--cartao); color: var(--texto-2); font: 700 0.74rem/22px Sora, Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* Cartão do quadro: empresa em destaque, faixa lateral de severidade (padrão v2) e prazo como texto */
.tf-quadro .g2-tk { gap: 4px; padding: 12px 12px 10px 14px; }
.tf-quadro .g2-tk .t { font-size: 0.95rem; line-height: 1.3; }
.tf-quadro .g2-tk .e { font-size: 0.8rem; color: var(--texto-3); }
.tf-quadro .g2-tk .r { margin-top: 4px; }
/* Cartão do quadro: borda padrão de 2 px em volta do cartão inteiro (12/11/2026), na cor da situação:
   vermelho = prazo legal vencido, âmbar = meta vencida, neutra (linha) para o resto. */
.tf-quadro .g2-tk { border: 2px solid var(--linha); }
.tf-quadro .g2-tk.tf-sev-perigo { border-color: var(--perigo); }
.tf-quadro .g2-tk.tf-sev-alerta { border-color: var(--alerta); }
.tf-quadro .g2-tk:hover { border-color: var(--linha-forte); }
.tf-quadro .g2-tk.tf-sev-perigo:hover, .tf-quadro .g2-tk.tf-sev-alerta:hover { filter: brightness(0.98); }
.tf-prazo { font-size: 0.78rem; font-weight: 600; color: var(--texto-2); white-space: nowrap; }
.tf-prazo.danger { color: var(--perigo); }
.tf-prazo.warning { color: var(--alerta); }
.tf-prazo.success { color: var(--verde); }
.tf-quadro .g2-relogio { font-size: 0.74rem; font-weight: 500; color: var(--texto-3); }
.tf-quadro .g2-relogio:not(.parado)::first-letter { color: var(--verde); }

/* Cartão centralizado (12/11/2026): hierarquia empresa → obrigação → prazo → exceções → rodapé */
.tf-quadro .g2-tk.tf-card { justify-items: center; text-align: center; gap: 6px; padding: 14px 12px 10px; }
.tf-quadro .g2-tk.tf-card.tf-sev-perigo, .tf-quadro .g2-tk.tf-card.tf-sev-alerta { padding-left: 12px; }
.tf-card .t { font: 600 0.96rem/1.25 Sora, Inter, sans-serif; letter-spacing: -0.01em; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tf-card .e { font-size: 0.78rem; color: var(--texto-3); margin-top: -2px; }
.tf-chip { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: color-mix(in srgb, var(--texto-3) 14%, transparent); color: var(--texto-2); white-space: nowrap; }
.tf-chip.danger { background: var(--perigo-fundo); color: var(--perigo); }
.tf-chip.warning { background: var(--alerta-fundo); color: var(--alerta); }
.tf-chip.success { background: var(--ok-fundo); color: var(--verde); }
.tf-datas { font-size: 0.72rem; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.tf-excecoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tf-rodape { width: 100%; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--linha); display: flex; align-items: center; justify-content: center; gap: 6px 12px; flex-wrap: wrap; }
.tf-quem { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--texto-2); }
.tf-quem .g2-av { width: 22px; height: 22px; font-size: 0.56rem; }
.tf-rodape .g2-relogio { font-size: 0.72rem; }
.tf-card .g2-prox { justify-self: stretch; }

/* Cartões padronizados (12/11/2026): todos do mesmo tamanho, cada informação sempre na mesma linha.
   Empresa e obrigação em uma linha (reticências se não couber); exceções com espaço reservado mesmo vazias. */
.tf-quadro .g2-tk.tf-card { grid-template-rows: minmax(20px, auto) minmax(18px, auto) 24px 14px 22px auto; gap: 6px; align-content: start; }
/* Nome da tarefa (obrigação) com destaque: negrito e cor de texto; a competência fica discreta ao lado */
.tf-card .e { font-size: 0.8rem; line-height: 18px; color: var(--texto-3); margin-top: 0; }
.tf-card .e b { font-weight: 700; color: var(--texto-2); font-size: 0.84rem; }
.tf-card .t, .tf-card .e { display: block; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tf-card .tf-chip { margin-top: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tf-card .tf-datas { line-height: 14px; }
.tf-card .tf-excecoes { flex-wrap: nowrap; overflow: hidden; height: 22px; align-items: center; }
.tf-card .tf-rodape { margin-top: 0; }

/* Painel de filtros, lado esquerdo da 1ª linha (visões Por empresa e Por pessoa) */
.tf-linha-esq { min-width: 0; flex: 1; display: flex; align-items: center; }
.tf-linha-esq .tf-situacoes { flex: 1; }
.tf-rotulo-visao { font-size: 0.88rem; color: var(--texto-2); }
.tf-rotulo-visao b { font-weight: 600; }
.tf-situacoes button .g2-av { width: 20px; height: 20px; font-size: 0.52rem; }

/* Lista agrupada por urgência */
.tf-lista { padding: 0; overflow: hidden; }
.tf-lista table.tabela { font-size: 0.9rem; }
/* Títulos das colunas legíveis (12/11/2026): maiores, mais escuros, sem caixa-alta miúda */
.tf-lista thead th { background: var(--cartao); position: sticky; top: 0; z-index: 1; padding: 14px 12px 12px !important; font: 700 0.84rem Sora, Inter, sans-serif !important; letter-spacing: -0.005em !important; text-transform: none !important; color: var(--texto-2) !important; border-bottom: 2px solid var(--linha) !important; }
.tf-lista thead th:first-child { padding-left: 16px !important; }
/* Título do grupo centralizado, com o número num selo sólido na cor do grupo */
.tf-grupo-cab th { text-align: center !important; padding: 12px 16px !important; border-bottom: 0 !important; text-transform: none !important; letter-spacing: -0.005em !important; font: 700 0.92rem Sora, Inter, sans-serif !important; color: var(--texto) !important; background: color-mix(in srgb, var(--texto-3) 7%, var(--cartao)); }
.tf-grupo-cab th span { margin-right: 10px; vertical-align: middle; }
.tf-grupo-cab th b { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--marinho); color: #fff; font: 700 0.8rem/1 Sora, Inter, sans-serif; font-variant-numeric: tabular-nums; vertical-align: middle; }
.tf-grupo.perigo .tf-grupo-cab th b { background: var(--perigo); }
.tf-grupo.alerta .tf-grupo-cab th b { background: var(--alerta); }
.tf-grupo.ok .tf-grupo-cab th b { background: var(--verde); }
.tf-grupo.perigo .tf-grupo-cab th { color: var(--perigo) !important; background: var(--perigo-fundo); }
.tf-grupo.alerta .tf-grupo-cab th { color: var(--alerta) !important; background: var(--alerta-fundo); }
.tf-grupo.ok .tf-grupo-cab th { color: var(--verde) !important; background: var(--ok-fundo); }
.tf-grupo td:first-child { padding-left: 16px; }
.tf-grupo.perigo td:first-child { box-shadow: inset 3px 0 0 var(--perigo); }
.tf-grupo.alerta td:first-child { box-shadow: inset 3px 0 0 var(--alerta); }
.tf-lista td b { font-weight: 600; }
.tf-lista .tf-obrig strong { font-weight: 700; color: var(--texto-2); font-size: 0.82rem; }
.tf-lista td .tf-prazo { display: block; font-size: 0.86rem; }
.tf-lista td small { font-variant-numeric: tabular-nums; }
.tf-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--texto-2); white-space: nowrap; }
.tf-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--linha-forte); flex: none; }
.tf-status.st-in_progress::before { background: var(--andamento); }
.tf-status.st-waiting::before { background: var(--pausa); }
.tf-status.st-in_review::before { background: var(--ia); }
.tf-status.st-returned::before { background: var(--perigo); }
.tf-status.st-done::before { background: var(--verde); box-shadow: 0 0 0 2px var(--ok-fundo); }
.tf-resp { display: inline-flex; align-items: center; gap: 8px; color: var(--texto-2); white-space: nowrap; }
.tf-resp .g2-av { width: 24px; height: 24px; font-size: 0.58rem; }

/* Celular: "Central de tarefas" vira botão de ícone ao lado do mês */
@media (max-width: 699px) {
  .tf-central { width: 44px; padding: 0; }
  .tf-central span { display: none; }
}

/* Lista no celular: um cartão compacto por tarefa (empresa, obrigação, prazo, situação e responsável),
   sem as datas repetidas, que continuam na tabela do desktop e no detalhe. */
@media (max-width: 720px) {
  .tf-lista { padding: 4px 12px; }
  .tf-lista .tabela.responsiva tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; }
  .tf-lista .tabela.responsiva td { display: block; padding: 0; }
  .tf-lista .tabela.responsiva td::before { content: none; }
  .tf-lista td[data-rotulo="Empresa"] { grid-column: 1 / -1; }
  .tf-lista td[data-rotulo="Empresa"] b { font-size: 0.98rem; }
  .tf-lista td[data-rotulo="Prazo"] { grid-column: 1 / -1; }
  .tf-lista td[data-rotulo="Prazo"] .tf-prazo { display: inline; margin-right: 8px; }
  .tf-lista td[data-rotulo="Prazo"] small { display: inline; }
  .tf-lista td[data-rotulo="Situação"] { display: flex !important; align-items: center; }
  .tf-lista td[data-rotulo="Responsável"] { align-self: center; font-size: 0.85rem; text-align: right; }
  .tf-lista .tf-grupo-cab { display: block !important; padding: 0 !important; }
  .tf-lista .tf-grupo-cab th { display: flex; align-items: center; justify-content: center; }
  .tf-lista thead { display: none; }
  .tf-grupo.perigo td:first-child, .tf-grupo.alerta td:first-child { box-shadow: none; }
}

@media (min-width: 1000px) {
  .tf-linha { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  /* As situações ocupam a linha toda até o seletor de visão (sem vazio no meio) */
  .tf-situacoes { margin-inline: 0; padding-inline: 0; flex: 1; min-width: 0; }
  .tf-situacoes button { flex: 1 1 0; justify-content: center; min-height: 34px; padding: 0 12px; font-size: 0.86rem; white-space: nowrap; }
  .tf-barra { flex-direction: row; align-items: center; gap: 16px; }
  .tf-filtros { flex: 1; flex-wrap: nowrap; }
  .tf-filtros input, .tf-filtros select { min-height: 36px; }
  .tf-filtros input[type="search"] { flex: 1 1 auto; }
  .tf-filtros > select { flex: 0 0 210px; width: 210px; }
  .tf-mais { flex: none; position: relative; }
  .tf-mais-btn { padding: 8px 8px; }
  .tf-mais[open] select { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; left: auto; width: 230px; min-height: 38px; box-shadow: 0 12px 30px color-mix(in srgb, var(--t-escuro-1) 16%, transparent); }
  .tf-visoes { align-self: auto; flex: none; }
}

/* Lista: linhas verticais separando as colunas Empresa / obrigação, Prazo, Situação e Responsável (12/11/2026) */
@media (min-width: 721px) {
  .tf-lista thead th + th,
  .tf-lista tbody tr.clicavel td + td { border-left: 1px solid var(--linha); }
  .tf-lista tbody tr.clicavel td { padding-left: 14px; padding-right: 14px; }
  .tf-lista thead th { padding-left: 14px !important; }
}

/* Quadro: cabeçalho de coluna com identidade (12/11/2026). Cada situação tem a sua cor (a mesma dos pontos da Lista):
   filete no topo, ponto antes do título e o número num selo sólido. */
.tf-quadro .g2-col { --cor-col: var(--marinho); padding-top: 0; }
.tf-quadro .g2-col[data-coluna="andamento"] { --cor-col: var(--andamento); }
.tf-quadro .g2-col[data-coluna="aguardando"] { --cor-col: var(--pausa); }
.tf-quadro .g2-col[data-coluna="conferencia"] { --cor-col: var(--ia); }
.tf-quadro .g2-col[data-coluna="concluidas"] { --cor-col: var(--verde); }
.tf-quadro .g2-col h3 {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin: 0 -10px 4px; padding: 14px 12px 12px;
  background: var(--cartao); border-radius: 14px 14px 0 0;
  box-shadow: inset 0 3px 0 var(--cor-col), 0 1px 0 var(--linha);
  font: 700 0.95rem Sora, Inter, sans-serif; letter-spacing: -0.01em; color: var(--texto);
}
.tf-quadro .g2-col h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cor-col); flex: none; }
.tf-quadro .g2-col h3 span {
  display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px;
  background: var(--cor-col); color: #fff; font: 700 0.8rem/1 Sora, Inter, sans-serif; font-variant-numeric: tabular-nums;
}

/* Quadro: contorno de 2 px na cor da situação em volta de cada coluna, terminando na última tarefa (12/11/2026).
   A altura da coluna mostra o volume de trabalho; o fundo tem um tom leve da mesma cor. */
.tf-quadro .g2-col {
  border: 2px solid var(--cor-col);
  border-radius: 16px;
  background: color-mix(in srgb, var(--cor-col) 6%, var(--fundo));
  padding: 0 8px 8px;
  overflow: hidden;
}
.tf-quadro .g2-col h3 { margin: 0 -8px 6px; border-radius: 0; box-shadow: 0 1px 0 color-mix(in srgb, var(--cor-col) 35%, var(--linha)); }
.tf-quadro .g2-col > .vazio { padding: 18px 0 12px; color: color-mix(in srgb, var(--cor-col) 55%, var(--texto-3)); font-weight: 600; }
.tf-quadro .g2-col.pode-soltar { background: color-mix(in srgb, var(--cor-col) 16%, var(--fundo)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-col) 30%, transparent); }

/* Quadro: no lugar dos filtros de situação (as colunas já são as situações), a dica de uso (12/11/2026) */
.tf-dica-quadro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.tf-dica-quadro li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; line-height: 1.35; color: var(--texto-2); }
.tf-dica-quadro li b { color: var(--texto); font-weight: 600; }
.tf-dica-quadro i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; font-style: normal; font-weight: 700; font-size: 0.95rem; background: color-mix(in srgb, var(--marinho) 9%, var(--cartao)); color: var(--marinho); }@media (max-width: 720px) { .tf-dica-quadro { gap: 8px; } .tf-dica-quadro li { font-size: 0.86rem; } }

/* Contorno das colunas numa cor só (12/11/2026): neutro em todas; a cor da situação fica só no ponto e no selo do título. */
.tf-quadro .g2-col { border-color: var(--linha-forte); background: color-mix(in srgb, var(--texto-3) 6%, var(--fundo)); }
.tf-quadro .g2-col h3 { box-shadow: 0 1px 0 var(--linha-forte); }
.tf-quadro .g2-col > .vazio { color: var(--texto-3); }

/* Títulos das colunas da lista (12/11/2026): centralizados, maiores e mais escuros, sobre uma faixa suave. */
.tf-lista thead th { text-align: center !important; padding: 14px 12px !important; font: 700 0.92rem Sora, Inter, sans-serif !important; color: var(--texto) !important; background: color-mix(in srgb, var(--texto-3) 7%, var(--cartao)); border-bottom: 2px solid var(--linha-forte) !important; }
.tf-lista thead th:first-child { padding-left: 12px !important; }

/* Lista no computador (12/11/2026): conteúdo centralizado como os títulos, colunas com largura equilibrada,
   textos um pouco maiores e a situação num selo suave, para cada célula ficar preenchida e não "perdida". */
@media (min-width: 721px) {
  .tf-lista table.tabela { table-layout: fixed; width: 100%; }
  .tf-lista thead th:nth-child(1) { width: 32%; }
  .tf-lista thead th:nth-child(2) { width: 24%; }
  .tf-lista thead th:nth-child(3) { width: 22%; }
  .tf-lista thead th:nth-child(4) { width: 22%; }
  .tf-lista tbody tr.clicavel td { text-align: center; vertical-align: middle; padding: 13px 16px; }
  .tf-lista tbody tr.clicavel td b { display: block; font-size: 0.98rem; line-height: 1.3; }
  .tf-lista tbody tr.clicavel .tf-obrig { display: block; margin-top: 3px; font-size: 0.8rem; }
  .tf-lista tbody tr.clicavel .tf-obrig strong { font-size: 0.86rem; }
  .tf-lista tbody tr.clicavel td .tf-prazo { font-size: 0.95rem; }
  .tf-lista tbody tr.clicavel td small { display: block; margin-top: 3px; font-size: 0.78rem; }
  .tf-lista tbody tr.clicavel .tf-status { padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; background: color-mix(in srgb, var(--texto-3) 10%, var(--cartao)); color: var(--texto); }
  .tf-lista tbody tr.clicavel .tf-status.st-in_progress { background: var(--andamento-fundo); color: var(--andamento); }
  .tf-lista tbody tr.clicavel .tf-status.st-waiting { background: var(--pausa-fundo); color: var(--pausa); }
  .tf-lista tbody tr.clicavel .tf-status.st-in_review { background: var(--ia-fundo); color: var(--ia); }
  .tf-lista tbody tr.clicavel .tf-status.st-returned { background: var(--perigo-fundo); color: var(--perigo); }
  .tf-lista tbody tr.clicavel .tf-status.st-done { background: var(--ok-fundo); color: var(--verde); }
  .tf-lista tbody tr.clicavel .tf-resp { justify-content: center; font-size: 0.92rem; font-weight: 500; color: var(--texto); }
  .tf-lista tbody tr.clicavel .tf-resp .g2-av { width: 30px; height: 30px; font-size: 0.66rem; }
}

/* Títulos das colunas dentro de cada grupo (12/11/2026): linha fina e discreta logo abaixo da faixa colorida. */
.tf-lista .tf-grupo-cols th { padding: 8px 12px !important; text-align: center !important; font: 600 0.74rem Inter, sans-serif !important; letter-spacing: 0.04em !important; text-transform: uppercase !important; color: var(--texto-3) !important; background: var(--cartao) !important; border-bottom: 1px solid var(--linha) !important; position: static; }
.tf-lista .tf-grupo + .tf-grupo .tf-grupo-cab th { border-top: 10px solid var(--fundo) !important; }
@media (min-width: 721px) {
  .tf-lista col.c-emp { width: 32%; } .tf-lista col.c-prazo { width: 24%; } .tf-lista col.c-sit { width: 22%; } .tf-lista col.c-resp { width: 22%; }
  .tf-lista .tf-grupo-cols th + th { border-left: 1px solid var(--linha); }
}
@media (max-width: 720px) { .tf-lista .tf-grupo-cols { display: none !important; } }

/* Títulos dos grupos com mais destaque (12/11/2026): texto escuro em Sora, tamanho de título, faixa suave
   na cor do grupo e linha de baixo mais forte. */
.tf-lista .tf-grupo-cols th { padding: 11px 12px !important; font: 700 0.86rem Sora, Inter, sans-serif !important; letter-spacing: -0.005em !important; text-transform: none !important; color: var(--texto) !important; background: color-mix(in srgb, var(--texto-3) 8%, var(--cartao)) !important; border-bottom: 2px solid var(--linha-forte) !important; }
.tf-lista .tf-grupo.perigo .tf-grupo-cols th { background: color-mix(in srgb, var(--perigo) 6%, var(--cartao)) !important; border-bottom-color: color-mix(in srgb, var(--perigo) 30%, var(--linha)) !important; }
.tf-lista .tf-grupo.alerta .tf-grupo-cols th { background: color-mix(in srgb, var(--alerta) 7%, var(--cartao)) !important; border-bottom-color: color-mix(in srgb, var(--alerta) 30%, var(--linha)) !important; }
.tf-lista .tf-grupo.ok .tf-grupo-cols th { background: color-mix(in srgb, var(--verde) 6%, var(--cartao)) !important; border-bottom-color: color-mix(in srgb, var(--verde) 30%, var(--linha)) !important; }

/* Botões de situação (12/11/2026): cada um com a cor da sua situação (as mesmas das colunas do Quadro),
   ponto colorido, número num selo e o escolhido destacado na própria cor. "Todas" segue em marinho. */
.tf-situacoes button[data-t-status] { --st: var(--marinho); justify-content: center; gap: 8px; background: var(--cartao); border: 1px solid var(--linha); color: var(--texto); font-weight: 600; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.tf-situacoes button[data-t-status="todo"] { --st: var(--marinho); }
.tf-situacoes button[data-t-status="in_progress"] { --st: var(--andamento); }
.tf-situacoes button[data-t-status="waiting"] { --st: var(--pausa); }
.tf-situacoes button[data-t-status="in_review"] { --st: var(--ia); }
.tf-situacoes button[data-t-status="done"] { --st: var(--verde); }
.tf-situacoes button[data-t-status]:not([data-t-status="todas"])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st); flex: none; }
.tf-situacoes button[data-t-status] .n { min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center; font: 700 0.78rem Sora, Inter, sans-serif; color: var(--st); background: color-mix(in srgb, var(--st) 12%, var(--cartao)); }
.tf-ferramentas .tf-situacoes button[data-t-status]:hover { border-color: color-mix(in srgb, var(--st) 55%, var(--linha)); background: color-mix(in srgb, var(--st) 4%, var(--cartao)); }
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] { background: color-mix(in srgb, var(--st) 10%, var(--cartao)); border-color: var(--st); box-shadow: inset 0 0 0 1px var(--st); color: var(--texto); }
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] .n { background: var(--st); color: #fff; }
/* "Todas" escolhido: marinho cheio, como antes */
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] { background: var(--marinho); border-color: var(--marinho); box-shadow: none; color: #fff; }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] .n { background: rgba(255, 255, 255, 0.14); color: var(--verde-claro); }
/* Compacto para caber numa linha ao lado das visões: a cor da situação fica no selo do número (sem ponto). */
.tf-situacoes button[data-t-status]:not([data-t-status="todas"])::before { content: none; }
.tf-ferramentas .tf-situacoes button[data-t-status] { gap: 7px; padding: 0 11px; font-size: 0.86rem; min-width: 0; }
.tf-situacoes button[data-t-status] .n { min-width: 24px; padding: 2px 7px; font-size: 0.76rem; }
.tf-ferramentas .tf-situacoes button[data-t-status] { flex: 1 1 auto; }

/* Separação leve entre a faixa colorida do grupo e os títulos das colunas (12/11/2026): os títulos ficam numa faixa
   neutra (sem a cor do grupo), com uma folga branca em cima e linha fina embaixo; a cor fica só na faixa do grupo. */
.tf-lista .tf-grupo .tf-grupo-cols th,
.tf-lista .tf-grupo.perigo .tf-grupo-cols th,
.tf-lista .tf-grupo.alerta .tf-grupo-cols th,
.tf-lista .tf-grupo.ok .tf-grupo-cols th { background: color-mix(in srgb, var(--texto-3) 6%, var(--cartao)) !important; border-bottom: 1px solid var(--linha-forte) !important; box-shadow: inset 0 5px 0 var(--cartao), inset 0 6px 0 var(--linha); padding-top: 15px !important; padding-bottom: 10px !important; }

/* Faixas coloridas dos grupos com mais destaque (12/11/2026): título maior que o resto da tabela (1.12rem),
   mais altura e o número num selo maior. */
.tf-lista .tf-grupo-cab th { padding: 16px 16px !important; font: 800 1.12rem Sora, Inter, sans-serif !important; letter-spacing: -0.01em !important; }
.tf-lista .tf-grupo-cab th span { margin-right: 12px; }
.tf-lista .tf-grupo-cab th b { min-width: 34px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 0.92rem; }
@media (max-width: 720px) { .tf-lista .tf-grupo-cab th { font-size: 1rem !important; padding: 12px !important; } }

/* Celular e tablet (16/11/2026): os botões de situação mantêm o próprio tamanho e a faixa rola de lado (barra
   invisível), em vez de espremer os textos uns sobre os outros; os filtros de prazo e obrigação ocupam a linha
   inteira, para o texto escolhido caber sem "…" (regra visual). */
@media (max-width: 999px) {
  .tf-situacoes button, .tf-ferramentas .tf-situacoes button[data-t-status] { flex: none; min-width: max-content; white-space: nowrap; }
}
@media (max-width: 699px) {
  .tf-filtros > select { flex: 1 1 100%; width: 100%; }
}

/* Minhas tarefas (16/11/2026): para o operador a coluna Responsável sai (é sempre a própria pessoa). */
.tf-lista.tf-sem-resp :is(col.c-resp, th:nth-child(4), td:nth-child(4)) { display: none; }
@media (min-width: 721px) { .tf-lista.tf-sem-resp col.c-emp { width: 44%; } .tf-lista.tf-sem-resp col.c-prazo { width: 30%; } .tf-lista.tf-sem-resp col.c-sit { width: 26%; } }

/* ---------- Refino do cabeçalho de filtros (16/11/2026) ----------
   Pedido: botões menos tímidos e cores melhores. Situações com ponto e número na cor de cada uma; a escolhida
   ganha a cor dela (fundo suave + borda + número cheio). Visões num seletor mais firme, campos com 42 px, busca
   com lupa e "Mais filtros" como botão. Escala da tela: 14 px texto, 13 px apoio. */
.tf-ferramentas { padding: 14px 16px; gap: 12px; }
.tf-ferramentas .tf-situacoes { gap: 8px; }
.tf-ferramentas .tf-situacoes button[data-t-status] {
  min-height: 42px; padding: 0 16px; gap: 9px; border-radius: 12px;
  font: 600 14px/1.2 Inter, sans-serif; color: var(--texto);
  background: var(--cartao); border: 1px solid var(--linha-forte);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--t-escuro-1) 5%, transparent);
}
.tf-ferramentas .tf-situacoes button[data-t-status]:not([data-t-status="todas"])::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 16%, transparent);
}
.tf-ferramentas .tf-situacoes button[data-t-status] .n {
  min-width: 26px; padding: 3px 8px; border-radius: 999px; font: 700 12.5px/1 Sora, Inter, sans-serif;
  color: var(--st); background: color-mix(in srgb, var(--st) 12%, var(--cartao));
}
.tf-ferramentas .tf-situacoes button[data-t-status]:hover {
  border-color: color-mix(in srgb, var(--st) 60%, var(--linha-forte));
  background: color-mix(in srgb, var(--st) 6%, var(--cartao));
}
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] {
  background: color-mix(in srgb, var(--st) 13%, var(--cartao)); border-color: var(--st);
  box-shadow: inset 0 0 0 1px var(--st); color: color-mix(in srgb, var(--st) 70%, var(--texto));
}
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] .n { background: var(--st); color: #fff; }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] {
  background: var(--marinho); border-color: var(--marinho); box-shadow: 0 2px 6px color-mix(in srgb, var(--t-escuro-1) 18%, transparent); color: #fff;
}
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] .n { background: rgba(255, 255, 255, 0.16); color: var(--verde-claro); }
.tf-ferramentas .tf-situacoes button[data-t-status]:focus-visible { outline: 2px solid var(--st); outline-offset: 2px; }

/* Visões: Quadro | Lista | Por empresa */
.tf-ferramentas .tf-visoes { padding: 4px; gap: 4px; border-radius: 12px; background: color-mix(in srgb, var(--texto-3) 10%, var(--cartao)); }
.tf-ferramentas .tf-visoes button { min-height: 34px; padding: 0 14px; border-radius: 9px; font: 600 14px Inter, sans-serif; color: var(--texto-2); }
.tf-ferramentas .tf-visoes button:hover { color: var(--texto); }
.tf-ferramentas .tf-visoes button[aria-pressed="true"] { background: var(--cartao); color: var(--marinho); box-shadow: 0 1px 3px color-mix(in srgb, var(--t-escuro-1) 14%, transparent); }

/* Busca, selects e "Mais filtros" */
.tf-ferramentas .tf-filtros { gap: 10px; }
.tf-ferramentas .tf-filtros input, .tf-ferramentas .tf-filtros select {
  min-height: 42px; border: 1px solid var(--linha-forte); border-radius: 12px; font: 500 14px Inter, sans-serif; color: var(--texto);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tf-ferramentas .tf-filtros input:focus, .tf-ferramentas .tf-filtros select:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 18%, transparent);
}
.tf-ferramentas .tf-filtros input[type="search"] {
  padding-left: 40px;
  background: var(--cartao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237b8a92' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.tf-ferramentas .tf-mais-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--linha-forte); border-radius: 12px; background: var(--cartao);
  color: var(--texto); font: 600 14px Inter, sans-serif;
}
.tf-ferramentas .tf-mais-btn::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tf-ferramentas .tf-mais-btn:hover { border-color: var(--verde); color: var(--verde); background: color-mix(in srgb, var(--verde) 6%, var(--cartao)); }

/* "Mostrando: Abertas · todas as competências" como selo, com o "Voltar" ao lado */
.tf-filtro-ativo { gap: 10px; margin: 2px 0 10px; }
.tf-filtro-ativo span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--marinho) 8%, var(--cartao)); border: 1px solid color-mix(in srgb, var(--marinho) 18%, var(--linha));
  font: 600 13px Inter, sans-serif; color: var(--texto);
}
.tf-filtro-ativo span::before { content: "Mostrando:"; font-weight: 500; color: var(--texto-2); }
.tf-filtro-ativo button { padding: 6px 12px; border-radius: 999px; font: 600 13px Inter, sans-serif; }
.tf-filtro-ativo button:hover { background: var(--ok-fundo); }
@media (min-width: 721px) {
  .tf-ferramentas .tf-situacoes button[data-t-status] { flex: 1 1 auto; justify-content: center; }
  .tf-ferramentas .tf-filtros > select { flex: 0 0 220px; width: 220px; }
}

/* Contorno mais firme nos botões e campos de filtro (16/11/2026): cada botão com a borda na cor da sua situação
   (o selecionado com 2 px), campos com borda marinho suave, no mesmo tom do contorno do card. */
.tf-ferramentas .tf-situacoes button[data-t-status] { border: 1.5px solid color-mix(in srgb, var(--st) 45%, var(--linha-forte)); }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"] { border-color: color-mix(in srgb, var(--marinho) 45%, var(--linha-forte)); }
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] { border: 2px solid var(--st); box-shadow: 0 2px 8px color-mix(in srgb, var(--st) 22%, transparent); }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] { border-color: var(--marinho); }
.tf-ferramentas .tf-filtros input, .tf-ferramentas .tf-filtros select, .tf-ferramentas .tf-mais-btn {
  border: 1.5px solid color-mix(in srgb, var(--marinho) 35%, var(--linha-forte));
}

/* Várias evidências na tarefa (17/11/2026) */
.tf-evidencias { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.tf-evidencias > li { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--cartao); }
.tf-evidencias > li.ok { border-color: color-mix(in srgb, var(--verde) 45%, transparent); background: color-mix(in srgb, var(--verde) 4%, var(--cartao)); }
.tf-evidencias > li.falta { border-color: color-mix(in srgb, var(--alerta) 45%, transparent); }
.tf-evid-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tf-evid-topo b { font-size: 14px; }
.tf-evid-topo small { color: var(--texto-3); font-size: 12px; }
.tf-evid-topo .botao { margin-left: auto; }
.tf-evid-marca { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--linha); }
.tf-evidencias > li.ok .tf-evid-marca { background: var(--verde); }
/* =====================================================================================================
   Refino tech de Tarefas (19/11/2026, teste): painel de controle e lista em vidro escuro, na linguagem da Visão
   geral. Abas com a fatia de cada situação e uma luz que desliza; linhas entram em cascata (tarefas.js).
   Para desfazer: apagar este bloco até o fim do arquivo (e o bloco "Refino tech" no fim de tarefas.js).
   ===================================================================================================== */
.tf-ferramentas {
  color-scheme: dark; color: var(--t-claro-1); border: 1px solid rgba(var(--t-borda-rgb), 0.22); border-radius: 18px;
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--t-brilho) 55%, transparent), transparent 60%), linear-gradient(160deg, var(--t-escuro-3) 0%, var(--t-escuro-1) 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--t-escuro-1) 22%, transparent), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.tf-ferramentas .tf-barra { border-top-color: rgba(255, 255, 255, 0.1); }
/* abas: painel de controle */
.tf-ferramentas .tf-situacoes { position: relative; }
.tf-ferramentas .tf-situacoes button[data-t-status] {
  position: relative; z-index: 1; overflow: hidden; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: var(--t-claro-2) !important; box-shadow: none !important; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tf-ferramentas .tf-situacoes button[data-t-status]:hover { border-color: color-mix(in srgb, var(--st) 60%, transparent) !important; color: #fff !important; background: rgba(255, 255, 255, 0.07) !important; }
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] { background: transparent !important; border-color: transparent !important; color: #fff !important; }
.tf-ferramentas .tf-situacoes button[data-t-status] .n { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
.tf-ferramentas .tf-situacoes button[data-t-status][aria-pressed="true"] .n { background: var(--st) !important; color: #fff !important; box-shadow: 0 0 12px color-mix(in srgb, var(--st) 60%, transparent); }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"] { --st: #2fd29a; }
.tf-ferramentas .tf-situacoes button[data-t-status="todo"] { --st: var(--t-claro-4); }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] { background: transparent !important; }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] .n { background: var(--t-acento) !important; }
.tf-sit-fatia { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.tf-sit-fatia::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 3px; background: var(--st); box-shadow: 0 0 8px color-mix(in srgb, var(--st) 70%, transparent); }
.tf-sit-fatia.enche::after { animation: tfFatiaEnche 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
@keyframes tfFatiaEnche { from { width: 0; } }
.tf-sit-luz {
  --st: #2fd29a; position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--st) 28%, transparent), color-mix(in srgb, var(--st) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--st) 75%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--st) 20%, transparent), 0 8px 26px color-mix(in srgb, var(--st) 45%, transparent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tf-situacoes:has([data-t-status="todo"][aria-pressed="true"]) .tf-sit-luz { --st: var(--t-claro-4); }
.tf-situacoes:has([data-t-status="in_progress"][aria-pressed="true"]) .tf-sit-luz { --st: var(--andamento); }
.tf-situacoes:has([data-t-status="waiting"][aria-pressed="true"]) .tf-sit-luz { --st: var(--pausa); }
.tf-situacoes:has([data-t-status="in_review"][aria-pressed="true"]) .tf-sit-luz { --st: var(--ia); }
.tf-situacoes:has([data-t-status="done"][aria-pressed="true"]) .tf-sit-luz { --st: var(--verde); }
/* filtros no vidro */
.tf-ferramentas .tf-filtros input, .tf-ferramentas .tf-filtros select, .tf-ferramentas .tf-mais-btn {
  background-color: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; color: var(--t-claro-1) !important; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.tf-ferramentas .tf-filtros input::placeholder { color: rgba(233, 246, 255, 0.5); }
.tf-ferramentas .tf-filtros input:focus, .tf-ferramentas .tf-filtros select:focus { border-color: var(--t-neon) !important; box-shadow: 0 0 0 3px rgba(var(--t-neon-rgb), 0.15); outline: none; }
.tf-ferramentas .tf-filtros input:hover, .tf-ferramentas .tf-filtros select:hover, .tf-ferramentas .tf-mais-btn:hover { background-color: rgba(255, 255, 255, 0.09) !important; }
.tf-ferramentas .tf-filtros option { background: var(--t-escuro-7); color: var(--t-claro-1); }
/* linhas em cascata na entrada */
.tf-lista tr.tf-entra { animation: tfLinhaEntra 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--j, 0) * 28ms); }
@keyframes tfLinhaEntra { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .tf-lista tr.tf-entra, .tf-sit-fatia.enche::after { animation: none; } .tf-sit-luz { transition: none; } }

/* Lista clara com informação melhor apresentada (19/11/2026: "essa parte podemos manter branca", "precisamos melhorar
   a apresentação das informações"): obrigação em etiqueta, régua do prazo com o ponto de hoje, cabeçalho de grupo
   limpo e linhas com mais respiro. Para desfazer: apagar este bloco e reguaPrazo/tf-obr-chip em tarefas.js. */
.tf-lista { border-radius: 18px !important; box-shadow: 0 1px 2px color-mix(in srgb, var(--t-escuro-1) 5%, transparent), 0 14px 34px color-mix(in srgb, var(--t-escuro-1) 8%, transparent) !important; }
.tf-lista tbody tr.clicavel td { padding-top: 13px; padding-bottom: 13px; vertical-align: middle; }
.tf-lista tbody tr.clicavel { transition: background 0.16s; }
.tf-lista tbody tr.clicavel:hover td { background: color-mix(in srgb, var(--verde) 5%, var(--cartao)); }
.tf-lista td[data-rotulo="Empresa"] b { display: block; font: 700 14.5px/1.25 Inter, sans-serif; color: var(--texto); }
.tf-lista .tf-obrig { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.tf-obr-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--marinho) 7%, var(--cartao)); border: 1px solid color-mix(in srgb, var(--marinho) 12%, transparent); color: var(--marinho); font: 700 11.5px/1.4 Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-comp { font-size: 11.5px; color: var(--texto-3); font-variant-numeric: tabular-nums; }
/* régua do prazo */
.tf-lista td[data-rotulo="Prazo"] .tf-prazo { font-weight: 700; }
.tf-regua { position: relative; display: block; width: min(190px, 100%); height: 6px; margin: 7px 0 5px; border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--verde) 22%, transparent) 0 40%, color-mix(in srgb, var(--alerta) 26%, transparent) 40% 70%, color-mix(in srgb, var(--perigo) 24%, transparent) 70% 100%); }
.tf-regua::before { content: ""; position: absolute; inset: -2px 0; background: linear-gradient(90deg, transparent calc(40% - 1px), var(--cartao) calc(40% - 1px) calc(40% + 1px), transparent calc(40% + 1px) calc(70% - 1px), var(--cartao) calc(70% - 1px) calc(70% + 1px), transparent calc(70% + 1px)); }
.tf-regua i { position: absolute; top: 50%; left: var(--pos); width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--cartao); background: var(--verde); box-shadow: 0 0 0 1px color-mix(in srgb, var(--verde) 40%, transparent), 0 2px 6px color-mix(in srgb, var(--t-escuro-1) 20%, transparent); }
.tf-regua.meta i { background: var(--alerta); box-shadow: 0 0 0 1px color-mix(in srgb, var(--alerta) 45%, transparent), 0 2px 6px color-mix(in srgb, var(--t-escuro-1) 20%, transparent); }
.tf-regua.legal i { background: var(--perigo); box-shadow: 0 0 0 1px color-mix(in srgb, var(--perigo) 45%, transparent), 0 0 10px color-mix(in srgb, var(--perigo) 45%, transparent); }
.tf-lista tr.tf-entra .tf-regua i { animation: tfReguaPonto 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.15s + var(--j, 0) * 28ms); }
@keyframes tfReguaPonto { from { left: 0; opacity: 0; } }
/* situação e responsável */
.tf-lista .tf-status { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--texto-3) 8%, var(--cartao)); border: 1px solid var(--linha); font-weight: 600; }
.tf-lista .tf-resp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--texto); }
/* cabeçalho de grupo: alinhado à esquerda, com o contador ao lado */
.tf-lista .tf-grupo-cab th { text-align: left !important; padding: 14px 18px !important; font: 800 14px Sora, Inter, sans-serif !important; letter-spacing: 0 !important; }
.tf-lista .tf-grupo-cab th span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: currentColor; vertical-align: 1px; box-shadow: 0 0 8px currentColor; }
.tf-lista .tf-grupo-cols th { font: 700 10.5px Sora, Inter, sans-serif !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; color: var(--texto-3) !important; }
@media (prefers-reduced-motion: reduce) { .tf-lista tr.tf-entra .tf-regua i { animation: none; } }
/* textos soltos do painel escuro (rótulo da visão Por empresa/Por pessoa) legíveis (19/11/2026) */
.tf-ferramentas .tf-rotulo-visao, .tf-ferramentas .tf-linha-esq > small, .tf-ferramentas .tf-linha-esq > span:not([class*="tf-sit"]) { color: var(--t-claro-2) !important; }
.tf-ferramentas .tf-rotulo-visao b { color: #fff !important; }
/* Títulos das colunas alinhados com o conteúdo (19/11/2026, "títulos jogados a esmo, perdidos no espaçamento"):
   à esquerda, no mesmo recuo de 16px das células, numa faixa mais baixa. */
.tf-lista .tf-grupo:is(.tf-grupo, .perigo, .alerta, .ok) .tf-grupo-cols th { text-align: left !important; padding: 9px 16px 8px !important; }
/* Cabeçalho de grupo estruturado (19/11/2026): ícone + título + frase à esquerda, contador à direita; fundo branco
   com um leve tom da cor do grupo saindo da esquerda. Substitui a faixa colorida larga com o título solto. */
.tf-lista .tf-grupo { --gc: var(--andamento); }
.tf-lista .tf-grupo.perigo { --gc: var(--perigo); }
.tf-lista .tf-grupo.alerta { --gc: var(--alerta); }
.tf-lista .tf-grupo.ok { --gc: var(--verde); }
.tf-lista .tf-grupo:is(.tf-grupo, .perigo, .alerta, .ok) .tf-grupo-cab th {
  text-align: left !important; padding: 14px 18px 12px !important; color: var(--texto) !important; border-bottom: 1px solid var(--linha) !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 11%, var(--cartao)) 0%, var(--cartao) 55%) !important;
  box-shadow: inset 4px 0 0 var(--gc);
}
.tf-lista .tf-grupo-cab th span::before { content: none !important; }
.tf-gcab { display: flex; align-items: center; gap: 14px; }
.tf-gcab-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--gc); background: color-mix(in srgb, var(--gc) 14%, var(--cartao)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 30%, transparent); }
.tf-gcab-ico svg { width: 19px; height: 19px; }
.tf-gcab-txt { display: grid; gap: 2px; min-width: 0; margin: 0 !important; }
.tf-gcab-nome { font: 800 15.5px/1.2 Sora, Inter, sans-serif; color: color-mix(in srgb, var(--gc) 75%, var(--texto)); margin: 0 !important; }
.tf-gcab-txt small { font: 500 12.5px/1.3 Inter, sans-serif; color: var(--texto-3); letter-spacing: 0; text-transform: none; }
.tf-gcab-n { margin-left: auto !important; display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gc) 10%, var(--cartao)); border: 1px solid color-mix(in srgb, var(--gc) 25%, transparent); font: 600 12.5px Inter, sans-serif; color: var(--texto-2); white-space: nowrap; }
.tf-gcab-n b { all: unset; font: 800 16px Sora, Inter, sans-serif; color: color-mix(in srgb, var(--gc) 80%, var(--texto)); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tf-gcab-txt small { display: none; } .tf-gcab-ico { width: 30px; height: 30px; } }
.tf-lista .tf-grupo:is(.tf-grupo, .perigo, .alerta, .ok) .tf-grupo-cab th .tf-gcab-n b { display: inline; min-width: 0 !important; height: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; color: color-mix(in srgb, var(--gc) 80%, var(--texto)) !important; font: 800 16px Sora, Inter, sans-serif !important; }

/* Cabeçalho de Tarefas em duas faixas (19/11/2026): contexto + controles em cima; números em blocos iguais embaixo. */
.tf-hero.tf-hero2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 24px 22px; }
.tf-h2-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tf-h2-tit { display: grid; gap: 2px; }
.tf-hero2 .tf-h2-tit h1 { margin: 0; }
.tf-h2-mes { margin-right: auto; }
.tf-h2-mes .competencia { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; }
@media (min-width: 700px) { .tf-h2-mes .cal-comp { inset: calc(100% + 8px) auto auto 0; transform-origin: top left; } }
.tf-h2-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tf-h2-acoes .botao { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.2) !important; }
.tf-h2-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tf-h2-num {
  position: relative; display: grid; align-content: start; gap: 4px; padding: 13px 16px 12px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%), rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); --c: rgba(255, 255, 255, 0.4);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s, box-shadow 0.18s;
}
.tf-h2-num::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.tf-h2-num b { font: 800 26px/1 Sora, Inter, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.tf-h2-num span { font-size: 12.5px; color: rgba(233, 246, 255, 0.72); }
.tf-h2-num span i { font-style: normal; opacity: 0; transition: opacity 0.18s; }
a.tf-h2-num:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25); }
a.tf-h2-num:hover span i { opacity: 0.9; }
.tf-h2-num.perigo { --c: #ff6b6b; }
.tf-h2-num.perigo b { color: #ff9b91; }
.tf-h2-num.alerta { --c: #ffd166; }
.tf-h2-num.alerta b { color: #ffd166; }
.tf-h2-num.ok { --c: #2fd29a; }
.tf-h2-num.nulo b { color: rgba(255, 255, 255, 0.45); }
.tf-h2-prog { grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.tf-h2-prog b { color: var(--t-neon); }
.tf-h2-prog .progresso { grid-column: 1 / -1; height: 7px; margin-top: 6px; border-radius: 7px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.tf-h2-prog .progresso i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--t-acento), var(--t-neon)); box-shadow: 0 0 10px rgba(var(--t-neon-rgb), 0.5); }
.tf-h2-frase { margin: 0; }
@media (max-width: 900px) { .tf-h2-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-h2-mes { margin-right: 0; } }
/* Blocos de números do cabeçalho com contorno colorido inteiro e vidro espelhado (19/11/2026): a cor de cada bloco
   no contorno todo (com um leve brilho) e a faixa de luz que atravessa de tempos em tempos, como na Visão geral. */
.tf-h2-num { --c: rgba(233, 246, 255, 0.55); border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 12%, transparent), 0 0 18px color-mix(in srgb, var(--c) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, color-mix(in srgb, var(--t-vidro) 55%, transparent)), color-mix(in srgb, var(--t-escuro-4) 45%, transparent)); }
.tf-h2-num::before { display: none; }
.tf-h2-num.nulo { --c: rgba(233, 246, 255, 0.3); }
a.tf-h2-num:hover { border-color: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 10px 26px color-mix(in srgb, var(--c) 30%, transparent); }
.tf-h2-num::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-12deg); animation: tfEspelho 7s ease-in-out infinite;
}
.tf-h2-num:nth-child(2)::after { animation-delay: 0.35s; }
.tf-h2-num:nth-child(3)::after { animation-delay: 0.7s; }
.tf-h2-num:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes tfEspelho { 0% { transform: translateX(-170%) skewX(-12deg); } 18%, 100% { transform: translateX(380%) skewX(-12deg); } }
.tf-h2-num > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .tf-h2-num::after { animation: none; display: none; } }

/* Quadro compacto (19/11/2026, "diminuir os cards e ter uma visualização mais ampla, sem rolar até o infinito"):
   cartão em duas linhas com filete de gravidade à esquerda; colunas na altura da janela, rolando por dentro com o
   título fixo e a barra invisível. Para desfazer: apagar este bloco e o cartão compacto (tf-card-c) em tarefas.js. */
.tf-quadro .g2-col { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; align-content: start; gap: 6px; padding-top: 0; }
.tf-quadro .g2-col::-webkit-scrollbar { display: none; }
.tf-quadro .g2-col > h3 { position: sticky; top: 0; z-index: 2; margin: 0 -10px; padding: 10px 10px 8px !important; background: inherit; }
.tf-quadro .g2-tk.tf-card-c {
  display: grid; gap: 6px; padding: 8px 10px 8px 12px !important; text-align: left; justify-items: stretch;
  border: 1px solid var(--linha) !important; border-radius: 10px; box-shadow: 0 1px 2px color-mix(in srgb, var(--t-escuro-1) 5%, transparent); position: relative;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tf-quadro .g2-tk.tf-card-c::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.tf-quadro .g2-tk.tf-card-c.tf-sev-perigo::before { background: var(--perigo); }
.tf-quadro .g2-tk.tf-card-c.tf-sev-alerta::before { background: var(--alerta); }
.tf-quadro .g2-tk.tf-card-c:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--t-escuro-1) 10%, transparent); border-color: color-mix(in srgb, var(--verde) 35%, var(--linha)) !important; }
.tf-c-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tf-c-l1 .t { flex: 1; min-width: 0; font: 700 13.5px/1.25 Inter, sans-serif !important; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.tf-c-av .g2-av { width: 22px; height: 22px; font-size: 0.55rem; }
.tf-c-fila { flex: none; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--alerta) 14%, var(--cartao)); color: color-mix(in srgb, var(--alerta) 80%, var(--texto)); font: 700 10.5px Inter, sans-serif; }
.tf-c-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.tf-c-l2 .tf-obr-chip { max-width: 55%; padding: 1px 6px; font-size: 10.5px; }
.tf-c-l2 .tf-chip { padding: 1px 7px !important; font-size: 10.5px !important; line-height: 1.5; }
.tf-c-l2 .tf-excecoes { display: contents; }
.tf-c-l2 .tf-excecoes > * { padding: 1px 6px !important; font-size: 10px !important; }
.tf-quadro .g2-tk.tf-card-c.feita { opacity: 0.8; }
/* dica "Arraste o cartão" legível no painel escuro */
.tf-ferramentas .tf-dica-quadro, .tf-ferramentas .tf-dica-quadro span, .tf-ferramentas .tf-dica-quadro b { color: var(--t-claro-2) !important; }
.tf-ferramentas .tf-dica-quadro b { color: #fff !important; }
.tf-ferramentas .tf-dica-quadro i { background: rgba(255, 255, 255, 0.1) !important; color: var(--t-neon) !important; }
.tf-quadro .g2-tk.tf-card.tf-card-c { grid-template-rows: none !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: stretch !important; align-content: start !important; min-height: 0 !important; height: auto !important; }
.tf-card-c .tf-c-l1, .tf-card-c .tf-c-l2 { width: 100%; justify-content: flex-start !important; }
/* Acento do tema na aba "Todas" e na barra de concluídas do cabeçalho (19/11/2026, temas). */
.tf-ferramentas .tf-situacoes button[data-t-status="todas"] { --st: var(--t-acento-2); }
.tf-sit-luz { --st: var(--t-acento-2); }
.tf-ferramentas .tf-situacoes button[data-t-status="todas"][aria-pressed="true"] .n { background: var(--t-acento) !important; }
.tf-h2-num.ok { --c: var(--t-acento-2); }
.tf-h2-prog .progresso i { background: linear-gradient(90deg, var(--t-acento), var(--t-neon)); box-shadow: 0 0 10px rgba(var(--t-neon-rgb), 0.5); }
