header#main-header {
    position: sticky;
    top: 0px;
    z-index: 999;
}
span.week a {
    padding: 0px !important;
    background: transparent !important;
    color: #ed2b24 !important;
}
.navbar-light .navbar-brand {
    color: rgba(0, 0, 0, 0.9);
    border-right: 1px solid #869492;
    padding-right: 28px;
}
a.navbar-brand {
    color: #175caa !important;
    font-weight: bold;
}
.nav-link.dropdown-toggle {
    font-size: 16px;
    opacity: 1 !important;
    color: #444 !important;
}
a.nav-link.dropdown-toggle.no-dropdown::after {
    display:none;
}
main.py-4 {
    min-height: calc(100vh - 111px);
}
body.home-page main.py-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
body.home-page main.py-4 img {
    max-width: 100%;
    height: auto;
}
footer#main-footer {
    padding: 15px 0px;
    border-top: 1px solid #ddd;
}
@media(min-width: 1300px){
    .container {
        max-width: 1300px;
    }
}
ul.navbar-nav.ml-auto li.nav-item.dropdown {
    margin-right: 20px;
}
ul.navbar-nav.ml-auto:last-child li.nav-item.dropdown {
    margin-right: 0px;
}
p:last-child {
    margin-bottom: 0px;
}
.row-infos .card-header {
    padding: 10px 15px;
    display: flex;
}
.row-infos .card-header h4 {
    margin-bottom: 0px;
}
.row-infos .card-header h4 small {
    color: #bbb;
}
.md-orders-info {
    position: absolute;
    right: 15px;
    font-size: 20px;
    line-height: 1;
}
.md-orders-info {
    right: 15px;
    position: absolute;
    font-size: 20px;
    line-height: 1;
    padding: 3px 10px;
    background: #fff;
    border-radius: 15px;
}
.row-infos .card-header span.badge {
    background: #6cb2eb;
    color: #fff;
    padding: 3px 5px;
}
.card.vsit-today-1 {
    opacity: 0.5;
}
.row-infos .card-body {
    padding: 10px 15px;
}

.card-body span.wapper-obj {
    padding: 2px 13px;
    margin: 5px;
    background: #eee;
    border-radius: 10px;
    display: inline-block;
}

.table-hover tbody tr:hover {
    color: #212529;
    background-color: #ffff004a !important;
}
.field-set {
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    padding-bottom: 3px;
}
.field-set:last-child {
    border-bottom: none;
    margin-bottom: 0px;
    padding-bottom: 0px;
}
p.label {
    margin-bottom: 5px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}
p.as-table spam {
    min-width: 44px;
    display: inline-block;
}


/*search*/
.row.row-search {
    position: sticky;
    top: 55px;
    z-index: 9;
}
form#search_form {
    margin-bottom: 35px;
    padding: 10px;
    background: #eee;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.form-item {
    margin: 0px 15px;
    margin-bottom: 15px;
}
button#submit-form {
    height: 100%;
    border: none;
    background: #6CB2EB;
    color: #fff;
    min-width: 70px;
    border-radius: 4px;
}


button#submit-form {
    min-width: 200px;
    padding: 7px;
}
a.reset_search {
    margin: 20px;
}

@media( min-width: 992px ){
	form#search_form {
	    display: flex;
	}
	.form-item {
	    margin: 0px 15px;
	}
	button#submit-form {
	    min-width: 70px;
	    padding: 0px;
	}
}

div#visit-nav-links.disabeled {
    pointer-events: none;
    opacity: 0.5;
}
/**************************************************
* FORMS
***************************************************/
.hidden {
    display: none;
}
.modal-dialog {
    width: 100% !important;
    max-width: calc(100% - 100px);
}
.modal-header {
    align-items: center;
}
.modal-header button.close {
    position: absolute;
    right: 20px;
    color: #981212;
}
table.table.table-hover.table-striped thead th{
    background: #175caa;
    color: #fff;
    position:sticky;
    top:54px;
}
.modal-body table.table.table-hover.table-striped thead th{
    top:0px;
}
#objects-preview .modal-footer {
    position: sticky;
    bottom: 0px;
    width: 100%;
    background: #fff;
}
table.table.table-hover.table-striped tbody tr:nth-child(odd) {
    background: #eee;
}
button.table-save {
    background: #6CB2EB;
    color: #fff;
    border: none;
    min-width: 100px;
    margin: -5px;
    min-height: 33px;
}
.modal-footer {
    justify-content: flex-start;
    padding-right: 200px;
    min-height: 70px;
}
.modal-footer #selected-firms-in-review {
    width: 100%;
}
.modal-footer #selected-firms-in-review > div {
    display: inline-block;
    margin: 5px;
    padding: 5px 15px;
    background: #eee;
    border-radius: 16px;
}
.modal-footer button.btn.btn-default {
    position: absolute;
    right: 15px;
    background: #6CB2EB;
    color: #fff;
}
.form-control.disable-item {
    pointer-events: none;
    cursor: not-allowed !important;
    opacity: 0.3;
    background: red;
}
/**/
fieldset {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    margin-top: 26px !important;
    background: #f8f8f8;
}

