/* =========================================================
   SWC PMO · team.css — Sprint 11
   Tabela de pessoas/alocações + cards de sobrealocação
   com barra dupla (verde até 100%, vermelho excesso).
========================================================= */

.team-modal { width: min(720px, 96vw); }
.team-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Banner "vem do RH" ───────────────────────────── */
.pmo-rh-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(90deg, rgba(16,185,129,.10), rgba(16,185,129,.02));
  border: 1px solid rgba(16,185,129,.22);
  border-left: 3px solid #10b981;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.pmo-rh-banner > button {
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.swm-btn.small { padding: 6px 10px; font-size: 11.5px; }
.sync-rh-modal { width: min(720px, 96vw); }
.sync-rh-modal textarea {
  width: 100%;
  background: rgba(0,0,0,.25);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px;
}
.sync-rh-modal code {
  background: rgba(255,255,255,.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.sync-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 8px;
}
@media (max-width: 640px) {
  .sync-paths { grid-template-columns: 1fr; }
}
.sync-paths__item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #60a5fa;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sync-paths__item:nth-child(2) { border-left-color: #fbbf24; }
.sync-paths__hd { display: flex; align-items: center; gap: 8px; }
.sync-paths__tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(96,165,250,.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,.3);
  letter-spacing: .04em;
}
.sync-paths__item:nth-child(2) .sync-paths__tag {
  background: rgba(251,191,36,.12);
  color: #fbbf24;
  border-color: rgba(251,191,36,.3);
}
.sync-paths__item small { font-size: 11px; color: #8892a4; }
.sync-paths__item .swm-link {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  text-decoration: none;
}
.sync-paths__item .swm-link:hover { text-decoration: underline; }
.sync-help {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #8892a4;
}
.sync-help summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 700;
  color: #cbd5e1;
}
.sync-help ol { margin: 4px 0 4px 22px; padding: 0; }
.sync-help li { padding: 3px 0; }
.pmo-rh-banner__icon {
  font-size: 22px;
  line-height: 1;
}
.pmo-rh-banner__txt { display: flex; flex-direction: column; gap: 3px; }
.pmo-rh-banner__txt strong {
  color: #34d399;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
.pmo-rh-banner__txt small {
  color: #8892a4;
  font-size: 12px;
  line-height: 1.55;
}
.pmo-rh-banner__txt em { color: #cbd5e1; font-style: normal; font-weight: 700; }

/* ── Linha de pessoa vinda do RH (destaque sutil) ── */
.team-row--rh { background: linear-gradient(90deg, rgba(16,185,129,.03), transparent); }
.team-row--rh td:first-child::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  background: #10b981;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

/* ── Sobrealocação ────────────────────────────────── */
.team-overload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}

.team-over-row {
  background: #161b27;
  border: 1px solid #252d3d;
  border-radius: 12px;
  padding: 14px 16px;
  transition: .15s;
}
.team-over-row--alert {
  border-color: rgba(248, 113, 113, .35);
  background: linear-gradient(160deg, rgba(248, 113, 113, .06), transparent 50%), #161b27;
  box-shadow: 0 2px 12px rgba(248, 113, 113, .12);
}

.team-over-row__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.team-over-row__head strong {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
}
.team-over-pct {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-left: auto;
}

/* Barra dupla (verde até 100, vermelho acima) */
.team-over-bar {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, .04);
  border-radius: 99px;
  overflow: visible;
  margin: 8px 0 10px;
}
.team-over-bar i {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  transition: width .35s ease;
}
.team-over-bar__excess {
  /* sobreposto à barra principal — começa em 100% */
  border-radius: 0 99px 99px 0;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, .35);
}

.team-over-allocs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team-over-allocs li {
  font-size: 12px;
  color: #cbd5e1;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .025);
  border-radius: 6px;
  border-left: 2px solid rgba(255, 255, 255, .08);
}
.team-over-allocs li strong { color: #f1f5f9; font-weight: 700; }
