.cmdb {
  .items {
    .item {
      border-bottom: 1px solid #E4E4E4;
      padding: 14px;

      &.highlighted {
        background: #E7F1FD;
      }

      &:first-child.item-add {
        border: none;
        margin-top: 0;
      }

      &-add {
        margin-top: 25px;
        border: none;
        border-top: 1px solid #E4E4E4;
        padding-bottom: 0;
      }

      &-last{
        border: none;
      }

      .cancel {
        color: @linkColor;
      }
      .muted {
        font-weight: 500;
        font-size: 10px;
        line-height: 20px;
      }

      form {
        label {
          margin-bottom: 0;
          font-weight: 500;
          font-size: 14px;
          &.active {
            color: @blueDark;
          }
        }
        > div {
          input {
            outline: none;
            width: 90%;
            border: none;
            height: 26px;
            margin: 0;
            border-bottom: 2px solid #E0E0E0;
            font-weight: 500;
            font-size: 14px;
            &:focus {
              outline: none !important;
              border: none !important;;
              border-bottom: 2px solid @blueDark !important;
              box-shadow: none;
              &.ng-invalid {
                border-bottom: 2px solid #D74936 !important;
              }
            }
          }
          select {
            outline: 0;
            border: 0;
            margin: 0 10px 0 0;
            background: none;
            width: 124px;
            border-bottom: 2px solid #E0E0E0;
            font-weight: 500;
            color: @textColor;
          }
          textarea {
            border: 2px solid @blueDark !important;
            border-radius: 4px;
            width: 95%;
          }
        }
        .validation-error {
          margin-top: 8px;
          font-weight: 500;
          font-size: 10px;
          line-height: 12px;
          color: #D74936;
        }
        *::placeholder {
          font-weight: 500;
          font-size: 14px;
          color: #A2A39E;
        }
      }


      &-tags {
        display: flex;
        width: 50%;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        flex-shrink: 0;
        margin-right: 5px;
        span {
          max-width: 300px;
          word-break: break-all;
          border: 1px solid #DEDEDE;
          border-radius: 10px;
          margin-top: 5px;
          margin-right: 8px;
          font-weight: 500;
          font-size: 13px;
          line-height: 10px;
          color: @grayTextColor;
          padding: 4px 12px;
        }
        min-height: 50px;
      }

      &-description {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: @grayTextColor;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 40px;
        &:hover {
            text-overflow: clip;
            white-space: normal;
        }
      }

      &-name, &-value {
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
      }
      &-name {
        width: 50%;
        margin-right: 10px;
        display: inline-block;
        span {
          overflow: hidden;
          text-overflow: ellipsis;
          display: block;
        }
      }
      &-actions {
        > button {
          line-height: 10px;
          font-size: 20px;
          vertical-align: text-top;
          color: @MP_gray_base;
        }

        &-dropdown {
          display: none;
          position: absolute;
          top: 15px;
          right: 0;
          border: 0.5px solid rgba(173, 186, 205, 0.5);
          box-sizing: border-box;
          box-shadow: 0px 5px 8px 2px rgba(173, 186, 205, 0.35);
          border-radius: 0px 0px 4px 4px;
          background: white;
          z-index: 2;
          width: 80px;
          padding: 4px;
          button {
            display: block;
            line-height: 20px;
            font-weight: 500;
            font-size: 12px;
            color: @black;
            width: 100%;
            text-align: left;
            i {
              color: @black;
              margin-right: 7px;
            }
            &:hover {
              background: #F1F1F1;
              border-radius: 4px;
            }
          }
        }
        &.opened {
          .item-actions-dropdown {
            display: block;
          }
        }
      }
    }
  }
  &-pagination {
    display: flex;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: @inactiveTextColor;
    width: 75px;
    justify-content: space-between;
    align-items: center;

    input {
      border: 0.5px solid #E8E8E8;
      box-sizing: border-box;
      border-radius: 2px;
      width: 20px;
      font-size: 13px;
      font-weight: 500;
      margin: 0;
      color: @inactiveTextColor;
      height: 20px;
      line-height: 10px;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      /* display: none; <- Crashes Chrome on hover */
      -webkit-appearance: none;
      margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
    }

    input[type=number] {
      -moz-appearance:textfield; /* Firefox */
    }

    button {
      color: @inactiveTextColor !important;
      font-weight: 500;
      font-size: 13px;
    }
  }
  .disabled {
    * {
      color: @darkmodeInactiveTextColor !important;
    }
  }
  .tooltip-box {
    position: relative;
    display: inline-block;
    overflow: visible;
    max-width: 100%;
    .tooltip-text {
      display:block;
      position:fixed;
      overflow:hidden;
      visibility: hidden;
      width: fit-content;
      background-color: #f7f7f7;
      border: 1px solid darken(#f7f7f7, 5%);
      box-shadow: 0 2.2rem 3.2rem rgba(11, 19, 42, 0.1);;
      color: #000000;
      border-radius: 4px;
      padding: 10px;
      z-index: 1;
      font-size: 12px;
      max-width: 300px;
    }
    &:hover {
      .tooltip-text {
        visibility: visible;
      }
    }
  }
  .suggestions {
    flex-direction: column;
    display: flex;
    position: relative;
    align-items: flex-end;
    > span {
      margin: 10px 0px;
      font-weight: 500;
      font-size: 14px;
    }

    .btn-gray {
      background: none;
    }
    .rotated {
      transform: rotate(180deg);
    }

    .link {
      cursor: pointer;
      img {
        margin-left: 5px;
      }
    }

  .dropdown-selector {
    background: #FFFFFF;
    border: 0.5px solid rgba(173, 186, 205, 0.5);
    box-sizing: border-box;
    box-shadow: 0px 5px 8px 2px rgba(173, 186, 205, 0.35);
    border-radius: 4px;
    width: 265px;
    height: 255px;
    padding: 16px 10px;
    position: absolute;
    z-index: 1;
    top: 40px;

    &_body {
      max-height: 200px;
      height: auto;
      overflow-y: auto;
      border-bottom: .5px solid #EFEFEF;
    }

    &_footer {
      position: absolute;
      background: #FFFFFF;
      bottom: 6px;
      right: 15px;
    }

    &_item {
      margin: 5px 0;
      font-weight: 500;
      font-size: 13px;
      line-height: 15px;
      padding: 5px 20px;
      cursor: pointer;
      display: block;
      max-width: 193px;
      border-radius: 4px;


      &:hover {
        background: #F1F1F1;
      }

      &.selected {
        position: relative;
        background: #E7F1FD;
        &:before {
          content: "";
          background-image: url(/images/arrow-down.svg);
          width: 12px;
          height: 9px;
          display: inline-block;
          position: absolute;
          left: 4px;
          top: 9px;
        }
      }

      &.disabled {
        color: #C4C4C4;
        &:hover {
          background: none;
          cursor: auto;
        }
      }
    }

    .add-suggestion {
      width: 110px;
      height: 24px;
      line-height: 7px;
    }
  }
    &:hover {
      .dropdown-selector {
        visibility: visible;
      }
    }
  }
  .card {
    border: 1px solid #E4E4E4;
    border-radius: 2px;
    &-body {
      padding: 0;
    }
    &-header {
      background: #FAFAFA;
      color: @grayTextColor;
      border-bottom: 1px solid #E4E4E4;
    }
    &-footer {
      .btn-transparent {
        color: @CFE_blue;
        font-weight: 500;
        font-size: 14px;
      }
    }
  }
  input, textarea, select, button {
    font-family: 'Red Hat Text';
  }
  .cmdb-text{
    word-break: break-all;
    &-container{
      max-width: 50%;
    }
  }
}
