/* Padrão visual da Central (28/10/2026): UMA camada global que deixa todas as telas da equipe no mesmo desenho do ERP
   (botões e campos em pílula, abas em trilho, tabelas com cabeçalho grafite, topo único) e legíveis nos três temas.
   Tema claro, escuro (data-bs-theme="dark") e Glass (data-tema="glass", que roda por cima do escuro).

   Carregado por ÚLTIMO (Views/Shared/_MetaCentral.cshtml, depois de layout-flutuante.css e tema-glass.css) e só vale dentro
   de body.atendimento-body:not(#_) (telas da equipe); login, captura pública e telas /m não são afetados.
   Regra de ouro: cor, fundo e contorno vêm dos tokens --c-* abaixo. Telas novas e blocos <style> das views devem usar
   var(--c-...) e nunca cor fixa (cinza azulado, branco, #24344b...), senão quebram no escuro/Glass.

   Índice: 1 tokens | 2 texto | 3 topo | 4 cartões | 5 botões | 6 campos | 7 abas | 8 tabelas e listas | 9 selos e avisos |
           10 janelas (modais) | 11 telas específicas | 12 Glass | 13 celular */

/* =============================== 1. TOKENS =============================== */
:root {
    --c-primaria: #149a72; --c-primaria-forte: #0e7d5c; --c-link: #0b7a5a; --c-sobre-primaria: #fff;
    --c-texto: #1c2a3a; --c-texto2: #33475c; --c-suave: #566679;
    --c-fundo: #f4f7f9; --c-card: #fff; --c-card2: #f5f8fa; --c-hover: #edf7f3;
    --c-borda: #dbe3ea; --c-borda2: #c4d0db;
    --c-campo: #fff; --c-campo-borda: #c4d0db; --c-foco: rgba(20, 154, 114, .18);
    --c-cab1: #40474e; --c-cab2: #2f3439;
    --c-linha: #fff; --c-linha-alt: #f8fafb; --c-linha-hover: #edf7f3;
    --c-ok-bg: #e3f4ed; --c-ok-fg: #08684c;
    --c-aviso-bg: #fff2d6; --c-aviso-fg: #7a4a00;
    --c-erro-bg: #fdeaea; --c-erro-fg: #a1261b;
    --c-info-bg: #e6eefb; --c-info-fg: #1f4f9e;
    --c-neutro-bg: #eef1f5; --c-neutro-fg: #44546a;
    --c-sombra: 0 4px 16px rgba(24, 40, 60, .07);
    --c-raio: 16px;
    /* topo */
    --t-bg: #fff; --t-fg: #111827; --t-suave: #5b6675; --t-borda: #e2e7ed; --t-hover: #eef2f6; --t-avatar: #f3f5f8; --t-icone: #0b7a5a;
    --t-sombra: 0 10px 30px rgba(17, 24, 39, .08), 0 1px 2px rgba(17, 24, 39, .06); --t-blur: none;
    /* botões */
    --b-chip: rgba(0, 0, 0, .06);
}
html[data-bs-theme="dark"] {
    --c-primaria: #3ecda1; --c-primaria-forte: #2fb88e; --c-link: #5ed8ae; --c-sobre-primaria: #04271d;
    --c-texto: #e8edf1; --c-texto2: #cdd5dc; --c-suave: #aab4bd;
    --c-fundo: #0a0a0a; --c-card: #1a1b1d; --c-card2: #222426; --c-hover: rgba(62, 205, 161, .10);
    --c-borda: #33373b; --c-borda2: #474d53;
    --c-campo: #202326; --c-campo-borda: #474d53; --c-foco: rgba(62, 205, 161, .22);
    --c-cab1: #3d444a; --c-cab2: #2a2f33;
    --c-linha: #1a1b1d; --c-linha-alt: #1e2022; --c-linha-hover: rgba(62, 205, 161, .09);
    --c-ok-bg: rgba(62, 205, 161, .16); --c-ok-fg: #8fe6c8;
    --c-aviso-bg: rgba(240, 180, 60, .16); --c-aviso-fg: #f2c866;
    --c-erro-bg: rgba(255, 107, 120, .16); --c-erro-fg: #ffadb5;
    --c-info-bg: rgba(110, 160, 255, .16); --c-info-fg: #a9c6ff;
    --c-neutro-bg: rgba(255, 255, 255, .08); --c-neutro-fg: #c3ccd4;
    --c-sombra: 0 6px 20px rgba(0, 0, 0, .35);
    --t-bg: #101112; --t-fg: #f1f4f6; --t-suave: #aab4bd; --t-borda: rgba(255, 255, 255, .10); --t-hover: rgba(255, 255, 255, .10); --t-avatar: #262a2e; --t-icone: #5ed8ae;
    --t-sombra: 0 10px 30px rgba(0, 0, 0, .40); --t-blur: none;
    --b-chip: rgba(255, 255, 255, .13);
}
html[data-tema="glass"] {
    --c-texto: #f3f6f8; --c-texto2: #dde4ea; --c-suave: #bcc6ce;
    --c-card: rgba(255, 255, 255, .07); --c-card2: rgba(255, 255, 255, .05); --c-hover: rgba(255, 255, 255, .10);
    --c-borda: rgba(255, 255, 255, .16); --c-borda2: rgba(255, 255, 255, .28);
    --c-campo: rgba(255, 255, 255, .09); --c-campo-borda: rgba(255, 255, 255, .26);
    --c-cab1: rgba(8, 10, 12, .62); --c-cab2: rgba(8, 10, 12, .50);
    --c-linha: transparent; --c-linha-alt: rgba(255, 255, 255, .035); --c-linha-hover: rgba(255, 255, 255, .10);
    --c-sombra: 0 8px 32px rgba(0, 0, 0, .35);
    --t-bg: rgba(12, 12, 12, .50); --t-blur: blur(18px) saturate(160%);
}
/* Telas de Leads/Contabilidades/Prospecção/Assistente usam --l-*; apontam para os mesmos tokens. */
html body.atendimento-body:not(#_) .leads-page {
    --l-bg: var(--c-card); --l-suave: var(--c-card2); --l-borda: var(--c-borda); --l-texto: var(--c-texto); --l-mudo: var(--c-suave); --l-verde: var(--c-link);
}
html[data-bs-theme="dark"] body.atendimento-body:not(#_) .leads-page {
    --l-verde-suave: var(--c-ok-bg); --l-quente: #ff9a8b; --l-quente-suave: var(--c-erro-bg); --l-morno: #f2c866; --l-morno-suave: var(--c-aviso-bg);
    --l-frio: #a9c6ff; --l-frio-suave: var(--c-info-bg);
}

