body {
    background-color: #e6f0f1;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.content-body {
    display: flex;
}

main {
    overflow: hidden;
}

/* sidebar */
.sidebar {
    padding: 0;
    width: 100px;
    min-width: 100px;
    min-height: 100vh;

    -ms-overflow-style: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #405189;
    position: relative;
}

.sidebar .dropdown .dropdown-item {
    color: #405189;
    padding: 5px 5px 5px 15px;
    text-align: left;
}
.sidebar .dropdown .dropdown-item:hover, 
.sidebar .dropdown .dropdown-item.active {
    color: #fff;
    background-color: #405189;
}

.sidebar .dropdown-menu.show {
    transform: translate3d(102px, 0, 0) !important;
    color: #405189;
    font-size: 13px;    
    padding: 4px;
    box-shadow: 2px 2px 4px 0 #00000045;
    border: 1px solid #cfd8d8;
}
.sidebar .dropdown-menu:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: #ffffff;
    border-left: 0;
    margin-top: -20px;
    margin-left: -20px;
}    


.dashboard-menu a {
    background-color: #52619a;
    text-align: center;
    display: inline-block;
    width: 100%;
    color: #fff;
    font-size: 1.5em;
    height: 64.3px;
    line-height: 64.3px;
    transition: 0.5s;
}

.dashboard-menu a:hover {
    background-color: #e6f0f1;
    color: #405189;
}


/* header search */

.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.header-search input {
    background-color: #f5f9fa;
    border-radius: 30px;
    padding-right: 38px;
    padding-left: 25px;
    border: 1px solid #e6f0f1;
}

.header-search i {
    position: absolute;
    right: 18px;
    top: 12px;
    color: #b1b6c9;
    font-size: 15px;
}


/* main menu */

.main-menu a {
    text-align: center;
    display: inline-block;
    width: 100%;
    color: #fff;
    transition: 0.5s;
    padding: 13px 5px;
    text-decoration: none;
}

.main-menu .active a:not(.dropdown-item) {
    background-color: #e6f0f1;
    color: #52619a;
    border-radius: 25% 0 0 25%;
    padding-right: 20px;
}

.main-menu a i {
    font-size: 1.5em;
}

.main-menu li {
    position: relative;
    padding-left: 5px; 
}

.main-menu li:not(.active) a:hover {
    background-color: #52619a;
}

.main-menu li.active:before {
    content: "";
    position: absolute;
    background: url(../img/btr-edge.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 20px;
    width: 20px;
    right: 0;
    top: -19px;
}

.main-menu li.active:after {
    content: "";
    position: absolute;
    background: url(../img/bbr-edge.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 20px;
    width: 20px;
    right: -1px;
    bottom: -20px;
}


/* secondary menu */
.secondary-menu {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.secondary-menu a {
    color: #b1b6c9;
    display: inline-block;
    width: 100%;
    transition: 0.5s;
}

.secondary-menu a:hover {
    color: #fff;
}


/* header nav */

.profile-img-ico {
    height: 40px;
    border-radius: 5px;
}

.breadcrumbs {
    color: #b1b6c9;
}

.no-toggle .dropdown-toggle::after {
    display: none;
}

.header-menu .nav-link,
.header-menu .col-auto>a .mobile-menu .nav-link,
.mobile-menu .col-auto>a {
    color: #b1b6c9;
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover,
.mobile-menu a:hover,
.mobile-menu a:hover {
    color: #405189 !important;
}

.navbar-nav .dropdown-menu-right {
    right: -13px !important;
}


/* notification */

.has-notif {
    background: #FF9800;
    height: 10px;
    width: 10px;
    position: absolute;
    top: 6px;
    right: 4px;
    border-radius: 100%;
}

.mobile-menu .has-notif {
    top: 0;
    right: 12px;
}

.notif-box {
    width: 430px;
    border: 1px solid rgba(100, 100, 100, .4);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.notif-content .ass-to {
    display: none;
}

.notif-content {
    max-height: 70vh;
    overflow-y: auto;
}

.notif-box .nb-a {
    text-decoration: none;
    display: block;
    color: #405189;
    line-height: 18px;
    font-size: .9em;
}

.notif-box .unread {
    background: #e6f0f1;
}

.notif-box .nb-a:hover {
    background-color: #f5f9fa;
}

.notif-box:before {
    content: " ";
    position: absolute;
    right: 15px;
    top: -15px;
    border-top: none;
    border-right: 15px solid transparent;
    border-left: 15px solid transparent;
    border-bottom: 15px solid #52619a;
}


/* Scrollbar */

@media only screen and (min-width: 768px) {
    /* width */
     ::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }
    /* Track */
     ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 5px #405189;
        border-radius: 5px;
    }
    /* Handle */
     ::-webkit-scrollbar-thumb {
        background: #c5c5c5;
        border-radius: 5px;
    }
     ::-webkit-scrollbar-thumb:hover {
        background: #52619a;
    }
}

/* Scroll to top */
#return-to-top {
    z-index: 9;
    position: fixed;
    bottom: 40px;
    right: 0;
    background: #e6f0f1a1;
    border: 1px solid #d4d4d4;
    width: 35px;
    height: 35px;
    display: block;
    text-decoration: none;
    display: none;
    border-radius: 5px 0 0 5px;;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top i {
    color: #52619a;
    margin: 0;
    position: relative;
    left: 10px;
    top: 7px;
    font-size: 19px;
    -webkit-transition:all 0.3s ease;
    -moz-transition:all 0.3s ease;
    -ms-transition:all 0.3s ease;
    -o-transition:all 0.3s ease;
    transition:all 0.3s ease;
}
#return-to-top:hover {
    background:rgb(64, 81, 137);
}
#return-to-top:hover i {
    color: #ffffff;
    top: 5px;
}

/* Fixed content overflow */
.wrapper1,
.wrapper2 {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.wrapper1 {
    height: 20px;
    position: fixed;
    bottom: 8px;
    z-index: 9;
    width: calc( 100% - 130px );
}

.wrapper2 {
    overflow-x: hidden;
    min-height: 80vh;
}

.div1 {
    width: 2000px;
    height: 20px;
}

.div2 {
    width: 2000px;
}

@media only screen and (max-width: 1919px) {
    .wrapper1,
    .wrapper2 {
        width: 100%;
        left: 0;
        bottom: 5px;
    }
    .wrapper1 {
        overflow-x: hidden;
    }
    .wrapper2 {
        overflow-x: auto;
        /*height: calc(100vh - 130px);*/
    }
}

@media only screen and (min-width: 1907px) {
    .div1,
    .div2 {
        width: auto !important;
    }

}

/* media query */

@media only screen and (max-width: 768px) {
    .header-search {
        max-width: 100%;
    }
}

/* Timeline activities */

.timeline {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}
.timeline-form {
    position: relative;
    transition: 0.5s;
}

.timeline-form:hover .timeline-fade {
    background-image: none;
    z-index: -1;
}

.timeline-stick {
    background-color: #ebefee;
    content: "";
    display: block;
    height: calc(100% - 10px);
    left: 25px;
    position: absolute;
    top: 10px;
    width: 3px;
    z-index: 0;
}

.timeline-fade {
    transition: background-image .5s linear-gradient;
    position: absolute;
    bottom: 0;
    display: block;
    width: calc(100% - 12px);
    height: 100px;
    z-index: 0;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255) 100%);
}

