/*
 * CSS common to all areas of the application
 * Maronda HomeSoft
 * Created by: Chelsea Fenton & Daryl Quenet
 */

#content {
    width: 100%;
    padding: 0;
    margin: 0;
}

.logged-in {
    padding: 14px 10px 0 0;
    color: #fff;
}

.logged-in a {
    color: #fff;
}

#login {
    display: inline-block;
    vertical-align: middle;
    float: none;
    margin-top: 40px;
}

.action {
    cursor: pointer;
}

.change-company {
    margin-bottom: 20px;
}

.table-filter input {
    width: 120px;
}

.job-models,
.job-options {
    margin-top: 20px;
}

.header-fields {
    padding-bottom: 20px;
}

.header-field-desc {
    font-weight: bolder;
}

.model-details-header {
    margin-bottom: 20px;
    font-weight: bolder;
}

.add-quote {
    margin-top: 20px;
    margin-bottom: 20px;
}

.tab-body {
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    border-top: 0;
    padding-top: 20px;
    margin-bottom: 20px;
}

.nav-tabs>li>a {
    border-radius: 4px 4px 0 0;
    border: 1px solid #ddd;
}

.filter-input {
    width: 120px;
}

table.dataTable.table-condensed thead tr.filter-form .filter.form-control {
    font-size: 12px;
    padding-left: 2px;
    height: 26px !important;
}

table.dataTable thead tr:not(.filter-row) {
    background-color: dimgrey;
    color: #fff;
}
table.dataTable thead tr.filter-row.filter-form {
    background-color: darkgray;
}

table.dataTable.table-condensed > thead > tr > th {
    padding-right: 5px !important;
}

table.dataTable .btn {
    margin-right: 2px;
}

table.dataTable.table-condensed thead tr.filter-form .btn.btn-sm.filter,
table.dataTable.table-condensed thead tr.filter-form .btn.btn-sm.clear {
    padding: 1px 5px;
    margin-right: 5px;
    margin-bottom: 1px;
}

#content-header h1 {
    margin-top: 0px;
}

.btn-push-down {
    margin-top: 24px;
}

.manage-fields .alert {
    margin-bottom: 0px;
    padding: 5px;
    background-color: transparent;
    border-color: transparent;
    font-weight: bold;
}

.message-box.alert {
    font-weight: bold;
}

/* Hide the down-arrow on a select box */
select.no-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select2-container {
    max-width: 100% !important;
}

/* Height to match textboxes */
.select2-container .select2-selection--single {
    height: 34px;
}

.form-control:not([type=file], textarea) {
    height: 28px;
}

.data-grid {
    margin-bottom: 15px;
    margin-top: 0px;
}

tr.group {
    background-color: rgba(0, 152, 68, 0.8) !important;
    color: white;
    font-weight: bold;
    font-size: 15px;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.group>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr.group>th:first-child:before {
    display: none;
}


/* Fix the :before padding issue where after the embedded / there was too much padding after it */

.breadcrumb li a {
    margin-left: -5px;
}

.breadcrumb li a:first-child {
    margin-left: 0;
}

.breadcrumb {
    margin-bottom: 5px;
}

.helpLink .fa {
    font-size: 20px;
}

.user-companies {
    padding: 9px 20px 0 0;
}

#nav .logged-in {
    padding-bottom: 14px;
    padding-right: 0;
}

#nav .logged-in .select-wrapper {
    padding-top: 8px;
}

#nav .logged-in .select-label {
    width: 80px;
    display: inline-block;
}

#nav .logged-in .select2-container {
    width: 350px !important;
}

@media (max-width: 767px) {
    #nav .logged-in {
        float: none !important;
        padding-bottom: 14px;
    }
}

.visually-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    left: -99999px;
    overflow: hidden;
}


/* Use label warning color from Bootstrap v4, for improved readability */

.label-warning-v4 {
    color: #212529;
}

.account-username {
    text-align: right;
}

div.account-username>ul.list-inline>li.dropdown.open>ul.dropdown-menu {
    margin-left: -100px;
}


/* Parts Display*/

.PGM_partModels,
.PGM_partVendors {
    padding-top: 30px;
    min-height: 650px;
}

.btn.btn-grayed-out {
    background-color: #d0d0d0;
    border-color: #b0b0b0;
}

.btn.btn-grayed-out:hover,
.btn.btn-grayed-out:focus {
    background-color: #c0c0c0;
    border-color: #a0a0a0;
}


