.td-value-input-select {
  grid-template-columns: 28px minmax(48px, 1fr) 28px;
}

.td-value-select-shell {
  position: relative;
  display: flex;
  min-width: 0;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.td-value-combo {
  position: relative;
  width: 100%;
  min-width: 48px;
}

.td-value-combo-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  width: 100%;
  height: 32px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.td-value-combo-main:hover,
.td-value-combo.is-open .td-value-combo-main {
  background: #f7f3f6;
  color: #7f274b;
}

.td-value-combo:focus-within .td-value-combo-main {
  background: #fff;
  box-shadow: 0 0 0 2px #0b84ff;
}

.td-value-select-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  color: #241f20;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  outline: none;
  padding: 0 0 0 6px;
  text-align: right;
}

.td-value-select-unit {
  color: #6f666a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.td-value-select-arrow {
  display: inline-flex;
  width: 18px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #8f2e56;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  padding: 0;
  transform: translateY(-1px);
  transition: opacity .14s ease, color .14s ease;
}

.td-value-input-select:hover .td-value-select-arrow,
.td-value-combo:focus-within .td-value-select-arrow,
.td-value-combo.is-open .td-value-select-arrow {
  opacity: 1;
}

.td-value-option-list {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 4px);
  display: grid;
  width: max-content;
  min-width: 72px;
  max-height: 188px;
  overflow-y: auto;
  border: 1px solid #d9d2ce;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 31, 34, .16);
  padding: 4px;
}

.td-value-combo.is-menu-up .td-value-option-list {
  top: auto;
  bottom: calc(100% + 4px);
}

.td-value-option {
  min-height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #241f20;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0 8px;
  text-align: right;
  white-space: nowrap;
}

.td-value-option:hover,
.td-value-option.is-active {
  background: #f7f3f6;
  color: #8f2e56;
}
