/* Oculta visualmente el <select> nativo pero mantiene accesibilidad/lectores de pantalla */
.pts-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Contenedor del custom select */
.pts-select {
  position: relative;
  display: inline-block;
  min-width: 220px;
  font: inherit;
  &.pts-select--open {
    button {
      border-radius: 5px 5px 0 0;
      background: #e41a24;
      span {
        color: white !important;
      }
    }
  }
}

/* Botón principal (combobox) */
.pts-select__button[role="combobox"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.03);
  cursor: pointer;
  line-height: 1.2;
}

/* Placeholder/gris cuando no hay valor */
.pts-select__label.is-placeholder {
  color: #777;
}

/* Icono flecha */
.pts-select__caret {
  margin-left: 8px;
  transition: transform 0.15s ease;
}
.pts-select--open .pts-select__caret {
  transform: rotate(180deg);
}

/* Lista desplegable */
.pts-select__list[role="listbox"] {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 0px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #ccd0d4;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: none;
}
.pts-select--open .pts-select__list {
  display: block;
  background: #e6e6e6;
}

/* Opción */
.pts-select__option[role="option"] {
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.2;
}
.pts-select__option[aria-selected="true"],
.pts-select__option.is-active {
  /* background: #f0f6fc; */
}

/* Estados disabled */
.pts-select.is-disabled .pts-select__button {
  background: #f6f7f7;
  color: #999;
  cursor: not-allowed;
}
.pts-select.is-disabled .pts-select__list {
  display: none !important;
}

/* Contenedor de los filtros para que no se rompa el layout */
.pts-filters .pts-field {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 12px;
  margin-bottom: 12px;
  span {
    display: none;
  }
}
