/* Gestão RH (aba 'rh-gestao', Portal #424).
 *
 * Porte do canvas aprovado "9 · Gestão RH" (geradores gestao.py, avisos_rh.py, sem_acesso.py).
 * Tudo escopado em .rhg (o contêiner também tem .mrh, que traz os tokens de meu-rh.css).
 * Prefixos do canvas: gr- (pedidos e peças comuns), ar- (avisos), sa- (sem acesso). As peças que
 * no canvas vinham do lado do colaborador (pd-, vc-) foram renomeadas para gr- aqui, para não
 * colidir com o CSS do Meu RH.
 * Animações com prefixo rhg- (keyframes são globais). prefers-reduced-motion desliga tudo.
 * Cores fixas (#...) só em "objetos" do desenho: papel, foto escura, crachá, telefone da prévia.
 */

/* ── Base e reset dos estilos globais de botão/label ─────────────────────── */
.rhg {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 1480px;
  font-size: 15px;
  line-height: 1.45;
}
.rhg *, .rhg *::before, .rhg *::after { box-sizing: border-box; }
.rhg button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  line-height: inherit;
  font-weight: inherit;
  text-align: inherit;
  cursor: pointer;
  box-shadow: none;
}
:where(.rhg) button:hover:not(:disabled) { background-image: none; transform: none; box-shadow: none; }
:where(.rhg) button:active { transform: none; }
.rhg button:disabled { cursor: not-allowed; }
.rhg label { display: block; gap: 0; font-size: inherit; color: inherit; }
.rhg :focus-visible { outline: 2.5px solid var(--pri); outline-offset: 2px; }
.rhg h1, .rhg h2, .rhg h3, .rhg h4 { margin: 0; }
.rhg ol, .rhg ul { margin: 0; padding: 0; list-style: none; }
.rhg [hidden] { display: none !important; }
.rhg-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rhg-disp { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.01em; }

/* ── Cabeçalho e sub-abas ─────────────────────────────────────────────── */
.rhg-cab h1 { margin: 0 0 4px; font-size: clamp(26px, 2.2vw + 14px, 34px); font-weight: 800; letter-spacing: -.01em; font-family: var(--f-disp); color: var(--tx); }
.rhg-cab p { margin: 0; font-size: 15px; color: var(--tx2); }
.gr-abas { display: flex; gap: 6px; margin-top: -4px; flex-wrap: wrap; }
.rhg .gr-aba { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--tx2); transition: background .15s, color .15s; }
.rhg .gr-aba:hover:not(.on) { background: var(--sf2); color: var(--tx); }
.rhg .gr-aba.on { background: var(--pri); color: var(--on-pri); }
.rhg .gr-aba i { font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--on-pri); color: var(--pri); }
.rhg .gr-aba:not(.on) i { background: var(--sf2); color: var(--tx3); }
.rhg-migalha { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; margin: -6px 0 -10px; font-size: 14px; font-weight: 700; color: var(--pri) !important; }
.ar-nt { margin: 0; font-size: 26px; }

/* ── Telas lista + detalhe ───────────────────────────────────────────── */
.rhg-conteudo { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gr-tela { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 20px; align-items: start; }
.gr-fila { padding: 16px 14px 12px; border-radius: 24px; background: var(--sf); border: 1px solid var(--bd); box-shadow: var(--sh); animation: rhg-sobe .45s both; min-width: 0; }
.gr-det { padding: 22px 24px; border-radius: 24px; background: var(--sf); border: 1px solid var(--bd); box-shadow: var(--sh); display: flex; flex-direction: column; gap: 18px; animation: rhg-sobe .45s .08s both; min-width: 0; }
.gr-det--vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; text-align: center; color: var(--tx2); padding: 32px; }
.gr-det--vazio b { font-family: var(--f-disp); font-size: 19px; color: var(--tx); }
.gr-det--vazio > span:not(.gr-vz-ic) { max-width: 380px; font-size: 14.5px; }
.gr-det--vazio .gr-b { margin-top: 10px; }
.gr-vz-ic { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--pri-c); color: var(--pri); margin-bottom: 6px; }

.gr-res { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.gr-res > b { font-family: var(--f-disp); font-size: 40px; font-weight: 800; line-height: 1; color: var(--pri); }
.gr-res span { font-size: 15px; font-weight: 700; line-height: 1.3; }
.gr-res small { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tx2); margin-top: 2px; flex-wrap: wrap; }
.gr-res small i { width: 8px; height: 8px; border-radius: 50%; margin-left: 2px; background: var(--c); }
.gr-res i.atr { --c: var(--er); }
.gr-res i.hoje { --c: var(--av); }

.gr-busca { display: flex; gap: 8px; margin-bottom: 6px; }
.rhg .gr-bi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--sf2); color: var(--tx3); }
.rhg .gr-bi input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; height: 100%; box-shadow: none; color: var(--tx); font-size: 15px; }
.rhg .gr-bi input:focus { box-shadow: none; }
.rhg .gr-bi:focus-within { box-shadow: 0 0 0 2px var(--pri); }
/* Filtro (filtro.js): o painel é o do Portal; aqui só o gatilho. Só o ícone sem filtro; com filtro,
   acende e mostra o escolhido, para a lista cortada não passar por lista inteira. */
.rhg .gr-filtro { flex: none; min-width: 0; max-width: 45%; }
.rhg .gr-filtro .gsel { width: auto; }
.rhg .gr-filtro .gsel-trigger { justify-content: center; gap: 8px; width: 100%; min-width: 44px; height: 44px; min-height: 44px; padding: 0 11px; border: 1.5px solid var(--bd); border-radius: 12px; background: transparent; color: var(--tx2); font-size: 14px; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.rhg .gr-filtro .gsel-trigger svg { flex: none; }
.rhg .gr-filtro .gsel-trigger:hover { background: var(--sf2); border-color: var(--bd); }
.rhg .gr-filtro .gsel-trigger:focus-visible, .rhg .gr-filtro .gsel-trigger[aria-expanded="true"] { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri); }
.rhg .gr-filtro .gsel-chevron { display: none; }
.rhg .gr-filtro:not(.on) .gsel-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rhg .gr-filtro.on .gsel-trigger { background: var(--pri-c); border-color: var(--pri); color: var(--pri); }
.rhg .gr-filtro.on .gsel-value { flex: 0 1 auto; min-width: 0; max-width: 150px; color: inherit; }
/* O painel vive no <body> enquanto aberto: fora do .rhg, por isso as cores do Portal. */
.gsel-panel .gr-filtro-n { flex: none; margin-left: auto; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-secondary); }

.gr-g { display: flex; align-items: center; gap: 8px; margin: 14px 6px 4px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.gr-g i { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--sf2); font-size: 11.5px; }
.gr-g::after { content: ''; flex: 1; height: 1px; background: var(--bd); }
.gr-g-rh { color: var(--pri); }
.gr-g-rh i { background: var(--pri-c); color: var(--pri); }
.gr-g-pessoa { color: var(--av); }
.gr-g-pessoa i { background: var(--av-c); color: var(--av); }
.gr-g-fora { color: var(--ci); }
.gr-g-fora i { background: var(--ci-c); color: var(--ci); }
.gr-g-info { color: var(--tx3); }
.gr-ol { display: flex; flex-direction: column; gap: 2px; }
.gr-ck-li { list-style: none; }
.rhg .sa-bil { white-space: nowrap; }
.sa-sl--vazio { background: repeating-linear-gradient(135deg, transparent 0 8px, light-dark(rgba(0, 0, 0, .025), rgba(255, 255, 255, .035)) 8px 16px); }
.ar-lista { position: relative; }
.gr-g-fim { color: var(--ok); }
.gr-g-fim i { background: var(--ok-c); color: var(--ok); }
.gr-g-rep { color: var(--av); }
.gr-g-rep i { background: var(--av-c); color: var(--av); }
.gr-enc > summary { cursor: pointer; list-style: none; }
.gr-enc > summary::-webkit-details-marker { display: none; }

