html {
    position: relative;
    min-height: 100%;
/*    overflow: hidden;*/
    scroll-behavior: smooth;
}

.row {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#bodybackground {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: alpha(opacity=40);
    z-index: -2;
}

@media print { #searchbarmid, .logoutlink, #searchresultsdiv { display: none; }}

@font-face {
    font-family: 'Museo300';
    src: url("../images/Museo300-Regular.ttf") format("truetype");
}

body {
    color: #000;
    margin: 0px;
    background-color: #fff;
    font-family: 'Museo300';
    line-height: 1.1;
    position: relative;
}

p, dir {
    COLOR: #000;
  /*FONT-SIZE: 1.9vh;*/  
    font-family: 'Museo300'; 
}

a {
    FONT-SIZE: 12px;
    FONT-WEIGHT: bold;
}

a:hover {
    text-decoration: none;
}

.logoutlink {
    color: red;
}

h4 { margin-bottom: 0px; padding-bottom: 0px; font-weight: bold; }

label { color: #555; font-weight: bold; margin-top: 20px; margin-bottom: 0px; padding-left: 0px !important; padding-right: 0px !important; }

.card-block { height: 100%; min-height: 40px; max-height: 260px; }

#submitbuttons { position: absolute; text-align: right; width: 90%; }

@media only screen and (max-width: 991px) {
    /* for mobiles only */
    .onlyformobiles { display: block; }
    .onlyformobilestab { display: block; }
    .onlyforpctab { display: none; }
    .onlyforpc { display: none; }
    .container-card { padding: 2px !important; }
    .carddiv-header { line-height: 0.9; }
    h2 { font-size: calc(18px + 1vw) !important; }
    h4 { font-size: 16px !important; }
    label { font-size: 2vh !important; }
    .form-control { font-size: 12px; padding: 4px; }
    .col-form-label { font-size: 12px; }
    .pricediv { padding: 10px; }
    .mobiledivs { background-color: rgba(255, 255, 255, 0.9); border: solid 2px black; padding: 6px; margin-bottom: 10px; text-align: left; min-height: 400px; height: 100%; }
    #bodybackground { height: 7000px; }
    #submitbuttons { bottom: 10px; margin-right: 0px; }
    #searchrow { height: 86vh; overflow-y: auto; }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* as Mobile above, but hide some elements */
    .onlyformobiles { display: none; }
    .onlyformobilestab { display: block; }
    .onlyforpctab { display: block; }
    .onlyforpc { display: none; }
    .order3divanchor { height: 10px; }
    label { font-size: 12px !important; }
    #searchrow { height: 86vh; overflow-y: auto; }
    .resalediv { padding: 0px; }
    .card-block{ height: 144px; }
}


@media (min-width: 992px) {
    /* Big screens, such as PC */
    h4 { font-size: 2vh !important; }
    .onlyformobiles { display: none; }
    .onlyformobilestab { display: none; }
    .onlyforpctab { display: block; }
    .onlyforpc { display: block; }
    .container-card { padding: 6px !important; }
    .form-control { font-size: 1.3vh; padding: 6px; }
    label { font-size: 12px !important; }
    .row.products { overflow: hidden; }
    .row.products [class*="col-"] { margin-bottom: -99999px; padding-bottom: 99999px; background-color: yellow;}
    #maindiv { visibility: hidden; background-color: rgba(255, 255, 255, 0.9); border: solid 2px black; padding: 6px; margin: 0px; text-align: left; height: 450px; }
    .mobiledivs { background-color: rgba(255,255,255,0) !important; border: none !important; padding-right: 20px; padding-left: 10px; margin: 0px; text-align: left; min-height: 450px; height: 450px; }
    #orderrow { height: 450px;}
    #searchrow { height: 450px; overflow-y: auto; }
    #submitbuttons { bottom: 30px; margin-right: 0px; }
    .resalediv { padding: 0px; }
    .card-block{ height: 14vw; max-height: 184px; }

}

#pastorderstbl_wrapper { margin-top: -30px;}
table.dataTable.table-sm>thead>tr>th { font-size: 12px; }

.btn-group-sm > .btn, .btn-sm { font-size: calc(10px + 2 * ((100vw - 320px) / 680)); line-height: 0.6; }
.nav-item { padding-left: 0px !important; padding-right: 0px !important; }

ul#tabs {
    list-style-type: none;
    margin: 10px 0 0 0;
    padding: 0 0 0.3em 0;
}

#searchrow {background-color: rgba(255, 255, 255, 0.9); border: solid 2px black; padding: 20px; margin-left: 10px; margin-right: 10px; margin-bottom: 10px; text-align: center; }

select {
    text-align-last: center;
    padding-right: 29px;
}


.row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.box-green { background: linear-gradient(#bfb, #ddd); }
.box-yellow { background: linear-gradient(#ffb, #ddd); }
.box-red { background: linear-gradient(#fbb, #ddd); }

#pastorderstbl_paginate { padding-top: 36px !important; padding-bottom: 20px; }




    /* Shrink the Past Orders table on small screens */
    /*
	Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.
	*/
    @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

        /* Force table to not be like tables anymore */
        #pastorderstbl, #pastorderstbl thead, #pastorderstbl tbody, #pastorderstbl th, #pastorderstbl td, #pastorderstbl tr {
            display: block;
        }

            /* Hide table headers (but not display: none;, for accessibility) */
            #pastorderstbl thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }

            #pastorderstbl table thead tr {
                margin: 0 0 1rem 0;
            }

                #pastorderstbl tr:nth-child(odd) {
                    background: #ccc;
                }

            #pastorderstbl td {
                /* Behave  like a "row" */
                border: none;
                border-bottom: 1px solid #eee;
                position: relative;
                padding-left: 50%;
                text-align: right;
            }

                #pastorderstbl td:before {
                    /* Now like a table header */
                    position: absolute;
                    /* Top/left values mimic padding */
                    top: 0;
                    left: 6px;
                    width: 45%;
                    padding-right: 10px;
                    white-space: nowrap;
                }

            /*
		Label the data
    You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
		*/
        #pastorderstbl td:nth-of-type(1):before {
            content: "Order/Quote";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(2):before {
            content: "Job Type";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(3):before {
            content: "Container";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(4):before {
            content: "Waste";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(5):before {
            content: "Name / Company";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(6):before {
            content: "Postcode";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(7):before {
            content: "Service Date";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(8):before {
            content: "Created Date";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(9):before {
            content: "Cost Price";
            text-align: left;
        }

        #pastorderstbl td:nth-of-type(10):before {
            content: "";
        }
    }
    /* End Table CSS */



    /* Loading Wheel CSS*/
    .lds-spinner {
    display: inline-block;
    position: relative;
    width: 192px;
    height: 192px;
}

    .lds-spinner div {
        transform-origin: 96px 96px;
        animation: lds-spinner 1.2s linear infinite;
    }

        .lds-spinner div:after {
            content: url("../images/WasteNetworkO.png");
            display: block;
            position: absolute;
            top: 30px;
            left: 29px;
            width: 5px;
            height: 14px;
            border-radius: 50%;
        }

        .lds-spinner div:nth-child(1) {
            transform: rotate(0deg);
            animation-delay: -1.1s;
        }

        .lds-spinner div:nth-child(2) {
            transform: rotate(30deg);
            animation-delay: -1s;
        }

        .lds-spinner div:nth-child(3) {
            transform: rotate(60deg);
            animation-delay: -0.9s;
        }

        .lds-spinner div:nth-child(4) {
            transform: rotate(90deg);
            animation-delay: -0.8s;
        }

        .lds-spinner div:nth-child(5) {
            transform: rotate(120deg);
            animation-delay: -0.7s;
        }

        .lds-spinner div:nth-child(6) {
            transform: rotate(150deg);
            animation-delay: -0.6s;
        }

        .lds-spinner div:nth-child(7) {
            transform: rotate(180deg);
            animation-delay: -0.5s;
        }

        .lds-spinner div:nth-child(8) {
            transform: rotate(210deg);
            animation-delay: -0.4s;
        }

        .lds-spinner div:nth-child(9) {
            transform: rotate(240deg);
            animation-delay: -0.3s;
        }

        .lds-spinner div:nth-child(10) {
            transform: rotate(270deg);
            animation-delay: -0.2s;
        }

        .lds-spinner div:nth-child(11) {
            transform: rotate(300deg);
            animation-delay: -0.1s;
        }

        .lds-spinner div:nth-child(12) {
            transform: rotate(330deg);
            animation-delay: 0s;
        }

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* End Loading Wheel */

#loadingprompt {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    background-color: white;
    border: solid 2px #444;
    border-radius: 15px;
    padding: 20px;
}




.clickspan {
    cursor: pointer;
    position: relative;
    display: block;
}

.unavailable {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(30,30,30,0.8);
    color: white;
    text-align: center;
    padding: 16px;
    font-size: calc(8px + 1.2vh);
    border-radius: 15px;
}

.container-card {
    padding: 10px;
    color: #000;
}

.card-block{ 
    background-color: #fff;
    border: solid 2px #aaa;
    border-radius: 15px;

}

.carddiv-img {
    height: auto;
    text-align: center;
    display: block;
    margin: 0 auto;
    background-color: #ff0914;
    width: 80%;
    max-width: 160px;
    max-height: 90px;
}

.card-img{ border-radius: 0; }

.moreinfo {
    font-size: 14px;
    color: black;
    padding: 2px;
    position: absolute;
    top: 35%;
    width: 90%;
    transition: .5s ease;
    opacity: 0;
    transform: translate(-50%, -50%);
    -ms-transform: translate(5%, -40%);
    text-align: center;
}


.smallprint{
    font-size: 10px;
    margin: 0px;
}



.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #ccc;
    font-style: italic;
}

.form-control::-moz-placeholder { /* Firefox 19+ */
    color: #ccc;
    font-style: italic;
}

.form-control:-ms-input-placeholder { /* IE 10+ */
    color: #ccc;
    font-style: italic;
}

.form-control:-moz-placeholder { /* Firefox 18- */
    color: #ccc;
    font-style: italic;
}