.nrmt-bi-helper__window {
  width: min(760px, 94vw) !important;
  height: min(600px, 90vh) !important;
}

.nrmt-bi-helper-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #643c3c;
  background: #291d1d;
}

.nrmt-bi-helper-status.is-on {
  border-color: #477550;
  background: #1d2c20;
}

.nrmt-bi-helper-status > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nrmt-bi-helper-status > div small {
  color: #8f9690;
  font-size: 7px;
  letter-spacing: .12em;
}

.nrmt-bi-helper-status > div strong {
  color: #df7777;
  font-size: 10px;
}

.nrmt-bi-helper-status.is-on > div strong {
  color: #77d484;
}

.nrmt-bi-helper-status .nrmt-bi-helper-option {
  min-width: 245px;
  margin: 0;
  padding: 7px 9px;
  background: #131716;
}

.nrmt-bi-helper-intro {
  margin: -6px 0 12px;
  color: #aeb4af;
  font-size: 9px;
}

.nrmt-bi-helper-threshold {
  justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid #414746;
  background: #171b1a;
}

.nrmt-bi-helper-threshold span {
  margin-right: auto;
  color: #aeb4af;
  font-size: 8px;
}

.nrmt-bi-helper-threshold input {
  width: 64px;
  color: #f4c54f;
  font-weight: 700;
  text-align: center;
}

.nrmt-bi-helper-threshold b {
  color: #d7aa3d;
}

.nrmt-bi-helper-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.nrmt-bi-helper-item {
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #3e4443;
  background: #171b1a;
  color: #ddd;
  text-align: left;
  cursor: pointer;
}

.nrmt-bi-helper-item:hover {
  border-color: #a57a24;
  background: #202522;
}

.nrmt-bi-helper-item.is-selected {
  border-color: #d0a22e;
  background: #29271b;
  box-shadow: inset 3px 0 #e2b432;
}

.nrmt-bi-helper-item.is-empty {
  opacity: .58;
}

.nrmt-bi-helper-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.nrmt-bi-helper-item span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nrmt-bi-helper-item strong {
  overflow: hidden;
  color: #eee;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nrmt-bi-helper-item small {
  color: #75cf82;
  font-size: 8px;
}

.nrmt-bi-helper-item > b {
  align-self: start;
  color: #f0c64d;
  font-size: 9px;
}

.nrmt-bi-helper-item em {
  position: absolute;
  right: 7px;
  bottom: 5px;
  color: #777;
  font-size: 6px;
  font-style: normal;
}

.nrmt-bi-helper-item.is-selected em {
  color: #e8bc43;
}

.nrmt-bi-helper-empty {
  padding: 18px;
  border: 1px dashed #4a4f4d;
  color: #898f8a;
  text-align: center;
  font-size: 9px;
}

.nrmt-bi-autosell-ready {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #4a4f4d;
  background: #171b1a;
}

.nrmt-bi-autosell-ready span {
  color: #999f9b;
  font-size: 8px;
}

.nrmt-bi-autosell-ready strong {
  color: #efc54d;
  font-size: 10px;
  text-align: right;
}

@media (max-width: 680px) {
  .nrmt-bi-helper__window {
    width: 96vw !important;
    height: 92vh !important;
  }

  .nrmt-bi-helper-status {
    align-items: stretch;
    flex-direction: column;
  }

  .nrmt-bi-helper-status .nrmt-bi-helper-option {
    min-width: 0;
  }

  .nrmt-bi-helper-items {
    grid-template-columns: 1fr;
  }
}
