/* Additional styles for compact filter layout */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

/* Style for the search bar with filter toggle */

.search-container {
  position: relative;
  margin-bottom: 1rem;
}

.search-container .input-group {
  margin-bottom: 0.25rem;
}

/* Style for filter badge */

#activeFilterCount {
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
}

/* Responsive adjustments for filters */

@media (max-width: 767.98px) {
  .filter-row > div {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .sort-container {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

@media (max-width: 767.98px) {
  .sort-container label {
    margin-bottom: 0.25rem;
  }
}

/* Model link styles */

.model-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.model-link:hover {
  text-decoration: underline;
  color: #0a58ca;
}

/* Efficiency level badges */

.efficiency-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  min-width: 100px;
  text-align: center;
}

.efficiency-exceptional {
  background-color: #28a745;
  color: white;
}

.efficiency-very-good {
  background-color: #5cb85c;
  color: white;
}

.efficiency-average {
  background-color: #ffc107;
  color: #212529;
}

.efficiency-below-average {
  background-color: #fd7e14;
  color: white;
}

.efficiency-poor {
  background-color: #dc3545;
  color: white;
}

/* Table responsiveness */

.table-container {
  overflow-x: auto;
}

/* Compact table on mobile */

@media (max-width: 767.98px) {
  .table th, .table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

.formula {
  font-size: 10px!important;
}

