/* 
    Document   : main
    Created on : 06 Feb 2015, 12:35:19 PM
    Author     : ZakS
    Description:
        Purpose of the stylesheet follows.
*/

/*** WRAPPER - Centers the page ***/
.new-module {
    position: absolute;
    font-size: 8px;
    color: red;
    left: 10px;
    bottom: 3px;
}

#wrapper {
    margin: 0 auto; 
    width: 1200px;
    height: auto;
}

/*** HEADER (Banner) ***/
#header {
    position: relative;
    display: block;
    height: 100px;
}

#header img {
    padding-top: 20px;
    float: left;
}

#version {
    position: absolute;
    top: 60px;
    right: 879px;
    font-size: 10px;
    color: #31618b;
}

#header form {
    position: absolute;
}

#header > div {
    position: relative;
    float: right;
    width: 850px; /* was 500 for the table */
    height: 100%;
}

/* Divs (new) */

#header > div {
    color: #8b9274;
}

#header div:nth-child(1) {
    position: absolute;
    top: 30px;
}

#header div:nth-child(2) {
    position: absolute;
    top: 50px;
}

#changeFactory {
    position: absolute;
    top: 15px;
    right: 0px;
    width: 110px;
}

#logout {
    position: absolute;
    top: 55px;
    right: 0px;
    width: 110px;
}

/* Table (old) */
#header table {
    float: right;
    width: auto;
    margin-top: 10px;
}

#header table tr td {
    vertical-align:middle;
    padding: 2px;
}

#header table tr td.headerTableLeft {
    text-align: left; 
}

#header table tr td.headerTableRight {
    text-align: left; 
}

#header table tr:last-child td {
    text-align: center;
    padding: 6px 2px 2px 2px;
}

#header table tr:last-child td button {
    height: 25px;
    width: 75px;
}

/** END OF TABLE **/

#changeFactoryBtn:hover {
    cursor: pointer;
}

#logout:hover {
    cursor: pointer;
}

/*** BODY ***/

#body {
    position: relative;
    display: block;
    /*overflow: auto;  To increase the size of the page dynamically */
    overflow: hidden; /* To increase the size of the page dynamically*/
    width: 1200px;
    background-image: url("../../images/content_stripe_bg.png");
    background-repeat: repeat;
}

body {
    margin: 0;
    font-family: Roboto-Regular;
}

/*** NAVIGATION ***/

/*
#sidemenu {
    height: 100%;
    float: left;
    width: 160px;
    background: #e3f98e;
}
*/

#sidemenu {
    position: absolute;
    width: 160px;
    left: 0px;
    top: 0px;
    bottom: 0px;
    background: #e3f98e;
}

#navigation {
    /*
    height: auto;
    width: 160px;
    */
    position: absolute;
    width: 160px;
    left: 0px;
    top: 0px;
    bottom: 0px;

    margin: 0px 0px 0px 0px;
    overflow: hidden;
    background-image: url("../../images/content_stripe_bg.png");
    background-repeat: repeat;
}

#navigation,
#navigation ul,
#navigation li,
#navigation a {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    text-decoration: none;
    color: #8c9761;
    font-size: 14px;
    position: relative;
    font-family: Roboto-Medium, Arial;
}

#navigation > ul > li > a {
    display: block;
    text-transform: uppercase;
}
#navigation > ul > li > a > span { /* Inactive */
    background: #e3f98e;
    padding: 10px;
    display: block;
    font-size: 14px;
    width: 126px;
}

#navigation > ul > li > a:hover {
    font-family: Roboto-Black, Arial;
    text-decoration: underline;

}
#navigation > ul > li.active {
    border-bottom: none;
}

#navigation > ul > li { 
    overflow: hidden;
}

#navigation > ul > li.active > a span { /* Active colour once clicked */
    background: #f7fce5;
}

#navigation div.active { /* Active colour once clicked */
    position: absolute;
    right: 20px;
    top: 0px;
    height: 100%;
    padding-left: 20px;
    background-color: #f7fce5;
}

#navigation div.active:before, #navigation div.active:after {
    content:'';
    position: absolute;
    left: 100%;
    height: 60%;
    padding-left: 20px;
    background-color: inherit;
}

#navigation div.active:before {
    bottom: 75%;
    -ms-transform-origin: 100% 100%;
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    -ms-transform: skewY(-30deg);
    -webkit-transform: skewY(-30deg);
    transform: skewY(-30deg);
}

#navigation div.active:after {
    bottom: 0%;
    -ms-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
    -ms-transform: skewY(30deg);
    -webkit-transform: skewY(30deg);
    transform: skewY(30deg); /* 90deg */
}

#navigation div.inactive { /* Inactive */
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    padding-left: 40px;
    background-color: #e3f98e;
}

/* Sub menu */
#navigation ul ul {
    display: none;
}
#navigation ul ul li {
    background: #effac5;
}

#navigation ul ul a {
    font-family: Roboto-MediumItalic, Arial;
    padding: 10px 15px 0px 15px;
    display: block;
    font-size: 13px;
}

