@import url('settings.css');
body {
    font-size: .8rem;
}
.dropdown-menu {
    font-size: .8rem;
}
.min {
    width: 2% !important;
}
.page-header {
    border-bottom: 1px solid #ddd;
}
#chartjs-tooltip {
    border-radius: 5px;
    border: 1px solid #000;
    background:rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 15px;
}
#chartjs-tooltip div {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 5px;
}
input:is([type="time"]) {
    display: flex;
    min-height: calc(1.5em + 0.56rem + 2px) !important;
    padding: 0.2rem 0.8rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
}
.btn-xs {
    padding: 0.18rem 0.4rem;
    font-size: 0.675rem;
    border-radius: 0.15rem;
}
.empty-input {
    display: block;
    width: 100%;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    min-height: calc(1.5em + 0.56rem + 2px);
    padding: 0.28rem 0.8rem;
}

/* selectpicker overrides */
.bootstrap-select {
    font-family: inherit !important;
}
.bootstrap-select .btn {
    color: #212529 !important;
}
.bootstrap-select>.dropdown-toggle:after {
    content: unset;
}
.bootstrap-select:not(.disabled) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da !important;
}
.bootstrap-select.disabled {
    background: none;
}

/* Global */
.form-control:disabled,
.form-select:disabled {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    color: inherit;
    -webkit-text-fill-color: inherit;
}
.form-control:disabled::-webkit-input-placeholder {
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.form-control:disabled::-moz-placeholder {
    color: transparent;
}
.form-control:disabled::-ms-input-placeholder {
    color: transparent;
}
textarea.form-control:disabled{
   resize: none;
}
input[type=checkbox]:disabled{
    cursor: default;
}
input[type=radio]:disabled{
    cursor: default;
}
.twitter-typeahead .tt-input:disabled{
    background: none !important;
    cursor: default;
}
.link{
    cursor: pointer;
}
.global-search-group .tt-menu {
    max-height: 600px;
    overflow-y: auto;
    width: 250px;
}
.global-search-group .tt-menu h3{
    font-size: 16px;
    border-bottom: 1px solid #CCC;
    padding-left: 10px;?: '<i class="fa-solid fa-home"></i>')
    color: black;
    padding-bottom: 5px;
}
.linker {
    cursor: pointer;
}
.navbar-toggle {
    color: white;
}
.fc-event {
    margin: auto;
}

/* Home */
.jobs-table tr{
    cursor: pointer;
}
.jobs-table tbody td{
    background: initial;
}
.jobs-table tbody td.dataTables_empty {
    background: initial !important;
}

/* Login */
.login-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-color: transparent;
    height: 100vh;
}
.login-container .card {
    width: 600px;
    text-align: center;
}
@media (max-width:767px) {
    .login-container .card {
        width: 100%;
    }
}
.login-container #logo {
    margin-bottom: 30px;
    max-width: 300px;
}

/* Access Levels */

.access-levels .fa-times{
    color: red;
}

/* Users */

.btn.new-user, .btn.new-customer{
    margin-top: -5px;
}

/* Customer */

.customer-information .form-control:disabled{
    border: none;
    background: transparent;
    box-shadow: none;
}
.customer-contacts .new-contact{
    margin-top: -5px;
}
.contacts-table input[type=checkbox]{
    cursor: pointer;
}
.customer-header-addon div{
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    background: #F6F6F6;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    margin-top: -17px;
}

/* Brands */
.brands-well, .models-well{
    margin-bottom: 0px;
    padding: 10px;
}
.brand-label, .model-label{
    margin-right: 5px;
}
.brand-label .fa, .model-label .fa{
    cursor: pointer;
}

/* Inventory */

.btn.add-part{
    margin-top: -5px;
}
.inventory-all-panel .inventory-container{
    height: 328px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.inventory-all tbody{
    background: transparent;
    height: 20px;
}
.brand-page .new-brand{
    margin-right: -7px;
}
.inventory-model{
    width: 10%;
    margin-left: 5px;
    display: inline-block;
    margin-bottom: 0px;
}
.inventory-page .expand,
.inventory-page .collapseLi{
    cursor: pointer;
}

/* Model */
.edit-model{
}
.save-model{
    display: none;
}
.model-addbrand{
    width: 50%;
    float: right;
    margin-top: -5px;
    margin-right: -7px;
}
.btn.new-part{
    margin-top: -5px;
}
.btn.save-part{
    display: none;
}

/* Part */

.remove-part{
    display: none;
}
.save-part{
    display: none;
}
.part-addmodel{
    width: 50%;
    float: right;
    margin-top: -5px;
    margin-right: -7px;
}
#attachments-tab .panel{
    margin-top: 10px;
}
.attach-file{
    float: right;
}
.file-name{
    padding-right: 10px;
}
.attach-file, .attach-logo{
    display: none !important;
}

