/*
 * CVDB — Código com menos de 39 caracteres
 * Versão: 20260712_09 (V206)
 */

/* Status Desconhecido: vermelho suave, discreto e levemente apagado. */
.pill.pill-unknown {
  border-color: rgba(248, 113, 113, 0.52) !important;
  background: rgba(127, 29, 29, 0.18) !important;
  color: rgba(254, 202, 202, 0.82) !important;
  opacity: 0.86;
  box-shadow: none !important;
}

/* Mantém o balão no padrão e com espaçamento regular. */
.status-cell:has(.pill-unknown) {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

.status-cell:has(.pill-unknown) > .motivo-btn {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  opacity: 0.9;
}

/* Badge "Divergente" na coluna Marcações (código inválido/incompleto). CVDB_MARCACOES_NUMEROS_V1 */
.cvdb-lote-divergente-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 19px;
  padding: 2px 8px;
  border: 1px solid rgba(248, 113, 113, 0.48);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.16);
  color: rgba(254, 202, 202, 0.82);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.88;
}

/* Linha divergente suave. */
.linha-divergentes:has(.pill-unknown) {
  background: rgba(127, 29, 29, 0.045);
}

/* Tema claro. */
body:not(.dark) .pill.pill-unknown {
  border-color: rgba(220, 38, 38, 0.34) !important;
  background: rgba(254, 226, 226, 0.72) !important;
  color: rgba(153, 27, 27, 0.82) !important;
}

body:not(.dark) .cvdb-lote-divergente-badge {
  border-color: rgba(220, 38, 38, 0.34);
  background: rgba(254, 226, 226, 0.72);
  color: rgba(153, 27, 27, 0.82);
}

body:not(.dark) .linha-divergentes:has(.pill-unknown) {
  background: rgba(254, 226, 226, 0.24);
}
