@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');

.alert-danger {
    color: #f8d7da;
    background-color: #220000;
    border-color: #721c24;
}

.alert-danger button.close {
    color: #FFF;
}

.alert-danger button.close:hover {
    color: #FFF;
    opacity: 1.0;
}

html,

html,
body {
    height: 100%;
    color: #333 !important;
    font-family: 'Open Sans', sans-serif;
}



.wrap {
    height: calc(100vh - 15px);
    overflow: hidden;
    background: #CCC
}

.navbar-dark .navbar-nav a.nav-link {
    color: rgba(255, 255, 255, 1) !important;
}

.navbar-dark .navbar-nav a.nav-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer {
    height: 30px;
    background-color: #1052A1 !important;
    border-top: 1px solid #000;
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.4);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content:
        /*"\e113"*/
        "\e151";
}

a.desc:after {
    content:
        /*"\e114"*/
        "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.btn-outline-empty {
    color: hsl(40, 100%, 50%);
    border-color: hsl(40, 100%, 50%);
}

.btn-outline-empty:hover,
.btn-outline-empty.active {
    background: hsl(40, 100%, 50%);
    color: #FFF
}

.btn-outline-success {
    background: hsl(134, 31%, 91%);
    font-weight: bold;
}

.btn-outline-danger {
    background: hsl(354, 31%, 91%);
    font-weight: bold;
}

.btn-outline-primary {
    background: hsl(211, 31%, 91%);
    font-weight: bold;
}

.btn-outline-empty {
    background: hsl(40, 31%, 91%);
    font-weight: bold;
}


.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


nav#nav {
    background-color: #ED1C24 !important;
}

/* align the logout "link" (button in form) of the navbar */
.nav li>form>button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.site-login {
    margin: 40px auto 0px auto;
    width: 60%;
    border: 1px solid #CCC;
    background: #F0F0F0;
    border-radius: 8px;
    padding: 30px;
}

.site-error {
    margin: 40px auto 0px auto;
    width: 60%;
    border: 1px solid #CCC;
    background: #F0F0F0;
    border-radius: 8px;
    padding: 30px;
}


.site-login h1 {
    margin-bottom: 1em !important;
}

.breadcrumb {
    background: #444 !important;
    color: #999 !important
}

.breadcrumb li:not(.active):after {
    content: ' / ';
}

.breadcrumb>.active {
    color: #CCC !important
}

a {
    color: #FFFFFF
}

a:hover {
    color: rgb(60, 255, 252)
}

.filter {
    background: #1052A1;
    padding: 8px 0;
}

.filter .spacer {
    height: 38px;
}

#indexGrid {
    height: calc(100vh - 136px);
    margin: 0px -15px
}

label.required {
    position: relative;
    color: #F00;
}

.toggle-group label.required {
    position: absolute;
    color: #FFF;
}

/*label.required::after { content: '*'; color: #FF0000; position: absolute; left: 0.5rem; top: 0.6rem; }*/
.form-control.required {
    background: hsl(0, 70%, 90%) !important
}

.k-grid {
    border: 0;
}

.k-grid .k-grid-header {
    border: 0;
    background: #7c7c7c
}

.k-grid .k-grid-header .k-grid-header-wrap {
    border: 0;
}

.k-grid .k-grid-header .k-header {
    background: #7c7c7c;
    color: #fff;
}

.k-grid .k-grid-header .k-header a {
    background: #7c7c7c;
    color: #fff;
}

.k-grid .k-grid-header .k-header span:before {
    color: #fff;
}

.k-grid .k-grid-header th {
    border-bottom: 0;
    text-align: center;
}

.k-grid .k-grid-header th a {
    color: #fff;
    text-decoration: underline;
}

.k-grid .k-grid-header table,
.k-grid .k-grid-content table,
.k-grid .k-grid-footer table {
    border-collapse: collapse;
    width: 100%;
}


.k-grid .k-grid-header thead,
.k-grid .k-grid-content thead,
.k-grid .k-grid-footer thead {
    border-collapse: collapse;
    width: 100%;
}


.k-grid .k-grid-content {
    background: #A3A3A3;
    border: none;
}

.k-grid tbody tr td {
    background: #FFFFFF;
    color: #555;
}

.k-grid tbody tr.k-alt>td {
    background-color: #EFEFEF;
    color: #555;
}

.k-grid .k-grid-footer {
    border: 0;
}

