﻿/* Login Module */
#login-outer {
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    top: 0;
    box-sizing: border-box;
}

#login-top {
    width: 100%;
    padding-bottom: 16px;
}

#login-logo {
    vertical-align: middle;
}

#login-bottom {
    width: 100%;
    padding: 20px;
    display: table;
    border-radius: 4px;
    box-sizing: border-box;
}

#login-details {
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

#login-error {
    margin: 10px 0;
    padding: 5px;
}

    #login-error img {
        margin-right: 5px;
    }

.login-parameter-text {
    padding: 5px 0;
}

.login-parameter-input {
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0;
    padding: 10px 4px;
}

#login-button {
    margin: 50px auto;
    width: 100px;
    display: block;
    padding: 10px;
    border: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    text-align: center;
    border-radius: 3px;
}

.login-information {
    line-height: 24px;
    margin-top: 5px;
}

/* Projects module */
#projects-container {
    max-width: 1600px;
    box-sizing: border-box;
    margin: 0 auto;
    padding-top: 0;
}

.welcome {
    padding: 20px 0 5px 10px;
}

.project-card-container {
    display: inline-block; /* removing this would fix the issue with safari for windows (and the iPad 2/3?) */
    box-sizing: border-box;
    width: 227px;
    height: 350px;
    margin: 10px;
    position: relative;
    vertical-align: top; /* this fixes the issue in Safari for Windows, you could also add float: left or remove all whitepsace from the markup */
}

.project-card-inner {
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 3px;
}

.project-image {
    border-bottom: 3px solid #db4146;
    min-height: 140px;
}

    .project-image .center {
        display: block;
        margin: 0 auto;
    }

.project-card-description {
    padding: 5px 0;
    height: 50px;
    overflow: hidden;
}

.project-card-details {
    padding: 15px;
}

.project-run-container {
    width: 100%;
    padding: 20px;
    position: absolute;
    bottom: 0;
    box-sizing: border-box;
}

.project-run-button {
    display: block;
    margin: 0 auto;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: 5px;
}

.project-docs-generated {
    display: none;
}

.navigation-link-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Spec History Module */
#history-container {
    width: 100%;
    display: table;
    box-sizing: border-box;
    padding-top: 0;
}

#history-header-container {
    width: 100%;
}

#history-info-wrapper {
    width: 50%;
    display: table-cell;
    vertical-align: middle;
}

#history-filter-container {
    width: 50%;
    display: table-cell;
}

.filter-wrapper {
    width: 100%;
    margin: 16px 0;
    padding: 16px;
    box-sizing: border-box;
}

.filter-box {
    border: 0;
    box-sizing: border-box;
    margin: 5px 0;
    padding: 5px;
}

/* Spec Details module */
#specDetailsContainer {
    width: 100%;
    overflow: auto;
    box-sizing: border-box;
    padding-top: 0;
}

.orderDetails {
    width: 100%;
    margin: 0 0 55px 0;
    background: url(yourOrderIcon.png) no-repeat left top;
    display: inline-block;
}

    .orderDetails h2, .genDocsPre h2 {
        padding: 0 0 8px 48px;
    }

.custDetailsWrap {
    display: inline-block;
    width: 100%;
}

.custDetailsLeft {
    width: 50%;
    float: left;
}

    .custDetailsLeft .knockoutPopulated {
        width: 100%;
        display: inline-block;
    }

.custDetailsRight {
    width: 50%;
    float: right;
}

.genDocsPre {
    width: 100%;
    display: inline-block;
    margin: 0 0 16px 0;
    background: url(documentsIcon.png) no-repeat left top;
}

#genStatusContainer {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px;
}

.genStatusLeft {
    width: 75%;
    float: left;
    box-sizing: border-box;
    padding-right: 10px;
}

.genStatusRight {
    width: 25%;
    max-height: 64px;
    float: left;
    box-sizing: border-box;
    padding: 10px 0;
    border-radius: 4px;
}

.genStatusRightActive, .genStatusRightComplete {
    padding: 12px;
    border-radius: 5px;
}

    .genStatusRightActive span:first-child, .genStatusRightComplete span:first-child {
        margin-left: 45px;
    }

.genDocsTable table td {
    padding: 8px 0;
}

.docCell {
    padding-left: 40px;
}

