/* Tela "Atendimento" (multiatendimento no visual do WhatsApp Web escuro).
   Mesmo visual do protótipo aprovado (fonte Inter, chips, pílulas, painel do cliente).
   Tudo dentro de #view-atendimento e com prefixo at- pra não colidir com o style.css. */
#view-atendimento {
  --at-lista: #161717; --at-chat: #161717; --at-hover: #2e2f2f; --at-campo: #2e2f2f;
  --at-in: #242626; --at-out: #144d37; --at-nota: #3d3416; --at-notaB: #6b5a1f;
  --at-verde: #21c063; --at-verdeT: #25d366; --at-chipOn: #103529; --at-chipOnT: #d9fdd3;
  --at-t: #e9edef; --at-t2: #8696a0; --at-t3: #667781;
  --at-lua: #c4a6ff; --at-eq: #53bdeb; --at-bad: #f15c6d; --at-warn: #ffbc2d;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--at-lista); color: var(--at-t); font-size: 14.2px;
  flex: 1; min-height: 0; height: 100%; overflow: hidden; position: relative;
}
#view-atendimento * { box-sizing: border-box; }
#view-atendimento button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; margin: 0; }
#view-atendimento input, #view-atendimento textarea, #view-atendimento select { font: inherit; color: inherit; }
#view-atendimento ::-webkit-scrollbar { width: 6px; height: 6px; }
#view-atendimento ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
#view-atendimento ::-webkit-scrollbar-track { background: transparent; }

.at-app { display: grid; grid-template-columns: 400px minmax(0,1fr) auto; height: 100%; }

