/* ============================================================================
   v5-selecao-equipe.css — A FAIXA DE QUEM ESTÁ EM CAMPO   (18/09/2026 · v126)

   o dono do painel mandou o componente "member selector" (React + Tailwind +
   framer-motion) e disse: *"coloque isso no escritório onde tem os agentes"*.
   Escolha dele para o que marcar/desmarcar faz: **marcado = trabalhando,
   desmarcado = de folga**.

   O painel não é React e não tem Tailwind. O componente foi PORTADO para o
   padrão da casa: mesmas cores do lucrei-ds.css, mesmo vidro do escritório,
   nenhuma dependência nova (nada de framer-motion — as animações são CSS e
   respeitam prefers-reduced-motion).

   O que veio do original: avatar redondo de 48px, primeiro nome embaixo,
   quem está fora fica em cinza com um "+" no canto, botão tracejado no fim
   da fila que abre uma busca com o time inteiro e um ✓ em quem está dentro.

   ⚠️ Esta folha só vale dentro do Escritório (body.v5-escritorio) e só pinta
   as classes .seq-*. Tirar este <link> E o <script> do v5-selecao-equipe.js
   devolve a faixa de cabecinhas antiga (.esc-cabeca), que continua no
   v5-vivo.js e volta a ser usada sozinha.
   ========================================================================== */

/* o painel já tem *{box-sizing:border-box} (v5.css), mas esta folha não
   depende disso: a busca precisa fechar 288px com padding e tudo. */
body.v5-escritorio .seq,
body.v5-escritorio .seq *{ box-sizing: border-box; }

body.v5-escritorio .seq{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* -- 1. o funcionário na fila --------------------------------------------- */
body.v5-escritorio .seq-membro{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 58px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .18s ease;
}
body.v5-escritorio .seq-membro:hover{ transform: translateY(-2px) scale(1.04); }
body.v5-escritorio .seq-membro:active{ transform: scale(.96); }

body.v5-escritorio .seq-foto{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: filter .2s ease, opacity .2s ease, border-color .2s ease,
              box-shadow .2s ease;
}
body.v5-escritorio .seq-foto img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
}
body.v5-escritorio .seq-foto .esc-iniciais{
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--ds-menta);
}
body.v5-escritorio .seq-membro:focus-visible .seq-foto{
  outline: 2px solid var(--ds-menta);
  outline-offset: 2px;
}

/* FORA (folga ou desligado): cinza e apagado, como no original */
body.v5-escritorio .seq-membro.fora .seq-foto{
  filter: grayscale(1);
  opacity: .5;
}
body.v5-escritorio .seq-membro.fora:hover .seq-foto{ opacity: .78; }

/* dentro e chamando você: o fio laranja que a cabecinha antiga já tinha */
body.v5-escritorio .seq-membro.precisa_de_voce .seq-foto{
  border-color: var(--ds-atencao-claro);
  box-shadow: 0 0 0 2px rgba(var(--ds-atencao-2-rgb), .20);
}

/* o "+" de quem está fora (canto de baixo, sobre o avatar) */
body.v5-escritorio .seq-mais{
  position: absolute;
  right: 1px; bottom: 15px;
  width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ds-branco);
  color: var(--ds-atlantico);
  font-style: normal; font-size: 13px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  animation: seq-pop .22s ease both;
}
/* o contador de pendências, igual ao da faixa antiga */
body.v5-escritorio .seq-n{
  position: absolute;
  top: -3px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--ds-atencao-claro);
  color: var(--ds-atlantico);
  font-style: normal; font-size: 10px; font-weight: 800; line-height: 1;
}
body.v5-escritorio .seq-nome{
  max-width: 58px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 600; line-height: 1.2;
  color: var(--ds-branco);
  transition: color .2s ease;
}
body.v5-escritorio .seq-membro.fora .seq-nome{ color: var(--ds-apoio-escuro); }

