﻿/*body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul{list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
q:before,q:after{content:'';}
abbr,acronym { border:0;}
div{ box-sizing:border-box;-moz-box-sizing:border-box; z-index:3;}
  */
@font-face
{
    font-family: SenaFont;
    src: url(../fonts/BYekan_0.ttf);
}

html, body {
    height: 100%;
}

body {
    direction: rtl;
    margin: 0px;
    padding: 0px;
    outline: 0px;
    width:100%;
    font-family: SenaFont;
    font-size: 14px;
    overflow: hidden;
    text-decoration: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
}

/* login page*/
.login-body {
  background: rgba(140, 140, 140, .4);
  background: url(/images/train-img-low.jpg) no-repeat center center fixed;
  background-size: cover
}
.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
  direction: rtl;
}

.login-form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  border-radius: 15px;
  background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 13%, rgba(0,0,0,0.65) 37%, rgba(0,0,0,0.4) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 13%,rgba(0,0,0,0.65) 37%,rgba(0,0,0,0.4) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 13%,rgba(0,0,0,0.65) 37%,rgba(0,0,0,0.4) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#66000000',GradientType=0 );
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.login-input {
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 10px 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  border-radius: 8px;
  direction:ltr;
}

::-webkit-input-placeholder {
   text-align: center;
}

:-moz-placeholder { /* Firefox 18- */
   text-align: center;
}

::-moz-placeholder {  /* Firefox 19+ */
   text-align: center;
}

:-ms-input-placeholder {
   text-align: center;
}

.login-button{
    outline: 0;
    background: #4CAF50;
    width: 100%;
    border: 0;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;

}

.login-error{
  color: #ff0000;
  font-style: italic;
}


/*  menu */
ul#navi_menu {
    width:100%;
    height:48px;
    position: absolute;
    top: 0px;
    right: 0px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style-type: none;
    background-color: #333;
    z-index: 99;
}

ul#navi_menu li {
    float: right;
    width: 120px;
    line-height: 48px;

}

ul#navi_menu li a {
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
}

ul#navi_menu li a:hover {
    background-color: #FF9F00;
    color:black;
}

#wrapper{
    width:100%;
    height:100%;
    position: relative;
    float: right;
}

#map_canvas{
    width: 100%;
    height: 100%;
}

.sidebar_triggerer{
    width: 40px;
    height: 40px;
    position: absolute;
    top: 192px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url(/icons/funnel.png);
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.sidebar_triggerer:hover{
    background-image: url(/icons/funnel-orange.png);
}

#sidebar{
    display:none;
    width: 180px;
    position:absolute;
    right: 42px;
    top: 192px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.sep{
    background-color: #ddd;
    height: 1px;
    margin: 20px 10px;
}

.filter_holder{
    margin: 2px;
}

.filter_header{
    font-size: 20px;
    color: #fff;
}


#search_box_holder{
    height:32px;
    position:absolute;
    top:64px;
    right:5px;
}

.search_button{
    float: left;
    width: 32px;
    height: 32px;
    background: url(/icons/search.png) no-repeat center center;
    background-color: rgba(0, 0, 0, 0.7);
    background-size: 28px 28px;
}

.search_button:hover{
    background: url(/icons/search-orange.png) no-repeat center center;
    background-color: rgba(0, 0, 0, 0.7);
    background-size: 28px 28px;
}

