/* ============================================================
   conecta-shell.css — moldura única da intranet (sidebar desktop
   ↔ bottom-nav mobile). Depende de conecta.css (tokens/.pill).
   Marca: azul #003DFF, ciano #00AAFF, navy #001C6B.
   O JS (conecta-shell.js) aplica .cshell-host no container e injeta
   .cshell-side / .cshell-top / .cshell-content / .cshell-nav.
   Layout do host com !important porque assume o grid de #app.visible.
   ============================================================ */
:root{
  --brand:#003DFF; --brand-2:#00AAFF; --brand-navy:#001C6B; --brand-navy-2:#062A8F;
  --sh-side:250px; --sh-topbar:60px; --sh-nav:70px;
}

/* Host: vira grid [sidebar | conteúdo] */
.cshell-host{
  display:grid !important;
  grid-template-columns:var(--sh-side) 1fr !important;
  grid-template-rows:1fr !important;
  height:100vh !important; overflow:hidden !important;
}

/* ── Sidebar (desktop) ── */
.cshell-side{background:var(--brand-navy);color:#C7D2E6;display:flex;flex-direction:column;height:100vh;overflow:hidden}
.cshell-brand{padding:20px 16px 18px;border-bottom:1px solid rgba(255,255,255,.10);display:flex;justify-content:center;align-items:center}
.cshell-logo{width:100%;max-width:168px;height:auto;display:block}
.cshell-brand .sub{font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:#7E8FB5;margin-top:7px}
.cshell-emp{margin:12px 12px 4px;background:var(--brand-navy-2);border:1px solid rgba(255,255,255,.10);border-radius:9px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;color:#E4EAF6;font-size:12.5px;font-weight:600;cursor:pointer}
.cshell-emp-l{display:flex;align-items:center;gap:9px}
.cshell-emp-mark{width:22px;height:22px;flex:0 0 22px}
.cshell-nav-list{padding:8px 12px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1}
.cshell-nav-h{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#6C7CA3;padding:12px 10px 6px}
.cshell-i{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:8px;color:#B9C4DC;font-size:13px;font-weight:600;cursor:pointer;position:relative;text-decoration:none}
.cshell-i svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.8}
.cshell-i:hover{background:rgba(255,255,255,.05);color:#EAF0FB}
.cshell-i.on{background:rgba(0,61,255,.22);color:#fff}
.cshell-i.on::before{content:"";position:absolute;left:-12px;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:var(--brand)}
.cshell-i .cnt{margin-left:auto;background:rgba(255,255,255,.12);color:#EAF0FB;font-size:11px;font-weight:700;border-radius:999px;padding:1px 8px}
.cshell-foot{border-top:1px solid rgba(255,255,255,.10);padding:9px 12px;display:flex;flex-direction:column;gap:2px}

/* ── Conteúdo (topbar + main existente + bottom-nav) ── */
.cshell-content{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
/* O scroll do conteúdo vive AQUI. Sem este overflow-y a página não rolava
   quando o conteúdo passava da altura da janela (o .cshell-content é
   overflow:hidden) — só não aparecia no Colaboradores porque aquela tela já
   tinha `main{overflow-y:auto}` próprio. */
.cshell-content > main{flex:1;min-height:0;overflow-y:auto}
.cshell-top{display:flex;align-items:center;gap:16px;padding:0 22px;height:var(--sh-topbar);flex:0 0 var(--sh-topbar);background:var(--surface);border-bottom:1px solid var(--border)}
.cshell-top .t{font-size:15px;font-weight:800;color:var(--text)}
/* A busca do topbar foi REMOVIDA em 10/08: era decorativa, nenhuma tela
   ligava handler nela. Volta quando existir busca global de verdade. */
.cshell-top .t small{color:var(--muted);font-weight:600}
.cshell-me{margin-left:auto;display:flex;align-items:center;gap:9px}
.cshell-me img,.cshell-me .av{width:34px;height:34px;border-radius:50%;object-fit:cover}
.cshell-me .av{background:#123A9E;color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.cshell-me .nm{font-size:12.5px;font-weight:700;line-height:1.1}
.cshell-me .rl{font-size:11px;color:var(--muted)}

/* ── Bottom-nav (mobile) — escondido no desktop ── */
.cshell-nav{display:none}
.cshell-fabwrap{flex:0 0 60px;position:relative}

/* ── Mobile ── */
@media(max-width:880px){
  .cshell-host{grid-template-columns:1fr !important}
  .cshell-side{display:none}
  /* Gaveta: o "Mais" do menu inferior traz a sidebar por cima (é o caminho
     do celular para as telas que não cabem na barra de baixo). */
  .cshell-drawer-on .cshell-side{display:flex;position:fixed;left:0;top:0;bottom:0;width:264px;max-width:82vw;z-index:60;overflow-y:auto;box-shadow:6px 0 24px rgba(0,0,0,.35)}
  .cshell-backdrop{display:none}
  .cshell-drawer-on .cshell-backdrop{display:block;position:fixed;inset:0;background:rgba(6,12,30,.5);z-index:55}
  .cshell-content{overflow:visible}
  .cshell-content > main{padding-bottom:calc(var(--sh-nav) + 12px)}
  .cshell-top{position:sticky;top:0;z-index:30}
  .cshell-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--brand-navy);display:flex;align-items:flex-end;justify-content:space-around;padding:8px 6px 10px;height:var(--sh-nav)}
  .cshell-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:#9FB0D6;font-size:10.5px;font-weight:600;text-decoration:none;padding-top:6px}
  .cshell-nav a svg{width:22px;height:22px;stroke-width:1.9}
  .cshell-nav a.on{color:#fff}
  .cshell-nav a.on svg{color:var(--brand-2)}
  .cshell-fab button{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:58px;height:58px;border-radius:50%;background:var(--brand);border:4px solid var(--brand-navy);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(0,61,255,.4)}
  .cshell-fab button svg{width:26px;height:26px;stroke-width:2.4}
}

/* ── Componentes compartilhados das telas (não são da moldura) ──────────
   Célula de pessoa: bolinha de iniciais + nome. Vem do protótipo aprovado
   (proto-conecta-shell-colaboradores). Fica aqui porque as telas de G&C
   reusam conforme forem migradas. */
.person{display:flex;align-items:center;gap:10px}
.person .pdados{min-width:0}
.av-sm{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:12px;flex:0 0 34px;letter-spacing:.02em}

/* Item de menu ANUNCIADO e ainda não construído (27/08). Não é <a>: não clica,
   não recebe foco. O selo "em breve" evita que a opacidade sozinha seja lida
   como "desabilitado por permissão", que é outra coisa. */
.cshell-i.futuro{opacity:.45;cursor:default;display:flex;align-items:center;gap:10px}
.cshell-i.futuro:hover{background:none}
.cshell-breve{margin-left:auto;font-style:normal;font-size:9.5px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;opacity:.85;white-space:nowrap}