/* Dropdown link item */

.dropdown-menu li a.btn-grayed-out,
.dropdown-menu li a.disabled,
.dropdown-menu li a[disabled] {
    color: #a0a0a0;
    cursor: not-allowed;
}

.btn.btn-grayed-out:active:hover,
.btn.btn-grayed-out:active:focus {
    background-color: #b0b0b0;
    border-color: #909090;
}

.font-weight-bold {
    font-weight: bold;
}

.text-no-wrap {
    white-space: nowrap;
}

.full-width {
    width: 100%;
}

.no-padding {
    padding: 0 !important;
}

.padding-10 {
    padding: 10px;
}

.panel-xs .panel-body {
    padding: 6px 10px;
}

.panel-xs .panel-heading {
    padding: 5px 10px;
}

.fluid-box {
    display: table;
    width: 100%;
    border-spacing: 0;
    margin: 0;
}

.fluid-item {
    display: table-cell;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.fluid-item.liquid {
    width: 100%;
}

.time-input-container,
.zip-ext-input-container {
    display: inline-block;
    padding-left: 10px;
    width: 80px;
}

.nobold {
    font-weight: normal !important;
}


/* Small icon-only buttons */

.btn-group-sm>.btn.notext,
.btn-sm.notext {
    padding: 3px 8px;
    font-size: 15px;
}


/* Dropdown/toggle buttons */

.btn-group>.dropdown {
    position: relative;
    float: left;
}


/* Right aligned header prices */

@media (min-width: 992px) {
    .price-value.price-value-right {
        width: 110px;
        text-align: right;
        display: inline-block;
        margin-left: -15px;
    }
}


/* on very small screens making the sales tabs smaller */

@media (max-width: 767px) {
    .sale-info-tabs.nav-tabs>li>a {
        padding: 8px;
    }
}

.commissions-warning-container {
    font-size: 92%;
}

.gp-actual-revenue {
    padding-top: 50px;
    padding-bottom: 50px;
}

.gp-cost,
.gp-profit {
    padding-top: 30px;
}

.gp-highlight {
    color: #0000ff;
    font-weight: bold;
}

.gpDetailsModal {
    width: auto;
    margin: auto;
    max-width: 1024px;
}

.gpDetailsModal table>tbody>tr:nth-of-type(odd) {
    background: none;
}

.gpDetailsModal table>tbody>tr.odd {
    background-color: #f9f9f9;
}

.gpDetailsModal table tr.gp-child-row {
    background: rgba(91, 192, 222, 0.15) !important;
    font-size: 86%;
}

.gpDetailsModal table tr.gp-child-row td:first-of-type {
    padding-left: 40px
}

table.mh-table-expandable tbody td.details-control {
    background: url('../img/details_open.png') no-repeat center 8px;
    cursor: pointer;
}

table.mh-table-expandable tbody tr.shown td.details-control {
    background: url('../img/details_close.png') no-repeat center 8px;
}


/* Button hidden by default, displayed by JS */

.btn-selections-edit-approval {
    display: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

.modal-body-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
    margin-left: -15px;
    margin-top: -15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}


/*
 * Product Selections
 */

#productselections .po-selection-status {
    border-radius: 360px;
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

#productselections .po-selection-status.selection-not-found {
    background: #ff0000;
}

#productselections .po-selection-status.selection-matched {
    background: #33ac69;
}

#productselections .po-selection-status.selection-unmatched {
    background: yellow;
}


/* Selected Packages */

#color-packages #color-packages-warning {
    display: none;
}

#color-packages .selectPackages {
    margin-left: 10px;
}

#color-packages.non-editable .selectPackages {
    display: none;
}

#color-packages.non-editable .badge a {
    visibility: hidden;
}

#package-selections {
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    padding: 20px;
    background: rgba(215, 236, 217, 0.5);
}

#selected-packages {
    margin-top: 6px;
}

#package-selections>div {
    margin-bottom: 8px;
}

#package-selections .package-color,
#package-selections .actions {
    margin-top: 12px;
}

#color-packages #package-selections {
    display: none;
    transition: transform .2s;
}

#color-packages.open #package-selections {
    display: block;
}

#selected-packages .badge.template {
    display: none;
}

