﻿html{
    width: 100%;
    height: 100%;
    background-color: #FFF;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #555;
    background: url(../images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

header{
    position: absolute;
    height: 160px;
    top: 0;
    left: 0;
    right: 0;
}

section{
    position: absolute;
    right: 320px;
    left: 0;
    bottom: 30px;
    top: 160px;
    background: rgba(0,0,0,0.02);
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

aside{
    position: absolute;
    right: 0px;
    width: 320px;
    bottom: 30px;
    top: 160px;
}

footer{
    position: absolute;
    height: 30px;
    bottom: 0;
    left: 0;
    right: 0;
}

.row{
    clear: both;
}

/* ------ */

a {
    text-decoration: none;
    color: #AAA;
}

/* Header */

.top{
    background-color: rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 80px;
}

#logo{
    background-color: rgba(239,127,26, 0.9);
    float: left;
    width: 235px;
    height: 80px;
}

#logo img{
    padding: 15px;
    height: 50px;
}

#location{
    float: left;
    line-height: 50px;
    font-size: 24px;
    color: #BBB;
    padding: 0;
    cursor: pointer;
    position: relative;
}

#current-location{
    padding: 15px 0px 15px 25px;
    width: 250px;
}

#location:hover{
    background-color: rgba(0,0,0,0.2);
    color: #FFF;
}

#location-selector {
    position: absolute;
    display: none;
    background-color: #FFF;
    padding: 0;
    margin: 0;
    width: 275px;
    top: 80px;
    z-index: 10000;
}

#location-selector ul{
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#location-selector ul li{
    list-style: none;
    margin: 0;
}

#location-selector ul li a{
    display: block;
    padding: 15px 0px 15px 25px;
}

#location-selector ul li a svg{
    margin-right: 5px;
}

#location-selector ul li a:hover{
    background-color: rgba(0,0,0,0.1);
}


#location:hover #location-selector{
    display: block;
}

#location-selector:hover{
    display: block;
}

a[data-enabled=false]{
    cursor: default;
}

#user{
    float: right;
    line-height: 50px;
    font-size: 24px;
    color: #CCC;
    padding: 15px 25px 15px 0px;
    width: 295px;
    text-align: right;
    cursor: default;
    display: none;
}

#user svg{
    width: 42px;
    height: 42px;
    float: right;
    margin-top: 4px;
}

#user span{
    line-height: 48px;
    float: right;
    margin-right: 10px;
}

#user-controls{
    float: right;
    line-height: 50px;
    font-size: 18px;
    color: #AAA;
    padding: 15px 25px 15px 25px;
}

#user-controls a:hover{
    color: #888;
}

.user-control{
    margin-left: 20px;
}

#calendar{
    line-height: 48px;
    float: left;
    border-right: 1px solid rgba(0,0,0,0.05);
    margin-top: 10px;
}

#calendar a{
    font-size: 28px;
    float: left;
    padding: 5px 25px 5px 25px;
    color: rgba(0,0,0,0.1);
}

    #calendar a:hover{
        color: rgba(0,0,0,0.2);
    }

#calendar-icon{
    color: #71ba47;
    font-size: 36px;
    float: left;
    padding-top: 10px;
}

#week-label{
    float: left;
    font-size: 18px;
    line-height: 20px;
    padding: 10px 0 0 18px;
}

#week-label span{
    display: block;
    font-size: 12px;
    font-weight: 700;
}

#print{
    float: right;
    line-height: 50px;
    font-size: 18px;
    color: #AAA;
    padding: 15px 25px 15px 25px;
}

#print a:hover{
    color: #888;
}

header[data-enabled=false] #add-order
{
    display: none!important;
}

#add-order{
    float: right;
    line-height: 50px;
    font-size: 18px;
    color: #CCC;
    width: 300px;
    padding: 10px;
}

#add-order a{
    border-radius: 5px;
    background-color: rgba(102,153,51,0.1);
    line-height: 40px;
    display: block;
    padding: 10px;
    color: #71ba47;
    text-align: center;
    vertical-align: middle;
    margin-left: 0px;
}

    #add-order a:hover{
        background-color: rgba(102,153,51,0.15);
    }

#add-order svg{
    color: #71ba47;
    font-size: 30px;
    float: left;
    display: block;
    margin: 5px 0 0 10px;
}