.timeline-box .timeline-icon i {
    border: 1px solid #ecf0ef;
    background-color: #fff;
    color: #cbd4d3;
    width: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 100%;
}

.timeline-box .timeline-icon {
    position: absolute;
    z-index: 1;
}

.timeline-box .timeline-content {
    margin-left: 50px;
    margin-right: 15px;
}

.timeline-box .mb-4:first-child .timeline-icon .fa {
    color: #ff9d00 !important;
    background-color: #fece82 !important;
}

.timeline-box .mb-4:first-child .tile-box {
    background: #f7f7f7;
}   
.tile-box {
    transition: 0.5s;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}    
.tile-box:hover {
    background: #e6f0f1 !important;
}
[data-btn="inline-delete"] {
    position: absolute;
    bottom: -12px;
    right: 9px;
    display: none;
}
.tile-box:hover [data-btn="inline-delete"] {
    display: block;
}


.ta-orange {
    color: #ff9d00 !important;
    background-color: #fece82 !important;
}


/* Card items */

.card-item {
    text-decoration: none !important;
}

.card-item {
    border: 1px solid #fff;
    display: block;
    color: #9E9E9E;
    background-color: #fff;
    margin-bottom: 11px;
    border-radius: 5px;
    padding: 10px 15px;
    transition: .3s;
    font-size: .95em;
}

.card-item:hover {
    border: 1px solid #d4d4d4;
    box-shadow: 3px 4px 8px 1px rgba(0, 0, 0, 0.32);
    background: #fffad2;
}

/* select2 */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single {
    height: 38px !important;   
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px !important;
    right: 4px !important;
}
.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
}

/* tables */
.table-actions {
    visibility: hidden;
}
.table tr:hover .table-actions {
    visibility: visible;    
}
.table-sort th {
    color: #969696;     
    padding: 0 !important;
}
.table-sort th a {
    padding: .75rem;
}
.table-sort th a:hover {
    color: #405189;
}

.table-sort th.sorted {
    color: #52619a;
}

.btn-sm {
    font-size: 1em;
}

/* arrow tabs*/
.arrow-tab .btn:nth-child(1) {
    background-color: #bcdda4;
}

.arrow-tab .btn:nth-child(2) {
    background-color: #a7d388;
}

.arrow-tab .btn:nth-child(3) {
    background-color: #93ca6d;
}

.arrow-tab .btn:nth-child(4) {
    background-color: #73b865;
}

.arrow-tab .btn:nth-child(5) {
    background-color: #91a991;
}

.arrow-tab .btn:nth-child(6) {
    background-color: #768774;
}

.arrow-tab .btn {
    width: 250px;
    line-height: 30px;
    font-size: 1.1em;
    color: #fff;
}

.arrow-tab .btn:first-child {
    border-radius: 5px 0 0 5px !important;
}

.arrow-tab .btn:last-child {
    border-radius: 0 5px 5px 0 !important;
}

.arrow-tab .btn:last-child:after,
.arrow-tab .btn:first-child:before {
    content: normal;
}

.arrow-tab.focus,
.arrow-tab .btn:focus {
    box-shadow: none !important;
}

.btn-arrow-right:before,
.btn-arrow-left:after {
    background-color: #fff;
}

.at-dot {
    font-size: 6px;
    vertical-align: middle;
    margin: 0 5px;
}

/* Tags */
.tags-container {
    padding: .375rem 0;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* Raitings */
.rates-o { position: relative; }
.rates-o .rate-p { 
    color: #d0d0d0!important;
}
.rates-o .rate-s {
    position: absolute;
    left: 0;
}    

@media only screen and (max-width: 768px) {
    .arrow-tab .btn:before,
    .arrow-tab .btn:after {
        content: none;
    }
}


.dataTables_filter, .dataTables_filter label {
    max-width: 600px;
    width: 100%;
}
.dataTables_filter input {
    width: calc(100% - 100px);
    outline: none;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}
.custom-checkbox .custom-control-label::before {
    border: 1px solid #28a745;
}
.table-people li:hover {
    background: #fece82;
}
ul.table-people {
    max-height: 115px;
    overflow: auto;    
}
