.filter-table td, .filter-table th {
    position: relative;
}

.filter-options {
    position: absolute;
    right: 0;
    padding: 0 0 0 3px;
    background-color: #fff;
    display: none;
    color: #333;
}

.sorting-modes {
    display: inline-block;
    float: right;
    margin-right: 30px;
}

.sorting-modes {
    cursor: pointer;
}

.filters label {
    display: block;
    margin: 10px; 
}

.filters .panel-body {
    max-height: 350px;
    overflow-y: scroll;
}

th:hover .filter-options, td:hover .filter-options {
    display: inline-block;
    cursor: pointer;
}

.modal-header .close {
    margin-top: -22px;
}

i.inactive {
    color: #aaa;
}

i.active {
    font-weight: bold;
}

.product {
    cursor: pointer;
}

.product:hover td {
    background-color: #d8d8d8 !important;
}

td.ajax-loading {
    height: 100px;
    background: url("/images/spinner.gif") no-repeat center !important;
}

td.ajax-loading div {
    display: none;
}

div.ajax-loading {
    background: url("/images/spinner.gif") no-repeat center !important;
    background-color: #fff;
    height: 100px;
}

textarea.ajax-loading {
    overflow: hidden;
    resize: none;
    background-color: #ffffff;
    background-image: url("/images/spinner.gif");
    background-size: 21px 21px;
    background-position: right 5px center;
    background-repeat: no-repeat;
}

div.ajax-loading div {
    display: none;
}

.glyphicon {
    vertical-align: -1px;
}

.multiple-vendors {
    color: red;
}

.item-details {
    background-color: white;
}
.item-details > td {
    border-top: none !important;
    position: relative;
}

.item-image img {
    max-height: 50px;
}
.item-image a.image-download-icon {
    display: block;
    position: absolute;
    text-align: center;
    font-size: 28px;
    width: 30px;
    height: 30px;
    left: 0;
    bottom: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    background-color: rgba(255,255,255,0.8);
    border-radius: 6px;
}
.item-image:hover a.image-download-icon {
    opacity: 1;
}

.item-details .permalink {
    position: absolute;
    bottom: 22px;
    right: 14px;
    z-index: 10;
}

.ajax-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.8);
    /* background-image: url("/connector-nav/watermark.gif"); */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
}

input.text-center.form-control {
    padding-left: 0px;
    padding-right: 0px;
}
#header {
    display: none;  /* show on small screens only */
    height: 60px;
}

#small-display-logo {
    display: inline-block;
    margin: 15px 0px 0px 15px;
    max-width: 55%;
}

#view-preferences-name {
    display: inline-block;
}

@media (max-width: 1199px) {
    .sidebar {
        margin-top: auto;
    }
    .cms-button {
        display: none !important;
    }
}

.navbar-toggle {
    font-size: 20px;
    margin-bottom: 0;
}
@media (min-width: 992px) {
    #search-bar {
        display: block !important;
        height: 50px;
    }
    #top-bar {
        display: block !important;
        height: 37px;
    }
}
@media (max-width: 991px) {
    #header {
        display: block;
    }
    #search-bar {
        display: none;
        height: auto;
    }
    #search-bar li {
        float: none !important;
    }
    #search-wrapper {
        float: none;
        padding-right: 0;
    }
    #search-wrapper .form-control {
        display: inline-block;
    }
    #search-wrapper .form-group {
        margin-bottom: 0;
    }
    #main-menu .nav > li {
        margin-left: 15px;
    }
    #main-menu .nav > li.active a {
        border-bottom: none;
    }
}
.thumbnail {
    padding: 0;
    border: 0;
    white-space: nowrap;
}
.thumbnail > img {
    display: inline-block;
    max-width: none;
}
.heading {
    margin-bottom: 16px;
}

.filters .accordion .panel.open .accordion-toggle {
    color: #333;
    background-color: inherit;
}

#filter-box {
    height: auto!important;
    padding: 20px 10px 0 10px;
}

@media (max-width: 1199px) {
    #filter-box-container {
        margin-bottom: 2em;
    }
}

label.disabled {
    color: #aaa;
}

