/* Agentes de IA (13/11/2026): escritório em pixel art + fila de aprovação + registro. */
#view-agentes .ag-office-wrap { background: #1f2937; border-radius: 14px; padding: 8px; box-shadow: var(--card-shadow); margin-bottom: 12px; }
#view-agentes .ag-office { border-radius: 10px; overflow: hidden; line-height: 0; image-rendering: pixelated; }
#view-agentes .ag-office svg { width: 100%; height: auto; display: block; }
#view-agentes .ag-mesa { cursor: pointer; }
#view-agentes .ag-mesa.is-off { opacity: .85; }
#view-agentes .ag-mesa.is-off .ag-nome { fill: #4b5563; }
#view-agentes .ag-nome { font: 700 13px/1 'Segoe UI', system-ui, sans-serif; fill: #fff; letter-spacing: .02em; }
#view-agentes .ag-placa { font: 800 11px/1 'Segoe UI', system-ui, sans-serif; fill: #8a6400; letter-spacing: .1em; }
#view-agentes .ag-quadro { font: 900 16px/1 'Segoe UI', system-ui, sans-serif; fill: #fff; letter-spacing: .08em; }
#view-agentes .ag-relogio { font: 700 22px/1 ui-monospace, 'Consolas', monospace; fill: #6fe3a1; }
#view-agentes .ag-balao-txt { font: 900 20px/1 'Segoe UI', system-ui, sans-serif; fill: #1a1f2e; }
#view-agentes .ag-z { font: 800 14px/1 'Segoe UI', system-ui, sans-serif; fill: #6b7280; opacity: 0; animation: ag-z 3s infinite; }
#view-agentes .ag-z2 { animation-delay: .8s; }
#view-agentes .ag-z3 { animation-delay: 1.6s; }
@keyframes ag-z { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
#view-agentes .is-trab .ag-maos rect:first-child { animation: ag-tecla .35s steps(1) infinite; }
#view-agentes .is-trab .ag-maos rect:last-child { animation: ag-tecla .35s steps(1) infinite .17s; }
@keyframes ag-tecla { 50% { transform: translateY(-3px); } }
#view-agentes .is-trab .ag-linhas { animation: ag-linhas 1.2s steps(4) infinite; }
@keyframes ag-linhas { 0% { opacity: .4; } 50% { opacity: 1; } 100% { opacity: .4; } }
#view-agentes .is-trab .ag-boneco { animation: ag-respira 1.4s steps(2) infinite; }
@keyframes ag-respira { 50% { transform: translateY(1px); } }
#view-agentes .ag-pt { animation: ag-pt 1.2s infinite; }
#view-agentes .ag-pt2 { animation-delay: .2s; }
#view-agentes .ag-pt3 { animation-delay: .4s; }
@keyframes ag-pt { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
#view-agentes .is-esp .ag-balao { animation: ag-pula 1s steps(2) infinite; }
@keyframes ag-pula { 50% { transform: translateY(-4px); } }
#view-agentes .ag-nuvem { animation: ag-nuvem 22s linear infinite; }
#view-agentes .ag-nuvem2 { animation-duration: 30s; animation-delay: -10s; }
@keyframes ag-nuvem { 0% { transform: translateX(-20px); } 50% { transform: translateX(30px); } 100% { transform: translateX(-20px); } }
@media (prefers-reduced-motion: reduce) { #view-agentes .ag-office * { animation: none !important; } }

#view-agentes .ag-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
#view-agentes .ag-card { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: #fff;
  border: 1px solid var(--cinza-borda); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
#view-agentes .ag-card.on { border-color: #F2B100; box-shadow: 0 0 0 2px #F2B100 inset; }
#view-agentes .ag-card.off { background: #f8fafc; color: var(--cinza-texto); }
#view-agentes .ag-card-dot { width: 12px; height: 12px; border-radius: 3px; }
#view-agentes .ag-card-txt { display: flex; flex-direction: column; min-width: 0; }
#view-agentes .ag-card-txt b { font-size: 14px; }
#view-agentes .ag-card-txt small { font-size: 12px; color: var(--cinza-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-agentes .ag-card-st { grid-column: 1 / -1; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; justify-self: start; background: #eef2f7; color: #475569; }
#view-agentes .ag-card-st.st-trabalhando { background: var(--verde-light); color: var(--verde-dark); }
#view-agentes .ag-card-st.st-esperando { background: #fff3cd; color: #856404; }
#view-agentes .ag-card-st.st-erro { background: var(--vermelho-light); color: var(--vermelho); }
#view-agentes .ag-card-sub { grid-column: 1 / -1; font-size: 11.5px; color: var(--cinza-texto); min-height: 14px; }

#view-agentes .ag-abas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid var(--cinza-borda); margin-bottom: 12px; }
#view-agentes .ag-aba { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--cinza-texto); cursor: pointer; }
#view-agentes .ag-aba.on { color: var(--verde-dark); border-bottom-color: var(--verde); }
#view-agentes .ag-aba-n { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #F2B100; color: #1a1f2e; font-size: 12px; text-align: center; }
#view-agentes .ag-limpa { margin-left: auto; background: #fff3cd; color: #856404; border: 0; border-radius: 12px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

#view-agentes .ag-item { background: #fff; border: 1px solid var(--cinza-borda); border-left: 5px solid #F2B100; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
#view-agentes .ag-item.st-aprovado, #view-agentes .ag-item.st-executado { border-left-color: var(--verde); }
#view-agentes .ag-item.st-ajustar { border-left-color: #2563eb; }
#view-agentes .ag-item.st-recusado, #view-agentes .ag-item.st-cancelado { border-left-color: #94a3b8; }
#view-agentes .ag-item.st-erro { border-left-color: var(--vermelho); }
#view-agentes .ag-item-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--cinza-texto); }
#view-agentes .ag-tag { color: #fff; font-weight: 700; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; }
#view-agentes .ag-ref { font-weight: 700; color: var(--texto); background: #eef2f7; border-radius: 6px; padding: 1px 6px; text-decoration: none; }
#view-agentes a.ag-ref:hover { text-decoration: underline; }
#view-agentes .ag-item-quando { margin-left: auto; }
#view-agentes .ag-item-tit { font-size: 16px; margin: 8px 0 4px; color: var(--texto); }
#view-agentes .ag-item-resumo { font-size: 14px; color: #334155; line-height: 1.45; }
#view-agentes .ag-valores { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; margin: 10px 0 0; }
#view-agentes .ag-valores div { background: var(--cinza-bg); border-radius: 8px; padding: 6px 10px; }
#view-agentes .ag-valores dt { font-size: 11.5px; color: var(--cinza-texto); }
#view-agentes .ag-valores dd { margin: 0; font-weight: 700; font-size: 14px; }
#view-agentes .ag-bloco-tit { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--verde-dark); text-transform: uppercase; }
#view-agentes .ag-bloco-tit small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--cinza-texto); }
#view-agentes .ag-texto { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; line-height: 1.45; border: 1px solid var(--cinza-borda); border-radius: 8px; padding: 10px; resize: vertical; }
#view-agentes .ag-texto-ro { font-size: 14px; line-height: 1.45; background: var(--cinza-bg); border-radius: 8px; padding: 10px; }
#view-agentes .ag-acoes { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
#view-agentes .ag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#view-agentes .ag-links a { font-size: 13px; }
#view-agentes .ag-obs, #view-agentes .ag-res { margin-top: 10px; font-size: 13px; background: #eef4ff; border-radius: 8px; padding: 8px 10px; }
#view-agentes .ag-res { background: var(--verde-light); }
#view-agentes .ag-item-pe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
#view-agentes .ag-st { font-size: 12.5px; color: var(--cinza-texto); font-weight: 600; }
#view-agentes .ag-botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#view-agentes .ag-ajuste { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
#view-agentes .ag-ajuste textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; line-height: 1.4; border: 1px solid #93c5fd; border-radius: 8px; padding: 8px; }
#view-agentes .ag-alerta { background: var(--vermelho-light); color: var(--vermelho); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }

#view-agentes .ag-log { background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--radius); padding: 6px 14px 12px; }
#view-agentes .ag-log-dia { font-size: 12px; font-weight: 800; color: var(--verde-dark); margin: 12px 0 4px; letter-spacing: .05em; }
#view-agentes .ag-log-l { display: grid; grid-template-columns: 46px auto auto 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 13.5px; }
#view-agentes .ag-log-h { color: var(--cinza-texto); font-variant-numeric: tabular-nums; }
#view-agentes .ag-log-tipo { font-size: 11.5px; font-weight: 700; color: #475569; background: #eef2f7; border-radius: 8px; padding: 1px 7px; }
#view-agentes .ag-log-l.t-erro .ag-log-tipo { background: var(--vermelho-light); color: var(--vermelho); }
#view-agentes .ag-log-l.t-decisao .ag-log-tipo { background: #fff3cd; color: #856404; }
#view-agentes .ag-log-l.t-execucao .ag-log-tipo { background: var(--verde-light); color: var(--verde-dark); }
#view-agentes .ag-log-msg { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  #view-agentes .ag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #view-agentes .ag-cards { grid-template-columns: 1fr; }
  #view-agentes .ag-log-l { grid-template-columns: 42px 1fr; }
  #view-agentes .ag-log-l .ag-tag, #view-agentes .ag-log-l .ag-log-tipo { justify-self: start; }
  #view-agentes .ag-log-msg { grid-column: 1 / -1; }
  #view-agentes .ag-item-quando { margin-left: 0; }
  #view-agentes .ag-botoes .btn { flex: 1; }
}

/* ── Cartão de proposta e de pedido (tela em Next, 16/11/2026: "deixa mais bonito e moderno"). Classes agc-*; as ag-item
   acima seguem para a tela antiga (public/js/agentes.js). As cores ficam em variáveis aqui no #view-agentes: o portal
   ainda não tem tema escuro, e quando tiver basta trocar estas variáveis. ─────────────────────────────────────────── */
#view-agentes {
  --agc-borda: var(--cinza-borda); --agc-fundo: var(--branco); --agc-suave: var(--cinza-bg); --agc-texto: var(--texto);
  --agc-apagado: var(--cinza-texto); --agc-corpo: #334155;
  --agc-balao: #eaf6ef; --agc-balao-borda: #cde8d8;
  --agc-espera-bg: #fff4d6; --agc-espera-tx: #7a5600;
  --agc-fecha-bg: #eef3ff; --agc-fecha-borda: #c9d6fb; --agc-fecha-tx: #1e3a8a;
}
#view-agentes .agc { background: var(--agc-fundo); border: 1px solid var(--agc-borda); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05);
  padding: 18px 20px; margin-bottom: 14px; color: var(--agc-texto); }
