:root {
    --bs-secondary: #000000;
    --bs-body-color: #333333;
    --bs-body-bg: #ffffff;
    --link-color: #000000;
}

html {
    font-size: 14px;
    min-height: 100%;
    position: relative;
}

.dropdown-toggle.bg-dark {
    border-style: none;
    margin-top: 2px;
}

.dropdown-menu.dark {
}

.dropdown-item.bg-dark {
    color: white;
}

.dropdown-toggle.bg-light {
    border-style: none;
    margin-top: 2px;
}

.dropdown-menu.light {
}

.dropdown-item.bg-light {
    color: black;
}

body {
    margin-bottom: 60px;
}

.dl-horizontal dt {
    white-space: normal;
}

input,
select {
    max-width: 280px;
}

input.wide {
    max-width: 560px;
}

select.wide {
    max-width: 560px;
}

input.superwide {
    max-width: 840px;
}

.date-field {
    max-width: 250px;
}

.short {
    max-width: 200px;
}

.medium-data-field {
    max-width: 400px;
}

.claim-label {
    margin-top: 22px;
}

.claim-input {
    margin-top: 10px;
    margin-bottom: 10px;
}

.claim-section-header {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.claim-input.claim-text {
    max-width: 600px;
    height: 150px;
}

.claim-input.claim-wide {
    max-width: 600px;
}

.claim-input.claim-short {
    max-width: 150px;
}

.claim-input.claim-checkbox {
    margin-top: 22px;
}

.submit-div, .link-div {
    margin-top: 20px;
}

.crew-multiselect {
    height: 200px !important;
}

.btn {
    background-color: #d5d8dd;
    color: black;
}

.wo-input.wo-text {
    max-width: 600px;
    height: 150px;
}

.btn.btn-default {
    background-color: #d5d8dd;
    border-color: #454b54;
    border-width: 1px;
    border-radius: 12px;
    color: black;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 200px;
    margin-right: 20px;
}

.btn.btn-default.login-button {
    max-width: 280px;
    width: 100%;
}

    .btn.btn-default:hover {
        background-color: #c6cbd2;
    }

/* Account Pages */
.btn.btn-lg.btn-primary {
    background-color: #aaaaaa;
    color: black;
}

.bottom-links {
    margin-top: 20px;
    margin-bottom: 20px;
}

.control-350 {
    max-width: 350px;
}

.control-500 {
    max-width: 500px;
}

.dataTables_filter {
    margin-bottom: 15px;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 15px;
}

.table-dark {
    --bs-table-striped-color: #aaa;
    color: #aaa;
}

.table-light {
    --bs-table-striped-color: #000000;
    color: #000000;
}

.link-light {
    text-decoration: none;
}

.link-light:hover, .link-light:focus {
    text-decoration: underline;
}

.link-dark {
    text-decoration: none;
}

.link-dark:hover, .link-dark:focus {
    text-decoration: underline;
}

.login-form.form-floating, 
.manage-form.form-floating {
    margin-bottom: 15px;
}

/* Pagination style overrides */

.paginate_button.active a {
    background-color: #d5d8dd !important;
    border-color: #454b54 !important;
}

/*.paginate_button a {
    background-color: #d5d8dd !important;
    border-color: #454b54 !important;
    color: white !important;
}

.paginate_button.active a {
    background-color: #2e3238 !important;
    border-color: #454b54 !important;
}

.paginate_button.disabled a {
    background-color: #505762 !important;
    border-color: #505762 !important;
}

.paginate_button a:focus {
    outline: none !important;
    outline-style: none !important;
    box-shadow: none !important;
}

.paginate_button a:hover {
    background-color: #454b54 !important;
}*/

/* OLD Pagination style overrides */

/*.page-link {
    background-color: #aaaaaa !important;
    color: black !important;
    border-color: #808080 !important;
}

.page-link:hover {
    background-color: #bfbfbf !important;
    border-color: #808080 !important;
}

.page-item.active .page-link {
    background-color: black !important;
    border-color: #808080 !important;
    color: white !important;
}

.page-item.disabled .page-link:hover {
    background-color: #aaaaaa !important;
    border-color: #aaaaaa !important;
}*/

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before {
    background-color: #ffffff;
}

tr.odd + tr.noterow td,
tr.odd + tr.child + tr.noterow td {
    background-color: #f1f2f3 !important;
}

tr.odd + tr.child {
    --bs-table-accent-bg: #f1f2f3 !important;
}

tr.even + tr.noterow td,
tr.even + tr.child + tr.noterow td {
    background-color: #e2e4e9 !important;
}

tr.even + tr.child {
    --bs-table-accent-bg: #e2e4e9 !important;
}

.control-label {
    margin-top: 10px;
    margin-bottom: 2px;
}

.top-links {
    margin-top: 15px;
    margin-bottom: 15px;
}

.dff_table {
    margin-top: 20px;
}

.dff-edit-div {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

.dff-edit-div.wh85 {
    width: 800px;
    height: 500px;
}

#EditDiv, #EditInvoicePaymentDiv, #EditPODetailDiv, #EditWarrantyDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditRodDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 500px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditServiceDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 725px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditWOPartDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 800px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditWOServiceDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 475px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditMaterialDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 800px;
    height: 600px;
    border: 2px solid white;
    background-color: #ffffff;
    padding: 20px 20px 20px 20px;
}

#EditDivModal, #EditLocateDivModal, #EditRodDivModal, #EditServiceDivModal, #EditMaterialDivModal, #EditMaintenanceDivModal, #EditInvoicePaymentDivModal, #EditPODetailDivModal, #EditWarrantyDivModal, #EditWOPartDivModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#NewCustomerDivModal, #NewJobDivModal, #EditJobDivModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#NewCustomerDiv {
    height: 400px;
}