.rhg .gr-r { position: relative; width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 14px; animation: rhg-sobe .4s both; text-align: left; transition: background .15s; }
.rhg .gr-r:hover { background: var(--sf2); }
.gr-fila[data-quieto] .gr-r { animation: none; }
/* Trocando de pedido, de aviso ou de setor: o que está na tela esmaece até o novo chegar. */
.rhg [data-det][aria-busy="true"], .rhg .ar-qf[aria-busy="true"] { opacity: .5; pointer-events: none; transition: opacity .15s .1s; }
/* Trocando de pessoa: o crachá só balança, não cai de novo a cada clique. */
.sa-det[data-quieto] .gr-cr { animation: rhg-balanco 6s ease-in-out 1s infinite; }
.rhg .gr-r.sel { background: var(--pri-c); }
.rhg .gr-r.sel::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pri); }
.gr-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sf2); color: var(--tx2); font-weight: 800; font-size: 13px; }
.gr-r.sel .gr-av { background: var(--pri); color: var(--on-pri); }
.gr-rt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gr-rt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-rt small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--tx2); font-weight: 600; }
.gr-rt small svg { color: var(--pri); flex: none; }
.gr-rt em { font-style: normal; font-size: 12.5px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-rl { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.gr-rl em { flex: 1; min-width: 0; }
.gr-rl .gr-st { padding: 2px 8px; font-size: 12px; }
.gr-pz { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--tx3); white-space: nowrap; }
.gr-pz.atr { color: var(--er); background: var(--er-c); padding: 3px 8px; border-radius: 999px; }
.gr-pz.hoje { color: var(--av); background: var(--av-c); padding: 3px 8px; border-radius: 999px; }

.rhg-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 12px; text-align: center; color: var(--tx3); font-size: 14px; }
.rhg-vazio svg { color: var(--ok); margin-bottom: 4px; }
.rhg-vazio b { color: var(--tx); font-size: 15px; }

/* status (o mesmo selo do lado do colaborador) */
.gr-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.gr-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gr-st.en { background: var(--pri-c); color: var(--pri); }
.gr-st.an { background: var(--ci-c); color: var(--ci); }
.gr-st.an i { animation: rhg-pisca 1.4s ease-in-out infinite; }
.gr-st.fd { background: var(--av-c); color: var(--av); }
.gr-st.ap { background: var(--ok-c); color: var(--ok); }
.gr-st.pr { background: var(--ok); color: var(--md-sys-color-on-success, #fff); }
.gr-st.ng { background: var(--er-c); color: var(--er); }

/* ── Pedido aberto ───────────────────────────────────────────────────── */
.gr-dh { display: flex; align-items: center; gap: 14px; }
.gr-av.g { width: 52px; height: 52px; font-size: 17px; background: var(--pri-c); color: var(--pri); }
.gr-dh > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gr-dh b { font-family: var(--f-disp); font-size: 21px; font-weight: 800; line-height: 1.2; }
.gr-dh small { font-size: 13.5px; color: var(--tx3); }
.gr-dhr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gr-tp { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--tx2); white-space: nowrap; }
.gr-tp svg { color: var(--pri); }
.gr-prazo-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -8px; }
.gr-prazo { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--sf2); color: var(--tx2); }
.gr-prazo.hoje { background: var(--av-c); color: var(--av); }
.gr-prazo.atr { background: var(--er-c); color: var(--er); }
.gr-prz-ed { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rhg .gr-prz-ed input { width: auto; height: 38px; padding: 4px 10px; border-radius: 10px; }

.gr-par { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 18px; align-items: start; }
.gr-par--so { grid-template-columns: minmax(0, 1fr); }
.gr-dif h4, .gr-pede h4, .gr-fora h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.gr-dif table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gr-dif thead th { text-align: left; font-size: 12px; font-weight: 700; color: var(--tx3); padding: 0 8px 6px; }
.gr-dif tbody th { text-align: left; font-weight: 600; color: var(--tx2); font-size: 13.5px; white-space: nowrap; width: 1%; }
.gr-dif td, .gr-dif tbody th { padding: 9px 8px; border-top: 1px dashed var(--bd); vertical-align: top; }
.gr-dif td { overflow-wrap: anywhere; }
.gr-dif td.seta { width: 22px; padding: 9px 0; color: var(--pri); }
.rhg .gr-dif mark { background: var(--av-c); color: var(--tx); font-weight: 700; padding: 1px 4px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gr-dif tr.ig td, .gr-dif tr.ig th { color: var(--tx3); font-weight: 400; }
.gr-dif td i { font-style: italic; color: var(--tx3); }
.gr-dados-aviso { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--tx2); }
.gr-ok { display: flex; gap: 7px; align-items: center; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--ok-c); color: var(--ok); font-size: 13.5px; font-weight: 600; }

.gr-foto { position: relative; margin: 0; height: 300px; border-radius: 18px; background: #1b2230; overflow: hidden; display: flex; align-items: center; justify-content: center; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.gr-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.gr-foto.antiga img { filter: saturate(.6); }
.gr-foto--vazia { flex-direction: column; gap: 8px; background: var(--sf2); color: var(--tx3); font-size: 13.5px; font-weight: 700; text-align: center; padding: 16px; }
.gr-pdf { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #e8ecf3; text-align: center; padding: 16px; overflow-wrap: anywhere; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.gr-pdf span { font-size: 12px; font-weight: 800; letter-spacing: .1em; opacity: .7; }
.gr-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 12.5px; font-weight: 600; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.gr-foto figcaption > span:first-child { display: flex; align-items: center; gap: 6px; }
.gr-ferr { display: flex; gap: 4px; }
.rhg .gr-ferr button { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); color: #fff; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.rhg .gr-ferr button:hover { background: rgba(255, 255, 255, .28); } /* tema-ok: visor escuro de documento e controles sobre a foto */
.rhg .gr-antes { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--sf2); font-size: 13.5px; font-weight: 700; color: var(--tx); text-align: left; cursor: pointer; min-height: 44px; }
.gr-antes small { display: block; font-size: 12px; font-weight: 500; color: var(--tx3); }
.gr-mini { flex: none; width: 30px; height: 38px; border-radius: 4px; background: repeating-linear-gradient(#d6d1c2 0 3px, #f6f3ea 3px 7px); transform: rotate(-4deg); } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.gr-mini.borrada { filter: blur(1.3px); }

.gr-cks { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--sf2); border: 0; margin: 0; min-width: 0; }
.gr-cks > legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.gr-h { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.gr-h small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rhg .gr-ck { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; font-weight: 600; cursor: pointer; }
.gr-ck > i { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--bd); background: var(--sf); display: flex; align-items: center; justify-content: center; font-style: normal; transition: background .15s, border-color .15s; }
.gr-ck.on > i { background: var(--ok); border-color: var(--ok); color: var(--md-sys-color-on-success, #fff); animation: rhg-pula .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.gr-ck:focus-within > i { box-shadow: 0 0 0 3px var(--pri-c); border-color: var(--pri); }
.gr-ck.on:focus-within > i { border-color: var(--ok); }
.gr-ck > span { min-width: 0; }

.gr-acoes { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gr-acoes p { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--tx3); }
.gr-acoes-2 { display: contents; }
.rhg .gr-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px; line-height: 1.15; text-align: center; transition: filter .15s, box-shadow .15s, background .15s; }
.rhg .gr-b.pri { background: var(--pri); color: var(--on-pri); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--pri) 80%, #000); }
.rhg .gr-b.pri:hover:not(:disabled) { background: color-mix(in srgb, var(--pri) 88%, var(--tx)); }
.rhg .gr-b.sec { background: var(--sf); color: var(--pri); border: 1.5px solid var(--bd); }
.rhg .gr-b.sec:hover:not(:disabled) { background: var(--sf2); }
.rhg .gr-b.neg { color: var(--er); padding: 0 12px; }
.rhg .gr-b.neg:hover:not(:disabled) { background: var(--er-c); }
.rhg .gr-b.perigo { background: var(--er); color: var(--md-sys-color-on-error, #fff); }
.rhg .gr-b.perigo:hover:not(:disabled) { background: color-mix(in srgb, var(--er) 86%, var(--tx)); }
.rhg .gr-b.off, .rhg .gr-b:disabled { background: var(--sf2); color: var(--tx3); box-shadow: none; border-color: transparent; }
.rhg .gr-lk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--pri); }
.rhg .gr-lk:hover:not(:disabled) { text-decoration: underline; }
.rhg .gr-lk.mudo { color: var(--tx3); font-weight: 600; }
.rhg .gr-lk:disabled { opacity: .45; }
.gr-msgerro { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--er-c); color: var(--er); font-size: 14px; font-weight: 700; }
.gr-espera { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--av-c); color: var(--tx2); font-size: 14px; }

.gr-hi summary { cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); list-style: none; min-height: 32px; display: flex; align-items: center; }
.gr-hi summary::-webkit-details-marker { display: none; }
.gr-tl { margin: 12px 0 0; }
.gr-tl li { position: relative; padding: 0 0 18px 34px; }
.gr-tl li::before { content: ''; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sf); box-shadow: 0 0 0 2.5px var(--bd); }
.gr-tl li:not(:last-child)::after { content: ''; position: absolute; left: 12.25px; top: 22px; bottom: 2px; width: 1.5px; background: var(--bd); }
.gr-tl li.fd::before { background: var(--av); box-shadow: 0 0 0 2.5px var(--av-c); }
.gr-tl li.an::before { background: var(--ci); box-shadow: 0 0 0 2.5px var(--ci-c); }
.gr-tl li.en::before { background: var(--pri); box-shadow: 0 0 0 2.5px var(--pri-c); }
.gr-tl li.ap::before, .gr-tl li.pr::before, .gr-tl li.ok::before { background: var(--ok); box-shadow: 0 0 0 2.5px var(--ok-c); }
.gr-tl li.ng::before { background: var(--er); box-shadow: 0 0 0 2.5px var(--er-c); }
.gr-tl b { font-size: 15px; }
.gr-tl small { display: block; font-size: 12.5px; color: var(--tx3); margin-top: 1px; }
.gr-tl p { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sf2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

/* pedir documento / negar */
.gr-pede { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 20px; border: 2px solid var(--pri); box-shadow: 0 0 0 5px var(--pri-c); animation: rhg-sobe .4s .1s both; }
.gr-pede h4 { color: var(--pri); margin: 0; }
.gr-pede--neg { border-color: var(--er); box-shadow: 0 0 0 5px var(--er-c); }
.gr-pede--neg h4 { color: var(--er); }
.gr-mts { display: flex; flex-wrap: wrap; gap: 6px; }
.rhg .gr-mt { min-height: 38px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--bd); font-size: 13.5px; font-weight: 700; color: var(--tx2); }
.rhg .gr-mt:hover:not(.on) { background: var(--sf2); }
.rhg .gr-mt.on { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.rhg .gr-campo { display: flex; flex-direction: column; gap: 6px; }
.rhg .gr-campo textarea, .rhg .gr-campo input { border-radius: 14px; border: 1.5px solid var(--bd); background: var(--sf); color: var(--tx); padding: 12px 14px; line-height: 1.45; resize: vertical; }
.rhg .gr-campo textarea:focus, .rhg .gr-campo input:focus { border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-c); }
.gr-prev { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--sf2); }
.gr-pv { max-width: 400px; padding: 14px 16px; border-radius: 22px; background: var(--av-c); border: 1.5px solid color-mix(in srgb, var(--av) 35%, transparent); }
.gr-pvh { display: flex; gap: 12px; align-items: center; }
.gr-pvi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--sf); color: var(--av); animation: rhg-pulsa 2.4s ease-in-out infinite; }
.gr-pvh small { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--av); }
.gr-pvh b { font-family: var(--f-disp); font-size: 16px; font-weight: 800; }
.gr-pv blockquote { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--sf); font-size: 14px; line-height: 1.45; color: var(--tx); overflow-wrap: anywhere; }
.gr-pv blockquote > span:first-child { display: block; font-size: 12.5px; color: var(--tx3); margin-bottom: 3px; }
.gr-pvbt { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--pri); color: var(--on-pri); font-weight: 700; font-size: 14px; }

