/* lselect — multiselect de tags */

.lselect-custom {
  margin-top: 0.25rem;
}

/* Lista numerada de itens selecionados */
.lselect-selected {
  list-style: none;
  counter-reset: lselect-counter;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.lselect-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.3rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #fff;
  counter-increment: lselect-counter;
}

.lselect-tag::before {
  content: counter(lselect-counter) ".";
  color: #6c757d;
  font-size: 0.8rem;
  min-width: 1.2rem;
}

.lselect-remove-tag {
  cursor: pointer;
  background: #f76707;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-left: auto;
  user-select: none;
}

.lselect-remove-tag:hover {
  background: #e8590c;
}

/* Container das opções disponíveis */
.lselect-options-container {
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  overflow: hidden;
}

.lselect-options-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #e9ecef;
  border-bottom: 1px solid #ced4da;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: #6c757d;
}

.lselect-options-header .lselect-options-count {
  margin-left: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
}

.lselect-options-count.lselect-options-count--full {
  background: #f76707;
  border-color: #f76707;
  color: #fff;
}

/* Grade de badges clicáveis */
.lselect-options {
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lselect-option {
  cursor: pointer;
  padding: 0.2rem 0.7rem;
  border: 1px solid #adb5bd;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #fff;
  color: #495057;
  user-select: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.lselect-option:hover:not(.active) {
  border-color: #f76707;
  color: #f76707;
}

.lselect-option.active {
  background: #f76707;
  border-color: #f76707;
  color: #fff;
}

/* Bloqueia visualmente as opções quando o limite foi atingido */
.lselect-options-container.lselect--full .lselect-option:not(.active) {
  opacity: 0.45;
  cursor: not-allowed;
}
