﻿/*!
 	DAVINCI TIMETABLE v1.0.0 
 	Copyright (c) 2015 STÜBER SYSTEMS GmbH, http://www.stueber.de
	
	Common styles
*/


/* login page */

body:not([data-active-page="login"]) > .davinci-app-login, 
body:not([data-active-page="content"]) > .davinci-app-content
{
    display: none;
}

body.enableContent .davinci-app-content {
    display: block;
}

.davinci-app-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
}


.davinci-app-login {
    display: table;
    height: 100%;
    width: 100%;
    font-size: 16px;
}
.davinci-app-login h1 {
    width: 100%;
    text-align: left;
    padding-bottom: 1em;
    margin: auto;
}

input[type="text"],
input[type="password"] {
  padding: 10px;
  border-style: solid;
  border-width: 1px;
  transition: box-shadow 0.3s, border 0.3s;
}

input[type="password"]:focus,
input[type="password"].focus,
input[type="text"]:focus,
input[type="text"].focus {
  border-style: solid;
  border-width: 1px;
}



.davinci-app-login > div {
    display: table-cell; 
    vertical-align: middle;
}

.davinci-login-box {
    border-width: 1px;
    border-style: solid;
    padding: 124px 44px 124px 44px;  
    width: 344px; 
    box-sizing: content-box;
    margin: auto;
}

.davinci-login-box td {
    padding: 8px;
    box-sizing: border-box;
}


.davinci-login-username-title,
.davinci-login-password-title {
    padding: 5px 0;
}

#davinci-login-username,
#davinci-login-password {
    width: 300px;
}

#davinci-login-btn-public {
    cursor: pointer;
    border-bottom: 1px dotted;
}

.davinci-login-btn-title
{
    transform: translate(-100%, 0);
    position: absolute;
    text-align: center;
    pointer-events: none;
}

#davinci-login-btn,
.davinci-login-btn-title
{
    width: 200px;
    vertical-align: middle;
    padding: 12px 20px;
    
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    
    font-weight: 400;
    font-size: 17px;
    font-family: inherit;
    line-height: inherit;
    border: 0px;
    border-radius: 0px;
    /*-webkit-appearance: button;*/
    cursor: pointer;
}


.davinci-login-box tr:last-child {
    padding-top: 18px;
}

  

/* sidebar */

.onside-menu {
  font-size: 1.15em;
}

/* navbar */

.navbar-header {
    width: 100%;
}
.navbar-inverse .sidebar-toggle {
	border-radius: 0;
	margin-top:0;
	margin-bottom:0;
	height: 50px;
}

.davinci-logout {
    font-size: 16px;
    padding: 15px;
    color: rgba(255,255,255, 0.6);
}


.navbar-header {
	font-size: 1.4em;
    line-height: 20px;
}

.navbar-inverse .navbar-brand {
    font-size: inherit;
}
.navbar-inverse .navbar-text {
	height: 50px;
	margin: 0;
	padding: 15px 15px;
    line-height: 20px;
}


/* top buttons */

.schedule-icon,
.calendar-icon,
.substitutions-icon,
.floorplan-icon,
.refresh-icon,
.refresh-icon2,
.refresh-icon::after,
.refresh-icon2::after,
.info-icon
{
	background-size: 32px 32px;
	background-repeat: no-repeat;
	background-position: center;
	margin: auto;
	width: 36px;
	height: 36px;
}

#btn-subst-filter,
#btn-floor,
#btn-timeframe {
	display: none;
	height: 50px;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0 1px 0 auto;
	line-height: 50px;
}

#btn-subst-filter .btn,
#btn-floor .btn,
#btn-timeframe  .btn {
	height: 50px;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0 auto;
	border: none;
}


.btn-group, .btn-group-vertical {
	display: inline;
}

.navbar-fixed-top .btn-group {
    font-size: 14px;
}

.navbar-fixed-top .btn-group button {
    font-size: 1.4em;
}

.refresh-icon,
.refresh-icon2,
.info-icon,
.go-prev,
.go-current,
.go-next,
.btn {
  border-radius: 0;
  height: 50px;
}
.btn {
  font-size: 16px;
}

