/* Custom styles and overrides for ecodialog layout */
/* V1.0 ZY/02-Jun-2015                              */

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BoldItalic-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Thin-webfont.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ThinItalic-webfont.woff') format('woff'); 
    font-weight: 200;
    font-style: italic;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light-webfont.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-LightItalic-webfont.woff') format('woff');
    font-weight: 100;
    font-style: italic;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Medium-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
 
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-MediumItalic-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

html, body {
 margin: 0px;
 color: #ffffff;
}


body {
    background-color: #F8F8F8;
}

body, div, table, ul, a, li, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: 'Roboto', "Futura MdCn BT", "Arial", sans-serif;
}

.scrollable {
    width: 90%;
}
.content {
/*    margin-right: 0 !important; */
/*    background-color: #fff; */
/*    z-index: 1; */
}
.sidebar {
    position: fixed !important;
    z-index: 0;
    width: 325px;
    top: 0;
    right: 20px;
/*    background-color: #FFFFFF; */
}

.nav-trigger {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}
/*
label[for="nav-trigger"] {
    position: fixed;
    top: 115px;
    z-index: 20;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-image: url("../images/kompass.svg");
    background-size: cover;
    margin-right:10px;
    right:5px;
}
.nav-trigger:checked + label {
    right: 300px;
}

.nav-trigger:checked ~ .content {
    right: 320px;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
}

.nav-trigger + label, .site-wrap {
    transition: left 0.5s;
}
.nav-trigger:checked~ .sidebar{
    display:block;
}
 .nav-trigger:checked~ .nav-trigger{
    right:320px;
}
*/
.inner {
    height:64px;
}

/* Header */
.subheader {
    width: 100%;
    position: fixed; 
    top: 0;
    height: 75px !important;
    z-index:90;
    background: none repeat scroll 0 0 #407289;
    border-bottom: 1px solid rgb(214, 151, 205);
    color: rgb(255, 255, 255);	
    border-bottom: medium none;
    padding-bottom: 18px;
}

.subheader img {
    padding-top: 5px;
    margin-top: -1em;
}
.header-logo {
    float:left;
    height:64px;
}
.companyinfo {
    padding-left: 35px;
}
.subheader h1 {
    color: white;
    font-weight: bold;
}
#span_user_name {
    color: white;
}

.mainnav {
/*    display: none; */
    background-color: #125675;
}

.nav-container li:hover {
    border-bottom:4px solid #6AB344;
}
.nav-container {
    background-color: #407289;
    height: 75px;
    float:right;
    align-items: center;
    margin-right: 2em;
    padding-top: 18px;
}
.nav-container a {
    background-color: transparent !important;
    color:#FFF;
    text-decoration:none;
    font-family: "Helvetica","Arial","sans-serif";
}

.nav-container ul {
    display: block;
    list-style: outside none none;
    color: #FFF;
    text-align: center;
    background-color: transparent !important;
}

.nav-container li {
    display: inline-block;
    line-height: 1.66667;
    margin:1em;
    padding: 4px 0;
    white-space: nowrap;
    color: #FFFAEB;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.dc-heading {
    background-color: #407289 !important;
}

div.lightbox-title-wrapper {
    background-color: #407289;
}
/** Warning Dialog */
.ui-widget-header {
    background: #407289 none;
    border: 1px solid #888;
}
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
    border:none;
    background: none;
    color: #000;
}
/* Buttons */
button, ui-button, .dc-form input[type="button"], a.button {
    background-color: #D73888;
    border: 1px solid #D73888;
    color: #FFF;
    text-transform: uppercase;
    border-radius: 2px;
    height: 22px;
    padding-bottom: 4px;    
    font-weight: normal;
    letter-spacing: 0.1em;
    font-size: 14px;    
}

button:not(.mdl-button):hover, .dc-form input[type="button"]:hover, a.button:hover {
    background-color: #e74898;
    color: #eee;
    border-radius: 2px;
    font-weight: normal;
}

button.disabled, button.disabled:hover {
    background-color: #ccc;
    border: 1px solid #eee;
}