.zoom-in{
    width: 40px;
    height: 40px;
    position: absolute;
    top: 392px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url(/icons/zoom_in.png);
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-in:hover{
    background-image: url(/icons/zoom_in_hover.png);
}

.zoom-out{
    width: 40px;
    height: 40px;
    position: absolute;
    top: 438px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url(/icons/zoom_out.png);
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-out:hover{
    background-image: url(/icons/zoom_out_hover.png);
}

.status{
    width: 24px;
    height: 24px;
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    margin: 0 auto;
}

.status-waiting{
    background-color: #ffa500; /* orange */
}

.status-in-service{
    background-color: #32cd32; /* lime green */
}

.status-old-communication{
    background-color: #a9a9a9; /* darkgary */
}

.status-no-communication{
    background-color: #000000; /* black */
}

/* gauges */
#gauge-container-kmh {
    direction:ltr;
    /*background: transparent url("/images/gauges/gauge-container-kmh.png") no-repeat 50% 50%;*/
    width: 185px;
    height: 185px;
    background-size: 185px 185px;
    text-align: center;
    margin: 0 auto;
}
#gauge-container-temp {
    direction:ltr;
    /*background: transparent url("/images/gauges/gauge-container-temp.png") no-repeat 50% 50%;*/
    width: 185px;
    height: 185px;
    background-size: 185px 185px;
    text-align: center;
    margin: 0 auto;
}

#speedometer {
    width: 156px;
    height: 156px;
    margin: 12px auto;
}
#thermometer {
    width: 156px;
    height: 156px;
    margin: -4px auto;
}

/* multiselct */
/* http://www.colorzilla.com/gradient-editor/ */

