.container {
  max-width: 1170px;
  margin: auto;
}

img {
  max-width: 100%;
}

.inbox_people {
  background: #f8f8f8 none repeat scroll 0 0;
  float: left;
  overflow: hidden;
  /* width: 40%; */
  border-right: 1px solid #c4c4c4;
  padding: 0;
}

.inbox_msg {
  /* border: 1px solid #c4c4c4; */
  clear: both;
  overflow: hidden;
}

.top_spac {
  margin: 20px 0 0;
}

.recent_heading {
  float: left;
  width: 40%;
}

.srch_bar {
  display: inline-block;
  text-align: right;
  width: 100%;
}

.headind_srch {
  padding: 10px 20px 10px 20px;
  overflow: hidden;
  border-bottom: 1px solid #c4c4c4;
}

.recent_heading h4 {
  color: #05728f;
  font-size: 21px;
  margin: auto;
}

.srch_bar input {
  border: 1px solid #cdcdcd;
  border-width: 0 0 1px 0;
  width: 80%;
  padding: 2px 0 4px 6px;
  background: none;
}

.srch_bar .input-group-addon button {
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
  padding: 0;
  color: #707070;
  font-size: 18px;
}

.srch_bar .input-group-addon {
  margin: 0 0 0 -27px;
}

.chat_ib h5 {
  font-size: 15px;
  color: #464646;
  margin: 0 0 8px 0;
}

.chat_ib h5 span {
  font-size: 13px;
  float: right;
}

.chat_ib p {
  font-size: 14px;
  color: #989898;
  margin: auto
}

.chat_img {
  float: left;
  width: 11%;
}

.chat_ib {
  float: left;
  padding: 0 15px 0 15px;
  width: 100%;
}

.chat_people {
  overflow: hidden;
  clear: both;
}

.chat_list {
  border-bottom: 1px solid #c4c4c4;
  margin: 0;
  padding-right: 0px;
  padding-left: 10px;
  padding-top: 15px;
  padding-bottom: 10px;
  background-color: white;
}

.inbox_chat {
  height: calc(100vh - 7rem);
  overflow-y: scroll;
}

.active_chat {
  background: #ebebeb;
}

.incoming_msg_img {
  display: inline-block;
  width: 6%;
}

.received_msg {
  display: inline-block;
  padding: 10px 10px 10px 10px;
  vertical-align: top;
  width: 92%;
}

.received_withd_msg p {
  background: #ebebeb none repeat scroll 0 0;
  border-radius: 3px;
  color: #646464;
  font-size: 14px;
  margin: 0;
  margin-top: 5px;
  padding: 5px 10px 5px 12px;
  width: 100%;
  word-break: keep-all;
  word-wrap: break-word;
}

 /* этот стиль для чата водителей */

 .received_withd_msg .multiLineMessage {
  background: #ebebeb none repeat scroll 0 0;
    border-radius: 3px;
    color: #646464;
    font-size: 12px;
    margin: 0;
    margin-top: 10px;
    padding: 5px 10px 20px 12px;
    width: 100%;
    word-break: keep-all;
    word-wrap: break-word;
}

.received_withd_msg .multiLineMessage .driverMessage {
  padding-left: 1em;
  font-size: 14px;
  font-style: italic;
}

.time_date {
  color: #747474;
  display: block;
  font-size: 10px;
  margin: 0 0 0;
}

.received_withd_msg {
  width: 57%;
}

.mesgs {
  float: left;
  padding: 0;
  padding-right: 1rem;
  /* width: 60%; */
}

.sent_msg p {
  background: #047bf8 none repeat scroll 0 0;
  border-radius: 3px;
  font-size: 14px;
  margin: 0;
  color: #fff;
  padding: 5px 10px 5px 12px;
  width: 100%;
}

.outgoing_msg {
  overflow: hidden;
  margin: 0px 10px 5px 10px;
}

.sent_msg {
  float: right;
  width: 46%;
}

