/* e-Laborando — Portal do Cliente — identidade: #131629 · #FB5200 · #FFFFFF · Sora */
@font-face { font-family: "Sora"; src: url("../../assets/fontes/sora-latin-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --navy: #131629; --orange: #FB5200; --orange-text: #C23D00; --white: #FFFFFF;
  --surface: #F5F6F9; --line: #E4E6EC; --line-strong: #CDD0DA; --text: #131629; --soft: #545A6E; --faint: #6B7084;
  --ok: #1D7A4F; --ok-bg: #E7F5EE; --warn: #7A4B00; --warn-bg: #FFF4E0; --err: #B3261E; --err-bg: #FDECEA;
  --r: 14px; --sombra: 0 1px 2px rgba(19,22,41,.06), 0 4px 16px rgba(19,22,41,.05);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Sora", system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--text); background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; margin: 0; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.pular:focus { top: 8px; }

/* Topo */
.topo { background: var(--white); border-bottom: 1px solid var(--line); }
.topo-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); margin-right: auto; }
.marca span { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.marca b { color: var(--orange-text); font-weight: 600; }
.marca small { font-size: .72rem; color: var(--soft); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-strong); }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a, .menu .sair button { padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--soft); font-size: .88rem; font-weight: 500; }
.menu a:hover, .menu .sair button:hover { color: var(--navy); background: var(--surface); }
.menu a[aria-current] { color: var(--navy); background: var(--surface); font-weight: 600; }
.menu .sair { margin: 0; }
.menu .sair button { border: 0; background: none; font: inherit; font-size: .88rem; cursor: pointer; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--navy); font-size: .72rem; font-weight: 700; }
.menu-btn { display: none; border: 1px solid var(--line-strong); background: var(--white); border-radius: 99px; padding: 8px 16px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.voltar-site { font-size: .88rem; font-weight: 500; }

/* Página */
.pagina { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; flex: 1; display: grid; gap: 20px; align-content: start; }
.rodape { text-align: center; font-size: .8rem; color: var(--soft); padding: 20px; }
.cabeca { display: grid; gap: 6px; }
.cabeca h1 { margin: 0; }
.cabeca-acoes { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.eyebrow { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.trilha { font-size: .8rem; color: var(--soft); }
.meta { display: block; font-size: .78rem; color: var(--soft); font-weight: 400; }
.resumo { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 4px; }
.resumo .meta { display: inline; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; width: fit-content; max-width: 100%; }
.subnav a { padding: 6px 12px; border-radius: 99px; font-size: .8rem; text-decoration: none; color: var(--soft); }
.subnav a:hover { background: var(--surface); color: var(--navy); }
.titulo-secao { margin-top: 8px; }
section[id] { scroll-margin-top: 16px; }

/* Cartões */
.cartao { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); box-shadow: var(--sombra); min-width: 0; }
.cartao > :last-child { margin-bottom: 0; }
.cartao-estreito { max-width: 460px; width: 100%; margin: 4vh auto 0; }
.acesso h1 { font-size: 1.6rem; }
.sub { color: var(--soft); }
.destaque { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251,82,0,.12); }
.interno { background: #FBFBFD; border-style: dashed; }
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cartao-projeto { display: grid; gap: 8px; text-decoration: none; color: var(--navy); transition: border-color .2s, transform .2s; }
.cartao-projeto:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--navy); }
.cartao-projeto strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--orange-text); }
.duas-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.numeros { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.numeros li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .82rem; color: var(--soft); }
.numeros a { text-decoration: none; color: inherit; }
.numeros strong { display: block; font-size: 1.4rem; color: var(--navy); }
.vazio { color: var(--soft); font-size: .9rem; }
.nota, .dica { font-size: .8rem; color: var(--soft); }
.opc { font-weight: 400; color: var(--soft); font-size: .85em; }

/* Listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lista li:last-child { border-bottom: 0; }
.lista li > a { font-weight: 500; }
.lista .data { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.avisos li.novo a { font-weight: 600; }
.avisos .ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: middle; }
.avisos li.lido a { color: var(--soft); font-weight: 400; }

/* Selos e progresso */
.selo { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: var(--surface); color: var(--soft); white-space: nowrap; }
.selo-desenvolvimento, .selo-planejamento, .selo-revisao { background: #E8EAF6; color: #2A2F6B; }
.selo-aprovacao, .selo-aguardando-aprov { background: var(--warn-bg); color: var(--warn); }
.selo-finalizado, .selo-aprovado, .selo-compartilhado { background: var(--ok-bg); color: var(--ok); }
.selo-suspenso, .selo-ajustes { background: var(--err-bg); color: var(--err); }
.selo-interno { background: #EEF0F4; color: #3D4256; border: 1px dashed var(--line-strong); }
.barra { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; }
.barra progress { appearance: none; -webkit-appearance: none; width: 140px; height: 8px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.barra progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.barra progress::-webkit-progress-value { background: var(--orange); border-radius: 99px; }
.barra progress::-moz-progress-bar { background: var(--orange); border-radius: 99px; }

/* Alertas */
.alerta { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; background: var(--surface); }
.alerta-ok { background: var(--ok-bg); color: var(--ok); }
.alerta-aviso { background: var(--warn-bg); color: var(--warn); }
.alerta-erro { background: var(--err-bg); color: var(--err); }
.link-gerado p { margin-bottom: 8px; }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; font-size: .8rem; }

/* Formulários */
.form { display: grid; gap: 14px; margin-top: 12px; }
.form-estreito { max-width: 420px; }
.form-grade { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: end; }
.form-grade .largo { grid-column: 1 / -1; }
.form-grade > .btn { justify-self: start; }
.form > .btn { justify-self: start; }
label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--navy); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,22,41,.1); }
input[type=file] { padding: 8px; background: var(--surface); border-style: dashed; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
label.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); flex: none; }
.busca { display: flex; gap: 8px; max-width: 520px; }
.busca label { flex: 1; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.filtros a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: .8rem; text-decoration: none; color: var(--soft); }
.filtros a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 99px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--surface); color: var(--navy); }
.btn-primario { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-primario:hover { background: #E04900; border-color: #E04900; color: var(--navy); }
.btn-sec { border-color: var(--line-strong); }
.btn-link { border: 0; background: none; padding: 6px 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.btn-link.perigo { color: var(--err); }
.acoes-linha { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.acoes-linha form { margin: 0; }

/* Detalhes recolhíveis (edição) */
details.novo, details.editar { margin-top: 12px; }
details > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--navy); min-height: 32px; display: inline-flex; align-items: center; }
details.novo > summary { color: var(--orange-text); }
details[open] > summary { margin-bottom: 4px; }
details.editar[open] { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FBFBFD; }

/* Tabelas */
.tabela-rolagem { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabela th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.tabela td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela tr.feito td:first-child { text-decoration: line-through; color: var(--soft); }
.tabela tr.inativo td { color: var(--faint); }
.compacta td { font-size: .8rem; padding: 7px 10px; }

/* Etapas */
.etapas { list-style: none; margin: 0; padding: 0; display: grid; }
.etapa { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 0 0 18px; position: relative; }
.etapa:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.etapa-marca { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface); border: 2px solid var(--line-strong); color: var(--soft); position: relative; }
.etapa-andamento .etapa-marca { border-color: var(--orange); color: var(--orange-text); background: var(--white); }
.etapa-concluida .etapa-marca { background: var(--navy); border-color: var(--navy); color: var(--white); }
.etapa-concluida:not(:last-child)::before { background: var(--navy); }
.etapa-corpo { padding-top: 4px; min-width: 0; }
.etapa-corpo p { font-size: .88rem; color: var(--soft); margin: 4px 0 0; }

/* Arquivos */
.material { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 12px; scroll-margin-top: 16px; }
.material.arquivado { background: #FAFAFC; border-style: dashed; }
.material:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251,82,0,.12); }
.material header { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.material header .meta { display: inline; }
.versoes { list-style: none; margin: 0; padding: 0; }
.versoes li { padding: 8px 0; border-top: 1px solid var(--line); }
.versoes li.antiga .baixar { color: var(--soft); }
.versoes li.antiga .baixar { font-weight: 500; }
.baixar { font-weight: 600; }
.obs { font-size: .85rem; margin: 4px 0 0; }
.decisao { font-size: .82rem; margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; }
.decisao-aprovado { background: var(--ok-bg); color: var(--ok); }
.decisao-ajustes { background: var(--err-bg); color: var(--err); }
.aprovar { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--warn-bg); }
.aprovar .opc { color: var(--warn); }
.aprovar .nota { color: var(--warn); margin: 0; }

/* Mensagens */
.conversa { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; }
.msg { padding: 12px 14px; border-radius: 12px; background: var(--surface); max-width: 80%; }
.msg.msg-equipe { background: #EEF0F8; }
.msg.minha { justify-self: end; background: #FFF1E8; }
.msg p { margin: 4px 0 0; overflow-wrap: anywhere; }
.anexo { display: inline-block; margin: 6px 8px 0 0; font-size: .82rem; }

/* Linha do tempo */
.linha-tempo { list-style: none; margin: 12px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.linha-tempo li { position: relative; }
.linha-tempo li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.linha-tempo p { font-size: .88rem; color: var(--soft); margin: 2px 0 0; }

/* Duas etapas */
.passos { padding-left: 20px; font-size: .9rem; }
.mfa-config { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.qr img { display: block; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; }
.chave { font-size: .95rem; letter-spacing: .05em; background: var(--surface); padding: 4px 8px; border-radius: 6px; }

/* Celular */
@media (max-width: 860px) {
  .duas-colunas { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
  .menu.aberto { display: flex; }
  .menu a, .menu .sair button { width: 100%; text-align: left; padding: 12px; }
  .marca small { display: none; }
  .msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.cartao-projeto .selo, .cartao-projeto .barra { justify-self: start; }

/* Menu lateral (computador): o topo vira uma barra lateral fixa para quem está logado */
@media (min-width: 861px) {
  body.logado { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  body.logado .topo { grid-row: 1 / span 2; border-bottom: 0; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  body.logado .topo-in { flex-direction: column; align-items: stretch; padding: 24px 16px; gap: 28px; }
  body.logado .marca { flex-wrap: wrap; margin: 0 0 0 4px; }
  body.logado .marca small { flex-basis: 100%; border-left: 0; padding-left: 34px; margin: -6px 0 0; }
  body.logado .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  body.logado .menu a, body.logado .menu .sair button { display: flex; justify-content: space-between; align-items: center; width: 100%; border-radius: 10px; padding: 10px 12px; text-align: left; }
  body.logado .menu .sair { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  body.logado .pagina { max-width: 1120px; margin: 0; padding: 32px clamp(20px, 3vw, 40px) 56px; }
  body.logado .rodape { text-align: left; padding: 20px clamp(20px, 3vw, 40px); }
}

.links a, .trilha a { display: inline-block; padding: 4px 0; min-height: 24px; }
.tabela-rolagem:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Estatísticas */
.grafico { margin: 8px 0 0; }
.grafico svg { display: block; width: 100%; height: 180px; background: var(--surface); border-radius: 10px; }
.grafico rect { fill: var(--navy); }
.grafico rect:hover { fill: var(--orange); }
.grafico figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .75rem; color: var(--soft); }
.sub-t { font-size: .9rem; margin: 18px 0 4px; }
.lista code { font-size: .8rem; word-break: break-all; }