#navigation {
    box-shadow: 3px 5px 5px #C0C1BB;
    overflow: auto;
    /* the content of the navigation needs to be limited - otherwise no scrollbar appears */
    max-height: 500px;
    max-height: calc(100vh - 200px);
}
@media screen and (min-width: 761px) {
    #navigation {
        min-height: calc(100vh - 200px)
    }
}

.showBreadcrumbs #navigation {
    max-height: calc(100vh - 230px);
    min-height: calc(100vh - 230px);
}

body.fullscreen #navigation {
    max-height: calc(100vh - 115px);
    min-height: calc(100vh - 115px)
}

.scrollable .dc-heading {
    /*	background: url('../dc/images/bg_heading.png') repeat; */
    background-color: #407289;
    color: #eee;
/*    font-weight: bold;*/
/*    font-size: 13px; */
    padding: 2px 2px 2px 5px;
    -webkit-border-radius: 0 2px 0 0;
    -moz-border-radius: 0 2px 0 0;
    border-radius: 0 2px 0 0;
    border:none;
    letter-spacing: 0.1em;
    font-weight: normal;
    font-size: 14px;
}

/* take over/modify styles from heading, change top margin of container */
.dc-heading-datalanglabel {
    vertical-align:top;
    color: #eee;
    font-weight: normal;
    font-size: 10px;
    margin-top: 2px;
}

.scrollable .dc-form, .scrollable .dc-overview {
    color: #333;
    font-size: 13px;
    padding: 2px 2px 2px 5px;
    margin-bottom: 5px;
    -webkit-border-radius: 0 0 0 2px;
    -moz-border-radius: 0 0 0 2px;
    border-radius: 0 0 0 2px;	
    background-color: white;
    box-shadow: 5px 5px 5px #c0c1bb;
    border:none;
}

/* Start topic overview */
/* dc-nav-overview-0 is topic */
/* dc-nav-overview-1 is subject */

.dc-overview .dc-nav-overview-0 {
    /*	text-transform: uppercase; */
    padding: 10px 0 10px 0;
    margin: 0 10px 0 10px;
    font-size: 14px;
    border-top: 1px solid #009600;
}

.dc-overview .dc-nav-overview-0.dc-nav-inactive span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.dc-overview .dc-nav-overview-0.dc-nav-active span {
    font-weight: bold;
    color: #009600;
}

.dc-overview .dc-nav-overview-0.dc-nav-active span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.dc-overview>:first-child {
    /*	text-transform: uppercase;*/
    padding: 10px 0 10px 0;
    margin: 0 10px 0 10px;
    font-size: 14px;
    border-top: 0 solid rgb(0, 84, 0);
}

.dc-nav-overview-1 {
    text-transform: none;
    padding-left: 10px;
    font-size: 12px;
}

.dc-nav-overview-1:first-child {
    margin-top: 5px;
}

.dc-nav-overview-1:before {
    content: "- ";
}

.dc-nav-overview-1 span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.dc-nav-overview-1 a {
    color: #009600;
    text-decoration: none;
}

.dc-overview .dc-nav-overview-0.dc-nav-inactive  .dc-nav-overview-1 {
    visibility:hidden;
    display: block;
    opacity: 0;
    max-height: 0;
    /*  transition:visibility 0s linear 0.25s,opacity 0.25s ease-in-out,max-height 0s linear 0.25s;
      -webkit-transition:visibility 0s linear 0.25s,opacity 0.25s ease-in-out,max-height 0s linear 0.25s;
      -moz-transition:visibility 0s linear 0.25s,opacity 0.25s ease-in-out,max-height 0s linear 0.25s;*/
    overflow: hidden;
}

.dc-overview .dc-nav-overview-0.dc-nav-active .dc-nav-overview-1  {
    display: block;
    visibility:visible;
    opacity:1;
    max-height: 1000px;
    transition:visibility 0s,opacity 0.25s ease-in-out;
    -webkit-transition:visibility 0s,opacity 0.25s ease-in-out;
    -moz-transition:visibility 0s,opacity 0.25s ease-in-out;
}

