body {
    padding: 0px;
    margin: 0px;
}

.container {
    width: 100%;
    height: 100vh;
}

.main-content {
    padding-bottom: 0px!important;
}

.home .navbar-bg {
    background: black;
}

.text-white {
    color: white;
}

.home-top,
.home-bottom {
    width: 100%;
    float: left;
    height: 50vh;
}

.home-top {
    background: black;
    position: relative;
}

.home-bottom {
    background: white;
    box-sizing: border-box;
    overflow-y: auto;
}

.home-bottom .list {
    margin: 0px;
}

#user-list,
#view-chat {
    padding: 4%;
    padding-top: 60px;
    overflow-y: scroll;
}

#main-stream {
    width: 100%;
    height: 50vh;
}

.item-media {
    width: 70px;
    padding: 0px!important;
    height: 40px;
    margin: 10px 0px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("../img/video.svg");
}

.overlay {
    width: 100%;
    height: 50vh;
    background: transparent;
    position: absolute;
    top: 0;
    display: none;
    text-align: center;
}

.action-btns {
    width: 250px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.action-btn {
    float: left;
    width: 40px;
    cursor: pointer;
    box-sizing: border-box;
    padding: 7px;
    object-fit: contain;
    border-radius: 50px;
    border: 1px solid white;
    height: 40px;
}

.action-btn img {
    width: 100%;
}
.action-btn i {
    color: white;
}

.call-completed {
    width: 250px;
    position: absolute;
    height: 300px;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}

.call-completed img {
    width: 250px;
}

.call-completed p {
    text-align: center;
    font-size: 16px;
}

.remote-user {
    width: 48%;
    float: left;
    height: 130px;
    border: 1px solid lightgrey;
    margin-bottom: 4%;
    box-sizing: border-box;
}

.remote-media {
    width: 100%;
    padding: 0px!important;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    background-image: url("../img/video.svg");
}

.remote-user p {
    margin: 0px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    background: #f1f1f1;
    padding-left: 5px;
    padding-right: 5px;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 30px;
    height: 28px;
}

.remote-user:nth-child(odd) {
    margin-right: 4%;
}


/* chat */

.home .messages-content {
    padding-bottom: 50px!important;
}

.home .messagebar {
    bottom: 0px!important;
    position: fixed!important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
  }
  .modal-content {
    background-color:white;
    padding: 25px;
    padding-top: 10px;
    max-width: 800px;
    position: absolute;
    top:0;left:0;right:0;bottom: 0;
    height: 500px;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
  }
  .modal-title {
     display: flex;
     justify-content: space-between;
     height: 55px;
     align-items: center;
     border-bottom: 1px solid lightgray;
  }
  .modal-title p{
    margin: 0;
    padding: 0;
    font-size: 22px;
  }
  .close {
    color: #0000009e;
  }
  .close:hover,
  .close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
  }
  .modal-list {
      width: 100%;
      overflow-y: auto;
      height: 440px;
  }
  .modal-list-item {
      padding:10px;
      padding-bottom: 15px;
      border-bottom: 1px solid lightgray;
  }
  .modal-list-item .name {
    font-size: 18px;
    font-weight: bold;
  }
  .modal-list-item .device {
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: normal;
  }
  .modal-list-item table {
      width: 100%;
      border-collapse: collapse; 
      margin-top: 5px;
      border: 1px solid lightgray;  
  }
  .modal-list-item table tr {
    width: 100%;
    text-align: left;
    /* border-bottom: 1px solid lightgray; */
    height: 30px;
  }  
  .modal-list-item table th {
    font-weight: 500;
    color: black;
    border-right: 1px solid lightgray;
    padding-left: 10px;
  }  
  .modal-list-item table td {
    border-right: 1px solid lightgray;
    padding-left: 10px;
    line-height: 30px;
    padding-bottom: 10px;
  }  
  .modal-list-item table td .caption {
    display: none;
  }  
.modal-list-item table td div{
    display: flex;
    align-items: center;
}  
.circle{
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 10px;
    background: green;
}  
.circle-red {
    background: red;   
}
.circle-orange {
    background: orange;   
}
.circle-grey {
    background: grey;   
}
.circle-lightgreen{
    background: lightgreen;
}
.tool-tip {
    font-size:16px;
}
@media only screen and (max-width: 800px) {
    .modal-content {
        height: 300px;
        padding: 15px;
        width: 80%;        
    }
    .modal-list-item {
        border-bottom: 0px;
    }
    .modal-title {
        height: 35px;
    }
    .modal-title p {
        font-size: 16px;
    }
	table, thead, tbody, th, td, tr { 
        display: block; 
        border:0px;
        height: auto!important;
	}
		
	td { 
		border: none;
		position: relative;
        padding-left: 50%; 
    }
    .modal-list-item {
        padding: 10px 0px;
        border-bottom: 1px solid lightgrey;
    }
    .modal-list-item .name{
        font-size: 16px;
    }
    .modal-list-item .device {
        font-size: 14px;
    }

    .modal-list-item table {
        border: 0px;
    }
    .modal-list-item table td{
        border: 0px;
        padding-left: 0px;
        padding-bottom: 0px;
    }
    .modal-list-item table th{
        border: 0px;
        display: none;
    }
    .modal-list-item table td .caption {
        display: block;
    }  
    .modal-list-item table .thread {
        display: none;
    }  
    .modal-list{
        height: 255px;
    }

}
@media only screen and (min-width: 768px) {
    .home-top,
    .home-bottom {
        float: left;
        height: 100vh;
    }
    .home-top {
        width: calc(100% - 300px);
    }
    .home-bottom {
        width: 300px;
        padding: 0px;
    }
    #user-list,
    #view-chat {
        padding: 10px;
        padding-top: 60px;
    }
    #main-stream {
        width: 100%;
        height: 100vh;
    }
    .remote-user {
        width: 100%;
        height: 190px;
    }
    .remote-media {
        height: 150px;
    }
    .remote-user p {
        font-size: 16px;
        line-height: 40px;
        height: 38px;
    }
    .action-btn {
        width: 56px;
        border: 2px solid white;
        padding: 15px;
        height: 56px;
    }
    .action-btns {
        width: 390px;
        padding-bottom: 50px;
    }
    .home .messagebar {
        width: 300px!important;
        right: 0px!important;
        left: unset!important;
    }
    #troubleshoot{
        display: block;
    }    
    
}