/* All Inventory */
.inventory-all .nav-column{
    display: block;
    margin-bottom: 5px;
}
.part-search-holder{
    width: 300px;
    margin-top: -60px;
}

/* Home */

.custom-fa-plus{
    position: absolute;
    left: 71px;
    top: 30px;
    font-size: 10px;
}
.icon-holder:hover .custom-fa-plus{
    top: 15px;
}
.icon-container{
    margin-top: 15px;
}
.icon-add-job, .icon-new-job, .icon-pending-job, .icon-messages, .icon-text, .fa-holder{
    float: left;
}
.icon-holder{
    padding: 15px 15px;
    color: white;
    font-size: 16px;
    display: inline-block;
    width: 100%;
}
.icon-holder:hover{
    -ms-transform: scale(1.1,1.1);
    -webkit-transform: scale(1.1,1.1);
    transform: scale(1.1,1.1);
}
.icon-holder:hover .custom-fa-plus{
    left: 58px;
}
.icon-text{
    margin-left: 10px;
    padding-left:10px;
    font-size: 18px;
    float: left;
}
.icon-container{
    margin-bottom: 20px;
}
.home-options .col-md-2:nth-child(1) .icon-holder{
    background-color: #85B200;
    border-radius: 5px;
}
.home-options .col-md-2:nth-child(2) .icon-holder{
    background-color: #00698C;
    border-radius: 5px;
}
.home-options .col-md-2:nth-child(3) .icon-holder{
    background-color: #FF9673;
    border-radius: 5px;
}
.home-options .col-md-2:nth-child(4) .icon-holder{
    background-color: #FFBF00;
    border-radius: 5px;
}
.vertical-rule{
    display: inline-block;
    border-left: 2px solid white;
    height: 50px;
    margin-left: 20px;
    float: left;
}

/* Job */
.form-horizontal.job-add-part{
    width: 32%;
    float: right;
    margin-top: -5px;
    margin-right: 10px;
}
.job-header-addon div{
    display: inline-block;
    min-width: 120px;
    padding: 5px 10px;
    font-size: 12px;
    background: #F6F6F6;
    margin-right: -3px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
}
.admin-dropdown{
    cursor: pointer;
}
.admin-tools{
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F6F6F6;
    margin-top: 15px;
    margin-bottom: -29px;
}
@media (min-width:768px) and (max-width:991px) {
    .admin-tools{
        float: none !important;
        margin-bottom: 15px;
        width: 100%;
    }
}
.remove-client, .replace-client, .replace-customer{
    margin-top: -5px;
    margin-left: 2px;
}
.job-details hr{
    margin: 2px 0px;
}
.parts-received-modal .modal-dialog{
    width: 1100px;
}
.order-parts-modal .modal-dialog{
    width: 800px;
}
.re-service-warning{
    display: inline-block;
    padding: 0px 10px;
    margin-bottom: 0px;
    margin-left: 5px;
}
.fault-lookup .modal-dialog{
    width: 800px;
}
.fault-lookup .modal-content{
    max-height: 600px;
    overflow-y: scroll;
}

/* Products Page */
.btn.add-product{
    margin-top: -5px;
}
.new-product-input{
    margin-bottom: 2px;
}
.add-product-holder{
    float: right;
    margin-top: -5px;
    width: 40%;
}

@media (max-width: 1199px) {
    .job-overview-top {
        margin-top: 10px;
        margin-bottom: -20px;
    }
}
@media (min-width:1200px) {
    .job-overview-top {
        position: absolute;
    }
}

/* Notes Crap */

