/* Moldura do CRM Teccell: menu à esquerda, tela à direita; no celular o menu vira gaveta (☰). */
html,body{margin:0;padding:0;height:100%}
body.crm{background:#ecebeb;color:#232a3d;font-family:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
body.crm.crm-escuro{background:#191c22;color:#e7e9ee}
.crm-app{display:flex;height:100vh;height:100dvh}
.crm-lado{flex:0 0 200px;height:100%;position:relative;z-index:30}
.crm-lado #tcm{height:100%}
.crm-conteudo{flex:1;min-width:0;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.crm-tv{height:100vh;overflow:auto}
.crm-topo,.crm-veu{display:none}
.crm-aviso{margin:40px auto;max-width:520px;padding:18px 20px;background:#fff;border-radius:10px;border:1px solid #d9d9d9;font-size:15px;line-height:1.5;text-align:center}
.crm-escuro .crm-aviso{background:#232731;border-color:#343a46}
.crm-aviso a{color:#0205D3;font-weight:600}
.crm-escuro .crm-aviso a{color:#8ea2ff}
:focus-visible{outline:2px solid #0205D3;outline-offset:2px}
@media (max-width:900px){
  .crm-app{display:block;height:auto}
  .crm-topo{display:flex;position:sticky;top:0;z-index:40;height:52px;align-items:center;gap:6px;padding:0 10px;padding-top:env(safe-area-inset-top);
    background:#fff;border-bottom:3px solid #0205D3;box-shadow:0 2px 8px rgba(20,20,40,.08)}
  .crm-escuro .crm-topo{background:#21252e;border-bottom-color:#4b5cff}
  .crm-hamb{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:10px;background:none;color:inherit;cursor:pointer}
  .crm-hamb:active{background:rgba(2,5,211,.08)}
  .crm-topo-tit{font-weight:700;font-size:17px;color:#1a2549;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .crm-escuro .crm-topo-tit{color:#e7e9ee}
  .crm-lado{position:fixed;top:0;bottom:0;left:0;width:248px;height:100%;transform:translateX(-105%);transition:transform .2s ease;z-index:60}
  .crm-lado #tcm{--w:248px;width:248px}
  body.crm-menu-aberto .crm-lado{transform:none}
  body.crm-menu-aberto .crm-veu{display:block;position:fixed;inset:0;background:rgba(10,14,30,.45);z-index:50}
  body.crm-menu-aberto{overflow:hidden}
  .crm-conteudo{height:auto;overflow:visible}
  .crm-fixa .crm-conteudo{overflow-x:auto}
  .crm-responsiva .crm-conteudo img{max-width:100%;height:auto}
}
@media (prefers-reduced-motion:reduce){.crm-lado{transition:none}}
