/* ---------- Equipe & RH (prefixo rh-) ---------- */

/* Indicadores */
.rh-stack { display: flex; align-items: center; margin: 10px 0 6px; }
.rh-stack .avatar { border: 2px solid var(--s1); margin-left: -8px; animation: rise .6s var(--ease) both; }
.rh-stack .avatar:first-child { margin-left: 0; }
.rh-stack .avatar:nth-child(2) { animation-delay: .05s; } .rh-stack .avatar:nth-child(3) { animation-delay: .1s; } .rh-stack .avatar:nth-child(4) { animation-delay: .15s; }
.rh-stack .avatar:nth-child(5) { animation-delay: .2s; } .rh-stack .avatar:nth-child(6) { animation-delay: .25s; } .rh-stack .avatar:nth-child(7) { animation-delay: .3s; }
.rh-stack .avatar:nth-child(8) { animation-delay: .35s; } .rh-stack .avatar:nth-child(9) { animation-delay: .4s; }
.rh-more { margin-left: 8px; font-size: var(--fs-xs); color: var(--tx-3); font-variant-numeric: tabular-nums; }
.rh-of { font-size: var(--fs-md); font-weight: 400; color: var(--tx-3); letter-spacing: 0; }
.rh-kprog { margin: 16px 0 12px; height: 8px; }
.rh-kdays { position: relative; height: 8px; margin: 16px 0 22px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 75, 92, .25), rgba(246, 167, 35, .18) 40%, var(--s4) 70%); }
.rh-kdays span { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--s1); animation: rise .6s var(--ease) .5s both; }
.rh-kdays span.crit { background: var(--crit); box-shadow: 0 0 10px var(--crit); } .rh-kdays span.warn { background: var(--warn); }
.rh-kdays em { position: absolute; top: 12px; font-style: normal; font-size: 10px; color: var(--tx-4); }
.rh-kdays em:first-of-type { left: 0; } .rh-kdays em:last-of-type { right: 0; }