/* pronto / erro / fora do Portal */
.gr-feito { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; background: var(--ok-c); }
.gr-selo { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--sf); color: var(--ok); display: flex; align-items: center; justify-content: center; animation: rhg-selo .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.gr-selo svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: rhg-risca .5s .45s forwards; }
.gr-feito h4 { margin: 0; font-family: var(--f-disp); font-size: 21px; font-weight: 800; color: var(--ok); }
.gr-feito p { margin: 4px 0; font-size: 15px; line-height: 1.45; }
.gr-feito small { font-size: 13px; color: var(--tx2); overflow-wrap: anywhere; }
.rhg .gr-prox { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border-radius: 18px; border: 1.5px solid var(--bd); color: var(--tx); text-align: left; transition: box-shadow .15s; }
.rhg .gr-prox:hover:not(.gr-prox--fim) { box-shadow: 0 0 0 2px var(--pri); }
.gr-prox > svg { flex: none; color: var(--pri); }
.gr-prox > svg:last-child { animation: rhg-empurra 1.6s ease-in-out infinite; }
.gr-prox span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.gr-prox small { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.gr-prox b { font-size: 16px; }
.gr-prox em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--er); }
.gr-prox em.ok, .gr-prox em.mudo { color: var(--tx3); font-weight: 600; }
.gr-prox--fim { border-style: dashed; }
.gr-erro, .rhg-erro { display: flex; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--er-c); border: 1.5px solid color-mix(in srgb, var(--er) 35%, transparent); }
.gr-erro--leve { background: var(--sf2); border-color: var(--bd); }
.gr-erro > div, .rhg-erro > div { min-width: 0; flex: 1; }
.gr-ei { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--sf); color: var(--er); }
.gr-erro h4, .rhg-erro b { display: block; margin: 0; font-family: var(--f-disp); font-size: 19px; font-weight: 800; color: var(--er); }
.gr-erro p, .rhg-erro p { margin: 4px 0 12px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.gr-erro small { font-size: 13px; color: var(--tx3); }
.gr-fora { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--sf2); }
.gr-fora h4 { margin: 0; color: var(--tx2); }
.gr-fora > p { margin: 0; font-size: 15px; line-height: 1.45; }

/* ── Esqueleto ───────────────────────────────────────────────────────── */
.rhg-esq { display: flex; flex-direction: column; gap: 12px; padding: 6px; }
.rhg-esq span { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--sf2) 0 40%, color-mix(in srgb, var(--sf2) 55%, var(--sf)) 50%, var(--sf2) 60% 100%); background-size: 300% 100%; animation: rhg-brilho 1.4s linear infinite; }
.rhg-esq span:nth-child(1) { height: 40px; width: 50%; }
.rhg-esq span:nth-child(3n) { width: 72%; }
.rhg-esq span:nth-child(4n) { width: 88%; }

/* ── Avisos: lista ───────────────────────────────────────────────────── */
.rhg .ar-novo { width: 100%; margin: 0 0 6px; }
.rhg .ar-r { position: relative; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 10px; border-radius: 14px; animation: rhg-sobe .4s both; text-align: left; transition: background .15s; }
.rhg .ar-r:hover { background: var(--sf2); }
.rhg .ar-r.sel { background: var(--pri-c); }
.rhg .ar-r.sel::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pri); }
.ar-nota { position: relative; width: 26px; height: 30px; margin-top: 4px; border-radius: 3px; background: var(--sf); box-shadow: 0 1px 0 var(--bd), 0 4px 8px -3px rgba(16, 26, 45, .3); transform: rotate(-4deg); }
.ar-nota::before { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--pc); box-shadow: 0 2px 0 color-mix(in srgb, var(--pc) 60%, #000); }
.ar-nota::after { content: ''; position: absolute; left: 5px; right: 5px; top: 11px; height: 12px; background: repeating-linear-gradient(var(--bd) 0 2px, transparent 2px 5px); }
.ar-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.ar-rt b { font-size: 14.5px; }
.ar-rt small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--tx2); }
.ar-rt small svg { color: var(--pri); flex: none; }
.ar-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--tx3); margin-top: 2px; }
.ar-st b { color: var(--tx); font-weight: 800; }
.ar-st.ok { color: var(--ok); font-weight: 700; }
.ar-mini { display: block; height: 6px; border-radius: 3px; background: var(--sf2); overflow: hidden; margin-top: 5px; }
.ar-mini i { display: block; height: 100%; border-radius: 3px; background: var(--pri); animation: rhg-enche .9s .3s both; transform-origin: left; }
.ar-r.sel .ar-mini { background: var(--sf); }

