﻿/* Eliminate "Jumps" in Horizontal Centering By Forcing a Scroll Bar */
html {
    overflow-y: scroll;
    height: 101%;
}

* {
    border-radius: 0 !important;
}

.default-color {
    display:table-cell; 
    padding:6px 12px; 
    background:#e2e7eb; 
    line-height:1; 
    vertical-align:middle;
    font-size:14px;
}

.default-color i {
    display:inline-block; 
    width:16px; 
    height:16px; 
    vertical-align:text-top; 
    cursor:pointer;
}

.default-color-text {
    display:table-cell; 
    padding:6px 12px; 
    background:#e2e7eb; 
    line-height:1; 
    vertical-align:middle;
    font-size:14px;
}

.default-color-text i {
    display:inline-block; 
    width:16px; 
    height:16px; 
    vertical-align:text-top; 
    cursor:pointer;
}

.sortable-header {
    cursor:pointer;
}

.input-group-addon {
    border-left:1px solid #bfc0c3 !Important;
}

.additional-filter {
    float:right;
    margin-top:8px;
    margin-right:10px;
    color:#242a30;
}

.additional-filter input[type="checkbox"] {
    height:auto;
    vertical-align:top;
    margin-top:2px;
}

.breadcrumb > li a {
    color:white;
}

.dropdown-menu > .active > a, 
.dropdown-menu > .active > a:hover, 
.dropdown-menu > .active > a:focus {
    background: #edf0f5;
    color: #333;
}

.dropdown-menu > .selected > a {
    background: #edf0f5;
}

.register-content .form-control-feedback,
.form-group .form-control-feedback {
    display:none;
}

.has-error .form-control-feedback,
.has-warning .form-control-feedback {
    display:block;
}

.register-content .col-md-12.has-error .form-control-feedback,
.register-content .col-md-12.has-warning .form-control-feedback {
    right:5px;
}

.tab-content .alert {
    width:25%;
    margin-bottom:0px;
}

.tab-content .alert h4 {
    margin-bottom:0;
}

.bootstrap-select.mandatory {
    background-color:#ffffff;
}

.has-error .bootstrap-select {
    border:1px solid #cc4946 !Important;
}

#shopping-basket .media-body img {
    margin-right:10px;
}

#shopping-basket > ul > li > a {
    padding:10px !Important;
}

.information-icon {
    display:inline-block;
    margin-left:10px;
    vertical-align:middle;
}

.small-switchery + .switchery {
   height: 15px;
   width: 32px;
}

.small-switchery + .switchery > small {
   height: 15px;
   width: 15px;
}

.brand {
    text-align:center;
}

table.dataTable {
    table-layout: fixed;
}

table.dataTable thead th,
table.dataTable thead td,
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 5px 5px !important;
    white-space:nowrap;
    overflow:hidden;
}

.table.no-tooltips > tbody > tr > td {
    white-space:initial;
}

.product {
    padding: 10px 15px;
    width: 33.3%;
}

.image-container {
    position:relative;
    padding-bottom:62%;
}

.product-container {
    overflow: hidden;
}

.product-container .product-image {
    max-width:100%;
}

