:root {
    --primary: #FF8900;
    --dark-color: #343a40;
    --light-color: #007bff;
    --white: #fff;
    --red: #ff0000;
    --orange: #ff9900;
    --yellow: #ffff00;
    --blue: #4a86e8;
    --blue-electric: #0892D0;
    --blue-royal: #4285f4;
    --blue-ashy: #ced4da;
    --cyan: #00ffff;
    --purple: #9900ff;
    --pink: #ff00ff;
    --pink-glacier: #c387bf;
    --grey: #e1e1e2;
    --grey-light: #f2f2f2;
    --grey-dark: #474848;
    --grey-davys: #555;
    --green: #92d050;
    --green-secondary: #00FF00;
    --green-dark: #6AA84F;
    --black: #000;
    --cantaloupe: #fda172;
  }

.login-box button,
.login-box .input-group-text {
    background-color: var(--primary) !important;
    border: var(--primary) !important;
}

.login-box .card-primary.card-outline {
    border-top: 3px solid var(--primary);
}

.login-box button {
    color: var(--white) !important;
}

.login-box .icheck-primary>input:first-child:not(:checked):not(:disabled):hover+label::before {
    border-color: var(--primary);
}

.login-box .icheck-primary>input:first-child:checked+label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.login-box button:hover {
    background-color: var(--primary) !important;
    border: var(--primary) !important;
}

.bg-color-dark {
    background-color: var(--dark-color);
}

.bg-color-primary {
    background-color: var(--primary);
}

#page-alerts-wrap .alert h4.alert-title>p {
    margin: 0 !important;
    display: inline !important;
}

#page-alerts-wrap .alert h4.alert-title {
    font-size: 1.1em !important;
}

#page-alerts-wrap .alert h4.alert-title.no-note {
    margin: 0 !important;
}

#template-default .brand-link img.brand-image {
    opacity: 1;
    width: 100%;
    max-width: 200px;
    float: none !important;
    max-height: 100%;
}

#template-default .brand-link img.brand-image-text {
    height: 30px;
    position: relative;
}

.sidebar-mini.sidebar-collapse .nav-sidebar .nav-header {
    display: inline-block !important;
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .nav-sidebar .nav-header>span {
        opacity: 0;
    }
}

.sidebar-collapse .main-sidebar.sidebar-focused .nav-header>span,
.sidebar-collapse .main-sidebar:hover .nav-header>span {
    opacity: 1;
}

.warehouse-box .inner {
    height: 170px;
    overflow: hidden;
}

.warehouse-box.new-wh a.inner {
    display: table;
    text-decoration: none;
    width: 100%;
    position: relative;
    z-index: 9;
}

.warehouse-box.new-wh a.inner h3 {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    font-size: 3em;
}

.img-preview img {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
}

ul.radio-list {
    list-style-type: none;
    padding-left: 0;
}

ul.radio-list>li>ul.radio-list {
    padding-left: 1.5em;
}

img.product-table-image {
    width: auto;
    height: auto;
    max-width: 75px;
    max-height: 75px;
}

#inp-code-value,
.inp-code-hidden {
    opacity: 0;
    z-index: -1;
    position: fixed;
    left: -9999px;
    top: -9999px;
}

#inp-code-value-formatted,
.inp-code-readonly {
    border: none !important;
    background: none !important;
    outline: none !important;
    padding: 20px;
    font-size: 2em;
    font-family: "Courier New", monospace;
    font-weight: bold;
    display: inline-block;
}

.code-wrap {
    position: relative;
}

.code-wrap .code-wrap-boxes-left:before,
.code-wrap .code-wrap-boxes-left:after,
.code-wrap .code-wrap-boxes-right:before,
.code-wrap .code-wrap-boxes-right:after {
    content: "";
    display: block;
    position: absolute;
}

button.has-tooltip {
    position: relative;
}

button.has-tooltip>span.tooltip {
    visibility: hidden;
    width: 170px;
    background-color: var(--grey-davys);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 8px 6px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -86px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

button.has-tooltip:hover span.tooltip {
    opacity: 1;
    visibility: visible;
}

button.has-tooltip span.tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--grey-davys) transparent transparent transparent;
}

[class*="sidebar-dark-"] .nav-sidebar>.nav-item>.nav-treeview {
    padding-left: 10px;
}

#costumer-products-table .remove-row {
    vertical-align: middle;
    cursor: pointer;
}

