/* Portal de Empreiteiros MS — mesmo visual do Portal de Clientes e do MS Conecta (cores, botões, cartões, selos, avisos). Sem CSS/HTML inline: a CSP não deixa.
   Celular primeiro: menu em faixa de atalhos com ícones; a partir de 1000px, menu lateral. Impressão no fim. */
:root {
  --azul: #1b4a86; --azul-esc: #123561; --azul-cl: #e8eef7; --texto: #1d2733; --suave: #5b6878; --linha: #dde3ea; --fundo: #f4f6f9; --branco: #fff;
  --verde: #1e7a46; --verde-cl: #e3f3ea; --verm: #b42318; --verm-cl: #fdecea; --amar: #8a5a00; --amar-cl: #fff4d6; --cinza-cl: #eef1f4;
  --raio: 14px; --raio-p: 10px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
  --sombra-alta: 0 6px 20px rgba(18, 53, 97, .12), 0 2px 6px rgba(18, 53, 97, .08);
  --grad: linear-gradient(135deg, var(--azul) 0%, var(--azul-esc) 100%);
  --largura: 1320px; /* 26/11/2026: era 1180 — com o menu ao lado, o extrato (9 colunas) não cabia */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--texto); background: var(--fundo); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--azul); }
button, select, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- topo ---------- */
.topo { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linha); position: relative; z-index: 6; }
.topo-in { max-width: var(--largura); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.marca img { display: block; height: 24px; width: auto; }
.marca-sub { color: var(--azul); background: var(--azul-cl); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar:empty { display: none; }
.quem { color: var(--texto); font-weight: 600; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sair { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--suave); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 12px; transition: .15s; }
.sair:hover { color: var(--verm); border-color: #f5c2bd; background: var(--verm-cl); }

.faixa-teste { background: var(--amar-cl); color: var(--amar); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f1d58a; }
/* MODO OPERADOR (27/11/2026): a equipe vendo como o cliente — faixa laranja sempre à vista, para ninguém confundir com o próprio acesso */
.faixa-operador { position: sticky; top: 0; z-index: 7; background: #c2410c; color: #fff; font-size: 13.5px; line-height: 1.45; text-align: center; padding: 8px 16px; }
.faixa-operador a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.faixa-operador strong { letter-spacing: .02em; }

/* ---------- contrato ---------- */
.contrato-barra { background: var(--grad); color: #fff; }
.contrato-in { max-width: var(--largura); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contrato-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contrato-ic .ic { width: 22px; height: 22px; }
.contrato-campo { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; max-width: 520px; }
.contrato-barra .rot { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.contrato-barra select { background: rgba(255, 255, 255, .96); color: var(--texto); border: 0; border-radius: 10px; padding: 8px 12px; max-width: 100%; font-weight: 600; }
.contrato-barra select:disabled { opacity: 1; }
.contrato-info { font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 12px; border-radius: 999px; }
.contrato-info:empty { display: none; }

/* ---------- casca: menu + conteúdo ---------- */
.casca { flex: 1; width: 100%; max-width: var(--largura); margin: 0 auto; }
.menu { background: var(--branco); border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 5; }
.menu-in { padding: 8px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.menu-in::-webkit-scrollbar { display: none; }
.menu a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; white-space: nowrap; text-decoration: none; color: var(--suave); font-weight: 600; font-size: 14px; border-radius: 999px; scroll-snap-align: start; transition: background .15s, color .15s; }
.menu a .ic { width: 18px; height: 18px; }
.menu a:hover { background: var(--cinza-cl); color: var(--azul-esc); }
.menu a.ativo { color: #fff; background: var(--azul); box-shadow: 0 2px 8px rgba(27, 74, 134, .25); }

.conteudo { width: 100%; padding: 20px 16px 48px; outline: none; min-width: 0; }
@media screen and (min-width: 1000px) {
  .casca { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; padding: 0 16px; }
  .menu { background: transparent; border: 0; top: 0; align-self: start; padding-top: 20px; }
  .menu-in { flex-direction: column; overflow: visible; padding: 8px; gap: 2px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
  .menu a { border-radius: 10px; padding: 10px 12px; }
  .menu a.ativo { box-shadow: none; }
  .conteudo { padding: 20px 0 56px; }
  .menu[hidden] + .conteudo { grid-column: 1 / -1; } /* sem menu (primeiro acesso, sem contrato): a tela usa a largura toda */
}

/* ---------- títulos ---------- */
h1 { font-size: 23px; line-height: 1.25; margin: 2px 0 14px; color: var(--azul-esc); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1 .tit-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--azul-cl); color: var(--azul); display: inline-flex; align-items: center; justify-content: center; flex: none; }
h1 .tit-ic .ic { width: 21px; height: 21px; }
h2 { font-size: 17px; margin: 26px 0 12px; color: var(--azul-esc); display: flex; align-items: center; gap: 8px; }
h2 .ic { color: var(--azul); }
.sub { color: var(--suave); margin: -6px 0 18px; }
.carregando { padding: 56px 0; text-align: center; color: var(--suave); }
.giro { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--linha); border-top-color: var(--azul); border-radius: 50%; animation: giro .8s linear infinite; vertical-align: -4px; margin-right: 6px; }
@keyframes giro { to { transform: rotate(360deg); } }
@keyframes surge { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.conteudo > * { animation: surge .25s ease-out both; }
.conteudo.sem-anim > * { animation: none; }
@media (prefers-reduced-motion: reduce) { .conteudo > * { animation: none; } html { scroll-behavior: auto; } }

/* ---------- início: boas-vindas ---------- */
.hero { background: var(--grad); color: #fff; border-radius: 18px; padding: 22px 22px 20px; box-shadow: var(--sombra-alta); position: relative; overflow: hidden; margin-bottom: 16px; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero::before { content: ""; position: absolute; right: 40px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero h1 { color: #fff; font-size: 25px; margin: 0 0 4px; }
.hero .sub { color: rgba(255, 255, 255, .85); margin: 0; position: relative; z-index: 1; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.atalho { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, transform .15s; }
.atalho:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.atalho .ic { width: 22px; height: 22px; }

/* ---------- cartões ---------- */
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; position: relative; }
.kpi .kpi-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--azul-cl); color: var(--azul); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.kpi .kpi-ic .ic { width: 20px; height: 20px; }
.kpi .rot { font-size: 13px; color: var(--suave); font-weight: 600; }
.kpi .val { font-size: 21px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--texto); }
.kpi .det { font-size: 12.5px; color: var(--suave); margin-top: 1px; }
.kpi.alerta .val { color: var(--verm); }
.kpi.alerta .kpi-ic { background: var(--verm-cl); color: var(--verm); }
.kpi.ok .val { color: var(--verde); }
.kpi.ok .kpi-ic { background: var(--verde-cl); color: var(--verde); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--azul); background: var(--azul); color: #fff; padding: 10px 16px; border-radius: var(--raio-p); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; line-height: 1.2; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--azul-esc); box-shadow: 0 3px 10px rgba(27, 74, 134, .25); }
.btn:active { transform: translateY(1px); }
.btn.sec { background: #fff; color: var(--azul); border-color: #c9d6ea; }
.btn.sec:hover { background: var(--azul-cl); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; align-items: center; }
.acoes select { border: 1px solid var(--linha); border-radius: var(--raio-p); padding: 8px 12px; background: #fff; }

/* ---------- selos ---------- */
.selo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.s-paga { background: var(--verde-cl); color: var(--verde); }
.s-atrasada { background: var(--verm-cl); color: var(--verm); }
.s-mes { background: var(--amar-cl); color: var(--amar); }
.s-futura { background: var(--cinza-cl); color: var(--suave); }
.s-distratada { background: var(--cinza-cl); color: var(--suave); text-decoration: line-through; }

/* ---------- avisos (ícone desenhado pelo CSS, data: URI permitido pela CSP) ---------- */
.aviso-caixa { position: relative; background: var(--azul-cl); border: 1px solid #c9d6ea; border-radius: 12px; padding: 12px 14px 12px 44px; font-size: 14px; color: var(--azul-esc); margin: 14px 0; }
.aviso-caixa::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.aviso-caixa.erro { background: var(--verm-cl); border-color: #f5c2bd; color: var(--verm); }
.aviso-caixa.erro::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.aviso-caixa a { color: inherit; font-weight: 700; }
/* equipe vendo tela desligada para o cliente (30/11/2026) */
.aviso-caixa.equipe { background: #fff1e6; border-color: #f6c9a4; color: #9a3412; }
.menu a.so-equipe::after { content: "só equipe"; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; background: #fff1e6; color: #9a3412; border: 1px solid #f6c9a4; }
.aviso-caixa.solicitado { background: var(--amar-cl); border-color: #f1d58a; color: var(--amar); margin: 0; } /* boleto solicitado (30/11/2026) */

/* ---------- filtros ---------- */
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 12px; align-items: center; }
.filtros button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--suave); transition: .15s; }
.filtros button:hover { border-color: #c9d6ea; color: var(--azul); }
.filtros button.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.filtros button[data-pdf] { margin-left: auto; } /* Baixar PDF e Imprimir à direita, separados dos filtros */
/* "Baixar PDF" do extrato com fundo azul (30/11/2026, pedido do Lucas) */
.filtros button[data-pdf] { background: var(--azul); border-color: var(--azul); color: #fff; }
.filtros button[data-pdf]:hover { background: var(--azul-esc); border-color: var(--azul-esc); color: #fff; }


/* ---------- rodapé e avisos rápidos ---------- */
#rodape-texto:empty { display: none; }
/* rodapé sem nada para mostrar (sem texto, sem política de privacidade, sem versão — ex.: entrada) some */
.rodape:not(:has(#rodape-texto:not(:empty), #privacidade:not([hidden]), #versao:not(:empty))) { display: none; }
.rodape { color: var(--suave); font-size: 12.5px; text-align: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: #fff; }
.versao { opacity: .6; margin-top: 2px; }
.aviso { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--azul-esc); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--sombra-alta); z-index: 20; max-width: calc(100% - 32px); animation: surge .2s ease-out; }
.so-impressao { display: none; }

@media screen and (max-width: 600px) {
  .marca-sub, .quem { display: none; }
  .marca img { height: 21px; }
  .sair span { display: none; }
  .sair { padding: 7px; }
  .contrato-in { padding: 10px 14px; gap: 10px; }
  .contrato-ic { display: none; }
  .conteudo { padding: 16px 14px 40px; }
  .kpi .val { font-size: 19px; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grade .cartao { padding: 14px; }
  .kpi .kpi-ic { width: 32px; height: 32px; margin-bottom: 6px; }
  h1 { font-size: 20px; }
  h1 .tit-ic { width: 34px; height: 34px; }
  .hero { padding: 18px 16px; border-radius: 16px; }
  .hero h1 { font-size: 22px; }
  .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boleto .acoes .btn { flex: 1 1 100%; }
  .filtros button[data-acao] { margin-left: 0; }
}

@media print {
  body { background: #fff; font-size: 11.5px; }
  .topo, .menu, .contrato-barra, .rodape, .acoes, .filtros, .faixa-teste, .faixa-operador, .nao-imprimir, .aviso, .hero .atalhos { display: none !important; }
  .casca { display: block; max-width: none; padding: 0; }
  .so-impressao { display: block; }
  .conteudo { max-width: none; padding: 0; }
  .conteudo > * { animation: none; }
  .cartao, .tab-caixa { box-shadow: none; border-color: #bbb; }
  .tab th, .tab td { padding: 4px 6px; }
  .tab td, .tab td .motivo { font-size: inherit; }
  .tab-caixa { overflow: visible; }
  .tab th { text-transform: none; letter-spacing: 0; }
  .kpi .kpi-ic, h1 .tit-ic, .campo .campo-ic { display: none; }
  .cab-impressao { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--azul); padding-bottom: 6px; margin-bottom: 10px; }
  .cab-impressao img { height: 20px; }
  tr { page-break-inside: avoid; }
}


/* ============================================================
   Próprio do portal de empreiteiros (30/11/2026): entrada, CNPJ, competência, documentos e funcionários
   (o desenho do protótipo da Segurança do Trabalho, no visual da MS)
   ============================================================ */
.s-aprovado { background: var(--verde-cl); color: var(--verde); }
.s-enviado, .s-reenviado, .s-na { background: var(--amar-cl); color: var(--amar); }
.s-recusado { background: var(--verm-cl); color: var(--verm); }
.s-pendente { background: var(--cinza-cl); color: var(--suave); }
.s-nao_aplica { background: var(--azul-cl); color: var(--azul); }

/* entrada sem login */
.entrada { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--grad); }
.entrada-cartao { background: #fff; border-radius: 18px; box-shadow: var(--sombra-alta); max-width: 460px; width: 100%; padding: 28px 24px; }
.entrada-cartao img { height: 26px; width: auto; display: block; margin-bottom: 18px; }
.entrada-cartao .olho { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); font-weight: 700; }
.entrada-cartao h1 { margin: 4px 0 10px; }
.entrada-cartao p { color: var(--suave); margin: 0 0 16px; }
.entrada-cartao .btn { width: 100%; padding: 12px 16px; font-size: 15px; }
.passos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; counter-reset: p; }
.passos li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texto); counter-increment: p; }
.passos li::before { content: counter(p); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--azul-cl); color: var(--azul); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
body.na-entrada .topo, body.na-entrada .casca { display: none; }

/* CNPJ e telas sem empresa escolhida */
.caixa-estreita { max-width: 540px; margin: 24px auto; }
.campo-cnpj { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.campo-cnpj input { flex: 1 1 220px; font-size: 18px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
input[type="text"], textarea { border: 1px solid var(--linha); border-radius: var(--raio-p); padding: 9px 12px; background: #fff; color: var(--texto); min-width: 0; }
input[type="text"]:focus, textarea:focus { border-color: #9fb6d8; outline: none; box-shadow: 0 0 0 3px rgba(27, 74, 134, .12); }
.msg-erro { color: var(--verm); font-size: 13.5px; margin-top: 8px; }
.msg-erro:empty { display: none; }
.msg-ok { color: var(--verde); font-size: 13.5px; margin-top: 8px; }
.msg-ok:empty { display: none; }

/* faixa azul: empresa + competência (como a barra do contrato do portal de clientes) */
.empresa-nome { font-weight: 700; font-size: 16px; line-height: 1.3; min-width: 0; flex: 1 1 260px; }
.empresa-nome small { display: block; font-weight: 600; opacity: .8; font-size: 12.5px; }
.contrato-barra .btn.sec { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); padding: 7px 12px; font-size: 13px; }
.contrato-barra .btn.sec:hover { background: rgba(255, 255, 255, .24); }
.contrato-campo.comp { flex: 0 1 200px; }

/* resumo */
.resumo { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.barra { flex: 1 1 220px; height: 10px; background: var(--cinza-cl); border-radius: 99px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--verde); width: 0; transition: width .3s; }
.barra > .p5 { width: 5%; } .barra > .p10 { width: 10%; } .barra > .p15 { width: 15%; } .barra > .p20 { width: 20%; } .barra > .p25 { width: 25%; }
.barra > .p30 { width: 30%; } .barra > .p35 { width: 35%; } .barra > .p40 { width: 40%; } .barra > .p45 { width: 45%; } .barra > .p50 { width: 50%; }
.barra > .p55 { width: 55%; } .barra > .p60 { width: 60%; } .barra > .p65 { width: 65%; } .barra > .p70 { width: 70%; } .barra > .p75 { width: 75%; }
.barra > .p80 { width: 80%; } .barra > .p85 { width: 85%; } .barra > .p90 { width: 90%; } .barra > .p95 { width: 95%; } .barra > .p100 { width: 100%; }
.resumo .conta { font-variant-numeric: tabular-nums; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* lista de documentos */
.grupo-tit { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.grupo-tit h2 { margin: 0; }
.grupo-tit .dica { color: var(--suave); font-size: 13px; font-variant-numeric: tabular-nums; }
.lista { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; border-top: 1px solid var(--linha); }
.doc:first-child { border-top: 0; }
.doc .nome { font-weight: 650; }
.doc .dica { color: var(--suave); font-size: 13px; }
.doc .selo { align-self: start; }
.doc .inteira { grid-column: 1 / -1; min-width: 0; }
.doc .motivo { font-size: 13.5px; color: var(--verm); background: var(--verm-cl); border-radius: 8px; padding: 6px 10px; }
.arquivos { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.arquivos li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13.5px; min-width: 0; }
.arquivos a { color: var(--azul); word-break: break-all; font-weight: 600; }
.arquivos .meta { color: var(--suave); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.doc-acoes { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.btn.peq { padding: 6px 12px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--verm); text-decoration: underline; cursor: pointer; }
.link-btn.azul { color: var(--azul); }
.marca-na { display: inline-flex; gap: 7px; align-items: center; font-size: 13.5px; color: var(--suave); cursor: pointer; }
.progresso { font-size: 13px; color: var(--amar); font-weight: 600; }
.doc .err { font-size: 13px; color: var(--verm); }
.doc .err:empty { display: none; }

/* funcionários */
.add-func { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.add-func input { flex: 1 1 260px; }
.vazio { background: var(--branco); border: 1px dashed var(--linha); border-radius: var(--raio); padding: 18px 16px; display: grid; gap: 10px; justify-items: start; color: var(--suave); }
.funcs { display: grid; gap: 10px; }
details.func { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
details.func > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 13px 16px; }
details.func > summary::-webkit-details-marker { display: none; }
details.func > summary .fn { font-weight: 650; display: flex; gap: 8px; align-items: center; min-width: 0; }
details.func > summary .fn::before { content: "\25B8"; color: var(--suave); font-size: 12px; transition: transform .15s; }
details.func[open] > summary .fn::before { transform: rotate(90deg); }
details.func[open] > summary { border-bottom: 1px solid var(--linha); background: var(--cinza-cl); }
.fopts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--linha); }
.fopts label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--suave); cursor: pointer; }

/* observação e avisos da competência */
.obs textarea { width: 100%; min-height: 90px; resize: vertical; }
.fechada { background: var(--cinza-cl); color: var(--suave); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 14px 0; }
.nota-rodape { color: var(--suave); font-size: 13px; margin-top: 26px; }
/* uma tela só (sem menu): topo, faixa azul e conteúdo na mesma largura */
:root { --largura: 1012px; }
.entrada-cartao .nota-rodape { margin: 16px 0 0; font-size: 13px; }

@media screen and (max-width: 560px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc .selo { justify-self: start; }
  .contrato-barra .btn.sec { padding: 6px 10px; }
  .sair span { display: inline; }
  .sair { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { .barra > span, details.func > summary .fn::before { transition: none; } }