.actionButtons {
    display: inline-block;
    margin: 10px 0;
    float: right;
}

    .actionButtons .button {
        display: inline-block;
        width: 165px; /* This value will change the width of your action buttons, should you need to accomodate a larger transition name */
        margin-left: 25px;
        padding: 8px 0;
        border-radius: 3px;
    }

    .actionButtons .buttonText {
        text-align: center;
        font-size: 14px;
    }

/* ---- Combined Spec history & Spec details classes ---- */
.genSpecsTable, .genDocsTable {
    width: 100%;
    display: inline-block;
    border-spacing: 0;
}

    .genSpecsTable table, .genDocsTable table {
        width: 100%;
        border-collapse: collapse;
    }

    .genSpecsTable th:first-child, .genDocsTable th:first-child {
        border-top-left-radius: 5px;
    }

    .genSpecsTable th:last-child, .genDocsTable th:last-child {
        border-top-right-radius: 5px;
        padding-right: 10px;
    }

    .genSpecsTable td, .genDocsTable td {
        padding: 10px;
    }

    .genSpecsTable th, .genDocsTable th {
        padding: 10px 0 10px 10px;
    }

/* Common Helper Styles */
.vertical-center-cell {
    display: table-cell;
    vertical-align: middle;
}

.border-box-sizing {
    box-sizing: border-box;
}

.link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    bottom: 0;
}

.fill-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Specification Navigation */
#metro-navigation-container {
    max-width: 100%;
    text-align: center;
    margin-top: 16px;
}

/* Specification Details Module */
#spec-details-container {
    margin: 16px 0;
    overflow: hidden; /* Gives height to the parent container if it contains floated child elements */
    max-width: 100%;
}

#spec-details-panel {
    height: 210px;
    margin: 20px 10px;
}

#back-button-container {
    float: left;
    width: 100px;
    position: relative;
    margin-right: 20px;
    background-image: url('navLeftDark.png');
    background-repeat: no-repeat;
    background-position: center center;
}

#back-button-image {
    display: none;
}

#spec-details {
    overflow: hidden;
    position: relative;
}

#back-button-container, #spec-details {
    height: 100%;
}

#spec-details-inner {
    width: 100%;
    height: 100%;
    display: table;
}

.document-image-placeholder {
    margin-right: 32px; /* Width of the document image to allow for wrapping around the background image */
}

.action-text {
    text-align: center;
}


/* Older web enabled phones and small form factor devices */
@media only screen and (max-width: 240px) {

    /* Login Module */
    #login-container, #login-details {
        width: 100%;
        box-sizing: border-box;
    }

    #wrapper {
        top: 130px;
    }

    /* Menu Module */
    #settings-container {
        display: none;
    }

    .noNav #navContainer {
        display: none;
    }

    .noNav #bodyOverflowWrapper {
        left: 0;
    }

    #navContainer {
        width: 160px;
        z-index: 1;
        -webkit-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        -moz-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
    }

        #navContainer.collapsed {
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
            -webkit-transform: translate3d(-96px, 0, 0);
            -ms-transform: translate3d(-96px, 0, 0); /* #navContainer width - 64 (desired collapsed width) */
            transform: translate3d(-96px, 0, 0);
        }

    .edit #navContainer {
        z-index: auto;
    }

    .collapsed #headerImageContainer {
        left: 96px;
    }

    #navContainer #headerSmall {
        width: 100%;
        height: 56px;
    }

    #navContainer img#headerLarge {
        display: none;
    }

    #headerImageContainer {
        padding: 8px;
        height: 60px;
    }

    #navContent {
        top: 60px;
        bottom: 0;
    }

    #bodyOverflowWrapper {
        /* Let the menu overlap the content for smaller screens */
        left: 64px;
        top: 0;
        padding: 16px;
    }

    .edit #bodyOverflowWrapper {
        left: 160px; /* Don't allow overlap in edit mode */
    }

    /* Projects Module */
    #projects-container {
        left: 64px;
    }

    /* Spec History Module */
    .filter-container {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .genSpecsTable .showPropsColumn {
        text-align: center;
    }

    .showPropsCheckOverlay {
        background-position: center center;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        padding: 12px;
    }

    .custDetailsLeft, .custDetailsRight {
        width: 100%;
        float: left;
    }

        .custDetailsLeft .knockoutPopulated {
            width: 100%;
            display: inline-block;
        }


    .genStatusLeft {
        width: 100%;
    }

    .genStatusRight {
        width: 100%;
    }


    .actionButtons {
        float: left;
    }

        .actionButtons .button {
            width: 100%;
            margin: 0 0 22px 0;
        }

    /* Specification */
    .inSpecification #bodyOverflowWrapper {
        left: 0; /* Let the menu overlap for smaller screens */
        top: 42px; /* Always keep the spec under the menu */
        padding: 5px;
    }

    .inSpecification.hideSpecNav #bodyOverflowWrapper {
        top: 0;
    }
}

