.gtc-rc-filter-users {
  @import "../../../assets/sass/global.scss";
  .panel-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    height: 680px;
    overflow-y: auto;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 8px;
    padding: 16px;
    z-index: 1000;

    .search-container {
      margin-bottom: 10px;

    }

    .searching-message,
    .empty-message {
      padding: 20px;
      text-align: center;
      color: #666;
    }

    .MuiAvatar-root {
      border: none !important;
      box-shadow: none !important;

      &.selected-avatar {
        outline: 2.5px solid $color-blue-gtc !important;
      }
    }

    .loading-row {
      padding: 10px;
      text-align: center;
      color: #666;
    }

    .user-selected {
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 10px 0;
      background-color: $secondary-color-px !important;
      border-bottom: 2px solid $color-blue-gtc;
      max-height: 300px;
      overflow-y: auto;
    }

    .checkbox-gtc-rc-div {
      .cb-gtc-rc:before {
        color: #4CAF50 !important;
      }
    }
  }

  .avatars-list {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;

    .MuiAvatar-root {
      border: none !important;
      box-shadow: none !important;
    }

    .surplus {
      cursor: pointer;
      font-size: 13.5px;
      background-color: $secondary-color-hover-px;
      border-radius: 50%;
      font-weight: 600;
      color: $text-color-black;
      height: 40px;
      width: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: darken($secondary-color-hover-px, 5%);
      }

      &.surplus-active {
        background-color: var(--color-blue-gtc, $color-blue-gtc);
        color: white;

        &:hover {
          background-color: darken($color-blue-gtc, 5%);
          color: white;
        }
      }
    }
  }

  .filter-users {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .filter-users-container {
    position: relative;
    display: inline-block;
  }

  .user-name-ellipsis {
    display: block;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-name-wrap {
    display: block;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .gtc-rc-list-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 6px 16px;
    box-sizing: border-box;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
    cursor: pointer;
    outline: none;

    &:hover,
    &:focus {
      background: #f5f5f5;
    }
    &:active {
      background: #ececec;
    }
    &:focus {
      outline: 2px solid #1976d2;
      outline-offset: -2px;
    }
  }

  // Personalización del color del Checkbox seleccionado
  .MuiCheckbox-root.Mui-checked {
    color: $color-blue-gtc !important;
  }
}