.react-grid-item {
  position: inherit !important;
  transform: inherit !important;
  width: 100% !important;
  height: fit-content !important;
  padding-bottom: 16px !important;
  .grid-item {
    margin-bottom: 0px !important;
  }
}
.fb_dropdown_main {
  position: relative;
  width: 100%;
}

.fb_dropdown_label {
  width: 100%;
  height: 40px;
  border: 1px solid var(--_gray-300);
  border-radius: 6px;
  background: var(--_base-white);
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border 0.2s ease;

  &:focus,
  &:focus-within {
    border-color: var(--_primary-300);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
  }

  &.disabled {
    cursor: not-allowed;
    background: var(--_gray-100);
    color: var(--_gray-400);
  }

  .fb_dropdown_text {
    color: var(--_gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
  }

  .fb_dropdown_icon {
    display: flex;
    transition: transform 300ms ease;

    svg {
      width: 16px;
      height: 16px;
    }

    &.open {
      transform: rotate(180deg);
    }
  }
}

.fb_dropdown_panel {
  position: absolute;
  width: 100%;
  background-color: var(--_base-white);
  border: 1px solid var(--_gray-300);
  border-radius: 6px;
  margin-top: 4px;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  &.drop-up {
    bottom: 44px;
    top: auto;
    margin-top: 0;
    margin-bottom: 4px;
  }

  &.drop-down {
    top: 100%;
  }

  ul {
    list-style: none;
    padding: 4px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;

    li {
      padding: 0;
    }

    .dropdown_option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      font-size: 14px;
      color: var(--_gray-700);
      cursor: pointer;
      transition: background 0.2s;
      border-radius: 4px;

      input[type="checkbox"] {
        margin: 0;
        pointer-events: none;
      }

      &:hover {
        background-color: var(--_primary-50);
        color: var(--_primary-500);
      }

      &.selected {
        background-color: var(--_primary-25);
        color: var(--_primary-700);
        font-weight: 500;
      }
    }
  }
}

.empty-options {
  padding: 10px 12px;
  color: var(--_gray-500);
  font-size: 14px;
  text-align: center;
}
