﻿/*
  Shared styles for MVC and ASP.NET webforms
  NOTE: DO not add any styles that destroys bootstrap here  
*/

/* -------------------------- GENERAL -----------------------------------*/

@media screen and (-webkit-min-device-pixel-ratio:0)  and (max-device-width:768px) {
    select,
    textarea,
    input {
        /* Prevents webkit ios to zoom field when clicked, ios-webkit is optimized for 16px font size */
        font-size: 16px !important;
    }
}

@media(min-width: 1300px) {
    .container {
        width: 1270px;
    }
}

@media(min-width: 1400px) {
    .container {
        width: 1370px;
    }
}

@media(min-width: 1500px) {
    .container {
        width: 1470px;
    }
}

.auto-width {
    width: auto;
}

.window-background {
    background-color: white !important;
}

/* -------------------------- HEADER ----------------------------------- */

.header-navigation-menu {
    background-image: linear-gradient(to right, #505050 0, #404040 30%);
    background-color: #505050;
    -ms-text-shadow: 0 -1px 0 #000000;
    text-shadow: 0 -1px 0 #000000;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
    color: #D0D0D0;
    min-height: 32px;
    font-size: 1em;
}

    .header-navigation-menu a:focus {
        outline: none;
    }

.header-container {
    max-height: 82px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    padding: 0;
    margin-bottom: 8px;
}

    .header-container .header-left {
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        box-sizing: content-box;
        background-color: #FFFFFF;
        display: inline-block;
        float: left;
        width: 210px;
        height: 100%;
        min-height: 82px;
        max-height: 82px;
        margin-right: 0;
        overflow: hidden;
        background-color: #00658f;
    }

.header-left .customer-logo {
    position: relative;
    text-align: center;
    max-height: 78px;
    max-width: 210px;
    margin-top: 5px;
    background-color: transparent;
}

.header-left .customer-logo-img {
    vertical-align: baseline;
    background-color: transparent;
}

.header-container .header-right {
    background-color: #00658f;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    min-height: 82px;
    max-height: 82px;
    overflow: hidden;
}

.header-right .header-pageinfo {
    float: left;
    line-height: 82px;
    min-height: 82px;
    font-family: "Arial", "Helvetica Neue",Helvetica,sans-serif;
    font-size: 2em;
    font-weight: bold;
    color: #FFFFFF;
    vertical-align: middle;
}

.header-pageinfo .header-maintitle {
    padding-left: 20px;
}

.header-pageinfo .header-maintitle, .header-pagetitle {
    float: left;
}

.header-right .header-userinfo {
    float: right;
    min-height: 82px;
}

.header-userinfo .lydia-logo {
    float: right;
    margin: 15px 16px 10px 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    color: #FFFFFF;
}

.header-userinfo .login-info {
    float: right;
    clear: right;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 16px 0 20px;
    text-align: right;
    color: #FFFFFF;
}

    .header-userinfo .login-info .login-command {
        margin-right: 20px;
    }

        .header-userinfo .login-info .login-command:last-child {
            margin-right: 0;
        }

    .header-userinfo .login-info span {
        color: #FFFFFF;
        margin-right: 50px;
    }

    .header-userinfo .login-info a {
        color: #FFFFFF;
        text-decoration: none;
    }

        .header-userinfo .login-info a:hover {
            text-decoration: underline;
        }

/* Hide parts of header to make it responsive */

@media only screen and (max-width: 768px) {
    .header-container .header-left {
        display: none;
    }

    .header-right .header-userinfo {
        display: none;
    }

    .header-container .header-right {
        min-height: 0;
        max-height: none;
    }

    .header-right .header-pageinfo {
        min-height: 0;
        max-height: none;
        font-size: 1em;
        line-height: inherit;
    }

    .header-rigth .header-maintitle {
        padding-left: 8px;
        padding-top: 0.5%;
        padding-bottom: 0;
        min-height: 0;
    }

    .header-pageinfo .header-maintitle, .header-pagetitle {
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 1.2em;
    }
}

/* Collapsed header, requires collapsed class on container and only page-information to be set visible. */

.header-container.header-collapsed .header-right {
    min-height: 0;
    max-height: none;
}

.header-container.header-collapsed .header-pageinfo {
    min-height: 0;
    max-height: none;
    font-size: 1em;
    line-height: inherit;
}

.header-container.header-collapsed .header-maintitle {
    padding-left: 8px;
    padding-top: 0.5%;
    padding-bottom: 0;
    min-height: 0;
}

.header-container.header-collapsed .header-maintitle, .header-container.header-collapsed .header-pagetitle {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 1.2em;
}

/**************************** BOX *******************************/

.box {
    padding: 6px 12px;
    margin: 8px 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
}

.box-gutter {
    padding: 6px 12px;
}

.box-border {
    border: 1px solid #cccccc;
    -ms-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.boxheading {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background-color: #00658f;
    -ms-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    vertical-align: middle;
}

/*************************** SYSTEM MESSAGES *************************/

.system-messages-container {
    width: 100%;
    padding: 4px;
    border: 1px solid #BBBBBB;
    display: inline-block;
    margin-bottom: 8px;
}

.system-message {
    font-size: inherit;
}

.system-messages-container .rrClipRegion {
    background-color: transparent !important;
    color: inherit !important;
}

/**************************** INPUT FIELDS **************************/

input:disabled {
    background-color: #eee;
    opacity: 1;
    -webkit-filter: opacity(100%);
    -moz-filter: alpha(opacity = 100);
    -o-filter: alpha(opacity = 100);
    filter: alpha(opacity = 100);
}

input:disabled:hover {
    background-color: #eee;
    opacity: 1;
    -webkit-filter: opacity(100%);
    -moz-filter: alpha(opacity = 100);
    -o-filter: alpha(opacity = 100);
    filter: alpha(opacity = 100);
}

.comments-field-readonly {
    width: 100%;
    height: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 6px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #CCCCCC;
    -ms-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background-color: #fafafa;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    white-space: pre-line;
}

.comments-field-two-rows {
    min-height: 4em;
    max-height: 4em;
}

.comments-field-three-rows {
    min-height: 5em;
    max-height: 5em;
}

.property-container .property-value-field {
    margin-bottom: 5px;
}

.property-value-label {
    font-weight: bold;
    color: #606060;
}

.property-value-field {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    border: 1px solid #ccc;
    background-color: #fafafa;
    -ms-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    vertical-align: middle;
    padding: 6px 10px;
    display: inline-block;
    width: 100%;
    display: inline-block;
    min-height: calc(1.428571429em + 14px);
    overflow: hidden;
    -moz-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.modified-row > td {
    background-color: #cc0000 !important;
    color: white !important;
}

/****************************** HELPERS ****************************/

.clearfix:after {
    /* Ensures blocks are stacked when window is resized.. */
    content: " ";
    display: table;
    height: 0;
    clear: both;
    visibility: hidden;
}

.element-vertical-spacer {
    margin-bottom: 30px;
}

@media only screen and (min-width: 768px) {
    .element-vertical-spacer {
        margin-bottom: 20px;
    }
}

.no-space-table {
    border-spacing: 0;
    border-collapse: collapse;
}

.no-wrap-text {
    white-space: nowrap;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.no-top {
    margin-top: 0;
}

.no-bottom {
    margin-bottom: 0;
}

.top-gutter {
    margin-top: 5px;
}

.top-gutter-2 {
    margin-top: 10px;
}

.bottom-gutter {
    margin-bottom: 5px;
}

.bottom-gutter-2 {
    margin-bottom: 10px;
}

.vertical-gutter {
    margin-top: 5px;
    margin-bottom: 5px;
}

.vertical-gutter-2 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.left-gutter {
    margin-left: 5px;
}

.left-gutter-2 {
    margin-left: 10px;
}

.right-gutter {
    margin-right: 5px;
}

.right-gutter-2 {
    margin-right: 10px;
}

.horizontal-gutter {
    margin-left: 5px;
    margin-right: 5px;
}

.horizontal-gutter-2 {
    margin-left: 10px;
    margin-right: 10px;
}

.horizontal-separator-md {
    /* Empty on mobile */
}

@media (min-width: 768px) {
    .horizontal-separator-md {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.bottom-gutter-xs {
    margin-top: 5px;
    margin-bottom: 5px;
}

@media(min-width: 481px) {
    .bottom-gutter-xs {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.full-size {
    width: 99.99%;
    height: 99.99%;
}

.full-width {
    width: 99.99%;
}

.full-height {
    height: 99.99%;
}

.half-width {
    width: 49.999%;
}

.half-height {
    height: 49.999%;
}

/******************************  TYPOGRAPHY *******************************/

b {
    color: #505050;
}

i.fa-normal-color {
    color: rgb(46, 109, 164)
}
.light-label, label.light-label a {
    font-weight: bold;
    color: #888888;
}

.subheader {
    color: #00658f;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    margin-top: 12px;
}

h1 + .subheader {
    margin-top: 0;
}

h2 + .subheader {
    margin-top: 0;
}

.up-case {
    text-transform: uppercase;
}

.low-case {
    text-transform: lowercase;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.center-y {
    vertical-align: middle;
}

.center-x {
    margin-left: auto;
    margin-right: auto;
}

.emp {
    font-weight: bolder;
    color: #505050;
}

.text-nowrap {
    white-space: nowrap;
}

.view-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #00658f;
}

.view-subtitle {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #00658f;
}

.input-description {
    font-size: 1em;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #666666;
}

.notice-message {
    color: #1F1F1F;
    font-size: 0.9em;
    vertical-align: text-bottom;
}

.text-small-caps {
    font-variant: small-caps;
}

/******************************** TABLES ***************************************/

.stacktable tr:not(.exclude-stack) {
    display: table-row;
}

    .stacktable tr:not(.exclude-stack) td {
        display: table-cell;
    }

@media screen and (max-width: 768px) {

    .stacktable:not(.exclude-stack) {
        border: 0;
    }

    .stacktable thead:not(.exclude-stack) {
        display: none;
    }

    .stacktable tr:not(.exclude-stack) {
        display: block;
    }

        .stacktable tr:not(.exclude-stack):not(.exclude-stack-formatting) {
            margin-bottom: 30px;
            border-bottom: 2px solid #ddd;
        }

        .stacktable tr:not(.exclude-stack) td {
            display: block;
        }

        .stacktable tr:not(.exclude-stack):not(.exclude-stack-formatting) td {
            min-height: calc(1.428571429em + 14px);
            text-align: right;
            border-bottom: 1px dotted #ccc;
        }

            .stacktable tr:not(.exclude-stack):not(.exclude-stack-formatting) td:last-child {
                border-bottom: 0;
            }

            .stacktable tr:not(.exclude-stack):not(.exclude-stack-formatting) td:before {
                content: attr(data-label);
                float: left;
                text-transform: uppercase;
                font-weight: bold;
                color: #808080;
            }
}

/*********************************** OVERLAYS ********************************************/

.overlay {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 9000; /* Sit on top */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(80,80,80); /* Fallback color */
    background-color: rgba(80,80,80, 0.5); /* Backcolor w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
}

/* Position the content inside the overlay */
.overlay-content {
    display: table;
    position: relative;
    top: 25%;
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
    margin-left: auto;
    margin-right: auto;
    min-width: 250px;
    min-height: 100px;
    padding: 15px;
    white-space: pre-wrap;
    overflow: auto;
    background-color: #fafafa;
    -webkit-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid #999999;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: 1px 1px 10px #555555;
    -ms-box-shadow: 1px 1px 10px #555555;
    box-shadow: 2px 2px 10px #555555;
}

.local-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.9);
    overflow-x: hidden;
    z-index: 9000;
}

.local-overlay-content {
    display: table;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
    top: 25%;
}