/* iPhones in portrait orientation and older web enabled phones in landscape */
@media only screen and (min-width: 241px) and (max-width: 399px) {
    /* Login Module */
    #login-container, #login-details {
        width: 100%;
        box-sizing: border-box;
    }

    #wrapper {
        top: 128px;
    }

    /* Menu Module */
    #settings-container {
        display: none;
    }

    .noNav #navContainer {
        display: none;
    }

    .noNav #bodyOverflowWrapper {
        left: 0;
    }

    #navContainer {
        width: 160px;
        z-index: 1;
        -webkit-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        -moz-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
    }

        #navContainer.collapsed {
            -webkit-transform: translate3d(-96px, 0, 0);
            -ms-transform: translate3d(-96px, 0, 0);
            transform: translate3d(-96px, 0, 0);
        }

    .edit #navContainer {
        z-index: auto;
    }

    .collapsed #headerImageContainer {
        left: 96px;
    }

    #navContainer #headerSmall {
        width: 100%;
        height: 56px;
    }

    #navContainer img#headerLarge {
        display: none;
    }

    nav .mdl-navigation {
        margin-top: 10px;
    }

    #headerImageContainer {
        padding: 8px;
        height: 60px;
    }

    /* Spec Nav */
    #navContent {
        top: 60px;
        bottom: 0;
    }

    #bodyOverflowWrapper {
        /* Let the menu overlap the content for smaller screens */
        left: 64px;
        padding: 16px;
    }

    .edit #bodyOverflowWrapper {
        left: 160px; /* Don't allow overlap in edit mode */
    }

    /* Projects Module */
    .welcome {
        font-size: 1.5rem;
    }

    .project-card-container {
        margin: 0 0 10px 0;
    }

    /* Spec History Module */
    #history-container {
        top: 0;
    }

    #history-header-container, #history-info-wrapper, #history-filter-container {
        display: inline-block;
        width: 100%;
    }

    .genSpecsTable .showPropsColumn {
        text-align: center;
    }

    .showPropsCheckOverlay {
        background-position: center center;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        top: 0;
        font-size: 10px;
    }

    .docCell, .createdCell {
        font-size: 10px;
    }

    .orderDetails, .genDocsPre {
        background-position: 12px 12px;
        padding: 12px 0;
    }

    .custDetailsLeft, .custDetailsRight {
        width: 100%;
        float: left;
    }

        .custDetailsLeft .knockoutPopulated {
            width: 100%;
            display: inline-block;
        }

    .genStatusLeft {
        width: 100%;
    }

    .genStatusRight {
        width: 100%;
    }

    .genDocsTable {
        margin: 0 0 12px 0;
        font-size: 10px;
    }

        .genDocsTable table {
            margin: 0 0 12px 0;
        }

            .genDocsTable table th {
                padding: 8px;
            }

            .genDocsTable table .headerRow {
                font-size: 10px;
            }

    .docGenerated {
        background: none;
    }

    .actionButtons {
        width: 100%;
        float: left;
    }

        .actionButtons .button {
            width: 100%;
            margin: 0 0 20px 0;
        }

    /* Specification */
    .inSpecification #bodyOverflowWrapper {
        left: 0; /* Let the menu overlap for smaller screens */
        top: 42px; /* Always keep the spec under the menu */
        padding: 5px;
    }

    .inSpecification.hideSpecNav #bodyOverflowWrapper, .inSpecification #navContent {
        top: 0;
    }
}

