/* Ponto WF — identidade WF Folha & Gestão
   teal #084D6E · azul-acinzentado #9AADBB · grafite #1A1A1A · cinza #E4E4E4 · dourado do símbolo */
:root {
  --teal: #084D6E;
  --teal-escuro: #053A54;
  --teal-claro: #E8F0F4;
  --azul-cinza: #9AADBB;
  --grafite: #1A1A1A;
  --cinza: #E4E4E4;
  --fundo: #F3F5F7;
  --texto-2: #5A6B78;
  --dourado: #CFA24E;
  --dourado-claro: #E8C979;
  --negativo: #A23B2A;
  --positivo: #0B6B4F;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(8, 77, 110, .08), 0 8px 24px rgba(8, 77, 110, .06);
  --nav-h: 64px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --seguro-topo: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  background: var(--fundo);
  color: var(--grafite);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }
svg { width: 24px; height: 24px; display: block; }

.titulo, .titulo-topo, .secao, .relogio, .botao-marcar, .kpi-valor {
  font-family: "Acumin Pro", "Archivo", Helvetica, Arial, sans-serif;
}

/* ---------- estrutura ---------- */
.tela { min-height: 100%; padding-bottom: calc(var(--nav-h) + var(--seguro-baixo) + 24px); }
.conteudo { max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.cartao { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.secao {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.secao::before { content: ""; width: 16px; height: 3px; background: var(--dourado); border-radius: 2px; }

/* ---------- topo com textura da marca ---------- */
.topo {
  position: relative; overflow: hidden; color: #fff; background: var(--teal);
  padding: calc(var(--seguro-topo) + 18px) 20px 28px;
  border-bottom: 3px solid var(--dourado);
}
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 56px, transparent 56px 140px);
}
.topo > * { position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.topo-linha { display: flex; align-items: center; justify-content: space-between; }
.topo-logo { height: 40px; width: auto; }
.botao-icone { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: inherit; }
.botao-icone:active { background: rgba(255,255,255,.12); }
.saudacao { margin-top: 18px; font-size: 20px; font-weight: 700; }
.empresa { color: var(--azul-cinza); font-size: 14px; }
.relogio { margin-top: 14px; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.relogio-seg { font-size: 28px; color: var(--dourado-claro); margin-left: 2px; }
.data-hoje { margin-top: 6px; color: var(--cinza); font-size: 15px; }
.topo-compacto { padding-bottom: 18px; }
.titulo-topo { font-size: 22px; font-weight: 800; }

/* ---------- status de rede ---------- */
.status-rede {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 700; background: #fff; box-shadow: var(--sombra);
}
.status-rede::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--azul-cinza); }
.status-rede.ok { color: var(--positivo); }
.status-rede.ok::before { background: var(--positivo); box-shadow: 0 0 0 4px rgba(11,107,79,.14); }
.status-rede.fora { color: var(--negativo); }
.status-rede.fora::before { background: var(--negativo); box-shadow: 0 0 0 4px rgba(162,59,42,.14); }
.status-rede.alerta { color: #7A5A17; }
.status-rede.alerta::before { background: var(--dourado); }

/* ---------- botão principal ---------- */
.botao-marcar {
  width: 100%; min-height: 132px; border-radius: 22px; background: var(--teal); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 10px 24px rgba(8, 77, 110, .28), inset 0 -4px 0 rgba(0,0,0,.18);
  border: 2px solid var(--teal); transition: transform .12s ease, box-shadow .12s ease, background .2s;
  position: relative; overflow: hidden;
}
.botao-marcar::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 16px; height: 2px; background: var(--dourado); border-radius: 2px; opacity: .9;
}
.botao-marcar:active:not(:disabled) { transform: scale(.985); box-shadow: 0 4px 12px rgba(8,77,110,.25); }
.botao-marcar:disabled { background: var(--azul-cinza); border-color: var(--azul-cinza); box-shadow: none; cursor: not-allowed; }
.botao-marcar.saida { background: var(--teal-escuro); border-color: var(--teal-escuro); }
.botao-marcar-rotulo { font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.botao-marcar-acao { font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.aviso-hora { font-size: 13px; color: var(--texto-2); text-align: center; margin-top: -6px; }

/* ---------- linha do tempo ---------- */
.linha-tempo { list-style: none; display: grid; gap: 2px; }
.linha-tempo li {
  display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--cinza);
}
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo .ponto { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }
.linha-tempo .saida .ponto { border-color: var(--dourado); }
.linha-tempo .tipo { font-weight: 700; }
.linha-tempo .hora { font-family: "Archivo", Helvetica, sans-serif; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.linha-tempo .nsr { font-size: 12px; color: var(--texto-2); display: block; font-weight: 400; }
.vazio { color: var(--texto-2); font-size: 15px; padding: 8px 0; }

/* ---------- formulários e botões ---------- */
.botao {
  width: 100%; min-height: 52px; border-radius: 12px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.botao-primario { background: var(--teal); color: #fff; }
.botao-primario:active { background: var(--teal-escuro); }
.botao-primario:disabled { opacity: .6; }
.botao-secundario { background: #fff; color: var(--teal); border: 2px solid var(--cinza); }
.campo { display: grid; gap: 6px; }
.campo span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-2); }
.campo input {
  font: inherit; font-size: 20px; min-height: 54px; padding: 0 14px; border-radius: 12px;
  border: 2px solid var(--cinza); background: #fff; color: var(--grafite); letter-spacing: .04em;
}
.campo input:focus { border-color: var(--teal); outline: none; }
.campo small { font-size: 13px; color: var(--texto-2); }
.msg-erro { color: var(--negativo); font-size: 14px; font-weight: 700; }
.ajuda { text-align: center; font-size: 14px; color: var(--texto-2); }

/* ---------- login ---------- */
.tela-login { background: var(--teal); padding-bottom: 32px; position: relative; overflow: hidden; }
.tela-login::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 60px, transparent 60px 150px);
}
.login-topo { position: relative; text-align: center; padding: calc(var(--seguro-topo) + 56px) 24px 32px; color: #fff; }
.login-logo { height: 64px; width: auto; }
.login-sub { margin-top: 14px; color: var(--azul-cinza); font-size: 15px; letter-spacing: .04em; }
.login-form { position: relative; max-width: 420px; margin: 0 16px; display: grid; gap: 16px; padding: 24px 20px; border-top: 3px solid var(--dourado); }
@media (min-width: 452px) { .login-form { margin: 0 auto; } }
.login-form .titulo { font-size: 24px; font-weight: 800; color: var(--teal); }

/* ---------- navegação ---------- */
.navegacao {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--seguro-baixo)); padding-bottom: var(--seguro-baixo);
  background: #fff; border-top: 1px solid var(--cinza);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.navegacao button { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--texto-2); font-size: 12px; font-weight: 700; }
.navegacao button.ativo { color: var(--teal); }
.navegacao button.ativo svg { color: var(--dourado); }

/* ---------- folhas (modais inferiores) ---------- */
.folha { position: fixed; inset: 0; z-index: 30; display: grid; align-items: end; }
.folha-fundo { position: absolute; inset: 0; background: rgba(5, 58, 84, .55); animation: surgir .18s ease; }
.folha-painel {
  position: relative; background: #fff; border-radius: 22px 22px 0 0; padding: 26px 20px calc(20px + var(--seguro-baixo));
  width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; text-align: center;
  animation: subir .22s cubic-bezier(.2,.8,.2,1);
}
.folha-painel::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--cinza); margin: -12px auto 4px; }
.folha-painel .titulo { font-size: 22px; font-weight: 800; color: var(--teal); }
.confirmar-hora { font-family: "Archivo", Helvetica, sans-serif; font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.confirmar-local { color: var(--texto-2); font-size: 14px; }
.folha-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.folha-acoes:has(> :only-child) { grid-template-columns: 1fr; }
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
@keyframes surgir { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .folha-painel, .folha-fundo { animation: none; } }

.comprovante { text-align: left; }
.comp-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--positivo); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.comp-ok svg { width: 30px; height: 30px; }
.comp-selo { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); }
.comp-hora { text-align: center; font-size: 30px !important; }