#view-agentes .agc-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
#view-agentes .agc-quem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
#view-agentes .agc-pessoa { font-size: 17px; font-weight: 700; line-height: 1.3; }
#view-agentes .agc-loja { font-size: 15px; color: var(--agc-apagado); }
#view-agentes .agc-loja::before { content: '·'; margin-right: 8px; }
#view-agentes .agc-selo { align-self: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--agc-suave);
  color: var(--agc-corpo); border: 1px solid var(--agc-borda); white-space: nowrap; }
#view-agentes .agc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--agc-apagado); }
#view-agentes .agc-ref { font-weight: 600; color: var(--verde-dark); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
#view-agentes a.agc-ref:hover { text-decoration: underline; }
#view-agentes .agc-assunto { margin: 2px 0 0; font-size: 15px; color: var(--agc-corpo); }
#view-agentes .agc-corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { #view-agentes .agc-corpo.duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
#view-agentes .agc-h { font-size: 12.5px; font-weight: 600; color: var(--agc-apagado); margin: 0 0 8px; }
#view-agentes .agc-topicos { margin: 0; padding-left: 18px; max-width: 75ch; font-size: 14px; line-height: 1.55; }
#view-agentes .agc-topicos li + li { margin-top: 4px; }
#view-agentes .agc-topicos li::marker { color: var(--agc-apagado); }
#view-agentes .agc-valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
#view-agentes .agc-valor { display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 1px solid var(--agc-borda); border-radius: 10px; padding: 10px 12px; }
#view-agentes .agc-valor.destaque { border-color: var(--verde-mid); background: var(--verde-light); }
#view-agentes .agc-valor-rot { font-size: 12px; line-height: 1.3; color: var(--agc-apagado); }
#view-agentes .agc-valor-num { font-size: 15px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#view-agentes .agc-valor-num.curto { font-size: 18px; white-space: nowrap; overflow-wrap: normal; }
#view-agentes .agc-valor-conta, #view-agentes .agc-valor-nota { font-size: 12px; line-height: 1.35; color: var(--agc-apagado); font-variant-numeric: tabular-nums; }
#view-agentes .agc-bloco + .agc-bloco { margin-top: 18px; }
#view-agentes .agc-msg-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
#view-agentes .agc-msg-cab .agc-h { margin: 0; }
#view-agentes .agc-editar { background: none; border: 0; padding: 2px 8px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--verde-dark); cursor: pointer; }
#view-agentes .agc-editar:hover { background: var(--verde-light); }
#view-agentes .agc-balao { display: block; width: 100%; box-sizing: border-box; background: var(--agc-balao); border: 1px solid var(--agc-balao-borda);
  border-radius: 16px 16px 4px 16px; padding: 12px 14px; font-family: inherit; font-size: 14px; line-height: 1.55; color: var(--agc-texto);
  white-space: pre-line; overflow-wrap: anywhere; }