#NewJobDiv {
    height: 500px;
}

#EditJobDiv {
    height: 700px;
}

#NewCustomerDiv, #NewJobDiv, #EditJobDiv {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid white;
    background-color: #ffffff;
    width: 80%;
    padding: 5px 5px 5px 5px;
}

#serviceSelect {
    width: 95%;
}

#ServiceSelectDiv, #MaterialSelectDiv {
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 1060px;
    height: 460px;
    background-color: #ffffff;
    padding: 5px 5px 5px 5px;
}

#ServiceSelectDivModal, #MaterialSelectDivModal {
    display: none; /* Hidden by default */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 1100px;
    height: 500px;
    overflow: auto; /* Enable scroll if needed */
    border: 2px solid white;
    background-color: #ffffff;
}

#SelectAService, #SelectAMaterial {
    max-width: 1100px;
}

.dropzone, .dz-preview {
    background-color: #505962 !important;
}

.btn.btn-default.file-remove-btn {
    width: 120px;
    /*    margin-top: 10px;    
    border-radius: 20px;
    padding-left: 10px;
    text-align: center;
    padding-right: 10px;
    background-color: #ffffff;
    color: #aaa;
    height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;*/
}

.btn.btn-default.dialog-btn {
    width: 100px;
}

.file-upload-btn {
    color: #aaa;
    height: 37px;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-image: linear-gradient(#484e55, #3A3F44 60%, #313539);
    background-repeat: no-repeat;
}

#files {
    margin-bottom: 20px;
}

.dff-grid-col-4 {
    display: inline-block;
    width: 33%;
}

.dff-grid-cell {
    display: inline-block;
    width: 100%;
}

.VerticalSibling {
    display: inline-block;
    vertical-align: middle;
}

.popup-dd {
    height: 30px;
    min-width: 200px;
}

.dff-card {
    padding: 20px;
    margin: 10px;
    border-color: #454b54;
    border-width: 1px;
    border-radius: 12px;
    border-style: solid;
    color: white;
    width: 300px;
    height: 200px;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.btn.btn-default.dff-card-button {
    width: 200px;
    height: 50px;
    margin-right: 0px;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-box {
    text-align: center;
    color: white;
    font-size: 18px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 600px) {
    #NewCustomerDiv, #NewJobDiv, #EditJobDiv {
        width: 400px;
        padding: 10px 10px 10px 10px;
    }
}

@media screen and (min-width: 700px) {
    #NewCustomerDiv, #NewJobDiv, #EditJobDiv {
        padding: 20px 20px 20px 20px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .dataTables_length {
        margin-bottom: 10px;
    }

}

@media (max-width: 500px) {
    #LogoContainer {
        padding: 1rem 1rem;
        margin-bottom: 1rem;
    }

    #LogoImage {
        height: 94px;
        width: 118px;
        margin-left: auto;
        margin-right: auto;
    }

    #LogoText {
        font-size: 1.0em;
        font-weight: 500;
        text-align: center;
    }

    #SiteName {
        font-size: 1.5em;
        font-weight: 500;
        text-align: center;
    }

    #RegisterText {
        text-align: center;
    }
}

@media (min-width: 501px) {
    #LogoContainer {
        padding: 4rem 2rem;
        margin-bottom: 1rem;
    }

    #LogoImage {
        height: 120px;
        width: 189px;
    }

    #LogoText {
        visibility: hidden;
        display: none;
    }

    #LogoHR {
        visibility: hidden;
        display: none;
    }

    #SiteName {
        font-size: 32px;
        font-weight: 500;
    }


}

/* Don't add new styles here - keep the bottom for media-based styles */