/* ── Avisos: acompanhamento ──────────────────────────────────────────── */
.ar-det h2 { margin: 2px 0 4px; font-family: var(--f-disp); font-size: 24px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ar-dh { display: flex; gap: 20px; align-items: flex-start; }
.ar-dh > div:last-child { flex: 1; min-width: 0; }
.ar-dh p { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 600; color: var(--tx2); }
.ar-dh p svg { color: var(--pri); flex: none; }
.ar-sup { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.ar-chips { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.ar-chips .gr-prazo { margin: 0; }
.ar-texto { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sf2); font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; animation: rhg-sobe .3s both; }
.ar-texto p { margin: 0 0 6px; }
.ar-foto { display: block; width: 100%; margin: 8px 0 4px; padding: 0; border: 1px solid var(--bd); border-radius: 12px; background: var(--sf); overflow: hidden; cursor: zoom-in; }
.ar-foto img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.ar-foto:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.ar-pm { position: relative; flex: none; width: 118px; height: 132px; padding: 18px 11px 10px; border-radius: 4px; background: #fff; transform: rotate(-3deg); box-shadow: 0 1px 0 var(--bd), 0 14px 22px -10px rgba(16, 26, 45, .4); display: flex; flex-direction: column; gap: 5px; animation: rhg-prega .6s .1s both; overflow: hidden; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pm .fita, .ar-pp .fita { position: absolute; left: 50%; top: -7px; width: 54px; height: 16px; margin-left: -27px; background: color-mix(in srgb, var(--pc, #f2b600) 55%, transparent); transform: rotate(-3deg); }
.ar-pm small { display: flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6100; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pm b { font-family: var(--f-disp); font-size: 12.5px; font-weight: 800; line-height: 1.15; color: #1b2333; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pm i { display: block; height: 5px; border-radius: 3px; background: #e4e8ef; flex: none; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pm i.c { width: 60%; }
.ar-num { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: -6px; }
.ar-big { display: flex; align-items: center; gap: 14px; }
.ar-big > b { font-family: var(--f-disp); font-size: 56px; font-weight: 800; line-height: .9; color: var(--pri); letter-spacing: -.02em; }
.ar-big span { font-size: 17px; font-weight: 700; line-height: 1.25; }
.ar-big small { display: block; font-size: 13.5px; font-weight: 600; color: var(--tx3); }
.ar-car { flex: none; transform: rotate(-8deg); padding: 6px 14px; border: 3px solid var(--ok); border-radius: 10px; color: var(--ok); text-align: center; font-family: var(--f-disp); font-weight: 800; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; box-shadow: inset 0 0 0 2px var(--sf), inset 0 0 0 3.5px var(--ok); opacity: .85; animation: rhg-bate .5s .4s cubic-bezier(.2, .9, .3, 1.4) both; }
.ar-car small { display: block; font-size: 13px; letter-spacing: .04em; }
.ar-tot { display: flex; gap: 3px; height: 22px; border-radius: 8px; overflow: hidden; background: var(--sf2); }
.ar-tot i, .ar-sb i { display: block; min-width: 0; animation: rhg-enche .9s .2s both; transform-origin: left; }
.rhg :is(.ar-tot, .ar-sb, .ar-leg) i.c { background: var(--pri); }
.rhg :is(.ar-tot, .ar-sb, .ar-leg) i.f { background: color-mix(in srgb, var(--av) 30%, var(--sf2)); }
.rhg :is(.ar-tot, .ar-sb, .ar-leg) i.s { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tx3) 55%, transparent) 0 3px, var(--sf2) 3px 7px); }
.rhg :is(.ar-tot, .ar-sb, .ar-leg) i.p { background: var(--ok); }
.ar-leg { margin: -8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--tx2); }
.ar-leg li { display: flex; align-items: center; gap: 7px; }
.ar-leg li i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.ar-leg b { color: var(--tx); font-weight: 800; }
.ar-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.ar-set { display: flex; flex-direction: column; gap: 4px; }
.rhg .ar-set button { width: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(80px, 1fr) 112px; gap: 14px; align-items: center; min-height: 44px; padding: 7px 10px; border-radius: 12px; animation: rhg-sobe .4s both; text-align: left; }
.rhg .ar-set button:hover { background: var(--sf2); }
.ar-setw[data-quieto] .ar-set button { animation: none; }
.gr-painel { display: contents; }
.rhg .ar-set button.on { background: var(--pri-c); }
.ar-set .n { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-sb { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; background: var(--sf2); }
.rhg .ar-set button.on .ar-sb i.f { background: color-mix(in srgb, var(--av) 38%, var(--sf)); }
.ar-set .p { font-size: 13px; color: var(--tx3); white-space: nowrap; }
.ar-set .p b { display: inline-block; width: 42px; font-size: 14.5px; color: var(--tx); }
.ar-qf { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--sf2); scroll-margin-top: 16px; }
.ar-qh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-qh h4 { margin: 0; font-family: var(--f-disp); font-size: 18px; font-weight: 800; }
.ar-tab { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sf); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ar-tab button { flex: none; }
.rhg .ar-tab button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--tx2); }
.rhg .ar-tab button.on { background: var(--pri); color: var(--on-pri); }
.ar-tab i { font-style: normal; font-size: 12px; font-weight: 800; }
.ar-tab-c { display: none; }
/* Celular: as abas dividem a largura, o número desce para baixo do nome. */
@media (max-width: 520px) {
  .ar-qh .ar-tab { width: 100%; }
  .rhg .ar-tab button { flex: 1 1 0; flex-direction: column; gap: 1px; padding: 6px 2px; font-size: 12.5px; line-height: 1.15; text-align: center; white-space: nowrap; }
  .rhg .ar-tab button svg { display: none; }
  /* Quatro abas em 286px: "Deram ciente" vira "Ciente". */
  .ar-tab-l { display: none; }
  .ar-tab-c { display: inline; }
}
.ar-pes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ar-pes li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; min-width: 0; }
.ar-pes li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ar-pes b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-pes small { font-size: 12.5px; color: var(--tx3); }
.ar-pes .gr-av { background: var(--sf); }
.ar-pes li.ar-pes-vz { grid-column: 1 / -1; font-size: 14px; color: var(--tx3); }
.ar-pes li.ok .gr-av { background: var(--ok-c); color: var(--ok); }
.ar-pes li.viu .gr-av { background: var(--ci-c); color: var(--ci); }
.ar-acs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--bd); }
.ar-acs p { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--tx3); }
.ar-rodape { display: flex; justify-content: flex-end; margin-top: -8px; }
.ar-enc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--er-c); font-size: 14px; font-weight: 600; }
.ar-enc span { flex-basis: 100%; }
.gr-barra-cel { display: none; }

/* ── Avisos: novo ────────────────────────────────────────────────────── */
.ar-nv { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.ar-form { gap: 20px; container: ar-form / inline-size; }
.ar-fl > label, .ar-lb { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.rhg .ar-in { position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; border: 1.5px solid var(--bd); background: var(--sf); font-size: 16px; font-weight: 700; color: var(--tx); }
.rhg div.ar-in input { width: 100%; border: 0; background: transparent; padding: 12px 64px 12px 14px; font-weight: 700; color: var(--tx); box-shadow: none; }
.rhg div.ar-in:focus-within, .rhg textarea.ar-in:focus, .rhg input.ar-in:focus { border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-c); }
.rhg div.ar-in input:focus { box-shadow: none; }
.ar-cont { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--tx3); pointer-events: none; }
.rhg textarea.ar-ta { min-height: 110px; padding: 12px 14px; font-weight: 400; line-height: 1.5; font-size: 15.5px; resize: vertical; }
.rhg input.ar-in { padding: 12px 14px; }
.ar-pal { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.ar-pal.longo { color: var(--av); }
.ar-med { flex: none; width: 90px; height: 6px; border-radius: 3px; background: var(--sf2); overflow: hidden; }
.ar-med i { display: block; width: 0; height: 100%; background: currentColor; border-radius: 3px; transition: width .25s; }
.rhg .ar-anx { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed var(--bd); font-size: 14.5px; font-weight: 700; color: var(--pri); cursor: pointer; max-width: 100%; }
.rhg .ar-anx:focus-within { box-shadow: 0 0 0 3px var(--pri-c); }
.ar-anx small { font-weight: 500; color: var(--tx3); }
.ar-anx.on { border-style: solid; color: var(--tx); cursor: default; }
.ar-anx.on > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ar-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sf2); width: max-content; max-width: 100%; flex-wrap: wrap; }
.rhg .ar-seg button { min-height: 40px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--tx2); }
.rhg .ar-seg button:hover:not(.on) { color: var(--tx); }
.rhg .ar-seg button.on { background: var(--sf); color: var(--pri); box-shadow: 0 1px 3px rgba(16, 26, 45, .15); }
.ar-chs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ar-ch { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 8px 6px 13px; border-radius: 999px; background: var(--pri-c); color: var(--pri); font-size: 14px; font-weight: 800; max-width: 100%; }
.ar-ch small { font-weight: 600; opacity: .75; }
.rhg .ar-ch button { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: inherit; }
.rhg .ar-ch button:hover { background: color-mix(in srgb, var(--pri) 14%, transparent); }
.rhg .ar-ch.add { position: relative; background: transparent; border: 1.5px dashed var(--bd); color: var(--tx2); padding: 0 6px 0 12px; font-weight: 700; }
.rhg .ar-ch.add select { border: 0; background: transparent; padding: 6px 6px 6px 0; height: 34px; width: auto; font-size: 14px; font-weight: 700; color: var(--tx2); box-shadow: none; }
.rhg .ar-busca { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--bd); color: var(--tx3); }
.rhg .ar-busca input { border: 0; padding: 0; background: transparent; height: 100%; box-shadow: none; color: var(--tx); }
.rhg .ar-busca:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-c); }
/* O anel é do rótulo (focus-within); o do campo por dentro desenhava uma segunda borda. */
.rhg .ar-busca input:focus, .rhg .ar-busca input:focus-visible { outline: none; }
.ar-res { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 14px; background: var(--sf); border: 1px solid var(--bd); box-shadow: var(--sh); max-height: 260px; overflow: auto; }
.rhg .ar-res button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; line-height: 1.3; min-height: 44px; }
.rhg .ar-res button:hover { background: var(--sf2); }
.ar-res button > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-res small { font-size: 12.5px; color: var(--tx3); }
.ar-res em { flex: none; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--pri); }
.rhg .ar-res button.on { background: var(--ok-c); }
.ar-res button.on em { color: var(--ok); }
/* Quem já está na lista: o segundo clique tira, e o botão avisa antes ("Tirar" no lugar de "Na lista").
   Só com mouse: no toque o hover fica preso e escondia a confirmação "Na lista". */