#view-agentes textarea.agc-balao { white-space: pre-wrap; resize: none; field-sizing: content; min-height: 120px; outline: none; background: var(--agc-fundo);
  border-color: var(--verde-mid); box-shadow: 0 0 0 3px rgba(46,168,102,.15); }
#view-agentes .agc-balao-pe { margin-top: 4px; font-size: 11.5px; color: var(--agc-apagado); text-align: right; }
#view-agentes .agc-resol { background: var(--agc-fecha-bg); border: 1px solid var(--agc-fecha-borda); border-radius: 10px; padding: 10px 12px; }
#view-agentes .agc-resol .agc-h { color: var(--agc-fecha-tx); }
#view-agentes .agc-resol-tx { display: block; width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13.5px; line-height: 1.5; white-space: pre-line;
  overflow-wrap: anywhere; color: var(--agc-texto); }
#view-agentes textarea.agc-resol-tx { white-space: pre-wrap; resize: none; field-sizing: content; min-height: 60px; background: var(--agc-fundo);
  border: 1px solid var(--agc-fecha-borda); border-radius: 8px; padding: 8px 10px; outline: none; }
#view-agentes .agc-acoes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#view-agentes .agc-acoes li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13.5px; line-height: 1.45; color: var(--agc-corpo); }
#view-agentes .agc-acoes svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--agc-apagado); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
#view-agentes .agc-acoes li.fechar { background: var(--agc-fecha-bg); color: var(--agc-fecha-tx); font-weight: 600; border-radius: 8px; padding: 6px 8px; }
#view-agentes .agc-acoes li.fechar svg { stroke: var(--agc-fecha-tx); }
#view-agentes .agc-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
#view-agentes .agc-nota { margin-top: 14px; font-size: 13px; line-height: 1.45; background: #eef4ff; border-radius: 10px; padding: 8px 12px; white-space: pre-line; }
#view-agentes .agc-nota.res { background: var(--verde-light); }
#view-agentes .agc-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--agc-borda); }
#view-agentes .agc-st { font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 3px 10px; border-radius: 999px; background: var(--agc-suave); color: #475569; }
#view-agentes .agc-st.st-pendente, #view-agentes .agc-st.t-espera { background: var(--agc-espera-bg); color: var(--agc-espera-tx); }
#view-agentes .agc-st.st-aprovado, #view-agentes .agc-st.st-executado, #view-agentes .agc-st.t-ok { background: var(--verde-light); color: var(--verde-dark); }
#view-agentes .agc-st.st-ajustar, #view-agentes .agc-st.t-trab { background: #eef4ff; color: #1e40af; }
#view-agentes .agc-st.st-erro, #view-agentes .agc-st.t-erro { background: var(--vermelho-light); color: var(--vermelho); }
#view-agentes .agc-botoes { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#view-agentes .agc-ajuste { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
#view-agentes .agc-ajuste textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; line-height: 1.45; border: 1px solid #93c5fd;
  border-radius: 10px; padding: 8px 10px; }
