/* Estilos da tela: equipe (use as variáveis de style.css) */

/* ---------- Avatares ---------- */
.avatar.xg { width: 128px; height: 128px; font-size: 42px; box-shadow: 0 0 0 5px rgba(255,255,255,.95), 0 18px 40px rgba(6,40,56,.3); }
.avatar.rh-cor-0 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.avatar.rh-cor-1 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.avatar.rh-cor-2 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.avatar.rh-cor-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.avatar.rh-cor-4 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.avatar.rh-cor-5 { background: linear-gradient(135deg, #f43f5e, #f97316); }

/* ---------- Selos ---------- */
.selo.rh-ativo { color: #059669; } .selo.rh-desligado { color: #64748b; } .selo.rh-senha { color: #d97706; }
.selo.rh-vencido { color: #e11d48; } .selo.rh-vencendo { color: #d97706; } .selo.rh-niver { color: #db2777; } .selo.rh-perfil { color: #0b1720; }
.rh-tag-cinza { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(100,116,139,.15); color: #475569; font-weight: 700; }
.rh-pos { color: #047857; } .rh-neg { color: #be123c; }

/* ---------- Lista da equipe ---------- */
.rh-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip .rh-n { font-size: 11px; opacity: .7; }
.rh-busca { max-width: 300px; }
.rh-lista { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.rh-lado { display: flex; flex-direction: column; gap: 18px; }
.rh-lado .lista-simples .li .txt .fraco { display: block; }
.rh-sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); font-weight: 700; margin: 14px 6px 4px; }
.rh-niver-ic { background: #fce7f3; color: var(--rosa); }
.rh-nota { margin-top: 18px; }
.rh-grade { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.rh-card { position: relative; display: flex; flex-direction: column; background: var(--vidro-card); border: 1px solid var(--borda-forte); border-radius: var(--raio);
  box-shadow: var(--sombra-p); overflow: hidden; cursor: pointer; transition: transform .25s var(--anim), box-shadow .25s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rh-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(6,40,56,.28); }
.rh-card.inativo { filter: grayscale(.85); opacity: .78; }
.rh-card-faixa { height: 78px; background: linear-gradient(120deg, #0ea5e9, #14b8a6 55%, #8ad7cb); position: relative; }
.rh-card-faixa.admin { background: linear-gradient(120deg, #0b1720, #1f4b5c 55%, #14b8a6); }
.rh-card-faixa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -20%, rgba(255,255,255,.45), transparent 55%); }
.rh-card-selos { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; z-index: 1; }
.rh-card-selos .selo { font-size: 10.5px; padding: 3px 8px; }
.rh-card-foto { margin: -42px auto 0; position: relative; z-index: 2; }
.rh-card-foto .avatar.g { box-shadow: 0 0 0 4px #fff, var(--sombra-p); }
.rh-card-corpo { padding: 8px 14px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rh-nome { font-size: 16.5px; font-weight: 750; }
.rh-cargo { color: var(--texto-2); font-size: 13px; }
.rh-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.rh-mini > div { background: rgba(255,255,255,.65); border: 1px solid #fff; border-radius: 12px; padding: 7px 4px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rh-mini small { font-size: 10px; color: var(--texto-3); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-mini b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-sangue-txt { color: #e11d48; }
.rh-card-pe { display: flex; gap: 6px; padding: 10px 12px 12px; }
.rh-card-pe .btn.primario { flex: 1; }

/* ---------- Ficha: cabeçalho ---------- */
.rh-voltar { margin-bottom: 12px; }
.rh-cab { padding: 0; overflow: hidden; margin-bottom: 18px; }
.rh-cab-faixa { height: 120px; background: linear-gradient(115deg, #0ea5e9 0%, #14b8a6 45%, #8ad7cb 100%); position: relative; }
.rh-cab-faixa.admin { background: linear-gradient(115deg, #0b1720 0%, #1f4b5c 45%, #14b8a6 100%); }
.rh-cab-faixa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% -30%, rgba(255,255,255,.5), transparent 50%), radial-gradient(circle at 10% 140%, rgba(255,255,255,.25), transparent 45%); }
.rh-cab-corpo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 0 24px 22px; align-items: end; }
.rh-foto { position: relative; margin-top: -64px; z-index: 1; }
.rh-foto-btn { position: absolute; right: 2px; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--preto); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .15s var(--anim); }
.rh-foto-btn:hover { transform: scale(1.08); }
.rh-foto-btn .ic { width: 18px; height: 18px; }
.rh-cab-info { padding-top: 14px; min-width: 0; }
.rh-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rh-cab-info h1 { font-size: 27px; letter-spacing: -.02em; margin: 0; }
.rh-cargo-g { margin: 2px 0 10px; font-weight: 600; color: var(--texto-2); }
.rh-info-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-info-chips > * { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.7);
  border: 1px solid #fff; color: var(--texto-2); }
.rh-info-chips a:hover { background: #fff; color: var(--texto); }
.rh-info-chips .ic { width: 15px; height: 15px; color: var(--turquesa); }
.rh-cab-lado { display: flex; gap: 12px; align-items: stretch; }
.rh-sangue { width: 108px; border-radius: 20px; padding: 12px 8px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fb7185, #e11d48 60%, #9f1239); box-shadow: 0 14px 30px rgba(225,29,72,.35); }
.rh-sangue .ic { width: 22px; height: 22px; opacity: .9; }
.rh-sangue b { font-size: 32px; font-weight: 850; line-height: 1.05; letter-spacing: -.02em; }
.rh-sangue small { font-size: 10.5px; font-weight: 650; opacity: .9; }
.rh-sangue.vazio-s { background: linear-gradient(160deg, #cbd5e1, #94a3b8); box-shadow: var(--sombra-p); }
.rh-emerg { min-width: 210px; max-width: 260px; border-radius: 20px; padding: 12px 14px; background: rgba(255,255,255,.8); border: 1px solid #fecdd6;
  display: flex; flex-direction: column; gap: 3px; }
.rh-emerg small { display: flex; align-items: center; gap: 5px; color: #be123c; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.rh-emerg small .ic { width: 14px; height: 14px; }
.rh-emerg b { font-size: 14.5px; }
.rh-emerg span { font-size: 13px; color: var(--texto-2); }
.rh-emerg .btn { margin-top: 6px; align-self: flex-start; }
.rh-faixa-alerta { display: flex; gap: 10px; align-items: flex-start; padding: 11px 24px; background: #fff1f2; border-top: 1px solid #fecdd6; color: #9f1239; font-size: 13.5px; }
.rh-faixa-alerta .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rh-abas .n.rh-n-erro { background: var(--vermelho); color: #fff; }
.rh-abas .n.rh-n-alerta { background: var(--amarelo); color: #fff; }

/* ---------- Ficha: dados pessoais ---------- */
.rh-secoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rh-secao h2 { display: flex; align-items: center; gap: 10px; }
.rh-sec-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--turquesa), var(--azul)); color: #fff; }
.rh-sec-ic .ic { width: 17px; height: 17px; }
.rh-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.rh-campos .rh-largo { grid-column: 1 / -1; }
.rh-campos input:disabled, .rh-campos select:disabled, .rh-campos textarea:disabled { opacity: .75; background: rgba(255,255,255,.35); cursor: not-allowed; }
.ic.rh-cad { width: 12px; height: 12px; vertical-align: -1px; opacity: .6; }
.rh-salvar { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; bottom: 12px; z-index: 5;
  background: rgba(255,255,255,.78); flex-wrap: wrap; }

/* ---------- Documentos / EPI (lista) ---------- */
.rh-exigidos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.rh-exig { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: #fff; border: 1px solid #fff; box-shadow: var(--sombra-p); }
.rh-exig-rot { font-size: 13px; font-weight: 650; color: var(--texto-2); }
.rh-exig b { font-weight: 800; }
.rh-exig span { font-weight: 650; }
.rh-exig.ok span, .rh-exig.sem_validade span { color: #047857; } .rh-exig.ok, .rh-exig.sem_validade { background: #ecfdf5; }
.rh-exig.vencendo { background: #fffbeb; } .rh-exig.vencendo span { color: #b45309; }
.rh-exig.vencido { background: #fff1f2; } .rh-exig.vencido span { color: #be123c; }
.rh-exig.falta { background: rgba(255,255,255,.5); border-style: dashed; border-color: #94a3b8; } .rh-exig.falta span { color: #64748b; }
.rh-itens { display: flex; flex-direction: column; gap: 8px; }
.rh-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px;
  background: rgba(255,255,255,.62); border: 1px solid #fff; border-left: 5px solid #94a3b8; transition: background .15s; }
.rh-item:hover { background: rgba(255,255,255,.85); }
.rh-item.ok { border-left-color: var(--verde); } .rh-item.vencendo { border-left-color: var(--amarelo); } .rh-item.vencido { border-left-color: var(--vermelho); }
.rh-item.sem_validade { border-left-color: var(--azul); } .rh-item.substituido { opacity: .65; }
.rh-item-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #e0f2fe; color: #0284c7; }
.rh-item.ok .rh-item-ic { background: #d1fae5; color: #047857; } .rh-item.vencendo .rh-item-ic { background: #fef3c7; color: #b45309; } .rh-item.vencido .rh-item-ic { background: #ffe4e6; color: #be123c; }
.rh-item-ic .ic { width: 20px; height: 20px; }
.rh-item-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rh-item-txt b { font-weight: 700; }
.rh-item-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.rh-excluir:hover { background: #ffe4e6; color: #be123c; }
.rh-atalhos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--texto-3); margin: -4px 0 12px; }
.rh-atalhos .chip { padding: 4px 10px; font-size: 12px; }

/* ---------- Cursos ---------- */
.rh-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rh-curso { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid #fff;
  box-shadow: var(--sombra-p); position: relative; overflow: hidden; --cor-c: var(--roxo); }
.rh-curso::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cor-c); }
.rh-curso.nr { --cor-c: var(--laranja); } .rh-curso.fabricante { --cor-c: var(--azul); } .rh-curso.tecnico { --cor-c: var(--turquesa); }
.rh-curso.substituido { opacity: .65; }
.rh-curso-topo { display: flex; align-items: center; justify-content: space-between; }
.rh-curso-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cor-c); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.rh-curso-ic .ic { width: 20px; height: 20px; }
.rh-curso-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3); }
.rh-curso b { font-size: 15.5px; line-height: 1.3; }
.rh-curso .rh-item-acoes { justify-content: flex-start; margin-top: 4px; }

/* ---------- EPI ---------- */
.rh-kit-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.rh-kit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid #fff; }
.rh-kit span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #d1fae5; color: #047857; }
.rh-kit span .ic { width: 20px; height: 20px; }
.rh-kit b { font-size: 13px; line-height: 1.2; }
.rh-kit small { font-size: 11.5px; font-weight: 700; color: #047857; }
.rh-kit.sem_validade span { background: #d1fae5; }
.rh-kit.vencendo span { background: #fef3c7; color: #b45309; } .rh-kit.vencendo small { color: #b45309; }
.rh-kit.vencido span { background: #ffe4e6; color: #be123c; } .rh-kit.vencido small { color: #be123c; } .rh-kit.vencido { border-color: #fecdd6; }
.rh-kit.falta { border-style: dashed; border-color: #94a3b8; background: rgba(255,255,255,.4); }
.rh-kit.falta span { background: rgba(100,116,139,.15); color: #64748b; } .rh-kit.falta small { color: #64748b; }
.rh-tam { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.rh-tam > div { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--turquesa), var(--azul)); color: #fff; text-align: center; }
.rh-tam small { display: block; font-size: 12px; font-weight: 650; opacity: .9; }
.rh-tam b { font-size: 30px; font-weight: 850; }

/* ---------- Acesso ---------- */
.rh-acoes-acesso { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rh-perfil-linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rh-perfil-linha select { width: auto; min-width: 160px; }

/* ---------- Celular ---------- */
@media (max-width: 1100px) {
  .rh-lista { grid-template-columns: 1fr; }
  .rh-cab-corpo { grid-template-columns: auto minmax(0, 1fr); }
  .rh-cab-lado { grid-column: 1 / -1; }
  .rh-secoes { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .rh-busca { max-width: none; width: 100%; display: block !important; }
  .rh-filtros { flex-direction: column; align-items: stretch; }
  .rh-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rh-chips::-webkit-scrollbar { display: none; }
  .rh-chips .chip { flex: none; }
  .rh-grade { grid-template-columns: 1fr; }
  .rh-cab-faixa { height: 86px; }
  .rh-cab-corpo { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 16px 18px; gap: 12px; }
  .rh-foto { margin-top: -60px; }
  .avatar.xg { width: 112px; height: 112px; font-size: 36px; }
  .rh-cab-info { padding-top: 0; }
  .rh-cab-info h1 { font-size: 23px; }
  .rh-selos, .rh-info-chips { justify-content: center; }
  .rh-cab-lado { width: 100%; }
  .rh-sangue { width: 96px; flex: none; }
  .rh-emerg { flex: 1; min-width: 0; max-width: none; text-align: left; }
  .rh-faixa-alerta { padding: 10px 16px; }
  .rh-campos { grid-template-columns: 1fr; }
  .rh-item { grid-template-columns: auto minmax(0, 1fr); }
  .rh-item-tag { grid-column: 2; }
  .rh-item-acoes { grid-column: 1 / -1; justify-content: flex-start; }
  .rh-salvar { bottom: 92px; }
  .rh-salvar .btn { width: 100%; }
}
