﻿html, body {
    background: url('bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, pre, ul, li {
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-padding-start: 0;
}

/* ================== */

#unsupported {
    display: none;
}

.unsupportedBrowser #unsupported {
    display: block;
}

.unsupportedBrowser #wrapper {
    display: none;
}

.unsupportedBrowser h1 {
    margin: 0;
    padding: 9px;
}

.unsupportedBrowser h2, .unsupportedBrowser p, .unsupportedBrowser ul, .unsupportedBrowser li {
    padding: 6px;
}

.unsupportedBrowser ul {
    list-style-type: square;
    list-style-position: inside;
}

.unsupportedBrowser #moduleToolbox {
    display: none;
}

.unsupportedBrowser #navContainer {
    display: none;
}

.unsupportedBrowser #bodyOverflowWrapper {
    display: none;
}
/* Edit Mode */
.edit.noNav #navContainer {
    display: block;
}

.edit #navContainer, .edit #bodyOverflowWrapper {
    top: 300px; /* Change #moduleToolbox height to match this */
}

/* ================== */
#navContainer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0); /* Force hardware acceleration */
    -moz-transition: transform 160ms ease;
    -webkit-transition: -webkit-transform 160ms ease; /* have to target "transform" property specifically otherwise iOS can't deal and it gets ignored */
    transition: transform 160ms ease;
}

    #navContainer.collapsed #headerBig {
        display: none;
    }

    #navContainer.collapsed {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        -webkit-transform: translate3d(-186px, 0, 0);
        -ms-transform: translate3d(-186px, 0, 0);
        transform: translate3d(-186px, 0, 0);
    }

        #navContainer.collapsed #headerSmall {
            width: 100%;
            height: 56px;
        }

#headerImageContainer {
    height: auto;
    position: absolute;
    left: 0;
    overflow: hidden;
    padding: 30px 8px 8px 20px;
    -moz-transition: left 180ms ease;
    -webkit-transition: left 180ms ease;
    transition: left 180ms ease;
    box-sizing: border-box;
}

.collapsed #headerImageContainer {
    padding: 8px;
}

#headerBig {
    padding: 0 0 0 8px;
}

.inSpecification #headerSmall, .inSpecification #headerBig {
    display: none;
}

.inSpecification #navContainer {
    -moz-transition: bottom 180ms ease, width 180ms ease;
    -webkit-transition: bottom 180ms ease, width 180ms ease;
    transition: bottom 180ms ease, width 180ms ease;
}

#bodyOverflowWrapper {
    position: absolute;
    left: 250px;
    right: 0;
    bottom: 0;
    top: 0;
    padding: 46px;
    overflow: auto;
}

#bodyContent {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.slideMenuCollapsed #bodyOverflowWrapper {
    left: 64px;
}

#navContent {
    width: 100%;
    position: absolute;
    top: 100px; /* Must match height of #headerImageContainer */
    bottom: 56px;
    overflow: auto;
}

nav .mdl-navigation {
    margin: 120px 0 0 0;
    padding: 0;
    box-sizing: border-box;
}

ul .mdl-navigation {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.mdl-navLink {
    width: 100%;
    display: block;
    padding: 16px 0;
    box-sizing: border-box;
    vertical-align: middle;
}

    .mdl-navLink:hover {
        background-image: url('arrowRight.png');
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: center;
        background-position: right 16px center; /* Both shorthand and longhand declared separately for a bug in Safari for Windows - Safari doesn't recognise offset from position (right 16px) */
    }

.navMenu {
    display: block;
    width: 100%;
    position: relative;
    height: 56px;
    background-image: url('navIcon.png');
    background-repeat: no-repeat;
    background-position-x: 14px;
    background-position-y: center;
    background: url(navIcon.png) no-repeat right 114px center; /* Both shorthand and longhand declared separately for a bug in Safari for Windows - Safari doesn't recognise offset from position (right 114px) */
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0); /* Force hardware acceleration */
    -moz-transition: 220ms transform ease, 220ms background-position ease;
    -webkit-transition: transform 220ms ease, background-position 220ms ease;
    transition: transform 220ms ease, background-position 220ms ease;
}

