/*------------------------------------------------------------
[Table of contents]

1. Global Styles
2. CSS Utilities
    2.1 Margins & Paddings
    2.2 Width & Height
    2.3 Borders
    2.4 Radius
    2.5 Default Styles
    2.6 Backgrounds
    2.7 Buttons
3. Components
    3.1 Text
    3.2 Backgrounds
    3.3 Buttons
    3.4 Modals
    3.5 Progress Bars
    3.6 Navs & Tabs
    3.7 Forms
    3.8 Tables
    3.9 Dropdowns
    3.10 Panels
    3.11 Icons
4. Layout
    4.1 Page Container
    4.2 Header
    4.3 Right Sidebar
    4.4 Page Sidebar
    4.5 Collapsed Sidebar
    4.6 Search
    4.7 Page Content
    4.8 Page Inner
5. Plugins
    5.1 jsTree
    5.2 Image Crop
6. Pages
    6.1 Todo
    6.2 Error Pages
    6.3 Profile
    6.4 Maps
    6.5 E-mail
    6.6 Login
    6.7 Lock screen
    6.8 Gallery
    6.9 Pricing Tables
    6.10 Charts
    6.11 Dashboard
7. Responsive
8. Documentation

------------------------------------------------------------*/

/*------------------------------------------------------------
[1. Global Styles]
------------------------------------------------------------*/



/* Page Right Sidebar */

.page-right-sidebar {
    width: 230px;
    background: #fff;
    height: 100%;
    min-height: 100%;
    right: -230px;
    /*top: 0;*/
    z-index: 42;
    position: fixed;
    box-shadow: 0 0 9px rgba(191,191,191,0.30);
    -webkit-transition: all .1s;
    -moz-transition: all .1s;
    -o-transition: all .1s;
    transition: all .1s;
    overflow-y:auto;
    top: 50px;
}

.page-right-sidebar.visible {
    right: 0;
}

.page-right-sidebar#chat-right-sidebar {
    -webkit-transition: all .1s;
    -moz-transition: all .1s;
    -o-transition: all .1s;
    transition: all .1s;
    opacity: 0;
}

.page-right-sidebar#chat-right-sidebar.visible {
    opacity: 1;
}
.right-sidebar-top-user {
    background: #fff;
    display: block;
    /*height: 56px;*/
}
.right-sidebar-top {
    background: #fff;
    display: block;
    height: 56px;
}

.page-right-sidebar .right-sidebar-close {
    float: right;
    color: #4F4F4F;
    font-size: 20px;
    padding: 2px 19px;
    height: 56px;
    line-height: 56px;
}

.page-right-sidebar .right-sidebar-close:hover {
    background: #fff;
}

.page-right-sidebar .chat-sidebar-close {
    float: left;
    color: #4F4F4F;
    font-size: 24px;
    padding: 14px 20px;
    height: 56px;
}

.right-sidebar-tabs {
    float: left;
    width: 172px;
    height: 56px;
}

.right-sidebar-tabs li {
    width: 50%;
}

.right-sidebar-tabs a {
    height: 56px;
    line-height: 36px!important;
    font-size: 14px;
    color: #626262;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
    padding-left: 0!important;
    padding-right: 0!important;
    border: 0!important;
    margin-right: 0!important;
}

.right-sidebar-tabs .nav-tabs {
    border-bottom: 0!important;
}

.right-sidebar-tabs .nav-tabs > li.active > a,
.right-sidebar-tabs .nav-tabs > li.active > a:focus,
.right-sidebar-tabs .nav-tabs > li.active > a:hover {
    cursor: default;
    background-color: #fff;
    border: none;
    border-radius: 0;
}

.right-sidebar-tabs .nav > li > a:focus, 
.right-sidebar-tabs .nav > li > a:hover {
    text-decoration: none;
    background-color: #fff;
}

.chat-list .chat-item {
    overflow: hidden;
    position: relative;
    display: block;
    border-bottom: 1px solid #E5E9EC;
    padding: 5px 0;
}

.chat-list .chat-item:last-child {
    border-bottom: 1px solid transparent;
}

.chat-list .chat-item:hover {
    background: #f9f9f9;
}

.chat-list .chat-item img {
    float: left;
    width: 40px;
    border-radius: 100%;
    margin: 10px;
    margin-left: 18px;
}

.chat-list .chat-item .user-avatar {
    position: relative;
    display: inline-block;
    overflow: hidden;
    float: left;
}

.chat-list .chat-item.active-user .user-avatar:after {
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2EC5D3;
    position: absolute;
    bottom: 9px;
    right: 9px;
    border: 2px solid #fff;
}

.chat-list .chat-item.offlinemsg .user-avatar:after {
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000!important;
    position: absolute;
    bottom: 9px;
    right: 9px;
    border: 2px solid #fff;
}

.chat-list .chat-item .chat-info {
    float: left;
    overflow: hidden;
    padding: 13px 0;
    width: 100px;
}