.dc-overview .dc-nav-overview-0 .dc-nav-overview-1.dc-nav-selected {
    font-weight: bold;
}

.dc-overview .dc-nav-overview-0 .dc-nav-overview-1.dc-nav-unselected {
}

/* End topic overview */

.sidebar {
    /*    height: 100%; */
    width: 325px;
    top:0;
    /*    padding-top:160px; */
    margin-top:122px;
    padding-bottom:35px;
    position:fixed;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -o-box-sizing:border-box;
    -ms-box-sizing:border-box;
    box-sizing:border-box;
    /*	border: 1px solid #ccc; */
    right: 30px;
}

.showBreadcrumbs .sidebar {
    margin-top: 145px;
}

.help-content, .help-anchor {
    background-color: #407289;
    opacity: 0.95;
}

.help-slider-active .help-anchor-outer {
/*    border-bottom: 5px solid #407289; */
    border-bottom: none;
}

.help-slider-inactive .help-anchor-outer {
    border-bottom: none;
}

/* start triangle marker */
.mainnav .selected a:before,
.mainnav .selected a:after {
    border: 8px solid transparent;
/*    border-style: outset outset solid outset; *//* fixes FF bug */
    border-bottom-color: #ccc;
    bottom: 0px;
    content: "";
    height: 0;
    left: 50%;
    margin-left: -8px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.mainnav .selected a:after {
    background: transparent; 
    border-bottom-color: #f8f8f8;
    bottom: -1px;
}
/* end triangle marker */

/* revert height of button in dialog and decrease surrounding space */
.ui-dialog-buttonset button {
    height: auto;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 0 1em 0 .4em;
}

/* make tree touch friendlier */
ul.fancytree-container li {
    padding: 0.3em 0 0 0;
}

/* same border color for data language switcher as heading */
#polyglotDataLanguageSwitcher a.current:link, 
#polyglotDataLanguageSwitcher a.current:visited, 
#polyglotDataLanguageSwitcher a.current:active {
    border-color: rgb(64, 114, 137);
}

textarea {
    background-color: white;
    box-shadow: 5px 5px 5px #c0c1bb;
    border: 1px solid #c0c1bb;    
    font-family: Arial, sans-serif;
    font-size: 13px;
}


/* start responsiveness - maybe integrate into survey.css... */
/* (at least for non-login surveys) */
@media screen and (max-width: 760px) {
    .inner {
        width: 100%; 
    }
    .header-logo img {
        width: 150px !important;
    }
    .companyinfo {
        margin-left: 140px;
    }
    .subheader {
        height: 45px !important;
    }
    .mainnav {
        top: 55px;
    }
    .scrollable {
        padding-top: 92px;
    }
    .sidebar {
        margin-top: 92px;
        position: relative !important;
        margin: 0 0 20px 0;
        top: 0;
        right: 0;
        width: 100%;
        padding: 0;
    }
    .showBreadcrumbs .sidebar {
        margin-top: 15px;
    }
    .nav-trigger:not(.sidebar_inactive) + label[for="nav-trigger"] {
        top: 85px;
    }    
    #fullscreen_icon {
        display: none;
    }
    /* break fix width of text area input */
    textarea.dc-input-textarea {
        width: 90%;
    }    
    /* rotate matrix option captions */
    .matrix-header {
        /*
        writing-mode: tb-rl;
        margin-left: -7.5%;        */
        font-size: 11px;
    /* Safari */
    -webkit-transform: rotate(-90deg);
    /* Firefox */
    -moz-transform: rotate(-90deg);
    /* IE */
    -ms-transform: rotate(-90deg);
    /* Opera */
    -o-transform: rotate(-90deg);
    /* Internet Explorer */
/*    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); */
    transform: rotate(-90deg);
        
    }
    /* replace logout with hamburger menu icon if present */
    .module-data #menu_mobile {
        display: block !important; 
    }
    .module-data #img_logout {
        display: none !important;
    }
    /* show small logo */
    .header-logo img.no-mobile {
        display: none !important; 
    }
    .header-logo img.mobile {
        display: block !important; 
    }
    /* Hide "AppManager" in small screens for data module */
    .module-data .subheader div.companyinfo h1 {
        display: none;
    }
    /* adjust margins */
    .subheader  div.companyinfo {
        margin-left: 45px;
        padding-left: 0px;
    }
    .module-data .subheader  div.companyinfo ul {
        margin: 16px 0 0 0;
    }
    .module-data #img_logout {
        padding-top: 12px;
    }
    .module-data #mainnav {
        display: none !important;
    }
    #environment_hint {
        top: 31px !important;
        font-size: 20px !important;
    }
    .module-data .footer {
        display: none;
    }
    .module-data #help-slider {
        display: none;
    }
    #dc-scrollable {
        display: flex;
        flex-direction: column-reverse;
    }
    /* remove text labe of language switcher */
    div.polyglotLanguageSwitcher a {
        text-indent: -9999px;
        width: 10px;
    }
    .select {
        width: 100%;
    }
    textarea.dc-input-textarea-big {
        width: 99%;
    }
    div.content.sidebar_active {
        margin-right: 0px;
    }
}