/* iPhones in landscape and other smartphones in portrait */
@media only screen and (min-width: 400px) and (max-width: 599px) {
    /* Login Module */
    #login-details {
        width: 280px;
    }

    #wrapper {
        top: 130px;
    }

    /* Menu Module */
    #settings-container {
        display: none;
    }

    .noNav #navContainer {
        display: none;
    }

    .noNav #bodyOverflowWrapper {
        left: 0;
    }

    #navContainer {
        width: 160px;
        z-index: 1;
        -webkit-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        -moz-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
    }

        #navContainer.collapsed {
            -webkit-transform: translate3d(-96px, 0, 0);
            -ms-transform: translate3d(-96px, 0, 0);
            transform: translate3d(-96px, 0, 0);
        }

    .edit #navContainer {
        z-index: auto;
    }

    .collapsed #headerImageContainer {
        left: 96px;
    }

    #navContainer #headerSmall {
        width: 100%;
        height: 56px;
    }

    #navContainer img#headerLarge {
        display: none;
    }

    nav .mdl-navigation {
        margin-top: 10px;
    }

    #headerImageContainer {
        padding: 8px;
        height: 60px;
    }

    /* Spec Nav */
    #navContent {
        top: 60px;
        bottom: 0;
    }

    #bodyOverflowWrapper {
        /* Let the menu overlap the content for smaller screens */
        left: 64px;
        padding: 16px;
    }

    .edit #bodyOverflowWrapper {
        left: 160px; /* Don't allow overlap in edit mode */
    }

    /* Projects Module */
    .welcome {
        font-size: 1.5rem;
    }

    .project-card-container {
        width: 90%;
    }

    /* Spec History Module */
    #history-container {
        top: 0;
    }

    #history-header-container, #history-info-wrapper, #history-filter-container {
        display: inline-block;
        width: 100%;
    }

    .genSpecsTable .showPropsColumn {
        text-align: center;
    }

    .showPropsCheckOverlay {
        background-position: center center;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        top: 0;
    }

    .orderDetails, .genDocsPre {
        background-position: 2px 12px;
    }

        .orderDetails h2, .genDocsPre h2 {
            padding-top: 10px;
        }

    .custDetailsLeft, .custDetailsRight {
        width: 100%;
        float: left;
    }

        .custDetailsLeft .knockoutPopulated {
            width: 100%;
            display: inline-block;
        }

    .genStatusLeft {
        width: 100%;
    }

    .genStatusRight {
        width: 100%;
    }

    .genDocsTable table th {
        padding: 0 8px 0 0;
    }

    .docGenerated {
        background: none;
    }

    .actionButtons {
        width: 100%;
        float: left;
    }

        .actionButtons .button {
            width: 100%;
            margin: 0 0 20px 0;
        }

    /* Specification */
    .inSpecification #bodyOverflowWrapper {
        left: 0; /* Let the menu overlap for smaller screens */
        top: 42px; /* Always keep the spec under the menu */
        padding: 5px;
    }

    .inSpecification.hideSpecNav #bodyOverflowWrapper, .inSpecification #navContent {
        top: 0;
    }
}
/* Kindle Fire in portrait */
@media only screen and (min-width: 600px) and (max-width: 767px) {

    /* Login Module */
    #login-details {
        width: 280px;
    }

    #wrapper {
        top: 130px;
    }

    /* Menu Module */
    #settings-container {
        display: none;
    }

    .noNav #navContainer {
        display: none;
    }

    .noNav #bodyOverflowWrapper {
        left: 0;
    }

    #navContainer {
        width: 160px;
        z-index: 1;
        -webkit-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        -moz-box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
        box-shadow: 3px 2px 8px 0px rgba(50, 50, 50, 0.75);
    }

        #navContainer.collapsed {
            -webkit-transform: translate3d(-96px, 0, 0);
            -ms-transform: translate3d(-96px, 0, 0);
            transform: translate3d(-96px, 0, 0);
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

    .edit #navContainer {
        z-index: auto;
    }

    .collapsed #headerImageContainer {
        left: 96px;
    }

    #navContainer #headerSmall {
        width: 100%;
        height: 56px;
    }

    #navContainer img#headerLarge {
        display: none;
    }

    nav .mdl-navigation {
        margin-top: 10px;
    }

    #bodyOverflowWrapper {
        left: 64px;
        padding: 16px;
    }

    .edit #bodyOverflowWrapper {
        left: 160px; /* Don't allow overlap in edit mode */
    }

    #headerImageContainer {
        padding: 8px;
        height: 60px;
    }

    /* Spec Nav */
    #navContent {
        top: 60px;
        bottom: 0;
    }

    /* Spec History Module */
    #history-container {
        top: 0;
    }

    #history-header-container, #history-info-wrapper, #history-filter-container {
        display: inline-block;
        width: 100%;
    }

    .filter-container {
        width: 100%;
        padding: 8px;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        top: 0;
    }

    .orderDetails, .genDocsPre {
        background-position: 12px 12px;
        padding: 12px 0;
    }

    .genStatusLeft {
        width: 100%;
    }

    .genStatusRight {
        width: 100%;
    }

    .docGenerated {
        background: none;
    }

    .actionButtons {
        width: 100%;
        float: left;
    }

        .actionButtons .button {
            width: 100%;
            margin: 0 0 20px 0;
        }

    /* Specification */
    .inSpecification #bodyOverflowWrapper {
        left: 0; /* Let the menu overlap for smaller screens */
        top: 42px; /* Always keep the spec under the menu */
        padding: 5px;
    }

    .inSpecification.hideSpecNav #bodyOverflowWrapper, .inSpecification #navContent {
        top: 0;
    }
}