.vertical-align-middle {
    height: 100%;
    position: absolute;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.vertical-align-middle > * {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.button-container {
    padding:10px 10px 10px 10px;
    width:100%;
    background-color: #0a0909;
}

.product .product-caption {
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
}

.product-caption-background {
    background-color: #0a0909;
    height:100%;
    width:100%;
    position:absolute;
    top:0;
    z-index: -1;
    opacity: 0.6;
}

.product .product-caption-wrapper {
    z-index: 2;
    height: auto;
    position: absolute;
    color: #fff;
    margin: 0;
    width: calc(100% - 30px);
    width: calc(100% - 30px);
}

.alert-default {
    color: #444;
    background-color: #d9e0e7;
    border-color: #d3d3d3; 
}

.alert-default #options {
    padding: 5px;
}

.alert-default .btn-circle {
    margin: 5px 0;
}

.force-overflow {
    overflow:auto !Important;
}

.sidebar .nav > li > .menu-search {
    padding: 8px 20px;
    line-height: 20px;
    color: #a8acb1;
}

.sidebar .nav > li > .menu-search > input[type='text'] {
    width:140px;
    display:inline-block;
    margin-left:10px;
}

.page-sidebar-minified .menu-search-holder {
    display:none;
}

.table td {
    /*-webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);*/
}

.table tr:hover td,
.table td.text-right,
.table td.text-center,
.table td.no-mask,
.table.no-mask td,
.table td:hover {
    -webkit-mask-image: none !important;
}

.top-0{
    top: 0;
}

.table.table-payment-summary tr td.value.delivery-address {
    word-wrap: break-word;
    white-space: normal;
}

@media (max-width: 1200px) {
    .product {
        width: 49.5%;
    }
}

@media (max-width: 600px) {
    .product {
        width: 100%;
    }

    .dataTables_filter label,
    .additional-filter {
        float: none !important;
    }

    .catalogue-search.dataTables_filter {
        text-align: center;
    }

    .catalogue-search.dataTables_filter label {
        display: block;
        margin: auto 0;
        float: none !important;
    }

    .filter-switch-stock {
        margin-bottom: 5px;
        text-align: center; 
    }

    .theme-panel {
        display: none;
    }

    .sortable-info {
        display: none;
    }
}

@media (max-width: 400px) {
    .navbar-brand small,
    #shopping {
        display:none;
    }
    .navbar-nav > li > a {
        padding-left:5px;
        padding-right:5px;        
    }
    .navbar-user img {
        width:20px;
        height:20px;
        margin-top:0px !Important;
    }
    .navbar-form.full-width {
        padding-left:0px;
    }

    .catalogue-search.dataTables_filter .btn {
        margin-top: 5px;
    }

    .table.table-payment-summary {
        margin-bottom: 15px
    }

    .table.table-payment-summary td,.table.table-payment-summary th {
        font-size: 14px;
        display: block;
        width: 100%!important;
        text-align: left!important;
        padding-left: 0;
        padding-right: 0
    }

    .table.table-payment-summary td:after,.table.table-payment-summary td:before {
        content: '';
        display: table;
        clear: both
    }

    .table.table-payment-summary .product .product-img {
        width: 80px
    }

    .table.table-payment-summary .product .product-info {
        margin-left: 90px
    }

    .table.table-payment-summary .field {
        padding-bottom: 0
    }

    .table.table-payment-summary .value {
        border-top: none;
        padding-top: 0
    }

    .table.table-payment-summary .product {
        padding-top: 5px
    }

    .summary-container {
        padding: 0;
    }

    .default-color {  
        display: none;
    }

    .default-color-text {  
        display: none;
    }

    .colorpicker-component input {
        width: 100% !important;
    }
}

.tooltip-inner {
    word-wrap:break-word;
}

.table thead tr th:not(.text-center) {
    padding-right:20px !important;
    text-overflow:ellipsis;
}

.cursor-default
{
    cursor : default !important;
}

.checkbox
{
    padding-left : 15px !important;
}

.width-50
{
    width : 50% !important;
}

.width-100
{
    width : 100% !important;
}

#form_Home_Page > div:nth-child(1) > div > div {
    margin-bottom:0;
}

.btn-group .btn-primary {
    height:34px;
}

.table.table-payment-summary {
    table-layout: fixed;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px
}

.table.table-payment-summary td,.table.table-payment-summary th {
    padding: 10px 15px;
    font-size: 16px
}

    .table.table-payment-summary .field {
        font-weight: 600;
        /*
        text-align: right;
        width: 50%
        */
        width: 25%
    }

    .table.table-payment-summary .value {
        width: 75%
    }

.basket-summary table td {
    cursor: default;
}

.lb-dataContainer {
    background-color: #222;
}

.lb-details {
    padding: 10px;
}

.lb-caption {
    color: white;
    line-height: 16px !important;
    white-space: pre-wrap;
    font-weight: normal !important;
}