.ar-res em .na { display: inline-flex; align-items: center; gap: 4px; }
.ar-res em .tira { display: none; }
@media (hover: hover) {
  .rhg .ar-res button.on:hover em { color: var(--er); }
  .ar-res button.on:hover em .na { display: none; }
  .ar-res button.on:hover em .tira { display: inline-flex; align-items: center; gap: 4px; }
}
.ar-res-vz, .ar-res-mais { margin: 0; padding: 2px 4px; font-size: 13.5px; color: var(--tx3); }

/* Escolha de setor, filial e turno: uma linha fixa sobre a lista (a lista marcada já mostra quais). */
.ar-esc { display: flex; align-items: center; gap: 4px 14px; min-height: 36px; flex-wrap: wrap; }
.ar-esc-t { flex: 1 1 auto; font-size: 14px; color: var(--tx2); }
.ar-esc-t b { color: var(--pri); font-size: 15px; }
.rhg .ar-esc .gr-lk.on { color: var(--tx); }
.rhg .ar-esc .oculto { visibility: hidden; }
/* Pessoas escolhidas: lista baixa que rola, abaixo da busca (a busca não sai do lugar). */
.ar-esc--p { flex-direction: column; align-items: stretch; gap: 6px; }
.ar-esc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tx2); }
.ar-esc-h b { color: var(--pri); font-size: 15px; }
.ar-esc-vz { margin: 0; padding: 4px 2px; font-size: 13.5px; color: var(--tx3); }
.ar-pl { list-style: none; margin: 0; padding: 4px; border-radius: 14px; border: 1px solid var(--bd); background: var(--sf); }
.ar-pl.rola { max-height: 236px; overflow: auto; }
.ar-pl li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px 4px 3px 10px; border-radius: 10px; }
.ar-pl li:hover { background: var(--sf2); }
.ar-pl li > span { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.ar-pl li b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-pl li small { flex: none; font-size: 12.5px; color: var(--tx3); }
.rhg .ar-pl li button { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--tx3); }
.rhg .ar-pl li button:hover { background: color-mix(in srgb, var(--pri) 12%, transparent); color: var(--pri); }
.ar-pl li.novo { animation: arEntra .6s ease-out; }
.ar-mod .ar-quais { color: var(--tx2); }
@keyframes arEntra { from { background: var(--ok-c); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ar-pl li.novo { animation: none; } }
.ar-alc { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sf2); min-height: 62px; }
.ar-alc > div { display: flex; align-items: baseline; gap: 8px; flex: none; }
.ar-alc > div b { font-family: var(--f-disp); font-size: 30px; font-weight: 800; color: var(--pri); line-height: 1; }
.ar-alc > div span { font-size: 14px; font-weight: 700; color: var(--tx2); }
.ar-alc p { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding-left: 18px; border-left: 1px solid var(--bd); font-size: 14px; line-height: 1.4; color: var(--tx2); }
.ar-alc p svg { flex: none; margin-top: 1px; color: var(--av); }
.ar-alc p.ok svg { color: var(--ok); }
.ar-alc p.er { border: 0; padding: 0; color: var(--er); }
/* Cartão estreito (notebook com a prévia ao lado): lado a lado, o aviso de quem não tem acesso
   virava uma coluna de 110 px. Empilha pela largura do formulário, não da tela. */