#selected-packages .badge {
    color: #000;
    background-color: transparent;
    border: 1px solid #b3c5a4;
    border-radius: 8%;
    background: transparent;
    text-align: left;
    padding: 0;
    margin-right: 6px;
    margin-bottom: 4px;
    overflow: hidden;
}

#selected-packages .badge .value {
    border-right: 1px solid #b3c5a4;
    margin: 0;
    padding: 7px 8px 5px 4px;
    font-weight: bold;
    color: #3c763d;
    background-color: #dff0d8;
}

#selected-packages .badge .title {
    margin: 0;
    padding: 0;
    color: #777;
    background-color: #fff;
}

#selected-packages .badge .remove {
    color: #666;
}


/* - DataTable */

.colorPackage {
    border-right-color: transparent !important;
    vertical-align: middle;
}

#productselections .colorPackage .packageIndicator {
    border-radius: 360px;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background-color: #f5d3bb;
    display: inline-block;
}

#productselections .colorPackage .packageIndicator.exception {
    background-color: orange;
}

#productselections .colorPackage .packageIndicator i {
    margin: 8px 0 0 7px;
}


/**
 * DataTable Custom Controls
 */

.dt-buttons.controls {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* Column visibility toggling */

#change-column-visibility ul.dropdown-menu {
    background: #337ab7;
}

#change-column-visibility ul.dropdown-menu li:hover a,
#change-column-visibility ul.dropdown-menu li a {
    background: transparent;
    color: #fff;
}

#change-column-visibility ul.dropdown-menu li.off:hover a,
#change-column-visibility ul.dropdown-menu li.off a {
    background: #fff;
    color: #333;
}


/* Allow Action button dropdowns to sit on top of the table bottom */

.dataTables_scrollBody {
    overflow: visible !important;
}


/* Highlighted dataTable rows - use Bootstrap warning colours */

.dataTable tbody tr.highlighted {
    -moz-box-shadow: inset 0px 1px 0px 4px #faebcc;
    -webkit-box-shadow: inset 0px 1px 0px 4px #faebcc;
    box-shadow: inset 0px 1px 0px 4px #faebcc;
    background: #fcf8e3;
}


/* SEENOTES indicator in dataTables - use Bootstrap warning colour */

.seenotes-indicator {
    font-weight: bold;
    color: #8a6d3b;
    float: right;
}

/* MySales */
#receiveDepositsModal.modal .modal-dialog,
#addBlankAddendum.modal .modal-dialog {
    width: 80%;
    max-width: 820px;
}
.modal-body .contract-section .row {
    margin-bottom: 1px;
}
.modal-body .contract-section .footer {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
}
.modal-body .contract-section .footer .navigation {
    text-align: right;
}
.modal-body .contract-section .group-heading {
    margin-bottom: 1px;
    margin-top: 5px;
}
.documents-set .document .question {
    margin-left: 4px;
}
.documents-set .document .question:last-child {
    margin-bottom: 4px;
}
fieldset > label {
    display: block;
}


/* Custom button colours */
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover,
.btn-secondary:active {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn.btn-tertiary {
    color: #fff;
    background-color: #bd55bd;
}
.btn.btn-tertiary:hover,
.btn.btn-tertiary:active {
    background-color: #b556b5;
}


/* Don't display JS templates. They're used for creating new elements in JavaScript */
.js-template {
    display: none;
}

a.btn[disabled], a.btn.disabled, a.btn.btn-grayed-out, fieldset[disabled] a.btn {
    pointer-events: none;
}

/* Always display the message modal on top of other modals */
#messageModel {
    z-index: 9999;
}

.btn-smaller{
    line-height: 1.35 !important;
}

table.dataTable tbody>tr.selected, table.dataTable tbody>tr>.selected {
    background-color: rgba(0,136,204,.1);
}

table.dataTable tbody tr.selected, table.dataTable tbody th.selected, table.dataTable tbody td.selected{
    color: black;
}

/* Companies dropdown */
.companies-dropdown.open ul.dropdown-menu {
    height: 600px;
    overflow-y: auto;
}

/* CRM editable field states */
.crm-saving-field {
    color: #888 !important;
    border-bottom: none !important;
    cursor: wait !important;
    background: none !important;
}

.crm-editable-pop {
    border-bottom: 1px dotted #8a2be2;
    color: #8a2be2;
    cursor: pointer;
    background: none;
}

.crm-viewonly-pop {
    border-bottom: none;
    color: inherit;
    cursor: default;
    background: none;
}