div.k-multiselect-wrap .k-button {
    width: 98%;
    margin-left: 3px;
    margin-right: 3px;
    background: rgb(255,183,107);
background: -moz-linear-gradient(-45deg,  rgba(255,183,107,1) 0%, rgba(255,124,0,1) 43%, rgba(255,167,61,1) 47%, rgba(255,127,4,1) 100%);
background: -webkit-linear-gradient(-45deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
background: linear-gradient(135deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffb76b', endColorstr='#ff7f04',GradientType=1 );
}
#train_org_panel div.k-multiselect-wrap .k-button {
    width: auto;
    margin-left: 3px;
    margin-right: 3px;
    background: rgb(255,183,107);
background: -moz-linear-gradient(-45deg,  rgba(255,183,107,1) 0%, rgba(255,124,0,1) 43%, rgba(255,167,61,1) 47%, rgba(255,127,4,1) 100%);
background: -webkit-linear-gradient(-45deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
background: linear-gradient(135deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffb76b', endColorstr='#ff7f04',GradientType=1 );

}

#train_panel div.k-multiselect-wrap .k-button {
    width: auto;
    margin-left: 3px;
    margin-right: 3px;
    background: rgb(255,183,107);
background: -moz-linear-gradient(-45deg,  rgba(255,183,107,1) 0%, rgba(255,124,0,1) 43%, rgba(255,167,61,1) 47%, rgba(255,127,4,1) 100%);
background: -webkit-linear-gradient(-45deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
background: linear-gradient(135deg,  rgba(255,183,107,1) 0%,rgba(255,124,0,1) 43%,rgba(255,167,61,1) 47%,rgba(255,127,4,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffb76b', endColorstr='#ff7f04',GradientType=1 );

}

/* journey manager*/
.modal{
    display: none;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding-top: 100px;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    float:right;
    direction:rtl;
}

.modal-content{
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.close {
    cursor: pointer;
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    background: url(/icons/close_panel.png);
    background-size: 24px 24px;
}

.modal-header {
    padding: 2px 16px;
    background: #f8c023;
    color: #000;
}

.modal-body {
    padding: 2px 16px;
}

.required_field{
    display: inline-block;
    color: red;
    font-size: 20px;
}

.modal-footer {
    margin-top: 8px;
    padding: 2px 16px;
    margin-bottom: 4px;
    text-align: center;
}

.new_train{
    position: relative;
    display: none;
    padding: 4px;
    border: 1px solid #ddd;
    margin-top: 8px;
    -moz-box-shadow: 5px 5px 5px #ccc;
    -webkit-box-shadow: 5px 5px 5px #ccc;
    box-shadow: 5px 5px 5px #ccc;
}

.button {
    background-color: #E6E6E6;
    border: none;
    color: black;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    border-radius: 10px;
}

.button-active {
    background-color: #c6c6c6;
}

.button:hover{
    background-color: #c6c6c6;
    cursor: pointer;
}

/* journey info div */
.journey-info {
  display: block;
  position: absolute;
  margin-left: -260px;
  left: 0px;
  top: 0px;
  padding-top: 48px;
  width: 260px !important;
  height: 100% !important;
}

.close-info{
  width: 24px;
  height: 24px;
  top: 48px;
  right: 0;
  position: absolute;
  background: #327db6 url(/icons/close.png) no-repeat center center;
  background-size: 18px 18px;
  color: #fff;
}

.scrollable-info{
  height: 70%;
  overflow-y: auto;
  background: #fff;
}

.journey-logo{
  width: 100%;
  height:146px;
  background: #fff url(/icons/fadak-logo.png) no-repeat center center;
  background-size: 150px 90%;
  margin: 0 auto;
}

.journey-name{
  height: 40px;
  background-color: #000000;
  color: #F8C023;
  padding: 5px 10px 0 0;
  font-size: 1.3em;
}

.info-header {
  background: rgba(0, 0, 0, .7);
  color: #CB9E25;
  padding-right: 10px;
}

.collapse-expand{
  width: 16px;
  height: 16px;
  float: left;
  margin-left: 10px;
  margin-top: 4px;
  background-image: url(/icons/collapse.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}

.journey-departure-icon{
  display: inline-block;
  margin-left:15%;
  margin-right:15%;
  width: 48px;
  height:48px;
  background: url(/icons/left-arrow.png) no-repeat;
  background-size: 48px 48px;
}

.journey-remaining{
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 10px;
}

.journey-remaining-time{
  font-size: 0.5em;
  direction: ltr;
}

.svg-distance{
  display: inline-block;
  vertical-align: middle;
}

.src-dst-container{
  padding: 0 5% 0 5%;
  margin: 0 auto;
  overflow: hidden;
}

.src-dst-info{
  display: inline-block;
  text-align: center;
  color: #4c4c4c;
  font-size: 1.6em;
}

.journey-time{
  font-size: 0.6em;
}

.journey-extra-info-div{
  background: #dcdcdc;
  margin: 2px 0 2px 0;
}

.journey-extra-info-line{
  border: #ffffff solid 1px;
}

.journey-extra-info-label{
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height:32px;
  border-left: #ffffff solid 1px;
}
.journey-extra-info-header{
  display: inline-block;
  vertical-align: middle;
  margin-right: 20%;
  color: #4c4c4c;
}
.journey-extra-info-value{
  vertical-align: middle;
  color: #1a1a1a;
  font-size: 0.8em;
  text-align: right;
  direction: ltr;
}

.journey-position {
  background: #aaaaaa url(/icons/train_coordinate.png) no-repeat;
  background-size: 32px 32px;
}

.journey-distance-to-next-station{
  background: #aaaaaa url(/icons/distance-to-next-station.png) no-repeat;
  background-size: 32px 32px;
}

.journey-distance-to-destination{
  background: #aaaaaa url(/icons/distance-to-destination.png) no-repeat;
  background-size: 32px 32px;
}

.journey-next-station{
  background: #aaaaaa url(/icons/station_bw.png) no-repeat;
  background-size: 32px 32px;
}

.wagon{
  background: #aaaaaa url(/icons/wagon.png) no-repeat;
  background-size: 32px 32px;
  vertical-align: top;
}
.wagon-container{
  max-width: 205px;
  display: inline-block;
  direction: rtl;
  color: #4c4c4c;
}

.wagon-title{
  text-align: right;
}

.wagon-number{
  background-color: #bbb;
  margin: 2px;
  border: 1px dotted #ccc;
  padding: 2px;
  display: inline-block;
  font-size: 0.9em;
}

/* manage journeys */
.error-label{
  font-style: italic;
  color: red;
  text-align: right;
}
