﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: #ede2b5;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

tr {
    border-bottom: solid 1px #ccc;
}

th.sortable {
    cursor: pointer;
}

th img {
    height: 20px;
    padding-left: 5px;
}

th, td {
    padding: 5px;
}

td.ff_col, td.eg_col {
    text-align:center;
}

label {
    font-weight: normal;
}

input[type="radio"] {
    margin-left: 10px;
}

/*
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 */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #777;
        margin-bottom: 20px;
    }

    td, td.ff_col, td.eg_col {
        /* Behave  like a "row" */
        border: none;
        /*border-bottom: 1px solid #eee;*/
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align:left;
    }

    /*
	Label the data
	*/
    td:nth-of-type(1):before {
        content: "UPC";
    }

    td:nth-of-type(2):before {
        content: "Description";
    }

    td:nth-of-type(3):before {
        content: "Brand";
    }

    td:nth-of-type(4):before {
        content: "Size";
    }

    td:nth-of-type(5):before {
        content: "Department";
    }

    td:nth-of-type(6):before {
        content: "Category";
    }

    td:nth-of-type(7):before {
        content: "FF price";
    }

    td:nth-of-type(8):before {
        content: "EG price";
    }

    td:nth-of-type(9):before {
        content: "FF in stock";
    }

    td:nth-of-type(10):before {
        content: "EG in stock";
    }

    #btnSearch {
        width: 100%;
        margin: 10px 0;
    }
}

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

.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;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
    cursor: pointer;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}