.cp {
  position: relative;
  display: inline-block;
  font: 14px "PT Sans", sans-serif;
}

.pill.select {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #BCC7DD;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  min-width: 100px;
  width: auto;

  &.selected {
    background: #FEF3C1;
    border-color: #FFC800;

    .input { background: transparent; }
  }

  .label-slot { 
    flex: 1 1 auto; 
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
  }

  .count-slot {
    flex: 0 0 45px;
    display: inline-flex;
    justify-content: end;
  }

  .count-spacer { 
    display: inline-block; 
    width: 44px; 
    height: 18px; 
  }

    input {
    height: 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: auto;
    min-width: 6ch;
    max-width: 10ch;
    flex: 0 0 auto;
  }

  .full-width-input {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .full-width-text {
    width: 100%;
  }

  .text { 
    white-space: nowrap; 
  }

  .count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    padding: 0 8px;
    background: #FFA600;
    color: #fff;
    border-radius: 8px;

    .chip-x {
      display: inline-block;
      width: 12px; 
      height: 12px;
      line-height: 12px; 
      text-align: center;
      border-radius: 50%;
      background: white;
      cursor: pointer;
      color: #FFA600;

      &:hover { background: rgba(255,255,255,0.95); }
    }
  }
}

.dropdown.client { 
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  padding: 6px; 
  width: 280px; 
  overscroll-behavior: contain;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1000;

  &:has(> .no-results) {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .options {
    max-height: 320px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .item {
    padding: 6px 8px;
    margin: 2px 0px;
    border-radius: 8px; 
    text-justify: center;
    cursor: pointer; 
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;

    &.selected { 
      background: #F5F5F5; 
      font-weight: 600; 
      border-radius: 8px; 
    }

    &:hover { 
      background: #F5F5F5; 
    }
  }

  .no-results {
    display: block;
    min-height: 0;
    padding: 8px 10px;
    line-height: 18px;
    white-space: nowrap;
    color: #8D92A5;
    background: transparent;
  }

  .count {
    color: #666;
    margin-left: 4px;
    font-size: 12px;
  }
}