/* Colaboradores */
.rh-team-head { flex-wrap: wrap; }
.rh-chips { padding: 14px 20px 4px; }
.rh-chips button { gap: 7px; padding: 0 8px 0 12px; }
.rh-chips button:first-child { padding-left: 14px; }
.rh-chips button svg { width: 14px; height: 14px; color: var(--tx-3); }
.rh-chips button.on svg { color: var(--red-tx); }
.rh-chips .badge { height: 18px; min-width: 18px; font-size: 10px; }
.rh-chips button.on .badge { background: var(--red); color: #fff; }
.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; padding: 14px 20px 20px; }
.rh-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; text-align: left; border-radius: var(--r-md);
  background: var(--s1); border: 1px solid var(--line); transition: border-color var(--t-fast), transform var(--t-med) var(--ease), background var(--t-fast);
  animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 28ms);
}
.rh-card:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--s2); }
.rh-card.fora .avatar { filter: grayscale(.7); opacity: .7; }
.rh-card__head { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.rh-card__top { position: relative; flex: none; }
.rh-card__id { display: grid; min-width: 0; }
.rh-card__id b, .rh-card__id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-dot { position: absolute; right: -2px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--s1); }
.rh-dot.ok { background: var(--ok); } .rh-dot.info { background: var(--info); } .rh-dot.warn { background: var(--warn); }
.rh-lider { position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-red); color: #fff; border: 2px solid var(--s1); }
.rh-lider svg { width: 11px; height: 11px; }
.rh-card__nome { font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; }
.rh-card__cargo { font-size: var(--fs-xs); color: var(--tx-3); }
.rh-card__pills { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 12px 0 12px; min-width: 0; }
.rh-card__setor { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tx-3); white-space: nowrap; min-width: 0; overflow: hidden; }
.rh-card__setor svg { width: 13px; height: 13px; flex: none; }
.rh-card__pills .pill { height: 22px; font-size: 11px; padding: 0 8px; }
.rh-prod { width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; }
.rh-prod__top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-2xs); }
.rh-prod__top b { font-size: var(--fs-sm); font-weight: 600; }
.rh-prod__bar { position: relative; height: 6px; border-radius: 6px; background: var(--s4); }
.rh-prod__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; transform-origin: left; animation: grow-x 1s var(--ease) both; animation-delay: calc(var(--d) + 300ms); }
.rh-prod__bar i.ok { background: var(--ok); } .rh-prod__bar i.warn { background: var(--warn); } .rh-prod__bar i.crit { background: var(--crit); }
.rh-prod__bar span { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--tx); opacity: .7; }
.rh-prod__foot { display: flex; gap: 6px; align-items: baseline; font-size: var(--fs-2xs); min-width: 0; }
.rh-prod__foot b { font-size: var(--fs-xs); font-weight: 600; }
.rh-prod__foot .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Metas */
.rh-metas { padding: 14px 20px 20px; display: grid; gap: 4px; }
.rh-meta { display: grid; grid-template-columns: 36px 1fr 60px; gap: 14px; align-items: center; padding: 10px 0; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 300ms); }
.rh-meta + .rh-meta { border-top: 1px solid var(--line); }
.rh-meta__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); }
.rh-meta__ic svg { width: 17px; height: 17px; }
.rh-meta__main { display: grid; gap: 7px; min-width: 0; }
.rh-meta__top { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-sm); flex-wrap: wrap; }
.rh-meta__top b { font-weight: 500; }
.rh-meta__top .muted { font-size: var(--fs-xs); }
.rh-meta__bar { position: relative; height: 10px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--s4) 0 calc(25% - 2px), var(--s3) calc(25% - 2px) 25%); }
.rh-meta__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 10px; transform-origin: left; animation: grow-x 1.2s var(--ease) both; animation-delay: calc(var(--d) + 400ms); }
.rh-meta__bar i.ok { background: linear-gradient(90deg, #1E9E5A, var(--ok)); box-shadow: 0 0 12px -3px var(--ok); }
.rh-meta__bar i.warn { background: linear-gradient(90deg, #C27C0E, var(--warn)); box-shadow: 0 0 12px -3px var(--warn); }
.rh-meta__proj { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--tx); border-radius: 2px; opacity: .8; }
.rh-meta__proj::after { content: ""; position: absolute; top: -4px; left: -3px; border: 4px solid transparent; border-top-color: var(--tx); }
.rh-meta__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--tx-3); }
.rh-meta__foot b { color: var(--tx); font-weight: 600; }
.rh-meta__foot .pill { height: 22px; font-size: 11px; }
.rh-meta__pct { text-align: right; font-size: var(--fs-lg); font-weight: 600; }

/* Calendário da semana */
.rh-cal { padding: 14px 20px 4px; display: grid; gap: 6px; }
.rh-cal__row { display: grid; grid-template-columns: 146px 1fr; gap: 10px; align-items: center; }
.rh-cal__days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rh-cal__days > span { display: grid; justify-items: center; line-height: 1.2; padding: 4px 0; border-radius: var(--r-xs); }
.rh-cal__head small { font-size: 10px; color: var(--tx-4); text-transform: uppercase; letter-spacing: .08em; }
.rh-cal__head b { font-size: var(--fs-sm); font-weight: 500; }
.rh-cal__days .hoje { background: var(--red-soft); color: var(--tx); box-shadow: inset 0 0 0 1px var(--red-line); }
.rh-cal__days .hoje small { color: var(--red-tx); }
.rh-cal__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rh-cal__who > span { display: grid; min-width: 0; line-height: 1.25; }
.rh-cal__who b { font-weight: 500; font-size: var(--fs-xs); }
.rh-cal__who small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-cal__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 40px; }
.rh-cal__track > i { border-radius: 8px; background: var(--s1); border: 1px solid var(--line); }
.rh-cal__track > i.hoje { background: rgba(225, 6, 0, .06); border-color: rgba(255, 60, 40, .22); }
.rh-ev {
  --col: calc((100% - 20px) / 6); position: absolute; top: 5px; bottom: 5px; left: calc(var(--a) * (var(--col) + 4px) + 3px); width: calc((var(--b) - var(--a) + 1) * (var(--col) + 4px) - 10px);
  display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 500; overflow: hidden; white-space: nowrap;
  transform-origin: left; animation: grow-x .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 500ms);
}
.rh-ev svg { width: 13px; height: 13px; flex: none; }
.rh-ev.curto { justify-content: center; padding: 0; }
.rh-ev.curto span { display: none; }
.rh-tx-info { color: var(--info); } .rh-tx-warn { color: var(--warn); } .rh-tx-ok { color: var(--ok); } .rh-tx-red { color: var(--red-tx); }
.rh-ev span { overflow: hidden; text-overflow: ellipsis; }
.rh-ev.info { background: var(--info-soft); color: var(--info); box-shadow: inset 0 0 0 1px rgba(92, 168, 255, .3); }
.rh-ev.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(246, 167, 35, .3); }
.rh-ev.ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 209, 127, .3); }
.rh-ev.red { background: var(--red-soft); color: var(--red-tx); box-shadow: inset 0 0 0 1px var(--red-line); }
.rh-ev.meia { width: calc((var(--col) + 4px) * .5 + var(--col) * .5 - 6px); }
.rh-ev.cont { border-top-right-radius: 0; border-bottom-right-radius: 0; width: calc(100% - 3px); -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
.rh-next { margin: 12px 20px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.rh-next > small { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em; }
.rh-next > div { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.rh-next > div > span:nth-child(2) { flex: 1; min-width: 0; color: var(--tx-2); }
.rh-next b { font-weight: 500; color: var(--tx); }
.rh-next small.muted { display: block; font-size: var(--fs-2xs); }
.rh-next .pill { height: 22px; font-size: 11px; }
.rh-cal__leg { flex-wrap: wrap; gap: 8px 14px; padding: 14px 20px 18px; }
.rh-cal__leg svg { width: 13px; height: 13px; }

/* Treinamentos */
.rh-trs { padding: 10px 12px 16px; display: grid; }
.rh-tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) 76px 136px 32px; gap: 14px; align-items: center; padding: 12px 8px; border-radius: var(--r-sm); animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 50ms + 300ms); }
.rh-tr + .rh-tr { border-top: 1px solid var(--line); }
.rh-tr:hover { background: rgba(255, 255, 255, .02); }
.rh-tr__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); }
.rh-tr__ic svg { width: 17px; height: 17px; }
.rh-tr.crit .rh-tr__ic { background: var(--crit-soft); color: var(--crit); }
.rh-tr.warn .rh-tr__ic { background: var(--warn-soft); color: var(--warn); }
.rh-tr__main { display: grid; min-width: 0; }
.rh-tr__main b { font-weight: 500; font-size: var(--fs-sm); }
.rh-tr__main small { font-size: var(--fs-2xs); }
.rh-tr .avatars .avatar { border-color: var(--s2); }
.rh-tr__venc { display: grid; line-height: 1.25; }
.rh-tr__venc small { font-size: 10px; }
.rh-tr__venc b { font-weight: 500; font-size: var(--fs-sm); }
.rh-tr__st .pill { height: 22px; font-size: 11px; }
.rh-tr__go { width: 32px; padding: 0; }
.rh-tr__go.rh-done { color: var(--ok); border-color: rgba(52, 209, 127, .35); opacity: 1; }