.show-more-tr,
.hide-more-tr {
    cursor: pointer;
}

.btn .fas {
    padding-right: 5px;
}

tr td {
    vertical-align: middle !important;
}

.wdb-devider {
    background-color: var(--blue-ashy);
    padding-top: 1px;
    width: 98%;
    margin: 0 auto;
}

.card-footer {
    background-color: var(--white);
}

.card-footer-controls {
    display: flex;
}

.card-header .card-tools .input-group {
    margin-top: 0px;
    max-width: 250px;
    width: auto;
}

.card-header .card-tools form {
    display: flex;
    justify-content: space-between;
    margin-left: 10px;
}

.card-tools {
    display: flex;
    justify-content: flex-end;
}

.card-header .card-tools .btn:not(:last-child) {
    margin-right: 5px;
}

.nav-tabs .nav-link {
    color: var(--black);
}

.nav-tabs .nav-link.active {
    font-weight: bolder;
}

.btn-return {
    background: transparent;
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.btn-return:hover {
    color: var(--light-color);
}

.card-pagination .pagination li {
    border-radius: 5px;
    border: 1px solid var(--light-color);
    margin: 0px 2px;
    cursor: pointer;
}

.card-pagination .pagination li a {
    padding: 2px 10px;
}

.card-pagination .pagination li.active {
    border-radius: 5px;
    border: 1px solid var(--light-color);
    background-color: var(--light-color);
    color: var(--white);
}

.card-pagination .pagination li.active a {
    color: var(--white);
}

.card-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header .card-cta form {
    display: inline-block;
}

.card-header .card-cta form .input-group-text,
.card-header .card-tools form .input-group-text {
    background-color: var(--light-color);
    color: var(--white);
}

form .input-group-text .fas,
.filters .input-group-text .fas {
    margin-right: 5px;
}

.card-header .input-group-text {
    background-color: var(--light-color);
    color: var(--white);
}

.card-footer .card-cta-footer .filters .input-group-text,
.card-footer .card-tools form .input-group-text {
    background-color: var(--light-color);
    color: var(--white);
}

.card-footer .card-cta-footer .filters select {
    max-width: 70px;
}

.card-header .card-cta form .input-group-text .fas {
    padding-right: 5px;
}

.card-header .card-cta form select {
    height: 33px;
}

.card-header .card-tools .reset-search {
    margin-left: 10px;
}

.card-header .card-tools .select-supplier-filter {
    margin-right: 10px;
}

.card-header .card-tools .select-status-filter {
    margin-right: 10px;
}

.card-header .card-tools .input-group-append .btn {
    border-top-right-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

.input-group-append .input-group-text {
    background-color: var(--light-color);
    color: var(--white);
}

.product-details .product-img img {
    max-width: 200px;
}

.layout-wrapper,
.specifications-wrapper {
    height: 300px;
    max-height: 300px;
}

.mh-350 {
    height: 350px !important;
    max-height: 350px !important;
}

/* custom table for available slots */
.custom-table {
    border: 1px solid #000;
    margin: 0;
}
.custom-table div.col-lg label,
.custom-table div.col-lg input,
.custom-table div.col-lg select,
.custom-table div[class^='col-lg'], .custom-table div[class*=' col-lg'] {
    padding: 5px;
    border: none;
    border-radius: 0;
}
.custom-table div.col-lg {
    padding: 0;
    border-right: 1px solid black;
}
.custom-table div.col-lg:last-of-type {
    border-right: none;
}
.custom-table .form-group {
    background: gray;
    color: white;
    margin-bottom: 0;
}
#collapseColours .card {
    padding: 0 5px;
}


/* Table Style */

.mobile-table {
    display: none;
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
    .card-header .card-tools {
        justify-content: center !important;
        margin-top: 10px;
    }
    .card-header .filters {
        justify-content: center !important;
    }
    .card-header .filters .input-group {
        margin-bottom: 10px;
    }
    .card-header .filters .btn {
        margin-bottom: 10px;
    }
}

.card-body.p-0 .table tbody>tr>td:first-of-type,
.card-body.p-0 .table tbody>tr>th:first-of-type,
.card-body.p-0 .table tfoot>tr>td:first-of-type,
.card-body.p-0 .table tfoot>tr>th:first-of-type,
.card-body.p-0 .table thead>tr>td:first-of-type,
.card-body.p-0 .table thead>tr>th:first-of-type {
    padding-left: 0.75em;
}

.template-total-section .flex-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.template-total-section .flex-group input {
    max-width: 150px;
}

.card-header .card-tools select {
    max-width: 250px;
}

.contsearch {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.contsearch p {
    margin-bottom: 0;
}

.product-results {
    position: absolute;
    z-index: 99999;
    overflow-y: auto;
    height: auto;
    max-height: 450px;
    top: 38px;
    padding: 0px;
    width: 100%;
    min-width: 530px;
    right: 0;
    box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
}

.remove-row {
    cursor: pointer;
}

.card-header .card-tools .form-group {
    margin-bottom: 0px;
}


/* Dealership Status colors */

.not-ready-bg {
    background-color: var(--red);
}

.chasis-bg {
    background-color: var(--orange);
}

.building-bg {
    background-color: var(--yellow);
}

.furniture-bg {
    background-color: var(--cyan);
}

.electrical-bg {
    background-color: var(--purple);
}

.cladding-bg {
    background-color: var(--blue);
}

.int-ext-finishing {
    background-color: var(--purple);
}

.finishing-bg {
    background-color: var(--pink);
}

.FINISHED-bg {
    background-color: var(--grey);
}

.ORDERED-bg {
    background-color: var(--green);
}

.ORDERRECEIVED-bg {
    background-color: var(--blue-electric);
}

.INPRODUCTION-bg {
    background-color: var(--pink-glacier);
}

.SIGNEDOFF-bg {
    background-color: var(--green);
}

.PLANSPECSSENTTODEALER-bg {
    background-color: var(--yellow);
}

.STILLNOORDER-bg {
    background-color: var(--blue-royal);
}

.ORDERYETTOCOME-bg {
    background-color: var(--blue-royal);
}

.APPROVALPENDING-bg {
    background-color: var(--orange);
}

.DECLINED-bg {
    background-color: var(--red);
}

.URGENT-bg {
    background-color: var(--grey-dark);
}

.URGENT-bg {
    color: var(--white) !important;
}

.free-bg {
    background-color: var(--green);
}

.booked-bg {
    background-color: var(--red);
}

.yellow-bg {
    background-color: var(--yellow);
}


/*  */

.card-header .filters .filter-dealership,
.card-header .filters .filter-status {}

.card-header .filters .input-group {
    max-width: 250px;
    margin-right: 10px;
}

.card-header .filters .input-group .input-group-text {
    min-width: 80px;
}

.card-header .card-cta .filters {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.disabled-editing {
    pointer-events: none;
    color: grey;
}

.card-body.p-0 .table tbody>tr>td:last-of-type,
.card-body.p-0 .table tbody>tr>th:last-of-type,
.card-body.p-0 .table tfoot>tr>td:last-of-type,
.card-body.p-0 .table tfoot>tr>th:last-of-type,
.card-body.p-0 .table thead>tr>td:last-of-type,
.card-body.p-0 .table thead>tr>th:last-of-type {
    padding-right: 1rem;
}

.td-book-status .form-control:disabled {
    background-color: var(--red);
}

.td-book-status .form-control:focus {
    background-color: inherit !important;
}

#editSchedulerRowModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.ordered-bg {
    background-color: var(--green);
}

.not-yet-bg {
    background-color: var(--red);
}

.form-group .select2 {
    width: 100% !important;
    display: block;
}

.form-group .select2-container .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
}

.dealership-scheduler-table table {
    width: 100%;
    border-collapse: collapse;
}

.dealership-scheduler-table th,
.dealership-scheduler-table td {
    padding: 8px;
}

.dealership-scheduler-table th {
    text-align: left;
    background: var(--grey);
    position: sticky;
    top: 0px;
}

.dealership-scheduler-table {
    border: 1px solid var(--grey);
    width: 100%;
    overflow-y: auto;
    height: calc(100vh - 314px);
}

/*@media (min-width:1930px) and (max-width: 3840px) {
    .dealership-scheduler-table {
        max-height: 1000px;
        height: 100%;
    }
}*/

.filters-dealership-scheduler {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
}

#products_po_table .productname-wrap .product-results {
    position: unset;
    display: none;
    max-width: 500px;
    top: 50px;
    left: 0;
}