.dados { display: grid; gap: 10px; }
.dados div { display: grid; gap: 2px; }
.dados dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-2); }
.dados dd { font-weight: 700; word-break: break-word; }
.dados dd.hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 400; background: var(--fundo); padding: 8px; border-radius: 8px; }

/* ---------- extrato ---------- */
.seletor-mes { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.seletor-mes span { font-weight: 700; font-size: 17px; }
.kpi-destaque { background: var(--teal); color: #fff; border-top: 3px solid var(--dourado); }
.kpi-rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--texto-2); }
.kpi-destaque .kpi-rotulo { color: var(--azul-cinza); }
.kpi-valor { font-size: 44px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-nota { font-size: 14px; color: var(--cinza); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis .cartao { padding: 14px; }
.kpis .kpi-valor { font-size: 26px; }
.pos { color: var(--positivo); } .neg { color: var(--negativo); }
.kpi-destaque .pos, .kpi-destaque .neg { color: #fff; }
.barra { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--dourado); }

.dias { list-style: none; display: grid; }
.dias li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cinza); }
.dias li:last-child { border-bottom: 0; }
.dias .dia-num { text-align: center; line-height: 1.1; }
.dias .dia-num b { font-family: "Archivo", Helvetica, sans-serif; font-size: 22px; display: block; }
.dias .dia-num small { font-size: 11px; text-transform: uppercase; color: var(--texto-2); letter-spacing: .06em; }
.dias .dia-bat { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--grafite); }
.dias .dia-info { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.dias .dia-saldo { font-family: "Archivo", Helvetica, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.dias li.repouso { opacity: .6; }
.etiqueta { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: var(--cinza); margin-right: 4px; }
.etiqueta.alerta { background: rgba(207,162,78,.2); color: #7A5A17; }
.etiqueta.pend { background: rgba(162,59,42,.12); color: var(--negativo); }
.carregando { text-align: center; color: var(--texto-2); padding: 32px 0; }

.texto-legal p { font-size: 14px; color: var(--texto-2); margin-top: 8px; }
.rodape-app { text-align: center; font-size: 13px; color: var(--texto-2); }

/* ---------- aviso (toast) ---------- */
.aviso {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--seguro-baixo) + 12px); z-index: 40;
  max-width: 528px; margin: 0 auto; padding: 14px 16px; border-radius: 12px;
  background: var(--grafite); color: #fff; font-size: 15px; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.aviso.erro { background: var(--negativo); }
.aviso.ok { background: var(--positivo); }

@media (min-width: 720px) {
  .relogio { font-size: 80px; }
}

/* ---------- pedidos ---------- */
.pedidos-acoes { display: grid; gap: 10px; }
.pedidos { list-style: none; display: grid; gap: 0; }
.pedidos li { padding: 12px 0; border-bottom: 1px solid var(--cinza); display: grid; gap: 4px; }
.pedidos li:last-child { border-bottom: 0; }
.pedidos .ped-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 700; }
.pedidos .ped-motivo { font-size: 14px; color: var(--texto-2); }
.selo-ped { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.selo-ped.PENDENTE { background: rgba(207,162,78,.2); color: #7A5A17; }
.selo-ped.APROVADA { background: rgba(11,107,79,.12); color: var(--positivo); }
.selo-ped.RECUSADA { background: rgba(162,59,42,.12); color: var(--negativo); }
.ped-resposta { font-size: 14px; border-left: 3px solid var(--cinza); padding-left: 8px; }
.grade-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo textarea, .campo input[type=file] { font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--cinza); background: #fff; color: var(--grafite); resize: vertical; }
.campo textarea:focus { border-color: var(--teal); outline: none; }
#form-pedido { display: grid; gap: 14px; max-height: 92vh; overflow: auto; }
.acoes-folha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- marcações guardadas sem internet ---------- */
.fila-pendente { margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(207,162,78,.16); color: #6B4F12; font-size: 13px; font-weight: 700; line-height: 1.4; }
.linha-tempo li.guardada .hora { color: #7A5A17; }
.linha-tempo li.guardada .ponto { background: var(--dourado); }
.comprovante.guardada .comp-ok { background: rgba(207,162,78,.2); color: #7A5A17; }
.nota-guardada { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(207,162,78,.16); color: #6B4F12; font-size: 13px; font-weight: 600; line-height: 1.45; }

/* ---------- selfie na batida ---------- */
.selfie-area { margin: 4px auto 14px; text-align: center; }
.selfie-area video { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; background: #0B2533; transform: scaleX(-1); box-shadow: 0 0 0 4px var(--dourado); }
.selfie-dica { font-size: 13px; color: var(--texto-2); margin: 8px 0 0; }
.selfie-dica.erro { color: var(--negativo); font-weight: 700; }
.termo-texto { font-size: 14px; line-height: 1.5; margin-bottom: 16px; text-align: left; }
.termo-texto ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }

/* Justificativa de hora extra */
.opcoes-extra { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.opcoes-extra legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opcoes-extra label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--linha, #d9dee3); border-radius: 10px; font-size: 15px; cursor: pointer; }
.opcoes-extra label:has(input:checked) { border-color: var(--teal, #084D6E); background: rgba(8, 77, 110, .06); }
.opcoes-extra input { accent-color: var(--teal, #084D6E); width: 18px; height: 18px; margin: 0; }
.link-discreto { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--teal, #084D6E); text-decoration: underline; font-size: 14px; padding: 8px; cursor: pointer; }

/* ---------- ajuda, conversas e canal de denúncia ---------- */
.navegacao { grid-template-columns: repeat(var(--abas-nav, 5), 1fr); }
.navegacao button { position: relative; }
.selo-nav {
  position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--negativo); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.ajuda-texto { font-size: 15px; color: var(--texto-2); margin: 8px 0 14px; }
.folha-form { text-align: left; max-height: 92vh; overflow: auto; }
.folha-form .titulo { text-align: left; }
.campo select {
  font: inherit; font-size: 16px; min-height: 50px; padding: 0 12px; border-radius: 12px;
  border: 2px solid var(--cinza); background: #fff; color: var(--grafite);
}
.campo select:focus { border-color: var(--teal); outline: none; }
.campo input:not([type=file]) { font-size: 17px; }

.chamados { list-style: none; display: grid; }
.chamados li { border-bottom: 1px solid var(--cinza); }
.chamados li:last-child { border-bottom: 0; }
.chamados button { width: 100%; text-align: left; padding: 12px 0; display: grid; gap: 3px; }
.chamados .ch-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 700; }
.chamados .ch-ultima { font-size: 14px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chamados .nao-lido .ch-topo span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--negativo); margin-right: 6px; vertical-align: middle; }
.chamados .vazio { padding: 12px 0; color: var(--texto-2); font-size: 15px; }
.selo-ped.ABERTO, .selo-ped.RECEBIDA, .selo-ped.EM_ANALISE { background: rgba(207,162,78,.2); color: #7A5A17; }
.selo-ped.RESPONDIDO, .selo-ped.ENCAMINHADA { background: var(--teal-claro); color: var(--teal); }
.selo-ped.RESOLVIDO, .selo-ped.CONCLUIDA { background: rgba(11,107,79,.12); color: var(--positivo); }
.selo-ped.ARQUIVADA { background: var(--cinza); color: var(--texto-2); }

.conversa-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mensagens { list-style: none; display: grid; gap: 10px; max-height: 42vh; overflow: auto; padding: 4px 2px; }
.mensagens li { max-width: 86%; padding: 10px 12px; border-radius: 14px; background: var(--fundo); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.mensagens li.minha { justify-self: end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.mensagens li.deles { justify-self: start; border-bottom-left-radius: 4px; }
.mensagens li.sistema { justify-self: center; background: none; color: var(--texto-2); font-size: 13px; padding: 2px; }
.mensagens small { display: block; font-size: 12px; opacity: .75; margin-top: 4px; }
.mensagens .vazio { justify-self: center; background: none; color: var(--texto-2); font-size: 14px; }

.faq details { border-bottom: 1px solid var(--cinza); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dourado); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 8px; font-size: 15px; color: var(--texto-2); }

.canal-denuncia { border-top: 3px solid var(--teal); }
.garantias { padding-left: 18px; margin: 0 0 16px; display: grid; gap: 6px; font-size: 15px; }
.opcoes-ident { border: 0; padding: 0; display: grid; gap: 8px; }
.opcoes-ident legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-2); margin-bottom: 6px; padding: 0; }
.opcao-cartao { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--cinza); border-radius: 12px; cursor: pointer; }
.opcao-cartao:has(input:checked) { border-color: var(--teal); background: var(--teal-claro); }
.opcao-cartao input { accent-color: var(--teal); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.opcao-cartao span { display: grid; gap: 2px; }
.opcao-cartao small { font-size: 13px; color: var(--texto-2); }
.protocolo {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 21px; font-weight: 700; letter-spacing: .04em;
  background: var(--fundo); border: 2px dashed var(--dourado); border-radius: 12px; padding: 14px 8px; user-select: all; word-break: break-all;
}
.protocolo-aviso { text-align: left; }
.consulta-relato { font-size: 14px; color: var(--texto-2); }
.consulta-relato summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.consulta-relato p { margin-top: 6px; white-space: pre-wrap; }
#consulta-resultado { display: grid; gap: 12px; }
.folha-form > *, .folha-form .campo, .folha-form .grade-dupla > *, .opcao-cartao span { min-width: 0; }
.folha-form input:not([type=radio]):not([type=checkbox]), .folha-form select, .folha-form textarea { width: 100%; min-width: 0; }
.opcao-cartao small { overflow-wrap: anywhere; }
.opcoes-ident { min-width: 0; }

/* logo da empresa do funcionário: chip branco ao lado do nome, a marca WF continua no topo */
.empresa-linha { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.logo-chip { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; overflow: hidden; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.contato-rh { margin-top: 12px; font-size: 14px; color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.contato-rh a { color: var(--teal); font-weight: 700; }

/* logo com fundo próprio: ocupa o quadro todo, sem moldura branca */
.logo-chip.com-fundo { border-color: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.logo-chip.com-fundo img { padding: 0; }

/* ---------- folga / férias de hoje e Minha escala ---------- */
.aviso-dia { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: #FBF4E4; color: #6B4E12; border-left: 4px solid var(--dourado); margin-bottom: 12px; }
.aviso-dia strong { display: block; font-size: 15px; margin-bottom: 2px; }
.aviso-dia.convocado { background: #E7F3EE; color: var(--positivo); border-left-color: var(--positivo); }
.escala-nome { font-size: 13px; color: var(--texto-2); margin: -4px 0 10px; }
.ferias-aviso { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #EAF2FA; color: #1F4E79; font-size: 14px; margin-bottom: 10px; }
.ferias-aviso b { font-weight: 800; }
.lista-escala { list-style: none; display: grid; gap: 0; }
.lista-escala li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cinza); font-size: 14px; }
.lista-escala li:last-child { border-bottom: 0; }
.lista-escala .data { font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lista-escala .data small { display: block; font-weight: 400; font-size: 11px; color: var(--texto-2); text-transform: capitalize; }
.lista-escala .horario { color: var(--texto-2); font-variant-numeric: tabular-nums; }
.lista-escala li.hoje .data { color: var(--teal); }
.etq-dia { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--teal-claro); color: var(--teal); white-space: nowrap; }
.etq-dia.t-FOLGA, .etq-dia.t-FOLGA_DATA { background: #FBF4E4; color: #7A5A17; }
.etq-dia.t-FERIAS { background: #EAF2FA; color: #1F4E79; }
.etq-dia.t-AFASTAMENTO { background: #F4ECEA; color: var(--negativo); }
.etq-dia.t-FERIADO { background: #EFEAF6; color: #4E3A78; }
.etq-dia.convocado { background: #E7F3EE; color: var(--positivo); }
.botao-link { margin-top: 10px; background: none; border: 0; color: var(--teal); font-weight: 700; font-size: 14px; padding: 6px 0; cursor: pointer; text-decoration: underline; }