.chat-list .chat-item .chat-info span.chat-author {
    display: block;
    color: #4F5862;
    font-size: 13px;
    line-height: 15px;
    padding: 0;
    margin-bottom: 4px;
}

.chat-list .chat-item .chat-info span.chat-text {
    display: block;
    color: #4f4f4f;
    font-size: 13px;
    line-height: 15px;
    padding: 0;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.chat-list .chat-item.unread .chat-info span {
    color: #2b2b2b!important;
    font-weight: 500;
}

.chat-list .chat-item .chat-info span.chat-time {
    display: block;
    color: #626262;
    opacity: 0.6;
    font-size: 12px;
    line-height: 15px;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -7.5px;
}

.load-more-messages {
    display: block;
    text-align: center;
    width: 100%;
    margin: 15px auto;
    font-size: 14px;
    color: #4F5862;
    opacity: 0.6;
}

.load-more-messages:hover {
    color: #4F5862;
    opacity: 1;
}

.chat-top-info {
    float: left;
    padding: 10px 0px 9px 20px;
}

.chat-top-info span {
    display: block;
}

.chat-top-info span.chat-name {
    color: #4F5862;
    font-size: 14px;
    font-weight: 400;
}

.chat-top-info span.chat-state {
    color: #4F5862;
    font-size: 12px;
    opacity: 0.6;
}

.chat-more-nav {
    float: right;
    display: block;
    position: relative;
    width: 15px;
    height: 15px;
    margin: 13px 5px;
    text-align: center;
}

.chat-more-nav > a {
    display: block;
    position: relative;
    font-size: 18px;
    width: 100%;
    height: 100%;
}

span.chat-title {
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    display: block;
    margin: 5px 0 0 0;
    background: transparent;
    color: #626262;
    opacity: 0.6;
}

.chat-start-date {
    width: 100%;
    color: #626262;
    opacity: 0.6;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}

.page-right-sidebar-inner {
    height: 100%;
}

.right-sidebar-content {
    height: calc(100% - 61px);
}

.right-sidebar-content .slimScrollDiv {
    height: calc(100% - 95px)!important;
}

.right-sidebar-chat {
    height: 100%!important;
    padding-bottom: 20px;
}

.chat-bubble.them .chat-bubble-img-container {
    float: left;
}

.chat-bubble .chat-bubble-text-container {
    max-width: 60%;
    display: block;
}

.chat-bubble.them .chat-bubble-text-container {
    float: left;
}

.chat-bubble.me .chat-bubble-text-container {
    float: right;
}

.chat-bubble {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

.chat-bubble img {
    width: 38px;
    height: 38px;
    border-radius: 100%;
}

.chat-bubble.them img {
    margin-left: 18px;
}

.chat-bubble span.chat-bubble-text {
    padding: 7px 12px;
    min-height: 28px;
    margin: 0 10px;
    position: relative;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    float: left;
    clear: both;
    word-wrap: break-word;
    max-width: 100%;
}

.chat-bubble.them span.chat-bubble-text {
    margin-left: 10px;
    background: #F3F3F3;
}

.chat-bubble.me span.chat-bubble-text {
    margin-left: 10px;
    margin-right: 28px;
    background: #dff1fd;
    float: right;
}

.chat-bubble span.chat-bubble-text {
    margin-top: 4px;
}

.chat-bubble span.chat-bubble-text:first-child {
    margin-top: 0;
}

.chat-bubble span.chat-bubble-text:last-child {
    margin-bottom: 10px;
}

.chat-bubble span.chat-bubble-text:first-child:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.chat-bubble.them span.chat-bubble-text:first-child:before {
    border-width: 0 10px 10px 0;
    border-color: transparent #F3F3F3 transparent transparent;
    position: absolute;
    top: 0;
    left: -9px;
}

.chat-bubble.me span.chat-bubble-text:first-child:before {
    border-width: 10px 10px 0 0;
    border-color: #dff1fd transparent transparent;
    position: absolute;
    top: 0;
    right: -9px;
}

.chat-write input {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-top: 1px solid #E5E9EC;
    height: 60px;
    border-radius: 0;
    padding: 0 20px;
    font-weight: 400;
}

.chat-write input:focus {
    box-shadow: none;
    border-color: #E5E9EC;
}

.right-sidebar-settings .settings-title {
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    display: block;
    margin: 5px 0 0 0;
    background: transparent;
    color: #4F5862;
    opacity: 0.6;
}

span.chat-title {
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    display: block;
    margin: 5px 0 0 0;
    background: transparent;
    color: #4F5862;
    opacity: 0.6;
}

.sidebar-setting-list li {
    padding: 12px 25px;
    font-size: 13px;
    color: #4F5862;
}

.sidebar-setting-list li:last-child {
    border-color: transparent;
}

.sidebar-setting-list li .switchery {
    float: right;
}