/* Ponto e comissão: a definir */
.rh-tbd { display: flex; flex-direction: column; border-style: dashed; border-color: rgba(246, 167, 35, .35); background: repeating-linear-gradient(135deg, rgba(246, 167, 35, .025) 0 12px, transparent 12px 24px), linear-gradient(180deg, var(--s2), var(--s1)); }
.rh-tbd__body { padding: 16px 20px 6px; display: grid; gap: 14px; flex: 1; }
.rh-tbd__hero { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--warn-soft); border: 1px solid rgba(246, 167, 35, .25); }
.rh-tbd__hero > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(246, 167, 35, .18); color: var(--warn); }
.rh-tbd__hero > span svg { width: 17px; height: 17px; }
.rh-tbd__hero b { font-weight: 600; font-size: var(--fs-sm); }
.rh-tbd__hero p { font-size: var(--fs-xs); color: var(--tx-2); margin-top: 4px; line-height: 1.5; }
.rh-tbd__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rh-tbd__list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; font-size: var(--fs-xs); color: var(--tx-3); }
.rh-tbd__list li + li { border-top: 1px dashed var(--line-2); }
.rh-tbd__list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--warn); animation: spin 8s linear infinite; }
.rh-tbd__list b { display: block; color: var(--tx); font-weight: 500; font-size: var(--fs-sm); }
.rh-tbd__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px 18px; border-top: 1px dashed var(--line-2); }
.rh-tbd__foot .muted { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.rh-tbd__foot .muted svg { width: 14px; height: 14px; }
.rh-tbd__foot .btn:disabled { color: var(--ok); }

/* Drawer */
.rh-dw-prod { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; }
.rh-dw-prod > div:first-child { display: grid; gap: 2px; flex: none; }
.rh-dw-prod > div:first-child small { font-size: var(--fs-2xs); }
.rh-dw-prod > div:first-child > b { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em; }
.rh-dw-prod > div:first-child > b small { font-size: var(--fs-xs); color: var(--tx-3); font-weight: 400; letter-spacing: 0; }
.rh-dw-prod > div:first-child > span { font-size: var(--fs-xs); }
.rh-dw-spark { flex: 1; min-width: 0; height: 36px; }
.rh-dw-list { display: grid; gap: 6px; margin-bottom: 20px; }
.rh-dw-list > div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s3); font-size: var(--fs-sm); }
.rh-dw-list svg { width: 15px; height: 15px; color: var(--tx-3); flex: none; }
.rh-dw-list span { flex: 1; min-width: 0; }
.rh-dw-list b { font-weight: 500; font-size: var(--fs-xs); color: var(--tx-2); }
.rh-dw-empty { font-size: var(--fs-sm); margin-bottom: 20px; }