.lb-caption h3 {
    margin-bottom: 0;
    margin-top: 0;
    color: white;
}

.empty-field {
    height: 34px;
}

.bootstrap-select.btn-group:not(.input-group-btn) {
    margin-bottom: 0 !important;
}

.inline-block {
    display: inline-block;
}

.fileinput-button {
    height: 33px;
}

.dataTables_filter .btn { 
    height: 34px;
}

.summary-container {
    padding: 40px;
    color: #333;
}

.btn {
    border: none;
}

#tbodyStockItems .alert-danger {
    white-space: normal;
}

.btn-header {
    float:right;
    margin-top:-2px;
}

.page_size, .search_filter {
    border: 1px solid #ccd0d4;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.field-error {
    border-color:#ff5b57;
}

.hidden {
    display: none;
    visibility: hidden;
}

.glyphicon.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

/* switch [ */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch.switch-small {
    width: 32px;
    height: 17px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider.slider-small:before {
        height: 15px;
        width: 15px;
        left: 1px;
        bottom: 1px;
    }

/* this styling is in the db table
input:checked + .slider {
    background-color: [colour];
}

input:focus + .slider {
    box-shadow: 0 0 1px [colour];
}
*/
input:checked + .slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px !important;
}

.slider.round:before {
    border-radius: 50%;
}
/* ] switch */

.tab-table-loader {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #E6E8EC;
    z-index: 3;
    height: 100%;
    width: 100%;
}

/* Basket File Upload [*/
.upload-result {
    font-size: x-small;
}
.upload-result-ok {
    color: mediumseagreen;
}
.upload-result-ng {
    color:crimson;
}
/* ] Basket File Upload */

/* login page - change language */
#login_change_language {
    display: inline-block;
}

#login_change_language .navbar-default,
#login_change_language .nav > li > a:hover, #login_change_language .nav > li > a:focus,
#login_change_language .nav .open > a, #login_change_language .nav .open > a:focus, #login_change_language .nav .open > a:hover {
    background-color: transparent;
}

.invlink-source {
    display: none;
}

table.table tbody tr td.text-right.td-text-left {
    text-align: left !important;
}

.btn.btn-default.btn-sm.item-fileupload {
    white-space: normal;
}

.status-filter {
    margin-top: 0;
    color: #242a30;
    height: 2.5em;
}

/* min-height to accomodate dropped-down contract status filter */
#tblContracts_Form ~ div.panel div.panel-body div.table-responsive {
    min-height: 18em;
}

/* saviour of many things - nicely truncates overflow text */
.btn.AddToBasket, #cSearchMenu, input.search_control, .date-range-label, .btn.btn-block.btn-primary.view-stock {
    overflow: hidden;
    text-overflow: ellipsis;
}

#iControlType button {
    margin-bottom: 5px;
    margin-right: 5px;
}

#cAdditionalInfo button {
    margin-bottom: 5px;
    margin-right: 5px;
}

/* System Configuration - nCatalogueItemSize [ */
.item-size-1250 {
    width: 12.5%;
    padding: 3px;
}
    .item-size-1250 .product-caption-wrapper {
        width: calc(100% - 8px);
    }
        .item-size-1250 .product-caption-wrapper .product-caption {
            font-size: 10px;
            white-space: normal;
        }

.item-size-2500 {
    width: 20%;
    padding: 5px;
}
    .item-size-2500 .product-caption-wrapper {
        width: calc(100% - 12px);
    }
        .item-size-1250 .product-caption-wrapper .product-caption {
            font-size: 14px;
        }

.item-size-3330 {
    width: 33.3%;
    padding: 10px;
}
    .item-size-3330 .product-caption-wrapper {
        width: calc(100% - 21px);
    }
        .item-size-1250 .product-caption-wrapper .product-caption {
        }
/* ] System Configuration - nCatalogueItemSize */

div.product-container
{
    border: thin ridge silver !important;
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
}

div .product-caption-background, a.btn-primary.option {
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
}