.table-middle-valign thead>tr>th, .table-middle-valign tbody>tr>th, .table-middle-valign tfoot>tr>th, .table-middle-valign thead>tr>td, .table-middle-valign tbody>tr>td, .table-middle-valign tfoot>tr>td {
    vertical-align: middle;
}
.description p {
	margin: 0;
}
.feature-table thead>tr>th:first-child, .feature-table tbody>tr>td:first-child{
	padding-left: 0;
}
label {
	font-weight: 600;
}
.label {
	font-weight: 600;
}
.status-ex {
	font-size: 12px;
	line-height: 1.75em;
}
.status-ex h4 {
	font-size: 12px;
}
.status-ex h4 a:hover {
	text-decoration: none;
}
.nowrap {
    white-space: nowrap;
}
#history-order-header .row > div, #history-order-header .row {
    margin-bottom: 0;
}
#history-order-header div.row div.history-order-field {
    margin-bottom: 16px;
}
#history-order-header div.row div {
    padding-left: 22px;
}
.history-order-table s {
    background-color: #f2dede;
}
.status-ex .panel.open .accordion-toggle {
    color: #333;
    background-color: inherit;
}
.item-card-details table.item-card-detail-table td:first-child {
    font-weight: 600;
    padding-right: 5px;
}
h3.heading a {
    color: #444;
}
h3.heading a:hover {
    text-decoration: none;
}
table.table-hover > tbody > tr:hover > td.prod-image-cell {
    background-color: #ffffff;
}
table.js-item-table > thead > tr > th {
    min-width: 105px;
    font-size: 12px;
    padding: 2px 5px;
}
table.js-item-table > tbody > tr[data-link="item_head_row"] > td {
    white-space: nowrap;
    background-color: white;
}
table.js-item-table > thead tr:nth-child(1) th {
    background: white;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #e7e7e7;
    -webkit-transform: translateZ(0); /* rendering fix for chrome */
}
table.js-item-table > tbody > tr > td {
    padding: 5px;
}
table.js-item-table > tbody > tr.consolidated-customer > td {
    border-top: none;
    padding: 1px 8px;
}
table.js-item-table > tbody > tr.consolidated-customer input.input-sm {
    height: 25px;
    margin-right: 2px;
}
table.js-item-table > tbody > tr.spacer-row:hover > td {
    background-color: transparent;
}
table.js-item-table > tbody {
    border: none;
}

td.note {
    font-style: italic;
}

/* News */

.row.ecm-news-item {
    margin: 0;
}

.row.ecm-news-item {
    border-top: solid 1px #ddd;
    margin-bottom: 0;
}

.ecm-news-item h1 {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
}

.ecm-news-item {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Demo system logo */
#jumbotron {
	display: none; /* TEMP */
}
#site-logo {
    position: absolute;
    top: 54px;
    left: 20px;
    font-family: "PT Sans Narrow";
    text-align: right;
}
#logo-line-1 {
    font-size: 32px;
    color: #E83324;
}
#logo-line-1-2 {
    color: #3b3b3b;
}
#logo-line-2 {
    font-size: 12px;
    color: #3b3b3b;
}
#site-logo a:hover {
    text-decoration: none;
}
@media (max-width: 991px) {
    #site-logo {
	top: 16px;
    }
    #logo-line-1 {
	font-size: 26px;
    }
    #logo-line-2 {
	display: none;
    }
    #top-bar {
        display: none;
        position: static;
        padding: 0 7px;
        margin-left: 0;
        background-color: #eee;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        height: auto;
        background-color: #fff;
    }
    #top-bar .nav {
        float: none !important;
    }
    #top-bar .nav > li {
        float: none;
    }
    #top-bar .nav > li > a {
        padding-right: 25px;
        padding-left: 25px;
        font-size: 13px;
    }
}
tr.error {
    background-color: #f2dede;
}


.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_width: 160px;
padding: 4px 0;
margin: 2px 0 0 0;
list-style: none;
background-color: #ffffff;
background-image: none;
border-color: #ccc;
border-color: rgba(0, 0, 0, 0.2);
border-style: solid;
border-width: 1px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
*border-right-width: 2px;
*border-bottom-width: 2px;
}
 