/* Responsivo */
@media (max-width: 1380px) {
  .rh-tr { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .rh-tr__go:not([data-t]) { display: none; }
  .rh-tr__venc { grid-column: 2; grid-row: 2; display: flex; gap: 6px; align-items: baseline; }
  .rh-tr__st { grid-column: 3; grid-row: 1; }
  .rh-tr__go[data-t] { grid-column: 3; grid-row: 2; justify-self: end; }
}
@media (max-width: 760px) {
  .rh-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .rh-card { padding: 12px; }
  .rh-card__setor { display: none; }
  .rh-chips { padding: 12px 12px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rh-chips::-webkit-scrollbar { display: none; }
  .rh-chips button { flex: none; }
  .rh-cal { padding: 12px 12px 4px; }
  .rh-cal__row, .rh-cal__head { grid-template-columns: 96px 1fr; gap: 6px; }
  .rh-cal__who .avatar { display: none; }
  .rh-ev span { display: none; }
  .rh-ev { justify-content: center; padding: 0; }
  .rh-next { margin: 12px 12px 0; }
  .rh-cal__leg { padding: 12px 12px 16px; }
  .rh-metas { padding: 10px 14px 14px; }
  .rh-meta { grid-template-columns: 32px 1fr; }
  .rh-meta__ic { width: 32px; height: 32px; }
  .rh-meta__pct { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; font-size: var(--fs-md); }
  .rh-meta__main { grid-column: 2; grid-row: 1; }
  .rh-meta__top { padding-right: 56px; }
  .rh-dw-prod { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .rh-grid { grid-template-columns: 1fr; }
}

.rh-cal-card { display: flex; flex-direction: column; }
.rh-cal__foot { margin-top: auto; }
.rh-card__id small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
@media (max-width: 760px) {
  .rh-team-head .legend { display: none; }
  .rh-card__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rh-card__id { width: 100%; }
  .rh-card__pills { margin: 10px 0; }
  .rh-meta__top .muted { width: 100%; }
}

/* ---------- Rodada A · LGPD, perfil e visão geral mais leve ---------- */
.rh-actions { flex-wrap: wrap; align-items: center; }
.rh-lock { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-soft); }
.rh-lock svg { width: 12px; height: 12px; flex: none; }
.rh-priv { display: flex; gap: 8px; align-items: flex-start; margin: 10px 20px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s2); border: 1px dashed var(--line-2); font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.45; }
.rh-priv svg { width: 14px; height: 14px; flex: none; color: var(--warn); margin-top: 1px; }
.rh-lnk { font-size: var(--fs-xs); color: var(--red-tx); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Precisa de atenção */
.rh-at-card { display: flex; flex-direction: column; }
.rh-at { padding: 10px 12px 14px; display: grid; gap: 4px; }
.rh-at__i { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--r-sm); text-align: left; transition: background var(--t-fast); }
.rh-at__i:hover { background: var(--s2); }
.rh-at__i + .rh-at__i { border-top: 1px solid var(--line); }
.rh-at__i > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.rh-at__i b { font-weight: 500; font-size: var(--fs-sm); }
.rh-at__i small { font-size: var(--fs-2xs); line-height: 1.4; }
.rh-at__i > svg { width: 15px; height: 15px; color: var(--tx-4); }
.rh-at__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); }
.rh-at__ic svg { width: 16px; height: 16px; }
.rh-at__i.crit .rh-at__ic { background: var(--crit-soft); color: var(--crit); }
.rh-at__i.warn .rh-at__ic { background: var(--warn-soft); color: var(--warn); }
.rh-at__i.info .rh-at__ic { background: var(--info-soft); color: var(--info); }
.rh-at__i.ok .rh-at__ic { background: var(--ok-soft); color: var(--ok); }

