﻿
/* fixes after upgrade to bootrap 5 */
.form-group{
    margin-top: 10px;
}

h3 {
    margin-top: 20px;
}

.k-grid-toolbar{
    min-height: 50px;
    padding-top: 7px;
    padding-left: 7px;
}

.control-label{
    padding-bottom: 7px;
}

/*.k-grid-filter.k-active {
    background-color: #0085CA !important;
}
*/

/* override boostrap colours */
.btn-primary, .bg-primary, .nav-pills a.active {
    background-color: #0085CA !important;
    border-color: #0085CA !important;
}

.btn-outline-primary {
    color: #0085CA !important;
    border-color: #0085CA !important;
}

    .btn-outline-primary:hover {
        color: white !important;
        background-color: #0085CA !important;
        border-color: #0085CA !important;
    }

.btn-secondary {
    background-color: #e4e7eb !important;
    color: black !important;
    border-color: #e4e7eb !important;
}

/* default font size*/
html {
    font-size: 14px !important;
}

@media (min-width: 768px) {
    html {
        font-size: 14px !important;
    }
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 14px;
}

/* top left logo */
a.navbar-brand, img {
    height: 30px !important;
    padding: 0 !important;
    vertical-align: baseline !important;
    margin-top: -2px !important;
}

.navbar-nav a.nav-link, .navbar-nav button.nav-link, .nav-pills a.nav-link.active {
    color: white !important;
}

/* this is to make use of wider screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1350px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1550px !important;
    }
}

.bodyContainer {
    /*min-height: 700px !important;*/
}

/* page footer */
.footer {
    text-align: center;
    height: 50px !important;
    line-height: 50px !important;
}

.copyright {
    float: left;
}

.version {
}

.poweredBy {
    float: right;
    font-style: italic;
}

/* icons */
span.fas {
    font-size: 20px !important;
}

/* labels */
.control-label {
    font-weight: bold;
}

/* kendo UI grid adjustments */
.k-grid {
    font-size: 12px;
}

    .k-grid a.gridlink {
        color: #007bff;
    }

    .k-grid .k-toolbar {
        width: 100%;
        display: block;
    }

    .k-grid .k-grid-header-locked,
    .k-grid .k-grid-header-locked .k-header,
    .k-grid .k-grid-content-locked,
    .k-grid .k-grid-content-locked td {
        border-color: inherit !important;
        background-color: rgba(0, 0, 0, 0.03) !important;
    }

    .k-grid .k-grid-footer {
        display: none !important;
    }

/*    .k-grid .k-grid-header-locked {
        border-color: inherit !important;
    }
*/
.expired {
    color: red;
}

.leftToolbarButton {
    float: left;
}

.rightToolbarButton {
    float: right;
    margin-right: 10px !important;
}

.toolbarLabel {
    margin-top: 4px;
    margin-right: 4px;
}

.numericGridCell {
    text-align: right !important;
    padding-right: 20px !important;
}

.dateTimeCell {
}

.boundCheckboxParent {
    text-align: center !important;
}

.leftButtonIcon .fas,
.rightToolbarButton .fas,
.leftToolbarButton .fas {
    padding-right: 3px;
    padding-top: 3px;
}

tr.k-filter-row, .k-input {
    font-size: 12px !important;
}

div.k-grid-content {
    min-height: 400px !important;
}

/* Grid column sort indicator */

.k-grid-header th.k-header.k-sorted > .k-link {
    position: relative;
    padding-left: 20px;
}

.k-grid-header .k-header.k-sorted > .k-link > .k-icon.k-i-sort-asc-sm,
.k-grid-header .k-header.k-sorted > .k-link > .k-icon.k-i-sort-desc-sm {
    position: absolute;
    top: 11px;
    left: -12px;
}

.k-grid-header .k-header.k-sorted > .k-link > .k-sort-order {
    position: absolute;
    top: 9px;
    left: 14px;
}

tr.k-group-footer td {
    text-align: right;
    padding-right: 20px;
}

/* other kendo controls */
.k-datetimepicker {
    width: 250px !important
}

.k-textbox.nolookup {
    width: 100% !important;
}

