
.nim-company-selector {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.nim-company-selector-button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  min-height: 30px;
  overflow: hidden;
  border-radius: 6px;
  /* border: 1px solid #fff6;
  background: #306C9A;
  color: #fff; */
  border: 0 solid #cfd6dc;
  background: #afdced; 
  color: #212529;
  /* border: 1px solid #cfd6dc; */
  /* background: #f8f9fa;  */
  line-height: 1.2;
  padding-right: 4px;
  white-space: nowrap;
}

.nim-company-selector-button:hover,
.nim-company-selector-button:focus {
  background: #eef6fa;
  border-color: #9ccfe3;
}

.nim-company-selector-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.nim-company-selector-caret {
  flex: 0 0 auto;
  margin-left: 8px;
}

.nim-company-selector-menu {
  display: none;
  position: absolute;
  top: 100%;
  z-index: 1000;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 16px));
  margin-top: 4px;
  padding: 8px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7dde2;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  color: #212529;
}

.nim-company-selector-menu.w3-show {
  display: block;
}

.nim-company-selector-filter {
  padding: 0 8px 8px;
}

.nim-company-selector-filter input {
  width: 100%;
}

.nim-company-selector-list {
  width: 100%;
  max-height: min(1000px, calc(100vh - 140px));
  overflow: auto;
}

.nim-company-selector-item {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 34px;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 6px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.nim-company-selector-item:hover,
.nim-company-selector-item:focus {
  background: #eef6fa;
  color: inherit;
  text-decoration: none;
}

.nim-company-selector-item-icon {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 0;
}

.nim-company-selector-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.company-selector-filter-active {
  background: #fff1cc;
}

a.company-selector-filter-selected {
  background: #DCF1F4;
}

@media (max-width: 575.98px) {
  .nim-company-selector {
    width: 100%;
  }

  .nim-company-selector-button {
    width: 100% !important;
  }

  .nim-company-selector-menu {
    position: fixed;
    left: 8px !important;
    right: 8px !important;
    top: 54px;
    width: auto !important;
    max-width: none;
  }

  .nim-company-selector-filter input {
    font-size: 16px;
  }

  .nim-company-selector-list {
    max-height: calc(100vh - 140px);
  }
}