/* Decididos: uma linha por item, que abre o cartão */
#view-agentes .agc-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%;
  background: var(--agc-fundo); border: 1px solid var(--agc-borda); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
#view-agentes .agc-linha:hover { border-color: var(--verde-mid); }
#view-agentes .agc-linha-tit { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-agentes .agc-linha-meta { font-size: 12px; color: var(--agc-apagado); white-space: nowrap; }
#view-agentes .agc-fechar-linha { float: right; margin-top: -2px; background: none; border: 0; font: inherit; font-size: 12.5px; color: var(--agc-apagado); cursor: pointer; }
/* Pedidos: a pergunta do David e a resposta do agente */
#view-agentes .agc-pergunta { margin-top: 12px; background: var(--agc-suave); border: 1px solid var(--agc-borda); border-radius: 16px 16px 16px 4px;
  padding: 12px 14px; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; max-width: 80ch; }
#view-agentes .agc-resposta { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 80ch; }
/* texto só de leitura das propostas que não vão para chamado (ex.: lote de novatos) */
#view-agentes .agc-lido { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 80ch; }
#view-agentes .agc-resposta p, #view-agentes .agc-lido p { margin: 0 0 10px; }
#view-agentes .agc-resposta ul, #view-agentes .agc-resposta ol, #view-agentes .agc-lido ul, #view-agentes .agc-lido ol { margin: 0 0 10px; padding-left: 20px; }
#view-agentes .agc-resposta li + li, #view-agentes .agc-lido li + li { margin-top: 3px; }
#view-agentes .agc-cit { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--agc-borda); background: var(--agc-suave);
  border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--agc-corpo); overflow-wrap: anywhere; }