.card-header .card-tools form .form-group .select2-container .select2-selection--single {
    height: calc(1.8125rem + 2px) !important;
}

#dealerPurchaseOrderModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

#dealerBookFreeSlotModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.warranty-status-pending-bg,
.warranty-status-in-review-bg {
    background-color: var(--grey);
}

.warranty-status-resolving-bg,
.warranty-status-approved-bg {
    background-color: var(--yellow);
}

.warranty-status-issue-bg {
    background-color: var(--orange);
}

.warranty-status-declined-bg {
    background-color: var(--red);
}

.warranty-status-completed-uw-bg,
.warranty-status-completed-nw-bg,
.warranty-status-completed-mix-bg {
    background-color: var(--green-secondary);
}

.warranty-status-closed-bg {
    background-color: var(--green-dark);
}

.additional-note-dealer,
.warranty-warranty_manager-note,
.warranty-dealer-note {
    background-color: var(--grey);
    border-radius: .25rem;
}

.additional-note-dealer .fa,
.warranty-warranty_manager-note .fa,
.warranty-dealer-note .fa {
    color: var(--light-color);
}

.warranty-admin-note,
.additional-note-admin {
    background-color: var(--light-color);
    color: var(--white);
    border-color: var(--light-color);
    box-shadow: 0 0 0 0 rgb(38 143 255 / 50%);
    border-radius: .25rem;
}

