/* Navilabor Connect — layout 2026 (design system "Navilabor").
   Tudo aqui vale só com <html class="l26">. Sem essa classe o app fica exatamente como era (layout antigo). */
@font-face{font-family:"Outfit";src:url(/fontes/outfit.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fontes/public-sans.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fontes/public-sans-italico.woff2) format("woff2");font-weight:100 900;font-style:italic;font-display:swap}

html.l26{
  --f-display:"Outfit","Public Sans",system-ui,sans-serif;
  --f-body:"Public Sans",system-ui,"Segoe UI",sans-serif;
  --r:10px;
  --marca-escura:#0F3D34; --marca-clara:#A9D8BF; --marca-viva:#2E9E3A;
  --sombra-card:0 1px 2px rgba(15,61,52,.06),0 2px 8px rgba(15,61,52,.06);
  --sombra-menu:0 8px 24px rgba(0,0,0,.25);
  --curva:cubic-bezier(.2,.8,.2,1);
  --menu-w:240px;
}
@media (prefers-color-scheme: dark){html.l26{--marca-escura:#0A2620;--sombra-card:0 1px 2px rgba(0,0,0,.3),0 2px 8px rgba(0,0,0,.25)}}

/* tipografia */
html.l26 body{font-family:var(--f-body);font-size:15px}
html.l26 h1{font:700 28px/34px var(--f-display);letter-spacing:-.01em}
html.l26 h2{font:600 18px/24px var(--f-display)}
html.l26 h3{font:600 15px/20px var(--f-display)}
html.l26 .marca b,html.l26 .ficha-tit,html.l26 .ficha-num{font-family:var(--f-display)}

/* estrutura: menu à esquerda + área que usa a tela inteira */
html.l26 .nv-app{display:flex;min-height:100vh;min-height:100dvh;background:var(--bg)}
html.l26 .nv-area{flex:1;min-width:0;display:flex;flex-direction:column}
html.l26 main{max-width:none;width:100%;margin:0;padding:28px 32px 56px}
html.l26 main > *{max-width:1680px}
html.l26 main.main-at{padding:0;height:100vh;height:100dvh}
html.l26 main.main-at > *{max-width:none}
html.l26 .nv-barra,html.l26 .nv-menu-fundo{display:none}

/* menu lateral (recolhível) */
html.l26 .nv-menu{position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:2px;width:var(--menu-w);flex:none;padding:16px 12px;background:var(--marca-escura);color:#E3EDE9;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;transition:width .24s var(--curva),padding .24s var(--curva);z-index:9}
html.l26 .nv-menu-topo{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 4px 12px 8px}
html.l26 .nv-menu-logo{display:flex;flex-direction:column;gap:4px;min-width:0;text-decoration:none}
html.l26 .nv-menu-logo img{height:34px;width:auto;align-self:flex-start}
html.l26 .nv-menu-logo .nv-menu-icone{display:none;height:34px}
html.l26 .nv-menu-logo span{font-size:11px;font-weight:600;letter-spacing:.42em;color:var(--marca-clara);padding-left:52px;white-space:nowrap}
html.l26 .nv-menu-recolher{display:grid;place-items:center;width:32px;height:32px;flex:none;border:0;border-radius:6px;background:rgba(255,255,255,.08);color:#E3EDE9;cursor:pointer;padding:0;transition:background .15s}
html.l26 .nv-menu-recolher:hover{background:rgba(255,255,255,.16)}
html.l26 .nv-menu svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
html.l26 .nv-menu-recolher svg{width:18px;height:18px;stroke-width:2;transition:transform .24s var(--curva)}
html.l26 .nv-menu-grupo{margin:14px 8px 4px;font-size:11px;line-height:16px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--marca-clara);white-space:nowrap;transition:opacity .15s}
html.l26 .nv-menu-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;height:40px;flex:none;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#E3EDE9;text-decoration:none;font:600 14px var(--f-body);white-space:nowrap;cursor:pointer;text-align:left;transition:background .18s,color .18s}
html.l26 .nv-menu-item svg{width:20px;height:20px;flex:none;stroke-width:1.8;transition:transform .18s}
html.l26 .nv-menu-item:hover{background:rgba(255,255,255,.08);color:#fff}
html.l26 .nv-menu-item:hover svg{transform:translateX(2px)}
html.l26 .nv-menu-item.ativo{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18)}
html.l26 .nv-menu :focus-visible{outline:2px solid var(--marca-clara);outline-offset:1px}
html.l26 .nv-menu-txt{transition:opacity .15s;overflow:hidden;text-overflow:ellipsis}
html.l26 .nv-menu-cont{margin-left:auto;min-width:24px;height:20px;padding:0 7px;border-radius:999px;background:var(--marca-clara);color:#0F3D34;font-size:12px;line-height:20px;text-align:center;font-variant-numeric:tabular-nums;transition:all .24s var(--curva)}
html.l26 .nv-menu-pe{margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:2px}
html.l26 .nv-menu-quem{display:flex;align-items:center;gap:10px;padding:8px 6px;min-width:0}
html.l26 .nv-av{width:32px;height:32px;flex:none;border-radius:999px;display:grid;place-items:center;background:var(--marca-clara);color:#0F3D34;font:700 12px var(--f-body)}
html.l26 .nv-menu-quem .nv-menu-txt{display:flex;flex-direction:column;line-height:1.25;min-width:0}
html.l26 .nv-menu-quem b{font-size:13px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.l26 .nv-menu-quem small{font-size:12px;color:var(--marca-clara)}
html.l26 .nv-menu-antigo{border:0;background:none;color:var(--marca-clara);font:500 12px var(--f-body);text-decoration:underline;text-underline-offset:2px;cursor:pointer;padding:6px 12px;text-align:left;white-space:nowrap;opacity:.8}
html.l26 .nv-menu-antigo:hover{opacity:1}

/* recolhido: só ícones; contador vira bolinha; nome aparece ao passar o mouse */
html.l26 .nv-menu.recolhido{--menu-w:72px;padding-inline:12px}
html.l26 .nv-menu.recolhido .nv-menu-topo{flex-direction:column;align-items:center;padding-inline:0}
html.l26 .nv-menu.recolhido .nv-menu-logo img:not(.nv-menu-icone),html.l26 .nv-menu.recolhido .nv-menu-logo span{display:none}
html.l26 .nv-menu.recolhido .nv-menu-logo .nv-menu-icone{display:block}
html.l26 .nv-menu.recolhido .nv-menu-recolher svg{transform:rotate(180deg)}
html.l26 .nv-menu.recolhido .nv-menu-grupo{opacity:0;height:1px;margin-block:8px;overflow:hidden;border-top:1px solid rgba(255,255,255,.12)}
html.l26 .nv-menu.recolhido .nv-menu-item{justify-content:center;padding:0}
html.l26 .nv-menu.recolhido .nv-menu-txt{opacity:0;width:0;flex:0 0 0}
html.l26 .nv-menu.recolhido .nv-menu-antigo{display:none}
html.l26 .nv-menu.recolhido .nv-menu-quem{justify-content:center;padding-inline:0}
html.l26 .nv-menu.recolhido .nv-menu-cont{position:absolute;top:3px;right:4px;min-width:16px;height:16px;padding:0 4px;font-size:10px;line-height:16px}
html.l26 .nv-menu.recolhido [data-dica]:hover::after{content:attr(data-dica);position:fixed;margin-left:60px;padding:6px 10px;border-radius:6px;background:#0A2620;color:#fff;font:600 13px var(--f-body);white-space:nowrap;box-shadow:var(--sombra-menu);pointer-events:none;z-index:40}
html.l26 .nv-menu.recolhido .nv-menu-quem:hover::after{margin-left:52px}

/* troca de tela suave */
@keyframes nv-entra{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html.l26 .nv-tela{animation:nv-entra .22s var(--curva) both}
html.l26 .nv-tela.main-at{animation-name:nv-aparece}
@keyframes nv-aparece{from{opacity:0}to{opacity:1}}

/* caixas e componentes mais modernos */
html.l26 .cabeca{margin-bottom:20px;gap:16px}
html.l26 .cabeca h1{margin-bottom:4px}
html.l26 h2.sec{margin:22px 0 12px;font:600 12px var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
html.l26 .cartoes{gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
html.l26 .cartao{border-radius:14px;padding:20px;box-shadow:var(--sombra-card);transition:border-color .15s,transform .15s,box-shadow .15s}
html.l26 a.cartao[href]{text-decoration:none;color:var(--fg)}
html.l26 a.cartao[href]:hover{border-color:var(--brand);transform:translateY(-2px);box-shadow:0 6px 18px rgba(15,61,52,.12)}
html.l26 .ind-num{font:700 34px/40px var(--f-display);font-variant-numeric:tabular-nums;margin:6px 0 4px;color:var(--fg)}
html.l26 .cartao.ind .small.muted:first-child{font-weight:600;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
html.l26 .alerta-ind{border-color:var(--warn-line);background:linear-gradient(180deg,var(--warn-bg),var(--surface) 70%)}
html.l26 .painel{border-radius:14px;box-shadow:var(--sombra-card);margin-bottom:20px}
html.l26 .painel .pcab{padding:16px 20px}
html.l26 .painel .pcorpo{padding:20px}
html.l26 th{font:600 12px var(--f-body);letter-spacing:.04em;color:var(--muted);padding:10px 14px}
html.l26 td{padding:12px 14px}
html.l26 tr.clicavel:hover td{background:var(--brand-tint)}
html.l26 .btn{border-radius:10px;min-height:40px;padding:0 16px;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
html.l26 .btn:hover{background:var(--brand-tint);border-color:var(--brand)}
html.l26 .btn.prim:hover{background:var(--brand-strong)}
html.l26 .btn.leve{min-height:32px;padding:0 10px}
html.l26 .btn.leve:hover{background:var(--brand-tint)}
html.l26 .btn.bloco{min-height:48px}
html.l26 .input{border-radius:10px;min-height:40px}
html.l26 textarea.input{min-height:auto}
html.l26 .chip{border-radius:999px;transition:all .15s}
html.l26 .modal{border-radius:16px;padding:24px;animation:nv-entra .2s var(--curva) both}
html.l26 .modal-fundo{background:rgba(10,38,32,.5);backdrop-filter:blur(2px)}
html.l26 .alerta{border-radius:10px}
html.l26 .toast{border-radius:12px;animation:nv-entra .2s var(--curva) both}

/* tela de entrada */
html.l26 .tela-entrada{background:radial-gradient(1200px 600px at 10% 0%,#0B6B4F 0%,transparent 60%),linear-gradient(160deg,#0F3D34,#0A2620)}
html.l26 .caixa{border-radius:20px;padding:36px 30px;animation:nv-entra .3s var(--curva) both}

/* conversas: com o menu aberto em telas médias, o painel da IA vira gaveta mais cedo */
@media (min-width:821px) and (max-width:1440px){
  html.l26 .nv-menu:not(.recolhido) ~ .nv-area .at{grid-template-columns:300px minmax(0,1fr)}
  html.l26 .nv-menu:not(.recolhido) ~ .nv-area .at-ia{display:none}
  html.l26 .nv-menu:not(.recolhido) ~ .nv-area .at.p-ia .at-ia{display:flex;position:fixed;inset:0 0 0 auto;width:min(360px,100vw);z-index:8;box-shadow:var(--shadow)}
  html.l26 .nv-menu:not(.recolhido) ~ .nv-area .so-estreito[data-p=ia]{display:inline-flex}
}
@media (min-width:1181px) and (max-width:1440px){html.l26 .nv-menu.recolhido ~ .nv-area .at{grid-template-columns:300px minmax(0,1fr) 320px}}

/* celular/tablet: menu vira gaveta com botão ☰ */
@media (max-width:820px){
  html.l26 .nv-barra{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:8;height:52px;padding:0 10px;background:var(--marca-escura);color:#fff}
  html.l26 .nv-barra b{font:600 16px var(--f-display)}
  html.l26 .nv-barra-btn{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;padding:0}
  html.l26 .nv-barra-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  html.l26 .nv-menu,html.l26 .nv-menu.recolhido{--menu-w:270px;position:fixed;left:0;top:0;bottom:0;padding-inline:12px;transform:translateX(-100%);transition:transform .26s var(--curva);z-index:30;box-shadow:none}
  html.l26 .nv-app.menu-aberto .nv-menu{transform:none;box-shadow:var(--sombra-menu)}
  html.l26 .nv-menu.recolhido .nv-menu-txt{opacity:1;width:auto;flex:initial}
  html.l26 .nv-menu.recolhido .nv-menu-item{justify-content:flex-start;padding:0 12px}
  html.l26 .nv-menu.recolhido .nv-menu-grupo{opacity:1;height:auto;margin:14px 8px 4px;border:0}
  html.l26 .nv-menu.recolhido .nv-menu-topo{flex-direction:row;padding:8px 4px 12px 8px}
  html.l26 .nv-menu.recolhido .nv-menu-logo img:not(.nv-menu-icone){display:block}
  html.l26 .nv-menu.recolhido .nv-menu-logo span{display:block}
  html.l26 .nv-menu.recolhido .nv-menu-logo .nv-menu-icone{display:none}
  html.l26 .nv-menu.recolhido .nv-menu-cont{position:static;min-width:24px;height:20px;line-height:20px;font-size:12px}
  html.l26 .nv-menu.recolhido .nv-menu-antigo{display:block}
  html.l26 .nv-menu.recolhido [data-dica]:hover::after{display:none}
  html.l26 .nv-menu-recolher{display:none}
  html.l26 .nv-menu-fundo{display:block;position:fixed;inset:0;background:rgba(10,38,32,.5);opacity:0;pointer-events:none;transition:opacity .2s;z-index:29}
  html.l26 .nv-app.menu-aberto .nv-menu-fundo{opacity:1;pointer-events:auto}
  html.l26 main{padding:18px 14px 48px}
  html.l26 main.main-at{height:calc(100vh - var(--topo-h,52px));height:calc(100dvh - var(--topo-h,52px))}
  html.l26 h1{font-size:24px;line-height:30px}
}
@media (prefers-reduced-motion:reduce){html.l26 *,html.l26 *::before,html.l26 *::after{transition:none!important;animation:none!important}}
@media print{html.l26 .nv-menu,html.l26 .nv-barra,html.l26 .nv-menu-fundo{display:none!important}html.l26 main{padding:0}html.l26 .nv-app{display:block}}

/* página de conexão do celular (coexistência) */
.cc-pagina{max-width:760px!important;margin:0 auto;padding:40px 20px 60px}
.cc-logo{height:44px;width:auto;margin-bottom:18px}
.cc-lista{margin:8px 0 16px;padding-left:20px;line-height:1.6}
.cc-lista li{margin-bottom:6px}
.cc-rotulo{max-width:260px}
html.l26 main.cc-pagina{margin:0 auto;max-width:760px;padding:40px 20px 60px}
