.pgd-custom-select {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pgd-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pgd-custom-select__button {
  width: 100%;
  min-width: 0;
  height: var(--pgd-select-height, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--border, #decfb9);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
  color: var(--text, #20150a);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(74, 49, 16, 0.03);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.pgd-custom-select__button:hover {
  border-color: rgba(184, 124, 12, 0.34);
  background: #fffaf1;
}

.pgd-custom-select__button:focus-visible,
.pgd-custom-select.is-open .pgd-custom-select__button {
  outline: 0;
  border-color: rgba(0, 128, 128, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.12);
}

.pgd-custom-select__button:disabled {
  cursor: not-allowed;
  opacity: .64;
  background: #f7f3ec;
}

.pgd-custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgd-custom-select__chevron {
  flex: 0 0 auto;
  color: #95620a;
  font-size: 14px;
  line-height: 1;
  transition: transform .16s ease;
}

.pgd-custom-select.is-open .pgd-custom-select__chevron {
  transform: rotate(180deg);
}

.pgd-custom-select__menu {
  position: absolute;
  z-index: 2400;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  display: none;
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(284px, calc(100vh - 140px));
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(184, 124, 12, 0.24);
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 18px 42px rgba(74, 49, 16, 0.16);
}

.pgd-custom-select.is-open .pgd-custom-select__menu {
  display: grid;
  gap: 2px;
}

.pgd-custom-select__option {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text, #20150a);
  font: inherit;
  font-size: 13px;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.pgd-custom-select__option:hover,
.pgd-custom-select__option:focus-visible {
  outline: 0;
  background: rgba(232, 160, 32, 0.10);
  color: #6d4708;
}

.pgd-custom-select__option.is-selected {
  background: rgba(232, 160, 32, 0.16);
  color: #7a5108;
}

.pgd-custom-select__option.is-selected::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  font-size: 13px;
  color: #0a7b68;
}

.pgd-custom-select__option:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.pgd-custom-select__menu::-webkit-scrollbar {
  width: 8px;
}

.pgd-custom-select__menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(184, 124, 12, 0.28);
}

.tahmin-select .pgd-custom-select,
.pgd-workspace .pgd-custom-select,
.pgd-page-workspace .pgd-custom-select {
  --pgd-select-height: 40px;
}

.pgd-tahmin-admin-filters .pgd-custom-select {
  --pgd-select-height: 34px;
  flex: 1 1 156px;
  width: auto;
  min-width: 136px;
  max-width: 230px;
}

.pgd-tahmin-admin-filters .pgd-custom-select__button {
  border-radius: 10px;
  background: var(--surface, #fff);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .pgd-custom-select__menu {
    max-height: min(248px, calc(100vh - 120px));
  }
}