.warranty-admin-note .fa,
.warranty-admin-note a,
.additional-note-admin .fa,
.additional-note-admin a {
    color: var(--white) !important;
}

.warranty-admin-note hr,
.additional-note-admin hr {
    background-color: var(--white) !important;
}

.warranty-claim-note {
    padding: 10px;
}

.warranty_item-files img,
.warranty-item-files a img,
.warranty-claim-note img {
    max-width: 50px;
}

.order-item-files img,
.order-claim-note img {
    max-width: 50px;
}

.warranty-claim-item .add-to-invoice {
    margin-left: 10px;
}

.complete-zone-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: .25rem;
    z-index: 38;
    background-color: rgba(128, 128, 128, 0.5);
    text-align: center;
}

.complete-zone-overlay p {
    color: var(--white);
    font-size: 30px;
    font-weight: bolder;
}

#addNewProductModal .modal-dialog {
    max-width: 80%;
}

#productionHistoryModal .modal-dialog {
    max-width: 50%;
    margin: 1.75rem auto;
}

.block {
    display: block;
}

.none {
    display: none;
}


/* Ajax loader */

.lds-wrapper {
    display: none;
}

.lds-wrapper.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.3);
    display: block;
}

.lds-roller.active {
    display: inline-block;
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.lds-roller.active div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller.active div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    margin: -4px 0 0 -4px;
}

.lds-roller.active div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller.active div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller.active div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller.active div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller.active div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller.active div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller.active div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller.active div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller.active div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller.active div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller.active div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller.active div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller.active div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller.active div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller.active div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller.active div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#schedulerRowNotes .modal-dialog {
    max-width: 800px;
}

/* warranty_claims notes dropdown */
.notes-dropdown .dropdown-menu {
    width: 400px;
}
.notes-dropdown .dropdown-item {
    width: 400px;
    white-space: normal;
}
.notes-dropdown .dropdown-item:not(:last-of-type) {
    border-bottom: 2px solid var(--grey-light);
}
.notes-dropdown .dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--grey-light);
    padding: .5rem 1rem;
}

.warr-tickets-view .card.stick-on-scroll {
    margin-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.warr-tickets-view .card {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}
.stick-on-scroll {
    position: sticky;
	top: 0;
	z-index: 1;
}
.warr-tickets-view .card-body .info-block label, .card-body .info-block p {
    margin: 0;
}
.warr-tickets-view .card-body > hr:last-of-type {
    margin-top: 0;
}
/* order create-doedit */
div.orders .col-form-label {
    padding: 0;
    line-height: 1.2;
}
.red-bg {
    background-color: red;
}
.attachments > ul > li {
    min-height: 50px;
}
.attachments img {
    max-width: 50px;
}
.attachments .remove-file {
    position: absolute;
    background: red;
    bottom: 0;
    height: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

button.email_to_supplier .checkmark-sent {
    position: absolute;
    right: -2px;
    top: -5px;
}

.w-100px {
    width: 100px;
}
.w-200px {
    width: 200px;
}
.w-45 {
    width: 45%;
}
