@import url('../CloudTheme.css');

.button {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 8px;
  border-radius: 0px 8px 8px 0px;
  background-color: $black-black5;

  &:hover {
    cursor: pointer;
  }

  &.disabled {
    padding: 8px 12px;
    cursor: not-allowed;

    .text {
      min-width: fit-content;
      z-index: 10;
      color: $black-black2;
    }
  }

  &.parentInputDisabled {
    .text {
      color: $black-black3;
    }
  }

  .text {
    text-align: right;
    min-width: 54px;
  }

  .icon {
    margin-left: 4px;
  }
}

.smallButton {
  padding: 4px;
}

.input {
  div:global(.MuiInputBase-root) {
    padding-right: 0;
  }
}

.inputFocus {
  fieldset:global(.MuiOutlinedInput-notchedOutline) {
    border-width: 1.5px;
    border-color: $blue-primary;
  }
}

div.paper {
  box-shadow: 0px 4px 10px rgba(29, 41, 57, 0.08);
}

.menu {
  margin-top: 4px;
  border-radius: 4px;

  .menuItem {
    padding: 6px 16px;

    &:global(.MuiMenuItem-root) {
      min-width: 126px;

      &:hover {
        background-color: $blue-blue2 !important;
      }
    }
  }

  .selected {
    color: $blue-primary;
    background-color: #fff !important;
  }
}

.menuList {
  padding: 4px 0;
}

.inputWrapper:focus-within,
.inputWrapper:hover,
.inputWrapper.error {
  .floatingLabel {
    opacity: 1;
  }
}

div.floatingLabel {
  position: absolute;
  top: -5px;
  left: 10px;
  padding: 0 2px;
  color: $blue-blue1;
  background-color: #fff;
  font-size: 12px;
  height: 10px;
  display: flex;
  align-items: center;
  z-index: 1;
  max-width: 130px;
  opacity: 0;
  transition: all 0.2s;

  span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
