/* V6.1.58 | Refinamentos visuais exclusivos das lanternas fixas BUY OFF.
   Preserva DOM, controles de check, eventos, horários e dados. */
#buyoffGrid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,450px),1fr))!important;
  width:100%!important;max-width:1120px!important;margin-inline:auto!important;
  gap:11px!important;align-items:start!important;
}
#buyoffGrid>.bo8-station{min-width:0!important;width:100%!important}
#buyoffGrid>.bo8-station>.bo8-station-title{
  min-height:46px!important;padding:10px 142px 10px 13px!important;
  font-size:15px!important;line-height:1.22!important;
}
#buyoffGrid .ccq157-title-badge{right:40px!important;top:12px!important;font-size:9px!important}
#buyoffGrid .ccq156-status-bar{padding:5px 10px 8px!important;gap:8px!important}
#buyoffGrid .ccq156-status-pill{
  flex:0 0 72px!important;width:72px!important;height:72px!important;
  min-width:72px!important;min-height:72px!important;max-width:72px!important;max-height:72px!important;
  padding:6px!important;gap:1px!important;
}
#buyoffGrid .ccq156-status-pill b{font-size:20px!important}
#buyoffGrid .ccq156-status-pill small{font-size:8px!important;max-width:61px!important}
#buyoffGrid .bo8-header-grid{
  padding:8px 11px!important;gap:7px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#buyoffGrid .bo8-header-grid label{font-size:10px!important;color:#174a7a!important;line-height:1.2!important}
/* O Team Leader escolhe o nome neste campo. Fundo escuro + nome branco para ler e clicar. */
#buyoffGrid .bo8-header-grid select{
  min-height:35px!important;max-width:100%!important;
  background:#104b81!important;color:#fff!important;border:1px solid #0d3866!important;
  font-size:12px!important;font-weight:800!important;letter-spacing:0!important;
  padding:5px 27px 5px 10px!important;cursor:pointer!important;
  color-scheme:light!important;
}
#buyoffGrid .bo8-header-grid select option{background:#fff!important;color:#15334e!important;font-weight:650!important}
#buyoffGrid .bo8-header-grid select:focus-visible{
  outline:3px solid #ffbd39!important;outline-offset:2px!important;
}
#buyoffGrid .bo8-header-grid input{
  min-height:35px!important;background:#fff!important;color:#173d62!important;
  border:1px solid #b9cbda!important;font-size:12px!important;font-weight:650!important;
}
#buyoffGrid .bo8-slots{padding:7px 9px 9px!important;gap:7px!important}
#buyoffGrid .bo8-slot{
  padding:7px 9px!important;gap:4px 7px!important;
  grid-template-columns:minmax(125px,.65fr) minmax(230px,1.35fr)!important;
}
#buyoffGrid .bo8-slot .bo8-summary{gap:7px!important}
#buyoffGrid .bo8-slot .bo8-summary img{width:46px!important;height:56px!important;flex:0 0 46px!important}
#buyoffGrid .bo8-main-info strong{font-size:12px!important}
#buyoffGrid .bo8-main-info span{font-size:10px!important}
#buyoffGrid .v578-check-strip{padding:16px 0 0!important;gap:4px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 65px!important}
#buyoffGrid .v578-check-chip{min-height:45px!important;padding:6px 3px 4px!important}
#buyoffGrid .v578-check-total{min-height:42px!important}
#buyoffGrid .bo8-slot .bo8-actions{
  grid-template-columns:repeat(3,minmax(0,138px))!important;
  justify-content:start!important;align-items:center!important;gap:6px!important;
  width:100%!important;margin:3px 0 0!important;
}
#buyoffGrid .bo8-slot .bo8-actions:has(>button:nth-child(4)){
  grid-template-columns:repeat(4,minmax(0,104px))!important;
}
#buyoffGrid .bo8-slot .bo8-actions>button{
  min-height:34px!important;max-width:138px!important;
  padding:6px 7px!important;font-size:10px!important;line-height:1.15!important;
  width:100%!important;white-space:normal!important;
}
#buyoffGrid .bo8-register-meta{
  padding:5px 7px!important;font-size:10px!important;line-height:1.25!important;
  background:#174c7b!important;color:#fff!important;border-radius:5px!important;
  gap:7px!important;
}
#buyoffGrid .bo8-register-meta b,#buyoffGrid .bo8-register-meta span{color:#fff!important;font-size:10px!important}
@media(max-width:860px){
  #buyoffGrid .bo8-slot{grid-template-columns:1fr!important;grid-template-areas:'identity' 'progress' 'actions' 'register'!important}
  #buyoffGrid .bo8-header-grid{grid-template-columns:1fr!important}
  #buyoffGrid .v578-check-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 65px!important;padding-top:19px!important}
}
@media(max-width:520px){
  #buyoffGrid>.bo8-station>.bo8-station-title{font-size:14px!important;min-height:53px!important;padding:10px 35px 24px 11px!important}
  #buyoffGrid .ccq157-title-badge{top:32px!important;left:10px!important;right:auto!important}
  #buyoffGrid .bo8-header-grid{padding:8px 10px!important}
  #buyoffGrid .bo8-header-grid select{font-size:12px!important}
  #buyoffGrid .bo8-slot .bo8-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #buyoffGrid .bo8-slot .bo8-actions:has(>button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #buyoffGrid .bo8-slot .bo8-actions>button{font-size:10px!important;min-height:38px!important;padding:7px 5px!important;max-width:none!important}
  #buyoffGrid .bo8-register-meta{font-size:10px!important;flex-wrap:wrap!important}
}