#view-agentes .agc-espera { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--agc-apagado); }
#view-agentes .agc-pontos { display: inline-flex; gap: 4px; }
#view-agentes .agc-pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--verde-mid); animation: agc-pisca 1.2s infinite ease-in-out; }
#view-agentes .agc-pontos i:nth-child(2) { animation-delay: .2s; }
#view-agentes .agc-pontos i:nth-child(3) { animation-delay: .4s; }
@keyframes agc-pisca { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #view-agentes .agc-pontos i { animation: none; opacity: .6; } }
/* "Pedir ao agente", embaixo do cartão do agente */
#view-agentes .ag-pedir { display: flex; flex-direction: column; gap: 6px; background: var(--agc-fundo); border: 1px solid var(--agc-borda); border-radius: var(--radius); padding: 8px 10px; }
#view-agentes .ag-pedir textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13.5px; line-height: 1.45; color: var(--agc-texto);
  border: 1px solid var(--agc-borda); border-radius: 8px; padding: 7px 9px; resize: none; field-sizing: content; min-height: 38px; max-height: 240px; }
#view-agentes .ag-pedir textarea:focus { outline: none; border-color: var(--verde-mid); box-shadow: 0 0 0 3px rgba(46,168,102,.15); }
#view-agentes .ag-pedir-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; font-size: 12px; color: var(--agc-apagado); }
#view-agentes .ag-pedir-pe a { color: var(--verde-dark); font-weight: 600; }
#view-agentes .ag-pedir-ok { font-size: 12.5px; color: var(--verde-dark); }
@media (max-width: 560px) {
  #view-agentes .agc { padding: 14px; border-radius: 12px; }
  #view-agentes .agc-meta { width: 100%; }
  #view-agentes .agc-botoes { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: 8px; margin-left: 0; }
  #view-agentes .agc-botoes .btn, #view-agentes .agc-botoes .btn-link { width: 100%; justify-content: center; text-align: center; }
  #view-agentes .agc-botoes .btn-link { padding: 8px 0; }
  #view-agentes .agc-linha { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #view-agentes .agc-linha .agc-st { justify-self: start; }
}

/* ── Lote de novatos no cartão (tipo "novatos_lote", 16/11/2026): tabela por pessoa, que vira cartões no celular ─────── */
#view-agentes .agl { margin-top: 18px; }
#view-agentes .agl-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
#view-agentes .agl-cab .agc-h { margin: 0; }
#view-agentes .agl-rolagem { overflow-x: auto; border: 1px solid var(--agc-borda); border-radius: 10px; }
#view-agentes .agl-tab { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
#view-agentes .agl-tab th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--agc-apagado); background: var(--agc-suave); padding: 8px 10px;
  border-bottom: 1px solid var(--agc-borda); white-space: nowrap; }
