.tarefa-destinatario {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.tarefa-destinatario > em {
    font-style: italic;
}

.tarefas {
    border-radius: 20px;
    padding: 5px 10px;
}

.tarefas-Alta {
    background-color: red;
    color: #ffe5a0;
}

.tarefas-Média {
    background-color: #ffe5a0;
    color: #973f00;
}

.tarefas-Baixa {
    background-color: green;
    color: wheat;
}

.tarefas-Não-iniciado {
    background-color: #00dade;
    color: #004e50;
}

.tarefas-Em-curso {
    background-color: #fffb19;
    color: #5b5900;
}

.tarefas-Stand-By {
    background-color: #ff8870;
    color: #7e1500;
}

.tarefas-Dependente {
    background-color: #ff63cb;
    color: #520037;
}

.tarefas-Finalizado {
    background-color: #0024b5;
    color: #c7c7ff;
}

.tarefas-Concluído {
    background-color: #3eff25;
    color: #084700;
}

.tarefa-texto { min-width: 180px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.tarefa-texto p { margin: 0 0 6px; }
.tarefa-particular { display: block; width: fit-content; margin-top: 6px; padding: 3px 7px; border-radius: 5px; background: #e7edf2; color: #596b7b; font-size: 10px; }
.tabela .tarefa-dropdown { min-width: 110px; padding: 7px 9px; border: 1px solid #cdd6de; border-radius: 6px; background: var(--tarefa-fundo, #f5f7f9); color: var(--tarefa-cor, #465563); font: inherit; font-size: 11px; cursor: pointer; }
.tabela .tarefa-dropdown:focus-visible { outline: 2px solid #8b9dab; outline-offset: 1px; }
.tabela .tarefa-dropdown:disabled { opacity: 1; color: var(--tarefa-cor, #7c8791); cursor: default; }
.tarefa-dropdown[data-valor="Alta"] { --tarefa-fundo: red; --tarefa-cor: #ffe5a0; }
.tarefa-dropdown[data-valor="Média"] { --tarefa-fundo: #ffe5a0; --tarefa-cor: #973f00; }
.tarefa-dropdown[data-valor="Baixa"] { --tarefa-fundo: green; --tarefa-cor: wheat; }
.tarefa-dropdown[data-valor="Não iniciado"] { --tarefa-fundo: #00dade; --tarefa-cor: #004e50; }
.tarefa-dropdown[data-valor="Em curso"] { --tarefa-fundo: #fffb19; --tarefa-cor: #5b5900; }
.tarefa-dropdown[data-valor="Stand By"] { --tarefa-fundo: #ff8870; --tarefa-cor: #7e1500; }
.tarefa-dropdown[data-valor="Dependente"] { --tarefa-fundo: #ff63cb; --tarefa-cor: #520037; }
.tarefa-dropdown[data-valor="Finalizado"] { --tarefa-fundo: #0024b5; --tarefa-cor: #c7c7ff; }
.tarefa-dropdown[data-valor="Concluído"] { --tarefa-fundo: #3eff25; --tarefa-cor: #084700; }
.tarefa-dropdown option { background: #fff; color: #465563; }
.tabela .tarefa-nota { margin: 0; padding: 7px 10px; border: 1px solid #cdd6de; border-radius: 6px; background: #edf1f4; color: #465563; box-shadow: none; transform: none; font: inherit; font-size: 11px; }
.tabela .tarefa-nota:hover { background: #dde5ec; box-shadow: none; transform: none; }
.tarefa-anexos { display: flex; flex-wrap: wrap; gap: 6px; }
.tarefa-ajuda { margin: 0; font-size: 12px; color: #657582; line-height: 1.7; }
.tarefa-historico h3 { margin: 0 0 12px; font-size: 12px; color: #4c5965; }
.tarefa-historico p { color: #78838e; }
.tarefa-historico-recorte { overflow-x: auto; border: 1px solid #dce1e6; border-radius: 7px; }
.tarefa-historico-recorte .tabela > thead { position: static; }
.tarefa-historico-recorte .tabela th, .tarefa-historico-recorte .tabela td { padding: 9px 12px; }
.tarefa-historico-data { white-space: nowrap; }
.tarefa-prazo { display: inline-block; padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-size: 11px; background: #edf1f4; color: #657582; }
.tarefa-prazo-atrasado { background: #fce5e5; color: #a33434; }
.tarefa-prazo-no-prazo, .tarefa-prazo-concluido { background: #e6f1e9; color: #397149; }
.tarefa-detalhes-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-bottom: 20px; }
.tarefa-detalhes-resumo section { padding: 14px; border: 1px solid #dce1e6; border-radius: 8px; background: #fff; min-width: 0; }
.tarefa-detalhes-resumo h3 { margin: 0 0 10px; font-size: 12px; color: #4c5965; }
.tarefa-nota-conteudo { overflow-wrap: anywhere; }
.tarefa-nota-conteudo > strong:first-child { display: block; margin-bottom: 6px; }
.tarefa-nota-conteudo + .tarefa-nota-conteudo { margin-top: 12px; }
.tarefa-detalhes-resumo .foto-status { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.tarefas-listagem { table-layout: fixed; width: 100%; }
.tarefas-listagem > thead > tr > th,.tarefas-listagem > tbody > tr:not(.tabela-linha-detalhes) > td { padding: 6px 4px; overflow-wrap: anywhere; }
.tarefas-listagem > thead > tr > th > div { gap: 3px !important; }
.tarefas-listagem > thead > tr > th:nth-child(1) { width: 3%; }
.tarefas-listagem > thead > tr > th:nth-child(2) { width: 17%; }
.tarefas-listagem > thead > tr > th:nth-child(3) { width: 11%; }
.tarefas-listagem > thead > tr > th:nth-child(4) { width: 20%; }
.tarefas-listagem > thead > tr > th:nth-child(5) { width: 8%; }
.tarefas-listagem > thead > tr > th:nth-child(6) { width: 10%; }
.tarefas-listagem > thead > tr > th:nth-child(7) { width: 10%; }
.tarefas-listagem > thead > tr > th:nth-child(8),.tarefas-listagem > thead > tr > th:nth-child(9) { width: 8%; }
.tarefas-listagem > thead > tr > th:nth-child(10) { width: 5%; }
.tarefas-listagem .tarefa-texto { min-width: 0; max-width: none; }
.tarefas-listagem .tarefa-dropdown { min-width: 0; width: 100%; max-width: 100%; padding: 6px 3px; font-size: 10px; text-overflow: ellipsis; }
.tarefas-listagem .tarefa-prazo { white-space: normal; padding: 4px 5px; font-size: 10px; }
.tarefas-listagem .tarefa-nota { padding: 6px 4px; font-size: 10px; }
.tarefas-listagem > thead > .tabela-linha-pesquisa input { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; padding: 3px 1px; font-size: 10px; }
.tarefas-listagem > thead .tabela-pesquisa-datas { min-width: 0; }
.cabecalho-usuario .tarefas-contador-controle { display: inline-flex; align-items: center; gap: 5px; padding: 5px; margin: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; box-shadow: none; transform: none; }
.cabecalho-usuario .tarefas-contador-controle:hover { background: #ffffff18; box-shadow: none; transform: none; }
.tarefas-contador-controle svg { width: 24px; height: 24px; color: #fff; }
.tarefas-contador-controle img { width: 26px; height: 26px; object-fit: contain; display: block; }
.tarefas-contador-controle [hidden] { display: none; }

/* Contadores do topo (chat, tarefas, e-mails): selo no canto superior direito do ícone. */
/* Espaço no canto superior direito para o selo: ele fica inteiro dentro do botão e não é cortado pela barra. */
.cabecalho-usuario .tarefas-contador-controle { position: relative; padding: 9px 11px 3px 3px; }
.cabecalho-usuario .tarefas-contador-controle .labelQuantidade {
    position: absolute; top: 1px; right: 0;
    min-width: 16px; height: 16px; min-height: 0; padding: 0 4px; box-sizing: border-box;
    border: 1.5px solid #222; border-radius: 999px;
    background: #e11d48; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: -.02em;
    /* Poppins sobe o texto em caixas pequenas; a fonte do sistema e a linha com a altura interna (16 - 2×1,5) centram o número. */
    display: block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 13px; text-align: center; font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none;
}
/* O display acima venceria o [hidden]: contador zerado continua escondido. */
.cabecalho-usuario .tarefas-contador-controle .labelQuantidade[hidden] { display: none; }
/* Ícones de contador mais juntos: desconta o espaço entre itens da barra (o canto direito já reserva lugar para o selo). */
.cabecalho-usuario .tarefas-contador-controle + .tarefas-contador-controle { margin-left: -8px; }