.info-block {
    margin-top: 20px;
    padding: 5px;
    margin-bottom: 0px !important;
    background: #74a5ce;
    color: #fff;
    border-radius: 4px !important;
}
p.info-block i, b {
    color: #333;
}
h3.fieldset-h {
    margin-bottom: -15px;
    margin-top: 30px;
}
table#objects {
    width: 100%;
    margin-top: 10px;
}
table#objects td {
    padding: 5px 11px;
}
td.quest i {
    color: #6cb2eb;
}
table#objects i.fas.fa-arrows-alt {
    color: #666;
    cursor: move;
}
#objects .selected {
    padding: 5px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
tr, td {
    vertical-align: middle !important;
}
tr label,
td label {
    margin-bottom: 0px;
    line-height: 1;
}
.ui-state-default td:nth-child(1) {
    width: 47px !important;
}
td.td-status {
    width: 80px;
}
td.td-status input {
    width: 20px;
    height: 20px;
}
td.td-type{
    width: 200px;
}
td.td-obj_type {
    width: 230px;
}
td.quest a{
    color: #333;
}
td.quest a:hover {
    color: #6cb2eb;
}
#objects  a.remove-selected {
    color: #e23a3a;
}
.tab-content>div {
    width: 100% !important;
    max-width: 100%;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #dee2e6;
    border-top: none;
}
button.btn.btn-info.text-center.btn-save.btn-block {
    text-transform: uppercase;
    color: #fff;
}



div#objects label {
    display: flex;
    width: 31%;
    padding: 5px;
    position: relative;
    padding-left: 40px;
    background: #eee;
    margin: 5px 1%;
    max-width: 31%;
    flex: 0 0 31%;
    align-items: center;
}
div#objects label input {
    position: absolute;
    left: 15px;
}

p.special-label {
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
    color: #175caa;
}