/* Aside */

aside h2{
    font-size: 1.4em;
    font-weight: 400;
    margin: 0;
    padding: 5px 15px 0 15px;
    color: #CCC;
}

#orderBox{
    width: 295px;
    margin: 15px;
    border-radius: 5px;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
    bottom: 0px;
    top: 40px;
}

#orderBox ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

#orderBox li,.draggable-order{
    list-style:none;
    cursor: move;
    padding: 8px;
    border-radius: 5px;
    background-image: url(../images/bars.svg);
    background-position: 255px center;
    background-size: 16px;
    background-repeat: no-repeat;
    margin-bottom: 3px;
}

#orderBox[data-enabled=false] li
{
    cursor: default!important;
}

#orderBox li span:last-child{
    font-weight: 700;
    float: right;
    margin-right: 40px;
    font-size: 14px;
}

    #orderBox li:hover {
        background-color: rgba(0,0,0,0.03);
    }

/* Section */

section[data-enabled=false]
{
    right: 10px!important;
}

aside[data-enabled=false]
{
    display: none!important;
}

#UPschedule
{
    width: 100%;
    height: 100%;
    overflow-x: visible;
    overflow-y: hidden;
}

section table{
    min-width: 1300px;
    width: 100%;
    height: 100%;
}

section table .day span{
    display: block;
    font-size: 12px;
    font-weight: 700;
}

section table td{
    position: relative;
}

section table td .day{
    position: absolute;
    width: 150px;
    left: 0;
    top: 0;
    bottom: 0;
    text-align: right;
    font-size: 20px;
    padding-top: 15px;
}

section table td .schedule{
    position: absolute;
    left: 170px;
    top: 5px;
    bottom: 5px;
    right: 10px;
}

section table .schedule ul{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Car in schedule */

    section table .schedule ul li.green{
        border-bottom: 5px solid rgba(102,153,51,0.8);
    }

    section table .schedule ul li.red{
        border-bottom: 5px solid #c82727;
    }

    section table .schedule ul li {
        float: left;
        background-color: #FFF;
        border-radius: 5px;
        display: block;
        width: 100px;
        height: 92%;
        margin-top: 10px;
        margin-right: 10px;
        border-bottom: 5px solid transparent;
        cursor: pointer;
        position: relative;
    }

    section table .schedule ul li .item-car{
        font-weight: 700;
        text-transform: uppercase;
        font-size: 14px;
        position: absolute;
        top: 22px;
        left: 10px;
    }

    section table .schedule ul li .item-load-label{
        font-weight: 700;
        font-size:12px;
        color: rgba(0,0,0,0.2);
        position: absolute;
        bottom: 7px;
        right: 10px;
    }

    section table .schedule ul li .item-load{
        font-weight: 300;
        font-size: 24px;
        position: absolute;
        bottom: 15px;
        right: 10px;
    }

    section table .schedule ul li .item-load-max{
        font-weight: 700;
        margin-bottom: 10px;
        font-size: 12px;
        color: rgba(0,0,0,0.5);
        position: absolute;
        top: 5px;
        left: 10px;
    }

    section table .schedule ul li.ui-droppable-hover{
        background-color: rgba(0,0,0,0.3);
    }

    section table .schedule ul li.ui-droppable-hover *{
        color: #FFF;
    }

    /* Add new car */

    section table .schedule ul li.add-car{
        background-color: transparent;
        border-bottom: 5px solid transparent;
        color: rgba(0,0,0,0.05);
        font-size: 48px;
        position: relative;
    }

    section table .schedule ul li.adding{
        background-color: rgba(255,255,255,0.2);
    }

        section table .schedule ul li.add-car:hover {
            color: rgba(0,0,0,0.1);
            background-color: rgba(255,255,255,0.2);
        }
        section table .schedule ul li.add-car svg {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -24px;
            margin-left: -24px;
        }

/* Modal */

/* The Modal (background) */
#overlay {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.2); /* Black w/ opacity */
}

#modal{
    position: absolute;
    background-color: #fefefe;
    margin: 10vh 20vw; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
    height: 80vh;
    border-radius: 8px;
    box-shadow: rgba(0,0,0,0.4) 0px 0px 15px;
}

