/********** Custom media CSS (Bootstrap 4) ***********/

.d-flex {
    display: flex;
}

.align-item-center {
    align-items: center;
}

.justify-content-flex-center {
    justify-content: center;
}

.justify-content-flex-end {
    justify-content: flex-end;
}

.justify-content-flex-between {
    justify-content: space-between;
}

.justify-content-flex-evenly {
    justify-content: space-evenly;
}

.d-none {
    display:none !important;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block !important;
}

.no-wrap {
    white-space: nowrap;
}

.rounded-0 {
    border-radius: 0 !important;
}

.font-1 {
    font-size:24px;
}

.font-2 {
    font-size:18px;
}

.w-100 {
    width: 100%;
}
.position-relative {
    position: relative !important;
}

/************* Margin class ***********/
.mr-auto {
    float: right;
}

.ml-auto {
    float: left;
}

.mt-1 {
    margin-top: 15px;
}
.mb-1 {
    margin-bottom: 15px;
}

.ml-1 {
    margin-left: 5px;
}

.mr-1 {
    margin-right: 5px;
}

.mt-2 {
    margin-top: 10px;
}
.mb-2 {
    margin-bottom: 10px;
}

.ml-2 {
    margin-left: 10px;
}

.mr-2 {
    margin-right: 10px;
}

/************* Margin class ***********/

.py-1 {
    padding: 5px 0px;
}

.py-2 {
    padding: 10px 0px;
}

.py-3 {
    padding: 15px 0px;
}

/****************** Buttons style *************/

.table-striped > tbody > tr:hover .btn-danger,
.table-hover > tbody > tr:hover .btn-danger {
    display: inline-block;
}

.btn-success  {
    color: #444 !important;
    background-color: rgb(34 219 53 / 48%);
    border-color: rgba(0, 166, 90, 0.3);
}

.btn-success:hover, .btn-success:active, .btn-success:focus, .btn-success:active:focus{
    background-color: rgb(193, 243, 198);
    border-color: rgba(0, 166, 90, 0.5);
}

.btn-primary {
    color: #444 !important;
    background-color: rgba(0, 192, 239, 0.5);
    border-color: rgba(60, 141, 188, 0.5);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:active:focus {
    background-color: rgba(0, 192, 239, 0.3);
    border-color: rgba(60, 141, 188, 0.3);
}

.btn-danger {
    color: #444 !important;
    background-color: rgba(230, 132, 120, 0.5);
    border-color: rgba(215, 57, 37, 0.3);
}

.btn-danger:hover, .btn-danger:active, .btn-danger:focus, .btn-danger:active:focus{
    background-color: rgba(230, 132, 120, 0.7);
    border-color: rgba(215, 57, 37, 0.5);
}

.btn:focus, .btn:active:focus {
    outline: none;
}

/* CRUD buttons colors */
.task-item .btn {
    min-width: 34px;
}

.btn-create, .btn-create:active, .btn-create:focus {
    color: #444;
/*    background-color: rgba(193, 243, 198, 0.7);
    border-color: rgba(0, 166, 90, 0.3);*/
    background-color: rgb(34 219 53 / 48%);
    border-color: rgba(0, 166, 90, 0.5);
}

.btn-create:hover {
    background-color: rgb(193, 243, 198);
    border-color: rgba(0, 166, 90, 0.5);
}

.btn-edit, .btn-edit:active, .btn-edit:focus {
    color: #444;
    background-color: rgba(0, 192, 239, 0.3);
    border-color: rgba(60, 141, 188, 0.3);
}

.btn-edit:hover {
    background-color: rgba(0, 192, 239, 0.5);
    border-color: rgba(60, 141, 188, 0.5);
}

.btn-delete, .btn-delete:active, .btn-delete:focus {
    color: #444;
    background-color: rgba(230, 132, 120, 0.5);
    border-color: rgba(215, 57, 37, 0.3);
}

.btn-delete:hover {
    background-color: rgba(230, 132, 120, 0.7);
    border-color: rgba(215, 57, 37, 0.5);
}

.btn-search, .btn-search:active, .btn-search:focus {
    color: #444;
    background-color: rgba(243, 240, 179, 0.7);
    border-color: rgba(250, 182, 50, 0.3);
}

.btn-search:hover {
    background-color: rgba(243, 240, 179, 1);
    border-color: rgba(250, 182, 50, 0.5);
}

.btn-box-tool[data-widget="remove"], .select2-selection__clear {
    color: rgb(204, 55, 36);
}

.modal-content {
   border-radius:3px; 
}

.form-group .control-label, label {
    font-weight: 500;
}

.count-label {
    padding: 0px 1px;
}

.main-sidebar, .main-header .logo {
    width: 240px;
}

sup {
    top: -0.8em;
}

.table {
    margin-bottom: 0px;
}

.form-control,
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    font-weight: 900;
    border-radius: 5px;
}