.job-notes .note-container{
    background: white;
    margin-bottom: 30px;
}
.note-container .note-container-child:not(.full-height-note) {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}
.note-container .panel{
    margin-bottom: 5px;
}
.note-container .recipient{
    width: 40%;
}
.note-container .tab-content{
    padding: 5px 0px;
    background: white;
}
.new-note-well{
    display: none;
}
.new-note-well .well{
    padding: 5px;
}
.new-note{
    position: relative;
    cursor: pointer;
    z-index: 999;
}
.note-container-title {
    flex: 1;
    cursor: pointer;
}
.note {
    position: relative;
    margin: 0px 5px;
}
.note-well{
    position: relative;
    padding: 2px 5px;
    margin-bottom: 10px;
}
.note-replies{
    position: relative;
    margin-left: 40px;
}
.note-footer{
    padding-top: 2px;
    border-top: 1px solid black;
    font-size: 9px;
    float: left;
    width: 100%;
}
.note-footer div{
    width: 32%;
    display: inline-block;
}
.note-footer div:nth-child(2){
    text-align: center;
}
.note-footer div:nth-child(3){
    text-align: right;
}
.note-reply{
    cursor: pointer;
}
.note-replies .note::before{
    content: '';
    width: 20px;
    height: 31px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: absolute;
    left: -20px;
    top: -11px;
}
.note-replies .note:not(:last-child)::after{
    content: '';
    width: 20px;
    height: 100%;
    border-left: 1px solid #ddd;
    position: absolute;
    left: -20px;
    top: 10px;
}
.note-content{
    font-size: 14px;
    display: inline-block;
}
.note-info{
    position: absolute;
    right: 5px;
    z-index: 1;
    cursor: pointer;
    top: 8px;
}
.note-tabs .tab-content {
    padding: 0;
    border: none;
}
.note-tabs .nav-tabs {
    left: 100px;
    right: auto;
    top: 9px;
    z-index: 1;
    position: absolute;
    border-bottom: none;
}
.note-tabs .nav-tabs>li>a {
    padding: 6px 12px;
}
.note-tabs .nav-tabs>li.active>a {
    padding: 6px 12px;
    border: none !important;
}
.note-seen-dets{
    font-size: 9px;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 2px;
}
.note-seen-icon{
    position: absolute;
    cursor: pointer;
    right: 2px;
}
.note-seen-icon:hover{
    color: #3c763d;
}
.new-portal-note .note-well{
    border: #d6e9c6;
    background: #dff0d8;
}
.pin-note {
    position: absolute;
    right: 5px;
    top: 3px;
    cursor: pointer;
}
.note-container .accordion-button {
    justify-content: space-between;
}
.note-container .accordion-header {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 5px;
    align-items: center;
    border-bottom: 1px solid #00000020;
    background: #ebf3ff;
}
.pinned-note {
    color: gold;
}

/* Attachments */
.model-attachments .add-files{
    position: absolute;
    top: 5px;
    right: 10px;
}
.attachments-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 10px;
}
.Attachment{
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    flex: 1 0 23%;
    flex-grow: 0;
}
.Attachment img {
    height: 130px;
}
.remove-attachment {
    color: red;
    font-size: 1.3em;
    cursor: pointer;
}
.Attachment.part-order-attachment{
    position: relative;
    width: 30px;
    height: 30px;
    overflow: hidden;
    display: inline-block;
    margin-bottom: 0px;
    border: 1px solid #ddd;
}
.attachment-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgb(0, 0, 0, 0.5);
    color: white;
    min-width: 100%;
    min-height: 300px;
}
.attachment-loading .fa-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Settings */
.status-container {
    background: white;
}
.status-container .status-parent {
    display: flex;
    justify-content: space-between;
    line-height: 30px;
    padding: 0px 5px;
    border: 1px solid #EEE;
}
.parent-container > .status-parent {
    border-bottom: 1px solid #42d29d;
}
.status-list .parent-container {
    margin-bottom: 5px;
}

/* Invoice */
.edit-invoice, .save-invoice{
    float: right;
}
.save-invoice{
    display: none;
}
.invoice-details td{
    position: relative;
}
.invoice-details .option{
    text-align: right;
}
.invoice-details .part-price-span{
    position: absolute;
    top: 50%;
    right: 0px;
}
.invoice-details table input[type="text"],
.invoice-details table input[type="real"]{
    text-align: right;
    padding-right: 2px;
}
.invoice-details .panel{
    margin-top: 34px;
}
.custom-radio-small{
    margin-bottom: 0px;
    margin-top: -2px;
    cursor: pointer;
}
.custom-radio-small :checked + .radio{
    width: 15px;
    height: 15px;
    border: 2px solid #1abc9c;
}
.custom-radio-small :checked + .radio::before{
    height: 5px;
    margin: 3px;
    width: 5px;
}
.custom-radio-small .radio{
    width: 15px;
    height: 15px;
    border: 2px solid #b5c1c7;
}

/* Fault */

/* Credit Note */
.creditnote-input label{
    display: inline-block;
    margin-right: 15px;
    width: 57%;
}

.creditnote-input .creditnote-invoice-amount{
    width: 15%;
    display: inline-block;
    float: right;
}

/* Customer Payments */
.reverse-payments,
.refund-credit{
    width: 90px;
}

