﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

input.wide {
    max-width: 560px;
}

input.superwide {
    max-width: 840px;
}

@media (max-width: 500px) {
    #LogoContainer {
        padding: 1rem 1rem;
        margin-bottom: 1rem;
    }

    #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;
    }

    #LogoText {
        visibility: hidden;
        display: none;
    }

    #LogoHR {
        visibility: hidden;
        display: none;
    }

    #SiteName {
        font-size: 32px;
        font-weight: 500;
    }

    #EditDiv, #EditInvoicePaymentDiv, #EditRodDiv, #EditLocateDiv, #EditMaintenanceDiv, #EditMaterialDiv, #EditServiceDiv {
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 2px solid white;
        background-color: #272B30;
        padding: 20px 20px 20px 20px;
    }

    #EditDiv, #EditInvoicePaymentDiv {
        width: 400px;
        height: 400px;
    }

    #EditRodDiv, #EditLocateDiv {
        width: 400px;
        height: 500px;
    }

    #EditMaintenanceDiv {
        width: 400px;
        height: 600px;
    }

    #EditMaterialDiv {
        width: 800px;
        height: 600px;
    }

    #EditServiceDiv {
        width: 400px;
        height: 750px;
    }

    #EditDivModal, #EditLocateDivModal, #EditRodDivModal, #EditServiceDivModal, #EditMaterialDivModal, #EditMaintenanceDivModal, #EditInvoicePaymentDiv {
        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 */
    }

    #ServiceSelectDiv, #MaterialSelectDiv {
        margin: auto;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 1100px;
        height: 500px;
        background-color: #272B30;
        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: #272B30;
    }

    #SelectAService, #SelectAMaterial {
        max-width: 1100px;
    }

    #SelectedCustomerId, #SelectedJobId {
        padding: 3px;
        width: 250px;
    }

    .VerticalSibling {
        display: inline-block;
        vertical-align: middle;
    }

    .ListWithPlus {
        width: calc(100% - 30px);
    }

    #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: #272B30;
        width: 80%;
        padding: 5px 5px 5px 5px;
    }

    @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;
        }
    }

    .CSBGridCol-4 {
        display: inline-block;
        width: 33%;
    }

    .CSBGridCell {
        display: inline-block;
        width: 100%;
    }

    .wideTextArea {
        max-width: 600px;
    }

    .add-link {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