aside#visit-preview .modal-dialog {
    width: 100% !important;
    max-width: calc(100% - 20px);
    margin: 0 auto;
    margin-top: 20px;
}
aside#visit-preview h4 {
    color: #175caa !important;
    font-weight: bold;
}
aside#visit-preview .modal-footer {
    justify-content: center;
    padding-right: 10px;
    min-height: 70px;
}
aside#visit-preview .modal-footer button.btn.btn-default {
    position: relative;
    right: 0px;
    background: #6CB2EB;
    color: #fff;
    width: 100%;
    margin: 0px;
    left: 0px;
}
/**************************************************
* HOME PAGE
***************************************************/
.card.check-visit{
    border-radius: 8px !important;
    overflow: hidden;
}
span.today {
    color: var(--cyan);
    word-spacing: 1px;
    letter-spacing: 0.5px;
}
.user-3 .card-header.flexed {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.card-body.days-inline p {
    display: inline-block;
    text-align: center;
    margin-bottom: 0px;
    margin: 0px 5px;
}
.card-body.days-inline {
    text-align: center;
}
.user-3 .card-header span a {
    padding: 10px 13px;
    margin: 10px;
    background: #444;
    color: #fff;
    border-radius: 100%;
    line-height: 1;
    text-align: center;
    display: block;
    text-decoration: none;
}
.user-3 .card-header span.active a{
    background: #175caa;
}

.user-3 .card-header span.week {
    background: transparent !important;
    color: #ED2B24 !important;
    padding: 0px !important;
    margin: 0px !important;
    font-size: 30px !important;
    /*font-size: 40px !important;
    left: 15px;
    position: absolute;*/
}
.user-3 .card-body p a{
    background: #eee;
    padding: 8px;
    border-radius: 7px;
    display: block;
}
.user-3 p.active a{
    color: white;
    background: #175caa;
}
.user-3 p.current a {
    color: #fff;
    background: #ed2b24;
}
@media(max-width:768px){
    .user-3 .navbar-light .navbar-brand {
        padding-right: 19px;
    }
    .user-3 .navbar-light .navbar-toggler {
        border: none;
        outline: none;
    }
    .user-3 main.py-4 {
        min-height: 1px;
        padding: 0px !important;
    }
    .user-3 main.py-4 > .container {
        padding: 0px;
    }
    .user-3 main.py-4 > .container > .row {
        margin: 0px;
    }
    .user-3 main.py-4 > .container > .row > .col-12.col-sm-12.col-md-12 {
        padding: 0px;
    }
    .card {
        border-radius: 0px !important;
    }
}
/*visit*/
body.no-navbar-brand span.navbar-brand b {
    color: #ed2b24;
}
body.no-navbar-brand a.navbar-brand {
    /*display: none;*/
}
.objects-in-route {
    padding: 15px;
    padding-bottom: 20px;
    position: relative;
}
a.out-of-route {
    position: absolute;
    left: 15px;
    top: 19px;
    font-size: 30px;
    color: #175caa;
    text-decoration: none;
    line-height: 1;
}
a.user_added_objs {
    position: absolute;
    left: 65px;
    top: 19px;
    font-size: 30px;
    color: #444444;
    text-decoration: none;
    line-height: 1;
}
a.search-in-routes {
    position: absolute;
    right: 15px;
    top: 19px;
    font-size: 28px;
    color: #175caa;
    text-decoration: none;
    line-height: 1;
}

h3.section-title {
    color: #175caa;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
h3.section-title span {
    background: #444444;
    min-width: 40px;
    min-height: 40px;
    font-size: 16px;
    display: flex;
    color: #fff;
    border-radius: 100%;
    line-height: 1;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    letter-spacing: 1px;
}
.objects-in-route h3.section-title {
    color: #175caa;
    text-align: center;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 30px;
}
h3.section-title span#routes-cound {
    border-radius: 50%;
    background-color: #444444;
    border: 1px solid #7f7f7f;
    color: white;
    padding: 0.25em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
h3.section-title span#routes-cound:before {
    content: '';
    display: block;
    height: 0;
    width: 100%;
    padding-bottom: 100%;
    max-width:3px;
}
h3.section-title span b {
    color: #fff;
    font-weight: normal;
}
.objects-in-route .card {
    margin-top: 20px !important;
}
.objects-in-route .card-header {
    background: #fff;
    padding: 10px;
    padding-bottom: 5px;
}
.objects-in-route .card {
    margin-top: 20px !important;
}
.objects-in-route p {
    margin-bottom: 5px;
}
.objects-in-route p:last-child {
    margin-bottom: 0px;
}
.objects-in-route p.name {
    color: #175caa;
    font-size: 18px;
}
.objects-in-route p.name a {
    color: #175caa;
}
.objects-in-route p.name small {
    display: block;
    color: #888;
}
.objects-in-route p.btns {
    margin-bottom: 0px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.objects-in-route p.btns > span {
    width: 50%;
    display: flex;
    align-items: center;
}
span.btns-part-one {
    width: 40% !important;
}
span.btns-part-two {
    width: 60% !important;
}
span.btns-part-two>span {
    min-height: 38px;
}
.objects-in-route p.btns span.btns-part-two {
    justify-content: flex-end;
}
.objects-in-route p.btns span.last-order-at {
    background: #eeeeee;
    padding: 5px;
    line-height: 1;
    border-radius: 4px;
    color: #444;
}
.m-l-5 {
    margin-left: 5px;
}
.objects-in-route p.btns a {
    margin: 0px 12px;
    margin-left: 0px;
    color: #5e91de;
    font-size: 18px;
    padding: 5px;
    text-align: center;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}
/*visit view*/
.add-mobile-padding {
    padding: 15px;
    padding-bottom: 20px;
}
.add-mobile-padding .card {
    margin-top: 20px;
}


.add-mobile-padding .visit-type {
    position: fixed;
    z-index: 99;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
}

.add-mobile-padding .visit-type.opened{
    opacity: 1;
    visibility: visible;
    z-index: 99;
    pointer-events: all;
}


.add-mobile-padding .visit-type .info {
    background: #fff;
    padding: 10px;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

.add-mobile-padding .info >span {
    padding: 5px;
    display: inline-block;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin: 0px 7px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.vitited-today {
    font-size: 17px;
    padding: 5px 0px;
    margin: 20px 0px;
    font-weight: bold;
    text-align: center;
}

.add-mobile-padding .card-header.flexed {
    color: #175caa;
    text-align: center;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 5px 10px;
}

.add-mobile-padding .card-header span.badje{
    background: #444444;
    min-width: 30px;
    min-height: 30px;
    font-size: 16px;
    display: flex;
    color: #fff;
    line-height: 1;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    padding: 3px 10px;
    border-radius: 20px;
    position: absolute;
    right: 10px;
}
.start-visit {
    margin-top: 20px;
    position: sticky;
    top: 54px;
    z-index: 9;
    border-radius: 0px;
    font-size: 20px;
    color: #fff;
    background: #175caa !important;
    border: none;
}
.start-visit.btn.btn-block.btn-success a {
    color: #fff;
    margin: 9px;
    padding: 0px 5px;
    text-decoration: none;
}

.comment-wapper > p {
    /* border-bottom: 1px solid #ddd; */
    margin-bottom: 10px;
    /* padding-bottom: 10px; */
    color: #888;
}
.comment-wapper > p > i {
    margin-right: 10px;
}
.the-comment {
    padding: 5px;
    padding-left: 25px;
    position: relative;
    padding-bottom: 10px;
    background: #eee;
}
.the-comment i {
    position: absolute;
    left: 5px;
    top: 8px;
    color: #222;
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    -ms-filter: fliph;
    filter: fliph;
}
.form-group.checkbox-input label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #444;
    position: relative;
    padding-right: 40px;
}
.form-group.checkbox-input input{
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    position: absolute;
    right: 0px;
}
.form-group.file-input input.form-control {
    height: 45px;
}

.add-mobile-padding .form-group.checkbox-input {
    border-bottom: 1px solid #ddd;
}
.add-mobile-padding .form-group:last-child {
    margin-bottom: 0px;
}
.add-mobile-padding .form-group span {
    line-height: 1.1;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #444;
}

.pointevent_none {
    pointer-events: none;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }


form.disabled {
    opacity: 0.5;
    pointer-events: none;
    position:relative;
}

.spiner_overlay{
    display:none;
}
#visit-preview .modal-content.spiner .spiner_overlay {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000004a;
    z-index: 9;
}
#visit-preview .modal-content.spiner .spiner_overlay:before,
form.disabled.spiner:before {
    content: "\f110";
    position: sticky;
    top: 200px;
    left: calc(50% - 65px);
    width: 130px;
    height: 130px;
    display: flex;
    z-index: 9;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 99px;
    align-items: center;
    justify-content: center;
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
#visit-preview .modal-content.spiner .spiner_overlay:before {
    color:#fff;
}
button#locate {
    background: #444444;
    min-width: 30px;
    min-height: 30px;
    font-size: 16px;
    display: flex;
    color: #fff;
    line-height: 1;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    padding: 3px 10px;
    border-radius: 20px;
    position: absolute;
    right: 10px;
    border: none;
    outline: none;
}
.inner-link.active i {
    color: #ED2B24 !important;
}
.card-body.card-body-firm-info.closed {
    display: none;
}

.modal-dialog {
    width: 100% !important;
    max-width: calc(100% - 30px);
    margin: 20px auto;
}
span.close-modal {
    position: fixed;
    top: 8px;
    right: 8px;
    background: #fff;
    border-radius: 100%;
    padding: 0px;
    line-height: 1;
    text-align: center;
    color: red;
    font-size: 30px;
}
h3#model-object-names small {
    display: block;
}
h3#model-object-names {
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    text-align: center;
}
#search_submit,
button#add-object-form-save,
button#edit-object-form-save {
    width: 100%;
    background: #175caa;
    color: #fff;
    border: none;
    height: 36px;
    text-transform: uppercase;
}
.ajax-send.disabled {
    opacity: 0.5;
    transition: 0.5s;
    pointer-events: none;
}