.skin-red-light .sidebar-menu>li>a {
    font-weight: 500;
}

.skin-red-light .sidebar-menu>li.active>a {
    font-weight: 600;
    border-left: 3px solid #dd4c39;
}

.skin-red-light .sidebar-menu>li>a:hover {
    border-left: 3px solid #dd4c39;
}

.checkbox-input.pt {
    padding-top: 30px;
}
.sidebar-menu li > .tools {
    opacity: 0.7;
    position: absolute;
    right: 5px;
    color: white;
    top: 10px;
}
.sidebar-menu li > .tools .btn-success {
    border: none;
    color: white;
}
.sidebar-menu li:hover > .tools {
    opacity: 1;
}
.sidebar-menu .treeview-menu li > .tools {
    top: 3px;
}
.sidebar-menu li {
    position: relative;
    color: #FFF;
}
.contact-item {
    margin-bottom: 10px;
}
.contact-item-template {
    display: none;
}
#contact_info .template {
    display: none;
}
.modal-dialog {
    display: none;
    position: fixed;
    top: 50px;
    left: -300px;
    margin-left: 50%;
    z-index: 999;
}
.bg-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    opacity: .5;
    z-index: 998;
}

.sorter > li {
    display: inline-block;
    padding-left: 10px;
    margin-bottom: -10px;
}

.box-header .sorter > li > a {
    color: #555;
    font-size: 14px;
}

.box-header .summary {
    margin-left: 10px;
}

.sorter a:before, .kv-grid-table th a:before {
    font: normal normal normal 14px/1 FontAwesome;
    content: "\f0dc";
    margin-right: 2px;
}

.grid-pager .pagination {
   margin: 0px; 
}

.grid-export {
    margin-bottom: 5px;
}

.pagination > li > a, .pagination > li > span {
    padding: 5px 10px !important;
}

.balance {
    margin-left: 20px;
    font-size: 20px;
    display: inline-block;
    line-height: 1;
}
.form-control.invalid-value {
    border: 1px solid #F00;
}

.header-box-index {
    height: 60px;
    display: flex;
    flex-direction: column;
    text-align: end;
}

.drp-container {
    display: flex;    
}
.drp-container .input-group-append {
    padding: 6px 10px;
    border: 1px solid #d2d6de;
    border-left: none;
    border-radius: 0px 5px 5px 0px;
    background-color: white;
}
.pt-25 {
    padding-top: 25px;
}

.table th {
    text-align: center;
    vertical-align: initial !important;
    font-weight: normal;
}

.table th {

}

.table-striped > tbody > tr {
    opacity: 1;
    cursor: pointer;
}

.table-hover > tbody > tr {
    cursor: pointer;
}

.table-striped > tbody > tr:not(.info):hover {
    opacity: 0.7;
    
}

.redactor-box .redactor-toolbar {
    background-color: #f9fafc;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #d2d6de;
    border-bottom: none;
    border-radius: 5px 5px 0px 0px;
}

.redactor-editor {
    border-radius: 0px 0px 5px 5px;
    border: 1px solid #d2d6de;
    min-height: 100px !important;
    padding: 10px;
}

.status-busy {
    background: #ffa7a7;
    border-color: #ffa7a7 !important;
    color: #444;
}
.status-free {
    background: #bbeabd;
    border-color: #bbeabd !important;
    color: #444;
}
.status-cleaning {
    background: #b4dcfd;
    border-color: #b4dcfd !important;
    color: #444;
}