@container ar-form (max-width: 560px) {
  .ar-alc { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ar-alc p { border-left: 0; padding-left: 0; }
}
.ar-alc p.er svg { color: var(--er); }
.ar-alc p b { color: var(--tx); }
.ar-cf { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--bd); flex-wrap: wrap; }
.ar-cf > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; line-height: 1.35; }
.ar-cf b { font-size: 15.5px; }
.ar-cf small { font-size: 13px; color: var(--tx3); }
.rhg .ar-tg { flex: none; width: 46px; height: 28px; min-height: 28px; border-radius: 999px; background: var(--sf2); position: relative; box-shadow: inset 0 0 0 1.5px var(--bd); }
.ar-tg i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; } /* tema-ok: botão da chave, branco nos dois temas */
.rhg .ar-tg.on { background: var(--ok); box-shadow: none; }
.ar-tg.on i { left: 21px; }
.rhg .ar-dt { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 12px; border-radius: 12px; background: var(--sf2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ar-dt svg { color: var(--pri); }
.rhg .ar-dt input { width: auto; height: 36px; padding: 2px 8px; border-radius: 9px; border: 1px solid var(--bd); background: var(--sf); font-size: 14px; font-weight: 700; }
.ar-pv { position: sticky; top: 20px; }
.ar-tel { width: 300px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 44px; background: #111827; box-shadow: 0 24px 40px -18px rgba(16, 26, 45, .55); } /* tema-ok: prévia no celular, sempre no tema claro */
.ar-tela { min-height: 470px; border-radius: 35px; overflow: hidden; background: linear-gradient(180deg, #e7eef8, #d5e1f1); padding: 16px 14px 22px; } /* tema-ok: prévia no celular, sempre no tema claro */
.ar-tb { display: flex; flex-direction: column; margin: 10px 4px 22px; }
.ar-tb b { font-family: var(--f-disp); font-size: 20px; font-weight: 800; color: #1b2333; } /* tema-ok: prévia no celular, sempre no tema claro */
.ar-tb small { font-size: 11.5px; font-weight: 700; color: #5b6577; } /* tema-ok: prévia no celular, sempre no tema claro */
.ar-pp { --pc: #f2b600; position: relative; padding: 22px 16px 16px; border-radius: 5px; background: #fff; transform: rotate(-1deg); box-shadow: 0 1px 0 rgba(16, 26, 45, .06), 0 16px 26px -12px rgba(16, 26, 45, .45); display: flex; flex-direction: column; gap: 7px; color: #1b2333; animation: rhg-prega .6s .3s both; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pp .t { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8a6100; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pp b { font-family: var(--f-disp); font-size: 19px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ar-pp em { font-style: normal; font-size: 10.5px; color: #5b6577; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pp p { margin: 2px 0 6px; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; max-height: 210px; overflow: hidden; }
.ar-bt { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 2.5px solid #3d5a8a; border-radius: 9px; color: #3d5a8a; transform: rotate(-1.5deg); font-family: var(--f-disp); font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #3d5a8a; } /* tema-ok: papel simulado do aviso, claro nos dois temas */
.ar-pp .r { font-size: 11px; font-weight: 700; color: #5b6577; } /* tema-ok: papel simulado do aviso, claro nos dois temas */

/* modal "Publicar para N pessoas?" */
.ar-veu { position: fixed; inset: 0; background: rgba(16, 22, 34, .48); backdrop-filter: blur(2px); z-index: 1000; animation: rhg-fade .3s both; } /* tema-ok: véu do modal */
.ar-mod { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; z-index: 1001; padding: 26px 28px; border-radius: 26px; background: var(--sf); color: var(--tx); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 18px; animation: rhg-abre .4s .05s cubic-bezier(.2, .9, .3, 1.2) both; }
.ar-mod h2 { margin: 0; font-family: var(--f-disp); font-size: 26px; font-weight: 800; line-height: 1.2; }
.ar-ml { display: flex; flex-direction: column; gap: 14px; }
.ar-ml li { display: flex; gap: 14px; align-items: flex-start; }
.ar-mi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--pri-c); color: var(--pri); }
.ar-mi.av { background: var(--av-c); color: var(--av); }
.ar-ml span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ar-ml b { font-size: 16px; overflow-wrap: anywhere; }
.ar-ml small { font-size: 14px; color: var(--tx2); overflow-wrap: anywhere; }
.ar-fixo { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--sf2); font-size: 14.5px; line-height: 1.45; color: var(--tx2); }
.ar-fixo svg { flex: none; margin-top: 1px; color: var(--tx); }

/* ciente no papel */
/* foto e lista lado a lado só quando a lista tem pelo menos 340px; senão a lista desce para baixo da foto */
.ar-pg { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ar-pg > :first-child { flex: 1 1 220px; min-width: 0; }
.ar-pg > .ar-cks { flex: 3 1 340px; min-width: 0; }
.ar-folha { position: relative; margin: 0; height: 390px; border-radius: 18px; background: #1b2230; overflow: hidden; display: flex; justify-content: center; align-items: center; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.ar-folha img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ar-folha--vazia { flex-direction: column; gap: 8px; padding: 22px; text-align: center; background: var(--sf2); color: var(--tx3); border: 2px dashed var(--bd); }
.ar-folha--vazia b { color: var(--tx); font-size: 15.5px; }
.ar-folha--vazia span { font-size: 13.5px; }
.ar-folha figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 12.5px; font-weight: 600; } /* tema-ok: visor escuro de documento e controles sobre a foto */
.rhg .ar-folha figcaption button { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); color: #fff; } /* tema-ok: controles sobre a foto */
.ar-fotos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rhg .ar-fotos button { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--bd); font-size: 13px; font-weight: 700; color: var(--tx2); }
.rhg .ar-fotos button.on { background: var(--pri-c); color: var(--pri); border-color: transparent; }
.rhg .ar-up:focus-within { box-shadow: 0 0 0 3px var(--pri-c); }
.ar-up-st { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--tx2); }
.ar-cks { gap: 4px; padding: 14px 16px; }
.ar-ckh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; flex-wrap: nowrap; }
/* Uma linha só: marcar a primeira pessoa não pode empurrar a lista para baixo. */
.ar-ckh .gr-h { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-ckh .gr-lk { flex: none; }
.ar-cks ul { display: flex; flex-direction: column; gap: 2px; }
.ar-cks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ar-cks li > .gr-ck { flex: 1; min-width: 0; padding: 4px; font-size: 14.5px; }
.ar-cks li.gr-ck { padding: 4px; font-size: 14.5px; cursor: default; }
.ar-cks .gr-ck span { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.ar-cks .gr-ck small { font-size: 12.5px; font-weight: 500; color: var(--tx3); }
/* 937 pessoas: uma linha por nome, com o resto no title */
.ar-cks .gr-ck :is(.ar-ckn, small) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-ckn { font-weight: 600; }
.ar-cks li > .gr-lk { flex: none; font-size: 13px; }
.ar-cks .gr-ck.reg small { color: var(--ok); font-weight: 700; }
.ar-cks .gr-ck.on > i { animation: none; }
.ar-mot { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 0 8px 38px; }
.ar-mais { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--tx3); }

/* ── Sem acesso ──────────────────────────────────────────────────────── */
.sa-fun { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 22px; border-radius: 22px; background: var(--sf); border: 1px solid var(--bd); box-shadow: var(--sh); animation: rhg-sobe .45s both; }
.sa-ft { display: flex; flex-direction: column; line-height: 1.3; }
.sa-ft b { font-family: var(--f-disp); font-size: 18px; font-weight: 800; }
.sa-ft span { font-size: 13.5px; color: var(--tx3); }
.sa-fb { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sa-fb .ar-tot { height: 16px; }
.rhg :is(.ar-tot, .ar-leg) i.sa-f { background: var(--pri-c); }
.sa-fb .ar-leg { margin: 0; }
.sa-dup { background: var(--av-c) !important; color: var(--av) !important; }
.gr-g-papel { color: var(--tx3); }
.sa-lista .gr-rt b { padding-right: 0; }
.sa-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--sf2); font-size: 12px; font-weight: 700; color: var(--tx2); }
.gr-r.sel .sa-tag { background: var(--sf); }
.sa-det { gap: 20px; }
.sa-dt { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.sa-palco { display: flex; justify-content: center; padding-top: 66px; position: sticky; top: 20px; }
.sa-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sa-cab h2 { margin: 2px 0 4px; font-family: var(--f-disp); font-size: 26px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.sa-cab p { margin: 0; font-size: 15px; color: var(--tx2); line-height: 1.45; overflow-wrap: anywhere; }
.sa-mot { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--av-c); }
.sa-mot > svg { flex: none; color: var(--av); margin-top: 2px; }
.sa-mot span { font-size: 14.5px; line-height: 1.45; color: var(--tx2); }
.sa-mot b { display: block; font-size: 16px; color: var(--tx); }
.sa-hoje { display: flex; flex-direction: column; gap: 8px; }
.sa-hoje li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--tx2); }
.sa-hoje li svg { flex: none; color: var(--tx3); }
.sa-hoje b { color: var(--tx); }
.sa-dica { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sf2); font-size: 14.5px; line-height: 1.4; color: var(--tx2); }
.sa-dica svg { flex: none; color: var(--pri); }
.sa-form { display: flex; flex-direction: column; gap: 16px; }
.sa-form .ar-h { margin: 0; }
.sa-passos { counter-reset: p; display: flex; flex-direction: column; gap: 8px; }
.sa-passos li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--tx2); }
.sa-passos li::before { content: counter(p); flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pri-c); color: var(--pri); font-weight: 800; font-size: 13px; }
.sa-passos b { color: var(--tx); }
.rhg .sa-em { font-weight: 700; }
.sa-det .gr-dif tbody th { white-space: normal; }
.sa-det .gr-dif mark { word-break: break-all; }
.sa-det .gr-ck { font-size: 14.5px; }
.sa-tl { margin: 0; }
.sa-det .gr-feito { padding: 16px 20px; }
.sa-det .gr-feito h4 { font-size: 20px; }
.sa-det .gr-feito .gr-selo { width: 60px; height: 60px; }
.sa-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rhg .sa-op { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 46px; border-radius: 18px; border: 1.5px solid var(--bd); cursor: pointer; overflow: hidden; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.rhg .sa-op:hover { border-color: color-mix(in srgb, var(--pri) 50%, var(--bd)); }
.sa-op > i { position: absolute; left: 16px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bd); }
.rhg .sa-op.on { border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-c); }
.sa-op.on > i { border: 6px solid var(--pri); }
.sa-op:focus-within > i { box-shadow: 0 0 0 3px var(--pri-c); }
.sa-op-cr { flex: none; width: 64px; height: 92px; overflow: hidden; }
.sa-op-cr .gr-cr { transform: scale(.56); transform-origin: top left; animation: none; }
.sa-op-cr .gr-cr-cordao, .sa-op-cr .gr-cr-clip { display: none; }
.sa-op > span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sa-op b { font-size: 15.5px; overflow-wrap: anywhere; }
.sa-op small { font-size: 13px; color: var(--tx3); }
.sa-op small.ok { color: var(--ok); font-weight: 700; }
.rhg .sa-nen { margin-top: 12px; }