#navigation ul ul li:first-child{
    box-shadow: inset 1px 10px 10px -6px;
}

#navigation ul ul li:last-child > a {
    padding-bottom: 10px;
    box-shadow: inset 1px -10px 10px -8px;
}

#navigation ul ul a:hover {
    font-family: Roboto-BlackItalic, Arial;
    text-decoration: underline;
}

.hiddenSubMenu {
    display: none;
}

/*** CONTENT ***/

#content {
    float: right;
    width: 1000px;
    height: auto;
    min-height: 500px;
    margin: 20px 20px 20px 20px;
}


/*** FOOTER ***/

#footer {
    width: 1190px;
    height: 30px;
    background-color: #3e7bb0;
    padding: 5px;
    color: white;
    margin: auto;
}

#footerLeft {
    float: left;
    width: 40%;
    margin-top: 8px;
    margin-left: 5px;
}

#footerLeft i {
    font-size: smaller;
}

#footerRight {
    float: right;
    margin-top: 8px;
    margin-right: 5px;
}

#footerRight > a {
    color: white;
}

/** ADDITIONAL FEEDBACK **/

#toastMessage {
    display: none;
}

.toast {
    width:200px;
    height:20px;
    height:auto;
    position: fixed;
    left: 56%;
    margin-left:-100px;
    top: 50%; /* was bottom: 3%; */
    background-color: #383838;
    color: #F0F0F0;
    font-family: Roboto-Regular;
    font-size: 20px;
    padding:10px;
    text-align:center;
    border-radius: 2px;
    -webkit-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    -moz-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    z-index: 9999;
}

#loadingOverlay {
    display: none;
}

.contentOverlay {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 1040px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    /* cursor: wait !important; */
}

#loadingOverlay:hover {
    pointer-events: none;
    cursor: default;
}

#loadingWrapper {
    position: absolute;
    width: 200px;
    height: 200px;
    /* top: calc(50% - 100px); */
    top: calc(300px - 100px); 
    left: calc(50% - 100px);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    -moz-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    z-index: 9200;
}

#loadingWrapper.extended {
    height: 250px;
}

.icon-spin-reverse {
    -moz-animation-direction: reverse !important;
    -o-animation-direction: reverse !important;
    -webkit-animation-direction: reverse !important;
    animation-direction: reverse !important;
}

#loadingWrapper i {
    font-family: FontAwesome; 
    position: absolute;
    width: 1em;
    height: 1em;
    text-align: center;
    -moz-animation-duration: 5s;
    -o-animation-duration: 5s;
    -webkit-animation-duration: 5s;
    animation-duration: 5s;
    z-index: 9400;
}

#loadingWrapper i:nth-child(1) {
    font-size: 7em;
    color: #d4e2a4;
    /* bottom: 15px; */
    top: 75px;
    left: 20px;
}

#loadingWrapper i:nth-child(2) {
    font-size: 6em;
    color: #bcc4a7;
    top: 10px;
    right: 25px;
}

#loadingFooter {
    display: none;
    position: absolute;
    bottom: 15px;
    left: 10px;
    height: 45px;
    width: 180px;
    background-color: #d4e2a4; /* #3e7bb0; */
    border-radius: 5px;
}

#loadingFooter.show {
    display: block;   
}

#progressBar {
    position: absolute;
    top: 5px;
    width: 160px;
    left: calc(50% - 80px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#progressBar::-webkit-progress-bar {
    background-color: #bcc4a7;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

#progressBar::-webkit-progress-value {
    background-image:
        -webkit-linear-gradient(-45deg, 
        #31618b 33%, #3e7bb0 33%, 
        #3e7bb0 66%, #31618b 66%);
    -webkit-animation: animate-stripes 5s linear infinite;
    animation: animate-stripes 5s linear infinite;
    border-radius: 2px; 
    background-size: 35px 20px, 100% 100%, 100% 100%;
}

@-webkit-keyframes animate-stripes {
    100% { background-position: -100px 0px; }
}

@keyframes animate-stripes {
    100% { background-position: -100px 0px; }
}

#progressFeedback {
    position: absolute;
    left: calc(50% - 80px);
    bottom: 0px;
    height: 18px;
    width: 156px;
    color: #31618b;
    padding: 2px;
    padding-bottom: 5px;
    text-align: center;
    font-family: Roboto-Bold;
}

.blueButton {
    font-family: Roboto-Bold;
    font-size: 14px;
    height: 26px;
    width: 80px;
    text-align: center;
    float: right;
    background-color: #3e7bb0;
    color: white;
    padding-top: 6px;
}

.blueButton:hover {
    background-color: #74acd8;
    cursor: pointer;
}

.blueButton:active {
    box-shadow: inset 0px 0px 5px #000000;
}

.disabledButton {
    pointer-events: none;
    background-color: #999999;
    cursor: default;
}

table .dt-body-left {
    text-align: left;
}

table .dt-body-right {
    text-align: right;
}

table .dt-body-center {
    text-align: center;
}

/** IE 10+ **/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    fieldset {
        border: 2px groove threedface;
    } 
}

i.fa {
    cursor: pointer;
}