/* Inventory */
.tree, .tree ul {
    margin:0;
    padding:0;
    list-style:none
}
.tree ul {
    margin-left:1em;
    position:relative
}
.tree ul ul {
    margin-left:5.5em
}
.tree ul:before {
    content:"";
    display:block;
    width:0;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    border-left:1px solid
}
.tree li {
    margin:0;
    padding:0 5em;
    line-height:2em;
    font-weight:700;
    position:relative
}
.tree ul li:before {
    content:"";
    display:block;
    width:60px;
    height:0;
    border-top:1px solid;
    margin-top:-1px;
    position:absolute;
    top:1em;
    left:0
}
.indicator {
    margin-right:5px;
}
.tree li a {
    text-decoration: none;
    color:#369;
}
.tree li button, .tree li button:active, .tree li button:focus {
    text-decoration: none;
    color:#369;
    border:none;
    background:transparent;
    margin:0px 0px 0px 0px;
    padding:0px 0px 0px 0px;
    outline: 0;
}
.tree .fa{
    font-size: 1.5em;
    cursor: pointer;
}

/* System Emails */
.system-emails .modal-body{
    padding: 0px;
}
.system-emails .email-content{
    padding: 20px 30px;
}
.compose-email .control-label{
    padding: 0px 0px 0px 10px;
    text-align: right;
}

/* Timeout Modal */
.timeout-modal .modal-header{
    text-align: center;
    padding: 5px 0px;
}
.timeout-modal #logo{
    width: 50%;
}

@media (min-width : 992px) and (max-width : 1199px){

    .payment-table th{
        font-size: 9px;
    }
    .controlBar img{
        width: 20%;
    }
    .panel panel-theme {
        padding: none;
    }
}

/* To Do List */
.todoReplies{
    position: relative;
    margin-left: 40px;
}
.todoReplies{
    cursor: pointer;
}
.todoReplies .todoHolder::before{
    content: '';
    width: 20px;
    height: 40px;
    border-left: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
    position: absolute;
    left: -20px;
    top: -20px;
}
.todoReplies .todoHolder:not(:last-child)::after{
    content: '';
    width: 20px;
    height: 100%;
    border-left: 1px solid #ddd;
    position: absolute;
    left: -20px;
    top: 10px;
}

/* Google maps hack */
.pac-container:after {
    background-image: none !important;
    height: 0px;
    padding: 0;
    margin: 0;
}

/* Boxes */
.box-parent > div {
    margin-bottom: 30px;
}
.box-holder {
    border: 1px solid #EFEFEF;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    position: relative;
    background: #FFF;
}
.box-holder .fa-archive {
    font-size: 5em;
    margin-bottom: 5px;
}
.box-holder .fa-arrows {
    position: absolute;
    top: 5px;
    left: 5px;
    cursor: pointer;
}
.box-holder .fa-times {
    position: absolute;
    color: red;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
.box-category {
    display: flex;
    flex-wrap: wrap;
}

/* Column config scheduler */
.column-popover {
    color: black;
}
.column-popover ul {
    list-style-type: none;
    padding: 0px 10px;
}

/* System Settings */
#system-settings b,
#system-settings span {
    line-height: 18px;
    vertical-align: middle;
    display: inline-block;
}
#system-settings td {
    line-height: 34px;
    vertical-align: top;
    padding: 4px 8px;
}
.schedule-legend {
    list-style-type: none;
    padding-left: 0;
}
.schedule-legend div {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: -3px;
    position: relative;
    border-radius: 2px;
}
.ev-disabled {
    cursor: default;
    opacity: 0.5;
}
.ev-disabled:hover {
    cursor: default;
}
.fc-popover .fc-event {
    margin-bottom: 2px;
}
.fc-event {
    cursor: pointer;
}
.fc-h-event .fc-event-main-frame {
    font-size: 12px;
}
.fc-h-event .fc-event-time {
    overflow: initial !important;
}
.pac-container {
    z-index: 10000 !important;
}
.home-dash-schedule-circle {
    border-radius: 10px;
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 2px;
    line-height: 12px;
}
.ev-delivery {
    border: 2px solid #D50000;
}

/* Signature stuff */
#signature {
    width: 100%;
    height: 300px;
    border: 1px solid #000;
    border-radius: 5px;
}

.schedule-control {
    display: flex;
    justify-content: space-between;
}

/* Widget stuff */
.widget-clickable,
.widget-todo {
    cursor: pointer;
}

/* User stuff */
.user-colour-cube {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: inline-block;
}

/* Credits stuff */ 
.part-credits tr {
    cursor: pointer;
}

.input-group-sm .bootstrap-select {
    padding: 0rem 0rem;
}
.expand-notes-icon {
    cursor: pointer;
    padding: .3rem;
}

/* DataTable Search */
.dt-search {
    display: inline-flex;
    flex-wrap: wrap;
    vertical-align: top;
}
.dt-search label {
    margin-top: 8px;
}

.modal-xxl {
  max-width: 2200px;
}