.aql-tf-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

/* Left: taxonomy */
.aql-tf-filter select {
  padding: 0.25em 0.5em;
  font-size: 1em;
}

/* Right: sort dropdown */
.aql-tf-sort .dropdown {
  position: relative;
}

/* Toggle button */
.aql-tf-sort .dropdown-toggle {
  background: none;
  border: 1px solid #ccc;
  padding: 0.25em 0.75em;
  cursor: pointer;
  font-size: 1em;
  border-radius: 0.25em;
}

/* ▼ icon on the toggle */
.aql-tf-sort .dropdown-icon {
  margin-left: 0.5em;
  font-size: 0.7em;
}

/* Menu hidden by default */
.aql-tf-sort .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  margin-top: 0.25em;
  list-style: none;
  padding: 0;
  min-width: 8em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  text-align: left;
  border-radius: 0.25em;
}
.aql-tf-sort .dropdown:hover .dropdown-toggle {
  outline: 2px solid #111;
}
/* Show on focus or hover */
.aql-tf-sort .dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Menu items */
.aql-tf-sort .dropdown-menu li {
  margin: 0;
}

/* Links */
.aql-tf-sort .dropdown-menu a {
  display: block;
  padding: 0.25em 1em;
  text-decoration: none;
  color: inherit;
}

/* Active = bold */
.aql-tf-sort .dropdown-menu a.active {
  font-weight: bold;
  background: #f0f0f0;
}

/* Hover effect */
.aql-tf-sort .dropdown-menu a:hover {
  background: #f5f5f5;
}