/* Contenitore principale */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e0e0e0;
  border-radius: 9999px; /* pill */
  padding: 0.75rem 1rem;
  gap: 1rem;
}

/* Gruppi */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Label uniformi */
.filter-bar label {
  color: #444;            /* grigio scuro */
  font-size: 0.9rem;
  font-weight: 600;       /* semi-bold */
  font-family: Poppins, sans-serif;  
  margin-right: 0.25rem;  /* piccolo spazio prima della select */
  cursor: default;
  user-select: none;
}

/* Select */
.filter-bar select {
  border: none;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px; /* pill */
  appearance: none;
  cursor: pointer;
}

.filter-bar select:hover,
.filter-bar select:focus {
  background: #f5f5f5;
  outline: none;
}

/* Pulsanti */
.filter-bar button {
  border: none;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px; /* pill */
  cursor: pointer;
}

/* Invertiti i colori */
.filter-bar button.submit {
  background: #f44336; /* rosso */
  color: white;
}

.filter-bar button.submit:hover {
  background: #d32f2f;
}

.filter-bar button.reset {
  background: #4caf50; /* verde */
  color: white;
}

.filter-bar button.reset:hover {
  background: #43a047;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1rem;
  }

  .filter-group,
  .right-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-bar label,
  .filter-bar select,
  .filter-bar button {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
}

.no-stock {
  padding: 20px !important;
}

.no-stock strong,
.no-stock span {
  display: contents;
}

.no-stock .order-link {
  font-weight: bold;
  color: #d32f2f;
  text-decoration: underline;
  cursor: pointer;
}