/*
    make the div.pace static to put it back into 
    the 'Elements render in order, as they appear in the document' flow.
*/
div.pace.pace-active {
    position: static;
}

tr[data-fixed-field='true'] td {
    cursor: default;
}

.btn.btn-export {
    margin-left: 0.23em;
}
.export-icon {
    margin-right: 0.25em;
}

.accessories-show {
    display: table-cell;
}
.accessories-hide {
    display: none;
}

/* modal overlay [ This is different from the bootstrap modal() */
/* The Modal (background) */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-overlay .modal-content {
    position: relative;
    width: 50%; /* Could be more or less, depending on screen size */
    height: 25%;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 3px !important;
}
.modal-overlay .modal-buttons {
    position: absolute;
    bottom: 0.25em;
    right: 0.25em;
}

/* The Close Button */
.modal-overlay .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
    .modal-overlay .close:hover,
    .modal-overlay .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
/* ] modal overlay */

div.rate-name {
    height: 34px;
}

/* workaround until the items-per-page, search and sorting is implemented - WP-304 [ */
.pnlForm #data-table_length, .pnlForm .dataTables_filter {
    display: none;
}

.pnlForm table.dataTable thead th {
    background-image: none;
}
/* ] workaround until the items-per-page, search and sorting is implemented - WP-304 */

.fade.in {
    opacity: 1;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-backdrop.in {
    opacity: 0.5;
}

/* basket stock check [ */
.invalid .quantityBoxHolder input {
    border: 3px solid orangered;
}

#tbodyBasketSummaryItems td:first-child::before,
.CartItemRow td:first-child::before,
.CartItemAccessoryRow td:first-child::before {
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #317f43;
    content: "\f058"; /* fa-check-circle */
}

#tbodyBasketSummaryItems .invalid td:first-child::before,
.CartItemRow.invalid td:first-child::before,
.CartItemAccessoryRow.invalid td:first-child::before {
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #ff0000;
    content: "\f057"; /* fa-times-circle */
}
/* ] basket stock check */

.testcerts-list-loader {
    position: absolute;
    left: 0;
    top: 0;
    margin-left: calc(50% - 16px);
    margin-top: 8px;
}

.dataTables_filter.status-filter.filter-switch-stock div[class*="col-"]::before,
.switch-label-container::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

div.dataTables_filter span.align-top {
    display: inline-block;
    vertical-align: middle;
    color: #242a30;
}

.user-parmset {
    position: absolute; 
    right: 0; 
    font-weight: bold;
    white-space: nowrap
}

#status_filter .filter-switch-stock .switch-label {
    content: ''; /* for :before and :after to work you need to give them content */
    color: #242a30;
}

.search-clear-container {
    position: relative;
    display:inline-block;
}

.glyphicon.glyphicon-remove-circle.search_control_clear {
    right: 1em;
}

.switch-label-container {
    float: left;
    height: inherit;
    /*padding-left: 0.75em;*/
}

select#cNumberFormat {
    width: 100%; 
    text-align: right; 
    text-align-last: right;
}

/* telematics [ */
.asset-infowindow
{
    padding-left: 1.5em;
}

.gm-style .gm-style-iw-c {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    top: 0;
    left: 0;
    transform: translate(-50%,-100%);
    background-color: white;
    border-radius: 8px !important;
    padding: 12px;
    box-shadow: 0 2px 7px 1px rgba(0,0,0,0.3);
}

.gm-style .gm-style-iw {
    font-weight: 300;
    font-size: 13px;
    overflow: hidden;
}

.overlay.standard {
    height: 93vh;
}
    .overlay.standard .telematics-loader-container {
        position: relative;
        display: inline-block;
        top: 35vh;
        left: 45vh;
    }

        .overlay.standard .telematics-loader-container .telematics-loader {
            opacity: 1;
            font-size: 1.5em;
        }

    .overlay.standard .telematics-loader-container img {
        display: inline-block;
        margin: 0 auto;
    }

div.telematics-loader p span.result {
    display: none;
}