.ui-menu-item > a.ui-corner-all {
display: block;
padding: 3px 15px;
clear: both;
font-weight: normal;
line-height: 18px;
color: #555555;
white-space: nowrap;
}

&.ui-state-hover, &.ui-state-active {
color: #ffffff;
text-decoration: none;
background-color: #0088cc;
border-radius: 0px;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
background-image: none;
}

.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 999px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* Packaging quantity input boxes (order page) */
.packaging-quantities > div {
    display: inline;
    width: 46px;
    margin: 0 2px;
}
.packaging-quantities > div > p {
    text-align: center;
    margin: 2px 0 0 0;
    font-size: 10px;
    white-space: normal;
}
.packaging-quantities > div > input {
    text-align: center;
    height: 30px;
    font-size: 12px;
}
.packaging-quantities .minus-plus-buttons {
    margin-top: 2px;
}
.packaging-quantities .minus-plus-buttons button {
    width: 22px;
    height: 20px;
    line-height: 20px;
    padding: 0;
}
.packaging-quantities .minus-plus-buttons button:focus {
    outline: none;
}
.packaging-quantities .minus-plus-buttons button:first-child {
    margin-right: 2px;
}
.packaging-quantities > div:last-child {
    text-align: center;
    width: 50px;
}
.packaging-quantities > div:last-child input {
    border-width: 2px;
    font-size: 14px;
}

/* Bootstrap popover adjustments for packaging quantity -/+ button tooltips. */
.popover {
    pointer-events: none; /* fix flickering issue */
}
.popover .popover-content {
    padding: 4px 9px;
}

/* Quick Order */

.js-qo-uom {
	display: none; /* temp */
}
.js-grand-total {
	font-weight: 600;
}
#quickorder textarea.ui-autocomplete-input {
    resize: none;
    height: 34px;
    vertical-align: middle;
}

/* Advanced media (very small displays) */

.integrated-item-no {
    display: none;
}

@media (max-width: 767px) {
    .integrated-item-no {
        display: inline;
    }
    #selso-ecm {
        text-align: left;
    }
}

@media (min-width: 768px) {
    #item-list-top-right-panel {
        text-align: right;
    }
}

@media (max-width: 599px) {
    .hidden-tiny {
        display: none;
    }
    #form_order > * {
        font-size: 85%;
    }
    .product > * {
        font-size: 85%;
    }
    .history-order-table > * {
        font-size: 85%;
    }
    .finance-table > * {
        font-size: 85%;
    }
    #quickorder table > * {
        font-size: 85%;
    }
}

@media (max-width: 479px) {
    h2 {
        font-size: 20px;
    }
    .hidden-tinyest {
        display: none !important;
    }
    #form_order table .form-control {
        width: 30px !important; /* item qty */
        padding: 0;
    }
    #quickorder table .form-control {
        padding: 0;
    }
    #save_draft {
        float: right;
        margin-top: 10px;
    }
}

#login-sidebar-content {
	padding: 15px 15px;
	font-size: 12px;
	line-height: 1.75em;
}
#login-sidebar-content p {
        margin-bottom: 0;
}

#login-btn {
	margin-right: 12px;
	margin-bottom: 12px;
	padding-left: 20px;
	padding-right: 20px;
}

#login-additional-links, #login-additional-links a {
	vertical-align: bottom;
}

.login-btn-oauth {
	margin-bottom: 8px;
}
.login-section-caption {
	margin-bottom: 20px;
	font-size: 12px;
}
#login-form {
	border-right: 1px solid #e7e7e7;
}
#login-oauth {
	text-align: right;	
}

#tab-profile, #tab-password {
	padding: 30px 15px;
}

.form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline {
	padding-top: 0;
}
.radio, .checkbox {
	margin-top: 0;
}

/* Vehicle Selector */

#vehicle-selector .form-group, #vehicle-selector strong {
	padding-left: 15px;
}
#vehicle-selector .alert {
	margin-left: 15px;
}
#vehicle-reset-button {
	margin-top: 8px;
}

.table.table-borderless th, .table.table-borderless td {
	border-top: 0;
}
.table.table-borderless {
	margin-bottom: 0;
}