#navContainer.collapsed nav a.navMenu {
    background-position-x: 110px;
    background-position-y: center;
    background-position: right 18px center; /* Both shorthand and longhand declared separately for a bug in Safari for Windows - Safari doesn't recognise offset from position (right 18px) */
}

.img-navLink {
    margin: 4px 0 4px 0;
    padding: 8px 0 8px 20px;
    vertical-align: middle;
    position: relative;
    left: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0); /* Force hardware acceleration */
    -moz-transition: left 250ms ease;
    -webkit-transition: left 250ms ease;
    transition: left 250ms ease;
}

.collapsed .img-navLink {
    left: 96px;
}

.text-navLink {
    margin-left: 16px;
    vertical-align: middle;
}

.collapsed .text-navLink {
    display: none;
}

.bodyHeaderImage {
    margin: 28px 252px;
}

#logout-text {
    float: right;
    line-height: 56px;
}

.filter-wrapper {
    border-radius: 5px;
}

.historySpecPropsRow {
    display: none;
}

.showSpecProps .hasSpecProps.historySpecPropsRow {
    border-top: 1px solid;
    display: table-row;
}

.historySpecPropsContainer {
    overflow: hidden;
}

.historySpecProp {
    float: left;
    padding-right: 50px;
    padding-bottom: 10px;
}

    .historySpecProp p {
        padding: 0;
    }

.genSpecsTable .showPropsColumn {
    vertical-align: middle;
    text-align: right;
}

.showPropsCheckOverlay {
    height: 16px;
}

    .showPropsCheckOverlay input {
        opacity: 0;
        width: 16px;
        height: 16px;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }

/* settings icon */
#settings-container {
    width: 100%;
    height: 56px;
    padding: 16px;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

#settings-icon {
    vertical-align: middle;
    margin: 0 12px 0 16px;
}

#settings-text {
    vertical-align: middle;
}

/* Overwrite module specific styles for this Skin */
.form-navigation-link, .form-navigation-link-disabled {
    width: 75%;
    display: block;
    padding: 16px 32px;
    margin: 0 auto 10px auto;
    box-sizing: border-box;
    border-radius: 3px;
}

.form-navigation-link-disabled {
    cursor: default;
}

/* Spec Tasks Module */
#specificationTaskList {
    margin-top: 16px;
    padding: 16px;
}

    #specificationTaskList h2 {
        margin-bottom: 8px;
    }

.specTaskListMessage {
    padding: 4px;
}

#moduleToolbox {
    height: 300px; /* If changing, .edit #navContainer, .edit #bodyOverflowWrapper must match this value */
    overflow: auto;
    border: none;
    margin: 0;
    padding: 0;
}

.mdl-module-editable nav ul {
    margin-top: 0;
}

.uploadModuleContainer {
    margin: 0;
}

.responsive .uploadContainer {
    padding: 10px;
}

/* override for toolbar borders and bg */
.mdl-module-edit-toolbar {
    height: 32px;
}

#specificationFormContainer {
    position: relative;
    margin-top: auto;
    min-height: 350px;
    overflow: hidden; /* Hide controls with negative lefts */
}

#specificationBackground {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#specificationForm {
    position: relative;
}

.mdl-module-container {
    border: none;
}

/* Specification Navigation Module */

.specNavToggle {
    display: block;
    width: 32px;
    height: 32px;
    background: url('navIcon.png') no-repeat center;
    padding: 5px;
}

.specNavExpandable #navContainer {
    /* Undoing any existing css so that the nav panel is the size of the toggle button*/
    bottom: 100%;
    width: 42px; /* Matches .specNavToggle width + padding * 2 */
    height: 42px; /* Same as above */
    box-shadow: none;
}

.specNavExpandable #bodyOverflowWrapper {
    /* Make the body sit under the nav toggle button */
    left: 0;
    top: 42px; /* Match the .specNavToggle height + pading * 2 */
}

.specNavExpandable #navContent {
    overflow: hidden;
}

.hideSpecNav #navContainer {
    display: none;
}

.hideSpecNav #bodyOverflowWrapper {
    left: 0;
    top: 0;
}

/* Overwrite jQuery UI styles */
.ui-front {
    /* This fixes the issue with the dialog not visible in Safari due to z-index 
        http://stackoverflow.com/questions/11584562/jquery-dialog-not-visible-in-safari-while-it-has-z-index
     */
    z-index: auto;
}