/* iPads and tablets in portrait and smartphones in landscape */
@media only screen and (min-width: 768px) and (max-width: 959px) {

    #navContainer {
        width: 250px;
    }

        #navContainer.collapsed {
            -webkit-transform: translate3d(-186px, 0, 0);
            -ms-transform: translate3d(-186px, 0, 0);
            transform: translate3d(-186px, 0, 0);
        }

    .specNavToggle, .navMenu, #headerSmall {
        display: none;
    }

    #bodyOverflowWrapper {
        left: 250px;
    }

    /* Login Module */
    #login-details {
        width: 280px;
    }

    #wrapper {
        top: 130px;
    }

    /* Spec History Module */
    #history-container {
        top: 0;
    }

    #history-filter-container {
        display: inline-block;
        width: 100%;
    }

    .filter-container {
        padding: 0 10px;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        top: 0;
    }

    .genStatusLeft {
        width: 100%;
    }

    .genStatusRight {
        width: 100%;
    }

    .genDocsTable table {
        margin: 0;
    }

    .actionButtons {
        width: 100%;
        float: left;
    }

        .actionButtons .button {
            width: 100%;
            margin: 10px 0;
        }
}

/* The widest layout for tablets and desktops */
@media only screen and (min-width: 960px) and (max-width: 1600px) {

    #navContainer {
        width: 250px;
    }

        #navContainer.collapsed {
            -webkit-transform: translate3d(-186px, 0, 0);
            -ms-transform: translate3d(-186px, 0, 0);
            transform: translate3d(-186px, 0, 0);
        }

    .specNavToggle, .navMenu, #headerSmall {
        display: none;
    }

    #bodyOverflowWrapper {
        left: 250px;
    }

    /* Login Module */
    #login-details {
        width: 280px;
    }

    #wrapper {
        top: 130px;
    }

    /* Projects Module */
    #projects-container {
        padding-top: 82px; /* brings project cards in line with top of menu  */
    }

    /* Spec History Module */
    #history-container {
        padding-top: 82px; /* brings container in line with top of menu  */
    }

    #history-filter-container {
        display: inline-block;
        width: 100%;
    }

    .filter-container {
        padding: 0 10px;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        padding-top: 82px;
    }

        #specDetailsContainer.imageGallery {
            padding-top: 0px;
        }

    .genStatusLeft {
        width: 50%;
    }

    .genStatusRight {
        width: 50%;
    }
}

/* Large desktops */
@media only screen and (min-width: 1601px) {

    .navMenu, .specNavToggle, #headerSmall {
        display: none;
    }

    /*Header Image*/
    .bodyHeaderImageSmall {
        background: url('headerSmall.png') no-repeat 0 100%;
        width: 100%;
        height: 80px;
        margin: 0 16px;
    }

    .bodyHeaderSpanSmall {
        margin: 0 0 0 80px;
        position: relative;
        top: 30px;
    }

    /* Projects Module */
    #projects-container {
        padding-top: 82px; /* brings menu in line with top of project cards */
    }

    /* History Module */
    #history-container {
        padding-top: 82px; /* brings container in line with top of menu  */
    }

    #history-info-wrapper {
        padding-right: 8px;
    }

    /* Spec Details Module */
    #specDetailsContainer {
        padding-top: 82px;
    }

        #specDetailsContainer.imageGallery {
            padding-top: 0px;
        }
}