:root {
    --bg: #F4F6F6;
    --surface: #FFFFFF;
    --ink: #14232E;
    --muted: #5B6B70;
    --primary: #0F6D66;
    --primary-dark: #0B4F4A;
    --primary-tint: #E4F0EE;
    --accent: #E4572E;
    --accent-tint: #FCE7DE;
    --line: #DCE3E2;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20,35,46,.05), 0 6px 18px rgba(20,35,46,.05);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

/* ---------- Login ---------- */
.tela-login {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}
.cartao-login {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    width: 100%;
    max-width: 360px;
}
.cartao-login h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem; margin: 0 0 2px;
}
.cartao-login .subtitulo { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }

/* ---------- Layout geral do painel ---------- */
.layout-admin { display: flex; flex-wrap: wrap; min-height: 100vh; }

.barra-lateral {
    width: 210px;
    background: var(--primary-dark);
    color: #fff;
    padding: 20px 14px;
    flex-shrink: 0;
}
.barra-lateral .logo { font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
/* só o nome LIGAGENDA, alinhado com a seta ← do mini calendário; o ícone fica alinhado com a seta → */
.barra-lateral .logo-link { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.barra-lateral .logo-link img { width: 118px; max-width: 100%; height: auto; display: block; } /* ícone + nome; o nome fica do tamanho do antigo "Agenda" */
/* ícone: abre a página de agendamento (a mesma do botão "Página do cliente" do calendário) */
.barra-lateral .btn-pagina-cliente { margin-left: auto; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; /* mesmo tamanho das setas de mês do mini calendário */ display: flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255,255,255,.12); border: none; text-decoration: none; }
.barra-lateral .btn-pagina-cliente:hover { background: rgba(255,255,255,.22); }
.barra-lateral .btn-pagina-cliente svg { width: 13px; height: 13px; }
.barra-lateral nav a {
    display: block;
    color: #CFE6E3;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: .875rem;
    margin-bottom: 2px;
}
.barra-lateral nav a:hover, .barra-lateral nav a.ativo { background: rgba(255,255,255,.12); color: #fff; }
.barra-lateral .rodape-lateral { margin-top: auto; padding-top: 20px; font-size: .78rem; color: #9FC4C0; }

.principal { flex: 1; padding: 24px 28px; min-width: 0; }
.cabecalho-pagina { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cabecalho-pagina h1 { font-family: Arial, Helvetica, sans-serif; font-size: 1.4rem; margin: 0; }

.cartao {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* ---------- Formulários / tabelas ---------- */
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.campo input, .campo select, .campo textarea {
    width: 100%; border: 1.5px solid var(--line); border-radius: 8px;
    padding: 9px 10px; font-size: .9rem; font-family: inherit; color: var(--ink);
}
.linha-campos { display: flex; gap: 12px; }
.linha-campos .campo { flex: 1; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 8px; border: none;
    font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-primario { background: var(--primary); color: #fff; }
.btn-primario:hover { background: var(--primary-dark); }
.btn-secundario { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-perigo { background: var(--accent-tint); color: var(--accent); }
.btn-pequeno { padding: 5px 10px; font-size: .78rem; }

table.tabela { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.tabela th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--line); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.tabela td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

.selo {
    display: inline-block; padding: 3px 9px; border-radius: 20px;
    font-size: .72rem; font-weight: 600;
}
.selo-confirmado { background: #E4F0EE; color: #0F6D66; }
.selo-pendente { background: #FBF0D6; color: #8A6A00; }
.selo-cancelado { background: #EEF0F0; color: #5B6B70; }
.selo-concluido { background: #E1F2E7; color: #2F8F5B; }
.selo-faltou { background: var(--accent-tint); color: var(--accent); }

.mensagem-erro { background: var(--accent-tint); color: var(--accent); border-radius: 8px; padding: 9px 12px; font-size: .85rem; margin-bottom: 14px; }
.mensagem-sucesso { background: #E1F2E7; color: #2F8F5B; border-radius: 8px; padding: 9px 12px; font-size: .85rem; margin-bottom: 14px; }

#calendario { max-width: 100%; }

.grade-comparativa {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    font-size: .78rem;
}
.gc-cabecalho {
    background: var(--bg);
    padding: 8px 6px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    position: sticky;
    top: 0;
}
.gc-cabecalho:first-child { border-left: none; }
.gc-eixo-tempo { position: relative; }
.gc-eixo-tempo-repetido { border-left: 1px solid var(--line); }
.gc-marca-hora {
    position: absolute; left: 0; right: 0; padding: 0 6px;
    color: var(--muted); font-size: .7rem; border-top: 1px solid var(--line);
    display: flex; align-items: center; box-sizing: border-box; /* a borda fica no topo da caixa (início do bloco), o texto centralizado dentro da altura da caixa */
}
.gc-coluna-profissional { position: relative; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.gc-linha-ritmo { position: absolute; left: 0; right: 0; border-top: 1px solid #EDEEE9; pointer-events: none; }
.gc-coluna-profissional.fora-horario,
.gc-sombra-bloqueio { background: repeating-linear-gradient(45deg, #F4EFD9, #F4EFD9 6px, #ECE6C9 6px, #ECE6C9 12px); }
.gc-evento {
    position: absolute;
    left: 3px; right: 3px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    box-sizing: border-box;
    border: 2px solid var(--surface);
    font-size: .72rem;
    line-height: 1.25;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
}
.gc-evento .gc-evento-servico { opacity: .85; font-size: .68rem; }
.gc-evento-preparo {
    position: absolute;
    box-sizing: border-box;
    background: repeating-linear-gradient(45deg, #fff, #fff 5px, rgba(15,109,102,.10) 5px, rgba(15,109,102,.10) 10px);
    border-left: 3px solid;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.btn-hamburguer-nav {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0; margin-left: auto;
    border: 1.5px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(255,255,255,.08);
    color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1;
}

@media (max-width: 820px) {
    .layout-admin { flex-direction: column; flex-wrap: nowrap; }
    .barra-lateral { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 16px; }
    .barra-lateral .logo { margin-bottom: 0; flex: 1; min-width: 0; }
    .barra-lateral .logo-link img { width: 118px; }
    .barra-lateral .rodape-lateral { display: none; }
    .btn-hamburguer-nav { display: flex; }

    /* Nav escondido por padrão — só aparece ao clicar no hambúrguer. */
    .barra-lateral nav {
        display: none; flex-direction: column; gap: 2px;
        width: 100%; order: 10;
    }
    .barra-lateral.menu-nav-aberto nav { display: flex; }

    .principal { padding: 16px; }
    .linha-campos { flex-direction: column; gap: 0; }
}

/* ---------- Mini-calendário na barra lateral ---------- */
.mini-cal-lateral { margin-bottom: 18px; }
.mcl-cabecalho {
    display: flex; align-items: center; justify-content: space-between;
    color: #fff; font-size: .78rem; margin-bottom: 6px; text-transform: capitalize;
}
.mcl-cabecalho button {
    background: rgba(255,255,255,.12); border: none; color: #fff;
    width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: .8rem;
}
.mcl-dias-semana {
    display: grid; grid-template-columns: repeat(7, 1fr);
    text-align: center; font-size: .62rem; color: #9FC4C0; margin-bottom: 2px;
}
.mcl-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mcl-dia {
    aspect-ratio: 1; border: none; background: none; color: #CFE6E3;
    font-size: .68rem; border-radius: 4px; cursor: pointer; font-family: inherit;
}
.mcl-dia:hover { background: rgba(255,255,255,.15); }
.mcl-dia.hoje { background: rgba(255,255,255,.25); color: #fff; font-weight: 700; }
.mcl-dia.selecionado:not(.hoje) { background: rgba(255,255,255,.14); color: #fff; }
.mcl-dia.vazio { visibility: hidden; }

@media (max-width: 820px) {
    .mini-cal-lateral { display: none; }
}

/* ---------- Card personalizado dos eventos do FullCalendar ---------- */
.fc-evento-custom { padding: 1px 3px; overflow: hidden; font-size: .78rem; line-height: 1.3; cursor: pointer; min-height: 15px; }
.fc-evento-linha1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.fc-evento-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-evento-tel { font-weight: 500; opacity: .95; font-size: .92em; }
.fc-evento-servico { font-weight: 400; opacity: .85; font-size: .92em; }
.fc-evento-icones { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.fc-evento-seta {
    flex-shrink: 0; background: rgba(255,255,255,.25); border: none; color: #fff;
    border-radius: 4px; width: 16px; height: 16px; line-height: 1; cursor: pointer; font-size: .7rem;
}
.fc-evento-seta:hover { background: rgba(255,255,255,.4); }
.fc-evento-whats {
    flex-shrink: 0; background: rgba(255,255,255,.25); border: none; color: #fff;
    border-radius: 4px; width: 16px; height: 16px; line-height: 1; cursor: pointer; font-size: .68rem;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.fc-evento-whats:hover { background: rgba(255,255,255,.4); }

/* ---------- Menu rápido de status (popup) ---------- */
.menu-status-rapido {
    position: fixed; z-index: 200; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(20,35,46,.18); padding: 4px; min-width: 150px;
}
.menu-status-rapido button {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    border: none; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer;
    font-size: .82rem; font-family: inherit;
}
.menu-status-rapido button:hover { background: var(--bg); }
.menu-status-rapido .bolinha { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.menu-status-cabecalho { padding: 6px 10px 8px; font-size: .78rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* ---------- Explicação curta + "?" (o texto completo abre ao clicar) ----------
   Uso: <div data-ajuda-bloco> <span class="ajuda-resumo">Frase curta <button class="ajuda-btn">?</button></span>
        <span class="ajuda-texto" hidden>texto completo</span> </div>
   O clique é tratado em _barra_lateral.php (todas as páginas do painel). */
[data-ajuda-bloco] .ajuda-resumo { display: inline; }
.ajuda-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; vertical-align: middle; position: relative; top: -1px; /* centro do "?" no meio da linha de texto, em qualquer tamanho de letra */
    border-radius: 50%; border: 1.4px solid #8A97A3; background: #fff; color: #6B7884; font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; padding: 0; line-height: 1; }
.ajuda-btn:hover { border-color: #0F6D66; color: #0F6D66; }
.ajuda-btn[aria-expanded="true"] { background: #0F6D66; border-color: #0F6D66; color: #fff; }
[data-ajuda-bloco] .ajuda-texto { display: block; margin-top: 6px; padding: 9px 11px; background: rgba(15,35,45,.05); border-radius: 8px; font-size: .92em; line-height: 1.5; }
[data-ajuda-bloco] .ajuda-texto[hidden] { display: none; }

/* ---------- Celular: tabelas viram cartões; filtros com largura toda ----------
   Vale pra toda <table class="tabela"> do painel. O nome de cada coluna vai
   em data-rotulo nas células (colocado sozinho pelo script em _barra_lateral.php). */
@media (max-width: 640px) {
    table.tabela, table.tabela tbody, table.tabela tr, table.tabela td { display: block; width: 100%; box-sizing: border-box; }
    table.tabela thead { display: none; }
    table.tabela tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
    /* nome da coluna em cima, valor embaixo — tudo alinhado à esquerda */
    table.tabela td { border: 0; padding: 5px 0; display: block; text-align: left !important; overflow-wrap: anywhere; }
    table.tabela td[data-rotulo]::before { content: attr(data-rotulo); display: block; color: var(--muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1px; }
    table.tabela td:first-child { font-weight: 600; font-size: .95rem; }
    table.tabela td:first-child[data-rotulo]::before { content: none; } /* 1ª coluna (nome/data) já é o título do cartão */
    table.tabela td[data-rotulo=""]::before, table.tabela td:not([data-rotulo])::before { content: none; }
    table.tabela td[data-rotulo=""] { padding-top: 8px; white-space: normal !important; }
    table.tabela td[data-rotulo=""] > *, table.tabela td[data-rotulo=""] form { display: inline-block; margin: 0 6px 4px 0; }
    table.tabela td[colspan] { display: block; text-align: center !important; }

    /* filtros: um campo embaixo do outro, com a largura toda (mesmo com align-items no HTML) */
    .linha-campos { align-items: stretch !important; }
    .linha-campos .campo input, .linha-campos .campo select { width: 100%; box-sizing: border-box; }
    .linha-campos > .btn, .linha-campos > button, .linha-campos .campo > .btn, .linha-campos .campo > button { width: 100%; margin-top: 4px; justify-content: center; text-align: center; }
}


/* ---------- Faixa de cobrança ----------
   .aviso    amarela, com X (lembrete antes de vencer)
   .pendente laranja, fixa (venceu, pagamento pendente)
   .suspensa vermelha, fixa */
.faixa-cobranca { flex: 0 0 100%; width: 100%; box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 7px 44px 7px 16px; font-size: .84rem; line-height: 1.4; text-align: center; border-bottom: 1px solid; }
.faixa-cobranca a { font-weight: 700; text-decoration: underline; white-space: nowrap; color: inherit; }
.faixa-cobranca.aviso { background: #FFF4CC; color: #5C4300; border-bottom-color: #F0D27A; }
.faixa-cobranca.pendente { background: #FFE3C7; color: #7A3A00; border-bottom-color: #F5B680; }
.faixa-cobranca.suspensa { background: #FDE7E5; color: #8A1C14; border-bottom-color: #F3B9B3; }
.faixa-cobranca-fechar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: .95rem; cursor: pointer; }
.faixa-cobranca-fechar:hover { background: rgba(0,0,0,.07); }


/* ---------- Assistente virtual (botão "Ajuda") ---------- */
.assist-botao { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--primary, #0F6D66); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(15,35,45,.22); }
.assist-botao:hover { filter: brightness(1.08); }
.assist-botao.aberto { opacity: .0; pointer-events: none; }
.assist-janela { position: fixed; right: 20px; bottom: 20px; z-index: 901; width: 380px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(15,35,45,.25); overflow: hidden; }
.assist-janela[hidden] { display: none; }
.assist-topo { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; background: var(--primary, #0F6D66); color: #fff; }
.assist-topo strong { flex: 1; font-size: .95rem; }
.assist-ic { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.assist-ic:hover { background: rgba(255,255,255,.15); }
.assist-mensagens { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #F6F8F8; }
.assist-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.assist-dele { align-self: flex-start; background: #fff; border: 1px solid #E3E9EA; color: #1F2A30; border-bottom-left-radius: 4px; }
.assist-eu { align-self: flex-end; background: var(--primary, #0F6D66); color: #fff; border-bottom-right-radius: 4px; }
.assist-erro { color: #8A1C14; background: #FDF1F0; border-color: #F3C9C4; }
.assist-sugestoes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.assist-sugestoes button { border: 1px solid #D5DEE0; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; color: var(--primary, #0F6D66); cursor: pointer; text-align: left; }
.assist-sugestoes button:hover { border-color: var(--primary, #0F6D66); }
.assist-digitando { display: inline-flex; gap: 4px; padding: 12px 14px; }
.assist-digitando span { width: 6px; height: 6px; border-radius: 50%; background: #9AA5AF; animation: assist-pulo 1s infinite ease-in-out; }
.assist-digitando span:nth-child(2) { animation-delay: .15s; } .assist-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-pulo { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.assist-envio { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #E3E9EA; background: #fff; }
.assist-envio textarea { flex: 1; resize: none; border: 1px solid #D5DEE0; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .9rem; max-height: 110px; box-sizing: border-box; }
.assist-envio textarea:focus { outline: none; border-color: var(--primary, #0F6D66); }
.assist-enviar { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--primary, #0F6D66); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.assist-enviar:disabled { opacity: .5; cursor: default; }
.assist-rodape { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 14px 10px; background: #fff; font-size: .74rem; color: #6B7680; }
.assist-rodape a { color: var(--primary, #0F6D66); font-weight: 600; }
/* avisos rápidos das telas sobem um pouco pra não ficarem atrás do botão "Ajuda" */
body.tem-assistente .hr-aviso, body.tem-assistente .lb-salvo, body.tem-assistente .ag-toast { bottom: 80px; }
@media (max-width: 640px) {
    .assist-botao { right: 14px; bottom: 14px; padding: 12px; }
    .assist-botao span { display: none; }
    .assist-janela { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 82vh; max-height: 82vh; border-radius: 16px 16px 0 0; }
}


/* ---------- Vídeo explicativo da página ("▶ Como usar", ao lado do título) ---------- */
.va-botao { display: inline-flex; align-items: center; gap: 6px; margin-left: 20px; padding: 5px 12px 5px 10px; border: 1px solid #CFE3DF; border-radius: 999px; background: #EEF7F5; color: var(--primary, #0F6D66); font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.2; vertical-align: middle; cursor: pointer; white-space: nowrap; position: relative; top: -2px; }
.va-botao:hover { background: #E2F1EE; border-color: #B7D8D2; }
.va-fundo { position: fixed; inset: 0; z-index: 950; background: rgba(15,25,32,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.va-fundo[hidden] { display: none; }
.va-janela { width: 100%; max-width: 860px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.va-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid #E3E9EA; }
.va-topo strong { flex: 1; font-size: .98rem; color: #14212B; }
.va-fechar { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 1rem; color: #46525C; }
.va-fechar:hover { background: #F0F3F4; }
.va-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.va-video iframe, .va-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.va-embreve { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: #5E6B78; font-size: .92rem; }
.va-embreve strong { font-size: 1.05rem; color: #14212B; }
@media (max-width: 640px) {
    .va-botao { margin-left: 14px; padding: 4px 10px 4px 8px; font-size: .74rem; }
    .va-fundo { padding: 0; align-items: center; }
    .va-janela { border-radius: 0; }
}

/* chamados no assistente */
.assist-botao.tem-resposta::after { content: ''; position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #E0453A; border: 2px solid #fff; }
.assist-botao { position: fixed; }
.assist-link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary, #0F6D66); font-weight: 600; cursor: pointer; text-decoration: underline; }
.assist-novo { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px; background: #E0453A; color: #fff; font-size: .68rem; text-align: center; margin-left: 3px; }
.assist-chamado { padding: 10px 12px; border-top: 1px solid #E3E9EA; background: #fff; }
.assist-chamado textarea { width: 100%; box-sizing: border-box; resize: none; border: 1px solid #D5DEE0; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .88rem; }
.assist-chamado textarea:focus { outline: none; border-color: var(--primary, #0F6D66); }
.assist-chamado-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ações do assistente: quadro de confirmação */
.assist-acao { align-self: stretch; background: #fff; border: 1.5px solid var(--primary, #0F6D66); border-radius: 14px; padding: 12px 14px; font-size: .86rem; color: #1F2A30; }
.assist-acao ul { margin: 6px 0 10px; padding-left: 18px; line-height: 1.5; }
.assist-acao.feita { border-color: #9BCDBE; background: #F3FAF7; }
.assist-acao.cancelada, .assist-acao.falhou { border-color: #DDE3E6; background: #F7F9F9; color: #6B7680; }
.assist-acao-botoes { display: flex; gap: 8px; justify-content: flex-end; }
.assist-acao-botoes button { border: 0; border-radius: 10px; padding: 8px 16px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.assist-acao-sim { background: var(--primary, #0F6D66); color: #fff; }
.assist-acao-nao { background: #EEF1F2; color: #46525C; }
.assist-acao-botoes button:disabled { opacity: .55; cursor: default; }
.assist-acao-estado { font-weight: 600; font-size: .82rem; color: var(--primary, #0F6D66); }
.assist-acao.cancelada .assist-acao-estado, .assist-acao.falhou .assist-acao-estado { color: #6B7680; }
.assist-ir { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--primary, #0F6D66); }
.assist-acao li.assist-acao-titulo { list-style: none; margin-left: -18px; color: #46525C; }