/* -- 2. o botão tracejado que abre a busca -------------------------------- */
body.v5-escritorio .seq-abre-caixa{ position: relative; }
body.v5-escritorio .seq-abre{
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 58px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .18s ease;
}
body.v5-escritorio .seq-abre:hover{ transform: translateY(-2px) scale(1.04); }
body.v5-escritorio .seq-abre i{
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .28);
  color: var(--ds-apoio-escuro);
  font-style: normal; font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform .2s ease, color .2s ease, border-color .2s ease,
              background .2s ease;
}
body.v5-escritorio .seq-abre:hover i{
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}
body.v5-escritorio .seq-abre small{
  font-size: 11px; font-weight: 600; color: var(--ds-apoio-escuro);
  transition: color .2s ease;
}
body.v5-escritorio .seq-abre[aria-expanded="true"] i{
  transform: rotate(45deg);
  border-color: var(--ds-menta);
  color: var(--ds-menta);
  background: rgba(var(--ds-menta-rgb), .12);
}
body.v5-escritorio .seq-abre[aria-expanded="true"] small{ color: var(--ds-menta); }

/* -- 3. a busca (vidro, como o resto do escritório) ------------------------ */
body.v5-escritorio .seq-lista{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: 288px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(var(--ds-atlantico-2-rgb), .82);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .70),
              inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: seq-desce .2s ease both;
}
body.v5-escritorio .seq-lista[hidden]{ display: none; }
/* a posição fina (encostar na borda) é MEDIDA no v5-selecao-equipe.js */