.k-grid .k-grid-footer-wrap,
.k-grid .k-footer-template {
    border: 0;
}

.k-grid .k-grid-footer-wrap td,
.k-grid .k-footer-template td {
    background: #d9d9d9;
    border: 1px solid #d9d9d9;
    border-top: 0;
    border-bottom-color: #a9a9a9;
    text-align: center;
}

.k-grid .k-grid-footer-wrap td:first-child {
    border-left-color: #a9a9a9;
}

.k-grid .k-grid-footer-wrap td:last-child {
    border-right-color: #a9a9a9;
}

.k-grid .k-grid-footer-template td:first-child {
    border-left-color: #a9a9a9;
}

.k-grid .k-grid-footer-template td:last-child {
    border-right-color: #a9a9a9;
}

#indexGrid tr:not(.k-detail-row) {
    cursor: pointer;
}

#indexGrid tr:not(.k-detail-row):hover td {
    color: #000000;
    background: #CCCCCC;
}

.k-input:disabled,
.k-input[readonly] {
    background-color: #e9ecef !important;
}


.k-autocomplete,
.k-autocomplete.k-state-hover {
    background-color: transparent !important;
    background-image: none !important;
    background-position: 50% 50% !important;
    border: none !important;
    padding: 0px 0.75rem !important;
    width: calc(100% - 1px) !important;

}

.k-autocomplete input.k-input {
    padding: 0.375rem 0.75rem !important;
    border: 1px solid #CCC !important;
    text-indent: initial !important;
    height: initial !important;
    line-height: 1.5em;
    margin: 0 0 0 -0.75rem !important;
}

/*
.k-autocomplete.required input.k-input {
    width: calc(100% - 2px) !important
}
*/

h6 {
    font-weight: bold;
}

#itemsGrid {
    width: calc(100% - 30px);
    margin-left: 15px;
}

#itemsGrid .k-grid-header {
    padding-right: 17px !important;
}

#itemsGrid+.col-12 {
    padding-bottom: 15px;
    padding-top: 15px;
}

#allnotesGrid,
#notesGrid {
    margin-bottom: 16px;
    background: #FFFFFF;
    margin-right: 15px;
}

.k-button.k-button-icontext .k-icon,
.k-button.k-button-icontext .k-image {
    vertical-align: middle !important;
    margin-bottom: 4px;
}

#hidecost label.active .inactive {
    display: none;
}

#hidecost label.active .active {
    display: block;
}

#hidecost label:not(.active) .inactive {
    display: block;
}

#hidecost label:not(.active) .active {
    display: none;
}



input[name="make"],
input[name="model"],
input[name="vin"],
input[name="engine"],
input[name="plate"],
input[name="suppliercode"],
input[name="confcode"],
input[name="partnum"],
input[name="label"] {
    text-transform: uppercase
}



/* input[name="id"] { display: none;  }
label[for="id"] { display: none;  }
div[data-container-for="id"] { display: none;  }
div[data-container-for="id"] + div.k-edit-label { display: none;  }
*/
div[data-container-for="quantity"]+div.k-edit-label {
    display: none;
}



input[name="item"] {
    display: none;
}

label[for="item"] {
    display: none;
}

div[data-container-for="item"] {
    display: none;
}

#paymentsGrid {
    display: none;
}

#indexGrid {
    font-size: 0.9em;
}

th[data-field="rrp"],
th[data-field="cost"],
th[data-field="freight"],
th[data-field="quantity"] {
    text-align: right !important;
}

td[role="gridcell"] .menu {
    display: inline-flex;
    max-height: 30px;
    padding: 0;
    margin: 0;
}

td[role="gridcell"] .menu.flat {
    overflow: hidden;
}

td[role="gridcell"] .menu.flat .k-item>.k-link {
    padding: 3px 10px;
}

td[role="gridcell"] .menu.flat .k-last {
    border-right: none;
}

td[role="gridcell"] .k-menu .k-item>.k-link {
    padding: 3px 15px;
    line-height: 21px;
}

.k-edit-field .menu {
    display: none;
}

.k-edit-form-container select.form-control {
    box-sizing: border-box;
    width: 100%;
    padding: 0px 0.75rem
}

.k-edit-form-container textarea {
    width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
    height: 8rem;
}

.k-edit-form-container .k-edit-field input[type="text"] {
    width: 100%;
}

.k-edit-form-container .k-edit-field .k-widget.k-numerictextbox {
    width: 100%;
}

