/* Messages */

.message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 12px;
  padding: 8px;
  position: relative;
  margin: 8px 0px 0px 0px;
  max-width: 75%;
  word-wrap: break-word;
  /* z-index: -1; */
  min-width: 50%;
  box-shadow: rgba(0,0,0,.1) 0 4px 1px -5px, rgba(0,0,0,.14) 0 2px 4px 0, rgba(0,0,0,.12) 0 1px 5px 0;
}

.message:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.metadata {
  display: inline-block;
  float: right;
  padding: 0 0 0 7px;
  position: relative;
  bottom: -5px;
}

.metadata .time {
  color: rgba(0, 0, 0, .45);
  font-size: 11px;
  display: inline-block;
}

.metadata .tick {
  display: inline-block;
  margin-left: 2px;
  position: relative;
  top: 4px;
  height: 16px;
  width: 16px;
}

.metadata .tick svg {
  position: absolute;
  transition: .5s ease-in-out;
}

.metadata .tick svg:first-child {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(180deg);
          transform: perspective(800px) rotateY(180deg);
}

.metadata .tick svg:last-child {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(0deg);
          transform: perspective(800px) rotateY(0deg);
}

.metadata .tick-animation svg:first-child {
  -webkit-transform: perspective(800px) rotateY(0);
          transform: perspective(800px) rotateY(0);
}

.metadata .tick-animation svg:last-child {
  -webkit-transform: perspective(800px) rotateY(-179.9deg);
          transform: perspective(800px) rotateY(-179.9deg);
}

.message:first-child {
  margin: 10px 0px 0px 0px;
}

.message.received {
  background: #fff;
  border-radius: 0px 5px 5px 5px;
  float: left;
  left: 30px;
}

.message.received .metadata {
  padding: 0 0 0 16px;
}

.message.received:after {
  border-width: 0px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
  top: 0;
  left: -10px;
}

.message.sent {
  background: #e1ffc7;
  border-radius: 10px 0px 10px 10px;
  float: right;
  right: 30px;
}

.message.sent:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  top: 0;
  right: -10px;
}


.message .avatar img {
  width: 100%;
  height: auto;
}

.message .avatar {
  position: absolute;
  z-index: 1;
  top: -10px;
  /*  border-radius: 30px; */
  width: 30px;
  height: 30px;
  /*  overflow: hidden; */
  margin: 0;
  padding: 0;
  /* border: 2px solid rgba(255, 255, 255, 0.5); */
}

.message.received .avatar {
  left: -35px;
}
.message.sent .avatar {
  right: -35px;
}

.x-grid-item-selected .message {
   box-shadow: #448 0 4px 1px -5px, #448 0 2px 4px 0, #448 0 1px 5px 0;
}

.grid_forum .x-grid-item-selected .x-grid-row,
.x-grid-item-selected .x-grid-cell-special {
    background-color: none !important;
    background-image: none !important;
    background: #efe7dd !important;
    color: #000;
}


.grid_forum .x-grid-item-over {
    color: #000;
    background-color: none !important;
    background-image: none !important;
    background: #efe7dd !important;
}
.grid_forum .x-grid-item {
    color: #000;
    background-color: none !important;
    background-image: none !important;
    background: #efe7dd !important;
    padding: 0px 0px 5px 0px;
}


.grid_forum .x-panel-body-default {
    background: #fff7ed !important;
}

.grid_forum .x-grid-group-hd {
    cursor:auto;
    background: #efe7dd !important;
}

.grid_forum .x-grid-group-hd {
    border-width: 0 0 2px 0;
    border-style: solid;
    padding: 10px 4px 4px 4px;
    background: white;
    cursor: auto;
    border-color: #efe7dd;
    text-align: center;
}

.x-grid-group-title {
    color: #068;
    font: bold 13px  verdana;
}

.x-grid-group-title b {
    color: #800;
    font: bold 13px  verdana;
}