/* CHAT_NOTAS_V1 (01/12/2026): "Responder no WhatsApp" com respostas prontas e notas internas na conversa (aba Chats) */
.chat-reply-wrap{position:relative;display:inline-flex}
.chat-reply-btn{display:inline-flex;align-items:center;gap:0.375rem}
.chat-reply-btn svg{width:0.875rem;height:0.875rem;flex:0 0 auto}
.chat-reply-btn:active,.chat-reply-item:active,.chat-nota-editor button:active{transform:translateY(1px)}
.chat-reply-menu{position:absolute;top:calc(100% + 0.375rem);right:0;z-index:40;width:16.5rem;padding:0.25rem 0;border:1px solid #33405a;border-radius:10px;background:#111827;box-shadow:0 14px 34px rgba(0,0,0,.38)}
.chat-reply-menu[hidden]{display:none}
.chat-reply-head{padding:0.4375rem 0.75rem 0.375rem;color:#8d9ab3;font-size:0.65625rem;font-weight:600;border-bottom:1px solid #222c40}
.chat-reply-item{display:block;width:100%;padding:0.5rem 0.75rem;border:0;border-top:1px solid #1b2436;background:transparent;color:#dce4f4;font:inherit;font-size:0.75rem;font-weight:600;text-align:left;cursor:pointer}
.chat-reply-item:first-of-type{border-top:0}
.chat-reply-item small{display:block;margin-top:0.125rem;color:#8d9ab3;font-size:0.65625rem;font-weight:500}
.chat-reply-item:hover,.chat-reply-item:focus-visible{background:#18223a;outline:none}
.chat-reply-item.nota{color:#e9bb62;border-top:1px solid #2a3550}
/* nota na conversa: logo abaixo do balao do bot, do mesmo lado */
.chat-nota{align-self:flex-end;max-width:min(82%,30rem);margin:0.125rem 0 0.25rem;padding:0.4375rem 0.6875rem;border-left:2px solid #b8892f;border-radius:0;background:rgba(233,187,98,.07);color:#e6cf9c;font-size:0.75rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.chat-nota-meta{display:flex;align-items:center;gap:0.5rem;margin-top:0.25rem;color:#a99566;font-size:0.65625rem}
.chat-nota-meta b{font-weight:700;color:#d9b76d}
.chat-nota-apagar{margin-left:auto;padding:0;border:0;background:none;color:#a99566;font:inherit;font-size:0.65625rem;text-decoration:underline;cursor:pointer}
.chat-nota-apagar:hover{color:#ffcf7a}
/* editor da nota: fica fora da lista de mensagens (a lista e recriada a cada atualizacao) */
.chat-nota-editor{display:flex;flex-direction:column;gap:0.375rem;padding:0.625rem 0.875rem;border-top:1px solid #222c40;background:#0b111c}
.chat-nota-editor[hidden]{display:none}
.chat-nota-editor label{color:#c9b27a;font-size:0.6875rem;font-weight:700}
.chat-nota-editor textarea{min-height:3.5rem;resize:vertical;padding:0.5rem 0.625rem;border:1px solid #33405a;border-radius:8px;background:#0f1726;color:#e7ebf3;font:inherit;font-size:0.8125rem}
.chat-nota-editor textarea:focus{outline:none;border-color:#3461d1}
.chat-nota-editor .linha{display:flex;align-items:center;gap:0.5rem}
.chat-nota-editor .ajuda{color:#8d9ab3;font-size:0.65625rem;margin-right:auto}
.chat-nota-editor .erro{color:#ff969b;font-size:0.6875rem}
.chat-nota-editor .erro:empty{display:none}
body.light-theme .chat-reply-menu{background:#fff;border-color:#d6dce8;box-shadow:0 14px 34px rgba(20,30,50,.14)}
body.light-theme .chat-reply-head{color:#5b6678;border-color:#e6eaf1}
body.light-theme .chat-reply-item{color:#1b2434;border-color:#eef1f6}
body.light-theme .chat-reply-item small{color:#647086}
body.light-theme .chat-reply-item:hover,body.light-theme .chat-reply-item:focus-visible{background:#f1f4fa}
body.light-theme .chat-reply-item.nota{color:#8a5d0f}
body.light-theme .chat-nota{background:#fbf4e4;color:#5c4512;border-left-color:#c79a3e}
body.light-theme .chat-nota-meta,body.light-theme .chat-nota-apagar{color:#86683a}
body.light-theme .chat-nota-meta b{color:#6b4d12}
body.light-theme .chat-nota-editor{background:#f7f8fb;border-color:#e3e7ee}
body.light-theme .chat-nota-editor label{color:#7a5a17}
body.light-theme .chat-nota-editor textarea{background:#fff;border-color:#d6dce8;color:#1b2434}
@media (max-width:640px){.chat-reply-menu{position:fixed;left:0.75rem;right:0.75rem;top:auto;bottom:0.75rem;width:auto}.chat-nota{max-width:92%}}