/* coluna da lista */
.at-col-lista { background: var(--at-lista); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #ffffff0f; }
.at-lh { display: flex; align-items: center; padding: 14px 16px 8px 20px; gap: 8px; flex-shrink: 0; }
.at-lh h1 { font-size: 22px; font-weight: 700; flex: 1; margin: 0; color: var(--at-t); }
.at-ham { display: none !important; }
.at-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--at-t2); font-size: 18px; flex-shrink: 0; }
.at-ic:hover { background: var(--at-hover) !important; color: var(--at-t); }
.at-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: var(--at-campo); border-radius: 999px; padding: 5px 10px; position: relative; cursor: pointer; }
.at-status .at-d { width: 8px; height: 8px; border-radius: 50%; background: var(--at-verde); }
.at-status select { background: transparent; border: 0; outline: 0; cursor: pointer; color: var(--at-t); padding: 0; }
.at-status select option { background: #2e2f2f; }
.at-busca { margin: 4px 16px 8px; position: relative; flex-shrink: 0; }
.at-busca input { width: 100%; background: var(--at-campo); border: 0; border-radius: 999px; padding: 9px 14px 9px 44px; outline: 0; font-size: 14px; }
.at-busca input::placeholder { color: var(--at-t2); }
.at-busca::before { content: '⌕'; position: absolute; left: 16px; top: 4px; color: var(--at-t2); font-size: 18px; }
.at-chips { display: flex; gap: 6px; padding: 4px 16px 10px; flex-wrap: wrap; flex-shrink: 0; }
.at-chip { flex-shrink: 0; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-size: 13.5px; color: var(--at-t2) !important; border: 1px solid #ffffff26 !important; display: inline-flex; align-items: center; gap: 6px; }
.at-chip:hover { background: var(--at-hover) !important; }
.at-chip.on { background: var(--at-chipOn) !important; color: var(--at-chipOnT) !important; border-color: transparent !important; }
.at-chip .at-n { font-size: 11.5px; font-weight: 700; }
.at-chip .at-n.bad { background: var(--at-bad); color: #fff; border-radius: 999px; padding: 0 6px; }
.at-chip.setor { position: relative; padding-right: 26px; }
.at-chip.setor::after { content: '▾'; position: absolute; right: 10px; top: 5px; font-size: 12px; }

.at-lista { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; }
.at-item { display: flex; align-items: center; gap: 13px; padding: 0 12px 0 14px; height: 88px; cursor: pointer; border-radius: 10px; margin: 0 8px; }
.at-item:hover { background: var(--at-hover); }
.at-item.on { background: var(--at-hover); }
.at-av { width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; flex-shrink: 0; font-size: 18px; color: #fff; }
.at-av.s { width: 40px; height: 40px; font-size: 15px; }
.at-item .at-meio { flex: 1; min-width: 0; padding: 10px 0; border-bottom: 1px solid #ffffff0d; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.at-item:hover .at-meio, .at-item.on .at-meio { border-color: transparent; }
.at-l1, .at-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.at-l3 { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 4px; overflow: hidden; white-space: nowrap; }
.at-l3:empty { display: none; }
.at-l3 .at-etq.romp, .at-l3 .at-etq.bl { flex-shrink: 0; }
.at-l3 .at-etq { margin-right: 0; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.at-nome { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.at-hora { font-size: 12px; color: var(--at-t2); flex-shrink: 0; }
.at-hora.verde { color: var(--at-verdeT); }
.at-hora.warn { color: var(--at-warn); font-weight: 600; } .at-hora.bad { color: var(--at-bad); font-weight: 600; }
.at-prev { font-size: 14px; color: var(--at-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-top: 2px; }
.at-etq { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; background: #ffffff14; color: var(--at-t2); }
.at-etq.comercial { background: #25d36622; color: #4fe08a; } .at-etq.suporte { background: #53bdeb22; color: #6fcbf2; }
.at-etq.financeiro { background: #c4a6ff22; color: #cdb4ff; } .at-etq.dono { background: #ffbc2d1f; color: #ffd27a; }
.at-badge { background: var(--at-verdeT); color: #0b141a; font-size: 12px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0; }
.at-vazio { padding: 50px 30px; text-align: center; color: var(--at-t2); font-size: 14px; }
.at-metricas { padding: 10px 16px 11px; border-top: 1px solid #ffffff0f; flex-shrink: 0; }
.at-mlin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--at-t2); }
.at-mitem { cursor: pointer; user-select: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.at-mitem:hover { color: var(--at-t); }
.at-mitem b { color: var(--at-t); font-weight: 600; margin-right: 4px; }
.at-mitem.tot b { color: var(--at-verdeT); font-size: 15px; }
.at-mitem.on { color: var(--at-t); border-bottom-color: var(--at-verdeT); }
.at-mtempo { font-size: 11.5px; color: var(--at-t3); margin-top: 5px; }
.at-mtempo b { color: var(--at-t2); font-weight: 600; }

/* menu flutuante (fica no body) */
.at-menu { position: fixed; background: #233138; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.5); padding: 6px 0; z-index: 9000; min-width: 210px; display: none; color: #e9edef; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
.at-menu.on { display: block; }
.at-menu button { display: flex; width: 100%; padding: 9px 18px; font-size: 14px; justify-content: space-between; gap: 14px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font-family: inherit; }
.at-menu button:hover { background: #ffffff10; }
.at-menu button.on { color: #25d366; }
.at-menu button small { color: #8696a0; }
.at-menu .at-reac-lin { display: flex; gap: 2px; padding: 4px 8px 6px; border-bottom: 1px solid #ffffff14; margin-bottom: 4px; }
.at-menu .at-reac-lin button { width: 38px; height: 38px; padding: 0; justify-content: center; align-items: center; font-size: 22px; border-radius: 50%; }
.at-menu .at-reac-lin button:hover { background: #ffffff14; transform: scale(1.12); }
.at-menu .at-reac-lin button.on { background: #ffffff24; }
.at-menu .at-emojis { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 6px 8px; }
.at-menu .at-emojis button { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 20px; border-radius: 6px; }

/* conversa */
.at-col-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; background: var(--at-chat); }
.at-ch { display: flex; align-items: center; gap: 13px; padding: 10px 16px; height: 64px; background: var(--at-chat); border-bottom: 1px solid #ffffff0f; flex-shrink: 0; }
.at-ch .at-info { flex: 1; min-width: 0; cursor: pointer; }
.at-ch .at-nome { font-size: 16px; font-weight: 500; display: block; }
.at-ch .at-sub { font-size: 13px; color: var(--at-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.at-acoes { display: flex; gap: 8px; flex-shrink: 0; }
.at-pb { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff2e !important; font-size: 14px; white-space: nowrap; }
.at-pb:hover { background: var(--at-hover) !important; }
.at-pb.verde { background: var(--at-verde) !important; border-color: var(--at-verde) !important; color: #0b141a !important; font-weight: 600; }
.at-pb.verde:hover { background: #1daa57 !important; }
.at-pb.lua { border-color: #c4a6ff66 !important; color: var(--at-lua) !important; }
.at-voltar { display: none !important; }

.at-msgs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 7% 12px; display: flex; flex-direction: column;
  background-color: var(--at-chat);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.035' stroke-width='1.4'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Cpath d='M70 14l8 8-8 8-8-8z'/%3E%3Cpath d='M100 60c6 0 10 4 10 10s-4 10-10 10'/%3E%3Crect x='14' y='70' width='16' height='12' rx='3'/%3E%3Cpath d='M56 92l6-10 6 10z'/%3E%3Cpath d='M40 44h14M47 37v14'/%3E%3C/g%3E%3C/svg%3E"); }
.at-msgs > * { flex-shrink: 0; }
.at-data { align-self: center; background: #1d1f1f; color: var(--at-t2); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; margin: 10px 0 8px; box-shadow: 0 1px .5px rgba(0,0,0,.13); text-transform: uppercase; }
.at-ev { align-self: center; background: #1d1f1f; color: var(--at-t2); font-size: 12.5px; padding: 6px 12px; border-radius: 8px; margin: 6px 0; max-width: 75%; text-align: center; }
.at-ev b { color: var(--at-t); font-weight: 600; }
.at-b { max-width: 65%; padding: 6px 8px 8px 9px; border-radius: 8px; font-size: 14.2px; line-height: 19px; position: relative; margin-top: 2px; box-shadow: 0 1px .5px rgba(0,0,0,.13); overflow-wrap: anywhere; white-space: pre-wrap; }
.at-b.prim { margin-top: 10px; }
.at-b.in { align-self: flex-start; background: var(--at-in); }
.at-b.out { align-self: flex-end; background: var(--at-out); }
.at-b.in.prim { border-top-left-radius: 0; }
.at-b.out.prim { border-top-right-radius: 0; }
.at-b.in.prim::before { content: ''; position: absolute; left: -8px; top: 0; border-right: 8px solid var(--at-in); border-bottom: 10px solid transparent; }
.at-b.out.prim::before { content: ''; position: absolute; right: -8px; top: 0; border-left: 8px solid var(--at-out); border-bottom: 10px solid transparent; }
.at-who { font-size: 12.8px; font-weight: 600; margin-bottom: 2px; white-space: normal; }
.at-who.lua { color: var(--at-lua); } .at-who.eq { color: var(--at-eq); }
.at-meta { float: right; font-size: 11px; color: #ffffff99; margin: 8px 0 -5px 10px; white-space: nowrap; }
.at-meta .at-ck { color: #ffffff99; margin-left: 3px; font-size: 12px; letter-spacing: -3px; }
.at-meta .at-ck.lida { color: #53bdeb; }
.at-meta .at-ck.um { letter-spacing: 0; }
.at-meta .at-ck.pend { letter-spacing: 0; font-size: 10px; }
.at-meta .at-ck.erro { color: #f15c6d; letter-spacing: 0; font-weight: 700; }
.at-b.nota { align-self: center; background: var(--at-nota); border: 1px solid var(--at-notaB); max-width: 75%; }
.at-b.nota .at-who { color: var(--at-warn); }
.at-b a { color: #53bdeb; }
.at-sist { color: var(--at-t2); font-style: italic; }
/* áudio no jeito do WhatsApp */
.at-aud { display: flex; align-items: center; gap: 8px; width: 330px; max-width: 100%; padding: 4px 2px 14px 0; position: relative; white-space: normal; }
.at-aud-esq { position: relative; width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; }
.at-aud-esq .at-av { width: 52px; height: 52px; font-size: 18px; }
.at-aud-esq .at-logo { object-fit: cover; background: #0a1e2e; }
.at-aud-mic { position: absolute; left: -4px; bottom: -2px; color: #8696a0; display: grid; place-items: center; }
.at-b.in .at-aud-mic { color: #25d366; }
.at-vel { display: none; position: absolute; inset: auto; background: #0b141acc !important; color: #fff !important; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 5px 10px; }
.at-aud.tocando .at-aud-esq .at-av, .at-aud.tocando .at-aud-mic { display: none; }
.at-aud.tocando .at-vel { display: block; }
.at-aud .at-pl { width: 34px; height: 34px; display: grid; place-items: center; color: #d1d7db; flex-shrink: 0; }
.at-onda { flex: 1; height: 32px; position: relative; cursor: pointer; display: flex; align-items: center; }
.at-onda-b { display: flex; align-items: center; gap: 2px; width: 100%; height: 26px; }
.at-onda-b i { flex: 1; min-width: 2px; border-radius: 2px; background: #ffffff52; }
.at-b.out .at-onda-b i { background: #ffffff59; }
.at-onda-b i.ok { background: #53bdeb; }
.at-b.out .at-onda-b i.ok { background: #e9edef; }
.at-bolinha { position: absolute; left: 0; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #53bdeb; }
.at-b.out .at-bolinha { background: #4fc3f7; }
.at-aud .at-dur { position: absolute; left: 102px; bottom: -2px; font-size: 11px; color: #ffffffa6; }
.at-ic svg, .at-env svg { display: block; }
.at-env { background: none !important; color: #aebac1 !important; }
.at-env.cheio { background: var(--at-verde) !important; color: #0b141a !important; }
.at-rodape.nota-on .at-env.cheio { background: var(--at-warn) !important; }
/* arrastar arquivo */
.at-col-chat.soltando::after { content: 'Solte os arquivos aqui pra enviar'; position: absolute; inset: 64px 0 0 0; background: #0b141ae6; border: 2px dashed #25d366; border-radius: 12px; display: grid; place-items: center; color: #e9edef; font-size: 18px; z-index: 30; pointer-events: none; }
/* prévia dos arquivos */
.at-prev-arqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; }
.at-prev-arq { position: relative; background: #1d1f1f; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.at-prev-arq img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; }
.at-prev-doc { height: 100px; display: grid; place-items: center; color: #8696a0; }
.at-prev-arq span { font-size: 12px; color: #8696a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-prev-arq button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: #0b141acc; color: #fff; border: 0; cursor: pointer; }
.at-transc { font-size: 13px; color: var(--at-t2); font-style: italic; margin-top: 8px; padding-top: 6px; border-top: 1px solid #ffffff14; }
.at-foto { display: block; max-width: 300px; max-height: 320px; border-radius: 6px; margin: -2px -4px 0 -5px; cursor: pointer; object-fit: cover; background: #25343d; min-width: 120px; min-height: 80px; }
.at-foto-sem { width: 260px; max-width: 100%; height: 90px; border-radius: 6px; background: linear-gradient(135deg,#25343d,#33454f); display: grid; place-items: center; color: var(--at-t2); font-size: 13px; margin: -2px -4px 4px -5px; }
.at-doc { display: flex; align-items: center; gap: 10px; background: #0000002e; padding: 12px; border-radius: 6px; width: 280px; max-width: 100%; color: var(--at-t) !important; text-decoration: none; white-space: normal; }
.at-doc .at-pdf { width: 30px; height: 38px; border-radius: 4px; background: #f15c6d; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.at-doc small { display: block; color: var(--at-t2); font-size: 12px; }
.at-loc { width: 270px; max-width: 100%; margin: -2px -4px 0 -5px; display: block; text-decoration: none; white-space: normal; }
.at-loc .at-mapa { height: 150px; border-radius: 6px; position: relative; background:
  linear-gradient(0deg, transparent 47%, #ffffff14 47% 53%, transparent 53%),
  linear-gradient(90deg, transparent 28%, #ffffff14 28% 32%, transparent 32%),
  linear-gradient(20deg, transparent 60%, #ffffff0d 60% 63%, transparent 63%), #2a3942; }
.at-loc .at-mapa::after { content: '📍'; position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); font-size: 26px; }
.at-loc span { display: block; font-size: 13px; color: #53bdeb; padding: 6px 4px 0; }

/* barra de digitação */
.at-rodape { padding: 8px 16px 10px; background: var(--at-chat); position: relative; flex-shrink: 0; }
.at-notabar { display: flex; gap: 6px; margin-bottom: 6px; padding-left: 4px; align-items: center; }
.at-notabar button { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; color: var(--at-t2); }
.at-notabar button.on { background: var(--at-campo) !important; color: var(--at-t); }
.at-notabar button.on.n { background: var(--at-nota) !important; color: var(--at-warn); }
.at-notabar .at-aviso { margin-left: auto; font-size: 12px; color: var(--at-t2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.at-notabar button { white-space: nowrap; flex-shrink: 0; }
.at-notabar .at-aviso b { color: var(--at-t); font-weight: 600; }
.at-barra-dig { display: flex; align-items: flex-end; gap: 4px; background: var(--at-in); border-radius: 26px; padding: 5px 6px; }
.at-rodape.nota-on .at-barra-dig { background: var(--at-nota); outline: 1px solid var(--at-notaB); }
.at-barra-dig textarea { flex: 1; resize: none; background: transparent; border: 0; outline: 0; padding: 9px 6px; font-size: 15px; line-height: 20px; height: 38px; max-height: 120px; overflow-y: hidden; box-shadow: none; }
.at-barra-dig textarea::placeholder { color: var(--at-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-env { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.at-env.grav { background: var(--at-bad) !important; color: #fff !important; }
.at-grav { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--at-bad); font-size: 15px; height: 38px; }
.at-grav .at-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--at-bad); animation: atPulse 1s infinite; }
.at-grav .at-grav-onda { flex: 1; min-width: 0; height: 28px; color: #aebac1; }
@keyframes atPulse { 50% { opacity: .25; } }
.at-rr { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 2px); background: #233138; border-radius: 10px; box-shadow: 0 -6px 24px rgba(0,0,0,.45); max-height: 320px; overflow-y: auto; display: none; padding: 6px 0; z-index: 5; }
.at-rr.on { display: block; }
.at-rr .at-h { font-size: 12px; color: var(--at-t2); padding: 6px 16px; }
.at-rr .at-o { padding: 9px 16px; cursor: pointer; display: flex; gap: 14px; align-items: baseline; }
.at-rr .at-o.sel, .at-rr .at-o:hover { background: #ffffff12; }
.at-rr .at-o code { color: var(--at-verdeT); font-size: 13.5px; flex-shrink: 0; min-width: 110px; font-family: inherit; font-weight: 600; background: none; padding: 0; }
.at-rr .at-o span { color: var(--at-t2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.at-capa { flex: 1; display: grid; place-items: center; text-align: center; color: var(--at-t2); padding: 30px; }
.at-capa h2 { color: var(--at-t); font-weight: 300; font-size: 30px; margin: 14px 0 8px; }

/* dados do cliente */
.at-col-cli { width: 360px; background: var(--at-lista); border-left: 1px solid #ffffff0f; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.at-col-cli.fechado { display: none; }
.at-cli-h { display: flex; align-items: center; gap: 16px; padding: 0 16px; height: 64px; font-size: 16px; border-bottom: 1px solid #ffffff0f; position: sticky; top: 0; background: var(--at-lista); z-index: 2; }
.at-perfil { text-align: center; padding: 22px 16px 18px; border-bottom: 8px solid #0d0e0e; }
.at-perfil .at-av { width: 110px; height: 110px; font-size: 40px; margin: 0 auto 12px; }
.at-perfil .at-n { font-size: 20px; }
.at-perfil .at-f { color: var(--at-t2); font-size: 15px; margin-top: 4px; }
.at-sec { padding: 14px 20px; border-bottom: 8px solid #0d0e0e; }
.at-sec h3 { font-size: 13.5px; color: var(--at-t2); font-weight: 400; margin: 0 0 10px; display: flex; justify-content: space-between; }
.at-sec h3 b { font-weight: 600; font-size: 12px; }
.at-sec h3.at-hist-tit { align-items: center; }
.at-hist-tit-d { display: flex; align-items: center; gap: 6px; }
.at-hist-tit-d .at-proto-ic { background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
.at-hist-mais { display: block; margin: 6px auto 0; }
.at-hist-atual { padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: #ffffff08; border: 1px solid var(--at-t3); }
.at-hist-atual h4 { font-size: 13px; color: var(--at-t2); font-weight: 400; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.at-resumo { font-size: 14px; line-height: 20px; white-space: pre-wrap; }
.at-con { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.at-con .at-d { width: 10px; height: 10px; border-radius: 50%; background: var(--at-t3); }
.at-con.on .at-d { background: var(--at-verde); box-shadow: 0 0 0 4px #21c06326; }
.at-con.off .at-d { background: var(--at-bad); box-shadow: 0 0 0 4px #f15c6d26; }
.at-con-rf { margin-left: auto; background: none; border: 1px solid var(--at-t3); color: var(--at-t2); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 14px; line-height: 1; }
.at-con-rf:hover { color: var(--at-t1, inherit); border-color: var(--at-t2); }
.at-traf-bt { background: none; border: 1px solid var(--at-t3); color: inherit; border-radius: 14px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.at-traf-bt:hover { border-color: var(--at-t2); }
.at-traf-box { margin: 2px 0 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--at-t3); font-size: 13px; color: var(--at-t2); }
.at-traf-err { color: var(--at-bad); }
.at-traf-num { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.at-traf-num b { font-size: 17px; color: #21c063; }
.at-traf-num .up b { font-size: 14px; color: inherit; }
.at-traf-num small { margin-left: auto; font-size: 11px; }
.at-traf-g { width: 100%; height: 44px; display: block; margin-top: 6px; }
.at-traf-pico { font-size: 11px; }
.at-traf-bt[disabled] { opacity: .5; cursor: default; }
.at-fat small.at-fat-ct { display: block; color: var(--at-t2); font-size: 11.5px; margin-top: 1px; }
.at-kv { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 4px 0; }
.at-kv span:first-child { color: var(--at-t2); flex-shrink: 0; }
.at-kv span:last-child { text-align: right; }
/* segunda linha, menor, embaixo do valor (ex.: quedas por motivo) */
.at-kv-sub { display: block; font-size: 12px; font-weight: 400; color: var(--at-t2); line-height: 1.35; margin-top: 1px; }
.at-fat { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid #ffffff0f; font-size: 14px; gap: 10px; }
.at-fat:first-of-type { border-top: 0; }
.at-fat small { display: block; font-size: 12px; color: var(--at-warn); }
.at-fat small.atr { color: var(--at-bad); }
.at-mini { display: flex; gap: 6px; flex-shrink: 0; }
.at-mini button { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid #ffffff2e !important; }
.at-mini button:hover { background: var(--at-hover) !important; }
.at-mini button.verde { background: #21c063 !important; color: #0b141a !important; border-color: #21c063 !important; font-weight: 600; }
.at-mini button.verde:hover { background: #1fae5a !important; }
.at-ac { display: flex; align-items: center; gap: 18px; width: 100%; padding: 12px 4px; font-size: 15px; text-align: left; border-radius: 8px; }
.at-ac:hover { background: var(--at-hover) !important; }
.at-ac .at-i { width: 24px; text-align: center; color: var(--at-t2); font-size: 17px; }
.at-ac small { display: block; font-size: 12.5px; color: var(--at-t2); }
.at-ac.verde, .at-ac.verde .at-i { color: var(--at-verdeT); }
.at-ac.verm, .at-ac.verm .at-i { color: var(--at-bad); }
.at-hist { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }

/* modais e avisos (ficam no body) */
.at-mbg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 9500; }
.at-mbg.on { display: grid; }
.at-modal { background: #2e2f2f; border-radius: 12px; width: min(460px, calc(100vw - 32px)); padding: 22px 24px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.5); color: #e9edef; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
.at-modal h2 { font-size: 19px; font-weight: 500; margin: 0 0 14px; color: #e9edef; }
.at-modal label { font-size: 13px; color: #8696a0; display: block; margin: 12px 0 6px; }
.at-modal select, .at-modal textarea, .at-modal input { box-sizing: border-box; width: 100%; background: #1d1f1f; border: 0; border-bottom: 2px solid #21c063; border-radius: 6px 6px 0 0; padding: 10px; outline: 0; font-size: 14.5px; color: #e9edef; font-family: inherit; }
.at-modal select option, .at-modal select optgroup { background: #2e2f2f; color: #e9edef; }
.at-modal .at-bts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.at-modal .at-bts button { padding: 9px 22px; border-radius: 999px; font-weight: 500; cursor: pointer; font-family: inherit; font-size: 14px; }
.at-modal .at-bts .c { color: #25d366; border: 1px solid #ffffff2e; background: none; }
.at-modal .at-bts .o { background: #21c063; color: #0b141a; border: 0; }
.at-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-120px); background: #e9edef; color: #111b21; padding: 11px 18px; border-radius: 8px; font-size: 14px; transition: transform .25s; z-index: 9600; box-shadow: 0 4px 16px rgba(0,0,0,.4); font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
.at-toast.on { transform: translateX(-50%) translateY(0); }
.at-zoom { position: fixed; inset: 0; background: #0b141a; z-index: 9700; display: none; place-items: center; overflow: hidden; cursor: zoom-out; isolation: isolate; contain: strict; }
.at-zoom.on { display: grid; }
.at-zoom img { max-width: 92vw; max-height: 88vh; border-radius: 4px; transform-origin: center center; transition: transform .08s ease-out; user-select: none; cursor: zoom-in; will-change: transform; backface-visibility: hidden; }
.at-zoom img.arrastando { transition: none; cursor: grabbing !important; }
.at-zbar { position: absolute; top: 14px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 4px; background: #1f2c33e6; border: 1px solid #ffffff1a; border-radius: 999px; padding: 4px 6px; cursor: default; }
.at-zbar button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: #e9edef; font-size: 18px; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.at-zbar button:hover { background: #ffffff1f; }
.at-zbar span { min-width: 48px; text-align: center; color: #d1d7db; font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 1500px) {
  .at-app { grid-template-columns: 340px minmax(0,1fr) auto; }
  .at-col-cli { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: -8px 0 30px rgba(0,0,0,.5); }
}
@media (max-width: 768px) {
  .at-app { grid-template-columns: 1fr; }
  .at-ham { display: grid !important; }
  .at-col-chat { display: none; }
  #view-atendimento.chat-aberto .at-col-lista { display: none; }
  #view-atendimento.chat-aberto .at-col-chat { display: flex; }
  .at-acoes .at-pb .at-tx { display: none; }
  .at-msgs { padding: 14px 10px; } .at-b { max-width: 85%; }
  .at-col-cli { width: 100%; }
  .at-voltar { display: grid !important; }
}

/* selo da Luana e configurações */
.at-etq.lua { background: #c4a6ff26; color: #cdb4ff; }
.at-cfg-tit { font-size: 13px; color: #8696a0; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.at-cfg-lista { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; }
.at-cfg-setor { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: #1d1f1f; border: 0; border-radius: 8px; padding: 10px 12px; color: #e9edef; cursor: pointer; font-family: inherit; font-size: 14.5px; }
.at-cfg-setor:hover { background: #262828; }
.at-cfg-setor.off { opacity: .55; }
.at-cfg-setor small { display: block; color: #8696a0; font-size: 12.5px; margin-top: 2px; }
.at-cfg-setor span { color: #8696a0; font-size: 20px; }
.at-cfg-novo { margin-top: 8px; background: none; border: 1px dashed #ffffff33; color: #25d366; border-radius: 8px; padding: 9px; width: 100%; cursor: pointer; font-family: inherit; font-size: 14px; }
.at-modal label.at-cfg-chk { display: flex; align-items: flex-start; gap: 10px; color: #e9edef; font-size: 14px; margin: 10px 0; cursor: pointer; line-height: 1.35; }
.at-modal label.at-cfg-chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #21c063; flex-shrink: 0; border: 0; padding: 0; }
.at-cfg-membros { max-height: 30vh; overflow-y: auto; background: #1d1f1f; border-radius: 8px; padding: 2px 12px; }
.at-modal { max-height: 92vh; overflow-y: auto; overflow-x: hidden; }

/* fixar */
.at-pin { color: #8696a0; display: grid; place-items: center; flex-shrink: 0; }
.at-seta { display: none; width: 22px; height: 22px; border-radius: 50%; color: #8696a0 !important; font-size: 16px; line-height: 1; flex-shrink: 0; }
.at-item:hover .at-seta { display: grid; place-items: center; }
.at-seta:hover { background: #ffffff14 !important; }

/* foto de perfil e apelido */
.at-av { overflow: hidden; position: relative; }
.at-foto-av { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-foto-av.zoom { cursor: zoom-in; }
.at-apelido { font-size: 12.5px; color: #8696a0; font-weight: 400; margin-left: 4px; }
/* reação em cima da mensagem */
.at-b.com-reac { margin-bottom: 14px; }
.at-reac { position: absolute; bottom: -14px; left: 8px; background: #2e2f2f; border: 2px solid #161717; border-radius: 999px; padding: 1px 6px; font-size: 14px; line-height: 20px; box-shadow: 0 1px 2px #0005; }
.at-b.out .at-reac { left: auto; right: 8px; }
/* etiquetas de estado na lista */
.at-etq.fila { background: #f15c6d22; color: #ff8a96; }
.at-etq.meu { background: #25d36622; color: #4fe08a; }
.at-etq.res { background: #ffffff14; color: #8696a0; }
/* análise de crédito e blacklist */
.at-etq.bl { background: #f15c6d33; color: #ff8a96; }
.at-etq.romp { background: #ff9f1a2e; color: #ffb547; }
.at-etq.romp.ok { background: #ffffff14; color: #8696a0; }
.at-sub .at-etq { font-size: 11px; }
.at-bl-banner { margin: 0 20px 4px; background: #3a1418; border: 1px solid #f15c6d66; color: #ffb3bb; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.at-bl-banner small { display: block; color: #d99; font-size: 12.5px; margin-top: 4px; }
.at-cred { border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #ffffff0d; font-size: 14.5px; }
.at-cred small { display: block; color: var(--at-t2); font-size: 13px; margin-top: 3px; }
.at-cred.aprovado { background: #21c06322; } .at-cred.reprovado { background: #f15c6d26; } .at-cred.condicionado { background: #ffbc2d22; }
.at-neg { font-size: 13px; color: var(--at-t2); padding: 2px 0; }
.at-cred-data { font-size: 12px; color: var(--at-t3); margin-top: 6px; }
.at-dec { display: flex; gap: 8px; margin: 10px 0 4px; }
.at-dec .at-pb { flex: 1; justify-content: center; }
.at-pb.rep { color: var(--at-bad) !important; border-color: #f15c6d66 !important; }
.at-ch .at-info { min-width: 130px; }
@media (max-width: 1700px) { .at-col-cli:not(.fechado) ~ * .at-pb .at-tx { display: none; } }

/* foto no jeito do WhatsApp */
.at-b.midia { padding: 3px 3px 3px; }
.at-b.midia .at-who { padding: 2px 6px 0; }
.at-foto-box { position: relative; width: 330px; max-width: 100%; min-height: 180px; border-radius: 6px; overflow: hidden; background: #ffffff0f; }
.at-foto-box.ok { min-height: 0; background: none; width: fit-content; }
.at-foto-box.ok .at-foto { width: auto !important; max-width: 330px; max-height: 380px; object-fit: contain; }
@media (max-width: 600px) { .at-foto-box.ok .at-foto { max-width: 68vw; } }
.at-foto-box .at-foto { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; margin: 0; border-radius: 6px; min-width: 0; min-height: 0; cursor: pointer; }

.at-meta.sobre { position: absolute; right: 6px; bottom: 5px; margin: 0; float: none; padding: 1px 6px; border-radius: 10px; background: linear-gradient(transparent, #0008); color: #fff; text-shadow: 0 1px 2px #0008; }
.at-leg { padding: 5px 6px 2px; }
/* janelas da tela e consulta bloqueada */
.at-jan-txt { font-size: 14.5px; line-height: 1.5; color: #d1d7db; }
.at-jan-txt b { color: #e9edef; }
.at-modal .at-bts .o.perigo { background: #f15c6d; color: #fff; }
.at-ac-off { opacity: .7; cursor: default; }
.at-ac-off:hover { background: none !important; }

/* análise de crédito formatada */
.at-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 10px; }
.at-score > div { background: #ffffff0a; border-radius: 8px; padding: 8px 6px; text-align: center; }
.at-score-n { display: block; font-size: 19px; font-weight: 700; color: var(--at-t); }
.at-score small { display: block; font-size: 11.5px; color: var(--at-t2); margin-top: 2px; }
.at-faixa { display: inline-block; font-size: 11px; font-weight: 700; background: #ffffff1a; border-radius: 4px; padding: 0 5px; margin-top: 2px; }
.at-negs { background: #ffffff08; border-radius: 8px; padding: 6px 10px; margin-bottom: 4px; }
.at-negs-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--at-t2); padding: 2px 0 6px; border-bottom: 1px solid #ffffff12; }
.at-negs-h b { color: var(--at-t); }
.at-neg-l { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #ffffff0d; font-size: 13.5px; }
.at-neg-l:last-child { border-bottom: 0; }
.at-neg-l b { font-weight: 500; display: block; }
.at-neg-l small { display: block; font-size: 12px; color: var(--at-t2); margin-top: 1px; }
.at-neg-l span { white-space: nowrap; font-weight: 600; }
.at-neg-l.tel b, .at-neg-l.tel span { color: #ff8a96; }

/* editar/apagar nota interna */
.at-b.nota { position: relative; }
.at-nota-menu { position: absolute; top: 3px; right: 4px; width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center; color: #ffbc2d !important; background: #3a3214 !important; font-size: 15px; line-height: 1; }
.at-b.nota:hover .at-nota-menu { display: grid; }
.at-nota-menu:hover { background: #5a4a1c !important; }
.at-editada { font-weight: 400; font-size: 11.5px; color: #c9a85a; }
.at-modal textarea.at-jan-area { box-sizing: border-box; width: 100%; min-height: 160px; resize: vertical; background: #1d1f1f; border: 0; border-bottom: 2px solid #21c063; border-radius: 6px 6px 0 0; padding: 10px; color: #e9edef; font: inherit; font-size: 14.5px; line-height: 1.45; }
/* nota interna mais limpa */
.at-b.nota { background: #2a2618 !important; border: 0 !important; border-left: 3px solid #c9a24b !important; border-radius: 6px; max-width: 72%; padding: 6px 10px 8px 10px; box-shadow: none; }
.at-b.nota .at-who { color: #c9a24b !important; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 18px; }
.at-b.nota .at-meta { color: #ffffff70; }
.at-nota-menu { color: #c9a24b !important; background: #2a2618 !important; }
/* protocolo e histórico */
.at-proto { cursor: pointer; font-weight: 600; color: var(--at-t) !important; background: #ffffff12; border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.at-link { margin-top: 8px; font-size: 13px; color: #53bdeb !important; padding: 0; }
.at-hist { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; margin: 0 -10px; }
.at-hist:hover { background: #ffffff0d !important; }
.at-hist + .at-hist { border-top: 1px solid #ffffff0d; }
.at-hist-l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.at-hist-l1 span { color: var(--at-t2); font-size: 12px; }
.at-hist-l2 { font-size: 12.5px; color: var(--at-t2); margin-top: 2px; }
.at-hist-r { font-size: 13px; color: #c9cfd3; margin-top: 4px; line-height: 1.4; }
.at-proto-info { background: #1d1f1f; border-radius: 8px; padding: 6px 12px; }
.at-proto-resumo { background: #1d1f1f; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; color: #d1d7db; }
.at-proto-msgs { flex-direction: column; max-height: 45vh; overflow-y: auto; margin-top: 12px; padding: 8px 14px; background: #161717; border-radius: 8px; }
.at-proto-msgs > * { flex-shrink: 0; }
/* Prévia do atendimento: só leitura, sem o menu (⌄) das mensagens. */
.at-proto-msgs .at-msg-menu, .at-proto-msgs .at-nota-menu { display: none !important; }
.at-modal .at-kv span:first-child { color: #8696a0; }
.at-mbg { --at-in: #242626; --at-out: #144d37; --at-nota: #2a2618; --at-notaB: #c9a24b; --at-verde: #21c063; --at-verdeT: #25d366; --at-azul: #53bdeb; --at-eq: #53bdeb; --at-t: #e9edef; --at-t2: #8696a0; --at-t3: #667781; --at-lua: #c4a6ff; --at-bad: #f15c6d; --at-warn: #ffbc2d; }
.at-modal.largo { width: min(780px, calc(100vw - 32px)); }
/* resumo em partes e protocolos */
.at-proto-w { display: inline-flex; align-items: center; gap: 6px; }
.at-proto-ic { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 15px; }
.at-proto-ic:hover { background: #ffffff14 !important; }
.at-resumo.curto, .at-parte-t.curto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-partes { display: flex; flex-direction: column; gap: 8px; }
.at-parte { border-left: 2px solid #ffffff26; padding: 1px 0 1px 10px; }
.at-parte.lua { border-color: #c4a6ff88; } .at-parte.eq { border-color: #53bdeb88; }
.at-parte-h { font-size: 12.5px; color: var(--at-t2); display: flex; gap: 4px; flex-wrap: wrap; align-items: baseline; }
.at-parte-h b { color: var(--at-t); font-weight: 600; }
.at-parte.lua .at-parte-h b { color: #cdb4ff; } .at-parte.eq .at-parte-h b { color: #6fcbf2; }
.at-parte-h span { margin-left: auto; font-size: 11.5px; color: var(--at-t3); }
.at-parte-t { font-size: 14px; line-height: 1.45; margin-top: 2px; white-space: pre-wrap; }
.at-res-bts { display: flex; gap: 16px; margin-top: 6px; }
.at-linha-t { display: flex; flex-direction: column; gap: 10px; max-height: 64vh; overflow-y: auto; padding-right: 4px; }
.at-proto-card { background: #1d1f1f; border-radius: 10px; padding: 10px 12px; }
.at-proto-card.foco { box-shadow: inset 0 0 0 1px #25d36666; }
.at-proto-card-h { display: flex; justify-content: space-between; font-size: 14.5px; }
.at-proto-card-h span { color: #8696a0; font-size: 12.5px; }
.at-proto-card-s { font-size: 12.5px; color: #8696a0; margin: 2px 0 8px; }
.at-mbg .at-resumo, .at-mbg .at-parte-t { color: #d1d7db; }
.at-mbg button.at-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: #53bdeb; }
.at-link { background: none; border: 0; cursor: pointer; }
/* protocolos: lista enxuta que expande */
.at-modal.at-pt { padding: 18px 8px 10px; width: min(640px, calc(100vw - 32px)); }
.at-pt-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 14px 10px; }
.at-pt-h h2 { margin: 0; font-size: 18px; }
.at-pt-sub { font-size: 13px; color: #8696a0; margin-top: 2px; }
.at-pt-x { background: none; border: 0; color: #8696a0; font-size: 16px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.at-pt-x:hover { background: #ffffff12; color: #e9edef; }
.at-pt-lista { max-height: 70vh; overflow-y: auto; }
.at-pt-item { border-top: 1px solid #ffffff0f; }
.at-pt-item:first-child { border-top: 0; }
.at-pt-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 12px 14px; border-radius: 10px; }
.at-pt-row:hover { background: #ffffff0a; }
.at-pt-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #667781; }
.at-pt-dot.ok { background: #25d366; } .at-pt-dot.and { background: #53bdeb; box-shadow: 0 0 0 3px #53bdeb33; } .at-pt-dot.os { background: #ffbc2d; } .at-pt-dot.eq { background: #c4a6ff; }
.at-pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.at-pt-l1 { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.at-pt-l1 b { font-weight: 600; letter-spacing: .01em; }
.at-pt-l1 span { font-size: 12.5px; color: #8696a0; white-space: nowrap; }
.at-pt-l2 { font-size: 12.5px; color: #8696a0; }
.at-pt-prev { font-size: 13.5px; color: #c9cfd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.at-pt-chev { color: #8696a0; font-size: 16px; transition: transform .15s; margin-top: 2px; }
.at-pt-item.aberto .at-pt-chev { transform: rotate(180deg); }
.at-pt-item.aberto .at-pt-prev { display: none; }
.at-pt-corpo { display: none; padding: 0 14px 14px 35px; }
.at-pt-item.aberto .at-pt-corpo { display: block; }
.at-pt-item.aberto .at-pt-row { background: transparent; }
.at-pt-tl { position: relative; padding-left: 14px; border-left: 1px solid #ffffff1f; display: flex; flex-direction: column; gap: 12px; }
.at-pt-p { position: relative; }
.at-pt-p::before { content: ''; position: absolute; left: -18px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #53bdeb; }
.at-pt-p.lua::before { background: #c4a6ff; }
.at-pt-ph { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: #8696a0; }
.at-pt-ph b { color: #6fcbf2; font-weight: 600; } .at-pt-p.lua .at-pt-ph b { color: #cdb4ff; }
.at-pt-ph i { font-style: normal; margin-left: auto; color: #667781; font-size: 11.5px; }
.at-pt-pt { font-size: 14px; line-height: 1.5; color: #d1d7db; margin-top: 2px; white-space: pre-wrap; }
.at-pt-pt.vazio { color: #8696a0; }
.at-pt-acoes { display: flex; gap: 18px; margin-top: 10px; }
.at-pt .at-proto-msgs { margin-top: 10px; }
/* prévia de arquivos no estilo do WhatsApp */
#view-atendimento .at-midia { position: absolute; inset: 0; z-index: 40; background: #161717; display: flex; flex-direction: column; }
#view-atendimento .at-md-top { height: 60px; flex-shrink: 0; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
#view-atendimento .at-md-x { width: 40px; height: 40px; border-radius: 50%; color: #aebac1; font-size: 20px; }
#view-atendimento .at-md-x:hover { background: #ffffff14; }
#view-atendimento .at-md-top span { flex: 1; text-align: center; color: #d1d7db; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 48px; }
#view-atendimento .at-md-palco { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 48px; }
#view-atendimento .at-md-palco img, #view-atendimento .at-md-palco video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 2px 12px #0006; }
#view-atendimento .at-md-doc { width: 280px; background: #242626; border-radius: 12px; padding: 34px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #8696a0; text-align: center; }
#view-atendimento .at-md-doc svg { width: 72px; height: 72px; }
#view-atendimento .at-md-doc b { color: #e9edef; font-weight: 500; font-size: 15px; word-break: break-word; }
#view-atendimento .at-md-doc span { font-size: 13px; }
#view-atendimento .at-md-leg { flex-shrink: 0; display: flex; justify-content: center; padding: 6px 24px 18px; }
#view-atendimento .at-md-leg input { width: min(620px, 100%); background: #242626; border: 0; outline: none; border-radius: 8px; padding: 13px 16px; color: #e9edef; font-size: 15px; }
#view-atendimento .at-md-leg input::placeholder { color: #8696a0; }
#view-atendimento .at-md-pe { flex-shrink: 0; border-top: 1px solid #ffffff14; display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
#view-atendimento .at-md-thumbs { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 8px; overflow-x: auto; padding: 3px; }
#view-atendimento .at-md-th { position: relative; width: 54px; height: 54px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #242626; outline: 2px solid transparent; outline-offset: 1px; cursor: pointer; display: grid; place-items: center; }
#view-atendimento .at-md-th.sel { outline-color: #25d366; }
#view-atendimento .at-md-th img { width: 100%; height: 100%; object-fit: cover; }
#view-atendimento .at-md-ext { font-size: 11px; font-weight: 600; color: #aebac1; }
#view-atendimento .at-md-thx { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #0b141acc; color: #fff; font-size: 10px; line-height: 18px; display: none; }
#view-atendimento .at-md-th:hover .at-md-thx { display: block; }
#view-atendimento .at-md-mais { width: 54px; height: 54px; flex-shrink: 0; border-radius: 6px; border: 1px solid #ffffff40; color: #e9edef; display: grid; place-items: center; }
#view-atendimento .at-md-mais:hover { background: #ffffff0f; }
#view-atendimento .at-md-env { position: relative; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: #25d366; color: #0b141a; display: grid; place-items: center; box-shadow: 0 2px 8px #0005; }
#view-atendimento .at-md-env:hover { filter: brightness(1.08); }
#view-atendimento .at-md-env svg { width: 26px; height: 26px; }
#view-atendimento .at-md-env i { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #0b141a; font-style: normal; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
/* robô da Luana no cabeçalho */
.at-robo { display: inline-flex; align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border-radius: 999px; border: 1px solid #ffffff2e; color: #aebac1; white-space: nowrap; }
.at-robo.on { border-color: #c4a6ff66; color: var(--at-lua); background: #c4a6ff12; }
.at-robo-ic { display: grid; place-items: center; font-size: 17px; line-height: 1; opacity: .6; }
.at-robo.on .at-robo-ic { opacity: 1; animation: at-robo-pisca 2.4s ease-in-out infinite; }
@keyframes at-robo-pisca { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.at-robo-t { display: flex; flex-direction: column; line-height: 1.15; }
.at-robo-t b { font-size: 12.5px; font-weight: 600; }
.at-robo-t i { font-style: normal; font-size: 11.5px; opacity: .8; font-variant-numeric: tabular-nums; }
#view-atendimento .at-robo-bt { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; color: #e9edef; }
#view-atendimento .at-robo-bt:hover { background: #ffffff26; }
#view-atendimento .at-robo:not(.on) .at-robo-bt { background: var(--at-lua); color: #1b1230; }
#view-atendimento .at-robo:not(.on) .at-robo-bt:hover { filter: brightness(1.1); }
@media (max-width: 1100px) { .at-robo-t { display: none; } .at-robo { padding-left: 6px; } }
#view-atendimento .at-pb.assumir { border-color: var(--at-verde) !important; color: var(--at-verde) !important; font-weight: 600; }
#view-atendimento .at-pb.assumir:hover { background: #25d3661a !important; }
.at-robo-t i.at-robo-cont { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.at-robo.on .at-robo-ic { color: var(--at-lua); }
/* pílula da Luana menor, em duas linhas */
#view-atendimento .at-robo { gap: 6px; padding: 2px 2px 2px 8px; }
#view-atendimento .at-robo-ic { font-size: 14px; }
#view-atendimento .at-robo-t b { font-size: 11.5px; }
#view-atendimento .at-robo-t i { font-size: 10.5px; }
#view-atendimento .at-robo-bt { width: 26px; height: 26px; }
#view-atendimento .at-robo-bt svg { width: 13px; height: 13px; }
#view-atendimento .at-pb.so-ic { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 17px; }
#view-atendimento .at-fat-n { float: right; font-size: 12px; color: var(--at-t2); font-weight: 400; }
/* calendário da liberação */
.at-mbg .at-cal { background: #1d1f1f; border-radius: 12px; padding: 12px; margin-top: 4px; }
.at-mbg .at-cal-at { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.at-mbg .at-cal-at button { flex: 1; padding: 7px 0; border-radius: 999px; border: 1px solid #ffffff26; background: none; color: #d1d7db; font-size: 13px; cursor: pointer; }
.at-mbg .at-cal-at button:hover { background: #ffffff0f; }
.at-mbg .at-cal-at button.on { background: #25d36622; border-color: #25d366; color: #25d366; }
.at-mbg .at-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.at-mbg .at-cal-h b { font-weight: 600; text-transform: capitalize; font-size: 14.5px; color: #e9edef; }
.at-mbg .at-cal-h button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: #d1d7db; font-size: 20px; cursor: pointer; }
.at-mbg .at-cal-h button:hover:not(:disabled) { background: #ffffff14; }
.at-mbg .at-cal-h button:disabled { opacity: .25; cursor: default; }
.at-mbg .at-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.at-mbg .at-cal-g i { font-style: normal; font-size: 11.5px; color: #8696a0; padding: 4px 0; }
.at-mbg .at-cal-g button { aspect-ratio: 1; max-height: 38px; border: 0; border-radius: 50%; background: none; color: #e9edef; font-size: 14px; cursor: pointer; }
.at-mbg .at-cal-g button:hover:not(:disabled) { background: #ffffff14; }
.at-mbg .at-cal-g button:disabled { color: #8696a055; cursor: default; }
.at-mbg .at-cal-g button.hoje { box-shadow: inset 0 0 0 1px #8696a0; }
.at-mbg .at-cal-g button.sel { background: #25d366; color: #0b141a; font-weight: 600; box-shadow: none; }
.at-mbg .at-cal-res { margin-top: 10px; font-size: 13.5px; color: #8696a0; text-align: center; }
.at-mbg .at-cal-res b { color: #e9edef; font-weight: 600; }
/* fechamento automático (configurações) */
.at-mbg .at-fa-dias { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 6px 28px; background: #1d1f1f; border-radius: 999px; padding: 4px; }
.at-mbg .at-fa-dias.off { opacity: .4; pointer-events: none; }
.at-mbg .at-fa-dias button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #ffffff14; color: #e9edef; font-size: 18px; cursor: pointer; }
.at-mbg .at-fa-dias button:hover { background: #ffffff26; }
.at-mbg .at-fa-dias b { min-width: 22px; text-align: center; font-size: 16px; color: #e9edef; }
.at-mbg .at-fa-dias span { color: #8696a0; font-size: 13.5px; margin-right: 4px; }
/* agendamentos */
#view-atendimento .at-agend { display: flex; flex-direction: column; gap: 4px; margin: 0 4px 6px; }
#view-atendimento .at-ag { display: flex; align-items: center; gap: 10px; background: #1d2a33; border: 1px solid #53bdeb33; border-radius: 10px; padding: 6px 6px 6px 10px; font-size: 13px; }
#view-atendimento .at-ag > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#view-atendimento .at-ag b { font-weight: 600; color: #6fcbf2; font-size: 12px; }
#view-atendimento .at-ag span:not(.at-ag-i) { color: #d1d7db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-atendimento .at-ag .at-ag-c { cursor: pointer; }
#view-atendimento .at-ag.aberto { align-items: flex-start; }
#view-atendimento .at-ag.aberto .at-ag-c { max-height: 40vh; overflow-y: auto; }
#view-atendimento .at-ag.aberto span:not(.at-ag-i) { white-space: pre-wrap; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.4; padding-top: 2px; }
#view-atendimento .at-ag button { width: 26px; height: 26px; border-radius: 50%; color: #8696a0; }
#view-atendimento .at-ag button:hover { background: #ffffff14; color: #e9edef; }
.at-mbg .at-ag-tipo { display: flex; gap: 8px; margin-bottom: 4px; }
.at-mbg .at-ag-tipo button { flex: 1; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff26; background: none; color: #e9edef; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.at-mbg .at-ag-tipo button small { color: #8696a0; font-size: 12px; }
.at-mbg .at-ag-tipo button.on { border-color: #25d366; background: #25d3661a; }
.at-mbg .at-ag-atalhos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.at-mbg .at-ag-atalhos button { padding: 6px 12px; border-radius: 999px; border: 1px solid #ffffff26; background: none; color: #d1d7db; font-size: 13px; cursor: pointer; }
.at-mbg .at-ag-atalhos button:hover { background: #ffffff0f; }
.at-mbg .at-ag-atalhos button.on { border-color: #25d366; color: #25d366; background: #25d3661a; }
.at-mbg input[type=datetime-local] { color-scheme: dark; }
.at-lembretes { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; max-width: 340px; font-family: Inter, system-ui, sans-serif; }
.at-lemb { background: #233138; border: 1px solid #ffbc2d66; border-radius: 12px; padding: 12px 14px; color: #e9edef; box-shadow: 0 8px 24px #0008; animation: at-lemb-in .25s ease-out; }
@keyframes at-lemb-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.at-lemb-h { font-size: 12.5px; color: #ffbc2d; font-weight: 600; margin-bottom: 4px; }
.at-lemb-t { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.at-lemb-b { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.at-lemb-b button { padding: 6px 12px; border-radius: 999px; border: 0; background: #ffffff14; color: #e9edef; font-size: 13px; cursor: pointer; }
.at-lemb-b button:first-child { background: #25d366; color: #0b141a; font-weight: 600; }
.at-lemb-b button:only-child { background: #ffffff14; color: #e9edef; font-weight: 400; }
/* resolver: fecha fluido */
#view-atendimento .at-item.saindo { height: 0 !important; opacity: 0; transform: translateX(-24px); padding-top: 0; padding-bottom: 0; overflow: hidden; background: #25d36622 !important; transition: height .25s ease, opacity .2s ease, transform .25s ease, padding .25s ease, background .1s; }
#view-atendimento .at-col-chat.fechando > * { opacity: 0; transform: scale(.985); transition: opacity .22s ease, transform .22s ease; }
#view-atendimento .at-pb.verde.ok { animation: at-ok-pulse .3s ease; }
@keyframes at-ok-pulse { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); box-shadow: 0 0 0 8px #25d36600; } }
/* sons e notificações */
.at-mbg .at-som { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #ffffff0f; }
.at-mbg .at-som:first-of-type { border-top: 0; }
.at-mbg .at-som-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-mbg .at-som-t b { font-weight: 600; font-size: 14px; color: #e9edef; }
.at-mbg .at-som-t small { font-size: 12px; color: #8696a0; }
.at-mbg .at-som select { width: 130px; margin: 0; }
.at-mbg .at-som-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #25d36622; color: #25d366; cursor: pointer; font-size: 13px; flex-shrink: 0; }
.at-mbg .at-som-play:hover { background: #25d36640; }
.at-mbg .at-som-vol { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.at-mbg .at-som-vol input { flex: 1; accent-color: #25d366; }
/* filtros da lista */
#view-atendimento .at-col-lista { position: relative; }
#view-atendimento .at-busca-l { display: flex; align-items: center; gap: 2px; margin: 4px 8px 8px 16px; flex-shrink: 0; }
#view-atendimento .at-busca-l .at-busca { flex: 1; margin: 0; }
#view-atendimento .at-filt-bt { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--at-t2); }
#view-atendimento .at-filt-bt.on { color: var(--at-verdeT); background: var(--at-chipOn) !important; }
#view-atendimento .at-filt-n { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--at-verde); color: #111b21; font-size: 10.5px; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 4px; }
#view-atendimento .at-filt-bt.on .at-filt-n { display: inline-flex; }
#view-atendimento .at-filtro { position: absolute; top: 104px; left: 12px; right: 12px; z-index: 50; background: #233138; border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,.55); padding: 14px 16px 16px; display: none; flex-direction: column; gap: 6px; }
#view-atendimento .at-filtro.on { display: flex; animation: at-ft-in .14s ease; }
@keyframes at-ft-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#view-atendimento .at-ft-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
#view-atendimento .at-ft-h b { font-size: 15px; }
#view-atendimento .at-filtro label { font-size: 12px; color: var(--at-t2); margin-top: 6px; }
#view-atendimento .at-filtro select, #view-atendimento .at-filtro input { width: 100%; background: #1d282f; border: 1px solid #ffffff1f; border-radius: 8px; color: var(--at-t); padding: 8px 10px; font-size: 13.5px; outline: 0; font-family: inherit; color-scheme: dark; }
#view-atendimento .at-filtro select:focus, #view-atendimento .at-filtro input:focus { border-color: var(--at-verde); }
#view-atendimento .at-ft-at { display: flex; gap: 6px; flex-wrap: wrap; }
#view-atendimento .at-ft-at button { flex: 1; padding: 5px 0; border-radius: 999px; border: 1px solid #ffffff26; background: none; color: #d1d7db; font-size: 12.5px; cursor: pointer; }
#view-atendimento .at-ft-at button:hover { background: #ffffff10; }
#view-atendimento .at-ft-2 { display: flex; align-items: center; gap: 6px; }
#view-atendimento .at-ft-2 span { font-size: 12px; color: var(--at-t2); flex-shrink: 0; }
#view-atendimento .at-ft-2 input { min-width: 0; font-size: 12.5px; padding: 7px 6px; }
#view-atendimento .at-ft-b { display: flex; gap: 8px; margin-top: 10px; }
#view-atendimento .at-ft-b button { flex: 1; padding: 9px 0; border-radius: 999px; font-size: 14px; cursor: pointer; border: 0; font-family: inherit; }
#view-atendimento .at-ft-b .lim { background: none; border: 1px solid #ffffff2e; color: var(--at-t); }
#view-atendimento .at-ft-b .ap { background: var(--at-verde); color: #111b21; font-weight: 600; }
#view-atendimento .at-filt-ativos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; flex-shrink: 0; }
#view-atendimento .at-filt-ativos:not(:empty) { padding-bottom: 8px; }
#view-atendimento .at-fp { display: inline-flex; align-items: center; gap: 4px; background: var(--at-chipOn); color: var(--at-chipOnT); border-radius: 999px; font-size: 12px; padding: 3px 4px 3px 10px; }
#view-atendimento .at-fp button { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; }
#view-atendimento .at-fp button:hover { opacity: 1; background: #ffffff1a; }
#view-atendimento .at-filt-res { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 13px; color: var(--at-t2); }
#view-atendimento .at-filt-res button { background: none; border: 0; color: var(--at-verdeT); cursor: pointer; font-size: 13px; }
#view-atendimento .at-chip.at-chip-ic { margin-left: auto; padding: 5px 9px; }
#view-atendimento .at-chip.at-chip-ic svg { display: block; }
#view-atendimento .at-vazio small { color: var(--at-t3); font-size: 12px; }
/* paginação da lista */
#view-atendimento .at-mais { display: block; width: calc(100% - 32px); margin: 10px 16px 14px; padding: 9px 0; border-radius: 999px; border: 1px solid #ffffff26; background: none; color: var(--at-verdeT); font-size: 13.5px; cursor: pointer; font-family: inherit; }
#view-atendimento .at-mais:hover { background: var(--at-hover); }
#view-atendimento .at-mais:disabled { color: var(--at-t2); cursor: default; }
/* ações na mensagem, contato, número clicável */
#view-atendimento .at-b { position: relative; }
#view-atendimento .at-msg-menu { position: absolute; top: 2px; right: 3px; width: 26px; height: 22px; border: 0; border-radius: 0 6px 0 12px; display: none; place-items: center; color: var(--at-t2); background: inherit; box-shadow: -8px 2px 10px 0 var(--at-bolha-sombra, #0000); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; z-index: 2; }
#view-atendimento .at-b:hover .at-msg-menu { display: grid; }
#view-atendimento .at-msg-menu:hover { color: var(--at-t); }
#view-atendimento .at-ed { font-style: italic; margin-right: 5px; opacity: .85; }
#view-atendimento .at-apagada { font-style: italic; color: var(--at-t2); padding-right: 54px; }
#view-atendimento .at-fone-link { color: #53bdeb !important; text-decoration: none; cursor: pointer; }
#view-atendimento .at-fone-link:hover { text-decoration: underline; }
#view-atendimento .at-ct { min-width: 250px; margin: 2px 0 4px; }
#view-atendimento .at-ct + .at-ct { border-top: 1px solid #ffffff14; padding-top: 6px; }
#view-atendimento .at-ct-l { display: flex; align-items: center; gap: 12px; padding: 6px 4px 10px; }
#view-atendimento .at-ct-av { width: 46px; height: 46px; border-radius: 50%; background: #5a6b74; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
#view-atendimento .at-ct-nm { display: flex; flex-direction: column; min-width: 0; }
#view-atendimento .at-ct-nm b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-atendimento .at-ct-nm small { color: var(--at-t2); font-size: 12.5px; }
#view-atendimento .at-ct-bt { display: block; width: 100%; border: 0; border-top: 1px solid #ffffff1c; background: none; color: var(--at-verdeT); font-size: 14.5px; font-weight: 500; padding: 10px 0 6px; cursor: pointer; font-family: inherit; }
#view-atendimento .at-ct-bt:hover { color: #6ee7a0; }
#view-atendimento .at-ct-sem { border-top: 1px solid #ffffff1c; color: var(--at-t3); font-size: 12px; text-align: center; padding: 8px 0 4px; }
/* encaminhar */
.at-mbg .at-enc-q { box-sizing: border-box; width: 100%; background: #1d282f; border: 1px solid #ffffff1f; border-radius: 8px; color: #e9edef; padding: 9px 12px; font-size: 14px; outline: 0; margin: 4px 0 8px; font-family: inherit; }
.at-mbg .at-enc-q:focus { border-color: #21c063; }
.at-mbg .at-enc-l { max-height: 52vh; overflow-y: auto; overflow-x: hidden; }
.at-mbg .at-enc-i { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; background: none; border: 0; border-radius: 8px; color: #e9edef; cursor: pointer; text-align: left; font-family: inherit; }
.at-mbg .at-enc-i:hover { background: #ffffff0d; }
.at-mbg .at-enc-ck { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #8696a0; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; color: #111b21; }
.at-mbg .at-enc-i.on .at-enc-ck { background: #21c063; border-color: #21c063; }
.at-mbg .at-enc-i.on .at-enc-ck::after { content: '✓'; font-weight: 700; }
.at-mbg .at-enc-num { display: grid; place-items: center; background: #2a3942; font-size: 18px; }
.at-mbg .at-enc-nm { display: flex; flex-direction: column; min-width: 0; font-size: 14.5px; }
.at-mbg .at-enc-nm small { color: #8696a0; font-size: 12.5px; }
.at-mbg .at-enc-rod { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #8696a0; font-size: 13px; }
.at-mbg .at-enc-ok { background: #21c063; color: #111b21; border: 0; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.at-mbg .at-enc-ok:disabled { background: #2a3942; color: #8696a0; cursor: default; }
/* avatar de letra (estilo WhatsApp) */
#view-atendimento .at-av { font-weight: 500; font-size: 20px; }
#view-atendimento .at-av.s { font-size: 16px; }
.at-mbg .at-av { font-weight: 500; }
#view-atendimento .at-ct .at-av { width: 46px; height: 46px; font-size: 19px; }
/* seleção de mensagens (encaminhar) */
#view-atendimento .at-selrow { display: flex; align-items: center; gap: 14px; width: calc(100% + 32px); margin: 0 -16px; padding: 1px 16px; cursor: pointer; flex-shrink: 0; }
#view-atendimento .at-selrow:hover { background: #ffffff08; }
#view-atendimento .at-selrow.on { background: #ffffff12; }
#view-atendimento .at-selrow.nao { cursor: default; }
#view-atendimento .at-selrow.nao .at-selck { visibility: hidden; }
#view-atendimento .at-selrow .at-b { pointer-events: none; }
#view-atendimento .at-selrow .at-b.out { margin-left: auto; }
#view-atendimento .at-selrow .at-b.in { margin-right: auto; }
#view-atendimento .at-selrow .at-b.nota { margin: 0 auto; }
#view-atendimento .at-selrow .at-msg-menu { display: none !important; }
#view-atendimento .at-selck { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #8696a0; flex-shrink: 0; display: grid; place-items: center; color: #111b21; font-size: 13px; font-weight: 700; }
#view-atendimento .at-selrow.on .at-selck { background: #21c063; border-color: #21c063; }
#view-atendimento .at-selrow.on .at-selck::after { content: '✓'; }
#view-atendimento .at-selbar { display: flex; align-items: center; gap: 18px; padding: 10px 14px; min-height: 62px; font-size: 15.5px; color: var(--at-t); }
#view-atendimento .at-selbar #at-sel-n { flex: 1; }
#view-atendimento .at-selbar .at-ic { font-size: 18px; color: var(--at-t2); }
#view-atendimento .at-sel-fw { color: var(--at-t) !important; }
#view-atendimento .at-sel-fw:disabled { opacity: .35; cursor: default; }
/* carregando mensagens antigas (ao rolar pro topo) */
#view-atendimento .at-col-chat { position: relative; }
#view-atendimento .at-antigas { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); z-index: 5; background: #233138; color: var(--at-t2); font-size: 12.5px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
/* nova conversa */
#view-atendimento .at-nova-bt { display: inline-flex; align-items: center; justify-content: center; color: var(--at-t2); }
#view-atendimento .at-nova-bt:hover { color: var(--at-t); }
.at-mbg .at-nc-sem { cursor: default; opacity: .6; }
.at-mbg .at-nc-sem:hover { background: none; }
/* cabeçalho da lista com Nova conversa + menu */
#view-atendimento .at-lh { gap: 2px; padding-left: 16px; padding-right: 6px; }
#view-atendimento .at-lh h1 { font-size: 19px; letter-spacing: -.2px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-atendimento .at-lh .at-status { margin-right: 2px; flex-shrink: 0; padding: 4px 8px; font-size: 12px; }
#view-atendimento .at-lh > .at-ic { width: 34px; height: 34px; }
/* nova conversa: janela */
.at-mbg .at-nc { width: auto; }
.at-mbg .at-nc h2 { margin-bottom: 14px; }
.at-mbg .at-nc-busca { position: relative; }
.at-mbg .at-nc-lupa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8696a0; font-size: 18px; pointer-events: none; }
.at-mbg .at-nc-busca input { box-sizing: border-box; width: 100%; background: #1d282f; border: 1px solid #ffffff1f; border-radius: 10px; color: #e9edef; padding: 11px 14px 11px 40px; font-size: 14.5px; outline: 0; font-family: inherit; }
.at-mbg .at-nc-busca input:focus { border-color: #21c063; }
.at-mbg .at-nc-l { margin-top: 12px; max-height: 50vh; overflow-y: auto; overflow-x: hidden; min-height: 92px; }
.at-mbg .at-nc-dica { color: #8696a0; font-size: 13.5px; line-height: 1.5; padding: 6px 4px; text-align: left; }
.at-mbg .at-nc-dica b { color: #d1d7db; font-weight: 600; }
.at-mbg .at-nc-dica ul { margin: 8px 0 0; padding-left: 18px; }
.at-mbg .at-nc-dica li { margin: 3px 0; }
.at-mbg .at-nc-sec { color: #21c063; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 10px 8px 4px; }
.at-mbg .at-nc-ir { margin-left: auto; color: #8696a0; font-size: 20px; padding-left: 8px; }
.at-mbg .at-nc .at-enc-i:hover .at-nc-ir { color: #e9edef; }
/* número oficial */
#view-atendimento .at-jan-fechada { color: #ffbc2d; }
.at-mbg .at-cfg-dica { color: #8696a0; font-size: 12.5px; margin: 2px 0 8px 26px; }
.at-mbg .at-of-txt { color: #aebac1; font-size: 13px; line-height: 1.5; margin: 6px 0 10px; }
.at-mbg .at-of-txt b { color: #e9edef; }
.at-mbg .at-of-av { background: #3a321433; border-left: 3px solid #ffbc2d; padding: 8px 10px; border-radius: 6px; }
.at-mbg .at-of-l { display: block; color: #8696a0; font-size: 12px; margin: 10px 0 4px; }
.at-mbg .at-of-v { display: flex; gap: 8px; align-items: center; }
.at-mbg .at-of-v code { flex: 1; min-width: 0; background: #1d282f; border: 1px solid #ffffff1f; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #e9edef; overflow-wrap: anywhere; }
.at-mbg .at-of-v input { flex: 1; min-width: 0; box-sizing: border-box; background: #1d282f; border: 1px solid #ffffff1f; border-radius: 8px; padding: 8px 10px; color: #e9edef; font-size: 13px; outline: 0; }
.at-mbg .at-of-cp { flex-shrink: 0; background: #2a3942; border: 0; color: #e9edef; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.at-mbg .at-of-cp:hover { background: #374a55; }
.at-mbg .at-of-ok { color: #21c063; margin-left: 6px; }
.at-mbg .at-of-no { color: #ffbc2d; margin-left: 6px; }

/* Disparo de cobrança (template do número oficial) na linha do tempo */
#view-atendimento .at-disp { display: flex; justify-content: flex-end; margin: 6px 0; padding: 0 6%; }
#view-atendimento .at-disp-b { position: relative; max-width: 440px; background: #1f2c33; border: 1px dashed #3b4a54; border-radius: 8px; padding: 6px 10px 18px; color: #d1d7db; font-size: 13.5px; line-height: 1.4; }
#view-atendimento .at-disp-t { font-size: 12px; font-weight: 600; color: #8696a0; margin-bottom: 3px; }
#view-atendimento .at-disp-x { white-space: pre-wrap; word-break: break-word; }
#view-atendimento .at-disp-l { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff14; text-align: center; }
#view-atendimento .at-disp-l a { color: #53bdeb; text-decoration: none; font-weight: 500; }
#view-atendimento .at-disp-h { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #8696a0; }

/* ── O.S. sugerida pela Luana (card na conversa) ── */
.at-osc-b { max-width: min(560px, 92%); width: 100%; padding: 0; overflow: hidden; }
.at-osc { padding: 10px 12px 12px; color: var(--at-t); font-size: 13.5px; }
.at-osc-h { font-weight: 600; color: var(--at-warn); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.at-osc.ok .at-osc-h { color: #4fe08a; }
.at-osc.no .at-osc-h { color: var(--at-t2); }
.at-osc-st { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #ffbc2d26; color: #ffd27a; }
.at-osc-sub { margin-top: 4px; color: var(--at-t); }
.at-osc-por { margin-top: 2px; font-size: 12px; color: var(--at-t2); }
.at-osc-cli { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--at-t); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.at-osc-cli span { font-weight: 400; color: var(--at-t2); }
.at-osc-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 10px; }
.at-osc-g label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--at-t2); min-width: 0; }
.at-osc-g label.larga { grid-column: 1 / -1; }
.at-osc-g select, .at-osc-g input, .at-osc-g textarea, .at-osc-rec input {
  background: #00000033; border: 1px solid #ffffff1f; border-radius: 6px; color: var(--at-t); font: inherit; font-size: 13.5px; padding: 6px 8px; outline: 0; min-width: 0; width: 100%; box-sizing: border-box; }
.at-osc-g select:focus, .at-osc-g input:focus, .at-osc-g textarea:focus, .at-osc-rec input:focus { border-color: var(--at-warn); }
.at-osc-g select option { background: #2e2f2f; }
.at-osc-g textarea { resize: vertical; line-height: 1.4; font-size: 13px; }
.at-osc-g input[type=date] { color-scheme: dark; }
.at-osc-data { display: flex; gap: 6px; }
.at-osc-hoje { flex-shrink: 0; border: 1px solid #ffffff1f; background: #ffffff0f; color: var(--at-t); border-radius: 6px; padding: 0 10px; cursor: pointer; font: inherit; font-size: 12.5px; }
.at-osc-hoje:hover { background: #ffffff1f; }
.at-osc-dest { margin-top: 10px; font-size: 12.5px; color: var(--at-t2); }
.at-osc-dest b { color: var(--at-t); }
.at-osc-bts, .at-osc-rec { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.at-osc-pill { margin-right: auto; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #ffffff12; color: var(--at-t); }
.at-osc-pill small { font-weight: 400; color: var(--at-t2); margin-left: 3px; font-size: 12px; }
.at-osc-pill.c-backlog { background: #64748b33; color: #cbd5e1; }
.at-osc-pill.c-agendado { background: #fb923c26; color: #fdba74; }
.at-osc-pill.c-pendente { background: #f59e0b26; color: #fcd34d; }
.at-osc-rec input { flex: 1; }
.at-osc-bt { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.at-osc-bt.ok { background: var(--at-verde); color: #0b141a; }
.at-osc-bt.ok:hover { background: var(--at-verdeT); }
.at-osc-bt.sec { background: #ffffff14; color: var(--at-t); }
.at-osc-bt.sec:hover { background: #ffffff24; }
.at-osc-bt.no { background: var(--at-bad); color: #fff; }
.at-osc-bt:disabled { opacity: .55; cursor: default; }
#view-atendimento .at-etq.osp { background: #ffbc2d26; color: #ffd27a; flex-shrink: 0; }
@media (max-width: 600px) { .at-osc-g { grid-template-columns: 1fr; } }

/* ── O.S. para aprovar: faixa fixa acima do campo de digitar + card no modal ── */
#view-atendimento .at-osbar { display: flex; flex-direction: column; gap: 4px; margin: 0 4px 6px; }
#view-atendimento .at-osb { display: flex; align-items: center; gap: 10px; background: #3d3416; border: 1px solid #6b5a1f; border-radius: 10px; padding: 6px 6px 6px 10px; font-size: 13px; cursor: pointer; }
#view-atendimento .at-osb:hover { background: #4a3f1a; }
#view-atendimento .at-osb > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#view-atendimento .at-osb b { font-weight: 600; color: #ffd27a; font-size: 12px; }
#view-atendimento .at-osb span:not(.at-osb-i) { color: #d1d7db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-atendimento .at-osb-bt { flex-shrink: 0; border: 0; border-radius: 999px; padding: 6px 14px; background: #ffbc2d; color: #1b1608; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; }
#view-atendimento .at-osb-bt:hover { background: #ffd27a; }
#view-atendimento .at-osb.cli { background: #1d2b33; border-color: #2c4350; }
#view-atendimento .at-osb.cli:hover { background: #23353f; }
#view-atendimento .at-osb.cli b { color: #53bdeb; }
#view-atendimento .at-osb.cli.warn b { color: #ffd27a; }
#view-atendimento .at-osb.cli.ok { background: #13281d; border-color: #1f4a32; }
#view-atendimento .at-osb.cli.ok b { color: #4fe08a; }
#view-atendimento .at-osb.cli.no { opacity: .7; }
#view-atendimento .at-osb-x { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; color: #8696a0; font-size: 13px; display: grid; place-items: center; }
#view-atendimento .at-osb-x:hover { background: #ffffff14; color: #e9edef; }
#view-atendimento .at-cad-bts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
#view-atendimento .at-avisos { display: flex; align-items: center; min-width: 0; margin: 0 4px 8px; padding-top: 8px; border-top: 1px solid #ffffff12; font-size: 13px; color: var(--at-t2); }
#view-atendimento .at-avisos:empty { display: none; }
#view-atendimento .at-tp-it { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
#view-atendimento .at-tp-it + .at-tp-it { border-left: 1px solid #ffffff12; margin-left: 12px; padding-left: 12px; }
#view-atendimento .at-tp-it.os { cursor: pointer; }
#view-atendimento .at-tp-it.os:hover .at-tp-tx { color: var(--at-t); }
#view-atendimento .at-tp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--at-lua); }
#view-atendimento .at-tp-b { font-weight: 600; flex-shrink: 0; color: var(--at-lua); }
#view-atendimento .at-tp-dot.urg { background: #ff8a96; } #view-atendimento .at-tp-b.urg { color: #ff8a96; }
#view-atendimento .at-tp-dot.nos, #view-atendimento .at-tp-dot.warn { background: #ffbc2d; } #view-atendimento .at-tp-b.nos, #view-atendimento .at-tp-b.warn { color: #ffbc2d; }
#view-atendimento .at-tp-dot.prz, #view-atendimento .at-tp-dot.os { background: #53bdeb; } #view-atendimento .at-tp-b.prz, #view-atendimento .at-tp-b.os { color: #53bdeb; }
#view-atendimento .at-tp-dot.os.warn { background: #ffbc2d; } #view-atendimento .at-tp-b.os.warn { color: #ffbc2d; }
#view-atendimento .at-tp-dot.cli { background: #8696a0; } #view-atendimento .at-tp-b.cli { color: #8696a0; }
#view-atendimento .at-tp-dot.ok { background: #4fe08a; } #view-atendimento .at-tp-b.ok { color: #4fe08a; }
#view-atendimento .at-tp-tx { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-atendimento .at-tp-x { margin-left: auto; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; color: var(--at-t3); font-size: 12px; }
#view-atendimento .at-tp-x:hover { background: #ffffff12; color: var(--at-t); }
#view-atendimento .at-osb.vg { background: #26223a; border-color: #4a3f73; cursor: default; }
#view-atendimento .at-osb.vg .at-osb-i { color: #c4a6ff; }
#view-atendimento .at-osb.vg b { color: #c4a6ff; }
#view-atendimento .at-osb.vg.urg b { color: #ff8a96; }
#view-atendimento .at-osb.vg.nos b { color: #ffbc2d; }
#view-atendimento .at-osb.vg.prz b { color: #53bdeb; }
#view-atendimento .at-osb.vg.ok b { color: #4fe08a; }
#view-atendimento .at-ld-lapis { margin-left: 6px; width: 22px; height: 22px; border-radius: 50%; color: var(--at-t3); font-size: 14px; line-height: 22px; text-align: center; opacity: .75; }
#view-atendimento .at-ld-lapis:hover { opacity: 1; color: var(--at-t); background: #ffffff12; }
#view-atendimento .at-ld-st { font-size: 12px; color: var(--at-t3); margin: -4px 0 8px; }
#view-atendimento .at-ld-voltar { background: none; border: 0; color: var(--at-acc, #53bdeb); font-size: 13px; padding: 0 0 8px; cursor: pointer; }
#view-atendimento .at-ld-voltar:hover { text-decoration: underline; }
#view-atendimento .at-ld-dica { font-size: 12.5px; color: var(--at-t2); background: #ffffff08; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
#view-atendimento .at-ld-form label { display: block; font-size: 12px; color: var(--at-t2); margin: 8px 0 4px; }
#view-atendimento .at-ld-form input, #view-atendimento .at-ld-form select { box-sizing: border-box; width: 100%; background: #1d1f1f; border: 0; border-bottom: 2px solid #ffffff1f; border-radius: 6px 6px 0 0; padding: 8px 10px; outline: 0; font-size: 14px; color: var(--at-t); font-family: inherit; }
#view-atendimento .at-ld-form input:focus, #view-atendimento .at-ld-form select:focus { border-bottom-color: #21c063; }
#view-atendimento .at-ld-form select option { background: #2e2f2f; color: #e9edef; }
.at-modal.at-modal-os { width: min(620px, calc(100vw - 24px)); padding: 6px 4px 6px; background: #1f1c12; border: 1px solid #6b5a1f; }
#view-atendimento .at-osn { margin-top: 8px; padding-top: 6px; border-top: 1px solid #ffffff1a; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #ffd27a; }
#view-atendimento .at-osn.ok { color: #4fe08a; }
#view-atendimento .at-osn.no { color: #8696a0; }
#view-atendimento .at-osn button { border: 0; border-radius: 999px; padding: 4px 12px; background: #ffbc2d; color: #1b1608; font-weight: 600; font-size: 12.5px; cursor: pointer; font-family: inherit; }

/* Botão da ficha completa ao lado do nome no painel "Dados do cliente" */
#view-atendimento .at-perfil .at-ficha-bt { display: inline-grid; place-items: center; vertical-align: -2px; margin-left: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none;
  color: var(--at-verdeT); cursor: pointer; }
#view-atendimento .at-ac .at-i svg { display: inline-block; vertical-align: -3px; }
#view-atendimento .at-perfil .at-ficha-bt:hover { background: var(--at-hover); }
.at-prog h2 { margin: 0 0 14px; }
.at-prog-l { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.at-prog-l li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8696a0; }
.at-prog-l li.ok { color: #e9edef; }
.at-prog-l li.agora { color: #e9edef; font-weight: 600; }
.at-prog-i { width: 20px; height: 20px; flex: 0 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #ffffff26; font-size: 12px; }
.at-prog-l li.ok .at-prog-i { background: #21c063; border-color: #21c063; color: #0b141a; font-weight: 700; }
.at-prog-l li.agora .at-prog-i { border-color: transparent; }
.at-prog-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #21c06344; border-top-color: #21c063; animation: at-prog-g .8s linear infinite; }
@keyframes at-prog-g { to { transform: rotate(360deg); } }
.at-prog-frase { font-size: 13px; color: #8696a0; font-style: italic; min-height: 18px; }

/* ── Orientar Luana: painel lateral (só a equipe vê) ── */
#view-atendimento .at-notabar button.lua.aberto { background: var(--at-campo) !important; color: var(--at-t); }
#view-atendimento .at-luap { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; z-index: 40; display: flex; flex-direction: column;
  background: #131320; border-left: 1px solid #4a3d73; box-shadow: -12px 0 28px #0008; color: var(--at-t); font-size: 13.5px; }
#view-atendimento .at-luap-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #4a3d73; }
#view-atendimento .at-luap-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8f6bff, #c4a6ff); display: grid; place-items: center; font-weight: 700; color: #1b1430; flex-shrink: 0; }
#view-atendimento .at-luap-h b { display: block; }
#view-atendimento .at-luap-h small { color: #a99ad6; font-size: 11.5px; }
#view-atendimento .at-luap-x { margin-left: auto; background: transparent; border: 0; font-size: 18px; color: var(--at-t2); cursor: pointer; padding: 4px 8px; }
#view-atendimento .at-luap-ativa { display: none; flex-shrink: 0; border-bottom: 1px solid #4a3d73; background: #1f1a33; font-size: 12.5px; }
#view-atendimento .at-luap-ativa.on { display: block; }
#view-atendimento .at-luap-ativa .tg { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 14px; text-align: left; cursor: pointer; }
#view-atendimento .at-luap-ativa .t { color: var(--at-lua); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
#view-atendimento .at-luap-ativa .res { flex: 1; min-width: 0; color: #a99ad6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-atendimento .at-luap-ativa .seta { color: #a99ad6; transition: transform .15s; }
#view-atendimento .at-luap-ativa.aberta .seta { transform: rotate(180deg); }
#view-atendimento .at-luap-ativa.aberta .res { visibility: hidden; }
#view-atendimento .at-luap-ativa .corpo { display: none; max-height: 170px; overflow-y: auto; padding: 0 14px 10px; line-height: 1.45; }
#view-atendimento .at-luap-ativa.aberta .corpo { display: block; }
#view-atendimento .at-luap-ativa .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: #a99ad6; font-size: 11.5px; }
#view-atendimento .at-luap-ativa .r button { background: transparent; border: 1px solid #4a3d73; border-radius: 12px; padding: 2px 10px; font-size: 11.5px; color: #dcd2ff; cursor: pointer; }
#view-atendimento .at-luap-m { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
#view-atendimento .at-luap-vazio { color: #a99ad6; font-size: 12.5px; }
#view-atendimento .at-luap-b { max-width: 90%; padding: 8px 11px; border-radius: 10px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
#view-atendimento .at-luap-b.eu { background: #24406b; align-self: flex-end; }
#view-atendimento .at-luap-b.lu { background: #2a2340; border: 1px solid #4a3d73; align-self: flex-start; }
#view-atendimento .at-luap-b.conf { border-color: var(--at-lua); }
#view-atendimento .at-luap-b .bts { display: flex; gap: 6px; margin-top: 9px; }
#view-atendimento .at-luap-b .bts button { border-radius: 14px; padding: 5px 12px; font-size: 12.5px; border: 1px solid #4a3d73; background: transparent; color: #dcd2ff; cursor: pointer; }
#view-atendimento .at-luap-b .bts button.ok { background: var(--at-lua); border-color: var(--at-lua); color: #1b1430; font-weight: 600; }
#view-atendimento .at-luap-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
#view-atendimento .at-luap-sug:empty { display: none; }
#view-atendimento .at-luap-sug button { background: transparent; border: 1px solid #4a3d73; border-radius: 14px; padding: 4px 10px; font-size: 12px; color: #dcd2ff; cursor: pointer; }
#view-atendimento .at-luap-sug button:hover { background: #2a2340; }
#view-atendimento .at-luap-d { padding: 10px 14px 14px; border-top: 1px solid #4a3d73; }
#view-atendimento .at-luap-l { display: flex; gap: 8px; align-items: flex-end; }
#view-atendimento .at-luap-l textarea { flex: 1; resize: none; max-height: 110px; background: #1c1b2c; border: 1px solid #4a3d73; border-radius: 16px; padding: 9px 14px; color: var(--at-t); font: inherit; outline: none; }
#view-atendimento .at-luap-l textarea:focus { border-color: var(--at-lua); }
#view-atendimento .at-luap-env { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--at-lua); color: #1b1430; font-size: 16px; cursor: pointer; flex-shrink: 0; }
#view-atendimento .at-luap-d small { display: block; color: #8f84b8; font-size: 11px; margin-top: 7px; }
#view-atendimento .at-luap-dig span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--at-lua); animation: at-luap-p 1s infinite; }
#view-atendimento .at-luap-dig span:nth-child(2) { animation-delay: .15s; } #view-atendimento .at-luap-dig span:nth-child(3) { animation-delay: .3s; }
@keyframes at-luap-p { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (max-width: 760px) { #view-atendimento .at-luap { width: 100%; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { #view-atendimento .at-luap-dig span { animation: none; } }

/* Janela de 24h do oficial fechada: atalho pra mandar pelo outro número */
.at-outro-p { color: var(--at-t2); font-size: 13px; margin: 6px 0; }
.at-outro-l { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; max-height: 220px; overflow-y: auto; }
.at-outro-l div { background: var(--at-out); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── Celular (23/11/2026): a lista estourava a largura da tela (a coluna crescia com o texto das conversas) e o
   cabeçalho e a barra da conversa passavam da borda. Tudo aqui vale só até 768px. ── */
@media (max-width: 768px) {
  /* A tela ocupa exatamente o espaço visível do celular: só as mensagens rolam, o cabeçalho (com o voltar) e o campo de
     digitar ficam fixos. Antes a página inteira rolava (a tela crescia com a conversa). --at-vh/--at-vt vêm do JS e
     acompanham o teclado; sem eles vale a altura do aparelho. Fica abaixo do menu lateral (z-index 48/49). */
  #view-atendimento { position: fixed; left: 0; right: 0; top: var(--at-vt, 0px); height: var(--at-vh, 100dvh); min-height: 0; max-height: none;
    width: 100%; max-width: 100vw; padding-bottom: 0 !important; overflow: hidden; z-index: 40; overscroll-behavior: none; }
  #view-atendimento .at-app { height: 100%; min-height: 0; }
  /* Com o Atendimento na tela, a página por trás não rola (no iPhone o arrasto "vazava" e levava cabeçalho e campo junto). */
  html:has(#view-atendimento:not([style*="none"])), html:has(#view-atendimento:not([style*="none"])) body { overflow: hidden; overscroll-behavior: none; height: 100%; }
  /* o campo de digitar e o cabeçalho nunca encolhem nem saem do lugar; quem cede espaço são as mensagens */
  #view-atendimento .at-ch, #view-atendimento .at-rodape { flex: 0 0 auto; }
  #view-atendimento .at-msgs { flex: 1 1 0; min-height: 0; }
  #view-atendimento .at-col-chat, #view-atendimento .at-col-lista { height: 100%; min-height: 0; overflow: hidden; }
  #view-atendimento .at-msgs, #view-atendimento .at-lista { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #view-atendimento .at-app { grid-template-columns: minmax(0, 1fr); width: 100%; }
  #view-atendimento .at-col-lista, #view-atendimento .at-col-chat { min-width: 0; width: 100%; border-right: 0; }
  #view-atendimento .at-lh { padding: 10px 6px 6px 12px; }
  #view-atendimento .at-lh h1 { font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #view-atendimento .at-busca-l { margin: 2px 6px 6px 12px; }
  #view-atendimento .at-busca { min-width: 0; flex: 1; }
  #view-atendimento .at-chips { padding: 2px 12px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #view-atendimento .at-chips::-webkit-scrollbar { display: none; }
  #view-atendimento .at-chips > * { flex-shrink: 0; }
  #view-atendimento .at-item { margin: 0 4px; padding: 0 10px; gap: 11px; height: 78px; }
  #view-atendimento .at-item > div, #view-atendimento .at-item .at-meio { min-width: 0; }
  #view-atendimento .at-metricas { padding-left: 12px; padding-right: 12px; }
  /* cabeçalho da conversa: tudo cabe; o nome encolhe antes dos botões */
  #view-atendimento .at-ch { padding: 8px 6px 8px 4px; gap: 8px; height: 58px; }
  #view-atendimento .at-ch .at-info { min-width: 0; flex: 1; }
  #view-atendimento .at-ch .at-av { width: 38px; height: 38px; flex-shrink: 0; }
  #view-atendimento .at-acoes { gap: 2px; }
  #view-atendimento .at-acoes .at-pb { padding-left: 9px; padding-right: 9px; min-width: 38px; justify-content: center; }
  #view-atendimento .at-acoes .at-ic, #view-atendimento .at-ch > .at-ic { width: 38px; height: 38px; flex-shrink: 0; }
  #view-atendimento .at-robo-t { display: none; }
  /* o nome abre os dados do cliente (toque nele); o ⓘ some pra sobrar espaço pro nome */
  #view-atendimento .at-ch > .at-ic[title="Dados do cliente"] { display: none; }
  #view-atendimento .at-robo { padding: 2px; gap: 0; min-width: 0; }
  #view-atendimento .at-robo > :not(.at-robo-bt):not(button) { display: none; }
  /* muitos botões (Luana, transferir, devolver, resolver): a foto sai e o nome fica */
  #view-atendimento .at-ch:has(.at-acoes > :nth-child(4)) .at-av { display: none; }
  /* barra Responder / Nota / Agendar / Luana: numa linha só; o aviso desce pra linha de baixo */
  #view-atendimento .at-rodape { padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  #view-atendimento .at-notabar { flex-wrap: wrap; gap: 4px; padding-left: 0; row-gap: 2px; }
  #view-atendimento .at-notabar button { padding: 4px 9px; flex-shrink: 0; }
  #view-atendimento .at-notabar .at-nb-x { display: none; }
  #view-atendimento .at-notabar .at-aviso { flex-basis: 100%; margin-left: 0; text-align: left; padding: 0 4px; order: 9; }
  #view-atendimento .at-osbar, #view-atendimento .at-avisos { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  /* digitar sem o iPhone dar zoom na tela (campo com letra menor que 16px dá zoom) */
  #view-atendimento textarea, #view-atendimento input[type="text"], #view-atendimento input:not([type]), #view-atendimento select { font-size: 16px; }
  #view-atendimento .at-msgs { padding: 10px 8px; }
  #view-atendimento .at-b { max-width: 88%; }
  /* painéis laterais ocupam a tela inteira */
  #view-atendimento .at-col-cli:not(.fechado) { position: absolute; inset: 0; width: 100%; z-index: 30; }
  #view-atendimento .at-luap { width: 100%; z-index: 45; }
  .at-modal { width: calc(100vw - 20px); padding: 18px 16px 14px; }
  .at-menu { max-width: calc(100vw - 16px); }
}

/* Tela de toque: a setinha que aparece ao passar o mouse na conversa da lista fazia o iPhone gastar o primeiro toque
   "passando o mouse" (mostrava a seta) e só abrir a conversa no segundo. Sem mouse, a seta não aparece. */
@media (hover: none), (max-width: 768px) {
  #view-atendimento .at-item:hover .at-seta { display: none; }
  /* Igual ao WhatsApp do celular: a lista não marca a conversa aberta nem fica com o destaque do último toque.
     Só acende enquanto o dedo está em cima. */
  #view-atendimento .at-item:hover, #view-atendimento .at-item.on { background: transparent; }
  #view-atendimento .at-item:hover .at-meio, #view-atendimento .at-item.on .at-meio { border-color: #ffffff0d; }
  #view-atendimento .at-item:active { background: var(--at-hover); }
  #view-atendimento .at-item { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
}

/* Celular: movimento das telas (23/11/2026). A conversa, os dados do cliente e o painel da Luana entram deslizando da
   direita; ao arrastar pra fechar, a tela acompanha o dedo e a lista aparece por baixo. */
@media (max-width: 768px) {
  #view-atendimento .at-app { position: relative; }
  #view-atendimento.chat-aberto .at-col-chat { animation: at-entra-dir .24s cubic-bezier(.2, .8, .2, 1); }
  #view-atendimento .at-col-cli:not(.fechado), #view-atendimento .at-luap { animation: at-entra-dir .24s cubic-bezier(.2, .8, .2, 1); box-shadow: -14px 0 30px #000a; }
  #view-atendimento:not(.chat-aberto):not(.at-arrasta) .at-col-lista { animation: at-entra-esq .22s ease-out; }
  /* arrastando a conversa pra fechar: a lista fica por baixo, parada, e a conversa desliza por cima com sombra */
  #view-atendimento.at-arrasta .at-col-lista { display: flex !important; position: absolute; inset: 0; z-index: 1; pointer-events: none; animation: none; }
  #view-atendimento.at-arrasta .at-col-chat { position: absolute; inset: 0; z-index: 2; box-shadow: -14px 0 30px #000a; animation: none; }
}
@keyframes at-entra-dir { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes at-entra-esq { from { transform: translate3d(-22%, 0, 0); opacity: .55; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #view-atendimento .at-col-chat, #view-atendimento .at-col-cli, #view-atendimento .at-luap, #view-atendimento .at-col-lista { animation: none !important; }
}

/* Dia flutuante (23/11/2026): o separador do dia fica preso no topo enquanto se rola as mensagens daquele dia, como no
   WhatsApp, pra sempre dar pra saber de quando é o que está na tela. O do dia seguinte entra por cima do anterior. */
#view-atendimento .at-diabloco { display: flex; flex-direction: column; flex-shrink: 0; }
#view-atendimento .at-diabloco > .at-data { position: sticky; top: 6px; z-index: 6; background: #1d1f1f; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }

/* Busca por mensagem: termo marcado na lista e destaque na mensagem ao abrir */
.at-prev mark.at-achou { background: #f5c5184d; color: var(--at-t); border-radius: 3px; padding: 0 1px; }
.at-b.at-achada { animation: at-achada 2.6s ease-out; }
@keyframes at-achada { 0%, 55% { box-shadow: 0 0 0 3px #f5c518; filter: brightness(1.25); } 100% { box-shadow: 0 0 0 3px #f5c51800; filter: none; } }

/* Busca: clientes e números sem conversa, com a opção de chamar no WhatsApp */
.at-contatos { margin-top: 6px; padding-bottom: 8px; }
.at-ct-tit { padding: 14px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--at-t2); border-top: 1px solid #ffffff12; margin: 0 8px; }
.at-item.at-ct { height: 78px; }
.at-ct-av { width: 49px; height: 49px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #25d366; background: #25d3661f; border: 1px dashed #25d36666; }
.at-etq.ct { color: #25d366; background: #25d3661a; border: 1px solid #25d36640; font-weight: 700; }

/* Inadimplência (atendimento-inadimplencia.js) */
.at-etq.inad { background: #ff9d3d26; color: #ffb56b; }
.at-l3 .at-etq.inad { flex-shrink: 0; }
.at-inad { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #ff9d3d1a; border-left: 3px solid #ff9d3d; }
.at-inad.leve { background: #ffffff0d; border-left-color: #8696a0; }
.at-inad b { display: block; font-size: 13px; color: #ffb56b; }
.at-inad.leve b { color: inherit; }
.at-inad small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--at-t2); }
