/* AF CRM — Configurações › Etiquetas (25/09/2026) */
[data-afe2="on"] [role="tab"][data-state="active"] {
  background: transparent; border-color: hsl(var(--border)); box-shadow: none; color: hsl(var(--muted-foreground));
}
.afe2-tab-ic { margin-right: 10px; font-size: 15px; line-height: 1; }
.afe2-card {
  border: 1px solid hsl(var(--border)); border-radius: .9rem; background: hsl(var(--card));
  color: hsl(var(--card-foreground)); padding: 1.25rem 1.5rem; box-sizing: border-box;
}
.afe2-tit { font-size: 1.125rem; font-weight: 600; margin: 0; }
.afe2-sub { margin: .25rem 0 1rem; font-size: .875rem; color: hsl(var(--muted-foreground)); max-width: 60ch; }
.afe2-novo, .afe2-edita { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.afe2-campo {
  flex: 1 1 16rem; min-width: 0; height: 2.4rem; padding: 0 .75rem; box-sizing: border-box;
  border: 1px solid hsl(var(--border)); border-radius: .6rem; background: hsl(var(--background));
  color: hsl(var(--foreground)); font: inherit; font-size: .875rem;
}
.afe2-campo:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, .18); }
.afe2-bt {
  height: 2.4rem; padding: 0 .9rem; border-radius: .6rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground)); font: inherit; font-size: .8125rem;
  font-weight: 500; cursor: pointer; white-space: nowrap;
}
.afe2-bt:hover { background: hsl(var(--muted)); }
.afe2-primario { background: #ea580c; border-color: #ea580c; color: #fff; font-weight: 600; }
.afe2-primario:hover { background: #c2410c; border-color: #c2410c; }
.afe2-perigo { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 600; height: 2rem; }
.afe2-perigo:hover { background: #b91c1c; }
.afe2-conf .afe2-bt:not(.afe2-perigo) { height: 2rem; }
.afe2-dica { margin: .4rem 0 0; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.afe2-aviso { min-height: 1.1rem; margin: .75rem 0 .25rem; font-size: .8125rem; }
.afe2-ok { color: #15803d; }
.afe2-ruim { color: #b91c1c; }
:is(.dark *) .afe2-ok { color: #86efac; }
:is(.dark *) .afe2-ruim { color: #fca5a5; }
.afe2-lista { display: flex; flex-direction: column; border-top: 1px solid hsl(var(--border)); }
.afe2-linha {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  padding: .6rem 0; border-bottom: 1px solid hsl(var(--border));
}
.afe2-linha > .afe2-edita { flex: 1 1 100%; }
.afe2-chip { font-size: .8rem; line-height: 1.6rem; max-width: 22rem; }
.afe2-uso { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.afe2-acoes { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; }
.afe2-ic {
  width: 1.9rem; height: 1.9rem; border-radius: .5rem; border: 1px solid hsl(var(--border));
  background: transparent; color: hsl(var(--foreground)); cursor: pointer; font-size: .85rem; line-height: 1;
}
.afe2-ic:hover:not(:disabled) { background: hsl(var(--muted)); }
.afe2-ic:disabled { opacity: .35; cursor: default; }
.afe2-link {
  border: 0; background: none; padding: .25rem .35rem; font: inherit; font-size: .8125rem; cursor: pointer;
  color: hsl(var(--primary)); border-radius: .35rem;
}
.afe2-link:hover { background: hsl(var(--muted)); }
.afe2-link-ruim { color: #b91c1c; }
:is(.dark *) .afe2-link-ruim { color: #fca5a5; }
.afe2-conf {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .5rem .65rem; border-radius: .6rem; background: rgba(220, 38, 38, .07); font-size: .8125rem;
}
.afe2-conf > span { flex: 1 1 14rem; }
.afe2-nota { flex: 1 1 100%; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.afe2-vazio { padding: 1rem 0; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.afe2-ocupado .afe2-lista, .afe2-ocupado .afe2-novo { opacity: .6; pointer-events: none; }
@media (max-width: 640px) {
  .afe2-card { padding: 1rem; }
  .afe2-acoes { margin-left: 0; width: 100%; justify-content: flex-end; }
}
