/* Chat Area */
#chats {
  .msgln{
    height: 100%;
    padding: 0px !important;
    color: @white;
  }
  .msgln-odd {
    padding: 20px 0px;
    background: @grayLighter;
    .msg-text{
      margin: 0px 60px 0px 110px;
      word-wrap: break-word;
      font-weight: bold;
    }
    .msg-date{
      color: @grayLight;
      margin-right: 20px;
    }
    .msg-user{
      padding: 0px 10px 0px 45px;
      color: @grayDark;
    }
  }
}

#chats {
  .msRow{
    &:first-child {
      .border-top-radius(3px);
    }
    &:last-child {
      .border-bottom-radius(3px);
    }
  }
}

.msRow {
  @widthOfAvatar: 32px;
  padding: 10px 0;
  &.odd {
    background-color: #f8f8f8;
  }
  /* Layout Row Chat */
  .msContBox {
      float: left;
      width: 100%;
  }
  .msContBox + .msUserAvatar {
      float: left;
      margin-left: -100%;
      width: 68px;
  }
  .msContBox > .inner {
      margin-left: 68px;
      margin-right: 20px;
  }

  /* Style Row Chat */
  .msUserCont {
    + .msUserCont {
      margin-top: 10px;
    }
  }
  .msUserAvatar {
    width: 40px!important;
    padding-left: 12px;
    padding-right: 15px;
    text-align: center;
  }
  .msContBox {
    > .inner {
      margin-right: 20px;
    }
  }
  .msAvatarLink, .msAvatarLink img {
    .border-radius(@widthOfAvatar);
  }
  .msAvatarLink, .msAvatarLink > img {
    width: @widthOfAvatar;
    height: @widthOfAvatar;
  }
  .msAvatarLink {
    background-color: #fff;
    padding: 3px;
    border: 1px solid #b2b1b1;
    display: block;
    #gradient > .vertical(#ffffff, #f1f1f1);
    .box-shadow(0 2px 4px 0 rgba(13, 13, 13, .2));
    > img {
      .box-shadow(0 1px 1px rgba(255,255,255, .1));
    }
  }
  .msLinkInMes {
    font-weight: bold;
  }
  .msTiltleLn {
    margin-top: -5px;
    margin-bottom: 10px;
    .msNameUser {
      font-weight: bold;
      color: @grayLight;
      &:hover {
        color: @linkColor;
      }
    }
  }
  .msAction {
    cursor: pointer;
    visibility: hidden;
    color: @linkColor;
    font-size: 12px;
    a {
      font-size: 12px;
    }
  }
  .msTimePost {
    color: #999;
    font-size: 12px;
    position: absolute;
    right: 0;
    .msg-date {
      white-space: nowrap;
    }
  }
  .msUserMes {
    overflow: hidden;
    .msUserQuote {
      background-color: #f0f0f0;
      .border-radius(3px);
      padding: 10px 15px;
      margin-bottom: 8px;
      .msNameUser {
        color: #333333;
      }
    }
  }
  .msQuoteCont {
    font-style: italic;
    quote {
      border-left: 5px solid #e0e0e0;
      padding-left: 15px;
      display: block;
      margin-bottom: 10px;
    }
  }
  .msRightInfo {
    margin-left: 10px;
    text-align: right;
    position: relative;
    min-width: 100px;
  }
  .msContBox .msUserCont:hover {
    .msAction {
      visibility: visible;
    }
    .msTimePost {
      display: none;
    }
  }
  .msContBox .msUserCont.noEdit,
  .msContBox .msUserCont.noEdit:hover {
    .msAction {
      display: none;
    }
    .msTimePost {
      display: block;
      position: static;
    }
  }
  .msMessagesGroup {
    + .msMessagesGroup {
      margin-top: 20px;
    }
  }
  .msAttachmentBox {
    width: 128px;
    height: 128px;
    position: relative;
    margin-top: 5px;
    > .msAttachFile {
      line-height: 128px;
      vertical-align: middle;
      img {
        max-width: 128px;
        max-height: 128px;
      }
    }
    .msActionAttach {
      height: 100%;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      display: none;
      > .inner {
        position: absolute;
        top: 50%;
        margin-top: -20px;
        left: 0;
        text-align: center;
        width: 100%;
      }
      a {
        color: #fff;
        &:hover {
          font-weight: bold;
          i {
            background-image: url("/eXoResources/skin/images/Icons/uiIconsWhite.png");
          }
        }
      }
    }
    &:hover {
      .msActionAttach {
        background-color: rgba(0, 0, 0, 0.1);
        display: block;
      }
    }
  }
  .fileSize, .msTextGray {
    color: #999;
  }
  .msSaveCall {
    margin-top: 7px;
  }
}

#chats .noContent,
#chats .noMessage{
	background: url('@{imgPath}bg-chat.png') no-repeat center center;
	width: 100%;
	height: 100%;
  position: relative;
  .text {
    color: #808080;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    position: absolute;
    top: 50%;
    .translate(-50%, -50%);
  }
}
.uiSelectbox  {
	background: none;
	border:none;
	display: inline-block;
	.border-radius(0);
	overflow: visible;
		select.selectbox{
			border: 1px solid @borderColor;
	    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.075) inset;
	    height: 28px; 
	    line-height: 20px;
	    padding: 3px 6px;
	    .border-radius(4px);
	     -webkit-appearance: menulist;
		   -moz-appearance:    menulist;
		   appearance:         menulist;
	}
}