body.v5-escritorio .seq-busca{
  position: relative;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
body.v5-escritorio .seq-busca svg{
  position: absolute; left: 22px; top: 50%;
  width: 15px; height: 15px; margin-top: -7px;
  fill: none; stroke: var(--ds-apoio-escuro); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
body.v5-escritorio .seq-busca input{
  width: 100%;
  padding: 9px 12px 9px 34px;
  font: inherit; font-size: 13px;
  color: var(--ds-branco);
  background: rgba(255, 255, 255, .06);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}
body.v5-escritorio .seq-busca input::placeholder{ color: var(--ds-apoio-escuro); }
body.v5-escritorio .seq-busca input:focus{
  border-color: rgba(var(--ds-menta-rgb), .55);
  background: rgba(255, 255, 255, .10);
}

body.v5-escritorio .seq-rolo{
  max-height: 268px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
body.v5-escritorio .seq-rolo::-webkit-scrollbar{ width: 6px; }
body.v5-escritorio .seq-rolo::-webkit-scrollbar-track{ background: transparent; }
body.v5-escritorio .seq-rolo::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, .20); border-radius: 99px;
}

body.v5-escritorio .seq-linha{
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border: 0; background: none;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
  animation: seq-entra .18s ease both;
}
body.v5-escritorio .seq-linha:hover{ background: rgba(255, 255, 255, .07); }
body.v5-escritorio .seq-linha.dentro{ background: rgba(var(--ds-menta-rgb), .07); }
body.v5-escritorio .seq-linha.dentro:hover{ background: rgba(var(--ds-menta-rgb), .13); }

body.v5-escritorio .seq-linha .seq-foto{ width: 36px; height: 36px; flex: 0 0 36px; }
body.v5-escritorio .seq-linha .seq-foto img{ width: 32px; height: 32px; }
body.v5-escritorio .seq-linha.fora .seq-foto{ filter: grayscale(1); opacity: .55; }

body.v5-escritorio .seq-texto{ flex: 1 1 auto; min-width: 0; }
body.v5-escritorio .seq-texto b{
  display: block;
  font-size: 12.5px; font-weight: 700; color: var(--ds-branco);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.v5-escritorio .seq-texto small{
  display: block;
  font-size: 11px; color: var(--ds-apoio-escuro);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.v5-escritorio .seq-linha.fora .seq-texto b{ color: var(--ds-neutro-2); }

/* -- 3b. as duas peças de dentro da linha ---------------------------------
   A linha da busca deixou de ser um botão só: dá para abrir a FICHA (o nome),
   desativar (⏻) e dar folga (✓) sem sair da lista. */
body.v5-escritorio .seq-ficha{
  flex: 1 1 auto;
  min-width: 0;
  display: flex; align-items: center; gap: 11px;
  padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
body.v5-escritorio .seq-marca-btn{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; cursor: pointer;
}
body.v5-escritorio .seq-ficha:focus-visible,
body.v5-escritorio .seq-marca-btn:focus-visible,
body.v5-escritorio .seq-off:focus-visible{
  outline: 2px solid var(--ds-menta);
  outline-offset: 2px;
  border-radius: 10px;
}

/* o ⏻ de desativar / ativar de vez — separado do ✓, que é só folga */
body.v5-escritorio .seq-off{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: none;
  color: var(--ds-apoio-escuro);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
body.v5-escritorio .seq-off svg{
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
body.v5-escritorio .seq-off:hover{
  color: var(--ds-erro-claro);
  border-color: rgba(var(--ds-erro-claro-rgb), .5);
  background: rgba(var(--ds-erro-claro-rgb), .10);
}
body.v5-escritorio .seq-linha.desligado .seq-off{
  color: var(--ds-menta); border-color: rgba(var(--ds-menta-rgb), .45);
}

/* o ✓ redondo do original */
body.v5-escritorio .seq-marca{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28);
  transition: background .18s ease, border-color .18s ease;
}
body.v5-escritorio .seq-linha.dentro .seq-marca{
  background: var(--ds-menta);
  border-color: var(--ds-menta);
}
body.v5-escritorio .seq-marca svg{
  width: 11px; height: 11px;
  fill: none; stroke: var(--ds-atlantico); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  animation: seq-pop .2s ease both;
}

body.v5-escritorio .seq-vazio,
body.v5-escritorio .seq-pe{
  padding: 14px 12px;
  font-size: 11.5px; line-height: 1.45;
  color: var(--ds-apoio-escuro);
  text-align: center;
}
body.v5-escritorio .seq-pe{
  border-top: 1px solid rgba(255, 255, 255, .10);
  text-align: left;
}
body.v5-escritorio .seq-pe a{ color: var(--ds-menta); }

/* -- 4. movimento (o que o framer-motion fazia) --------------------------- */
@keyframes seq-desce{
  from{ opacity: 0; transform: translateY(-8px) scale(.97); }
  to  { opacity: 1; transform: none; }
}
@keyframes seq-entra{
  from{ opacity: 0; transform: translateX(-8px); }
  to  { opacity: 1; transform: none; }
}
@keyframes seq-pop{
  from{ opacity: 0; transform: scale(0); }
  to  { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce){
  body.v5-escritorio .seq-lista,
  body.v5-escritorio .seq-linha,
  body.v5-escritorio .seq-mais,
  body.v5-escritorio .seq-marca svg{ animation: none; }
  body.v5-escritorio .seq-membro,
  body.v5-escritorio .seq-abre,
  body.v5-escritorio .seq-abre i{ transition: none; }
  body.v5-escritorio .seq-membro:hover,
  body.v5-escritorio .seq-abre:hover{ transform: none; }
}

/* -- 5. celular (390px — o banco de provas da v120) ----------------------- */
@media (max-width: 560px){
  body.v5-escritorio .seq{ gap: 10px; }
  body.v5-escritorio .seq-membro,
  body.v5-escritorio .seq-abre{ width: 50px; }
  body.v5-escritorio .seq-foto,
  body.v5-escritorio .seq-abre i{ width: 42px; height: 42px; }
  body.v5-escritorio .seq-foto img{ width: 36px; height: 36px; }
  body.v5-escritorio .seq-nome{ max-width: 50px; font-size: 10px; }
  /* largura e posição da busca no celular: quem resolve é o encaixa() do JS */
}