td[role="gridcell"].details span {
    display: block;
    font-size: 0.8rem;
    line-height: 1rem;
}

td[role="gridcell"].details span {
    display: block;
    font-size: 0.8rem;
    line-height: 1rem;
}

td[role="gridcell"].name,
td[role="gridcell"].description,
td[role="gridcell"].partnum,
td[role="gridcell"].vin,
td[role="gridcell"].engine,
td[role="gridcell"].licplate,
td[role="gridcell"].make,
td[role="gridcell"].model,
#make,
#model,
#email,
#address_1,
#address_2,
#suburb,
#state,
#name {
    text-transform: uppercase;
}

.k-autocomplete {
    position: relative;
}

.k-autocomplete:not(.k-state-focused):not(.k-state-populated):not(.k-state-hover)::after {
    font-family: fontawesome;
    content: '\f0d0';
    color: rgba(16, 82, 161, 1);
    font-size: 1.2rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.text-strike {
    text-decoration: line-through;
}

.bg-deleted {
    background-color: rgba(200, 0, 0, 0.1) !important;
}


td[role="gridcell"].phone,
td[role="gridcell"].email {
    white-space: nowrap;
}

td[role="gridcell"] .fa-copy {
    background-color: #6c757d;
    color: #FFF;
    padding: 5px;
}

option:hover {
    background: initial !important;
}


.toggle-handle {
    background: #FFFFFF;
}

.nav.reminders a {
    position: relative;
}

.nav.reminders i {
    font-size: 1.3rem;
    color: #1052A1;
}

.nav.reminders span {
    position: absolute;
    font-size: 0.6rem;
    background: #FFF;
    color: #000;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    border-radius: 8px;
    font-weight: bold;
    bottom: 1px;
    right: -4px;
}

.paymentState {
    position: relative;
}

.paymentState .cover {
    position: absolute;
    background: transparent;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 100;
}


.messageEditor {
    width: 600px !important;
}

#editMessage {
    margin-right: 12px;
    width: calc(100% - (1rem + 12px)) !important;
}

.caps {
    text-transform: uppercase;
}

#window textarea,
#window input,
#window select {
    box-sizing: border-box;
}

.buttonize {
    position: relative;
}

.buttonize input {
    width: calc(100% - 40px);
    border-radius: 8px 0 0 8px;
}

.buttonize a.btn {
    text-align: center;
    border-radius: 0 8px 8px 0;
    width: 40px;
    position: absolute;
    top: 0px;
    right: 15px;

}

td select#itemLocation {
    height: initial !important;
    padding-left: 0px !important;
    padding-right: 0px !important;

}

.k-grid-edit-row td .btn.edit {
    display: none;
}

td .btn.update {
    display: none !important;
}

.k-grid-edit-row td .btn.update {
    display: inline-block !important;
}

.grids.row .nav-tabs {
    width: 100%;
}

.tab-pane.note .row {
    position: relative;
}

.tab-pane.note .button {
    position: absolute;
    top: -34px;
    right: 15px;
}

.nav-tabs .nav-link {
    color: #000;
    font-weight: bold;
}

.k-alt.k-master-row .deleted {
    background-color: hsla(1, 100%, 50%, 0.1)
}

.k-master-row .deleted {
    background-color: hsla(1, 100%, 50%, 0.1)
}

.k-detail-row .deleted {
    background-color: hsla(1, 100%, 50%, 0.1)
}

.k-detail-row .k-alt .deleted {
    background-color: hsla(1, 100%, 50%, 0.1) !important;
}

#allnotesGrid .deleted,
#notesGrid .deleted {
    background-color: hsla(1, 100%, 50%, 0.1) !important;
}

.print-details {
    display: none
}

.pairToggle {
    display: none;
    border-right: none !important;
}

.pairToggle.actv {
    display: list-item;
}

.k-window .k-editor-toolbar {
    white-space: nowrap;
}

.filter .btn,
.filter .form-control {
    font-size: 0.8rem;
    padding: 0.2rem 0.75rem;
    line-height: 1.2;
}

.filter .btn {
    padding: 0.325rem 0.75rem;
}

.filter select.form-control:not([size]):not([multiple]) {
    height: calc(1.8rem - 2px);
}

.filter input.form-control {
    height: calc(1.8rem - 2px);
}

.filter .toggle.btn {
    min-height: 27px;
}

.filter .col-form-label {
    font-size: 0.8rem;
    line-height: 1.2;
}