/* finder */
.finderbutton {
    height: 33.5px;
    background-color: #e4e7eb !important;
    border-color: #e4e7eb !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

span.finderbuttonicon {
    /*color: dimgrey;*/
    font-size: 14px !important;
}

.form-control:disabled {
    background-color: transparent !important;
}

/* message chat */
.ChatDateTimeStamp {
    font-weight: bold;
}

/* genera classes */
.errorText {
    color: red;
}

textarea.form-control[disabled] {
    background-color: transparent !important;
}

/* data based customization */
.DocumentRequest_WorkflowState_AttentionServiceManager {
    background-color: #00b300; /* original: green*/
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-left: 20px;
}

.DocumentRequest_WorkflowState_AttentionCustomer {
    background-color: #ff5050; /* original: darkred */
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-left: 20px;
}

.DocumentRequest_Detail_WorkflowState_AttentionServiceManager {
    background-color: #00b300; /* original: green*/
    min-width: 40px;
    height: 20px;
    border-radius: 5px;
}

.DocumentRequest_Detail_WorkflowState_AttentionCustomer {
    background-color: #ff5050; /* original: darkred */
    min-width: 40px;
    height: 20px;
    border-radius: 5px;
}

span.DocumentRequest_RequestState_Pending,
button.DocumentRequest_RequestState_Pending > span,
tr.DocumentRequest_RequestState_Pending td.RequestState {
    color: blue !important;
}

span.DocumentRequest_RequestState_Held,
button.DocumentRequest_RequestState_Held > span,
tr.DocumentRequest_RequestState_Held td.RequestState {
    color: orange !important;
}

span.DocumentRequest_RequestState_DocumentInProgress,
button.DocumentRequest_RequestState_DocumentInProgress > span,
tr.DocumentRequest_RequestState_InProgress td.RequestState {
    color: green !important;
}

span.DocumentRequest_RequestState_RequestClosed,
button.DocumentRequest_RequestState_RequestClosed > span,
tr.DocumentRequest_RequestState_Closed td.RequestState {
    /*color: green !important;*/
}

span.DocumentRequest_RequestState_Cancelled,
button.DocumentRequest_RequestState_Cancelled > span,
tr.DocumentRequest_RequestState_Cancelled td.RequestState {
    /*color: red !important;*/
}

span.DocumentRequest_RequestState_DocumentCompleted,
button.DocumentRequest_RequestState_DocumentCompleted > span,
tr.DocumentRequest_RequestState_Completed td.RequestState {
    color: red !important;
}

/* logo */

.cplogo {
    width: 600px;
    height: auto !important;
}

/* info panels (home page) */

div.infoPanel {
    min-height: 150px;
    background-color: whitesmoke;
    margin-bottom: 10px;
    border-radius: 3px;
}

    div.infoPanel h3 {
        padding: 5px;
        background-color: #0085CA;
        color: white;
        border-radius: 3px;
    }

div.infoPanelContent {
    padding: 5px;
}

    div.infoPanelContent a {
        color: #0085CA;
    }

div.infoPanel a {
    text-decoration: none;
}

div.infoPanelContentRow .k-button {
    float: right;
}

div.infoPanelContentRow span.right {
    float: right;
}

div.infoPanelContentNumber {
    text-align: center
}

    div.infoPanelContentNumber span {
        font-size: 140px;
        font-weight: 400;
        font-family: Calibri;
        color: slategrey;
        margin: 0px;
    }

div.infoPanelContentText {
    text-align: center;
    height: 310px;
}

    div.infoPanelContentText span {
        font-size: 30px;
        font-weight: 400;
        color: slategrey;
        margin: 0px;
    }

div.infoPanelContentLinks {
    text-align: center !important;
}

a.boundScriptLink {
    color: #007bff !important;
    cursor: pointer;
}

/* stripe payments */

.StripeElement {
    box-sizing: border-box;
    height: 40px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px 0 #e6ebf1;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
}

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
    border-color: #fa755a;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

.card-errors {
    color: red !important;
}

.currencyAmount .k-numeric-wrap {
    border-bottom-right-radius: 3.5px !important;
    border-top-right-radius: 3.5px !important;
}

.keepOnOneLine {
    white-space: nowrap;
    display: inline-block;
}

/* list view */
.communicationNote {
    margin: 5px;
}

    .communicationNote .equipment {
        font-weight: 500;
        padding-left: 10px;
    }

    .communicationNote p {
        padding-left: 10px;
    }

    .communicationNote .attachmentList {
        padding-left: 10px;
    }

div.k-listview-content {
    min-height: 500px !important;
}

/* select column not visible in pop up */
.pickerSelect input {
    width: 15px !important;
    height: 15px !important;
    margin-left: 15px !important;
    position: static !important;
    opacity: 1 !important;
    -webkit-appearance: checkbox !important;
    pointer-events: auto !important;
}

.form-control[readonly] {
    background-color: whitesmoke !important;
}

/* Job totals */
table.total {
    max-width: 800px;
}

    table.total tr.subtotal {
        font-weight: bold;
    }

    table.total tr.grandtotal {
        font-weight: bold;
        background-color: whitesmoke;
    }

    table.total .right {
        text-align: right;
    }
