@import "client/common";

div[data-react-class="ChatWindow"] {
  height: 100%;
}

.ChatWindow {

  .chat-message-purpose {
    display:inline;
    color: $ColorTextTypical;
    margin: 0 10px 0 0;
    font-size:11px;
  }

  .chat-message-text {
    margin-top:8px;
    display:block;
  }

  .chat-message-timestamp {
    display:inline-block;
  }

  .additional {
    margin-left:0px;
    display: block;
    margin-top:4px;
  }

  &.ChatDialog {
    .active-tab {
      top: 0;
      margin-top: 0;
    }

    .make-big {
      display:none;
    }
    #new-chat-message {
      height: 40px;
      width: 100%;
    }

    .active-tab {
      padding-bottom:105px;
    }
    .chat-list-scroller {
      margin:0;
    }
    .chat-sender {
      margin:0;
      left:0;
      padding:0;
    }
    .chat-message {
      margin:0 0 15px 0;

      .chat-message-sender {
        &:after {
          content: '';
        }
      }
    }

    .chat-message-form {
      text-align:center;
      padding: 0 25px;
    }
    .btn-close-chat {
      float:right;
      margin: 8px 15px 0 0;
      width:50px;
    }

    .email-notice {
      color:$ColorTextTypical;
      font-size:11px;
      float:right;
      margin: 7px 10px 0 0;
    }

    .btn-send-chat-message {
      margin: 8px -4px 0 0;
      width:50px;
    }
  }
  height: 100%;

  .active-tab {
    height: 100%;
    position: relative;
    top: -24px;
    box-sizing: border-box;
    padding-bottom: 54px;
    margin-top: 24px;
  }

  .make-big {
    position: absolute;
    top: 2px;
    left: 5px;
    text-decoration: underline;
  }
  .chat-tabs {
    text-align: center;
  }
  .chat-tab {

    margin: 0 2px;
    display: inline-block;

    padding: 2px;
    color: #ED3618;
    border-style: solid;
    border-color: #09525b;

    a {
      //color:white;
      text-decoration: underline;
      color: #aaa;
      &:hover {
        color: #fc0;
      }
    }

    &.active {
      a {
        text-decoration: none;
        color: white;
      }
      background-color: transparent;
      border-color: #09525b;
      border-width: 0;
    }
  }

  .chat-list-scroller {
    position: relative;
    display: block;
    overflow: auto;
    margin: 0px 15px;
    /*height: 210px;*/
    height: 98%;
  }
  .chart-text-section {

  }

  .btn-send-chat-message {
    float: right;
    margin: 3px 0 0;
  }

  #new-chat-message {
    width: calc(100% - 70px);
    height: 20px;
  }

  .chat-status {
    line-height: 20px;
    text-align: center;
    padding: 10px;
  }

  .chat-message {
    margin: 5px 0;
    font-size:12px;

    .chat-message-sender {
      font-weight: bold;
      margin-right: 6px;
      color: #ED3618;

      &:after {
        content: ':'
      }
    }

    .chat-message-text {
      line-height: 15px;
      white-space: pre-line;
      color: #D5E2E4;
    }

    .chat-message-timestamp {
      margin-top: 4px;
      color: #AAA;
      margin-left:4px;
    }
  }

  .chat-sender {
    width: 100%;
    position: absolute;
    bottom: 7px;
    padding: 0px 7px;
    /* height: 20%; */
    /* min-height: 69px; */
    box-sizing: border-box;
  }

  .arrow-down {
    float:none;
    margin-left:5px;
    margin-top:0;
    margin-right:0;
    border-top: 4px solid #fc0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display:inline-block;
  }
  .arrow-up {
    float:none;
    margin-right:0;
    margin-left:5px;
    margin-bottom:2px;
    border-bottom: 4px solid #fc0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display:inline-block;
  }
  .lesson-session-actions-btn {
    margin-bottom:5px;
  }
  #attach-files-chat-dialog {
    font-size:12px;
    float:left;
    margin-top:6px;
  }
}