/* crachá (o mesmo do primeiro acesso) */
.gr-cr { position: relative; transform-origin: 50% -50px; animation: rhg-cai .9s cubic-bezier(.3, 1.4, .5, 1) both .1s, rhg-balanco 6s ease-in-out 1s infinite; }
.gr-cr-cordao { position: absolute; left: 50%; top: -60px; width: 16px; height: 54px; margin-left: -8px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--t2) 0 8px, var(--t1) 8px 10px); }
.gr-cr-clip { position: absolute; left: 50%; top: -10px; width: 30px; height: 14px; margin-left: -15px; border-radius: 4px; background: #5d6676; z-index: 2; } /* tema-ok: material do crachá */
.gr-cr-corpo { position: relative; display: flex; flex-direction: column; align-items: center; background: var(--sf); border: 2px solid var(--t2); border-radius: 18px; box-shadow: 0 18px 32px -12px rgba(16, 26, 45, .35); overflow: hidden; text-align: center; padding-bottom: 10px; }
.gr-cr-faixa { position: relative; overflow: hidden; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; background: linear-gradient(135deg, var(--t1), var(--t2)); color: var(--tink); font-family: var(--f-disp); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gr-cr-faixa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); background-size: 260% 100%; animation: rhg-foil 5s ease-in-out infinite; } /* tema-ok: material do crachá */
.gr-cr-foto { width: 64px; height: 64px; border-radius: 50%; margin: 14px auto 8px; background: var(--pri-c); color: var(--on-pri-c); font-family: var(--f-disp); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--sf), 0 0 0 5px var(--t1); }
.gr-cr-n { font-family: var(--f-disp); font-weight: 800; font-size: 15.5px; line-height: 1.25; padding: 0 10px; overflow-wrap: anywhere; }
.gr-cr-c { font-size: 12.5px; color: var(--tx2); margin-top: 2px; padding: 0 8px; }
.gr-cr-s { font-size: 12px; font-weight: 700; color: var(--tx3); margin-top: 2px; }
.gr-cr-mat { align-self: stretch; margin: 10px 14px 8px; padding-top: 8px; border-top: 1px dashed var(--bd); font-size: 11px; font-weight: 700; color: var(--tx3); display: flex; justify-content: space-between; gap: 6px; }
.gr-cr-barras { align-self: stretch; height: 16px; margin: 0 18px 8px; opacity: .7; background: repeating-linear-gradient(90deg, var(--tx) 0 2px, transparent 2px 4px, var(--tx) 4px 5px, transparent 5px 7px, var(--tx) 7px 10px, transparent 10px 12px); }
.gr-cr-marca { font-size: 9px; font-weight: 800; letter-spacing: .2em; color: var(--tx3); }
.gr-cr.cinza { filter: grayscale(1); opacity: .55; }
.gr-cr.cinza .gr-cr-corpo { border-style: dashed; }
.gr-cr.ligado::after { content: ''; position: absolute; right: -14px; top: 30px; width: 42px; height: 42px; border-radius: 50%; z-index: 3; background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>") center/22px no-repeat; box-shadow: 0 0 0 4px var(--sf); animation: rhg-pula .6s cubic-bezier(.3, 1.6, .5, 1) both 1s; }

/* bilhetes */
.sa-bt { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.sa-conf { gap: 18px; }
.sa-conf .ar-seg { width: auto; }
.sa-esc { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 280px; overflow: auto; padding: 6px 10px; border-radius: 14px; background: var(--sf2); }
.sa-esc .gr-ck span { display: flex; flex-direction: column; line-height: 1.3; }
.sa-esc .gr-ck small { font-size: 12.5px; font-weight: 500; color: var(--tx3); }
.sa-set { margin: -6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sa-set li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--sf2); font-size: 14px; min-width: 0; }
.sa-set li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-set span { font-weight: 800; color: var(--pri); }
.rhg .sa-imp { width: 100%; }
.sa-a4w { display: flex; justify-content: center; padding: 26px; border-radius: 24px; background: repeating-linear-gradient(45deg, var(--sf2) 0 10px, color-mix(in srgb, var(--sf2) 60%, var(--bg)) 10px 20px); min-width: 0; overflow: hidden; }
.sa-a4-vz { margin: 60px 0; color: var(--tx3); font-weight: 600; }
.sa-a4 { width: 560px; max-width: 100%; padding: 22px 22px 26px; background: #fff; box-shadow: 0 18px 34px -14px rgba(16, 26, 45, .45); color: #1b2333; animation: rhg-prega .6s .1s both; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-a4h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 11px; color: #5b6577; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-a4h b { font-family: var(--f-disp); font-size: 15px; color: #1b2333; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px dashed #b8c0cc; border-left: 1.5px dashed #b8c0cc; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-sl { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 16px; border-right: 1.5px dashed #b8c0cc; border-bottom: 1.5px dashed #b8c0cc; min-height: 150px; min-width: 0; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-sl .m { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: #3d5a8a; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-sl b { margin-top: 4px; font-family: var(--f-disp); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.sa-sl small { font-size: 11px; color: #5b6577; } /* tema-ok: folha A4 de impressão, clara nos dois temas */
.sa-sl p { margin: 8px 0 0; font-size: 12px; line-height: 1.45; }

/* ── Barra do celular, toast ─────────────────────────────────────────── */
.rhg-appbar { display: none; }
.rhg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translate(-50%, 20px); max-width: min(480px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--tx); color: var(--sf); font-size: 14.5px; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.rhg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.rhg-toast[data-tipo='erro'] { background: var(--er); color: var(--md-sys-color-on-error, #fff); }

/* ── Listas longas (900 pessoas, 50 setores) ─────────────────────────────
   Nenhuma lista empurra a página: cada uma rola dentro da própria caixa, com a busca presa no topo. */
.rhg :is(.gr-fila, .rola) { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--tx3) 45%, transparent) transparent; overscroll-behavior: contain; }
.rhg .rola { overflow-y: auto; }
@media (min-width: 900px) {
  .gr-fila { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .gr-fila .gr-busca { position: sticky; top: -16px; z-index: 3; margin: 0 -14px 6px; padding: 12px 14px 8px; background: var(--sf); }
  .rhg .ar-lista .ar-novo { position: sticky; top: -8px; z-index: 3; box-shadow: 0 0 0 8px var(--sf); }
}
.ar-sets { display: flex; flex-direction: column; gap: 10px; }
.ar-seth { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-seth .ar-h { margin: 0; }
.ar-seth .ar-h i { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--sf2); font-size: 12px; color: var(--tx3); }
.rhg .ar-busca--p { flex: 0 1 230px; height: 38px; }
.ar-setw.rola { max-height: 324px; padding: 4px; border-radius: 16px; border: 1px solid var(--bd); }
.ar-set-vz, .ar-opc-vz { padding: 12px 10px; font-size: 14px; color: var(--tx3); list-style: none; }
.ar-pes.rola { max-height: 360px; padding-right: 4px; }
.ar-pbusca { margin: 0; }
.ar-pbusca .gr-filtro .gsel-value { max-width: 220px; }
.ar-cks ul.rola { max-height: min(56vh, 520px); padding-right: 4px; }
/* min-width 0: sem ele o bloco crescia até o nome mais comprido e passava do cartão no celular. */
.ar-opc { flex-basis: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-opc .ar-busca--p { flex: none; max-width: 320px; }
.rhg .ar-opc > .ar-busca { flex: none; } /* na coluna, o flex-basis de 240px virava altura */
.ar-opcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 10px; padding: 6px; border-radius: 14px; border: 1px solid var(--bd); background: var(--sf); }
.ar-opcs.rola { max-height: 290px; }
.ar-opcs .ar-opc-vz { grid-column: 1 / -1; }
.rhg .ar-opcs .gr-ck { min-height: 40px; padding: 2px 8px 2px 6px; border-radius: 10px; font-size: 14px; }
.rhg .ar-opcs .gr-ck:hover { background: var(--sf2); }
.ar-opcs .gr-ck > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-opcs .gr-ck small { flex: none; font-size: 12.5px; font-weight: 700; color: var(--tx3); }
.ar-opcs .gr-ck.on small { color: var(--ok); }
.ar-opcs .gr-ck > i { width: 22px; height: 22px; }

/* ── Telas médias ────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .gr-tela { grid-template-columns: 330px minmax(0, 1fr); }
  .gr-par { grid-template-columns: minmax(0, 1fr); }
  .gr-par .gr-doc { max-width: 360px; }
  .ar-nv { grid-template-columns: minmax(0, 1fr) 300px; }
  .sa-dt { grid-template-columns: minmax(0, 1fr); }
  .sa-palco { position: static; padding-top: 62px; }
  .sa-fun { grid-template-columns: minmax(0, 1fr) auto; }
  .sa-fun .sa-fb { grid-column: 1 / -1; grid-row: 2; }
  .sa-bt { grid-template-columns: 300px minmax(0, 1fr); }
}

/* ── Celular (até 899 px): uma coisa por vez ─────────────────────────── */
@media (max-width: 899px) {
  .ar-ckh { flex-wrap: wrap; }
  .ar-ckh .gr-h { flex: 1 1 auto; white-space: normal; overflow: visible; }
  /* Nome e setor um embaixo do outro: lado a lado, o nome comprido sumia nas reticências. */
  .ar-pl li > span { flex-direction: column; align-items: flex-start; gap: 0; }
  .ar-pl li b { max-width: 100%; }
  .rhg { gap: 14px; font-size: 15px; }
  .gr-tela, .ar-nv, .sa-bt, .sa-ops { grid-template-columns: minmax(0, 1fr); }
  .gr-tela--lista .gr-det, .gr-tela--lista > .gr-det--vazio { display: none; }
  .gr-tela--det > .gr-fila { display: none; }
  .rhg--det .rhg-cab, .rhg--det .gr-abas, .rhg--det .rhg-migalha, .rhg--det .sa-funw { display: none; }
  .rhg-appbar { display: flex; align-items: center; gap: 10px; margin: 0 0 -4px; }
  .rhg .rhg-appbar .volta { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--pri); background: var(--pri-c); }
  .rhg-appbar .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .rhg-appbar .tt b { font-family: var(--f-disp); font-weight: 800; font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rhg-appbar .tt small { font-size: 12.5px; color: var(--tx3); }
  .gr-fila { padding: 12px 10px; border-radius: 20px; }
  .gr-det { padding: 16px 14px; border-radius: 20px; gap: 16px; }
  .rhg .gr-r.sel::before, .rhg .ar-r.sel::before { display: none; }
  .gr-dh { flex-wrap: wrap; }
  .gr-dh b { font-size: 19px; }
  .gr-dhr { flex-direction: row; align-items: center; flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; }
  .gr-par .gr-doc { max-width: none; }
  .gr-foto { height: 250px; }
  .gr-acoes--barra { position: sticky; bottom: 0; z-index: 5; margin: 0 -14px -16px; padding: 12px 14px 14px; background: var(--sf); border-top: 1px solid var(--bd); box-shadow: 0 -12px 24px -16px rgba(0, 0, 0, .25); border-radius: 0 0 20px 20px; }
  .gr-acoes--barra > .gr-b { flex: 1 1 100%; }
  .gr-acoes--barra .gr-acoes-2 { display: flex; gap: 8px; flex: 1 1 100%; }
  .gr-acoes--barra .gr-acoes-2 .gr-b { flex: 1; padding: 0 10px; font-size: 14.5px; }
  .gr-acoes--barra .gr-b.neg { border: 1.5px solid var(--bd); }
  .gr-acoes--barra p { font-size: 12.5px; }
  .gr-acoes .gr-b { flex: 1 1 auto; }
  .ar-dh { gap: 14px; }
  .ar-pm { width: 84px; height: 96px; padding: 14px 8px 8px; }
  .ar-pm b { font-size: 10px; -webkit-line-clamp: 3; }
  .ar-det h2 { font-size: 21px; }
  .ar-big > b { font-size: 46px; }
  .ar-car { font-size: 14px; padding: 5px 10px; }
  .rhg .ar-set button { grid-template-columns: 96px minmax(0, 1fr) 46px; gap: 10px; padding: 6px 4px; }
  .ar-set .p { font-size: 0; text-align: right; }
  .ar-set .p b { width: auto; font-size: 14.5px; }
  .ar-pes { grid-template-columns: minmax(0, 1fr); }
  .ar-acs { display: none; }
  .gr-barra-cel { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; z-index: 5; margin: 0 -14px -16px; padding: 12px 14px 14px; background: var(--sf); border-top: 1px solid var(--bd); border-radius: 0 0 20px 20px; box-shadow: 0 -12px 24px -16px rgba(0, 0, 0, .25); }
  .gr-barra-cel > span { display: flex; gap: 8px; }
  .gr-barra-cel .gr-b { flex: 1; padding: 0 10px; font-size: 14.5px; }
  .ar-alc { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ar-alc p { border-left: 0; padding-left: 0; }
  .ar-pv { position: static; }
  .ar-tela { min-height: 0; }
  .ar-folha { height: 300px; }
  .ar-pbusca .gr-filtro .gsel-value { max-width: 110px; }
  .rhg .ar-busca--p { flex: 1 1 100%; }
  .sa-fun { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .sa-fun .sa-fb { grid-row: auto; }
  .sa-palco { padding-top: 62px; }
  .sa-cab h2 { font-size: 22px; }
  .sa-a4w { padding: 12px; }
  .sa-a4 { padding: 14px; }
  .sa-sl { padding: 10px; min-height: 120px; }
  .sa-sl b { font-size: 13.5px; }
  .sa-sl p { font-size: 11px; }
  .ar-mot { padding-left: 4px; }
}

@media (max-width: 420px) {
  .ar-cks .gr-ck .ar-ckn { white-space: normal; }
  .rhg .gr-aba { padding: 8px 10px; gap: 6px; font-size: 14px; }
  .rhg .gr-aba svg { display: none; }
  .gr-res > b { font-size: 34px; }
  .rhg .gr-b { padding: 0 14px; }
  .ar-seg { width: 100%; }
  .rhg .ar-seg button { flex: 1 1 auto; padding: 8px 10px; }
  .ar-big { gap: 10px; }
  .ar-big span { font-size: 15px; }
  .sa-set { grid-template-columns: minmax(0, 1fr); }
  .sa-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Movimento ───────────────────────────────────────────────────────── */
@keyframes rhg-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rhg-pula { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rhg-pisca { 50% { opacity: .25; } }
@keyframes rhg-marca { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes rhg-pulsa { 50% { transform: scale(1.07); } }
@keyframes rhg-selo { from { transform: scale(.3); opacity: 0; } }
@keyframes rhg-risca { to { stroke-dashoffset: 0; } }
@keyframes rhg-empurra { 50% { transform: translateX(4px); } }
@keyframes rhg-enche { from { transform: scaleX(0); } }
@keyframes rhg-prega { from { opacity: 0; transform: rotate(-9deg) translateY(-14px); } }
@keyframes rhg-bate { 0% { opacity: 0; transform: rotate(-8deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-8deg) scale(.94); } 100% { opacity: .85; transform: rotate(-8deg) scale(1); } }
@keyframes rhg-fade { from { opacity: 0; } }
@keyframes rhg-abre { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.97); } }
@keyframes rhg-brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes rhg-cai { 0% { transform: translateY(-120px) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rhg-balanco { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }
@keyframes rhg-foil { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

@media (prefers-reduced-motion: reduce) {
  .rhg *, .rhg *::before, .rhg *::after { animation: none !important; transition: none !important; }
  .gr-selo svg { stroke-dashoffset: 0; }
  .ar-mod { transform: translate(-50%, -50%); }
}

/* ── Impressão (lista dos sem acesso e bilhetes) ─────────────────────── */
.rhg-print { display: none; }
@media print {
  html.rhg-imprimindo body > :not(.rhg-print) { display: none !important; }
  html.rhg-imprimindo, html.rhg-imprimindo body { background: #fff !important; color: #111 !important; margin: 0 !important; padding: 0 !important; }
  html.rhg-imprimindo .rhg-print { display: block !important; font-family: 'DM Sans', 'Segoe UI', sans-serif; color: #111; }
  @page { size: A4; margin: 12mm; }

  .rhg-pl header { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 2px solid #111; }
  .rhg-pl header b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12pt; letter-spacing: .06em; }
  .rhg-pl header span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16pt; font-weight: 800; }
  .rhg-pl header small { font-size: 10pt; color: #444; }
  .rhg-pl > p { margin: 8px 0; font-size: 10.5pt; }
  .rhg-pl table { width: 100%; border-collapse: collapse; font-size: 11pt; }
  .rhg-pl thead { display: table-header-group; }
  .rhg-pl th { text-align: left; font-size: 9.5pt; color: #444; border-bottom: 1.5px solid #111; padding: 4px 6px; }
  .rhg-pl td { border-bottom: 1px solid #999; padding: 0 6px; height: 10mm; }
  .rhg-pl td:nth-child(2) { width: 24mm; }
  .rhg-pl td:last-child { width: 70mm; }
  .rhg-pl tr { break-inside: avoid; }

  .rhg-print .sa-a4 { width: auto; max-width: none; padding: 0; box-shadow: none; animation: none; background: #fff; color: #111; break-after: page; }
  .rhg-print .sa-a4:last-child { break-after: auto; }
  .rhg-print .sa-a4h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4mm; font-size: 9pt; color: #444; }
  .rhg-print .sa-a4h b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13pt; color: #111; }
  .rhg-print .sa-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 62mm; border-top: 1px dashed #777; border-left: 1px dashed #777; }
  .rhg-print .sa-sl { display: flex; flex-direction: column; gap: 1mm; padding: 6mm; border-right: 1px dashed #777; border-bottom: 1px dashed #777; break-inside: avoid; }
  .rhg-print .sa-sl .m { font-size: 8pt; font-weight: 800; letter-spacing: .12em; color: #333; }
  .rhg-print .sa-sl b { margin-top: 2mm; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14pt; font-weight: 800; }
  .rhg-print .sa-sl small { font-size: 10pt; color: #444; }
  .rhg-print .sa-sl p { margin: 4mm 0 0; font-size: 11.5pt; line-height: 1.45; }
}

/* Pedido da própria pessoa do RH: outra pessoa decide (o backend recusa). */
.rhg .gr-proprio { display: flex; gap: 10px; align-items: flex-start; }
.rhg .gr-proprio svg { flex: none; margin-top: 2px; color: var(--tx2); }
.rhg .gr-proprio-ic { display: inline-flex; color: var(--tx3, var(--tx2)); margin-right: 6px; }
.rhg .gr-rl .gr-proprio-ic { margin-right: 0; }