/* V6.1.60 | Checks das lanternas fixas: etapas confirmadas sempre verdes. */
/* Pendentes e bloqueados ficam vermelhos no indicador, mesmo antes da janela
   do check final. O bloqueio real do botão continua controlado pelo JavaScript. */
#buyoffGrid .v578-check-strip .v578-check-chip.pending,
#buyoffGrid .v578-check-strip .v578-check-chip.locked{
  background:#fde8e8!important;border-color:#d95656!important;color:#922323!important;
}
#buyoffGrid .v578-check-strip .v578-check-chip.pending::before,
#buyoffGrid .v578-check-strip .v578-check-chip.locked::before{
  background:#cb3333!important;box-shadow:0 0 0 2px #cb3333!important;
}

/* Sem checks: CHECK INICIAL e CHECK FINAL vermelhos.
   Depois do primeiro: inicial verde, final vermelho.
   Depois do segundo: ambos verdes. A barra acompanha os registros. */
#buyoffGrid .v578-check-strip:has(.v578-check-total.c1)::before{
  background:linear-gradient(to right,var(--ccq156-green) 0% 50%,var(--ccq156-gray) 50% 100%)!important;
}
#buyoffGrid .v578-check-strip:has(.v578-check-total.c2)::before{
  background:var(--ccq156-green)!important;
}
#buyoffGrid .v578-check-strip .v578-check-chip.done{
  background:#e2f6ea!important;border-color:#9bd6b6!important;color:#17603b!important;
}
#buyoffGrid .v578-check-strip .v578-check-chip.done::before{
  background:var(--ccq156-green)!important;
  box-shadow:0 0 0 2px var(--ccq156-green)!important;
}
#buyoffGrid .v578-check-strip .v578-check-total.c1,
#buyoffGrid .v578-check-strip .v578-check-total.c2{
  background:#d9f3e3!important;border-color:#70bb92!important;color:#155d3a!important;
}

/* Próxima versão | Compactação dos botões de lanternas fixas.
   Texto e botões sempre em uma única linha; sem alteração de handlers. */
#buyoffGrid{
  max-width:1000px!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,405px),1fr))!important;
}
#buyoffGrid .bo8-slots{padding:6px 8px 8px!important;gap:6px!important}
#buyoffGrid .bo8-slot{padding:7px 8px!important;gap:4px 6px!important}
#buyoffGrid .bo8-slot .bo8-actions,
#buyoffGrid .bo8-slot .bo8-actions:has(>button:nth-child(4)){
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
  padding-bottom:2px!important;
  box-sizing:border-box!important;
}
#buyoffGrid .bo8-slot .bo8-actions>button,
#buyoffGrid .bo8-slot .bo8-actions>.v578-check-action{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:32px!important;
  grid-column:auto!important;
  padding:6px 7px!important;
  margin:0!important;
  font-size:9px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-align:center!important;
}
@media(max-width:520px){
  #buyoffGrid .bo8-slot .bo8-actions,
  #buyoffGrid .bo8-slot .bo8-actions:has(>button:nth-child(4)){
    display:flex!important;
    flex-flow:row nowrap!important;
    gap:3px!important;
  }
  #buyoffGrid .bo8-slot .bo8-actions>button,
  #buyoffGrid .bo8-slot .bo8-actions>.v578-check-action{
    width:auto!important;
    min-height:33px!important;
    font-size:9px!important;
    padding:5px 5px!important;
    white-space:nowrap!important;
  }
}

/* V6.1.60 | Títulos dos cards de lanternas e opcionais com contraste branco. */
#buyoffGrid .bo8-station-title,
#radiosExtrasGridV543 .r543-extra-title{
  color:#fff!important;
}

/* Corrige apenas o alinhamento do card do líder do 2º turno no celular.
   Desktop e dados da foto continuam inalterados. */
@media(max-width:820px){
  #v565Gestao2T .v5121-gestao-hero{
    align-items:center!important;
    justify-content:center!important;
  }
  #v565Gestao2T .v5121-leader-card{
    box-sizing:border-box!important;
    min-width:0!important;
    width:min(100%,500px)!important;
    max-width:100%!important;
    margin-inline:auto!important;
  }
  #v565Gestao2T .v5124-profile-wrap{flex-shrink:0!important}
  #v565Gestao2T .v5124-profile-photo{object-position:center!important}
}

/* V6.1.60 | Atualizações são silenciosas; permanece o número da versão. */
#ccqUpdateProgress641{display:none!important}
