/* AutoSellerCRM - ajustes só para celular. Carregado com media="(max-width:760px)" e ativo só quando o mobile.js marca html.mob (janela principal, nunca em iframe). */
@media (max-width:760px){
html.mob body.app{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
html.mob #sup-bt{display:none!important}
html.mob .mnav{position:fixed;left:0;right:0;bottom:0;z-index:55;display:flex;background:var(--pn,#fff);border-top:1px solid var(--ln,#e5e7eb);padding:4px 6px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(15,23,42,.07)}
html.mob .mnav>a,html.mob .mnav>button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px;padding:0;margin:0;font:600 10.5px/1.1 inherit;font-family:inherit;color:var(--mu,#64748b);text-decoration:none;background:none;border:0;border-radius:12px;-webkit-tap-highlight-color:transparent;cursor:pointer}
html.mob .mnav svg{width:23px;height:23px;flex:none}
html.mob .mnav .on{color:var(--acc,#1a3ee2)}
html.mob .mnav .on svg{stroke-width:2.2}
html.mob body.menu-on .mnav .m-mais{color:var(--acc,#1a3ee2)}
html.mob .lado nav a.m-sup{font-weight:600}
/* chat: conversa em tela cheia, como no WhatsApp */
html.mob body.m-conv{padding-bottom:0}
html.mob body.app:not(.m-conv) #cht.cht{height:calc(100dvh - 160px - env(safe-area-inset-bottom))!important;min-height:360px}
html.mob body.m-conv .lado,html.mob body.m-conv .mnav{display:none!important}
html.mob body.m-conv #cht{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:60;height:auto!important;max-height:none!important;width:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.mob body.m-conv .cht-meio{height:100%!important;min-height:0!important;max-height:none!important}
html.mob body.m-conv .cht-msgs{flex:1 1 auto!important;min-height:0!important}
html.mob body.m-conv .cht-top{padding:calc(6px + env(safe-area-inset-top)) 8px 6px!important;flex-wrap:wrap!important;gap:4px 6px!important;align-items:center!important;min-height:0!important}
html.mob body.m-conv .cht-top .cht-voltar{flex:none}
html.mob body.m-conv .cht-top .q{flex:1 1 0!important;min-width:0!important;gap:8px!important}
html.mob body.m-conv .cht-top .q .v2av{width:36px!important;height:36px!important}
html.mob body.m-conv .cht-top .q>div{min-width:0;flex:1 1 auto;overflow:hidden}
html.mob body.m-conv .cht-top .q b{display:flex!important;flex-wrap:wrap;align-items:center;gap:2px 6px;font-size:15px!important;line-height:1.25}
html.mob body.m-conv .cht-top .q b .m-nm{flex:1 1 100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.mob body.m-conv .cht-top .q b #cht-dispensar{margin-left:0!important;font-size:11px!important;padding:2px 7px!important;height:auto!important;min-height:0!important;line-height:1.3!important}
html.mob body.m-conv .cht-top .q b .v2esp{font-size:11px!important;margin:0!important}
html.mob body.m-conv .cht-top .q>div{text-align:left!important}
html.mob body.m-conv .cht-top .q small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
html.mob body.m-conv .cht-top>.v2ic{display:none!important}
html.mob body.m-conv .cht-top.m-aberto>.v2ic{display:inline-flex!important}
html.mob body.m-conv .cht-top .m-tg{flex:none;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--ln,#e5e7eb);background:var(--pn,#fff);color:inherit;font-size:20px;line-height:1;padding:0;margin:0;cursor:pointer}
html.mob body.m-conv .cht-top.m-aberto .m-tg{background:var(--pn2,#eef2ff);color:var(--acc,#1a3ee2)}
html.mob body.m-conv .cht-top.m-aberto::after{content:"";flex-basis:100%;order:2;height:0}
html.mob body.m-conv .cht-top.m-aberto>.v2ic{order:3}
html.mob body.m-conv .cht-alerta{font-size:12.5px!important;padding:6px 10px!important;line-height:1.3}
html.mob body.m-conv .cht-comp{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
html.mob body.m-conv #cht-txt{font-size:16px!important}
html.mob body.m-conv .cht-info{z-index:70}
html.mob #cht-mover .cht-motivo{display:none!important}
html.mob #cht-mover:has(.cht-etapa[data-perda].arm) .cht-motivo,html.mob #cht-mover:has(.cht-etapa[data-perda].on) .cht-motivo{display:grid!important}
/* quadro de leads: filtros recolhidos e uma etapa por vez */
html.mob main:has(#kanban) .crm-topo .crm-filtros{display:none!important}
html.mob main:has(#kanban).m-filtros .crm-topo .crm-filtros{display:flex!important;flex-wrap:wrap;gap:6px;width:100%}
html.mob main:has(#kanban).m-filtros .crm-topo .crm-filtros>*{flex:1 1 140px;min-width:0}
html.mob .m-ftg{position:relative}
html.mob main:has(#kanban) .crm-topo .acoes-topo a[href="crm_config.php"]{font-size:0!important;width:34px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;flex:none}
html.mob main:has(#kanban) .crm-topo .acoes-topo a[href="crm_config.php"] svg{width:16px;height:16px;margin:0}
html.mob main:has(#kanban) .crm-topo .acoes-topo>*{white-space:nowrap;flex:none}
html.mob main:has(#kanban) .crm-topo .acoes-topo{display:flex!important;flex-wrap:wrap;gap:6px;width:100%}
html.mob main:has(#kanban) .crm-topo .acoes-topo>*{margin:0!important;height:34px!important;min-height:0!important;padding:0 10px!important;font-size:12.5px!important}
html.mob main:has(#kanban) .crm-topo .acoes-topo>:last-child{margin-left:auto!important}
html.mob .m-ftg i{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:99px;background:var(--acc,#1a3ee2);color:#fff;font:700 10px/16px inherit;font-style:normal;text-align:center;padding:0 4px}
html.mob .m-etapas{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html.mob .m-etapas::-webkit-scrollbar{display:none}
html.mob .m-etapas button{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:99px;border:1px solid var(--ln,#e5e7eb);background:var(--pn,#fff);color:inherit;font:600 13px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer}
html.mob .m-etapas button b{min-width:20px;height:20px;border-radius:99px;padding:0 6px;font-size:11.5px;line-height:20px;background:var(--pn2,#f1f5f9);color:var(--mu,#64748b)}
html.mob .m-etapas button.on{background:var(--cor,#1a3ee2);border-color:var(--cor,#1a3ee2);color:#fff}
html.mob .m-etapas button.on b{background:rgba(255,255,255,.25);color:#fff}
html.mob #kanban{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:12px!important}
html.mob #kanban>.kcol{scroll-snap-align:start;flex:0 0 calc(100vw - 24px)!important;width:calc(100vw - 24px)!important;min-width:0!important;max-width:none!important}
}