/* bottom buttons */

.btn-davinci-view  .btn:first-of-type {
	width: 100px;
}


/* floorplan */

#davinci-scheduler,
#davinci-calendar {
	margin-top: 50px;
	margin-bottom: 50px;
}

#davinci-floorplan {
	left: 0px;
	right: 0px;
	top: 50px;
	bottom: 50px;
	position: absolute;
	display: none;
    overflow: hidden;
}

#davinci-floorplan svg {
    transform: scale(1.5, 1.5);
    transform-origin: center top;
}

#davinci-floorplan .ontime-floorplan-svg-object {
	display: none;
    width: 100%;
    height: 100%;
}

#davinci-floorplan .ontime-floorplan-svg-object.active-floor,
.ontime-floorplan-svg-object.active-floor
{
    text-align: center;
    overflow: auto;
    display: block;
}


[data-view="floorplan"] #davinci-floorplan {
	display: block;
}

#davinci-floorplan svg text {
	font-family: "Droid Sans", sans serif ! important;  
    /*font-size: 70% ! important;*/
}



@media screen and (max-width: 640px) {
    #appFooter,
    #appSubTitle {
         display: none;
    }
}


.container {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	padding-right: 0px;
}



/* Menubar */

 
.sidebar-toggle
{
    border-style: none;
}


.davinci-logout {
	background: transparent;
	border: none;
	margin-top: 0px;
	width: 100px;
	height: 50px;
}



.refresh-icon,
.refresh-icon::after,
.refresh-icon2,
.refresh-icon2::after,
.info-icon,
.go-current,
.go-next,
.go-prev {
	background: transparent;
	border: none;
	margin-top: 0px;
	width: 50px;
	height: 50px;
}



.go-current svg,
.go-prev svg,
.go-next svg
{
  height: 24px;
  width: 24px;
  fill: white;
  stroke: white;
}

.go-prev svg,
.go-next svg
{
    height: 40px;
    width: 40px;
}



/* table of changes */

#davinci-substitutions {
	left: 0px;
	right: 0px;
	top: 50px;
	bottom: 50px;
	position: absolute;
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    border-top-width: 1px;
    border-top-style: solid;
}
.table  {
    border-left-width: 2px;
    border-left-style: solid;
    border-right-width: 2px;
    border-right-style: solid;
}
.table th
{
	font-weight: normal;
	text-align: left;
	padding: 14px;
	border-right-width: 1px;
    border-right-style: solid;
}


.ontime-table-container .table, 
.ontime-table-container-clone .table 
{
  margin-bottom: auto;
}
.ontime-table-container {
	position: relative;
	overflow-y: auto; 
	height: 100%;
	z-index: 100;
}
.ontime-table-container thead {
	opacity: 0;
}
.ontime-table-container-clone {
	position: relative;
    z-index: 101;
    overflow: hidden;
}

/* info message box */

.blackout {
	opacity: .7;
	filter: alpha(opacity=70);
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9998;
	display: none;
	cursor: pointer;
}


.msgbox {
	width:400px;
	height:100%;
	bottom: 0;
	right: 0;
	position:fixed;
	border-radius:0px;
	padding:24px;
	z-index:9999;
	display:none;
	margin: auto;
}

.msgbox hr {
	border-width:1px;
    border-style: solid;
}	

.msgbox > span {
	display: block;
}



/* Bottom */

.btn-davinci-view {
	margin: 0px 0px;
}
.btn-davinci-view  .btn {
	border-radius: 0;
	background: transparent;
	border: none;
	padding-top: 0px;
	padding-bottom: 0px;
	height: 50px;
}

.btn-davinci-floorplan  {
	min-width: 200px;
}

.dropdown-menu {
	border-radius: 0;
	padding-top: 0;
	margin-top:0;
}
.dropdown-menu li {
	height: 44px;
	line-height: 44px;
	padding-top: 0px;
	padding-bottom: 0px;
	margin-top: 0px;

}
.dropdown-menu > li > a {
	line-height: 44px;
	margin-right: 0;
}