@media screen and (max-width: 400px) {
    .inner {
        width: 400px; 
    }
}

/* status table on app home */
.app-status th {
    background-color: #ccc;
    padding: 3px 10px;
}
.app-status td {
    background-color: #eee;
    padding: 3px 10px;
}
.app-status .sum td {
    background-color: #ccc;
}

/* link inside help section */
#dc-help a {
    color: #fff;
}

/* even/odd table backgrounds */
table.even-odd {
    border-spacing: 0px;
    padding: 0px;
}
table.even-odd th {
    border-bottom: 1px solid #888;
}
table.even-odd tr:nth-child(even) td{
    background: #f8f8f8;
}
table.even-odd tr:nth-child(odd) td {
    background: #FFF
}

/* radio button styling START
https://codepen.io/wilder_taype/pen/pNXwMW
*/

@keyframes click-wave {
  0% {
    height: 30px;
    width: 30px;
    opacity: 0.35;
    position: relative;
  }
  100% {
    height: 150px;
    width: 150px;
    margin-left: -60px;
    margin-top: -60px;
    opacity: 0;
  }
}

.option-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  position: relative;
/*  top: 13.33333px;*/
  top: 0px;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  width: 30px;
  transition: all 0.15s ease-out 0s;
  background: #c0c0c0;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.5rem;
  outline: none;
  position: relative;
  z-index: 50;
}
.option-input:enabled:hover {
  background: #a0c69f;
}
.option-input:checked {
  background: green;
}
.option-input:checked::before {
  height: 30px;
  width: 30px;
  position: absolute;
  content: '✔';
  display: inline-block;
  font-size: 18px;
  text-align: center;
  line-height: 30px;
}
.option-input:checked::after {
  -webkit-animation: click-wave 0.65s;
  -moz-animation: click-wave 0.65s;
  animation: click-wave 0.65s;
  background: green;
  content: '';
  display: block;
  position: relative;
  z-index: 100;
}
.option-input.radio {
  border-radius: 50%;
}
.option-input.radio::after {
  border-radius: 50%;
}

/* Radio button styling END */

.sample {
    color: grey;
}

.sample img {
    -webkit-filter: grayscale(100%);
       -moz-filter: grayscale(100%);
         -o-filter: grayscale(100%);
        -ms-filter: grayscale(100%);
            filter: grayscale(100%);     
}

/* timesheet table START */

table.timesheet {
    border-spacing: 0;
    background-color: #f8f8f8;
}

table.timesheet td {
    padding: 3px;
}

/* timesheet table END */

/* creates triangle */