/* As telas antigas leem --borda/--texto (definidos só para o claro em central-infinityuser.css): aqui seguem o tema. */
html { --borda: var(--c-borda); --texto: var(--c-texto); }
html body.atendimento-body:not(#_) :is(.lista-respostas article, .crm-fatura-form, .modulos-lista article) { border-color: var(--c-borda) !important; }

/* =============================== 2. TEXTO =============================== */
html body.atendimento-body:not(#_) .atendimento-main { font-size: 14px; line-height: 1.45; }

/* títulos e valores em destaque */
html body.atendimento-body:not(#_) :is(.dashboard-cards b, .grafico-card h3, .dashboard-recentes h3, .crm-colunas h3, .modulos-cliente h3, .config-painel h3,
    .ibpt-card h3, .ibpt-stats b, .parceiro-card h3, .parceiro-perfil h2, .vps-storage-title strong, .barra-item b, .recentes-lista strong,
    .historico-lista strong, .crm-lista strong, .crm-linha strong, .nota-atendente span, .ibpt-history-line b, .ibpt-modal-history article,
    .modal-atendimento h2, .modulos-cliente .crm-desconto-previa, .ticket-participantes b, .parceiro-lista strong, .painel-configuracoes h2,
    .responder .opcao-resposta-rapida b, .ticket b, .cliente-crm-cabecalho h2, .leads-painel h3, .leads-card b, .tabela-cob b) { color: var(--c-texto) !important; }

/* texto corrido */
html body.atendimento-body:not(#_) :is(.recentes-lista a, .historico-lista a, .crm-lista a, .crm-linha, .parceiro-lista > a, .consumo-dados,
    .vps-storage-values b, .vps-maintenance b, .config-form label, .parceiro-form label, .crm-desconto-form label, .crm-fatura-form label,
    .conta-configurada label, .modal-atendimento label, .responder .opcao-resposta-rapida, .ibpt-table-wrap td, .ticket, .filtros a,
    .painel-modulo summary, .config-painel p, .ibpt-modal-history span) { color: var(--c-texto2) !important; }

/* apoio e metadados (mínimo 12,5px, contraste AA nos três temas) */
html body.atendimento-body:not(#_) :is(.ticket span, .empty, .ticket-participantes, .respostas-rapidas-menu p, .responder .opcao-resposta-rapida span,
    .nota-atendente span small, .dashboard-cards small, .dashboard-cards span, .vps-storage-title small, .vps-storage-values small, .vps-maintenance small,
    .vps-maintenance em, .crm-plano small, .grafico-card header span, .barra-item, .recentes-lista time, .dashboard-vazio, .modal-atendimento p,
    .ibpt-stats span, .ibpt-card p, .ibpt-empty, .ibpt-history-line, .ibpt-history-line time, .ibpt-modal-history small, .ibpt-loader,
    .historico-lista span small, .historico-lista time, .config-painel header p, .seguranca li span, .crm-lista small, .crm-linha span,
    .modulos-cliente p, .modulos-lista article span, .parceiro-lista small, .parceiro-vazio, .parceiro-perfil p, .parceiro-card > p,
    .parceiro-table td small, .parceiro-status, .painel-modulo-corpo p, .crm-cobranca span small, .crm-fin-cliente small, .crm-evento span small,
    .lista-respostas p, .descricao-painel, .tabela-cob td small, .vivo, .chaves-api .ajuda, .cliente-crm-cabecalho p, .leads-nota, .leads-mais, .leads-card small,
    .leads-dados small, .leads-timeline small, .leads-pares small, .meta-passos li small, .assist-origem, .assist-painel dt) { color: var(--c-suave) !important; }

html body.atendimento-body:not(#_) :is(.ticket span, .ticket-participantes, .dashboard-cards small, .dashboard-cards span, .vps-storage-values b, .vps-maintenance b,
    .grafico-card header span, .historico-lista time, .historico-lista em, .crm-lista em, .consumo-dados, .modulos-lista article span,
    .parceiro-lista small, .parceiro-lista em, .parceiro-perfil em, .parceiro-form-info, .selo-modulo, .link-modulo input, .crm-cobranca span small,
    .crm-fin-cliente small, .crm-evento span small, .ibpt-history-line, .ibpt-alert, .ibpt-modal-history span, .ibpt-modal-history small,
    .ibpt-loader, .ibpt-api-status span, .opcoes-perfil-central > span, .leads-card small, .leads-dados small, .leads-timeline small,
    .leads-pares small, .leads-mais, .leads-tag, .assist-selo, .assist-origem, .assist-painel dt, .meta-url small) { font-size: 12.5px !important; }
html body.atendimento-body:not(#_) :is(.ibpt-stats span, .ibpt-card p, .ibpt-api-status b, .crm-plano small, .parceiro-table th, .parceiro-table td,
    .config-form label, .conta-configurada label, .parceiro-form label, .crm-desconto-form label, .crm-fatura-form label, .modal-atendimento label,
    .vps-storage-title small) { font-size: 13px !important; }
html body.atendimento-body:not(#_) :is(.vps-maintenance small, .vps-maintenance em, .parceiro-perfil small, .parceiro-status) { font-size: 12.5px !important; }
/* o texto de apoio dos cartões (parágrafo explicativo) não pode ficar menor que o corpo */
html body.atendimento-body:not(#_) :is(.ibpt-card > header p, .modulos-cliente > p, .modulos-cliente header p, .config-painel header p, .parceiro-card > p) {
    font-size: 13.5px !important; line-height: 1.5; margin-top: 4px; }

/* Parágrafos descritivos soltos dentro de cartões/seções (ex.: "Recursos liberados no ERP"): nunca azul fixo. */
html body.atendimento-body:not(#_) :is(.modulos-cliente, .crm-colunas section, .config-painel, .ibpt-card, .leads-painel, .parceiro-card, .grafico-card, .dashboard-recentes) p,
html body.atendimento-body:not(#_) :is(.modulos-cliente, .crm-colunas section, .config-painel, .ibpt-card, .leads-painel) > :is(small, .ajuda, .mudo, .descricao) {
    color: var(--c-suave) !important; font-size: 13.5px; line-height: 1.5;
}
html body.atendimento-body:not(#_) :is(.modulos-cliente, .crm-colunas section, .config-painel, .ibpt-card, .leads-painel, .parceiro-card) p :is(b, strong) { color: var(--c-texto) !important; }
html body.atendimento-body:not(#_) .atendimento-main :is(p, li, dd) a:not([class]) { color: var(--c-link); }

/* acentos verdes (ícones e links) */
html body.atendimento-body:not(#_) :is(.ibpt-card h3 i, .leads-painel h3 i, .modal-atendimento h2 i, .config-painel h3 i, .ibpt-stats i, .dashboard-recentes header a,
    .recentes-lista small, .historico-lista em, .crm-lista em:not(.bloqueado), .ticket small, .painel-configuracoes header span, .painel-modulo summary > i,
    details > summary:not([class])) { color: var(--c-link) !important; }
html body.atendimento-body:not(#_) details > summary:not([class]) { font-weight: 700; font-size: 13.5px; cursor: pointer; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) hr { border: 0; border-top: 1px solid var(--c-borda); }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) code { font-size: 12.5px; }
html body.atendimento-body:not(#_) .atendimento-main :focus-visible { outline: 3px solid var(--c-foco); outline-offset: 2px; }

/* Cabeçalho de página (cartão grafite): texto sempre claro, em qualquer tema */
html body.atendimento-body:not(#_) .atendimento-main :is(.config-cabecalho, .dashboard-cabecalho, .historico-cabecalho, .ibpt-header) h2 { color: #fff !important; }
html body.atendimento-body:not(#_) .atendimento-main :is(.config-cabecalho, .dashboard-cabecalho, .historico-cabecalho, .ibpt-header) p {
    color: #dbe1e6 !important; font-size: 14px !important; line-height: 1.5; }
html body.atendimento-body:not(#_) .atendimento-main :is(.config-cabecalho, .dashboard-cabecalho, .historico-cabecalho, .ibpt-header) span:first-child {
    color: #b6c0ca !important; font-size: 12px !important; letter-spacing: .12em; }
html body.atendimento-body:not(#_) .atendimento-main :is(.config-cabecalho, .dashboard-cabecalho, .historico-cabecalho, .ibpt-header) {
    background: linear-gradient(135deg, #343a40, #25292d) !important; border: 1px solid rgba(255, 255, 255, .10) !important; border-radius: 18px; }
html[data-tema="glass"] body.atendimento-body:not(#_) .atendimento-main :is(.config-cabecalho, .dashboard-cabecalho, .historico-cabecalho, .ibpt-header) {
    background: rgba(14, 16, 18, .58) !important; -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }

/* =============================== 3. TOPO (igual em TODAS as telas) =============================== */
html body.atendimento-body:not(#_) .atendimento-main .titulo-topo {
    background: var(--t-bg) !important; color: var(--t-fg) !important; border: 1px solid var(--t-borda) !important; box-shadow: var(--t-sombra) !important;
    -webkit-backdrop-filter: var(--t-blur); backdrop-filter: var(--t-blur); text-shadow: none;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; box-sizing: border-box;
}
html body.atendimento-body:not(#_) .titulo-topo h1 {
    display: block; min-width: 0; margin: 0 auto 0 0; color: var(--t-fg) !important;
    font-size: 17.5px; font-weight: 650; line-height: 1.2; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body.atendimento-body:not(#_) .titulo-topo h1 > i { display: inline-block; margin-right: 9px; font-size: 1.12em; line-height: 1; vertical-align: -.1em; color: var(--t-icone); }
/* Ícones redondos de 38px: tema, sino e (legado do chat) o botão de recolher. */
html body.atendimento-body:not(#_) .atendimento-main .titulo-topo :is(.controle-alerta, .notificacoes-central) {
    display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; box-sizing: border-box;
    border: 0; border-radius: 50%; background: transparent !important; color: var(--t-fg) !important; font-size: 19px; box-shadow: none !important; text-shadow: none !important; transform: none;
    transition: background-color .18s ease;
}
html body.atendimento-body:not(#_) .atendimento-main .titulo-topo :is(.controle-alerta, .notificacoes-central) i { font-size: 19px; line-height: 1; }
html body.atendimento-body:not(#_) .atendimento-main .titulo-topo :is(.controle-alerta, .notificacoes-central):hover { background: var(--t-hover) !important; transform: none; }
html body.atendimento-body:not(#_) .atendimento-main .titulo-topo :is(.controle-alerta, .notificacoes-central):active { background: var(--t-hover) !important; transform: scale(.96); }
/* O Atendimentos tinha um segundo botão de menu no topo (legado); o único é o .central-sidebar-toggle. */
html body.atendimento-body:not(#_) .titulo-topo .botao-minimizar { display: none !important; }
/* Perfil: avatar + nome numa pílula só. */
html body.atendimento-body:not(#_) .titulo-topo .menu-perfil-central summary { gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; color: var(--t-fg) !important; }
html body.atendimento-body:not(#_) .titulo-topo .menu-perfil-central summary:hover,
html body.atendimento-body:not(#_) .titulo-topo .menu-perfil-central[open] summary { background: var(--t-hover) !important; }
html body.atendimento-body:not(#_) .titulo-topo .avatar-central { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--t-borda) !important; background: var(--t-avatar) !important; color: var(--t-fg); box-shadow: none !important; }
html body.atendimento-body:not(#_) .titulo-topo .avatar-central i { font-size: 17px; }
html body.atendimento-body:not(#_) .titulo-topo .nome-perfil-central { color: var(--t-fg) !important; font-size: 14px; font-weight: 600; }
html body.atendimento-body:not(#_) .titulo-topo .seta-perfil-central { color: var(--t-suave); font-size: 12px; }
html body.atendimento-body:not(#_) .titulo-topo .usuario-central { background: var(--t-avatar) !important; color: var(--t-fg); }
html body.atendimento-body:not(#_) .titulo-topo .usuario-central small { color: var(--t-suave) !important; font-size: 12px; }
/* Menu do perfil */
html body.atendimento-body:not(#_) .opcoes-perfil-central {
    background: var(--c-card) !important; color: var(--c-texto) !important; border: 1px solid var(--c-borda) !important; border-radius: 16px; box-shadow: var(--c-sombra); overflow: hidden; }
html[data-bs-theme="light"] body.atendimento-body:not(#_) .opcoes-perfil-central { background: #fff !important; }
html[data-bs-theme="dark"]:not([data-tema="glass"]) body.atendimento-body:not(#_) .opcoes-perfil-central { background: #1a1b1d !important; }
html[data-tema="glass"] body.atendimento-body:not(#_) .opcoes-perfil-central { background: rgba(22, 24, 26, .92) !important; }
html body.atendimento-body:not(#_) .opcoes-perfil-central > span { color: var(--c-suave) !important; }
html body.atendimento-body:not(#_) .opcoes-perfil-central button {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 0; background: transparent !important;
    color: var(--c-texto) !important; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: none !important; }
html body.atendimento-body:not(#_) .opcoes-perfil-central button:hover { background: var(--c-hover) !important; }

@media (min-width: 801px) {
    html body.atendimento-body:not(#_) .atendimento-main .titulo-topo { height: 54px; min-height: 54px; margin: 0 10px 6px 2px; padding: 0 12px 0 62px; border-radius: 18px; }
    html body.atendimento-body:not(#_) .central-sidebar-toggle,
    html body.atendimento-body:not(#_).central-sidebar-collapsed .central-sidebar-toggle { top: 18px; width: 38px; height: 38px; border-radius: 50%; font-size: 21px; }
    /* o topo e o botão de recolher também acompanham o tema claro/escuro/Glass */
}
html body.atendimento-body:not(#_) .central-sidebar-toggle { background: var(--t-avatar); border: 1px solid var(--t-borda); color: var(--t-fg); }
html body.atendimento-body:not(#_) .central-sidebar-toggle:hover { background: var(--t-hover); }
html[data-tema="glass"] body.atendimento-body:not(#_) .central-sidebar-toggle { background: rgba(12, 12, 12, .50); }

/* =============================== 4. CARTÕES =============================== */
html body.atendimento-body:not(#_) :is(.dashboard-cards article, .grafico-card, .dashboard-recentes, .crm-colunas section, .modulos-cliente, .crm-lista, .historico-lista,
    .config-painel, .nova-resposta, .lista-respostas, .ibpt-card, .ibpt-stats article, .conta-configurada, .parceiro-lista, .parceiro-form, .parceiro-card,
    .leads-painel, .leads-kpis article, .vps-storage, .painel-modulo, .cards-mon a, .tabela-cob, .leads-coluna, .leads-fila-item,
    .leads-canais article, .crm-fin-cliente a, .seguranca li, .chaves-api .config-painel, .assist-chat, .fila, .ticket-header, .responder, .crm-pendencias) {
    background: var(--c-card) !important; border-color: var(--c-borda) !important; color: var(--c-texto); box-shadow: var(--c-sombra);
}
html body.atendimento-body:not(#_) :is(.dashboard-cards article, .grafico-card, .dashboard-recentes, .crm-colunas section, .modulos-cliente, .crm-lista, .historico-lista,
    .config-painel, .nova-resposta, .lista-respostas, .ibpt-card, .ibpt-stats article, .conta-configurada, .parceiro-lista, .parceiro-form, .parceiro-card,
    .leads-painel, .leads-kpis article, .vps-storage, .painel-modulo, .leads-fila-item, .leads-canais article) { border-radius: var(--c-raio); }
html body.atendimento-body:not(#_) :is(.leads-coluna, .conta-configurada, .seguranca li, .leads-canais article, .leads-dados div, .leads-pares div, .leads-modelo) { background: var(--c-card2) !important; }
html body.atendimento-body:not(#_) :is(.fila, .ticket-header, .responder) { box-shadow: none; border-radius: 0; }
html body.atendimento-body:not(#_) .atendimento-main .ibpt-card, html body.atendimento-body:not(#_) .atendimento-main .ibpt-stats article { padding: 20px; }
html body.atendimento-body:not(#_) .ibpt-card { margin-bottom: 18px; }
html body.atendimento-body:not(#_) .ibpt-card > header { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
html body.atendimento-body:not(#_) .ibpt-card h3 { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
/* Números do topo: ícone no canto sem encostar no rótulo. */
html body.atendimento-body:not(#_) .ibpt-stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
html body.atendimento-body:not(#_) .ibpt-table-wrap table { min-width: 0; }
html body.atendimento-body:not(#_) .ibpt-stats article { gap: 6px; padding: 18px 64px 18px 20px !important; min-height: 92px; justify-content: center; }
html body.atendimento-body:not(#_) .ibpt-stats article > i {
    right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--c-ok-bg); color: var(--c-link) !important; font-size: 18px; }
html body.atendimento-body:not(#_) .ibpt-stats span { font-size: 13px !important; font-weight: 600; line-height: 1.3; }
html body.atendimento-body:not(#_) .ibpt-stats b { font-size: 26px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
html body.atendimento-body:not(#_) .dashboard-cards article { padding: 18px; }
html body.atendimento-body:not(#_) .dashboard-cards b { font-size: 24px; font-variant-numeric: tabular-nums; }
html body.atendimento-body:not(#_) .dashboard-cards article > i { background: var(--c-ok-bg) !important; color: var(--c-link) !important; border-radius: 12px; }
html body.atendimento-body:not(#_) .barra-item > div { background: var(--c-card2) !important; border: 1px solid var(--c-borda); }

/* =============================== 5. BOTÕES =============================== */
/* Variáveis por variante (--b-*): a regra base só consome. Ordem: principal < secundário < perigo < WhatsApp. */
html body.atendimento-body:not(#_) {
    --b-bg: linear-gradient(145deg, #1faf84, #0f8662); --b-bg-h: linear-gradient(145deg, #1a9d77, #0b7554); --b-fg: #fff; --b-borda: #0d7655;
    --b-sombra: 0 4px 12px rgba(15, 134, 98, .26), inset 0 1px 0 rgba(255, 255, 255, .22); --b-chip-bg: rgba(255, 255, 255, .22);
}
html[data-bs-theme="dark"] body.atendimento-body:not(#_) {
    --b-bg: linear-gradient(145deg, #47d6aa, #2fb88e); --b-bg-h: linear-gradient(145deg, #5fe0b9, #3ec9a0); --b-fg: #04271d; --b-borda: rgba(94, 216, 174, .6);
    --b-sombra: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28); --b-chip-bg: rgba(4, 39, 29, .16);
}

/* 5.1 base: tudo que é botão/ação da Central */
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button,
    .ibpt-api-button, .dashboard-acao, .parceiro-acao, .voltar-crm, .voltar-fila, .crm-busca button, .cliente-crm-cabecalho button, .nova-resposta button,
    .modulos-cliente button, .ibpt-card form button, .historico-cabecalho form button, .config-form button, .form-redefinicao button, .fechar-painel, .excluir-resposta,
    .leads-btn, .leads-nav a.leads-btn, .acoes button, .acoes-modulo button, .link-modulo button, .crm-fatura-botao, .crm-desconto-remover, .tent-botao, .botao,
    .parceiro-remover, .vps-limpar, .link-acao, .link-pagamento-chat, .acoes-cob button, .acoes-cob a, .modal-atendimento button, .modal-atendimento footer a,
    .tarifas-acoes button, .tarifas-acoes a, .conta-configurada button, .config-painel form > button, .parceiro-form button, .parceiro-associar button,
    .parceiro-repasse button, .assist-entrada button, .assist-botoes button, .leads-form button, .leads-filtros button, .leads-mensagem button,
    .responder button, .atendimento-main main > form > button) {
    position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
    min-height: 40px; padding: 6px 18px 6px 7px !important; border: 1px solid var(--b-borda) !important; border-radius: 999px !important;
    background: var(--b-bg) !important; color: var(--b-fg) !important; box-shadow: var(--b-sombra) !important;
    font: inherit; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: 0; text-decoration: none !important; text-shadow: none !important;
    white-space: nowrap; cursor: pointer; overflow: visible !important; isolation: auto; transform: none; width: auto; text-align: center;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button,
    .ibpt-api-button, .dashboard-acao, .parceiro-acao, .voltar-crm, .voltar-fila, .crm-busca button, .cliente-crm-cabecalho button, .nova-resposta button,
    .modulos-cliente button, .ibpt-card form button, .historico-cabecalho form button, .config-form button, .form-redefinicao button, .fechar-painel, .excluir-resposta,
    .leads-btn, .acoes button, .acoes-modulo button, .link-modulo button, .crm-fatura-botao, .crm-desconto-remover, .tent-botao, .botao, .parceiro-remover, .vps-limpar,
    .link-acao, .link-pagamento-chat, .acoes-cob button, .acoes-cob a, .modal-atendimento button, .tarifas-acoes button, .tarifas-acoes a)::after { content: none !important; display: none !important; }
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button,
    .ibpt-api-button, .dashboard-acao, .parceiro-acao, .voltar-crm, .voltar-fila, .crm-busca button, .cliente-crm-cabecalho button, .nova-resposta button,
    .modulos-cliente button, .ibpt-card form button, .historico-cabecalho form button, .config-form button, .form-redefinicao button, .fechar-painel, .excluir-resposta,
    .leads-btn, .acoes button, .acoes-modulo button, .link-modulo button, .crm-fatura-botao, .crm-desconto-remover, .tent-botao, .botao, .parceiro-remover, .vps-limpar,
    .link-acao, .link-pagamento-chat, .acoes-cob button, .acoes-cob a, .modal-atendimento button, .tarifas-acoes button, .tarifas-acoes a):hover:not(:disabled) {
    background: var(--b-bg-h) !important; transform: translateY(-1px); color: var(--b-fg) !important; }
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button,
    .ibpt-api-button, .dashboard-acao, .parceiro-acao, .leads-btn, .acoes button, .acoes-modulo button, .tent-botao, .botao, .modal-atendimento button, .link-acao):active:not(:disabled) { transform: translateY(0) scale(.98); }
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .ibpt-upload-button, .ibpt-history-button, .ibpt-api-button, .dashboard-acao,
    .parceiro-acao, .leads-btn, .acoes button, .acoes-modulo button, .tent-botao, .botao, .modal-atendimento button, .link-acao, .crm-busca button, .ibpt-card form button, .fechar-painel, .excluir-resposta):disabled {
    opacity: .55; cursor: not-allowed; transform: none; }
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .ibpt-upload-button, .ibpt-history-button, .ibpt-api-button, .dashboard-acao, .parceiro-acao,
    .leads-btn, .acoes button, .acoes-modulo button, .tent-botao, .botao, .modal-atendimento button, .link-acao, .crm-busca button, .ibpt-card form button, .fechar-painel, .excluir-resposta):focus-visible {
    outline: 3px solid var(--c-foco); outline-offset: 2px; }

/* 5.2 ícone no começo vira "chip" de 27px (igual ao ERP). Sem ícone: respiro simétrico. */
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button, .ibpt-api-button,
    .dashboard-acao, .parceiro-acao, .voltar-crm, .voltar-fila, .crm-busca button, .cliente-crm-cabecalho button, .nova-resposta button, .modulos-cliente button,
    .ibpt-card form button, .historico-cabecalho form button, .config-form button, .fechar-painel, .excluir-resposta, .leads-btn, .acoes button, .acoes-modulo button,
    .link-modulo button, .crm-fatura-botao, .crm-desconto-remover, .tent-botao, .botao, .parceiro-remover, .vps-limpar, .link-acao, .acoes-cob button, .acoes-cob a,
    .modal-atendimento button, .tarifas-acoes button, .tarifas-acoes a, .conta-configurada button, .parceiro-form button, .leads-form button, .leads-filtros button):not(:has(> i:first-child, > span:first-child > i:only-child)) {
    padding: 8px 18px !important; }
html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .botao-respostas-rapidas, .ibpt-upload-button, .ibpt-history-button, .ibpt-api-button,
    .dashboard-acao, .parceiro-acao, .voltar-crm, .voltar-fila, .crm-busca button, .cliente-crm-cabecalho button, .nova-resposta button, .modulos-cliente button,
    .ibpt-card form button, .historico-cabecalho form button, .config-form button, .fechar-painel, .excluir-resposta, .leads-btn, .acoes button, .acoes-modulo button,
    .link-modulo button, .crm-fatura-botao, .crm-desconto-remover, .tent-botao, .botao, .parceiro-remover, .vps-limpar, .link-acao, .acoes-cob button, .acoes-cob a,
    .modal-atendimento button, .tarifas-acoes button, .tarifas-acoes a, .conta-configurada button, .parceiro-form button, .leads-form button, .leads-filtros button) > :is(i:first-child, span:first-child > i:only-child) {
    display: inline-grid !important; place-items: center; flex: 0 0 auto; width: 27px !important; height: 27px !important; margin: 0 !important; border-radius: 9px !important;
    background: var(--b-chip-bg) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25) !important; font-size: .85rem !important; line-height: 1; color: inherit !important; }

/* 5.3 secundário */
html body.atendimento-body:not(#_) {
    --s-bg: #fff; --s-bg-h: #eef3f6; --s-fg: #1c2a3a; --s-borda: #c4d0db; --s-sombra: 0 1px 2px rgba(24, 40, 60, .08); --s-chip: rgba(20, 154, 114, .13);
}
html[data-bs-theme="dark"] body.atendimento-body:not(#_) {
    --s-bg: rgba(255, 255, 255, .08); --s-bg-h: rgba(255, 255, 255, .15); --s-fg: #e8edf1; --s-borda: rgba(255, 255, 255, .20); --s-sombra: inset 0 1px 0 rgba(255, 255, 255, .08); --s-chip: rgba(255, 255, 255, .13);
}
html body.atendimento-body:not(#_) :is(.botao-secundario, .ibpt-history-button, .ibpt-api-button, .leads-btn.sec, .fechar-painel, .voltar-crm, .voltar-fila, .tent-botao.neutro, .botao.secundario,
    .acoes .acao-transferir, .acoes-modulo button.secundario, .link-modulo button, .botao-respostas-rapidas, .acoes-cob button, .acoes-cob a, .link-acao, .link-pagamento-chat,
    .leads-filtros .leads-btn.sec, .modal-atendimento button.botao-secundario) {
    --b-bg: var(--s-bg); --b-bg-h: var(--s-bg-h); --b-fg: var(--s-fg); --b-borda: var(--s-borda); --b-sombra: var(--s-sombra); --b-chip-bg: var(--s-chip); }
html body.atendimento-body:not(#_) :is(.botao-secundario, .ibpt-history-button, .ibpt-api-button, .leads-btn.sec, .fechar-painel, .voltar-crm, .tent-botao.neutro, .botao.secundario,
    .acoes .acao-transferir, .acoes-modulo button.secundario, .link-modulo button, .botao-respostas-rapidas, .acoes-cob button, .acoes-cob a, .link-acao) > :is(i:first-child, span:first-child > i:only-child) { color: var(--c-link) !important; }

/* 5.4 perigo */
html body.atendimento-body:not(#_) :is(.leads-btn.perigo, .excluir-resposta, .acoes .acao-fechar, .botao-fechamento, .tent-botao.perigo, .botao.perigo, .crm-desconto-remover, .parceiro-remover,
    .modal-atendimento button.botao-fechamento, .modal-atendimento button.perigo) {
    --b-bg: var(--c-erro-bg); --b-bg-h: color-mix(in srgb, var(--c-erro-bg) 80%, var(--c-erro-fg) 20%); --b-fg: var(--c-erro-fg); --b-borda: color-mix(in srgb, var(--c-erro-fg) 45%, transparent);
    --b-sombra: none; --b-chip-bg: color-mix(in srgb, var(--c-erro-fg) 16%, transparent); }
/* 5.5 WhatsApp */
html body.atendimento-body:not(#_) :is(.leads-btn.whats, .botao.whats) {
    --b-bg: linear-gradient(145deg, #2dbd66, #1a9a4d); --b-bg-h: linear-gradient(145deg, #25a85a, #14803f); --b-fg: #fff; --b-borda: #14803f; --b-chip-bg: rgba(255, 255, 255, .22);
    --b-sombra: 0 4px 12px rgba(26, 154, 77, .26); }

/* 5.6 pequenos (ações dentro de linhas e de cartões) */
html body.atendimento-body:not(#_) :is(.leads-btn.pequeno, .ibpt-history-button.pequeno, .link-acao, .acoes-cob button, .acoes-cob a, .tent-bloquear button, .tent-botao.pequeno,
    .vps-limpar, .link-pagamento-chat, td .leads-btn, td .tent-botao, td button.link-acao) {
    min-height: 34px !important; padding: 4px 14px 4px 5px !important; font-size: 13px !important; gap: 6px; }
html body.atendimento-body:not(#_) :is(.leads-btn.pequeno, .ibpt-history-button.pequeno, .link-acao, .acoes-cob button, .acoes-cob a, .tent-bloquear button, .vps-limpar, .link-pagamento-chat, td .leads-btn, td .tent-botao):not(:has(> i:first-child, > span:first-child > i:only-child)) { padding: 6px 14px !important; }
html body.atendimento-body:not(#_) :is(.leads-btn.pequeno, .ibpt-history-button.pequeno, .link-acao, .acoes-cob button, .acoes-cob a, .tent-bloquear button, .vps-limpar, td .leads-btn, td .tent-botao) > :is(i:first-child, span:first-child > i:only-child) {
    width: 23px !important; height: 23px !important; border-radius: 8px !important; font-size: .78rem !important; }
html body.atendimento-body:not(#_) .link-acao { display: inline-flex !important; margin-top: 0; }
html body.atendimento-body:not(#_) .crm-cobranca-acoes .link-acao { background: var(--s-bg) !important; border-color: var(--s-borda) !important; color: var(--s-fg) !important; }

/* 5.7 botão de fechar (X) e ícones soltos */
html body.atendimento-body:not(#_) .modal-atendimento .fechar-modal,
html body.atendimento-body:not(#_) .modal-atendimento button.fechar-modal {
    width: 36px; height: 36px; min-height: 36px; min-width: 36px; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--c-borda) !important;
    background: var(--c-card2) !important; color: var(--c-suave) !important; box-shadow: none !important; gap: 0; }
html body.atendimento-body:not(#_) .modal-atendimento .fechar-modal > i { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; font-size: 1rem !important; color: inherit !important; }
html body.atendimento-body:not(#_) .modal-atendimento .fechar-modal:hover { background: var(--c-hover) !important; color: var(--c-texto) !important; }
html body.atendimento-body:not(#_) .fila form > button {
    flex: 0 0 auto; width: 41px; min-width: 41px; height: 41px; padding: 0 !important; border-radius: 50% !important; }
html body.atendimento-body:not(#_) .fila form > button > i { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; font-size: 1rem !important; }
html body.atendimento-body:not(#_) .fila form > button {
    display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--b-borda) !important; background: var(--b-bg) !important; color: var(--b-fg) !important;
    box-shadow: var(--b-sombra) !important; cursor: pointer; }
html body.atendimento-body:not(#_) .fila form { display: flex; align-items: center; gap: 8px; }
html body.atendimento-body:not(#_) .fila form > input { flex: 1 1 auto; min-width: 0; }

/* 5.8 botão sem classe dentro de formulários da área de trabalho: ação principal */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) button:not([class]):not(.titulo-topo button):not(.opcoes-perfil-central button):not(.fila button) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 40px; padding: 8px 18px; border: 1px solid var(--b-borda); border-radius: 999px;
    background: var(--b-bg); color: var(--b-fg); box-shadow: var(--b-sombra); font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; cursor: pointer;
    transition: background .18s ease, transform .18s ease; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) button:not([class]):not(.titulo-topo button):not(.opcoes-perfil-central button):not(.fila button):hover:not(:disabled) { background: var(--b-bg-h); transform: translateY(-1px); }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) button:not([class]):disabled { opacity: .55; cursor: not-allowed; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) button:not([class]) > i:first-child { font-size: 1rem; }
/* "Remover" (lixeira) e similares com title: ícone circular */
html body.atendimento-body:not(#_) .atendimento-main button[title="Remover"]:not([class]) {
    width: 38px; height: 38px; min-height: 38px; padding: 0; --b-bg: var(--c-erro-bg); --b-bg-h: var(--c-erro-bg); --b-fg: var(--c-erro-fg); --b-borda: transparent; --b-sombra: none; }

/* 5.9 rodapé das janelas */
html body.atendimento-body:not(#_) .modal-atendimento footer { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--c-borda); }
html body.atendimento-body:not(#_) .modal-atendimento footer > :is(button, a) { margin: 0; }

/* =============================== 6. CAMPOS =============================== */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(
    input:where(:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button], [type=image], [type=reset])), select, textarea) {
    box-sizing: border-box; min-height: 41px; padding: 0 16px; border: 1px solid var(--c-campo-borda) !important; border-radius: 999px !important;
    background-color: var(--c-campo) !important; color: var(--c-texto) !important; font: inherit; font-size: 14px !important; line-height: 1.3; outline: 0; box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) textarea { min-height: 96px; padding: 12px 16px; border-radius: 18px !important; line-height: 1.5; resize: vertical; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) select:where(:not([multiple], [size])) {
    padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231aa77d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 15px center !important; background-size: 12px 8px !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) select[multiple],
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) select[size] { border-radius: 16px !important; padding: 8px 12px; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(input, select, textarea):where(:not([type=checkbox], [type=radio], [type=file])):hover { border-color: var(--c-borda2) !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(input, select, textarea):where(:not([type=checkbox], [type=radio], [type=file], [type=range], [type=hidden])):focus {
    border-color: var(--c-primaria) !important; box-shadow: 0 0 0 3px var(--c-foco) !important; outline: 0; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(input, textarea)::placeholder { color: var(--c-suave); opacity: .75; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(input, select, textarea):disabled { opacity: .6; cursor: not-allowed; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) select option { background: var(--c-card); color: var(--c-texto); }
html[data-bs-theme="light"] body.atendimento-body:not(#_) select option { background: #fff; color: #1c2a3a; }
html[data-bs-theme="dark"] body.atendimento-body:not(#_) select option { background: #1a1b1d; color: #e8edf1; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) input:is([type=date], [type=time], [type=month], [type=datetime-local]) { padding-right: 12px; }
/* arquivos (pílula e chip verde) já em layout-flutuante.css; só ajusta a cor ao tema */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) input[type=file] {
    box-sizing: border-box; background: var(--c-campo) !important; border: 1px solid var(--c-campo-borda) !important; color: var(--c-texto) !important; font-size: 13.5px; }
/* caixas de marcar */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) input:is([type=checkbox], [type=radio]):where(:not(.precos-chave *)) {
    width: 18px; height: 18px; min-height: 0; flex: 0 0 auto; padding: 0; margin: 0; accent-color: var(--c-primaria); box-shadow: none; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) label:has(> input:is([type=checkbox], [type=radio])) { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
/* rótulos de formulário: acima do campo, legíveis */
html body.atendimento-body:not(#_) :is(.config-form, .parceiro-form, .conta-configurada, .crm-desconto-form, .crm-fatura-form, .modal-atendimento form, .tent-filtros, .tarifas-form, .grade-form) label {
    color: var(--c-texto2) !important; font-weight: 650; }
/* Campos compostos (ícone + campo dentro de um <label>): a pílula é do rótulo, o campo interno fica liso. */
html body.atendimento-body:not(#_) .ibpt-card form label:has(> i:first-child) {
    display: flex; align-items: center; gap: 9px; min-width: min(300px, 100%); min-height: 41px; padding: 0 16px; border: 1px solid var(--c-campo-borda) !important; border-radius: 999px;
    background: var(--c-campo) !important; box-sizing: border-box; overflow: visible; }
html body.atendimento-body:not(#_) .ibpt-card form label:has(> i:first-child):focus-within { border-color: var(--c-primaria) !important; box-shadow: 0 0 0 3px var(--c-foco); }
html body.atendimento-body:not(#_) .ibpt-card form label:has(> i:first-child) > i { color: var(--c-link) !important; }
html body.atendimento-body:not(#_) :is(.ibpt-card form label:has(> i:first-child), .precos-campo, .leads-busca) input {
    min-height: 0 !important; height: 100% !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body.atendimento-body:not(#_) :is(.ibpt-card form label:has(> i:first-child), .leads-busca) input { width: 100%; }
html body.atendimento-body:not(#_) .precos-campo { display: inline-flex; align-items: center; box-sizing: border-box; gap: 8px; min-height: 41px; padding: 0 16px; border: 1px solid var(--c-campo-borda); border-radius: 999px; background: var(--c-campo); color: var(--c-suave) !important; font-size: 13px !important; font-weight: 650; }
html body.atendimento-body:not(#_) .precos-campo:focus-within { border-color: var(--c-primaria); box-shadow: 0 0 0 3px var(--c-foco); }
html body.atendimento-body:not(#_) .precos-campo input { width: 88px; height: auto !important; text-align: right; font-size: 14px !important; font-weight: 750; color: var(--c-texto) !important; }
html body.atendimento-body:not(#_) .leads-busca { border-radius: 999px; border-color: var(--c-campo-borda); background: var(--c-campo); }
/* Rótulos dentro de formulários de cartão que NÃO são buscas: sem a caixa herdada do .ibpt-card form label */
html body.atendimento-body:not(#_) .ibpt-card form label:not(:has(> i:first-child)) {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; min-height: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; overflow: visible; }
html body.atendimento-body:not(#_) .ibpt-card form label:not(:has(> i:first-child)) > input:where(:not([type=checkbox], [type=radio])) { height: auto; width: 100%; }
html body.atendimento-body:not(#_) .ibpt-card form { flex-wrap: wrap; align-items: flex-end; }
/* Chave liga/desliga (usada em Planos, Tarifas e Tentativas) */
html body.atendimento-body:not(#_) .precos-chave { position: relative; display: inline-block; flex: 0 0 auto; width: 44px; height: 24px; cursor: pointer; vertical-align: middle; }
html body.atendimento-body:not(#_) .precos-chave input { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; cursor: pointer; z-index: 1; min-height: 0; }
html body.atendimento-body:not(#_) .precos-chave span { position: absolute; inset: 0; border-radius: 999px; background: var(--c-borda2); transition: background .2s ease; }
html body.atendimento-body:not(#_) .precos-chave span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease; }
html body.atendimento-body:not(#_) .precos-chave input:checked + span { background: var(--c-primaria); }
html body.atendimento-body:not(#_) .precos-chave input:checked + span::after { transform: translateX(20px); }
html body.atendimento-body:not(#_) .precos-chave input:focus-visible + span { box-shadow: 0 0 0 3px var(--c-foco); }

/* =============================== 7. ABAS E FILTROS (trilho com pílulas, ativa em verde) =============================== */
html body.atendimento-body:not(#_) :is(.config-abas, .leads-nav, .abas-mon, .leads-vista, .leads-atalhos, .filtros, .nav-tabs, .nav-pills, .filtros-mon) {
    display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; box-sizing: border-box; margin: 14px 0 16px; padding: 4px; border: 1px solid var(--c-borda); border-radius: 22px;
    background: var(--c-card2); box-shadow: none; }
html body.atendimento-body:not(#_) .leads-filtros .leads-vista { margin: 0; }
html body.atendimento-body:not(#_) .atendimento-main > .topo-atendimento > .filtros { display: flex; margin: 0 10px 8px 2px; border-radius: 18px; padding: 5px; background: var(--t-bg) !important; border-color: var(--t-borda); -webkit-backdrop-filter: var(--t-blur); backdrop-filter: var(--t-blur); }
html body.atendimento-body:not(#_) :is(.config-abas a, .leads-nav a, .abas-mon a, .leads-vista a, .leads-atalhos a, .filtros a, .filtros .filtro-fila, .filtros-mon button, .nav-tabs .nav-link, .nav-pills .nav-link) {
    position: relative; display: inline-flex !important; align-items: center; gap: 7px; min-height: 36px; box-sizing: border-box; margin: 0 !important; padding: 7px 16px 7px 14px !important;
    border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--c-suave) !important; box-shadow: none !important; text-shadow: none !important;
    font: inherit; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.2; text-decoration: none !important; white-space: nowrap; cursor: pointer; transform: none !important;
    transition: background-color .16s ease, color .16s ease; overflow: visible !important; }
html body.atendimento-body:not(#_) :is(.config-abas a, .leads-nav a, .abas-mon a, .leads-vista a, .leads-atalhos a, .filtros a, .filtros .filtro-fila, .filtros-mon button)::after { content: none !important; display: none !important; }
/* ícones das abas: simples (nada de chip) */
html body.atendimento-body:not(#_) :is(.config-abas a, .leads-nav a, .abas-mon a, .leads-vista a, .leads-atalhos a, .filtros a, .filtros .filtro-fila) > :is(i:first-child, span:first-child > i:only-child) {
    display: inline-block !important; width: auto !important; height: auto !important; margin: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; font-size: 1.05rem !important; color: inherit !important; }
html body.atendimento-body:not(#_) .filtros i { font-size: 1.05rem !important; color: inherit !important; }
html body.atendimento-body:not(#_) :is(.config-abas a, .leads-nav a, .abas-mon a, .leads-vista a, .leads-atalhos a, .filtros a, .filtros .filtro-fila, .filtros-mon button, .nav-tabs .nav-link, .nav-pills .nav-link):hover {
    background: var(--c-hover) !important; color: var(--c-texto) !important; }
html body.atendimento-body:not(#_) :is(.config-abas a.ativa, .leads-nav a.ativo, .abas-mon a.ativa, .leads-vista a.ativo, .leads-atalhos a.ativo, .filtros a.ativo, .filtros .filtro-fila.ativo, .filtros-mon button.ativo,
    .nav-tabs .nav-link.active, .nav-pills .nav-link.active, .config-abas a[aria-current], .filtros a[aria-current=page]) {
    background: var(--c-primaria) !important; color: var(--c-sobre-primaria) !important; box-shadow: 0 4px 12px rgba(20, 154, 114, .28) !important; }
html body.atendimento-body:not(#_) .leads-nav a b, html body.atendimento-body:not(#_) .filtros .contador-espera { background: #c8412f; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; line-height: 1.3; }
html body.atendimento-body:not(#_) .leads-nav { margin: 16px 0 8px; }
html body.atendimento-body:not(#_) .abas-mon { border-bottom: 1px solid var(--c-borda); }

/* =============================== 8. TABELAS E LISTAS =============================== */
/* moldura: o contêiner rolável (ou a própria tabela, quando não há contêiner) */
html body.atendimento-body:not(#_) :is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem, .dataTables_wrapper) {
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-borda); border-radius: 14px; background: var(--c-linha); box-shadow: var(--c-sombra); }
html body.atendimento-body:not(#_) .atendimento-main table:not(:is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem, .dataTables_wrapper) table) {
    border: 1px solid var(--c-borda); border-radius: 14px; box-shadow: var(--c-sombra); }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) table {
    width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-linha); color: var(--c-texto2); font-size: 14px; line-height: 1.4; }
html body.atendimento-body:not(#_) :is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem, .dataTables_wrapper) table { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
html body.atendimento-body:not(#_) .atendimento-main table:not(:is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem, .dataTables_wrapper) table) { overflow: hidden; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) thead {
    background: linear-gradient(135deg, var(--c-cab1), var(--c-cab2)) !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) thead th {
    padding: 13px 14px !important; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .14) !important; background: transparent !important; color: #fff !important;
    font-size: 12px !important; font-weight: 700 !important; letter-spacing: .05em; line-height: 1.25; text-align: left; text-transform: uppercase; white-space: nowrap; vertical-align: middle; height: 46px; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) thead th:first-child { padding-left: 18px !important; border-top-left-radius: 14px; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) thead th:last-child { padding-right: 18px !important; border-top-right-radius: 14px; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr { background: var(--c-linha) !important; transition: background-color .16s ease, box-shadow .16s ease; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr:nth-of-type(even) { background: var(--c-linha-alt) !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr:hover { background: var(--c-linha-hover) !important; box-shadow: inset 3px 0 0 var(--c-primaria); }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody td {
    height: 48px; padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--c-borda) !important; background: transparent !important; color: var(--c-texto2) !important;
    font-size: 14px !important; line-height: 1.4; vertical-align: middle; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody td:first-child { padding-left: 18px !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody td:last-child { padding-right: 18px !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr:last-child td { border-bottom: 0 !important; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td :is(b, strong) { color: var(--c-texto) !important; font-weight: 700; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td small { display: block; margin-top: 2px; color: var(--c-suave) !important; font-size: 12.5px !important; line-height: 1.35; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td a:not([class]) { color: var(--c-link); font-weight: 700; text-decoration: none; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td a:not([class]):hover { text-decoration: underline; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td code {
    display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; padding: 2px 8px; border-radius: 8px;
    background: var(--c-card2); color: var(--c-texto) !important; font-size: 12.5px; font-weight: 600; }
/* números e valores à direita */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(th, td):is(.num, .valor, .numero, .tipo-numero, .tipo-moeda, [align=right]) { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(th, td).centro { text-align: center; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) td.trunc { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* estado vazio: uma linha só com colspan */
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr > td[colspan]:only-child {
    height: auto; padding: 32px 18px !important; text-align: center !important; color: var(--c-suave) !important; font-size: 14px !important; font-style: normal; }
html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) tbody tr:has(> td[colspan]:only-child):hover { box-shadow: none; background: var(--c-linha) !important; }
/* subtotais e destaque */
html body.atendimento-body:not(#_) .leads-tabela tr.leads-subtotal td { background: var(--c-card2) !important; color: var(--c-suave) !important; font-weight: 700; }
html body.atendimento-body:not(#_) .leads-tabela a { color: var(--c-texto) !important; font-weight: 700; }
/* Cabeçalhos de DataTables */
html body.atendimento-body:not(#_) .config-conteudo :is(.ibpt-table-wrap, .parceiro-table-wrap, .dataTables_wrapper) thead th { font-size: 12px !important; background: transparent !important; }
/* ações em linha: pílulas pequenas lado a lado */
html body.atendimento-body:not(#_) td :is(form) { margin: 0; }
html body.atendimento-body:not(#_) td > :is(form, a, button) + :is(form, a, button) { margin-left: 6px; }
html body.atendimento-body:not(#_) .acoes-cob { display: flex; flex-wrap: wrap; gap: 6px; }
html body.atendimento-body:not(#_) td.acoes, html body.atendimento-body:not(#_) td:has(> .acoes-cob), html body.atendimento-body:not(#_) td:has(> form.tent-bloquear) { white-space: normal; }

/* listas em linhas (clientes, histórico, parceiros, últimos chamados) */
html body.atendimento-body:not(#_) :is(.crm-lista a, .historico-lista a, .parceiro-lista > a) { min-height: 56px; padding: 14px 18px; border-bottom: 1px solid var(--c-borda) !important; font-size: 14px; }
html body.atendimento-body:not(#_) :is(.crm-lista a, .historico-lista a, .parceiro-lista > a):hover { background: var(--c-linha-hover) !important; }
html body.atendimento-body:not(#_) :is(.crm-lista a, .historico-lista a, .parceiro-lista > a):last-child { border-bottom: 0 !important; }
html body.atendimento-body:not(#_) :is(.recentes-lista a, .crm-linha) { border-top: 1px solid var(--c-borda) !important; font-size: 14px; }
html body.atendimento-body:not(#_) :is(.recentes-lista a, .crm-linha):hover { background: var(--c-linha-hover); }
html body.atendimento-body:not(#_) .crm-lista small { font-size: 12.5px !important; }
html body.atendimento-body:not(#_) :is(.crm-lista em.bloqueado) { color: var(--c-erro-fg) !important; }
html body.atendimento-body:not(#_) .crm-lista .crm-plano { color: var(--c-link) !important; }
html body.atendimento-body:not(#_) :is(.ticket) { border-color: var(--c-borda) !important; }
html body.atendimento-body:not(#_) :is(.ticket.selected, .ticket:hover) { background: var(--c-hover) !important; }

/* =============================== 9. SELOS E AVISOS =============================== */
html body.atendimento-body:not(#_) :is(.leads-tag, .tent-selo, .sit, .selo-modulo, .estado, .ambiente, .tarifas-selo, .assist-selo, .config-selo, .parceiro-status, .selo-origem) {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.3; white-space: nowrap;
    background: var(--c-neutro-bg); color: var(--c-neutro-fg) !important; border: 0; }
html body.atendimento-body:not(#_) :is(.tent-selo.ok, .sit.Pago, .selo-modulo.liberado, .estado.ok, .tarifas-selo.ligada, .assist-selo.ok, .config-selo, .leads-tag.canal-organico) { background: var(--c-ok-bg); color: var(--c-ok-fg) !important; }
html body.atendimento-body:not(#_) :is(.tent-selo.alerta, .sit.Atrasado, .sit.Recusado, .sit.Estornado, .sit.Valor, .selo-modulo.bloqueado, .estado.off, .assist-selo.erro, .leads-tag.Quente, .leads-tag.bloqueado, .ambiente.real) { background: var(--c-erro-bg); color: var(--c-erro-fg) !important; }
html body.atendimento-body:not(#_) :is(.sit.Pendente, .sit.Em, .selo-modulo.pendente, .estado.alerta, .assist-selo.aviso, .leads-tag.Morno, .leads-tag.parado, .ambiente.teste) { background: var(--c-aviso-bg); color: var(--c-aviso-fg) !important; }
html body.atendimento-body:not(#_) :is(.leads-tag.Frio, .leads-tag.canal-direto) { background: var(--c-info-bg); color: var(--c-info-fg) !important; }
html body.atendimento-body:not(#_) .leads-tag.bloqueado { background: #c8412f; color: #fff !important; }
html body.atendimento-body:not(#_) :is(.ibpt-alert, .aviso, .crm-aviso, .aviso-mon, .aviso-modulo, .leads-alerta, .precos-ok, .ibpt-api-status) {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid transparent; border-radius: 14px; font-size: 14px !important; font-weight: 600; line-height: 1.45; }
html body.atendimento-body:not(#_) :is(.ibpt-alert.sucesso, .aviso.sucesso, .crm-aviso:not(.erro), .aviso-mon.ok, .aviso-modulo.sucesso, .leads-alerta.ok, .precos-ok, .ibpt-api-status:not(.pendente)) {
    background: var(--c-ok-bg) !important; color: var(--c-ok-fg) !important; border-color: color-mix(in srgb, var(--c-ok-fg) 28%, transparent) !important; }
html body.atendimento-body:not(#_) :is(.ibpt-alert.erro, .aviso.erro, .crm-aviso.erro, .aviso-mon.erro, .aviso-modulo.erro, .leads-alerta.erro) {
    background: var(--c-erro-bg) !important; color: var(--c-erro-fg) !important; border-color: color-mix(in srgb, var(--c-erro-fg) 30%, transparent) !important; }
html body.atendimento-body:not(#_) .ibpt-api-status.pendente { background: var(--c-aviso-bg) !important; color: var(--c-aviso-fg) !important; border-color: color-mix(in srgb, var(--c-aviso-fg) 30%, transparent) !important; }
html body.atendimento-body:not(#_) .leads-alerta.aviso { background: var(--c-ok-bg) !important; color: var(--c-ok-fg, #07835d) !important; border: 1px dashed color-mix(in srgb, var(--c-ok-fg, #07835d) 40%, transparent) !important; }
html body.atendimento-body:not(#_) .ibpt-api-status span { font-size: 13px !important; }

/* =============================== 10. JANELAS (dialog.modal-atendimento) =============================== */
html body.atendimento-body:not(#_) .modal-atendimento {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--c-borda) !important; border-radius: 22px; color: var(--c-texto);
    background: var(--c-card) !important; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
html[data-bs-theme="light"] body.atendimento-body:not(#_) .modal-atendimento { background: #fff !important; }
html[data-bs-theme="dark"]:not([data-tema="glass"]) body.atendimento-body:not(#_) .modal-atendimento { background: #1a1b1d !important; }
html[data-tema="glass"] body.atendimento-body:not(#_) .modal-atendimento { background: rgba(22, 24, 26, .90) !important; }
html body.atendimento-body:not(#_) .modal-atendimento::backdrop { background: rgba(10, 16, 22, .62) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html body.atendimento-body:not(#_) .modal-atendimento form { padding: 24px; }
html body.atendimento-body:not(#_) .modal-atendimento header { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--c-borda); }
html body.atendimento-body:not(#_) .modal-atendimento h2 { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 750; line-height: 1.25; }
html body.atendimento-body:not(#_) .modal-atendimento p { font-size: 14px !important; line-height: 1.5; }
html body.atendimento-body:not(#_) .modal-atendimento label { display: grid; gap: 7px; margin-top: 12px; font-size: 13px !important; }
html body.atendimento-body:not(#_) .modal-atendimento label:has(> input:is([type=checkbox], [type=radio])) { display: flex; }
html body.atendimento-body:not(#_) .modal-atendimento :is(select, textarea, input[type=date], input[type=text], input[type=number], input[type=email], input[type=password]) { width: 100%; }
html body.atendimento-body:not(#_) .modal-atendimento .vencimento-sem { border-color: var(--c-borda); background: var(--c-card2); }
html body.atendimento-body:not(#_) .modal-atendimento .vencimento-sem small { color: var(--c-suave); opacity: 1; }
html body.atendimento-body:not(#_) .ibpt-modal-history { border-top-color: var(--c-borda); }
html body.atendimento-body:not(#_) .ibpt-modal-history article { border-bottom-color: var(--c-borda); }

/* =============================== 11. TELAS ESPECÍFICAS =============================== */
/* Chat (Atendimentos) */
html body.atendimento-body:not(#_) .mensagens { background: var(--c-fundo) !important; }
html[data-bs-theme="light"] body.atendimento-body:not(#_) .mensagens { background: #f1f5f7 !important; }
html[data-bs-theme="dark"]:not([data-tema="glass"]) body.atendimento-body:not(#_) .mensagens { background: #121212 !important; }
html[data-tema="glass"] body.atendimento-body:not(#_) .mensagens { background: rgba(0, 0, 0, .18) !important; }
html body.atendimento-body:not(#_) .mensagem:not(.atendente) { background: var(--c-card) !important; color: var(--c-texto) !important; border: 1px solid var(--c-borda); font-size: 14.5px; }
html body.atendimento-body:not(#_) .mensagem.interno { background: var(--c-aviso-bg) !important; color: var(--c-aviso-fg) !important; }
html body.atendimento-body:not(#_) .mensagem.atendente { font-size: 14.5px; }
html body.atendimento-body:not(#_) .responder { padding: 12px 16px; gap: 10px; }
html body.atendimento-body:not(#_) .responder > input { flex: 1 1 200px; }
html body.atendimento-body:not(#_) .respostas-rapidas-menu { background: var(--c-card) !important; border: 1px solid var(--c-borda) !important; border-radius: 18px; }
html body.atendimento-body:not(#_) .responder .opcao-resposta-rapida { border-radius: 12px; font: inherit; }
html body.atendimento-body:not(#_) .responder .opcao-resposta-rapida:hover { background: var(--c-hover) !important; }
html body.atendimento-body:not(#_) .ticket-header h2 { font-size: 18px; }
/* Aparência (Configurações) */
html body.atendimento-body:not(#_) .aparencia-temas label { border-color: var(--c-campo-borda); background: var(--c-campo); color: var(--c-texto); font-size: 14px; }
html body.atendimento-body:not(#_) .aparencia-temas label:has(input:checked) { border-color: var(--c-primaria); box-shadow: 0 0 0 3px var(--c-foco); }
html body.atendimento-body:not(#_) .aparencia-legenda { color: var(--c-suave); opacity: 1; font-size: 13.5px; }
/* Planos / Tarifas */
html body.atendimento-body:not(#_) .precos-valor-antigo, html body.atendimento-body:not(#_) .tarifas-valor-antigo { color: var(--c-suave); }
html body.atendimento-body:not(#_) .precos-valor-novo, html body.atendimento-body:not(#_) .tarifas-valor-novo { color: var(--c-link); }
/* Dashboard e Leads: barras e funil usam a cor da marca legível */
html body.atendimento-body:not(#_) .leads-funil i, html body.atendimento-body:not(#_) .leads-colunas span { background: var(--c-primaria); }
html body.atendimento-body:not(#_) .leads-card { background: var(--c-card) !important; border-color: var(--c-borda); }
html body.atendimento-body:not(#_) .leads-quadro .leads-coluna header { font-size: 14px; }
html body.atendimento-body:not(#_) .leads-kpis small { font-size: 13px; }
html body.atendimento-body:not(#_) .leads-kpis span { font-size: 13px; }
html body.atendimento-body:not(#_) .leads-painel { padding: 20px; }
html body.atendimento-body:not(#_) .leads-painel h3 { font-size: 17px; }
html body.atendimento-body:not(#_) .assist-balao.assistente { background: var(--c-card) !important; color: var(--c-texto); border-color: var(--c-borda); }
html body.atendimento-body:not(#_) .assist-mensagens { background: var(--c-card2) !important; }
html body.atendimento-body:not(#_) .assist-balao { font-size: 14.5px; }
html body.atendimento-body:not(#_) .assist-balao.cliente { background: var(--c-primaria); color: var(--c-sobre-primaria); }
html body.atendimento-body:not(#_) .leads-codigo, html body.atendimento-body:not(#_) .assist-avaliacao-log pre { font-size: 13px; background: var(--c-card2); color: var(--c-texto); }

/* =============================== 12. GLASS: cartões de vidro =============================== */
html[data-tema="glass"] body.atendimento-body:not(#_) :is(.ibpt-card, .ibpt-stats article, .dashboard-cards article, .grafico-card, .dashboard-recentes, .crm-colunas section, .modulos-cliente, .crm-lista,
    .historico-lista, .config-painel, .nova-resposta, .lista-respostas, .conta-configurada, .parceiro-lista, .parceiro-form, .parceiro-card, .leads-painel, .leads-kpis article, .vps-storage,
    .painel-modulo, .ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem, .leads-fila-item, .assist-chat, .cards-mon a, .ev, .tabela-cob, .crm-pendencias) {
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
html[data-tema="glass"] body.atendimento-body:not(#_) :is(.atendimento-main) { color: var(--c-texto); }
html[data-tema="glass"] body.atendimento-body:not(#_) :is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem) { background: rgba(255, 255, 255, .05); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html[data-tema="glass"] { --c-card: rgba(26, 28, 30, .92); --c-card2: rgba(34, 36, 38, .92); --c-campo: rgba(38, 40, 42, .95); }
}
@media (prefers-reduced-transparency: reduce) {
    html[data-tema="glass"] { --c-card: rgba(26, 28, 30, .94); --c-card2: rgba(34, 36, 38, .94); --c-campo: rgba(38, 40, 42, .96); --t-bg: rgba(14, 14, 14, .96); }
}

/* =============================== 13. CELULAR (até 800px) =============================== */
@media (max-width: 800px) {
    html body.atendimento-body:not(#_) :is(.botao-principal, .botao-secundario, .botao-fechamento, .botao-salvar, .ibpt-upload-button, .ibpt-history-button, .ibpt-api-button, .dashboard-acao, .parceiro-acao,
        .voltar-crm, .voltar-fila, .crm-busca button, .nova-resposta button, .modulos-cliente button, .ibpt-card form button, .config-form button, .fechar-painel, .excluir-resposta, .leads-btn,
        .acoes button, .acoes-modulo button, .link-modulo button, .tent-botao, .botao, .modal-atendimento button, .link-acao, .acoes-cob button, .acoes-cob a, .leads-btn.pequeno, .tent-bloquear button,
        .ibpt-history-button.pequeno, .vps-limpar, td .leads-btn, td .tent-botao) { min-height: 44px !important; }
    html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) :is(input:where(:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button])), select) { min-height: 44px; font-size: 16px !important; }
    html body.atendimento-body:not(#_) :is(.atendimento-main, .modal-atendimento) textarea { font-size: 16px !important; }
    html body.atendimento-body:not(#_) .atendimento-main :is(.config-abas a, .leads-nav a, .abas-mon a, .leads-vista a, .leads-atalhos a, .filtros a, .filtros .filtro-fila, .filtros-mon button) { min-height: 44px; }
    html body.atendimento-body:not(#_) :is(.config-abas, .leads-nav, .abas-mon, .leads-atalhos, .filtros, .filtros-mon) { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    html body.atendimento-body:not(#_) .atendimento-main > .topo-atendimento > .filtros { margin: 0; border-radius: 0; }
    html body.atendimento-body:not(#_) .atendimento-main .titulo-topo { border-radius: 0; margin: 0; border-width: 0 0 1px; }
    html body.atendimento-body:not(#_) .titulo-topo h1 { font-size: 17px; }
    html body.atendimento-body:not(#_) .titulo-topo :is(.controle-alerta, .notificacoes-central) { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
    html body.atendimento-body:not(#_) .modal-atendimento { width: calc(100vw - 20px); border-radius: 18px; }
    html body.atendimento-body:not(#_) .modal-atendimento form { padding: 18px; }
    html body.atendimento-body:not(#_) .modal-atendimento footer > :is(button, a) { flex: 1 1 100%; }
    html body.atendimento-body:not(#_) :is(.ibpt-table-wrap, .leads-tabela-wrap, .parceiro-table-wrap, .rolagem) { border-radius: 12px; }
    html body.atendimento-body:not(#_) .ibpt-stats article { padding-right: 58px !important; }
    html body.atendimento-body:not(#_) :is(.atendimento-main) .ibpt-card form { flex-direction: column; align-items: stretch; }
    html body.atendimento-body:not(#_) .ibpt-card form label:has(> i:first-child) { min-width: 0; width: 100%; }
}