.dropdown-menu > li > a > span {
    display: inline-block;
}

.dropdown-menu > li > a > span:first-child {
    width: 40%;
}


        
.table > thead > tr > th {
    border-bottom-style: none; 
}


.stat-data {
    text-align: right;
}
.stat-title {
    text-align: left;
    padding-left: 1ch;
}


.ontime-scheduler-topheader [data-linkparam]:hover,
[data-itemclick="label"] .ontime-scheduler-itemcontentdata .davinci-link[data-linkparam]:hover 
{
	text-decoration: underline;
}

.ontime-scheduler-topheader [data-linkparam],
[data-itemclick="url"] .ontime-scheduler-itemcontentdata[data-linkparam],
[data-itemclick="label"] .ontime-scheduler-itemcontentdata .davinci-link[data-linkparam] 
{
	cursor: pointer;
}

[data-itemclick="url"] .davinci-link.ontime-scheduler-itemcontentdata[data-linkparam]:hover::after {
    content: "";
    display: block;
    background-image: url(../img/open-new-win.png);
    width: 14px;
    height: 12px;
    position: absolute;
    right: 2px;
    bottom: 2px;
}



[data-itemclick="label"] .ontime-scheduler-itemcontentdata .davinci-link[data-linkparam] .aChange.aAbsItem:hover,
[data-itemclick="label"] .ontime-scheduler-itemcontentdata .davinci-link.aChange.aAbsItem[data-linkparam]:hover
{
  text-decoration: line-through underline;
}


/*.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"]::after {
    border-right-color: transparent;
    background-image: url(../img/block.png);
    background-repeat: no-repeat;
}

.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"]::after, .ontime-scheduler-more .ontime-scheduler-dataitem[data-co="f"]::after {
    top: 0;
    width: 12px;
    height: 12px;
}

.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"]::after, .ontime-scheduler-more .ontime-scheduler-dataitem[data-co="f"]::after {
    border-style: none;
}
*/


.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"] .ontime-scheduler-itemsharedpart::after {
    border-right-color: transparent;
    background-image: url(../img/block.png);
    background-repeat: no-repeat;
    
    content: ' ';
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    right: 0;
}



.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="m"]::after, 
.ontime-scheduler-more .ontime-scheduler-dataitem[data-co="f"]::after {
    border-style: none;
}

@-webkit-keyframes kf-rotate
{
    0%   {
        -webkit-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
    100% {
        -webkit-transform: rotateZ(-360deg);
        transform: rotateZ(-360deg);
    }
}

@keyframes kf-rotate {
    0%   {
        -webkit-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
    100% {
        -webkit-transform: rotateZ(-360deg);
        transform: rotateZ(-360deg);
    }
}

.web-icon-refresh-animate .refresh-icon::after,
.web-icon-refresh-animate .refresh-icon2::after {
    -webkit-animation-name: kf-rotate;
    -webkit-animation-duration: 4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;

    animation-name: kf-rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.davinci-app-login .refresh-icon2::after {
    display: none;
}
.web-icon-refresh-animate .davinci-app-login .refresh-icon2::after {
    display: block;
}



.loading-wait {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: table;
    opacity: 0;
    transition: opacity 0.5s linear 2s;
    -webkit-transition: opacity 0.5s linear 2s;
}

.web-icon-refresh-animate .loading-wait {
    opacity: 1;
}

.loading-wait td {
    vertical-align: middle;
    text-align: center;
    font-size: 200%;
    font-weight: 100;
}

.loading-wait td::before {
    padding: 16px;
}
.loading-wait td::after {
    /*content: "";*/
    
    background-image: url(../img/refresh.svg);
    
    background-position: center;
    background-size: auto;
    background-repeat: no-repeat;
    padding: 16px;
}



.web-icon-refresh-animate .loading-wait td {
    animation: kf-transparency-animate 0.5s linear 2.5s infinite alternate both;
    -webkit-animation: kf-transparency-animate 0.5s linear 2.5s infinite alternate both;
}

@keyframes kf-transparency-animate {
    0%   { opacity: 1;}
    100% { opacity: 0.5;}
}