.triangle-isosceles {
  position: relative;
  padding: 15px;
  margin: 1em 0 3em;
  color: #000;
  background: #f3961c;
  border-radius: 10px;
  background: linear-gradient(top, #f9d835, #f3961c);
}

.triangle-isosceles:after {
  content: "";
  display: block; /* reduce the damage in FF3.0 */
  position: absolute;
  bottom: -14px;
  left: 50px;
  width: 0;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: #f9d835 transparent;
}

.triangle-isosceles.top {
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#f3961c), to(#f9d835));
    background: -moz-linear-gradient(#f3961c, #f9d835);
    background: -o-linear-gradient(#f3961c, #f9d835);
    background: linear-gradient(#f3961c, #f9d835);
}

h3 {
    margin-top: 2px;
}

.dc-form input[type="text"], .dc-form input[type="password"], .dc-form input[type="email"], .dc-form input[type="tel"], .dc-form input[type="number"] {
   -webkit-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -ms-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    outline: none;
    padding: 2px 0px 2px 2px;
    margin: 3px 1px 3px 0px;
    border: 0;
    -webkit-border-radius: 0 2px 0 2px;
    -moz-border-radius: 0 2px 0 2px;
    border-radius: 0 2px 0 2px;
    height: 25px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #888;
}

.dc-form input[type="text"]:focus, .dc-form input[type="password"]:focus, .dc-form input[type="email"]:focus, .dc-form input[type="tel"]:focus {
   -webkit-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -ms-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    outline: none;
    padding: 2px 0px 2px 2px;
    margin: 3px 1px 3px 0px;
    border: 0;
    -webkit-border-radius: 0 2px 0 2px;
    -moz-border-radius: 0 2px 0 2px;
    border-radius: 0 2px 0 2px;
    height: 25px;
    background-color: #f0f0f0;
    border-bottom: 2px solid #2aa1c0;
    box-shadow: 0px 0px 0px;
}

.mainnav li a {
   letter-spacing: 0.05em;
}

#div_search {
    margin-top: 2px;
}

#div_search input {
    width: 75%;
    border: 1px solid #aaa;
    padding: 2px;
}

#calendar div.fc-content, #calendar div.fc-content div {
    font-size: 13px;
}

/* minimalistic jquery tab style from http://keith-wood.name/uiTabs.html */

.tabs-min { 
    background: transparent; 
    border: none; 
} 
.tabs-min .ui-widget-header:not(.ui-progressbar-value) { 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid #c0c0c0; 
    -moz-border-radius: 0px; 
    -webkit-border-radius: 0px; 
    border-radius: 0px; 
} 
.tabs-min .ui-tabs-nav .ui-state-default { 
    background: transparent; 
    border: none; 
} 
.tabs-min .ui-tabs-nav .ui-state-active { 
    background: transparent url(images/uiTabsArrow.png) no-repeat bottom center; 
    border: none; 
} 
#lightbox .tabs-min .ui-tabs-nav .ui-state-active { 
    background: transparent url(images/uiTabsArrowLightbox.png) no-repeat bottom center; 
    border: none; 
} 
.tabs-min .ui-tabs-nav .ui-state-default a { 
    color: #c0c0c0; 
} 
.tabs-min .ui-tabs-nav .ui-state-active a { 
    color: #407289; 
}

/* hide ugly topology markers */
img.dc-topologyFolder-marker {
    visibility: hidden;
}

img.subnav-tile {
    -webkit-box-shadow: 4px 4px 8px 3px #02092780;
    box-shadow: 4px 4px 8px 3px #02092780;
    margin-bottom: 10px;
}

img.subnav-tile:hover {
    translate: -1px -1px;
    -webkit-box-shadow: 4px 4px 8px 3px #020927a0;
    box-shadow: 4px 4px 8px 3px #020927a0;
    transition: box-shadow 150ms linear;
}

/* allow longer form fields via css-class attribute */
.dc-form div.long input[type="text"] {
    width: 300px;
} 

/* unemphasize readonly form items */
.dc-input.dc-readonly, .dc-input.dc-readonly div, .dc-assignment.dc-readonly {
    color: #777;
}

/* delete button for input fields START */
span.input-delete-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}
span.input-delete-icon span {
    position: absolute;
    display: block;
    right: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    background-color: #ccc;
    font: 13px monospace;
    text-align: center;
    line-height: 1em;
    cursor: pointer;
}
span.input-delete-icon input {
    padding-right: 18px;
    box-sizing: border-box;
}
/* delete button for input fields STOP */