/* Produtividade compacta */
.rh-pr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px 6px; }
.rh-pr-tools .segmented b { margin-left: 6px; font-weight: 600; color: var(--crit); }
.rh-pr-tools .legend { margin-left: auto; }
.rh-sel { height: 34px; width: auto; min-width: 170px; font-size: var(--fs-xs); }
.rh-prs { padding: 4px 12px 14px; display: grid; max-height: 470px; overflow-y: auto; }
.rh-pr { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(90px, 1fr) 92px 128px; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-align: left; transition: background var(--t-fast); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.rh-pr:hover { background: var(--s2); }
.rh-pr + .rh-pr { border-top: 1px solid var(--line); }
.rh-pr__id { display: grid; min-width: 0; }
.rh-pr__id b, .rh-pr__id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-pr__id b { font-weight: 500; font-size: var(--fs-sm); }
.rh-pr__id small { font-size: var(--fs-2xs); }
.rh-pr__bar { position: relative; height: 6px; border-radius: 6px; background: var(--s4); }
.rh-pr__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; transform-origin: left; animation: grow-x .9s var(--ease) both; }
.rh-pr__bar i.ok { background: var(--ok); } .rh-pr__bar i.warn { background: var(--warn); } .rh-pr__bar i.crit { background: var(--crit); }
.rh-pr__bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--tx-3); }
.rh-pr__n { display: grid; justify-items: end; line-height: 1.2; }
.rh-pr__n b { font-size: var(--fs-sm); font-weight: 600; }
.rh-pr__n small { font-size: 10px; white-space: nowrap; }
.rh-pr__st { display: flex; justify-content: flex-end; min-width: 0; }
.rh-pr__st .pill { height: 22px; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Calendário: nome clicável */
button.rh-cal__who { text-align: left; border-radius: var(--r-xs); padding: 2px; margin: -2px; transition: background var(--t-fast); }
button.rh-cal__who:hover { background: var(--s2); }
.rh-cal-card .rh-priv { margin: 4px 20px 0; }

/* Absenteísmo por setor e por pessoa */
.rh-abs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 14px 20px 20px; }
.rh-abs__set, .rh-abs__pes { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rh-abs__r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px 52px; gap: 12px; align-items: center; font-size: var(--fs-sm); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.rh-abs__r small { text-align: right; font-size: var(--fs-2xs); }
.rh-abs__r b { text-align: right; font-weight: 600; }
.rh-abs__bar { position: relative; height: 10px; border-radius: 10px; background: var(--s3); }
.rh-abs__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 10px; transform-origin: left; animation: grow-x 1s var(--ease) both; }
.rh-abs__bar i.ok { background: var(--ok); } .rh-abs__bar i.warn { background: var(--warn); } .rh-abs__bar i.crit { background: var(--crit); }
.rh-abs__bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--tx-2); border-radius: 2px; }
.rh-abs__leg { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-2xs); }
.rh-abs__leg svg { width: 12px; height: 12px; color: var(--warn); }
.rh-abs__pes > small:first-child { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em; }
.rh-abs__p { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r-sm); text-align: left; transition: background var(--t-fast); }
.rh-abs__p:hover { background: var(--s2); }
.rh-abs__p > span { display: grid; min-width: 0; }
.rh-abs__p b { font-weight: 500; font-size: var(--fs-sm); }
.rh-abs__p small { font-size: var(--fs-2xs); }

@media (max-width: 1280px) {
  .rh-pr { grid-template-columns: 26px minmax(0, 1fr) 90px 84px; }
  .rh-pr__st { display: none; }
}
@media (max-width: 900px) {
  .rh-abs { grid-template-columns: 1fr; }
  }
@media (max-width: 760px) {
  .rh-pr { grid-template-columns: 26px minmax(0, 1fr) 70px; }
  .rh-pr__bar { display: none; }
  .rh-pr-tools .legend { display: none; }
  .rh-abs__r { grid-template-columns: 80px minmax(0, 1fr) 40px; }
  .rh-abs__r small { display: none; }
}
#rh-sem { flex: 1; display: flex; flex-direction: column; }
.rh-tabs { gap: 2px; }
.rh-tabs button { padding: 10px 8px; gap: 5px; font-size: 12.5px; }
.rh-tabs .badge { margin-left: 2px; }
.rh-area { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 500; color: var(--tx-2); background: var(--s2); border: 1px solid var(--line-2); white-space: nowrap; cursor: help; }
.rh-area svg { width: 13px; height: 13px; color: var(--warn); }
@media (max-width: 900px) { .rh-area { white-space: normal; height: auto; padding: 6px 12px; } }
