/* ══════════════════════════════════════════════
   PILL RADIO GROUP — filtros de contexto em formato pílula
   Usado em fluxos de edição tabular progressiva (ex: Mapa > Vincular)
   ══════════════════════════════════════════════ */

.pill-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-radio-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid #dcdfe3;
  background: #fff;
  color: #08262b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.pill-radio-group label:hover {
  border-color: #0c3f52;
}

.pill-radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pill-radio-group label:has(input[type="radio"]:checked) {
  background: #0c3f52;
  border-color: #0c3f52;
  color: #fff;
}

/* ══════════════════════════════════════════════
   PILL BUTTON — mesma pílula acima, mas para dbc.Button (sem input/label,
   ex: grupos de Tipo/Cultura do Objetivo Mensal com seleção via n_clicks
   em vez de dcc.RadioItems). Aplicar .pill-btn em todo botão do grupo e
   .pill-btn-active só no selecionado.
   ══════════════════════════════════════════════ */

.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px !important;
  margin: 0 8px 8px 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid #dcdfe3 !important;
  background: #fff !important;
  color: #08262b !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-btn:hover {
  border-color: #0c3f52 !important;
  background: #fff !important;
  color: #08262b !important;
}

.pill-btn-active,
.pill-btn-active:hover {
  background: #0c3f52 !important;
  border-color: #0c3f52 !important;
  color: #fff !important;
}

/* AG Grid — linha TOTAL fixa no topo (pinnedTopRowData) */
.ag-theme-alpine .ag-row-pinned {
  background-color: #fff3cd !important;
  font-weight: 800;
}
