/* AF Advocacia — ações em lote nas publicações. 21/08/2026 */

.afx-lote {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid hsl(var(--border));
}

.afx-lote-grupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.afx-lote-grupo[hidden] { display: none; }

.afx-lote-recado {
  flex-basis: 100%;
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
}
.afx-lote-recado.afx-lote-grave { color: hsl(var(--destructive)); }
.afx-lote-recado[hidden] { display: none; }

.afx-lote-rotulo {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  margin-right: .25rem;
}

.afx-lote-btn {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 9999px;
  padding: .3rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.afx-lote-btn:hover:not(:disabled) {
  background: hsl(var(--muted));
  border-color: hsl(var(--foreground) / .25);
}
.afx-lote-btn:disabled { opacity: .5; cursor: default; }

.afx-lote-primario {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}
.afx-lote-primario:hover:not(:disabled) {
  background: hsl(var(--foreground) / .9);
  color: hsl(var(--background));
}

.afx-lote-perigo { color: hsl(var(--destructive)); }
.afx-lote-perigo:hover:not(:disabled) {
  background: hsl(var(--destructive) / .08);
  border-color: hsl(var(--destructive) / .4);
}
.afx-lote-primario.afx-lote-perigo {
  background: hsl(var(--destructive));
  color: #fff;
  border-color: hsl(var(--destructive));
}
.afx-lote-primario.afx-lote-perigo:hover:not(:disabled) {
  background: hsl(var(--destructive) / .9);
  color: #fff;
}

.afx-lote-discreto { border-color: transparent; color: hsl(var(--muted-foreground)); }

/* ---------- a caixa em cada publicação ---------- */

.afu-cartao.afx-selmodo {
  position: relative;
  padding-left: 2.5rem;
}

.afx-sel {
  position: absolute;
  left: .9rem;
  top: 1.1rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: hsl(var(--primary));
  cursor: pointer;
  z-index: 2;
}
