/* Lume · Azul essencial. A identidade verde pertence à conversa com o cliente. */
body.autenticado{--lume-fundo:#eef2f7;--lume-superficie:#fff;--lume-texto:#192d42;--lume-texto-secundario:#506078;--lume-borda:#cbd6e2;background:var(--lume-fundo)}
body.autenticado>.marca{background:#142e4a;color:#edf4fc}
body.autenticado #menu button{border-radius:8px}
body.autenticado #menu button[aria-current=page]{background:#ffffff22;box-shadow:inset 3px 0 #e6c58d}
body.autenticado main{color:var(--lume-texto)}
body.autenticado :is(input,textarea,select):focus-visible{outline:3px solid #286d9c;outline-offset:2px}
body.autenticado button:focus-visible{outline:3px solid #286d9c;outline-offset:3px}
/* Só o detalhe de atendimento usa estes tokens; chat interno e diálogos preservam o contexto. */
.at-design-whatsapp{--wa-header:#075e54;--wa-header-text:#f5fffb;--wa-secondary:#4c6258;--wa-bg:#efeae2;--wa-received:#fff;--wa-sent:#d9fdd3;--wa-text:#172a25;--wa-composer:#f0f2f0;--wa-send:#087c5c;--wa-divider:#c6d5cc;background:#fff;color:#192d42;border-color:#cbd6e2;border-radius:14px}
body #atendimento #at-detalhe.at-design-whatsapp>.at-cab,
.at-kanban-dialog #at-detalhe.at-design-whatsapp>.at-cab{background:var(--wa-header);color:var(--wa-header-text);border:0;border-radius:11px 11px 0 0;padding:14px 16px;margin:0 0 10px;gap:10px;box-shadow:none}
body #atendimento #at-detalhe.at-design-whatsapp>.at-cab .at-perfil,
.at-kanban-dialog #at-detalhe.at-design-whatsapp>.at-cab .at-perfil{background:transparent!important;color:var(--wa-header-text)!important;padding:2px!important;border:0;box-shadow:none}
body #atendimento #at-detalhe.at-design-whatsapp>.at-cab :is(.at-cliente-nome,.at-cab-nomes,.at-cab-representante,strong),
.at-kanban-dialog #at-detalhe.at-design-whatsapp>.at-cab :is(.at-cliente-nome,.at-cab-nomes,.at-cab-representante,strong){color:var(--wa-header-text)!important;font-weight:650}
body #atendimento #at-detalhe.at-design-whatsapp>.at-cab small,
.at-kanban-dialog #at-detalhe.at-design-whatsapp>.at-cab small{color:#d6eee5!important;font-size:.75rem;line-height:1.5}
.at-design-whatsapp>.at-cab .at-avatar{background:#ffffff20;color:#fff;border:1px solid #ffffff60;box-shadow:none;width:42px;height:42px}
.at-design-whatsapp>.at-cab .at-cab-etapa{color:#fff;background:#ffffff20;border-color:#ffffff40}
.at-design-whatsapp>.at-cab .at-perfil:hover{background:#ffffff12!important}
.at-design-whatsapp>.at-cab :focus-visible{outline-color:#ffe09a!important}
/* Cinco grupos, sempre acionados por clique. Apenas o grupo aberto ocupa espaço adicional. */
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-comandos{display:flex;justify-content:flex-start;gap:10px 18px;flex-wrap:wrap;padding:10px 2px;margin:0;border-bottom:1px solid #d4dee7;position:relative;z-index:8}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-acoes{position:relative;padding:0;border:0;flex:0 0 auto}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho{display:flex;align-items:center;justify-content:flex-start;gap:7px;background:transparent;color:#253f58;border:0;border-radius:8px;padding:2px!important;width:auto!important;height:auto!important;min-height:44px!important;margin:0!important;box-shadow:none;font-size:.75rem;font-weight:550;white-space:nowrap}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho::after{content:none}
.at-design-whatsapp .at-grupo-icone{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;border:1px solid #c5d5e3;background:#e9eff7;color:#244e73;transition:background-color .12s,color .12s}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho svg{width:19px;height:19px;flex:none}
.at-design-whatsapp .at-grupo-legenda{font-size:.75rem;white-space:normal;text-align:left}
.at-design-whatsapp .at-grupo-gatilho:hover .at-grupo-icone{background:#d9e7f4}
.at-design-whatsapp .at-grupo-gatilho[aria-expanded=true] .at-grupo-icone{background:#164f86;border-color:#164f86;color:#fff}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho[aria-expanded=true]{color:#164f86;background:transparent;border:0;box-shadow:none}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes{position:absolute;top:calc(100% + 6px);z-index:35;width:310px;max-width:calc(100vw - 48px);padding:8px;background:#fff;border:1px solid #c5d5e3;border-radius:12px;box-shadow:0 10px 30px #142e4a26;display:flex;flex-direction:column;gap:4px}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes[hidden]{display:none!important}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-compacto-texto{min-height:40px!important;height:auto!important;max-width:100%;width:100%!important;justify-content:flex-start;text-align:left;padding:9px 10px!important;background:#f4f7fa!important;color:#253f58!important;border:1px solid transparent!important;border-radius:8px!important;font-size:.75rem!important}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-compacto-texto:hover{background:#e6eff8!important}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-compacto-texto:disabled{opacity:.55;cursor:not-allowed}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .sr-only{font-size:.75rem!important;line-height:1.4!important}
/* Balões de mensagem; avisos, notas, exclusões e programações mantêm suas distinções. */
body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens{background:var(--wa-bg);border:1px solid #dddcd5;border-radius:8px 8px 0 0;margin-bottom:0;padding:18px;scrollbar-gutter:stable;min-height:320px}
body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens .balao:not(.at-nota-amarela):not(.at-nota-transferencia):not(.at-mensagem-apagada):not(.apagada){background:var(--wa-received);color:var(--wa-text);border:0;border-radius:0 10px 10px 10px;box-shadow:0 1px 1px #182c2526;padding:2px 8px;margin-top:1px;margin-bottom:1px;font-size:.875rem}
body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens .balao.proprio:not(.at-nota-amarela):not(.at-nota-transferencia):not(.at-mensagem-apagada):not(.apagada){background:var(--wa-sent);border-radius:10px 0 10px 10px}
.at-design-whatsapp #at-whatsapp-mensagens .balao>small{color:var(--wa-secondary);font-size:.6875rem;line-height:1.2;margin-bottom:1px}
.at-design-whatsapp #at-whatsapp-mensagens .balao p{font-size:.875rem;line-height:1.3;margin:1px 0}
.at-design-whatsapp #at-whatsapp-mensagens .balao a{color:#065e63;text-decoration:underline;text-underline-offset:2px}
.at-design-whatsapp #at-whatsapp-mensagens .at-mensagem-acoes button{color:#3f6155;min-height:28px}
.at-design-whatsapp #at-whatsapp-mensagens .at-recibo.lida{color:#087ba8}
/* Mantém o modo de nota separado do envio ao cliente. */
body :is(#painel,dialog) .at-design-whatsapp .at-compositor.at-chat-limpo:not(.modo-nota){background:var(--wa-composer)!important;border:1px solid var(--wa-divider);border-top:0;border-radius:0 0 10px 10px;padding:12px!important;gap:8px!important}
body :is(#painel,dialog) .at-design-whatsapp .at-compositor.at-chat-limpo:not(.modo-nota) textarea{background:#fff!important;color:var(--wa-text)!important;border:1px solid #bbcec2!important;border-radius:16px!important;font-size:.875rem!important;line-height:1.5;caret-color:#075e54}
.at-design-whatsapp .at-compositor textarea::placeholder{color:#52685e;opacity:1}
body :is(#painel,dialog) .at-design-whatsapp .at-compositor:not(.modo-nota) #at-enviar{background:var(--wa-send)!important;color:#fff!important;border:1px solid var(--wa-send)!important;border-radius:50%!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important}
body :is(#painel,dialog) .at-design-whatsapp .at-compositor:not(.modo-nota) #at-enviar>.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body :is(#painel,dialog) .at-design-whatsapp .at-compositor #at-enviar:disabled{opacity:.5}
body :is(#painel,dialog) .at-design-whatsapp .at-compositor textarea:focus-visible{outline:3px solid #087c5c!important;outline-offset:2px}
.at-design-whatsapp>.at-conexao{color:#4c6258;font-size:.75rem}
/* Drive e ligação continuam reconhecíveis nos atalhos diretos já existentes. */
body :is(#painel,dialog) .at-design-whatsapp .at-cab-util :is(.at-drive-icone,.at-voz-botao){width:40px;height:40px;min-width:40px;border-radius:50%;border:1px solid #c5d5e3;background:#fff}
@media(max-width:767.98px){
 body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-comandos{gap:8px 12px;padding:9px 0}
 body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho{flex-direction:column;gap:4px;min-width:54px!important;max-width:90px}
 .at-design-whatsapp .at-grupo-legenda{font-size:.6875rem;text-align:center}
 .at-design-whatsapp .at-grupo-icone{width:44px;height:44px}
 body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-compacto-texto{min-height:44px!important}
 body :is(#painel,dialog) .at-design-whatsapp .at-compositor.at-chat-limpo:not(.modo-nota) textarea{font-size:max(16px,1rem)!important}
 body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens{padding:12px;min-height:280px}
 body #atendimento #at-detalhe.at-design-whatsapp>.at-cab{padding:12px}
}
@media(prefers-reduced-motion:reduce){.at-design-whatsapp .at-grupo-icone{transition:none}}
/* Sobrescreve a antiga barra de ícones de 31px sem reduzir a área das legendas. */
body #atendimento #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-acoes{width:auto;min-width:0;flex:0 0 auto}
body #atendimento #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-gatilho,
.at-kanban-dialog #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-gatilho{width:max-content!important;min-width:44px!important;max-width:none!important;height:auto!important;min-height:44px!important;justify-content:flex-start;padding:2px!important}
body #atendimento #at-detalhe.at-design-whatsapp .at-grupo-legenda{white-space:nowrap}
@media(max-width:767.98px){
 body #atendimento #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-gatilho{width:76px!important;min-width:54px!important;max-width:90px!important;justify-content:center}
 body #atendimento #at-detalhe.at-design-whatsapp .at-grupo-legenda{white-space:normal}
}

/* Cabeçalho compacto: o espaço de trabalho pertence à conversa. */
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-cab{padding:6px 10px;margin-bottom:3px;gap:6px}
.at-design-whatsapp>.at-cab .at-avatar{width:32px;height:32px}
.at-design-whatsapp>.at-cab .at-perfil{gap:7px}
.at-design-whatsapp>.at-cab .at-perfil strong{font-size:.875rem;line-height:1.25}
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-cab small{margin-top:1px;font-size:.6875rem;line-height:1.25}
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-comandos{gap:3px 10px;padding:3px 0;margin:0}
body :is(#painel,dialog) #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-gatilho{flex-direction:row;gap:5px;width:max-content!important;min-width:0!important;max-width:none!important;min-height:34px!important;height:34px!important;padding:2px!important}
.at-design-whatsapp .at-grupo-icone{width:28px;height:28px}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-gatilho svg{width:16px;height:16px}
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp .at-grupo-legenda{font-size:.6875rem;white-space:nowrap}
body :is(#painel,dialog) .at-design-whatsapp>.interessados-barra{margin:0;padding:2px 0}
body :is(#painel,dialog) .at-design-whatsapp>.interessados-barra>button{margin:0;padding:4px 8px;font-size:.6875rem;min-height:28px}
body :is(#painel,dialog) .at-design-whatsapp>.jur-contato{padding:4px 8px;gap:4px 8px}
body :is(#painel,dialog) .at-design-whatsapp>.jur-contato small{font-size:.625rem;line-height:1.25}
body :is(#painel,dialog) .at-design-whatsapp>.at-cab-barra-unica{gap:3px 6px;padding:2px 0 3px}
body :is(#painel,dialog) .at-design-whatsapp>.at-conexao{margin:1px 0;font-size:.625rem;line-height:1.2}
/* Mensagens de erro e avisos continuam inteiros, inclusive em canais múltiplos. */
@media(min-width:768px) and (pointer:fine){
 body :is(#painel,dialog) .at-design-whatsapp .at-cab-util{gap:3px;flex-wrap:wrap}
 body :is(#painel,dialog) .at-design-whatsapp .at-cab-util :is(button,summary){margin-top:0;min-height:30px;padding:4px 6px;font-size:.6875rem}
 body :is(#painel,dialog) .at-design-whatsapp .at-cab-util :is(.at-drive-icone,.at-voz-botao){width:30px;height:30px;min-width:30px;min-height:30px;padding:3px}
 body :is(#painel,dialog) .at-design-whatsapp .at-cab-util :is(svg,img){width:19px;height:19px}
 body :is(#painel,dialog) .at-design-whatsapp .at-ia-info-compacta{font-size:.625rem!important;line-height:1.2;max-width:180px}
 body :is(#painel,dialog) .at-design-whatsapp>.jur-contato :is(button,select){min-height:28px;margin-top:0;padding:3px 6px;font-size:.6875rem}
 body :is(#painel,dialog) .at-design-whatsapp .at-compositor.at-chat-limpo:not(.modo-nota){padding:7px!important;gap:5px!important}
 body :is(#painel,dialog) .at-design-whatsapp .at-menu-mensagem{gap:0;margin-top:4px;padding:3px;border-radius:8px}
 body :is(#painel,dialog) .at-design-whatsapp .at-menu-mensagem button{min-height:30px;margin:0;padding:4px 8px;font-size:.75rem}
}
/* No toque, conservar alvos confortáveis sem retomar as barras altas. */
@media(max-width:767.98px),(pointer:coarse){
 body :is(#painel,dialog) #at-detalhe.at-barra-unica.at-design-whatsapp .at-grupo-gatilho{min-height:44px!important;height:44px!important}
 body :is(#painel,dialog) .at-design-whatsapp>.interessados-barra>button{min-height:44px}
}

body :is(#painel,dialog) .at-design-whatsapp .at-cab-util .central-atalho.icone-botao{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;min-height:32px;height:32px;padding:4px;border:1px solid #c5d5e3;border-radius:7px;background:#f5f8fb;color:#355b77}
body :is(#painel,dialog) .at-design-whatsapp .at-cab-util .central-atalho>.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:767.98px),(pointer:coarse){body :is(#painel,dialog) .at-design-whatsapp .at-cab-util .central-atalho.icone-botao{width:44px;height:44px;min-width:44px;min-height:44px}}

@media(min-width:768px){body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens.at-conversa-principal{height:calc(57dvh + 64px)}}
/* Barra contínua: vínculos e funções compartilham a mesma linha. */
body :is(#painel,dialog) #at-detalhe.at-design-whatsapp>.at-comandos{flex-wrap:nowrap;gap:6px;padding:2px 0;border-bottom:0;min-width:0}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-acoes{margin:0;min-width:0}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .interessados-barra{display:flex;flex-direction:column;align-items:stretch;margin:0;padding:0;gap:4px}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .interessados-barra button{margin:0;min-height:36px;text-align:left;white-space:normal;padding:7px 9px;background:#f4f7fa;color:#253f58;border:0;border-radius:6px;font-size:.75rem}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-grupo-acoes{width:100%;margin:0}
body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .at-grupo-botoes{position:static;width:100%;max-width:100%;box-shadow:none;border:0;padding:3px 0 7px;box-sizing:border-box}
body :is(#painel,dialog) .at-design-whatsapp .at-mais-acoes .at-grupo-botoes{right:0;left:auto}
.at-design-whatsapp .at-mais-acoes>.at-grupo-gatilho .at-grupo-icone{font-size:1.375rem;line-height:1;font-weight:700}
body :is(#painel,dialog) .at-design-whatsapp>.at-cab-barra-unica{border-bottom:0}
body :is(#painel,dialog) .at-design-whatsapp .at-ia-ajuda{position:relative;padding:0;margin:0;border:0;background:transparent}
body :is(#painel,dialog) .at-design-whatsapp .at-ia-ajuda>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:28px;height:30px;cursor:pointer;color:#355b77;border-radius:6px;font-size:1.0625rem}
.at-design-whatsapp .at-ia-ajuda>summary::-webkit-details-marker{display:none}
body :is(#painel,dialog) .at-design-whatsapp .at-ia-ajuda .at-ia-info-compacta{position:absolute;top:100%;left:0;z-index:40;display:block;min-width:220px!important;max-width:min(330px,70vw)!important;padding:10px;background:#fff;border:1px solid #c5d5e3;border-radius:8px;box-shadow:0 6px 20px #142e4a22;font-size:.75rem!important;line-height:1.4}
/* Lista horizontal, sem trilho vertical que force altura mínima. */
body #at-lista .at-resumo-grupo{position:relative;margin:0 0 5px}
body #at-lista .at-resumo-grupo .at-contato{padding:7px 8px!important;min-height:0!important;margin:0!important;gap:6px!important}
body #at-lista .at-resumo-compacto .at-lista-texto{overflow:visible;gap:3px 5px!important}
body #at-lista .at-resumo-compacto .at-card-nome-status{padding-right:57px!important;box-sizing:border-box;min-height:24px}
body #at-lista .at-resumo-compacto .at-card-dados-duas,
body #at-lista .at-resumo-compacto .at-card-identificacao,
body #at-lista .at-resumo-compacto .at-card-situacao{display:contents!important}
body #at-lista .at-resumo-compacto :is(.at-card-telefone,.at-card-canal,.at-equipe-etiqueta,.at-card-etapa,.at-card-marcos){flex:0 1 auto!important;width:auto!important;margin:0!important;white-space:normal!important}
body #at-lista .at-resumo-compacto .at-card-telefone{flex-basis:100%!important}
body #at-lista .at-resumo-compacto .at-card-marcos:empty{display:none!important}
body #at-lista .at-resumo-compacto .at-clientes-nomes>.at-colaborador-sinal{display:none!important}
body #at-lista .at-resumo-compacto .at-colaborador-sinal{font-size:.625rem!important;padding:1px 4px!important;width:max-content;max-width:100%;margin:0!important}
body #at-lista .at-resumo-compacto .at-card-nome-status .at-clientes-nomes{overflow-wrap:anywhere}
body #at-lista .at-resumo-compacto :is(.at-card-multicanal,.at-card-canais){flex-basis:100%;font-size:.625rem!important;padding:1px 0!important;margin:0!important}
body #at-lista .at-resumo-compacto .at-pendente{padding-right:30px!important}
body #at-lista .at-resumo-grupo .at-respondida-lateral{position:absolute!important;top:5px!important;right:35px!important;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:4px!important}
body #at-lista .at-resumo-menu{position:absolute!important;top:5px;right:5px;padding:0!important;margin:0!important;border:0;background:transparent;z-index:4}
body #at-lista .at-resumo-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:26px;height:26px;padding:0;border:1px solid #c5d5e3;border-radius:5px;background:#f4f8fb;color:#355b77;font-size:1.25rem;cursor:pointer}
.at-resumo-menu>summary::-webkit-details-marker{display:none}
body #at-lista .at-resumo-menu-itens{position:absolute;top:100%;right:0;z-index:30;width:220px;padding:5px;background:#fff;border:1px solid #c5d5e3;border-radius:8px;box-shadow:0 6px 20px #142e4a26}
body #at-lista .at-resumo-menu-itens button.at-resumo-acao{position:static!important;display:flex!important;align-items:center;justify-content:flex-start!important;gap:7px;width:100%!important;height:auto!important;min-height:34px!important;max-height:none!important;padding:6px!important;margin:0!important;border:0;background:#fff;color:#29445c;font-size:.75rem!important;text-align:left}
body #at-lista .at-resumo-menu-itens button.at-resumo-acao:hover{background:#edf3f7}
body #at-lista .at-resumo-menu-itens .at-resumo-acao-texto{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;display:block!important;font-size:.75rem}
body #at-lista .at-resumo-grupo .at-resumo-docs{position:absolute!important;bottom:4px;right:5px;margin:0!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:4px!important;border:1px solid #c5d5e3;background:#edf5fa;color:#345a75;border-radius:5px}
body #at-lista .at-resumo-docs>.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body #at-canais-botoes{flex-wrap:nowrap!important;overflow-x:auto;gap:4px;padding-bottom:3px;scrollbar-width:thin}
body #at-canais-botoes button{flex:0 0 auto;min-width:0;padding:4px 6px;font-size:.6875rem}
body #atendimento .at-fila-ferramentas{gap:4px;margin:3px 0;align-items:center}
body #atendimento .at-fila-ferramentas>small{font-size:.625rem;line-height:1.25}
@media(pointer:coarse){
 body #at-lista .at-resumo-grupo .at-card-nome-status{padding-right:86px!important;min-height:40px}
 body #at-lista .at-resumo-grupo .at-respondida-lateral{right:48px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 body #at-lista .at-resumo-menu>summary,body #at-lista .at-resumo-grupo .at-resumo-docs{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 body #at-lista .at-resumo-menu-itens button.at-resumo-acao{min-height:44px!important}
 body :is(#painel,dialog) .at-design-whatsapp .at-ia-ajuda>summary{width:40px;height:40px}
 body :is(#painel,dialog) .at-design-whatsapp .at-grupo-botoes .interessados-barra button{min-height:44px}
}

/* Prioridade sobre o antigo trilho de documentos carregado depois do tema. */
body.autenticado #painel #atendimento #at-lista .at-resumo-grupo .at-contato{padding:7px 8px!important;min-height:0!important}
body.autenticado #painel #atendimento #at-lista .at-resumo-grupo .at-lista-texto{overflow:visible!important}
body.autenticado #painel #atendimento #at-lista .at-resumo-menu-itens .at-resumo-acao{position:static!important;width:100%!important;height:auto!important;max-height:none!important;min-height:34px!important}
@media(pointer:coarse){body.autenticado #painel #atendimento #at-lista .at-resumo-menu-itens .at-resumo-acao{min-height:44px!important}}

/* Chat interno: o espaço livre pertence à conversa, inclusive ao redimensionar. */
body #chat-interno{display:flex;flex-direction:column;gap:4px;min-height:0;height:min(800px,calc(100dvh - 135px));padding:8px;position:relative}
body #chat-interno[hidden]{display:none!important}
body #chat-interno.chat-flutuante{display:flex;overflow:hidden;padding:8px;gap:4px}
body #chat-interno.chat-maximizado{resize:none}
body #chat-interno .chat-janela-barra{position:relative;top:auto;flex:0 0 auto;display:flex;flex-wrap:nowrap;gap:6px;padding:0;margin:0;min-height:32px;background:var(--lume-superficie,#fff);z-index:8}
body #chat-interno .chat-janela-barra h3{flex:1;min-width:0;font-size:.875rem;margin:0;line-height:1.2}
body #chat-interno .chat-janela-acoes{display:flex;gap:3px;flex-wrap:nowrap;margin:0}
body #chat-interno :is(.chat-janela-barra,.chat-conversa-barra,.chat-contatos-filtros) .icone-botao{width:30px;height:30px;min-width:30px;min-height:30px;padding:4px!important;margin:0!important;border-radius:6px;box-shadow:none}
body #chat-interno .chat-grade{flex:1 1 0%;min-height:0;min-width:0;display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden;margin:0;border-radius:9px;box-shadow:none}
body #chat-interno .chat-contatos{display:flex;flex-direction:column;gap:5px;padding:6px;min-height:0;min-width:0;max-height:none;overflow:hidden}
body #chat-interno .chat-contatos select{width:100%;min-width:0;max-width:100%;height:30px;min-height:30px;padding:4px 5px;margin:0;font-size:.75rem}
body #chat-interno .chat-contatos-filtros{display:flex;align-items:center;gap:4px;flex:0 0 auto}
body #chat-interno .chat-contatos-filtros>label{flex:1;min-width:0;margin:0}
body #chat-interno .chat-criar-grupo{position:relative;border:0;padding:0;margin:0;flex:0 0 auto}
body #chat-interno .chat-criar-grupo>summary{list-style:none}
body #chat-interno .chat-criar-grupo>form{position:absolute;top:34px;left:0;z-index:15;width:min(340px,75vw);max-height:60dvh;overflow:auto;background:#fff;border:1px solid #cbd7e1;border-radius:8px;padding:12px;margin:0;box-shadow:0 8px 24px #20354c30}
body #chat-interno #chat-lista{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
body #chat-interno #chat-lista button{width:100%;margin:0 0 3px;padding:7px 6px;font-size:.75rem;line-height:1.25;border-radius:6px;text-align:left}
body #chat-interno.chat-contatos-recolhidos .chat-contatos{display:none}
body #chat-interno.chat-contatos-recolhidos .chat-grade{grid-template-columns:minmax(0,1fr)}
body #chat-interno .chat-conversa{display:flex;flex-direction:column;gap:4px;padding:6px;min-height:0;min-width:0;overflow:hidden;position:relative}
body #chat-interno .chat-conversa-barra{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;flex:0 0 auto;min-height:32px;position:relative}
body #chat-interno #chat-titulo{font-size:.875rem;line-height:1.2;min-width:0;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #chat-interno .chat-chamada-controles{display:flex;flex-wrap:nowrap;gap:3px;flex:0 0 auto}
body #chat-interno #chat-chamada-tipo{width:144px;max-width:24vw;height:30px;min-height:30px;padding:4px;font-size:.6875rem;margin:0}
body #chat-interno #chat-anteriores{flex:0 0 auto;margin:0}
body #chat-interno #chat-anteriores.icone-com-texto{display:inline-flex;align-items:center;gap:6px;width:auto;height:30px;min-height:30px;padding:3px 10px;font-size:13px;font-weight:600;color:#1b3a57;white-space:nowrap;border-radius:6px;margin-left:auto}
body #chat-interno #chat-anteriores .rotulo-icone{position:static;clip:auto;width:auto;height:auto;margin:0;overflow:visible}
body #chat-interno #chat-mensagens{flex:1 1 0%!important;height:auto!important;min-height:60px!important;max-height:none;overflow:auto;overscroll-behavior:contain;padding:8px;margin:0;background:#f2f5f7;border:1px solid #dce4ec;border-radius:8px;scrollbar-gutter:stable}
body #chat-interno #chat-mensagens .balao{padding:7px 10px;margin:0 0 6px;line-height:1.4}
body #chat-interno #chat-mensagens .balao p{margin:4px 0;line-height:1.4}
body #chat-interno .chat-compositor{flex:0 0 auto;position:relative;bottom:auto;margin:0;padding:0;background:var(--lume-superficie,#fff)}
body #chat-interno #chat-form{gap:4px!important;margin:0;padding:0}
body #chat-interno #chat-texto{display:block;min-height:40px!important;height:40px;max-height:120px;padding:8px 10px;line-height:1.35;font-size:.8125rem;resize:vertical}
body #chat-interno #chat-form .chat-ferramentas{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:0;padding:0;min-height:30px}
body #chat-interno .chat-modos{display:flex;flex-wrap:nowrap;gap:3px;min-width:0;margin:0 auto 0 0}
body #chat-interno #chat-form .chat-modos button{margin:0;padding:4px 6px;font-size:.625rem;min-width:0;min-height:28px;white-space:nowrap;box-shadow:none}
body #chat-interno #chat-form .chat-ferramentas :is(.icone-botao,#chat-enviar,#chat-gravar,.at-ditar){width:30px;height:30px;min-width:30px;min-height:30px;padding:4px!important;margin:0;box-shadow:none}
body #chat-interno #chat-form .at-microfones{gap:3px;margin-left:0}
body #chat-interno :is(#chat-convites,#chat-chamada-criada,#chat-aviso):empty{display:none}
body #chat-interno :is(#chat-convites,#chat-chamada-criada,#chat-aviso){flex:0 0 auto;max-height:80px;overflow:auto;margin:0;font-size:.6875rem;line-height:1.3}
body #chat-interno :is(#chat-convites,#chat-chamada-criada) p{margin:2px 0}
body #chat-interno .chat-opcoes{position:relative;padding:0;border:0;margin:0}
body #chat-interno .chat-opcoes>summary{list-style:none}
body #chat-interno .chat-opcoes>summary::-webkit-details-marker,body #chat-interno .chat-criar-grupo>summary::-webkit-details-marker{display:none}
body #chat-interno .chat-opcoes-painel{position:absolute;right:0;top:34px;z-index:20;width:min(420px,calc(100vw - 32px));max-height:65dvh;overflow:auto;padding:8px;border:1px solid #ccd7e0;border-radius:9px;background:#fff;box-shadow:0 8px 26px #20354c30}
body #chat-interno .chat-opcoes-painel>details{padding:8px;margin:0 0 5px}
body #chat-interno .chat-opcoes-painel form{margin:8px 0;gap:7px}
body #chat-interno #chat-membros{position:relative;margin:0;padding:4px;border:0;font-size:.6875rem;flex:0 0 auto}
body #chat-interno #chat-membros[open]{position:absolute;right:0;top:0;background:white;border:1px solid #cbd7e1;border-radius:8px;padding:9px;max-height:60dvh;overflow:auto;z-index:10;width:min(340px,80vw)}
@media(max-width:600px){
 body #chat-interno .chat-grade{grid-template-columns:130px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 body #chat-interno .chat-contatos{max-height:none;overflow:hidden;padding:4px}
 body #chat-interno #chat-chamada-tipo{width:90px;max-width:90px}
 body #chat-interno .chat-modos{flex-basis:100%;margin:0}
 body #chat-interno .chat-conversa-barra{flex-wrap:wrap}
 body #chat-interno #chat-titulo{flex-basis:100%}
 body #chat-interno .chat-janela-barra h3{font-size:.75rem}
 body #chat-interno .chat-janela-acoes{gap:1px}
 body #chat-interno .chat-criar-grupo>form{position:fixed;left:16px;top:80px;width:calc(100vw - 32px)}
}
@media(pointer:coarse){
 body #chat-interno :is(.chat-janela-barra,.chat-conversa-barra,.chat-contatos-filtros) .icone-botao,body #chat-interno #chat-form .chat-ferramentas :is(.icone-botao,#chat-enviar,#chat-gravar,.at-ditar){width:40px;height:40px;min-width:40px;min-height:40px}
 body #chat-interno #chat-form .chat-modos button{min-height:36px}
}
body #chat-interno #chat-mensagens .balao{position:relative}
body #chat-interno #chat-mensagens .balao>small:first-child{display:block;padding-right:24px;font-size:.625rem;line-height:1.25}
body #chat-interno .chat-mensagem-menu{position:absolute;right:5px;top:3px;padding:0;margin:0;border:0;z-index:1}
body #chat-interno .chat-mensagem-menu>summary{display:flex;align-items:center;justify-content:center;width:24px;height:24px;list-style:none;color:#557086;font-size:1.1875rem;border-radius:4px}
body #chat-interno .chat-mensagem-menu>summary::-webkit-details-marker{display:none}
body #chat-interno .chat-mensagem-menu[open]{z-index:6}
body #chat-interno .chat-mensagem-menu>button{position:absolute;top:24px;right:0;width:170px;max-width:65vw;padding:8px;margin:0;background:white;border:1px solid #c5d4df;border-radius:6px;box-shadow:0 5px 15px #20354c25;font-size:.75rem;color:#4a5c6d;text-align:left}
body #chat-interno .chat-mensagem-menu>summary:hover{background:#dce7ee}
body #chat-interno .chat-mensagem-menu>summary:focus-visible{outline:2px solid #4d7896;outline-offset:1px}
@media(max-width:600px){body #chat-interno .chat-modos{flex-wrap:wrap}}

/* Ferramentas fechadas não reservam espaço; o atalho não cobre o envio. */
body #chat-interno #chat-form .chat-ferramenta{margin:0;padding:0;border:0}
body #chat-interno #chat-form .emoji-abrir{width:30px;height:30px;min-width:30px;min-height:30px;padding:4px;margin:0}
body:has(#chat-interno.chat-flutuante:not(.chat-minimizado):not([hidden])) #nav-chat.chat-atalho-direita{display:none!important}
@media(pointer:coarse){body #chat-interno #chat-form .emoji-abrir{width:40px;height:40px;min-width:40px;min-height:40px}}

/* Direção relativa ao usuário conectado; balões compactos sem reduzir a conversa. */
body #chat-interno #chat-mensagens .balao{box-sizing:border-box;width:fit-content;min-width:0;max-width:85%;margin:0 auto 3px 0!important;padding:5px 8px;line-height:1.3;background:#fff;border-radius:2px 8px 8px 8px;overflow-wrap:anywhere}
body #chat-interno #chat-mensagens .balao.proprio{margin-left:auto!important;margin-right:0!important;background:#dcf8c6;border-radius:8px 2px 8px 8px}
body #chat-interno #chat-mensagens .balao p{margin:2px 0;line-height:1.3}
body #chat-interno #chat-mensagens .balao>small{font-size:.625rem;line-height:1.2}
body #chat-interno #chat-mensagens .balao.chat-nota-privada{background:#fff1bb}
body #chat-interno #chat-mensagens .balao.chat-nota-compartilhada{background:#fff6da}
body #chat-interno #chat-mensagens .balao :is(audio,video,img){max-width:100%}

/* Pasta do cliente: um único ponto de entrada, sem depender do Google no navegador. */
body .drive-documentos-dialog{width:min(800px,calc(100vw - 24px));max-height:88dvh;padding:16px;overflow:auto}
body .drive-documentos-topo,body .drive-arquivos-barra{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body .drive-documentos-topo h3,body .drive-arquivos-barra strong{flex:1;margin:0}
body .drive-documentos-cliente{border:1px solid #dce4ec;border-radius:10px;padding:12px;margin-top:10px}
body .drive-documentos-cliente h4{margin:0 0 8px}
body .drive-arquivos-area{border-top:1px solid #dce4ec;margin-top:10px;padding-top:8px}
body .drive-arquivos-area input{width:100%;margin:6px 0}
body .drive-arquivo-linha{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf1f5}
body .drive-arquivo-linha>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.8125rem}
body .drive-baixar{padding:6px 10px;border-radius:6px;background:#eaf5ef;color:#176647;font-size:.75rem;white-space:nowrap}

body .colaborador-popup{width:min(800px,calc(100vw - 24px));max-height:90dvh}
body .colaborador-popup-corpo{display:grid;gap:12px;padding-top:10px}
body .colaborador-popup :is(.colaborador-identidade,.colaborador-dados form){display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10px}
body .colaborador-identidade label{min-width:0}
body .colaborador-identidade input{width:100%}
body .colaborador-popup .colaborador-dados{padding:10px;border:1px solid #dce4ec;border-radius:8px}
body .colaborador-popup h4{margin:0 0 7px}
body .colaborador-secao-topo{display:flex;align-items:center;gap:8px}
body .colaborador-secao-topo h4{flex:1}
body .colaborador-indicados input{width:100%;margin:6px 0}
body .colaborador-indicado{padding:6px 8px;margin:3px 0;border:1px solid #e1e7ef;border-radius:6px}
body .colaborador-indicado p{font-size:.75rem;margin:5px 0}
@media(max-width:600px){body .colaborador-popup :is(.colaborador-identidade,.colaborador-dados form){grid-template-columns:1fr}}
body dialog.colaborador-popup{inset:0;margin:auto;height:fit-content;padding:14px;overflow:auto}
body .colaborador-popup .at-dialog-cab{padding:0 0 8px;margin:0;min-height:0}
body .colaborador-popup .at-dialog-cab h3{font-size:1.125rem;margin:0}
body .colaborador-popup-corpo{gap:8px}
body .colaborador-popup-corpo>p{margin:0;font-size:.75rem;color:#52667c}
body .colaborador-popup .colaborador-dados form>label{grid-column:auto;min-width:0;margin:0}
body .colaborador-popup .colaborador-dados form>button{justify-self:start}
body .colaborador-popup .colaborador-dados :is(input,label){width:100%;box-sizing:border-box}
body .colaborador-popup .colaborador-dados p:empty{display:none}
body .colaborador-indicados p{margin:5px 0;font-size:.75rem}

/* Recibos compactos, preservando o texto e os controles da mensagem. */
.at-design-whatsapp #at-whatsapp-mensagens .at-mensagem-rodape{margin-top:0;gap:4px}
.at-design-whatsapp #at-whatsapp-mensagens .at-mensagem-rodape .at-recibo{font-size:.9375rem;line-height:1}

/* Reserva a linha do menu para não cobrir o início da mensagem. */
.at-design-whatsapp #at-whatsapp-mensagens .balao:has(.at-opcoes-mensagem)>small:first-child{min-height:18px}
.at-design-whatsapp #at-whatsapp-mensagens .at-opcoes-mensagem{top:2px;min-width:24px;min-height:20px;height:20px;padding:0 4px;line-height:1.125rem}
@media(pointer:coarse){.at-design-whatsapp #at-whatsapp-mensagens .balao:has(.at-opcoes-mensagem)>small:first-child{min-height:26px}.at-design-whatsapp #at-whatsapp-mensagens .at-opcoes-mensagem{min-width:28px;min-height:28px;height:28px}}

/* O recibo mantém o contraste e ocupa somente a altura do ícone. */
.at-design-whatsapp #at-whatsapp-mensagens .at-mensagem-rodape .at-recibo svg{display:block;width:15px;height:15px}

body :is(#painel,dialog) .at-design-whatsapp #at-whatsapp-mensagens .at-opcoes-mensagem{margin:0;padding:0 4px}

/* Estado do atendimento por canal, separado do canal em exibição. */
body :is(#painel,dialog) .at-design-whatsapp .at-canais-pessoa>button.at-canal-vinculado{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;padding:3px 8px;min-height:32px;height:auto;white-space:normal;text-align:left;line-height:1.15;margin:0;border:1px solid #b8c8d5;box-shadow:none}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado .at-canal-nome{font-size:.75rem;line-height:1.2;font-weight:600}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado .at-canal-telefone{font-size:.625rem;font-weight:400}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado .at-canal-situacao{display:flex;align-items:center;gap:6px;font-size:.625rem;line-height:1.1;font-weight:400;color:inherit}
/* Lote 80: no celular o "Aberto" se partia em "Abert / o"; situação e "Em exibição" não encolhem, e o nome do responsável é que
   ganha reticências (nome completo ao passar o dedo/mouse). */
body :is(#painel,dialog) .at-design-whatsapp :is(.at-canais-pessoa,.at-canal-vinculado,.at-canal-situacao){min-width:0;max-width:100%}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado .at-canal-situacao>:is(.at-canal-estado,.at-canal-em-exibicao){flex:none;white-space:nowrap}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado .at-canal-situacao>.at-canal-responsavel{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado[data-situacao="encerrado"],body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado[data-situacao="arquivado"]{background:#f0f2f4;color:#667481;border-style:dashed}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-vinculado:is([data-situacao="encerrado"],[data-situacao="arquivado"]) .at-canal-nome{text-decoration:line-through;text-decoration-thickness:1px}
body :is(#painel,dialog) .at-design-whatsapp .at-canais-pessoa>button.at-canal-vinculado[aria-pressed="true"]{background:#244e64;color:#fff;border:2px solid #153e54;box-shadow:0 0 0 1px #fff inset}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-em-exibicao{font-weight:700;border-left:1px solid currentColor;padding-left:6px}
body :is(#painel,dialog) .at-design-whatsapp .at-canal-conexao{color:#9f241d;background:#fff0e8;border-radius:3px;padding:0 3px;font-weight:600}

/* Cabeçalho dos atendimentos: ritmo compacto e controles de alto contraste. */
body main:has(#atendimento:not([hidden]):not(:empty)){padding-top:12px}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-saudacao h2{margin:0;padding:0;font-size:1.25rem;line-height:1.3}
body #painel:has(#atendimento:not([hidden]):not(:empty))>.cabecalho>.mini-agenda-barra{gap:5px;margin:0;padding:0}
body #painel:has(#atendimento:not([hidden]):not(:empty)) #lume-sessao-barra{align-items:center;gap:5px;margin:0;padding:0}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-tamanho-controles{gap:4px;margin:0;padding:0}
body #painel:has(#atendimento:not([hidden]):not(:empty)) :is(.lume-sessao-online,.lume-sessao-sair,.lume-tamanho-controles button){box-sizing:border-box;min-height:30px;padding:4px 8px;margin:0;border:1px solid transparent;border-radius:6px;font-size:.75rem;line-height:1.25rem;box-shadow:none;color:#fff;background:#334e68}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-online{background:#14633f}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-online.offline{background:#754015}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-sair{background:#98233c}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-atualizar-app{background:#174f88}
body #painel>.cabecalho .mini-agenda-periodo{min-height:32px;padding:5px 10px;margin:0!important;background:#6941a5;color:#fff;border:1px solid #553080;font-size:.75rem;line-height:1.25rem;border-radius:6px;box-shadow:none}
body #painel>.cabecalho .mini-agenda-periodo[aria-pressed="true"]{background:#3c1e6e;border-color:#3c1e6e;box-shadow:inset 0 -3px #fff;font-weight:750}
body #painel>.cabecalho .mini-agenda-abrir{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important;background:#6941a5!important;color:#fff!important;border-color:#553080!important;border-radius:7px;box-shadow:none}
body #painel>.cabecalho .mini-agenda-abrir svg{width:23px!important;height:23px!important;min-width:23px}
body #painel>.cabecalho .mini-agenda-abrir.periodo-personalizado{background:#754015!important;border-color:#754015!important}
body #painel #atendimento .at-cabecalho-compacto{display:flex;align-items:center;justify-content:space-between;gap:6px 10px;margin:3px 0 5px;flex-wrap:wrap}
body #painel #atendimento .at-navegacao-compacta{gap:8px;align-items:center}
body #painel #atendimento .at-topo,body #painel #atendimento .at-topo h3{margin:0;padding:0}
body #painel #atendimento .at-abas{margin:0;padding:3px;gap:3px}
body #painel #atendimento .at-buscas-compactas{align-items:center;gap:6px;margin:0}
body #painel #atendimento .at-buscas-compactas .at-busca-campo{display:block;position:relative;min-width:0;margin:0;padding:0;font-size:0;line-height:0}
body #painel #atendimento .at-buscas-compactas input{box-sizing:border-box;width:225px!important;height:34px;min-height:34px;padding:6px 9px;margin:0;font-size:.8125rem;line-height:1.25rem;border:1px solid #8b9fb2;border-radius:6px;background:#fff;color:#18374f}
body #painel #atendimento .at-buscas-compactas input::placeholder{color:#526474;opacity:1}
body #painel #atendimento .at-buscas-compactas details{padding:0;margin:0;border:0;background:transparent}
body #painel #atendimento .at-buscas-compactas summary{box-sizing:border-box;min-height:34px;padding:6px 9px;font-size:.75rem;line-height:1.25rem;border:1px solid #27485f;border-radius:6px;background:#334e68;color:#fff}
body #painel #atendimento .at-filtros:has(.at-linha-fila){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;margin:0 0 5px;padding:0}
body #painel #atendimento .at-filtros>.at-linha-fila{grid-column:1;grid-row:1}
body #painel #atendimento .at-filtros>.at-linha-visualizacao{grid-column:2;grid-row:1}
body #painel #atendimento .at-filtros>.at-linha-departamento{grid-column:1/-1;grid-row:2}
body #painel #atendimento .at-filtros .at-filtro-botoes{min-height:0;padding:0;margin:0;gap:6px;align-items:center;grid-template-columns:auto minmax(0,1fr)}
body #painel #atendimento .at-filtro-botoes>strong{min-width:0;padding:0;margin:0;color:#405568;font-size:.6875rem;line-height:1.125rem}
body #painel #atendimento .at-filtro-opcoes{gap:4px;margin:0;padding:0;align-items:center}
body #painel #atendimento .at-filtros .at-filtro-mais{padding:0;margin:0;border:0;background:transparent}
body #painel #atendimento .at-filtro-azul{--topo-cor:#245c89;--topo-ativo:#153c5d}
body #painel #atendimento .at-filtro-verde{--topo-cor:#247052;--topo-ativo:#124d35}
body #painel #atendimento .at-filtro-roxo{--topo-cor:#6941a5;--topo-ativo:#3c1e6e}
body #painel #atendimento :is(.at-filtros .at-filtro-opcoes button,.at-filtros .at-filtro-mais>summary,.at-abas button){box-sizing:border-box;min-height:32px;padding:5px 9px;margin:0;border:1px solid transparent;border-radius:6px;background:var(--topo-cor,#245c89);color:#fff;font-size:.75rem;line-height:1.25rem;font-weight:600;box-shadow:none;white-space:nowrap}
body #painel #atendimento .at-abas button{--topo-cor:#245c89;--topo-ativo:#153c5d}
body #painel #atendimento :is(.at-filtro-opcoes button[aria-pressed="true"],.at-abas button[aria-selected="true"]){background:var(--topo-ativo,#153c5d);border-color:var(--topo-ativo,#153c5d);box-shadow:inset 0 -3px #fff;font-weight:750}
body #painel #atendimento .at-grade{margin-top:6px}
body #painel #atendimento :is(#at-canais-botoes button,.at-fila-abas button){background:#245c89;color:#fff;border-color:#245c89}
body #painel #atendimento :is(#at-canais-botoes button[aria-pressed="true"],.at-fila-abas button[aria-selected="true"]){background:#153c5d;border-color:#153c5d;box-shadow:inset 0 -3px #fff;font-weight:750}
@media(hover:hover){body #painel :is(.mini-agenda-periodo,.at-filtros .at-filtro-opcoes button,.at-filtro-mais>summary,.at-abas button,.lume-tamanho-controles button,.lume-sessao-sair,.lume-sessao-online):not(:disabled):hover{filter:brightness(.87)}}
body #painel :is(.mini-agenda-periodo,.mini-agenda-abrir,.at-filtros button,.at-filtro-mais>summary,.at-abas button,.at-buscas-compactas summary,.lume-tamanho-controles button,.lume-sessao-sair,.lume-sessao-online):focus-visible{outline:3px solid #102e48;outline-offset:2px}
@media(max-width:1150px){
 body #painel #atendimento .at-filtros:has(.at-linha-fila){grid-template-columns:1fr}
 body #painel #atendimento .at-filtros>.at-linha-visualizacao{grid-column:1;grid-row:3}
 body #painel #atendimento .at-buscas-compactas{margin-left:auto}
}
@media(max-width:767.98px){
 body #painel #atendimento .at-navegacao-compacta{max-width:100%;flex-wrap:wrap}
 body #painel #atendimento .at-navegacao-compacta .at-abas{max-width:100%;overflow-x:auto}
 body #painel #atendimento .at-buscas-compactas{width:100%;margin:0;flex-wrap:wrap}
 body #painel #atendimento .at-buscas-compactas .at-busca-campo{flex:1 1 180px}
 body #painel #atendimento .at-buscas-compactas input{width:100%!important}
}
@media(pointer:coarse){body #painel :is(.mini-agenda-periodo,.at-filtros .at-filtro-opcoes button,.at-filtro-mais>summary,.at-abas button,.at-buscas-compactas summary,.lume-tamanho-controles button,.lume-sessao-online,.lume-sessao-sair){min-height:40px}body #painel>.cabecalho .mini-agenda-abrir{min-width:40px!important;width:40px!important;min-height:40px!important;height:40px!important}}
/* Colunas de rótulos alinhadas e cores preservadas sobre regras globais. */
body #painel #atendimento .at-filtros .at-filtro-botoes{grid-template-columns:84px minmax(0,1fr)}
body #painel #atendimento .at-filtros .at-linha-visualizacao{grid-template-columns:auto minmax(0,1fr)}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-online{background:#14633f!important;color:#fff!important}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-online.offline{background:#754015!important}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-sessao-sair{background:#98233c!important;color:#fff!important}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-atualizar-app{background:#174f88!important;color:#fff!important}
@media(max-width:767.98px){body #painel #atendimento .at-filtros .at-filtro-botoes{grid-template-columns:minmax(0,1fr);gap:3px}}
body #painel #atendimento .at-fila-abas button.at-fila-alerta{background:#98233c;border-color:#98233c;color:#fff}
body #painel #atendimento .at-fila-abas button.at-fila-alerta[aria-selected="true"]{background:#70192c;border-color:#70192c}

/* Mensageiro interno inspirado no MSN clássico, com contraste e controles atuais. */
body #chat-interno{background:linear-gradient(145deg,#f5fbff,#dbeaf8);border:1px solid #88a6c9;box-shadow:0 16px 50px #19385633,inset 0 1px #fff;border-radius:12px;color:#193653}
body #chat-interno .chat-janela-barra{background:linear-gradient(#f5fbff 0%,#d7eafa 48%,#b7d5f0 49%,#e4f1fc 100%);padding:6px 8px;border-radius:8px 8px 4px 4px;border-bottom:1px solid #90afd0}
body #chat-interno .chat-janela-barra h3{color:#163c64;font-weight:700;text-shadow:0 1px #fff}
body #chat-interno .chat-contatos{background:linear-gradient(110deg,#eff8ff,#e1edf8);border-right:1px solid #c4d7e9}
body #chat-interno #chat-lista button{background:linear-gradient(#fff,#e7f1fa);color:#214566;border:1px solid #b8cfe2;box-shadow:inset 0 1px #fff}
body #chat-interno #chat-lista button[aria-current="true"],body #chat-interno #chat-lista button.ativo{background:linear-gradient(#387fb5,#205780);color:#fff;border-color:#1c4e76;box-shadow:inset 0 1px #ffffff40}
body #chat-interno #chat-lista button:focus-visible,body #chat-interno :is(button,summary,textarea,select):focus-visible{outline:3px solid #187db5;outline-offset:2px}
body #chat-interno .chat-conversa{background:linear-gradient(#f2f8fe,#fff)}
body #chat-interno .chat-conversa-barra{padding:3px 5px;border-bottom:1px solid #cfdfed}
body #chat-interno #chat-titulo::before{content:'';display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:linear-gradient(#b9e6ff,#3b83b6);border:1px solid #3b719d;box-shadow:0 1px 2px #1c42602b}
body #chat-interno #chat-mensagens{background:linear-gradient(160deg,#f4f9ff,#fff 55%,#edf6ff);border-color:#bfd3e5;box-shadow:inset 0 1px 4px #244d6b0a;border-radius:8px}
body #chat-interno #chat-mensagens .balao{background:#fff;border:1px solid #d3e1ee;border-radius:9px;box-shadow:0 1px 2px #2647640c;padding:5px 9px}
body #chat-interno #chat-mensagens .balao.proprio{background:linear-gradient(135deg,#e5f4ff,#dceefa);border-color:#b3d2e8;border-radius:9px}
body #chat-interno #chat-mensagens .balao.chat-nota-privada{background:#fff1bb;border-color:#dcc477}
body #chat-interno #chat-mensagens .balao.chat-nota-compartilhada{background:#fff6da;border-color:#e3d19b}
body #chat-interno #chat-mensagens .balao.chat-alerta-geral{background:#fff7e5;border:1px solid #d2a653;border-left:3px solid #a86706}
body #chat-interno .chat-alerta-rotulo{display:block;color:#784700;font-size:.6875rem;line-height:1.4;padding-right:22px;margin-bottom:3px}
body #chat-interno .chat-compositor{background:transparent}
body #chat-interno #chat-texto{border:1px solid #9ebbd6;border-radius:8px;background:#fff;box-shadow:inset 0 1px 3px #21496c12;color:#193653}
body #chat-interno #chat-enviar{background:linear-gradient(#387eb5,#215883);color:#fff;border:1px solid #194a72;border-radius:7px}
@media(prefers-reduced-motion:reduce){body #chat-interno *{scroll-behavior:auto!important}}
body #chat-interno #chat-lista button.selecionado{background:linear-gradient(#387fb5,#205780);color:#fff;border-color:#1c4e76;box-shadow:inset 0 1px #ffffff40}
@media(max-width:600px){
 body #chat-interno .chat-grade{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 body #chat-interno .chat-contatos{max-height:118px;border-right:0;border-bottom:1px solid #c4d7e9;display:grid;grid-template-columns:1fr 1fr;gap:4px}
 body #chat-interno .chat-contatos #chat-lista{grid-column:1/-1;display:flex;gap:4px;overflow:auto}
 body #chat-interno #chat-lista button{width:auto;flex-shrink:0;margin:0;max-width:180px}
 body #chat-interno.chat-contatos-recolhidos .chat-grade{grid-template-rows:minmax(0,1fr)}
 body #chat-interno #chat-form .chat-modos{flex:1 0 100%;justify-content:flex-start}
 body #chat-interno .chat-popover{position:fixed;left:12px;right:12px;bottom:70px;width:auto;max-height:50dvh;z-index:30}
 body #chat-interno #chat-chamada-tipo{max-width:135px}
}

/* Seletor combinado de atendentes: nomes próximos, sem a largura de campos de texto nos checkboxes. */
body #painel #atendimento #at-membro-filtro{min-width:170px;max-width:320px}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao{min-width:170px}
body #painel #atendimento #at-membro-filtro summary{display:block;max-width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:4px 8px;width:600px;min-width:0;max-width:calc(100vw - 32px);padding:5px;max-height:min(360px,65dvh)}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label{box-sizing:border-box;display:flex!important;flex-direction:row!important;flex:none;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:26px;margin:0!important;padding:3px 6px!important;font-size:.75rem;line-height:1.125rem;text-align:left;cursor:pointer;border-radius:4px}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label:hover{background:#eef4f8}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label:has(input:checked){background:#e4f0ec;color:#174d3c;font-weight:700}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label>input[type=checkbox]{box-sizing:border-box;flex:0 0 16px;width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;accent-color:#216349}
body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label>span{flex:1;min-width:0;overflow-wrap:anywhere}
@media(pointer:coarse){body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div label{min-height:36px}}

body #painel #atendimento #at-membro-filtro .at-equipe-filtro-titulo{display:block;padding:5px 6px 2px;margin:3px 0 0;border-top:1px solid #dce5eb;font-size:.6875rem;color:#506078}

body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div>label{grid-column:1/-1}
body #painel #atendimento #at-membro-filtro .at-equipe-pessoas{grid-column:1;grid-row:2/4}
body #painel #atendimento #at-membro-filtro .at-equipe-situacoes{grid-column:2;grid-row:2}
body #painel #atendimento #at-membro-filtro .at-equipe-classificacoes{grid-column:2;grid-row:3}
body #painel #atendimento #at-membro-filtro .at-equipe-etapas summary{background:#edf3f7;color:#28485f;min-height:26px;padding:3px 6px;border-color:#c7d5df;font-size:.6875rem}
@media(max-width:640px){body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div{display:flex;flex-direction:column;width:340px}body #painel #atendimento #at-membro-filtro .at-equipe-selecao>div>section{width:100%}}

/* Barra compacta colorida — navegação, busca e filtros sem duplicar controles. */
body main:has(#atendimento:not([hidden]):not(:empty)){padding-top:7px}
body #painel:has(#atendimento:not([hidden]):not(:empty)) .lume-saudacao h2{font-size:1.0625rem;line-height:1.2}
body #painel:has(#atendimento:not([hidden]):not(:empty)) :is(.lume-sessao-online,.lume-sessao-sair,.lume-tamanho-controles button){min-height:26px;padding:3px 6px;font-size:.6875rem;line-height:1.125rem;border-radius:4px}
body #painel>.cabecalho .mini-agenda-periodo{min-height:26px;padding:3px 7px;font-size:.6875rem;line-height:1.125rem;border-radius:4px;background:#7139ab}
body #painel>.cabecalho .mini-agenda-abrir{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:4px!important;border-radius:5px}
body #painel>.cabecalho .mini-agenda-abrir svg{width:19px!important;height:19px!important;min-width:19px}
body #painel #atendimento .at-cabecalho-compacto{gap:5px 8px;margin:2px 0 4px;flex-wrap:nowrap}
body #painel #atendimento .at-navegacao-compacta{gap:6px;min-width:0;display:flex}
body #painel #atendimento .at-topo h3{font-size:1rem;line-height:1.25rem}
body #painel #atendimento .at-abas{gap:2px;padding:2px;border-radius:5px;flex-wrap:wrap}
body #painel #atendimento .at-abas button{min-height:27px;padding:4px 7px;font-size:.75rem;line-height:1.125rem;border-radius:4px;background:#e2edf8;color:#244e79}
body #painel #atendimento .at-abas button[aria-selected=true]{background:#175ca4;color:#fff;border-color:#175ca4;box-shadow:inset 0 -2px #8dd2ff}
body #painel #atendimento .at-buscas-compactas{flex:1 1 220px;max-width:360px}
body #painel #atendimento .at-buscas-compactas .at-busca-campo{width:100%}
body #painel #atendimento .at-buscas-compactas input{width:100%!important;min-height:28px;height:28px;padding:4px 8px;font-size:.75rem;line-height:1.125rem;border-radius:4px}
body #painel #atendimento .at-filtros:has(.at-linha-fila){display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin:0 0 4px}
body #painel #atendimento .at-filtros .at-filtro-botoes{display:block;min-width:0;width:auto;flex:none}
body #painel #atendimento .at-filtros .at-filtro-botoes>strong{display:none}
body #painel #atendimento .at-filtros .at-linha-visualizacao{margin-left:auto;display:flex;align-items:center;gap:5px}
body #painel #atendimento .at-filtros .at-linha-visualizacao>strong{display:block;font-size:.625rem}
body #painel #atendimento .at-filtros #at-membro-filtro{margin:0;min-width:155px;max-width:320px;padding:0}
body #painel #atendimento .at-filtros #at-membro-filtro>.at-equipe-selecao{margin:0;border:0;padding:0}
body #painel #atendimento .at-filtros #at-membro-filtro>.at-equipe-selecao>summary{background:#dff2e9;color:#165d44;border:1px solid #91c8af;border-radius:4px;min-height:27px;padding:4px 8px;font-size:.75rem;line-height:1.125rem}
body #painel #atendimento .at-seletor-compacto{position:relative;margin:0;padding:0;border:0;background:transparent}
body #painel #atendimento .at-seletor-compacto>summary{list-style:none;box-sizing:border-box;min-height:27px;padding:4px 8px;border:1px solid #aac6dd;border-radius:4px;font-size:.75rem;line-height:1.125rem;background:#e2edf8;color:#244e79;cursor:pointer}
body #painel #atendimento .at-seletor-compacto>summary:after{content:' ▾'}
body #painel #atendimento .at-filtro-verde .at-seletor-compacto>summary{background:#dff2e9;color:#165d44;border-color:#91c8af}
body #painel #atendimento .at-seletor-compacto>.at-filtro-opcoes{position:absolute;z-index:40;top:calc(100% + 4px);left:0;display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:7px;width:235px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #b9cbd8;border-radius:6px;box-shadow:0 6px 18px #16364d26}
body #painel #atendimento .at-seletor-compacto .at-filtro-opcoes button{min-height:27px;padding:4px 7px;font-size:.75rem;line-height:1.125rem;text-align:left;border-radius:4px;background:#245c89;color:#fff}
body #painel #atendimento .at-filtro-verde .at-seletor-compacto .at-filtro-opcoes button{background:#247052}
body #painel #atendimento .at-filtros .at-linha-visualizacao button{min-height:27px;padding:4px 7px;font-size:.6875rem;line-height:1.125rem;border-radius:4px;background:#eee4fc;color:#643697;border-color:#d5c1ef}
body #painel #atendimento .at-filtros .at-linha-visualizacao button[aria-pressed=true]{background:#7139ab;color:#fff;border-color:#7139ab;box-shadow:inset 0 -2px #d8baff}
body #painel #atendimento .at-grade{margin-top:3px;gap:5px}
body #painel #atendimento :is(#at-canais-botoes,.at-fila-abas){gap:3px;padding:3px 0;margin:0}
body #painel #atendimento :is(#at-canais-botoes button,.at-fila-abas button){min-height:26px;padding:3px 6px;font-size:.6875rem;line-height:1.125rem;border-radius:4px;background:#e0effa;color:#175b87;border-color:#b9d6e9}
body #painel #atendimento #at-canais-botoes button[aria-pressed=true]{background:#126698;border-color:#126698;color:#fff;box-shadow:inset 0 -2px #6fe1ff}
body #painel #atendimento .at-fila-abas button[aria-selected=true]{background:#177253;border-color:#177253;color:#fff;box-shadow:inset 0 -2px #87efb9}
body #painel #atendimento .at-fila-abas button.at-fila-alerta{background:#98233c;color:#fff;border-color:#98233c}
body #painel #atendimento .at-fila-ferramentas{margin:2px 0;gap:4px}
body #painel #atendimento #at-fila-atualizar{min-height:25px;padding:3px 6px;font-size:.6875rem;line-height:1.125rem}
body #painel #atendimento .at-equipe-etiqueta{font-size:.6875rem;padding:3px 5px;line-height:1.0625rem}
body #painel #atendimento .at-equipe-contagens{gap:3px;margin:3px 0}
body #painel #at-lista .at-resumo-compacto{padding:6px 7px!important;gap:5px!important;border-radius:6px}
body #painel #at-lista .at-resumo-compacto .at-lista-avatar{width:27px!important;height:27px!important;min-width:27px!important;flex-basis:27px!important}
body #painel #at-lista .at-resumo-compacto .at-lista-texto{gap:2px 4px!important}
body #painel #at-lista .at-resumo-compacto .at-card-nome-status{min-height:21px}
body #painel #at-lista .at-resumo-compacto .at-clientes-nomes{font-size:.75rem!important;line-height:1rem!important}
body #painel #at-lista .at-resumo-compacto :is(.at-card-telefone,.at-card-canal,.at-card-etapa){font-size:.6875rem!important;line-height:.9375rem!important}
body #painel #atendimento .at-seletor-compacto>summary:focus-visible{outline:3px solid #102e48;outline-offset:2px}
@media(max-width:1000px){body #painel #atendimento .at-cabecalho-compacto{flex-wrap:wrap}body #painel #atendimento .at-buscas-compactas{max-width:none;margin-left:0}body #painel #atendimento .at-filtros .at-linha-visualizacao{margin-left:0}}
@media(max-width:640px){body #painel #atendimento .at-navegacao-compacta{flex-wrap:wrap;width:100%}body #painel #atendimento .at-filtros #at-membro-filtro{max-width:100%}body #painel #atendimento .at-seletor-compacto>.at-filtro-opcoes{max-width:calc(100vw - 70px)}body #painel #atendimento .at-filtros .at-linha-visualizacao{flex-wrap:wrap}}
@media(pointer:coarse){body #painel #atendimento :is(.at-abas button,.at-seletor-compacto>summary,.at-filtros #at-membro-filtro>.at-equipe-selecao>summary,.at-linha-visualizacao button,#at-canais-botoes button,.at-fila-abas button){min-height:44px;padding:9px 8px}body #painel #atendimento .at-buscas-compactas input{min-height:44px;height:44px;font-size:max(16px,1rem)}body #painel>.cabecalho .mini-agenda-periodo{min-height:40px}body #painel>.cabecalho .mini-agenda-abrir{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}}
body #painel #atendimento .at-filtros>[hidden]{display:none!important}
/* Filas: todos os atalhos cabem na largura da lista e mantêm contraste. */
body #painel #atendimento #at-fila-abas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:3px}
body #painel #atendimento #at-fila-abas[hidden]{display:none!important}
body #painel #atendimento #at-fila-abas button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:0;padding:3px 4px;white-space:normal;line-height:1.0625rem;background:#e0effa;color:#175b87;border-color:#b9d6e9}
body #painel #atendimento #at-fila-abas button[aria-selected=true]{background:#177253;color:#fff;border-color:#177253;box-shadow:inset 0 -2px #87efb9}
body #painel #atendimento #at-fila-abas button.at-fila-alerta{background:#98233c;color:#fff;border-color:#98233c}
body #painel #atendimento #at-fila-abas button.at-fila-alerta[aria-selected=true]{background:#70192c;border-color:#70192c}
body #painel #atendimento #at-fila-abas .at-fila-contagem{margin:0;flex:none}

/* Lote 53: link longo no chat interno quebra dentro do balão em vez de vazar. */
#chat-interno #chat-mensagens .balao p a{overflow-wrap:anywhere;word-break:break-word}
/* Lote 53: imagem do chat interno abre ampliada ao clicar (pop-up), com nova guia e baixar. */
#chat-interno .chat-imagem-abrir{display:block;padding:0;margin:4px 0 2px;border:1px solid #c9d6e2;border-radius:8px;background:#f3f6f9;cursor:zoom-in;max-width:100%;overflow:hidden}
#chat-interno .chat-imagem-abrir:hover,#chat-interno .chat-imagem-abrir:focus-visible{outline:2px solid #1f6feb;outline-offset:1px}
#chat-interno .chat-imagem-abrir img{display:block;margin:0}
#chat-interno .chat-imagem-guia{display:inline-block;font-size:.75rem;margin:0 0 2px}
.chat-imagem-dialog .chat-imagem-acoes{display:flex;gap:18px;flex-wrap:wrap;margin:0}
.chat-imagem-dialog .chat-imagem-acoes a{font-size:.875rem;font-weight:600;color:#0b4f8a}
.chat-imagem-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.chat-imagem-dialog>header h3{margin:0;overflow-wrap:anywhere}
.chat-imagem-dialog::backdrop{background:#0b1620b3}
body #at-lista .at-card-ultimo-atendimento{background:#12306b!important;color:#fff!important;font-weight:700}
@keyframes lote116-piscar{0%,100%{transform:translateY(0);opacity:1}50%{transform:translateY(-3px);opacity:.35}}
body #at-lista .at-alerta-reuniao{border:2px solid #b91c1c!important;background:#fee2e2!important;color:#7f1d1d!important;border-radius:6px!important;padding:0 6px!important;font-weight:800;cursor:pointer;animation:lote116-piscar 1s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){body #at-lista .at-alerta-reuniao{animation:none}}
.reuniao-ata-dialog{width:min(860px,96vw)}.reuniao-ata-dialog textarea{width:100%;min-height:50dvh;font:0.9375rem/1.45 system-ui,sans-serif;padding:0.625rem;border:2px solid #12306b;border-radius:8px;box-sizing:border-box}
.reuniao-ata-faltam{background:#fef08a;border:2px solid #a16207;color:#422006;border-radius:0.5rem;padding:0.5rem 0.75rem;margin:0.5rem 0}.reuniao-ata-faltam ul{margin:4px 0 0 18px}
.reuniao-ata-botoes{display:flex;gap:0.5rem;flex-wrap:wrap;margin-top:0.625rem}.reuniao-ata-status{font-weight:600;color:#12306b;min-height:1.2em}
.reuniao-ata-origem{font-weight:700;color:#7c2d12;margin:0 0 0.25rem}
/* Lote 116 (Nelson, 08/11/2026): rolagem na janela da ata. A janela cabe na tela (notebook pequeno) e rola por inteiro; o texto da ata tem
   barra de rolagem sempre visível; os botões ficam presos embaixo, sem sumir. */
.reuniao-ata-dialog{max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}
.reuniao-ata-dialog textarea{min-height:16rem;height:52dvh;max-height:60dvh;overflow-y:scroll;resize:vertical;scrollbar-gutter:stable}
.reuniao-ata-dialog .reuniao-ata-faltam{max-height:22dvh;overflow-y:auto}
.reuniao-ata-dialog .reuniao-ata-botoes{position:sticky;bottom:0;background:#fff;padding:0.5rem 0;border-top:1px solid #c7d2e0;z-index:1}
.reuniao-ata-dialog::-webkit-scrollbar,.reuniao-ata-dialog textarea::-webkit-scrollbar{width:0.75rem}
.reuniao-ata-dialog::-webkit-scrollbar-thumb,.reuniao-ata-dialog textarea::-webkit-scrollbar-thumb{background:#12306b;border-radius:0.5rem;border:0.1875rem solid #e8eef6}
.reuniao-ata-dialog::-webkit-scrollbar-track,.reuniao-ata-dialog textarea::-webkit-scrollbar-track{background:#e8eef6;border-radius:0.5rem}