iframe{
    border-radius: 8px;
    background-color: rgba(0,0,0,0.05);
    z-index: 1000;
}

/* Modal Content/Box */

#modal-title{
    font-size: 1.8em;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 15px;
}

.modal-content {

}

/* The Close Button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    position: absolute;
    right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Loader */

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -76px;
    margin-top: -76px;
    z-index: 10;
}

#loading{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.5);
}

#lnkRefreshOrders, #lnkRefreshSchedules{
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vehicle selector */

#vehicle-selector-overlay{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255,255,255,0);
    z-index: 900;
}

#vehicle-selector{
    z-index: 1000;
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
}

#vehicle-selector ul:after{
    content:"\A";
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent #FFF transparent transparent;
    position: absolute;
    left: -15px;
    bottom: 15px;
}

#vehicle-selector ul{
    background-color: #FFF;
    list-style: none;
    padding: 5px;
    margin: 0;
    box-shadow: rgba(0,0,0,0.1) 0px 0px 30px;
    border-radius: 7px;
    max-height: 400px;
    overflow-y: auto;
}

#vehicle-selector .clear{
    clear: both;
}

#vehicle-selector ul li{
    clear: both;
    display: block;
    padding: 10px;
    min-width: 240px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
}

    #vehicle-selector ul li.disabled {
        color: rgba(0,0,0,0.1);
    }

    #vehicle-selector ul li:hover {
        background-color: rgba(0, 148, 255, 0.1);
    }

    #vehicle-selector ul li.disabled:hover {
        background-color: transparent;
        cursor: default;
    }

#vehicle-selector ul li span:first-child{
    font-weight: 700;
}

#vehicle-selector ul li span:last-child{
    float: right;
}

/* Login */

#login{
    width: 300px;
    background-color: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.2);
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -150px;
    border-radius: 3px;
    z-index: 1000;
    padding-bottom: 30px;
}

#login #logo{
    width: 100%;
    margin: 0px auto 30px auto;
    padding: 20px 0 20px 0;
    float: left;
}

#login .text{
    border: none;
    color: rgb(0,0,0);
    background-color: rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 3px;
    font-size: 1.0em;
    font-weight: 300;
    width: 260px;
    text-align: left;
    display: block;
    margin: 10px auto 0 20px;
    box-sizing: border-box;
    float: left;
}

#login .btn{
    cursor: pointer;
    width: 260px;
    margin: 15px auto 0 auto;
    display: block;
    float: left;
    margin: 30px auto 0 20px;
}

.btn{
    background-color: #369ab7;
    display: inline-block;
    color: #FFF;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease 0s;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

.btn:hover{
    text-decoration: none;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.8);
    box-shadow: inset 0 0 10px 50px rgba(255,255,255,0.1);
}

/* Responsive */

@media only screen and (min-width:1420px) {
    #user{
        display: block;
    }
}
        
@media only screen and (max-height:800px) {
	section table .schedule ul li .item-load{
        bottom: 5px;
        font-size: 1.0em;
        font-weight: bold;
    }
    section table .schedule ul li .item-load-label{
        display: none;
    }

    section{
        top: 80px;
    }

    aside{
        top: 90px;
    }

    header{
        
    }

    header:hover {
        background-color: #FFF;
        z-index: 20000;
    }

    header .row:nth-child(2){
        display: none;
    }

    header:hover .row{
        display: block;
        
    }
}

@page { size: A4 landscape; }

@media print {
  body {
      margin: 0;
      padding:0;
      background-image: none;
  }

  html, body {
    /*changing width to 100% causes huge overflow and wrap*/
    height:100%; 
    overflow: hidden;
    background: #FFF; 
  }

  section{
    position: absolute;
    right: 0px;
    left: 0px;
    bottom: 0px;
    top: 0px;
    background: #FFF;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

  li.car{
      background-color: rgba(0,0,0,0.05)!important;
      border: 1px solid rgba(0,0,0,0.1);
  }

  li.car *{
      color: #555!important;
      font-size: 8pt!important;
  }

  li.car .item-load{
      font-size: 24pt!important;
  }
  

  li.add-car{
      display: none!important;
  }

  header{display: none;}
  footer{display: none;}
  aside{display: none;}
}