/* Portal do Colaborador — identidade Orais (brandbook nov/2025).
   Ciano #4F8E90 primário · Rosa queimado #CA5869 acento · branco/off-white base.
   Verde = positivo e vermelho = só negativo são MANTIDOS como semântica de valores
   (a marca não tem verde/vermelho). Estética de app de banco premium. Base 17px, AA. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/static/fonts/inter-800.woff2") format("woff2");
}

:root {
  /* Marca — ciano (primária) e variações */
  --ciano-900: #1F3839;
  --ciano-700: #2F5556;
  --ciano-600: #3F7173;
  --ciano:     #4F8E90;
  --ciano-300: #72A4A6;
  --ciano-150: #B8D1D2;
  --ciano-100: #DBE8E8;
  /* Marca — rosa queimado (acento) */
  --rosa:      #CA5869;
  --rosa-700:  #A14654;
  --rosa-100:  #F4DDE1;
  /* Semântica de valores (mantida, fora da paleta de marca) */
  --verde:    #157F4B;
  --verde-bg: #E6F6EE;
  --verde-bd: #BFE9CF;
  --vermelho: #C62828;
  --verm-bg:  #FDECEA;
  --amarelo-bg: #FFF7E6;
  --amarelo-bd: #FFE0A3;
  /* Neutros (cinzas da marca; evitar preto puro) */
  --texto:  #323232;
  --cinza:  #666666;
  --linha:  #E6E8E8;
  --branco: #FFFFFF;
  --fundo:  #F4F5F5;
  /* Gradiente só com shades oficiais do ciano: escuro -> oficial */
  --grad: linear-gradient(140deg, #2F5556 0%, #3F7173 50%, #4F8E90 100%);
  --r-sm: 12px; --r: 18px; --r-lg: 24px;
  /* Sombras difusas (fintech) */
  --sombra: 0 1px 2px rgba(31,56,57,.05), 0 12px 32px rgba(31,56,57,.09);
  --sombra-sutil: 0 1px 3px rgba(36,48,50,.06);
  --sombra-cartao: 0 1px 2px rgba(31,56,57,.04), 0 6px 22px rgba(31,56,57,.07);
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; color: var(--texto); background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
body.app { padding-bottom: 92px; }

.conteudo { max-width: 560px; margin: 0 auto; animation: entra .16s ease both; }
body.app .conteudo { padding: 0 16px 12px; }
body.auth .conteudo { padding: 0 18px 28px; }
/* Telas RH com tabela/grade larga: usam largura total no desktop (mobile rola na horizontal). */
body.wide .conteudo { max-width: 1100px; }

@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.55rem; font-weight: 800; margin: 0; letter-spacing: -.015em; }
small { font-size: .5em; font-weight: 600; color: var(--cinza); margin-left: 3px; }

/* ---------- Cabeçalho ciano (telas internas) ---------- */
.cabecalho-azul {
  background: var(--grad); color: var(--branco);
  margin: 0 -16px 0; padding: 18px 20px 22px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--sombra);
}
.cab-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
/* logo do header: ver .logo-chip--header acima */
.cab-acoes { display: flex; align-items: center; gap: 10px; }
.cabecalho-azul h1 { color: var(--branco); }
.ola { margin: 0 0 2px; color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 600; }
.sair {
  color: var(--branco); text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 7px 15px;
  transition: background .15s ease;
}
.sair:active { background: rgba(255,255,255,.16); }

/* Botão "ocultar valores" (olho), como app de banco */
.olho {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.45);
  color: var(--branco); -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .12s ease;
}
.olho:active { transform: scale(.94); background: rgba(255,255,255,.26); }
.olho svg { width: 22px; height: 22px; }
.olho .olho-fechado { display: none; }
.olho[aria-pressed="true"] .olho-aberto { display: none; }
.olho[aria-pressed="true"] .olho-fechado { display: block; }

/* Sobe os cards por cima da faixa ciano */
/* Conteúdo começa ABAIXO do cabeçalho, com respiro consistente (sem sobrepor a faixa). */
#cards { display: block; margin-top: 0; padding-top: 16px; }
body.app #cards > :first-child { margin-top: 0; }
.legenda { color: var(--cinza); margin: 0 4px 12px; font-weight: 600; }