#view-agentes .agl-tab td { padding: 9px 10px; border-bottom: 1px solid var(--agc-borda); vertical-align: top; }
#view-agentes .agl-tab tbody tr:last-child td { border-bottom: 0; }
#view-agentes .agl-tab .num { text-align: right; white-space: nowrap; }
#view-agentes .agl-tab th:nth-child(n+3):nth-child(-n+6) { text-align: right; }
#view-agentes .agl-tab td small { display: block; font-size: 11.5px; color: var(--agc-apagado); white-space: normal; }
#view-agentes .agl-tab td small.agl-obs { color: var(--agc-espera-tx); }
#view-agentes .agl-tab td.num small { white-space: nowrap; }
#view-agentes .agl-tab tr.fora td { background: #fcfcfd; }
#view-agentes .agl-tab tfoot td { background: var(--agc-suave); border-top: 1px solid var(--agc-borda); border-bottom: 0; }
#view-agentes .agl-selos { display: flex; flex-wrap: wrap; gap: 4px; }
#view-agentes .agl-selo { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--agc-suave); border: 1px solid var(--agc-borda); color: var(--agc-corpo); white-space: nowrap; }
#view-agentes .agl-selo.pessoal { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }
#view-agentes .agl-novo { display: inline-block; margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--verde-light); color: var(--verde-dark); }
#view-agentes .agl-nada { color: var(--agc-apagado); }
#view-agentes .agl-pend, #view-agentes .agl-avisos { margin-top: 14px; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
#view-agentes .agl-pend { background: var(--agc-espera-bg); }
#view-agentes .agl-pend .agc-h { color: var(--agc-espera-tx); }
#view-agentes .agl-avisos { background: var(--agc-suave); }
#view-agentes .agl-pend ul, #view-agentes .agl-avisos ul { margin: 0; padding-left: 18px; }
#view-agentes .agl-det { margin-top: 12px; border: 1px solid var(--agc-borda); border-radius: 10px; padding: 8px 12px; }
#view-agentes .agl-det summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--verde-dark); }
#view-agentes .agl-det[open] summary { margin-bottom: 8px; }
#view-agentes .agl-email { font-size: 13.5px; line-height: 1.55; white-space: normal; background: var(--agc-suave); border-radius: 8px; padding: 10px 12px; }
@media (max-width: 700px) {
  #view-agentes .agl-rolagem { border: 0; overflow: visible; }
  #view-agentes .agl-tab thead { display: none; }
  #view-agentes .agl-tab, #view-agentes .agl-tab tbody, #view-agentes .agl-tab tfoot, #view-agentes .agl-tab tr, #view-agentes .agl-tab td { display: block; width: 100%; box-sizing: border-box; }
  #view-agentes .agl-tab tr { border: 1px solid var(--agc-borda); border-radius: 10px; margin-bottom: 8px; padding: 6px 0; }
  #view-agentes .agl-tab td { border: 0; padding: 4px 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; text-align: left; }
  #view-agentes .agl-tab td.num { text-align: left; white-space: normal; }
  #view-agentes .agl-tab td::before { content: attr(data-rot); font-size: 11.5px; color: var(--agc-apagado); }
  #view-agentes .agl-tab td[data-rot="Pessoa"], #view-agentes .agl-tab td[data-rot="Total"] { display: block; padding-top: 6px; }
  #view-agentes .agl-tab td[data-rot="Pessoa"]::before, #view-agentes .agl-tab td[data-rot="Total"]::before { content: none; }
  #view-agentes .agl-tab td.agl-vazio { display: none; }
  #view-agentes .agl-tab tfoot tr { background: var(--agc-suave); }
}
/* Anexos (prints que o agente cita): miniaturas e a janela grande (16/11/2026) */
#view-agentes .ag-anx { margin-top: 16px; }
#view-agentes .ag-anx-grade { display: flex; flex-wrap: wrap; gap: 10px; }
#view-agentes .ag-anx-mini { width: 132px; height: 96px; padding: 0; border: 1px solid var(--agc-borda); border-radius: 10px; overflow: hidden;
  background: var(--agc-suave); cursor: zoom-in; }