.content-wrapper.index-page, .main-footer.index-page {
    margin-left: 0;
}

.control-buttons-top {
    margin-bottom: 10px;
}

.control-buttons-top .btn-success {
    margin-right: 5px;
}

.read {
    opacity: .5;
}

.file-drop-zone {
    min-height: inherit;
}

.field-user-user_photo_uri .file-input {
    text-align: center;
}

.field-tasks-is_important, .field-lead-archive, .field-subdivisions-partner, #userStatus {
    margin: 4px 25px 0px 0px;
}

.input-group-addon {
    padding: 7px 6px !important;
}

.input-group.date .input-group-addon:first-child {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

/********************* index DateRange style ********************/
.index-range {
    position: absolute;
    top: 1px;
    background-color: #cee2ed;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    z-index: 9;
}

.index-range .drp-container input {
    border-color: #cee2ed;
    border-top: none;
    border-left: none;
    border-bottom:none;
}

.index-range .drp-container .input-group-append {
    border: none;
}

.index-range .daterange-clear {
    display:none;
    position: relative;
    top: 5px;
    padding: 8px 11px;
    border-radius: 5px 0px 0px 5px;
}
/******************************************************************/

.grid-total {
    line-height: 30px;
    margin-right: 20px;
    font-weight: bold;
    font-size: 21px;
}

/********************* Sidebar notice style ********************/

.sidebar-menu li {
    position: relative;
    color: #FFF;
}
.sidebar-menu li > .tools {
    opacity: .5;
    position: absolute;
    right: 5px;
    color: white;
    top: 10px;
}
.sidebar-menu .treeview-menu li > .tools {
    top:3px;
}
.sidebar-menu li:hover > .tools {
    opacity: 1;
}

/* Уведомления */
.control-sidebar {
    padding-bottom: 0px !important;
}
.control-sidebar-bg, .control-sidebar {
    right: -350px;
    width: 350px;
}
.control-sidebar-menu .menu-info {
    margin-left: 0;
}
.control-sidebar-menu .menu-icon {
    float: none !important;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    line-height: 18px;
    margin-right: 2px;
    margin-left: 3px;
    background-color: #e68478 !important;
    color: #fff !important;
}
.control-sidebar-menu .panel-heading {
    padding: 5px;
}
.control-sidebar-menu .panel-heading .notice-time {
    font-size: 11px;
    padding-top: 3px;
    padding-right: 5px;
}
.control-sidebar-menu .panel-heading .btn-box-tool {
    color: #606c84;
    padding: 0px;
}
.control-sidebar-menu .panel-body {
    padding: 5px 10px 5px 10px;
}
.control-sidebar-menu .sidebar-notice-heading {
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.control-sidebar-menu .sidebar-notice-description {
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4em;
}
.control-sidebar-menu .sidebar-notice {
    padding: 0 !important;
}
.control-sidebar-menu .panel {
    margin-bottom: 0 !important;
}
.control-sidebar-menu .control-sidebar-subheading {
    margin-top: 3px;
    margin-bottom: 3px;
    color: rgb(68, 68, 68) !important;
}
.control-sidebar-menu > li > a {
    padding-bottom: 0;
}

.control-sidebar-menu .sidebar-notice-heading, .control-sidebar-menu .sidebar-notice-description {
    margin: 0;
    font-size: 11px;
    color: #5e5e5e;
}
.control-sidebar-menu .col-sidebar-notice-description {
    padding-right: 1px;
}
.control-sidebar-menu .col-sidebar-notice-image {
    padding-left: 0;
}
.control-sidebar-tabs > li {
    display: table-cell;
    width: 1%;
}
.control-sidebar-light .control-sidebar-menu > li > a:hover {
    background: none !important; 
}
.control-sidebar-light .control-sidebar-menu > li > a:hover .panel-default > .panel-heading {
    background-color: #dadada;
}
.control-sidebar-light .control-sidebar-menu > li > a:hover .panel-default > .panel-footer {
    background-color: #dadada;
}
.control-sidebar-light .control-sidebar-menu > li > a:hover .panel {
    background-color: #f3f2f2;
}
.control-sidebar-menu #unread-notices-btn, .control-sidebar-menu #read-notices-btn{
    display: none;
}
.control-sidebar-menu .unread-notice-item, .control-sidebar-menu .read-notice-item {
    margin: 10px 15px;
}
.control-sidebar-menu .btn-view-state:hover {
    color: #333333;
}

/* Ответ на комментарий уведомления */
.control-sidebar-menu .panel-footer {
    padding: 3px 3px !important;
}
.control-sidebar-menu .panel-footer .input-group {
    width: 100% !important; 
}
.control-sidebar-menu .panel-footer .sidebar-comment-answer {
    padding: 5px 20px 5px 5px !important;   
    height: 25px !important;
    font-size: 11px !important;
}
.control-sidebar-menu .panel-footer .notice-comment-buttons {
    width: 12px !important;
    position: absolute !important;
    height: 12px !important;
    top: 0px !important;
    right: 0px !important;
    margin-right: 7px !important;
    margin-top: 1px !important;
    z-index: 3 !important;
}
.control-sidebar-menu .panel-footer .btn-send-notice-comment {
    border-radius: 50% !important;
    padding: 0px 3px 0px 3px !important;
    font-size: 10px !important;
    min-width: 10px !important;
}
.control-sidebar-menu .panel-footer .notice-comment-buttons i {
    font-size: 8px !important;
}
.active > .fc-filter-read, .active > .fc-filter-unread {
    background-color: rgb(195, 195, 195) !important;
}
.fc-filter-read, .fc-filter-unread {
    padding: 0 !important;
    color: rgb(68, 68, 68) !important;
    background-color: rgb(244, 244, 244) !important;
    border-color: #ddd !important;
    margin-top: 10px;
    border-top: 1px solid transparent !important;
}
.fc-filter-read {
    margin-right: 10px !important;
    border-left: none !important;
    border-top-left-radius: 0px !important; 
    border-bottom-left-radius: 0px !important; 
    border-top-right-radius: 4px !important; 
    border-bottom-right-radius: 4px !important;
}
.fc-filter-unread {
    margin-left: 10px !important;
    border-right: none !important;
    border-top-left-radius: 4px !important; 
    border-bottom-left-radius: 4px !important; 
    border-top-right-radius: 0px !important; 
    border-bottom-right-radius: 0px !important;
}
.notifications-sidebar hr {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.empty-notice-sidebar {
    margin-left: 25%;
}

.box-body img {
    width:100%;
}

.order-chat-items {
    text-align: right;
}

.message-item {
    display: inline-block;  
    width: 50%;
    margin: 10px;
    border-radius: 15px 0px 15px 15px;
    box-shadow: 3px 3px 5px #bbbbbb;
}

.message-header {
    background-color: rgb(34 219 53 / 48%);
    padding: 5px 10px;
    border-radius: 15px 0px 0px 0px;
}

.message-body {
    text-align: initial;
    padding: 5px 10px 20px 10px;
    border-radius: 0px 0px 15px 15px;
    background-color: white;
}

.chenge-language select {
    color:#444;
    border: none;
    padding: 0px 5px;
    border-radius: 3px;
}

.user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
    object-position: 50%;
}

.navbar-nav>.user-menu .user-image {
    object-fit: cover;
    object-position: 50%;
}

.main-footer {
    background-color: #dd4b39;
}

.main-footer .legal-links p {
    margin-bottom: 0px;
}

.main-footer .legal-links a {
    margin-bottom: 0px;
    color: white;
    padding: 15px 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.main-footer .legal-links a:hover {
    background: rgba(0,0,0,0.1);
    text-decoration: underline;
}

.message-viewed-info {
    position: absolute;
    bottom: 0px;
    right: 10px;
    font-size: 24px;
}

.message-viewed-info i {
    color: #c9c9c9;
}
.message-viewed-info.viewed i {
    color: #35c536;
}

#notification.notification {
    position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
    pointer-events: none;
}
#notification.notification.show {
    opacity: 1;
}
#notification.notification.error {
    background-color: #f15348 !important;
}
.copy-text {
    padding-left: 5px;
    cursor: pointer;
}

#chatBlock .timeline>.item>.timeline-item>.time {
    padding: 10px 0 10px 15px;
}