.input_msg_write textarea {
  padding-left: 1rem;  
  padding-top: 0.5rem;
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
  color: #4c4c4c;
  font-size: 15px;
  min-height: 6em;
  width: 85%;
  overflow:hidden;
  resize: vertical; 
}

.type_msg {
  border-top: 1px solid #c4c4c4;
  position: relative;
}

.msg_send_btn {
  margin-right: 0.8rem;
  height: 33px;
  position: absolute;
  right: -20px;
  top: 0px;
  color: #3E4B5B;
  cursor: pointer;
  font-size: 17px;
}

.msg_send_btn span>i {
  margin-right: 0.8rem;
  color: #3E4B5B;
  /* background: #05728f none repeat scroll 0 0; */
  border: medium none;
  border-radius: 50%;
  /* color: #fff; */
  cursor: pointer;
  font-size: 17px;
  height: 33px;
  position: absolute;
  right: 0;
  width: 33px;
}

/* .messaging {
  margin-top: -2rem;
  margin-right: -2rem;
  margin-bottom: -1.5rem;
  margin-left: -2rem;
} */

@media (min-width: 1651px) {
  .messaging {
    margin-top: -2rem;
    margin-right: -2rem;
    margin-bottom: -1.5rem;
    margin-left: -2rem;
  }
}

@media (max-width: 1650px) {
  .messaging {
    margin-top: -2rem;
    margin-right: -2rem;
    margin-bottom: -1.5rem;
    margin-left: -2rem;
  }
}

@media (max-width: 1250px) and (min-width: 1100px) {
  .messaging {
    margin-top: -2rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    margin-left: -1.5rem;
  }
}

@media (max-width: 1099px) and (min-width: 1025px) {
  .messaging {
    margin-top: -2rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    margin-left: -1.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .messaging {
    margin-top: -2rem;
    margin-right: -1rem;
    margin-bottom: -1.5rem;
    margin-left: -1rem;
  }
}

@media (max-width: 767px) {
  .messaging {
    margin-top: -1rem;
    margin-right: -15px;
    margin-bottom: -1.5rem;
    margin-left: -15px;
  }
}

.msg_history {
  height: calc(100vh - 17rem);
  overflow-y: auto;  
  padding-bottom: 1rem;
}

.msg_history_driver_chat {
  height: calc(100vh - 8rem);
  overflow-y: auto;
}

.msg_head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  margin-right: -1rem;
}

.incoming_author{
  margin-left:0em;
}

.btn-file input[type=file] {
  position: absolute;
  left: -18px;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
  cursor: pointer;
}

/* Стиль для загрузчика файлов, start */

.fileUpload {
  position: relative;
  overflow: hidden;
}


.fileUpload input.upload {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
}

/* Стили для загрузчика файлов, fiish */

/* Стили для троеточия у длинного контента в таблицах и для отдельного элемента */

table {
  table-layout: fixed;
}

td {
  white-space: nowrap;
  overflow: hidden;
  /* <- this does seem to be required */
  text-overflow: ellipsis;
}

.cutTheText {
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  /* width: calc(100%-100px); */
}

/* Стили для троеточия у длинного контента в таблицах end */

.received_msg:focus{
  outline: none;
}

.sent_msg:focus{
  outline: none;
}

#answerReportInput{
  resize: none;
}

/* В окне чата убираем синюю рамку для полей ответа и фильтра */
#answerReportInput:focus{
  outline: none;
}

#filterInput:focus{
  outline: none;
}

/* Для модалки тарифов */
.tab-pane{
  padding-top: 1rem;
}

a.dropdown-toggle{
  border-bottom:0px;
}

legend{
  margin-top:1.5rem;
  margin-bottom:1rem;
}


#roleSelect > option:checked{
  color:white;
  background-color: #047bf8;

}


/* Для карты */

.leaflet-marker-icon {
  background-image: url('/css/images/marker-icon.png');
}
