* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*  Colors - fonts - sizes */


:root {
    --main-color: #7895B2;
    --secondary-color: #E8DFCA;
    --main-bg-dak: #f1f1f1;
    --white-color: #FFF;
    --main-font: "Alexandria", sans-serif;
}
p,
ul{
    margin: 0;
}
body,
.btn{
    font-family: var(--main-font);
}
.btn-primary.active, .btn-primary.focus, .btn-primary:active, .btn-primary:focus, .btn-primary:hover:not(:disabled), .open > .dropdown-toggle.btn-primary, .btn-outline-primary.active, .btn-outline-primary:active, .show > .btn-outline-primary.dropdown-toggle, .btn-outline-primary:hover, .btn-primary.active, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:active, .show > .btn-primary.dropdown-toggle, .btn-primary.disabled, .btn-primary:disabled, .btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show > .btn-outline-primary.dropdown-toggle, a.bg-primary:focus, a.bg-primary:hover, button.bg-primary:focus, button.bg-primary:hover {
    background-color: var(--main-color) !important;
    border: 1px solid var(--main-color) !important;
}
.text-primary{
    color: var(--main-color) !important;
}
.border-primary{
    border-color: var(--main-color) !important;
}
.chat-msg:first-child p{
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.chat-box-right .chat-body .chat-detail .media .media-img{
    visibility: hidden;
}
.left-sidenav-menu li > a {
    display: block;
    padding: 7px 20px;
    color: #404656;
    border-right: 6px solid transparent;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
#datatable-buttons_wrapper .btn-group, .btn-group-vertical{
    float: left;
}
#datatable-buttons_wrapper .btn-group a{
    margin-right: 10px !important;
}
#datatable-buttons_wrapper .row{
    flex-direction: row-reverse;
}
div.dataTables_wrapper div.dataTables_paginate{
    display: flex;
}
div.dataTables_wrapper div.dataTables_info{
    text-align: end;
}
table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable td:last-child, table.table-bordered.dataTable td:last-child{
    border-right-width: 1px !important;
}
#datatable-buttons_filter input{
    margin-right: 10px;
}

.logout-btn {
    background: none;
    /*color: inherit;*/
    border: none;
    /*padding: 0;*/
    font: inherit;
    cursor: pointer;
    outline: inherit;

    display: block;
    padding: 7px 20px;
    color: #404656;
    border-right: 6px solid transparent;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

}

.logout-btn > i {
    width: 30px;
    display: inline-block;
    font-size: 20px;
    opacity: 0.8;
    vertical-align: middle;
    color: #a8a8b1;
}
/*=== Redesign ===*/
.left-sidenav,
.page-content{
    margin-top: 40px !important;
}
.page-wrapper-img{
    min-height: 150px !important;
    margin-top: 50px;
}
.sidebar-user{
    position: relative;
    top: 0;
}
.media-body{
    flex: none;
}
.page-wrapper-img{
    display: flex;
    align-items: center;
}
.page-wrapper .page-wrapper-inner {
    background-color: #F2F5F8;
    padding: 0 80px;
}
.left-sidenav {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.left-sidenav-menu li > a{
    color: #7D8FA1 !important;
    margin-bottom: 16px;
}

.left-sidenav-menu li.active > a{
    color: #212E3A !important;
    background-color: white;
    border: 0;
    border-radius: 8px;
}
.card{
    border-radius: 12px;
    box-shadow: none;
    padding: 40px;
}
.card-body{
    padding: 0;
}
.header-title{
    font-size: 24px;
    color: #212E3A;
}
.btn{
    border-radius: 8px;
    box-shadow: none;
}
.btn-primary{
    background-color: #597A9C;
    border: 0;

}
.btn-outline-primary{
    border-color: var(--main-color);
    color: var(--main-color);
}
.btn-primary:hover{
    border:0;
}
.overview h5{
    color: #637689;
    margin-bottom: 24px
}
.overview strong{
    color: #212E3A;
    font-size: 16px;
    font-weight: 500;
}
.overview p{
    color: #637689;
    font-size: 16px;
}
.navbar-custom {
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* procedures */
.procedures li{
    margin: 16px 0;
}
/*Project Messages*/
.messages-list {
    list-style-type: none;
    padding: 0;
}

.message {
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
}
.messages-list .d-block,
.procedure-date{
    color: #7D8FA1;
}
.sender {
    background-color: #212E3A;
    text-align: right;
    display: inline-block;
    color: white;
}

.receiver {
    background-color: #3498db;
    color: white;
    text-align: left;

}

.new-message-block {
    margin-top: 20px;

}
.new-message-block form{
    display: flex;
}
.new-message-block input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #597A9C;
    border-radius: 4px;
    width: 100%;
    margin-left: 8px;
}

.new-message-block button {
    color: white;
    border: none;
    border-radius: 18px !important;
}
.new-message-block button img{
    width: 20px;
}

.file-label {
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    display: block;
    margin-bottom: 24px;
    border: 1px solid #CAD6E2;
    width: 100%;
}

.file-label + input {
    display: none;
}

.file-label:before {
    content: '';
    height: 24px;
    width: 24px;
    background-image: url(../images/upload.svg);
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    top: 12px;
    right: -7px;
}

.file-name {
    color: #94A3B2;
    font-size: 12px;
    position: relative;
    right: 28px;
    display: block;
}

input[type="file"][readonly] + .file-label {
    background-color: #e9ecef;
}

/******************************/
/******** User Support ********/
/******************************/
.user-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
}

.user-support .support-btn {
    height: 50px;
    width: 50px;
    background-color: #212529;
    border-radius: 50%;
    border: #637689 2px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -1px 15px rgba(0, 0, 0, 0.3);
}

.user-support .support-btn:hover {
    background-color: #2b2f34;
    box-shadow: 0 -1px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.user-support .support-btn img {
    width: 25px;
    height: 25px;
}

.user-support .support-dialog {
    position: fixed;
    inset: auto 20px 90px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 30px 0px;
    border-radius: 16px;
    max-height: 58%;
    width: 330px;
    height: 470px;
    opacity: 1;
    transition: all .4s ease;
    text-align: right;
    font-size: 13px;
}

.support-dialog .form-control {
    font-size: 13px;
}

.user-support .support-dialog.opening {
    height: 0px;
    opacity: 0;
}

.user-support .support-dialog.closing {
    height: 0px;
    opacity: 0;
}

.support-dialog .dialog-header {
    position: relative;
    padding: 16px 20px 16px 48px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.dialog-header .close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s, background-color 0.4s, transform 0.4s;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
}

.close-btn svg {
    fill: rgba(17, 17, 17, 0.5);
}

.close-btn:hover svg {
    fill: #212529;
}

.support-dialog .dialog-body {
    flex-grow: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

.support-dialog .dialog-body .success-icon{
    height: 80px;
}

button:disabled{
    cursor: default;
}

.user-support .notice-dialog {
    position: fixed;
    inset: auto 20px 90px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 30px 0px;
    border-radius: 16px;
    max-height: 58%;
    width: 330px;
    height: 140px;
    opacity: 1;
    transition: all .4s ease;
    text-align: right;
    font-size: 16px;
}

.user-support .notice-dialog.opening {
    height: 0px;
    opacity: 0;
}

.user-support .notice-dialog.closing {
    height: 0px;
    opacity: 0;
}

.notice-dialog .dialog-body{
    flex-grow: 1;
    padding: 16px 20px 16px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-dialog .dialog-body .close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s, background-color 0.4s, transform 0.4s;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
}

.toast-message {
    text-align: right;
}