/* ---------- Cartões ---------- */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cartao {
  background: var(--branco); border-radius: var(--r); padding: 18px;
  box-shadow: var(--sombra-cartao); display: flex; flex-direction: column; gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cartao:active { transform: translateY(1px); }
.cartao .rotulo { color: var(--cinza); font-size: .95rem; font-weight: 600; }
.cartao .valor { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cartao.vazio { grid-column: 1 / -1; color: var(--cinza); text-align: center; padding: 28px; }
.cartao.aviso { background: var(--amarelo-bg); border: 1px solid var(--amarelo-bd); box-shadow: var(--sombra-sutil); }
.cartao.ok { background: var(--verde-bg); border: 1px solid var(--verde-bd); box-shadow: var(--sombra-sutil); }
.cartao .mini { color: var(--cinza); font-size: .95rem; margin: 6px 0 0; }
.cartao p { margin: 0; }

.verde { color: var(--verde); }
.vermelho { color: var(--vermelho); }

/* ---------- Valor em dinheiro como herói (R$ sobrescrito, estilo banco) ---------- */
.dinheiro { display: inline-flex; align-items: flex-start; justify-content: center; gap: .12em; white-space: nowrap; }
.dinheiro .cifra {
  font-size: .46em; font-weight: 700; line-height: 1; margin-top: .42em;
  color: var(--cinza); letter-spacing: 0; opacity: .92;
}
.numero-grande .cifra { color: rgba(50,50,50,.5); }
.numero-grande.verde .cifra, .valor.verde .cifra { color: rgba(21,127,75,.6); }
.dinheiro .montante { font-variant-numeric: tabular-nums; }
.cartao .valor.dinheiro { justify-content: flex-start; }

/* Valor oculto (•••• ) */
.montante.oculto, .mascaravel.oculto { letter-spacing: .12em; color: var(--cinza); }
.numero-grande .montante.oculto { color: var(--cinza); }

/* ---------- Destaque (premiação / salário) ---------- */
.destaque {
  background: var(--branco); border-radius: var(--r-lg); padding: 28px 22px 24px;
  text-align: center; box-shadow: var(--sombra); margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.numero-grande { font-size: 3.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; justify-content: center; }
.destaque .rotulo { color: var(--cinza); font-weight: 600; }

/* Detalhe premium: borda superior fina na cor rosa da marca */
.destaque.premiacao { position: relative; overflow: hidden; padding-top: 30px; }
.destaque.premiacao::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rosa) 0%, #D47987 100%);
}

/* Microcopy emocional */
.conquista { font-weight: 700; color: var(--texto); margin: 4px 0 0; font-size: 1.02rem; }
.conquista.cheia { color: var(--rosa-700); }

/* ---------- Histórico ---------- */
.historico { margin-top: 16px; }
.historico summary {
  cursor: pointer; font-weight: 600; color: var(--ciano-700); list-style: none;
  padding: 14px 16px; background: var(--branco); border-radius: var(--r); box-shadow: var(--sombra-sutil);
}
.historico summary::-webkit-details-marker { display: none; }
.historico summary::after { content: " ▾"; color: var(--ciano-300); }
.historico[open] summary::after { content: " ▴"; }
.tabela { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--branco); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra-sutil); }
.tabela th, .tabela td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--linha); font-size: .98rem; }
.tabela tr:last-child td { border-bottom: none; }
.tabela th { background: var(--ciano-100); color: var(--ciano-700); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Skeleton loading ---------- */
.skeleton { pointer-events: none; }
.sk-linha { display: block; height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #E6E8E8 25%, #F4F4F4 37%, #E6E8E8 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.sk-rotulo { width: 60%; }
.sk-valor { width: 80%; height: 26px; margin-top: 8px; }
.sk-grande { width: 70%; height: 44px; margin: 10px auto 0; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Auth (login / 1º acesso / senha) ---------- */
body.auth { background: var(--fundo); }
.hero {
  background: var(--grad); color: var(--branco); text-align: center;
  margin: 0 -18px 0; padding: 52px 24px 64px; border-radius: 0 0 32px 32px;
  box-shadow: var(--sombra);
}
/* Chip branco da logo bordô oficial (componente único: partials/logo.html).
   A largura vem do style inline do <img>, então fica certa mesmo com CSS em cache. */
.logo-chip { background: #fff; border-radius: 16px; display: inline-block;
  box-shadow: 0 8px 22px rgba(31,56,57,.18); line-height: 0; }
.logo-chip .logo-img { display: block; height: auto; }
.logo-chip--hero { padding: 14px 18px; margin: 0 auto 4px; }
.logo-chip--header { padding: 6px 10px; border-radius: 12px; }
.hero h1 { color: var(--branco); margin: 18px 0 6px; font-size: 1.7rem; }
.hero p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.02rem; max-width: 30ch; margin-inline: auto; }

.cartao-form {
  background: var(--branco); border-radius: var(--r-lg); box-shadow: var(--sombra);
  padding: 22px; margin-top: -34px; max-width: 440px; margin-inline: auto;
}
.form { display: flex; flex-direction: column; }
.form label { font-weight: 600; margin: 14px 0 6px; }
.form input {
  font-size: 1.1rem; padding: 15px; border: 2px solid #D7DBDB; border-radius: var(--r-sm);
  background: #FBFBFB; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus { outline: none; border-color: var(--ciano); box-shadow: 0 0 0 4px rgba(79,142,144,.16); background: var(--branco); }
.botao {
  margin-top: 22px; background: var(--ciano); color: var(--branco); border: none;
  font-size: 1.15rem; font-weight: 700; padding: 16px; border-radius: var(--r-sm); cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(79,142,144,.28);
}
.botao:hover { background: var(--ciano-600); }
.botao:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(79,142,144,.28); }

/* Campo de senha com olhinho (mostrar/ocultar). O toggle está em app.js. */
.campo-senha { position: relative; display: flex; align-items: center; }
.campo-senha input { padding-right: 54px; }
.olho-senha { position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 10px; cursor: pointer; color: var(--ciano-700);
  display: inline-flex; align-items: center; -webkit-tap-highlight-color: transparent; }
.olho-senha .ic-off { display: none; }
.olho-senha[aria-pressed="true"] .ic-on { display: none; }
.olho-senha[aria-pressed="true"] .ic-off { display: inline-flex; }

/* Relatório de assiduidade (RH): selos de situação + filtros */
.selo { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.selo-ok { background: var(--verde-bg); color: var(--verde); border: 1px solid var(--verde-bd); }
.selo-ocor { background: var(--verm-bg); color: var(--vermelho); border: 1px solid #F5C2C0; }
.selo-indisp { background: #EEE; color: #666; border: 1px solid #DDD; }
.selo-pend { background: var(--amarelo-bg, #FFF6E0); color: #9A6B00; border: 1px solid var(--amarelo-bd, #F0D89B); }
.selo-info { background: var(--ciano-100); color: var(--ciano-700); border: 1px solid var(--ciano-150); }
.rec-det { margin-top: 4px; }
.rec-det > summary { cursor: pointer; color: var(--ciano-700); font-weight: 600; font-size: .82rem; list-style: none; }
.rec-det > summary::-webkit-details-marker { display: none; }
.rec-det > summary::after { content: " ▾"; color: var(--ciano-300); }
.rec-det[open] > summary::after { content: " ▴"; }
.rec-hist { background: var(--ciano-50, #eef6f6); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }

/* Card de férias coletivas (colaborador): três datas mastigadas */
.coletiva-datas { margin-top: 10px; }
.coletiva-datas p { margin: 0 0 10px; }
.coletiva-datas p:last-child { margin-bottom: 0; }
.coletiva-datas .cd-rot { display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--cinza); margin-bottom: 1px; }
.coletiva-datas strong { font-size: 1.05rem; color: var(--texto); font-variant-numeric: tabular-nums; }
.ocor-linha { border-top: 1px solid var(--ciano-100); padding-top: 6px; margin-top: 6px; }
.ocor-linha:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Modal obrigatório de pergunta de motivo (colaborador) — bloqueia até responder */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(20,40,40,.6);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto; }
.modal-card { background: var(--branco); border-radius: var(--r-lg); box-shadow: var(--sombra);
  padding: 22px; max-width: 440px; width: 100%; }
.modal-card h2 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ciano-700); }
.modal-card p { margin: 0 0 6px; }
.modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.modal-form textarea { font-size: 1.05rem; padding: 12px; border: 2px solid #D7DBDB;
  border-radius: var(--r-sm); background: #FBFBFB; width: 100%; }
.modal-form .botao { margin-top: 0; }
.mes-chip { display: inline-block; padding: 7px 13px; border-radius: 999px; background: #fff;
  border: 1px solid var(--linha); color: var(--ciano-700); font-weight: 600; font-size: .9rem;
  text-decoration: none; }
.mes-chip.on { background: var(--ciano); border-color: var(--ciano); color: #fff; }

/* Contestação de batida (Meu Ponto e RH) */
.contestar { margin-top: 10px; border-top: 1px dashed var(--linha); padding-top: 8px; }
.contestar > summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ciano-700); font-size: .9rem; }
.contestar > summary::-webkit-details-marker { display: none; }
.contestar > summary::after { content: " ▾"; color: var(--ciano-300); }
.contestar[open] > summary::after { content: " ▴"; }
.contestar-corpo { margin-top: 8px; }
.cont-item { background: var(--ciano-50, #eef6f6); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.cont-item p { margin: 2px 0; }
.resposta-rh { color: var(--verde); }
.cont-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cont-form select, .cont-form textarea { font-size: .98rem; padding: 10px; border: 2px solid #D7DBDB; border-radius: 10px; background: #FBFBFB; width: 100%; }
.cont-form .botao { margin-top: 4px; align-self: flex-start; padding: 10px 16px; font-size: 1rem; }
.linha-func { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--linha); }
.linha-func:last-child { border-bottom: none; }
.func-det { border-bottom: 1px solid var(--linha); }
.func-det > summary { list-style: none; cursor: pointer; }
.func-det > summary::-webkit-details-marker { display: none; }
.func-det[open] > summary .linha-func { border-bottom: none; }
.func-det .detalhe { padding: 2px 8px 12px; }

.link-secundario { display: block; text-align: center; margin-top: 18px; color: var(--ciano-700); font-weight: 600; text-decoration: none; }
.link-secundario:hover { text-decoration: underline; }

/* Links já visitados não devem cair na cor ROXA padrão do navegador. */
a:visited { color: inherit; }
a.botao:visited { color: var(--branco); }
.link-secundario, .link-secundario:visited { color: var(--ciano-700); }

/* Link "voltar" DENTRO do cabeçalho ciano: branco (inclusive visitado), no topo, clicável. */
.voltar-cab, .voltar-cab:link, .voltar-cab:visited { color: var(--branco) !important; }
.voltar-cab { display: inline-block; font-weight: 600; text-decoration: none;
  margin-bottom: 10px; opacity: .95; -webkit-tap-highlight-color: transparent; }
.voltar-cab:active { opacity: .75; }

/* Grade de avaliação (RH): inputs numéricos compactos, rolagem horizontal no mobile */
.grade-aval th, .grade-aval td { text-align: center; padding: 6px 4px; vertical-align: middle; }
.grade-aval td small { color: var(--cinza); }
.cel-num { width: 52px; padding: 6px 4px; text-align: center; border: 1px solid var(--ciano-150);
  border-radius: var(--r-sm, 8px); font-size: .95rem; }
.cel-txt, .cel-obs { padding: 6px 6px; border: 1px solid var(--ciano-150);
  border-radius: var(--r-sm, 8px); font-size: .95rem; }
.cel-txt { width: 100px; }
.cel-obs { width: 170px; }
.grade-aval .nf-cell { font-weight: 700; color: var(--ciano-700); white-space: nowrap; }

/* Linha de cascata salarial (rótulo à esquerda, valor à direita) */
.linha-cascata { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.linha-cascata + .linha-cascata { border-top: 1px solid var(--ciano-100); }
.linha-cascata.total { border-top: 1.5px solid var(--ciano-150); margin-top: 2px; padding-top: 8px; font-weight: 700; }
.linha-cascata small { color: var(--cinza); font-weight: 600; }
.linha-cascata .vermelho { white-space: nowrap; }
.ajuda { text-align: center; color: var(--cinza); margin-top: 16px; font-size: .95rem; }

.alerta { border-radius: var(--r-sm); padding: 14px; margin-bottom: 12px; font-weight: 600; }
.alerta.erro { background: var(--verm-bg); color: var(--vermelho); border: 1px solid #F5C2C0; }
.alerta.info { background: var(--ciano-100); color: var(--ciano-700); border: 1px solid var(--ciano-150); }

/* ---------- Navegação inferior ---------- */
.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: var(--branco); border-top: 1px solid var(--linha);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(36,48,50,.06);
}
.nav-inferior a {
  flex: 1; text-align: center; text-decoration: none; color: var(--cinza);
  font-size: .78rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .15s ease, transform .12s ease;
}
.nav-inferior a svg { width: 25px; height: 25px; }
.nav-inferior a:active { transform: translateY(1px); }
.nav-inferior a.ativo { color: var(--ciano-700); }
/* Ícone preenchido quando ativo (não só cor) */
.nav-inferior a .ic-cheio { display: none; }
.nav-inferior a.ativo .ic-linha { display: none; }
.nav-inferior a.ativo .ic-cheio { display: block; }

/* Sub-navegação segmentada no cabeçalho (grupo "Meu") */
.subnav { display: flex; gap: 6px; margin-top: 16px; background: rgba(255,255,255,.16);
  padding: 4px; border-radius: 999px; }
.subnav a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 999px;
  color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: background .15s ease, color .15s ease; }
.subnav a.on { background: #fff; color: var(--ciano-700); box-shadow: var(--sombra-sutil); }

/* Cartão-link (atalhos) e botões-link */
.link-cartao { text-decoration: none; color: inherit; }
.link-cartao .rotulo { color: var(--texto); font-weight: 700; }
a.botao { display: block; text-align: center; text-decoration: none; }
.botao-rosa { background: var(--rosa); box-shadow: 0 8px 18px rgba(202,88,105,.28); }
.botao-rosa:hover { background: var(--rosa-700); }
.botao-cinza { background: var(--cinza); box-shadow: none; }

/* Chips de percentual (Pedido de Vale) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; background: #fff;
  border: 2px solid var(--linha); font-weight: 700; color: var(--texto); cursor: pointer; }
.chip input:checked + span { background: var(--ciano); border-color: var(--ciano); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79,142,144,.3); }

@media (prefers-reduced-motion: reduce) {
  .sk-linha { animation: none; }
  .conteudo { animation: none; }
}

/* Meu Ponto (batidas Secullum) — read-only */
.mes-nav { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.mes-nav .mes-atual { flex: 1; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--texto); }
.mes-seta { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #fff; border: 1px solid var(--linha); color: var(--ciano-700);
  font-weight: 800; text-decoration: none; box-shadow: var(--sombra-sutil); }
.mes-seta.off { opacity: .35; box-shadow: none; }
.afast-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-afast { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--amarelo-bg); border: 1px solid var(--amarelo-bd); font-weight: 700; font-size: .92rem; color: var(--texto); }
.badge-afast small { font-weight: 600; opacity: .7; }
.dia-ponto { margin-bottom: 10px; }
/* Dia com ocorrência (regra Orais): falta = avermelhado suave, atraso = âmbar suave.
   Fundo leve + traço lateral — nada de vermelho cheio. */
.dia-ponto.com-falta { background: var(--verm-bg); border-left: 3px solid var(--vermelho); }
.dia-ponto.com-atraso { background: var(--amarelo-bg); border-left: 3px solid var(--amarelo-bd); }
.dia-ponto.com-abonado { background: var(--verde-bg); border-left: 3px solid var(--verde); }
.dia-ponto .dia-cab { color: var(--cinza); font-size: .95rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-ocor { font-size: .72rem; font-weight: 700; letter-spacing: .01em; padding: 2px 9px;
  border-radius: 999px; }
.tag-falta { background: var(--verm-bg); color: var(--vermelho); border: 1px solid #F5C2C0; }
.tag-atraso { background: var(--amarelo-bg); color: #8a6d00; border: 1px solid var(--amarelo-bd); }
.tag-abonado { background: var(--verde-bg); color: var(--verde); border: 1px solid var(--verde-bd); }
.dia-ponto .batidas { display: flex; flex-wrap: wrap; gap: 8px; }
.batida { display: inline-block; padding: 9px 14px; border-radius: 12px; background: var(--ciano-50, #eef6f6);
  color: var(--ciano-700); font-weight: 800; font-variant-numeric: tabular-nums; }
.batida.ajustada { background: var(--amarelo-bg); color: #8a6d00; }
.batida.desconsiderada { text-decoration: line-through; opacity: .55; }
.nota-ponto { opacity: .7; margin-top: 4px; }
.resumo-ponto { margin-bottom: 12px; }
.resumo-ponto .resumo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.resumo-ponto .resumo-linha span { color: var(--cinza); font-weight: 600; }
.resumo-ponto .resumo-linha strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--ciano-700); }
.resumo-ponto .mini { margin-top: 4px; opacity: .7; }
.info-ponto { background: var(--ciano-50, #eef6f6); border: 1px solid var(--ciano-100, #d6eaea); }

/* =====================================================================================
   v2 (nov/2026) — Painel RH como aplicativo web (menu lateral) + portal no computador.
   Tudo abaixo só ACRESCENTA: as telas do colaborador no celular seguem como validadas.
   ===================================================================================== */
:root {
  --rh-lado: 264px;
  --rh-fundo: #F2F4F4;
  --rh-borda: #E1E5E5;
  --foco: 0 0 0 3px rgba(79,142,144,.28);
}
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 2px; }
.botao-p { font-size: .95rem; padding: 9px 14px; margin-top: 0; box-shadow: none; border-radius: 10px; }

/* ---------- Casca ---------- */
html:has(body.rh) { font-size: 16px; }
body.rh { background: var(--rh-fundo); padding: 0; }
body.rh .conteudo { max-width: none; margin: 0; padding: 0; animation: none; }
.rh-gaveta-chk { position: absolute; opacity: 0; pointer-events: none; }
.rh-shell { display: grid; grid-template-columns: var(--rh-lado) minmax(0, 1fr); min-height: 100vh; }

.rh-lado {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30;
  background: var(--ciano-900); color: #fff; display: flex; flex-direction: column;
  padding: 18px 12px 12px;
}
.rh-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 2px 6px 16px; }
.rh-marca .logo-chip { padding: 5px 8px; border-radius: 10px; box-shadow: none; }
.rh-marca span { display: flex; flex-direction: column; line-height: 1.2; }
.rh-marca strong { font-weight: 800; letter-spacing: -.01em; }
.rh-marca em { font-style: normal; font-size: .74rem; color: rgba(255,255,255,.6); }
.rh-menu { flex: 1; }
.rh-grupo { margin: 16px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.45); }
.rh-item, .rh-item:visited {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0;
  border-radius: 9px; text-decoration: none; color: rgba(255,255,255,.8);
  font-weight: 600; font-size: .93rem; transition: background .12s ease, color .12s ease;
}
.rh-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.rh-item span { flex: 1; min-width: 0; }
.rh-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.rh-item.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--rosa); }
.rh-conta { background: var(--rosa); color: #fff; font-size: .72rem; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rh-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.rh-quem { color: rgba(255,255,255,.85); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-pe a, .rh-pe a:visited { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; }
.rh-pe a:hover { color: #fff; }
.rh-veu { display: none; }

.rh-principal { min-width: 0; display: flex; flex-direction: column; }
.rh-topo {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 16px 28px; background: rgba(242,244,244,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rh-borda);
}
.rh-titulos { flex: 1; min-width: 0; }
.rh-topo h1 { font-size: 1.35rem; color: var(--ciano-900); }
.rh-sub { margin: 2px 0 0; color: var(--cinza); font-size: .93rem; }
.rh-hamb { display: none; }
.rh-corpo { padding: 22px 28px 48px; max-width: 1180px; width: 100%; }
.rh-h2 { font-size: 1rem; font-weight: 800; color: var(--ciano-900); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.rh-h2-n { background: var(--ciano-100); color: var(--ciano-700); font-size: .78rem; padding: 1px 8px; border-radius: 999px; }

/* ---------- Componentes dentro do RH (densidade de computador) ---------- */
body.rh #cards { padding-top: 0; }
body.rh .legenda { margin: 22px 0 10px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--cinza); }
body.rh #cards > .legenda:first-child, body.rh .rh-corpo > .legenda:first-child { margin-top: 0; }
body.rh .cartao { border-radius: 14px; padding: 16px 18px; border: 1px solid var(--rh-borda); box-shadow: 0 1px 2px rgba(31,56,57,.04); }
body.rh .cartao:active { transform: none; }
body.rh .cartao.ok { border-color: var(--verde-bd); }
body.rh .cartao.aviso { border-color: var(--amarelo-bd); }
body.rh .cartao .mini, body.rh .mini { font-size: .9rem; }
body.rh .grade { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body.rh .rh-corpo a:not(.botao):not(.fila):not(.cartao) { color: var(--ciano-700); }
body.rh .passos a, body.rh .passos a:visited { color: var(--texto); }
body.rh a.botao, body.rh a.botao:visited { color: #fff; }
body.rh a.botao-cinza, body.rh a.botao-cinza:visited { color: var(--texto); }

body.rh .botao { font-size: .98rem; padding: 10px 16px; margin-top: 12px; border-radius: 10px; box-shadow: none; }
body.rh .botao:hover { filter: brightness(.95); }
body.rh a.botao { display: inline-block; }
body.rh .botao-cinza { background: #fff; color: var(--texto); border: 1.5px solid #CBD2D2; }
body.rh .botao-cinza:hover { background: #F6F8F8; filter: none; }

body.rh label { font-weight: 600; font-size: .88rem; color: #4A5555; }
body.rh input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.rh select, body.rh textarea {
  font: inherit; font-size: .98rem; font-weight: 400; color: var(--texto);
  padding: 9px 11px; border: 1.5px solid #CBD2D2; border-radius: 10px; background: #fff;
  min-height: 40px; max-width: 100%; transition: border-color .12s ease, box-shadow .12s ease;
}
body.rh label > input:not([type=checkbox]):not([type=radio]), body.rh label > select, body.rh label > textarea {
  display: block; width: 100%; margin-top: 4px; }
body.rh textarea { width: 100%; min-height: 76px; resize: vertical; }
body.rh input:focus, body.rh select:focus, body.rh textarea:focus { outline: none; border-color: var(--ciano); box-shadow: var(--foco); }
body.rh .cartao-form { margin: 0 0 8px; max-width: 760px; padding: 18px; border-radius: 14px;
  border: 1px solid var(--rh-borda); box-shadow: 0 1px 2px rgba(31,56,57,.04);
  display: flex; flex-direction: column; gap: 12px; }
body.rh .cartao-form .botao { align-self: flex-start; margin-top: 2px; }
body.rh .form label { margin: 10px 0 4px; }
body.rh .form input { font-size: .98rem; padding: 9px 11px; border-width: 1.5px; }

body.rh .tabela { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
body.rh .tabela th { position: sticky; top: 0; background: #F6F8F8; color: #4A5555; font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rh-borda); }
body.rh .tabela td { padding: 10px 12px; border-bottom: 1px solid #EDF0F0; vertical-align: middle; }
body.rh .tabela tbody tr:hover td { background: #FAFBFB; }
body.rh .tabela .botao { margin: 0; padding: 7px 12px; font-size: .9rem; }
body.rh .tabela input:not([type=checkbox]):not([type=hidden]) { min-height: 34px; padding: 6px 9px; }

/* ---------- Visão geral: filas e passos ---------- */
.fila-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.fila, .fila:visited { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--rh-borda); text-decoration: none; color: var(--texto);
  transition: border-color .12s ease, transform .12s ease; }
.fila:hover { border-color: var(--ciano-300); transform: translateY(-1px); }
.fila-n { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #B9C2C2; font-variant-numeric: tabular-nums; }
.fila.tem .fila-n { color: var(--rosa); }
.fila.tem { border-color: var(--rosa-100); box-shadow: inset 0 3px 0 var(--rosa); }
.fila-t { font-weight: 700; margin-top: 8px; }
.fila-d { color: var(--cinza); font-size: .88rem; }
.passos { list-style: none; margin: 0; padding: 0; counter-reset: passo; background: #fff;
  border: 1px solid var(--rh-borda); border-radius: 14px; overflow: hidden; }
.passos li { counter-increment: passo; border-bottom: 1px solid #EDF0F0; }
.passos li:last-child { border-bottom: 0; }
.passos a, .passos a:visited { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center;
  padding: 13px 18px; text-decoration: none; color: var(--texto); }
.passos a::before { content: counter(passo); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ciano-100); color: var(--ciano-700); font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; }
.passos a:hover { background: #FAFBFB; }
.passos strong { font-weight: 700; }
.passos span { color: var(--cinza); font-size: .88rem; }

/* ---------- Assistente ---------- */
.como-usar summary { cursor: pointer; font-weight: 700; color: var(--ciano-700); }
.como-usar ol { margin: 10px 0 6px; padding-left: 20px; }
.como-usar li { margin: 4px 0; }
.tarefa { background: #fff; border: 1px solid var(--rh-borda); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.tarefa.urgente { box-shadow: inset 3px 0 0 var(--rosa); }
.tarefa h3 { margin: 8px 0 2px; font-size: 1.02rem; font-weight: 700; }
.tarefa .mini { margin: 0; color: var(--cinza); }
.tarefa details { margin-top: 10px; }
.tarefa summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ciano-700); }
.instrucao { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .9rem; line-height: 1.55;
  background: #F6F8F8; border: 1px solid var(--rh-borda); border-radius: 10px; padding: 12px 14px; margin: 8px 0 0; }
.tarefa footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.copiar.feito { background: var(--verde); }

/* ---------- RH no celular: menu vira gaveta ---------- */
@media (max-width: 900px) {
  .rh-shell { grid-template-columns: minmax(0, 1fr); }
  .rh-lado { position: fixed; left: 0; top: 0; bottom: 0; width: min(84vw, 300px); height: auto;
    transform: translateX(-102%); transition: transform .2s ease; }
  .rh-gaveta-chk:checked ~ .rh-shell .rh-lado { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .rh-gaveta-chk:checked ~ .rh-shell .rh-veu { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(20,32,33,.45); }
  .rh-hamb { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 10px; border: 1px solid var(--rh-borda); background: #fff; color: var(--ciano-900); cursor: pointer; flex: none; }
  .rh-hamb svg { width: 22px; height: 22px; }
  .rh-topo { padding: 10px 14px; }
  .rh-topo h1 { font-size: 1.15rem; }
  .rh-corpo { padding: 16px 14px 40px; }
  .rh-item { padding: 11px 10px; font-size: 1rem; }
  body.rh .tabela { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Portal do colaborador no computador: menu vira coluna lateral ---------- */
@media (min-width: 1024px) {
  body.app:has(.nav-inferior) { padding: 0 0 40px 232px; }
  body.app:has(.nav-inferior) .conteudo { max-width: 720px; padding-top: 20px; }
  body.app:has(.nav-inferior) .cabecalho-azul { margin: 0; border-radius: var(--r-lg); }
  .nav-inferior { top: 0; right: auto; bottom: 0; width: 232px; flex-direction: column; justify-content: flex-start;
    gap: 2px; padding: 22px 12px; border-top: 0; border-right: 1px solid var(--linha); box-shadow: none; }
  .nav-inferior a { flex: none; flex-direction: row; gap: 12px; padding: 11px 14px; border-radius: 12px;
    font-size: 1rem; text-align: left; }
  .nav-inferior a svg { width: 22px; height: 22px; }
  .nav-inferior a:hover { background: var(--fundo); }
  .nav-inferior a.ativo { background: var(--ciano-100); }
  .grade { gap: 16px; }
}
body.rh .rh-corpo > #cards > .form, body.rh .rh-corpo .form { max-width: 520px; }