.result.glyphicon {
    font-weight: 600;
}

.contractitems-loader-container {
    position: relative;
    display: block;
}
    .contractitems-loader-container .contractitems-loader {
        position: absolute;
        width: 100%;
        height: 100%;
    }

/* reposition the infowindow close (x)
button.gm-ui-hover-effect {
    top: 0 !important;
    right: 0 !important;
}
*/

.asset-table {
    display: inline;
}
.asset-table .asset-row {
    display: table-row;
}
/* ] telmatics */

#cCompanyAccountNo[readonly="readonly"] {
    cursor: default;
}

/* re-round switchery */
.switchery {
    border-radius: 20px !important;
}
    .switchery > small {
        border-radius: 100% !important;
    }

.selectpicker ~ button.label.label-theme {
    font-size: 100%;
}

.btn > .filter-option > .filter-option-inner > .filter-option-inner-inner {
    line-height: 1.428571429;
}

#company_accounts .overlay.standard {
    z-index: 99;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background-color: #707478;
    opacity: 0.6;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
}

#orderError.orderMessage {
    color: red;
}

/* account reference validation autocomolete */
.clear {
    clear: both;
    margin-top: 20px;
}

#referenceLookupResult {
    list-style: none;
    padding: 0px;
    width: 250px;
    position: absolute;
    margin: 0;
    z-index: 1;
    background-color: white;
}

    #referenceLookupResult li {
    border: 1px solid #d3d3d3;
        padding: 4px;
        margin-bottom: 1px;
        z-index: 1;
    }
        #referenceLookupResult li:hover {
            background-color: #3297FD;
            color: white;
        }

input#cReferenceLookup {
    padding: 5px;
    width: 250px;
}

#modal_dialogue .modal-message .testcerts-multiple-layouts {
    margin-top: 2em;
}
#modal_dialogue .modal-message .testcerts-multiple-layouts label {
    display: inline-block;
}
#modal_dialogue .modal-message .testcerts-multiple-layouts label span {
    vertical-align: middle;
}
#modal_dialogue .modal-message .testcerts-multiple-layouts input {
    vertical-align: middle;
}

/* WP-785 [ allow for Filter Options dropdown */
div.pnlTable div.panel-body div.table-responsive div#data-table_wrapper {
    min-height: 35vh;
}
/* ] WP-785 */

/* WP-573 [ */
.date-unavailable {
    text-decoration: line-through;
    color: red !important;
}

tr.blocked-date td {
    border-right-width: 0;
}
tr.blocked-date td:not(:first-child) {
    border-left-width: 0;
    border-top-width: 0;
}

.timepicker .input-group-addon i {
    cursor: pointer;
}
/* ] WP-573 */

/* WP-249 [ */
i.currency-symbol {
    position: absolute;
    display: block;
    transform: translate(0, -50%);
    top: 50%;
    pointer-events: none;
    width: 25px;
    text-align: center;
    font-style: normal;
}
/* ] WP-249 */

/* WP-895 [ */
label[for="QRCODE"] ~ div div.empty-field {
    height: 150px;
}

.text-align-center {
    text-align: center;
}

[data-doctype="1.0"] span {
    transition: color 100ms ease-in-out;
    -o-transition: color 100ms ease-in-out;
    -ms-transition: color 100ms ease-in-out;
    -moz-transition: color 100ms ease-in-out;
    -webkit-transition: color 100ms ease-in-out;
    color: #337ab7;
    text-decoration: underline;
    background-color: transparent;
    font-size: 1.5em;
}
/* ] WP-895 */

#lightbox {
    display: flex;
    flex-direction: column;
}

    #lightbox .lb-dataContainer {
        order: 0;
    }

        #lightbox .lb-dataContainer .lb-closeContainer {
            padding: 3px;
        }
        
        #lightbox .lb-dataContainer .lb-close {
            background-size: contain;
            background-repeat: no-repeat;
            background-position: right;
        }

    #lightbox .lb-outerContainer {
        order: 1;
    }