/* ── Esteira de admissões (RH → Vagas, candidatos, banco de talentos) ─────── */

/* Vagas */
.rh-vaga-card { padding: 18px 20px; border-left: 4px solid #245A91; transition: box-shadow .2s ease, transform .2s ease; }
.rh-vaga-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateY(-1px); }
.rh-vaga-card.fechada { opacity: .78; }
.rh-vaga-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rh-vaga-titulo { font-weight: 700; font-size: 15px; color: #0f172a; margin-bottom: 4px; }
.rh-vaga-sub { font-size: 13px; color: #6B7280; margin-bottom: 8px; }
.rh-vaga-acoes { display: flex; gap: 8px; flex-shrink: 0; }
.rh-vaga-desc { margin-top: 10px; font-size: 13px; color: #6B7280; border-top: 1px solid #F3F4F6; padding-top: 10px; white-space: pre-line; }

.rh-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rh-chip { background: #F3F4F6; color: #374151; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.rh-chip.ok { background: #DCFCE7; color: #166534; }
.rh-chip.info { background: #EFF6FF; color: #245A91; }
.rh-chip.aguardando { background: #FEF3C7; color: #92400E; }
.rh-chip-texto { color: #9CA3AF; font-size: 11px; }

/* Painel "Aguardando admissão" */
.rh-painel-aguardando { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.rh-painel-aguardando[hidden] { display: none; }
.rh-painel-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #92400E; margin-bottom: 8px; }
.rh-aguardando-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #374151; transition: background .15s ease; }
.rh-aguardando-linha:hover { background: #FEF3C7; }
.rh-aguardando-linha span { color: #6B7280; }
.rh-aguardando-dir { display: flex; align-items: center; gap: 8px; }

/* Esteira da vaga */
.rh-aviso-decisao { background: #EFF6FF; border-left: 3px solid #245A91; color: #1e3a5f; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.rh-grupo-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #6B7280; margin: 6px 0 8px; }
.rh-grupo-encerrados > summary { cursor: pointer; font-size: 12px; color: #6B7280; font-weight: 600; padding: 8px 0; transition: color .15s ease; }
.rh-grupo-encerrados > summary:hover { color: #245A91; }

.rh-cand-card { padding: 16px 18px; margin-bottom: 12px; transition: box-shadow .2s ease; }
.rh-cand-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.07); }
.rh-cand-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rh-cand-nome { font-weight: 700; font-size: 15px; color: #0f172a; }
.rh-cand-contato { font-size: 12px; color: #6B7280; margin-top: 2px; }

.rh-selo { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #F3F4F6; color: #6B7280; }
.rh-selo.reprovado { background: #FEE2E2; color: #991B1B; }
.rh-selo.banco { background: #EDE9FE; color: #5B21B6; }

.rh-curriculo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 12px; }
.rh-link { background: none; border: none; padding: 2px 4px; margin: 0 -4px; border-radius: 4px; color: #245A91; font: inherit; font-weight: 600;
    cursor: pointer; transition: background .15s ease, color .15s ease; }
.rh-link:hover { background: #EFF6FF; color: #1a4570; }
.rh-sem-cv { color: #9CA3AF; }

.rh-steps { display: flex; align-items: flex-start; margin-bottom: 14px; }
.rh-step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.rh-step-bola { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rh-step-rotulo { font-size: 10px; margin-top: 4px; text-align: center; line-height: 1.2; }
.rh-step-linha { height: 2px; flex: 1; margin-top: 15px; align-self: flex-start; }   /* no centro da bolinha (32px) */

.rh-bloco { border-top: 1px solid #F3F4F6; padding-top: 12px; margin-bottom: 12px; }
.rh-bloco-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6B7280; letter-spacing: .5px; margin: 6px 0; }
.rh-texto-lido { font-size: 13px; color: #374151; background: #F9FAFB; padding: 8px 10px; border-radius: 6px; white-space: pre-line; }
.rh-textarea { width: 100%; padding: 8px 10px; border: 1.5px solid #E5E7EB; border-radius: 7px; font-size: 13px; font-family: inherit; resize: vertical; box-sizing: border-box; transition: border-color .15s ease; }
.rh-textarea:hover, .rh-textarea:focus { border-color: #245A91; outline: none; }
.rh-btn-pequeno { margin-top: 4px; font-size: 12px; padding: 5px 12px; border: none; background: #245A91; color: white; border-radius: 6px; cursor: pointer; font-family: inherit; transition: background .15s ease; }
.rh-btn-pequeno:hover { background: #1a4570; }

.rh-pre { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.rh-pre.aguardando { background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; }
.rh-pre.admitido { background: #F0FDF4; border: 1px solid #BBF7D0; color: #14532D; }
.rh-pre-dados { margin-top: 4px; font-size: 12.5px; }

.rh-decisao { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: #334155; }

.rh-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-acoes .dp-feed-acao { margin-left: 0; padding: 6px 12px; font-size: 12px; transition: filter .15s ease, transform .15s ease; }
.rh-acoes .dp-feed-acao:hover { filter: brightness(1.08); transform: translateY(-1px); }

.rh-historico { margin-top: 12px; border-top: 1px solid #F3F4F6; padding-top: 8px; }
.rh-historico > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: #6B7280; transition: color .15s ease; }
.rh-historico > summary:hover { color: #245A91; }
.rh-historico ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid #E5E7EB; }
.rh-historico li { position: relative; padding: 4px 0 8px 8px; font-size: 12.5px; color: #374151; }
.rh-historico li::before { content: ''; position: absolute; left: -18px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #245A91; }
.rh-hist-quando { color: #9CA3AF; margin-right: 6px; }
.rh-hist-por { color: #6B7280; margin-left: 6px; }
.rh-hist-motivo { color: #6B7280; margin-top: 2px; font-style: italic; }

/* Modal da esteira */
.modal-content.rh-modal { max-width: 580px; margin: 5% auto; }
.rh-modal .modal-body { max-height: 65vh; overflow-y: auto; padding-right: 2px; }
.rh-modal .campo-modal input, .rh-modal .campo-modal textarea { width: 100%; box-sizing: border-box; }
.rh-modal-texto { font-size: 13.5px; color: #374151; line-height: 1.55; margin: 0 0 16px; }
.rh-modal-erro { background: #FEE2E2; color: #991B1B; padding: 10px 12px; border-radius: 7px; font-size: 13px; margin: 4px 0 0; }
.rh-modal-erro[hidden] { display: none; }
.rh-dica { display: block; font-size: 11.5px; color: #6B7280; margin-top: 4px; }
.rh-grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rh-sucesso { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; padding: 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.6; }
.rh-sucesso p { margin: 0 0 6px; }
.rh-sucesso code { background: white; padding: 2px 8px; border-radius: 4px; font-size: 14px; color: #0f172a; user-select: all; }

.rh-busca { max-width: 420px; }

@media (max-width: 640px) {
    .rh-grade-2 { grid-template-columns: 1fr; }
    .rh-step-rotulo { font-size: 9px; }
}

/* Encerramento e vagas encerradas */
.rh-btn-encerrar { color: #b91c1c; border-color: #fecaca; }
.rh-btn-encerrar:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.rh-chips .rh-btn-encerrar { margin-left: auto; }
.rh-modal .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.rh-chip.rh-forma-preenchida { background: #DCFCE7; color: #166534; }
.rh-chip.rh-forma-encerrada_rh { background: #E0E7FF; color: #3730A3; }
.rh-chip.rh-forma-cancelada { background: #FEE2E2; color: #991B1B; }
.rh-enc-resumo { padding: 18px 20px; margin-bottom: 18px; }
.rh-enc-dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.rh-enc-dados > div { display: flex; flex-direction: column; font-size: 13px; }
.rh-enc-dados span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9CA3AF; }
.rh-enc-dados strong { color: #0f172a; font-weight: 600; }
.rh-funil { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rh-funil-item { background: white; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 14px; display: flex; flex-direction: column;
    align-items: center; min-width: 88px; transition: border-color .15s ease, transform .15s ease; }
.rh-funil-item:hover { border-color: #245A91; transform: translateY(-1px); }
.rh-funil-item strong { font-size: 18px; color: #245A91; }
.rh-funil-item span { font-size: 11px; color: #6B7280; }
.rh-selo.admitido { background: #DCFCE7; color: #166534; }
.rh-apagado { color: #9CA3AF; font-style: italic; font-weight: 600; }

/* Entrevistas: data na etapa, destaque no card e calendário do modal */
.rh-step-data { margin-top: 3px; font-size: 10px; font-weight: 600; color: #6B7280; background: #F3F4F6; padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
.rh-step-data.atual { background: #EFF6FF; color: #245A91; }

.rh-entrevista { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
    font-size: 13px; border: 1px solid #BFDBFE; background: #EFF6FF; color: #1e3a5f; }
.rh-entrevista-icone { font-size: 16px; }
.rh-entrevista-texto { flex: 1; min-width: 200px; }
.rh-entrevista.hoje { background: #FEF3C7; border-color: #FCD34D; color: #78350F; }
.rh-entrevista.passou { background: #F9FAFB; border-color: #E5E7EB; color: #4B5563; }
.rh-entrevista.sem-data { background: #F9FAFB; border: 1px dashed #CBD5E1; color: #6B7280; }
.rh-chip.hoje { background: #FDE68A; color: #78350F; }
.rh-chip.proxima { background: #DBEAFE; color: #1D4ED8; }
.rh-chip.futura { background: #E0E7FF; color: #3730A3; }
.rh-chip.passou { background: #E5E7EB; color: #4B5563; }

.rh-cal { border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px; margin-bottom: 14px; user-select: none; }
.rh-cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rh-cal-mes { font-weight: 700; font-size: 14px; color: #0f172a; }
.rh-cal-nav { width: 32px; height: 32px; border: none; border-radius: 8px; background: #F3F4F6; color: #374151; font-size: 18px; line-height: 1;
    cursor: pointer; font-family: inherit; transition: background .15s ease, color .15s ease; }
.rh-cal-nav:hover { background: #245A91; color: white; }
.rh-cal-semana, .rh-cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rh-cal-semana span { text-align: center; font-size: 11px; font-weight: 700; color: #9CA3AF; padding: 4px 0; }
.rh-cal-dia { aspect-ratio: 1 / 1; max-height: 40px; border: 1px solid transparent; border-radius: 8px; background: none; color: #1f2937;
    font: inherit; font-size: 13px; cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease; }
.rh-cal-dia:hover { background: #EFF6FF; border-color: #BFDBFE; color: #245A91; transform: translateY(-1px); }
.rh-cal-dia:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(36,90,145,.25); }
.rh-cal-dia.fim-semana { color: #6B7280; }
.rh-cal-dia.passado { color: #C4C9D2; }
.rh-cal-dia.hoje { border-color: #245A91; font-weight: 700; }
.rh-cal-dia.escolhido, .rh-cal-dia.escolhido:hover { background: #245A91; border-color: #245A91; color: white; font-weight: 700; }
.rh-cal-atalhos { display: flex; gap: 6px; margin-top: 10px; }
.rh-cal-atalho, .rh-cal-hora-chip { border: 1px solid #E5E7EB; background: white; color: #374151; border-radius: 99px; padding: 4px 12px;
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.rh-cal-atalho:hover, .rh-cal-hora-chip:hover { border-color: #245A91; color: #245A91; background: #EFF6FF; }
.rh-cal-hora-chip.escolhido { background: #245A91; border-color: #245A91; color: white; }
.rh-cal-horas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rh-cal-horario input { max-width: 200px; }
.rh-cal-resumo { font-size: 13.5px; font-weight: 600; color: #245A91; background: #EFF6FF; border-radius: 8px; padding: 10px 12px; text-transform: none; }
.rh-cal-resumo::first-letter { text-transform: uppercase; }
.rh-cal-resumo.vazio { color: #9CA3AF; background: #F9FAFB; font-weight: 500; }

/* Setor + Função (vaga e aprovação de requisição) */
.rh-lista-vazia { padding: 10px 12px; border: 1.5px dashed #E5E7EB; border-radius: 8px; font-size: 13px; color: #9CA3AF; font-style: italic; }
.rh-funcao-aviso { margin: -6px 0 14px; color: #92400E; }
.rh-funcao-aviso[hidden] { display: none; }
.rh-aviso-legado { background: #FFFBEB; border-left: 3px solid #F59E0B; padding: 8px 12px; border-radius: 6px; }
.rh-modal .lista-suspensa-painel { max-height: 240px; overflow-y: auto; }
