/* Fixed Headers */

th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}

th[scope=row] {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 1;
}

th[scope=row] {
    vertical-align: top;
    color: inherit;
    background-color: inherit;
    background: linear-gradient(90deg, transparent 0%, transparent calc(100% - .05em), #d6d6d6 calc(100% - .05em), #d6d6d6 100%);
}

table:nth-of-type(2) th:not([scope=row]):first-child {
    left: 0;
    z-index: 3;
    background: linear-gradient(90deg, #666 0%, #666 calc(100% - .05em), #ccc calc(100% - .05em), #ccc 100%);
}

/* Strictly for making the scrolling happen. */

th[scope=row] + td {
    min-width: 24em;
}

th[scope=row] {
    min-width: 20em;
}

/* Fixed Headers end part */

/* Table Styles */

.table-wrapper {
    /*margin: 204px 0px 20px;*/
}

.fl-table {
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
}

.fl-table td, .fl-table th {
    text-align: center;
    padding: 8px;
}

.fl-table td {
    border-right: 1px solid #f8f8f8;
    font-size: 12px;
}

.fl-table thead th {
    color: #ffffff;
    background: #E79107;
}


.fl-table thead th:nth-child(odd) {
    color: #ffffff;
    background: #38c7ff;
}

.fl-table tr:nth-child(even) {
    background: #F8F8F8;
}


.table_img {
    position: relative;
    text-align: center;
}

.table_img::before {
    content: '-';
    position: absolute;
    line-height: 30px;
    background-color: white;
    width: 41px;
    height: 37px;
}

/*
.inputsort{
margin-bottom: 10px;
margin-left: auto;
margin-right: auto;
display: block;
margin-top: 5px;

}

*/


/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    /*display: inline-block;*/
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: inherit;

}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}

input[type=submit] {
    background-color: DodgerBlue;
    color: #fff;
    cursor: pointer;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/*for images in table*/
.table_img {
    position: relative;
    vertical-align: inherit;
}

.table_img::before {
    content: '-';
    position: absolute;
    line-height: 30px;
    background-color: white;
    width: 41px;
    height: 37px;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;


}

/*table css*/
#active_collection_image {
    text-align: left;
    vertical-align: inherit;
}

/*hide span data for table*/
.hide_available_collection_text {
    display: none;
}

/*optimise button*/
.optimize_button {
    margin-top: 10px;
    margin-left: 95px;
    padding: 5px;
    margin-bottom: 10px;
    /*by ssali*/
    border-radius: 5px;
    border: none;
    height: 45px;
    cursor: pointer;
    color: white;
    background-color: #38c7ff;;
    transform: translateX(2px);

}

/*change color on table sort*/
/*Limit the size of headers in table*/
/*@media (max-width: 767px) and (min-width: 331px) {*/
@media (max-width: 767px) and (min-width: 501px) {
    .ellipsis {
        max-width: 170px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #myproperties > tr > td {
        height: 57px;
    }

    #property_table > thead > tr > th {
        height: 57px;
    }

    #available_collection_image {
        margin: 0;
    }

    #active_collection_image {
        text-align: center;
    }

    #search_button {
        /*margin-left: -56px;*/
    }

    .hide_in_mobile {
        display: none !important;
    }

    #js-top {
        display: none !important;
    }

    #example_wrapper {
        margin-top: 60px !important;
    }

}


#property_table > tfoot > tr {
    display: contents !important;
}

/*.buttonIn {*/
/*    min-width: 325px;*/
/*    max-width: 500px;*/
/*    position: relative;*/
/*}*/

.search_class {
    position: absolute;
    top: 0;
    border-radius: 5px;
    z-index: 2;
    border: none;
    height: 45px;
    cursor: pointer;
    color: white;
    background-color: #38c7ff;;
    transform: translateX(2px);
}

/*Loader css*/
#loader-container {
    max-width: 800px !important;
}


#myproperties > tr:nth-child(odd) {
    background-color: white;
}

#myproperties > tr:nth-child(even) {
    background-color: #F8F8F8;
}

#example_wrapper > div:nth-child(1) {
    /*height: 60px;  !*The static height*!*/
    width: 100%; /*Makes it responsive to resizing the browser*/
    position: fixed; /*So that it will always be in the center*/
}

#example_wrapper > div:nth-child(2) > div {
    margin-top: 40px;
}

#example_wrapper > div:nth-child(1) {
    /*top: 12px;*/
    top: unset !important;
}

/*Put the colors to the collections that need or have a suggestion*/
#myproperties > tr.selected #active_collection_image {
    color: red;
}

#myproperties > tr.selected td.Suggested.Collection {
    color: green;
}

#myproperties > tr > td.Suggested.Collection {
    vertical-align: inherit;
}

/*To center the dashes created when there is not active collection*/
#myproperties > tr.centre-active-dash #active_collection_image {
    text-align: center;
}

#check-container {
    padding: 20px;
}

/*@media (max-width: 330px) {*/
@media (max-width: 500px) {
    .ellipsis {
        max-width: 105px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #js-top {
        display: none !important;
    }

    .hide_in_mobile {
        display: none !important;
    }

    #myproperties > tr > td.Suggested.Collection {
        border-bottom: 2px !important;
    }

    #check-container {
        padding: 20px;
    }


    #example_wrapper > div:nth-child(1) {
        margin-top: 10px !important;
        top: 112px !important;
    }
    .table-wrapper {
        margin: 170px 0px 20px;
    }

}

/*.center {*/
/*  margin: auto;*/
/*  width: 60%;*/
/*  padding: 10px;*/
/*}*/

#global_filter {
    border-radius: 10px;
    background-color: white;
    margin: 5px;
}

#searchDiv > input[type=checkbox] {
    margin: 5px;
}

#search_text {
    margin: 5px;
}

#example > tfoot > tr > td {
    border-top: 1px solid black;
}

#filter_checkbox {
    margin: 5px;
}

#check-container {
    /*position: fixed;
    z-index: 99;*/
    width: 100%;
    top:0;
    padding: 0 0 0 0px;

}
#global_filterautocomplete-list{
    position: absolute;
    top: unset;
    width: 90%;
    opacity: 0.9;
    margin-left: 5.6%;
    border-radius: 7px;
}
/*#global_filterautocomplete-list > div:nth-child(1)*/
#global_filterautocomplete-list > div:nth-child(1){
    border-top-left-radius:7px;
    border-top-right-radius:7px;
    -webkit-border-top-left-radius: 7px;
    -webkit-border-top-right-radius: 7px;
}
#global_filterautocomplete-list > div:nth-last-child(1){
    border-bottom-left-radius:7px;
    border-bottom-right-radius:7px;
    -webkit-border-bottom-left-radius: 7px;
    -webkit-border-bottom-right-radius: 7px;
}
#check-container > div{
    margin-bottom: 0px;
}