#view-agentes .ag-anx-mini:hover, #view-agentes .ag-anx-mini:focus-visible { border-color: var(--verde-mid); box-shadow: 0 0 0 3px var(--verde-light); }
#view-agentes .ag-anx-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
#view-agentes .ag-anx-pdf { width: 132px; height: 96px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 8px 10px; border: 1px solid var(--agc-borda); border-radius: 10px; background: var(--agc-suave); color: inherit; text-decoration: none; font-size: 12px; }
#view-agentes .ag-anx-pdf b { color: var(--vermelho); font-size: 13px; }
#view-agentes .ag-anx-pdf span, #view-agentes .ag-anx-fora { overflow-wrap: anywhere; line-height: 1.3; }
#view-agentes .ag-anx-fora { font-size: 12px; color: var(--agc-apagado); padding: 6px 10px; border: 1px dashed var(--agc-borda); border-radius: 10px; align-self: center; }
#view-agentes .ag-anx-dlg { margin: auto; padding: 0; border: 0; border-radius: 12px; background: #0f172a; color: #fff; max-width: min(96vw, 1400px);
  max-height: 94vh; overflow: hidden; }
#view-agentes .ag-anx-dlg::backdrop { background: rgb(15 23 42 / 0.75); }
#view-agentes .ag-anx-dlg img { display: block; max-width: min(96vw, 1400px); max-height: calc(94vh - 44px); object-fit: contain; margin: 0 auto; }
#view-agentes .ag-anx-barra { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 8px 0 14px; font-size: 13px; }
#view-agentes .ag-anx-barra span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-agentes .ag-anx-barra a { color: #bbf7d0; white-space: nowrap; }
#view-agentes .ag-anx-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; width: 36px; height: 36px; cursor: pointer; border-radius: 8px; }
#view-agentes .ag-anx-x:hover, #view-agentes .ag-anx-seta:hover { background: rgb(255 255 255 / 0.12); }
#view-agentes .ag-anx-seta { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px;
  background: rgb(15 23 42 / 0.55); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
#view-agentes .ag-anx-seta.esq { left: 6px; }
#view-agentes .ag-anx-seta.dir { right: 6px; }
@media (max-width: 560px) {
  #view-agentes .ag-anx-mini, #view-agentes .ag-anx-pdf { width: calc(50% - 5px); }
  #view-agentes .ag-anx-barra a { display: none; }
}
/* Desmarcar ações antes de aprovar e o bloco "Para você" (16/11/2026) */
#view-agentes .agc-marca { display: flex; gap: 8px; align-items: flex-start; width: 100%; cursor: pointer; }
#view-agentes .agc-marca input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--verde-dark); cursor: pointer; }
#view-agentes .agc-acoes li.pulada span { text-decoration: line-through; color: var(--agc-apagado); }
#view-agentes .agc-acoes li.pulada svg { opacity: 0.45; }
#view-agentes .agc-acoes li.fechar.pulada { background: var(--agc-suave); color: var(--agc-apagado); font-weight: 400; }
#view-agentes .agc-pulada { flex: none; margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--agc-apagado);
  background: var(--agc-suave); border-radius: 999px; padding: 1px 8px; }
#view-agentes .agc-desm { margin-top: 8px; font-size: 12.5px; color: var(--agc-apagado); }
#view-agentes .agc-desm.todas { color: var(--vermelho); font-weight: 600; }
#view-agentes .agc-resol.pulada { opacity: 0.55; }
#view-agentes .agc-voce { background: var(--agc-espera-bg); border-radius: 12px; padding: 10px 12px 12px; }
#view-agentes .agc-voce .agc-h { display: flex; align-items: center; gap: 6px; color: var(--agc-espera-tx); }
#view-agentes .agc-voce .agc-h svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#view-agentes .agc-voce ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#view-agentes .agc-voce li { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13.5px; line-height: 1.45;
  color: var(--agc-corpo); overflow-wrap: anywhere; }
#view-agentes .agc-voce li a { flex: none; font-size: 13px; font-weight: 600; color: var(--verde-dark); background: #fff; border: 1px solid var(--agc-borda);
  border-radius: 8px; padding: 4px 10px; text-decoration: none; white-space: nowrap; }
#view-agentes .agc-voce li a:hover { border-color: var(--verde-mid); }
@media (max-width: 560px) { #view-agentes .agc-voce li { flex-wrap: wrap; } }
