html,
body {
	height: 100%;
}
body{
    margin:0px;
    padding:0px;
    font-family:Arial, Helvetica, Sans;
}
#page-container {
	width: 100%;
	height: 100%;
	min-width: 995px;
	min-height: 660px;
	position: relative;
	overflow: hidden;
}

/* Map */

#map {
	width: 100%;
	height: 100%;
}

.olControlAttribution{
    bottom: 0;
    right: 120px;
    opacity: 0.6;
    font-size: 12px;
}
/*
.olControlLayerSwitcher .layersDiv {
	border-radius: 10px 0 0 10px;
	opacity: 0.75;
	filter: alpha(opacity=75);
}
div.olControlMousePosition {
	display: none;
}
.olPopup {
	background-color: transparent !important;
}
.olPopupContent {
    overflow: visible;
    padding: 0;
}
*/

/* Header */

#header {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 88px;
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.4);
	z-index: 10000;
}
#header-logo {
	width: 104px;
	float: left;
}
#header-text {
	width: 450px;
	float: left;
	margin-left: 10px;
}
#header-text h1 {
	font-size:21px;
	font-weight: bold;
	color: #344352;
	margin-top: 5px;
	margin-bottom: 0px;
}
#header-text p {
	margin: 10px 0 5px;
	font-size: 12px;
}
#header-news {
	width: 380px;
	float: left;
	margin-left: 15px;
	position: absolute;
	left: 880px;
}
#header-news h2 {
	font-size: 14px;
	font-weight: bold;
	margin: 10px 25px 0;
}

/* #container */

#container{
	width: 320px;
	position: absolute;
	left: 10px;
	top: 88px;
	z-index: 10000;
}

#container-collapse-content {
	width: 320px;
	height: 562px;
	position: relative;
	background-color: rgba(255, 255, 255, 0.4);
}

/* Footer */

.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
}

.btn-footer {
    background-color: rgba(52, 67, 82, 0.8);
    border-color: rgba(42, 54, 66, 0.8);
    color: rgb(255, 255, 255);
}
.btn-footer.focus, .btn-footer:focus {
    background-color: rgba(32, 41, 51, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
}
.btn-footer:hover {
    background-color: rgba(32, 41, 51, 0.8);
    border-color: rgba(18, 24, 29, 0.8);
    color: rgb(255, 255, 255);
}
.btn-footer.active, .btn-booter:active {
    background-color: rgba(32, 41, 51, 0.8);
    border-color: rgba(18, 24, 29, 0.8);
    color: rgb(255, 255, 255);
}
.btn-footer.active.focus,
.btn-footer.active:focus,
.btn-footer.active:hover,
.btn-footer.focus:active,
.btn-footer:active:focus,
.btn-footer:active:hover {
    background-color: rgba(18, 24, 29, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
}

.footer-buttons {
    height: 55px;
    position: relative;
}

.footer-help {
	position: absolute;
	left: 0;
	bottom: 0;
}

.footer-help > a {
	display: inline-block;
}
.footer-links {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 10px;
}
.footer-links > a {
	display: inline-block;
}

.footer-links > a + a {
    margin-left: 5px;
}


/* Tabs */

#tabs {
	padding-top: 5px;
}
.routes-tabs > li > a {
	padding: 5px 10px;
	font-size: 14px;
    background-color: #dfdfdf;
}
.routes-tabs > li > a:first-child {
	margin-left: 5px;
}
.routes-tabs > li > a.stop-pavilions-link {
	font-size: 11px;
	padding: 7px 2px 6px 2px;
}
#transport {
    padding: 5px;
}
#search {
	padding: 0px;
	height: 100%;
	font-size: 12px;
}
/*
#stop-pavilions {
	padding: 5px;
}
#stop-pavilions > .nav-pills > li > a {
    text-align: center;
}
#stop-pavilions > .nav-pills > li:not(.active) > a {
	background-color: #dfdfdf;
}
*/

/* Date */

#date-container {
	position: relative;
	margin-bottom: 4px;
	display: none;
}

#date {
	height: 38px;
	padding-right: 42px;
}

#date-container .custom-icon {
	position: absolute;
	top: 3px;
	right: 8px;
	z-index: 2;
	cursor: pointer;
}

.ui-datepicker {
	width: 310px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  -webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
          box-sizing: content-box;
}

/* Select2 */

.transport-select {
	width: 100%;
	margin-bottom: 4px;
}
.select2-drop-mask {
	z-index: 10008;
}
.select2-drop {
	z-index: 10009;
}
.select2-search {
	z-index: 10010;
}
.select2-results .select2-highlighted {
	background-color: #344352;
}
.select2-container .select2-choice {
	height: 38px;
	line-height: 38px;
}
.select2-container .select2-choice > .select2-chosen {
	margin-right: 38px;
}
.select2-container .select2-choice .select2-arrow {
	background-image: none;
	background-color: transparent;
	border-left: 0;
	width: 38px;
}
.select2-container .select2-choice .select2-arrow b {
	background-image: url("/resources/images/32x32/route-type.png");
	background-position: 0 0;
	position: absolute;
	top: 50%;
	margin-top: -16px; 
}
.select2-dropdown-open .select2-choice .select2-arrow b {
	background-position: 0 0;
}
.select2-container-address .select2-choice .select2-arrow b {
    background-image: url("/resources/images/32x32/map-marker.png");
}
.select2-container-route-type .select2-choice .select2-arrow b {
	background-image: url("/resources/images/32x32/route-type.png");
}
.select2-container-route .select2-choice .select2-arrow b {
	background-image: url("/resources/images/32x32/route.png");
}
.select2-container-direction .select2-choice .select2-arrow b {
	background-image: url("/resources/images/32x32/direction.png");
}
.select2-container-stop .select2-choice .select2-arrow b {
	background-image: url("/resources/images/32x32/map-marker.png");
}
.select2-container-disabled {
    opacity: 0.35;
}
.select2-default {
    color: #444 !important;
}

.select2-container .select2-choice abbr {
    right: 40px;
    top: 10px;
}

/* Search */

#search-form {
	padding: 5px 0;
}

#search-form label {
	margin: 0 5px 5px;
	display: block;
}

#q {
	float: left;
	width: 220px;
	margin-left: 5px;
}

#search-button {
	float: left;
	display: block;
	width: 85px;
	margin-left: 5px;
}

#search-results-container {
    overflow: auto;
    color: #222;
}

#search-results-container > h3 {
    margin: 0 5px 5px 7px;
    font-size: 12px;
    font-weight: bold;
}

.ui-widget p {
	margin: 10px 0;
}

ul.search-results-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.search-results-list div.search-result:hover
{
    background-color: #F2F7FD; /* light blue */
    border-color: #B8D6FB; /* darker light blue */
}

ul.search-results-list li.row-selected div.search-result {
    background-color: #344352;
    color: white;
}

div.search-result {
	margin: 0 2px;
	padding: 4px 5px;
	cursor: pointer;
}

div.search-result h3 {
	font-size: 12px;
	font-weight: bold;
	margin: 0;
}

div.search-result p {
	margin: 0;
}

/* vehiclesRefresher */

.show-vehicles {
    margin-top: 39px;
}

.show-vehicles-button {
    height: 38px;
}

.show-vehicles-active,
.show-vehicles-active:focus,
.show-vehicles-active:hover {
    background-color: #344352;
    color: #ffffff;
    border-color: #adadad;
}

.vehicle-colors {
    font-size: 12px;
    margin: 5px 20px 0;
}

/* Bootstrap */

.form-control::-moz-placeholder {
  color: #444;
  opacity: 1;
}
.form-control:-ms-input-placeholder {
  color: #444;
}
.form-control::-webkit-input-placeholder {
  color: #444;
}

/* Icons */

.custom-icon {
	display: block;
	height: 32px;
	width: 32px;
}
.custom-icon-calendar {
	background-image: url("/resources/images/32x32/calendar.png");
}
.custom-icon-route-type {
	background-image: url("/resources/images/32x32/route-type.png");
}

/* Vehicle window */

.vehicle-window {
    width: 320px;
    position: absolute;
    left: 10px;
    top: 98px;
    bottom: 10px;
    z-index: 10000;
    margin-bottom: 0;
    display: none;
}

.vehicle-window .panel-heading {
    padding: 0;
}

.vehicle-window .panel-heading > div {
    padding: 10px 15px;
}

.vehicle-window .close {
    padding: 8px;
}

.vehicle-window .panel-body {
    overflow: auto;
    height: 85%;
}

.vehicle-window .list-group {
    margin-bottom: 0;
}

/*
 * Коммунальная техника
 */

#container-cm {
    width: 320px;
    background-color: rgba(255, 255, 255, 0.4);
    position: absolute;
    left: 10px;
    top: 88px;
    bottom: 10px;
    z-index: 10000;
}

.form-group-cm {
    margin: 3px 8px 10px;
}

.form-group-cm > label {
    font-size: 11px;
    padding: 0 14px;
    margin: 0;
}

.form-group-cm > select {
    background-color: rgba(255,255,255,0.9);
}

.olControlPanZoom {
    top: 102px !important;
    left: 335px !important;
}

.btn-group-vehicle-types {
    display: block;
    overflow: auto;
    position: absolute;
    left: 8px;
    right: 8px;
    top: 85px;
    bottom: 105px;
}

.btn-group-vehicle-types > .btn {
    padding: 2px 10px;
    text-align: left;
    text-decoration: none;
    color: #333;
    border-radius: 0 !important;
}

.btn-group-vehicle-types > .btn > .fa {
    width: 1.1em;
    text-align: left;
}

.btn-group-vehicle-types > .btn > .fa-check-square-o {
    display: none;
}

.btn-group-vehicle-types > .btn.active > .fa-square-o {
    display: none;
}

.btn-group-vehicle-types > .btn.active > .fa-check-square-o {
    display: inline-block;
}

.btn-group-vehicle-types > .btn:hover {
    background-color: rgba(255,255,255,0.3);
}

.btn-group-vehicle-types > .btn > .num-vehicles {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 2px 15px;
}

.btn-group-vehicle-types > hr {
    margin-top: 4px;
    margin-bottom: 4px;
    border-top: 1px solid #aaa;
}

.label-num-vehicles {
    background-color: rgba(52, 67, 82, 0.75);
}

/* Низкопольные ТС */

.low-floor {
    color: #228;
}

.list-inline > .route-number {
    padding-right: 0;
}

.label-low-floor {
    font-size: 90%;
    padding: 0.1em 0.25em;
    background-color: #228;
}

.label-low-floor-sm {
    font-size: 80%;
    padding: 0.1em;
    background-color: #228;
    vertical-align: 1px;
    border-radius: 2px;
}


/* Stop popup */

.stop-popup {
    width: 320px;
    height: 250px;
    padding: 5px !important;
    cursor: auto;
}

.stop-popup .popover-content-scrollable {
    width: 100%;
    height: /*100%*/ 200px;
    padding: /*4px 7px;*/ 0;
    overflow: auto;
}
.stop-popup .ajax-loader {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    cursor: wait;
}
.stop-popup .ajax-loader img {
    display: none;
    margin: 84px auto;
}
.stop-popup.loading .ajax-loader {
    display: block;
}
.stop-popup .stop-popup-a {
    color: #344352;
    /* text-shadow: 1px 1px 2px #626a73; */
    font-size: 14px;
}
.popupAjaxContent{
    font-size: 12px;
    color:#444;
    padding-bottom: 15px;
}
.popupAjaxContent h4{
    margin: 10px 0 5px;
    color: #344352;
    font-size: 12px;
    font-weight: bold;
}       

/* Popup time table */

ul.popup-time-table{
    list-style-type:none;
    margin:0px;
    padding:0px;
}
ul.popup-time-table li{
    border-bottom:1px solid #ddd;
    margin-right:3px;
    padding-top:5px;
}        
ul.popup-time-table li .hour{
    font-size:250%;
    float:left;
    padding-right:5px;
    line-height: 1.15;
}        
ul.popup-time-table li .minute{
    font-size:100%;
    float:left;
    margin-right:3px;
    margin-bottom:3px;
    margin-top:4px;    
    border-bottom:1px dotted #aaa;
    line-height: 1.2;
}
ul.popup-time-table li .minute.trip-with-note {
    font-weight: bold;
    color: #f00;
}
ul.popup-time-table li .minute:hover {
    background-color: #344352;
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
}
ul.popup-time-table li .minute.active {
    background-color: #344352;
    color: #fff;
    border-radius: 2px;
    cursor: default;
}

ul.popup-time-table li .minute .label-low-floor-sm {
    margin-left: 1px;
}

/* Popup list */

ul.popup-list {
    list-style-type:none;
    margin:0px;
    padding:0px;
}
ul.popup-list > li {
    border-bottom:1px solid #ddd;
    margin-right:3px;
    padding-top:5px;
}
.route-item,
.arrival-times-route-item {
    cursor: pointer;
}
ul.popup-footnotes {
    list-style-type: none;
    margin: 10px 0;
    padding: 0;
}
ul.popup-footnotes li {
    padding: 2px 0;
}

/* Stop pavilions */

.stop-pavilion-image-container {
    width: 100%;
    text-align: center;
}

.stop-pavilion-image-container > img {
	height: 130px;
	margin: 2px 0;
}

/* Time popup */

.time-popup {
    width: 44px;
    height: 25px;
    position: relative;
    filter: alpha(opacity=90);
    opacity: 0.9;
    font-size: 12px;
    cursor: default;
}

.time-popup:hover {
    z-index: 1000 !important;
}

.time-popup-text {
    width: 44px;
    height: 20px;
    padding: 1px;
    border-radius: 4px;
    border: 1px solid #aaa;
    color: #222;
    background-color: #fff;
    text-align: center;
}

.time-popup-arrow,
.time-popup-arrow:after {
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 5px 5px 0;
    position: absolute;
    display: block;
    left: 50%;
    margin-left: -5px;
}

.time-popup-arrow {
    border-top-color: #aaa;
    bottom: 0;
}

.time-popup-arrow:after {
    content: "";
    border-top-color: #fff;
    bottom: 1px;
}


.popup-stoppoint-time-table {
    list-style-type:none;
    margin: 8px 0px 0px;
    padding:0px;
}

.popup-stoppoint-time-table h5 {
    margin-top: 5px;
    margin-bottom: 2px;
    margin-left: 40%;
    font-weight: bold;
}

.popup-stoppoint-time-table h5 .label-low-floor {
    font-size: 11px;
    vertical-align: 1px;
}

.popup-stoppoint-time-table p {
    margin-bottom: 0px;
    text-align: center;
}

/* Стрелки сворачивания панели выбора маршрута */
.arrow-container {
	padding: 0;
	z-index: 10001;
	width: 320px;
  	height: 78px;
  	float: left;
}

.arrow {
	position: relative;
	cursor: pointer;
	margin-top: 10px;
	margin-left: 124px;
}

.arrow-left {
	position: absolute;
	background-color: transparent;
	top: 4px;
	left: 32px;
	width: 38px;
	height: 10px;
	display: block;
	transform: rotate(-15deg);
	float: right;
	border-radius: 2px;
}
.arrow-left:after {
	content: "";
	background-color: #6c9c64;
	width: 35px;
	height: 6px;
	display: block;
	float: right;
	border-radius: 6px 10px 10px 6px;
	transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
	z-index: -1;
}

.arrow-right {
	position: absolute;
	background-color: transparent;
	top: 3px;
	left: 0;
	width: 38px;
	height: 10px;
	display: block;
	transform: rotate(15deg);
	float: right;
	border-radius: 2px;

}
.arrow-right:after {
	content: "";
	background-color: #6c9c64;
	width: 35px;
	height: 6px;
	display: block;
	float: right;
	border-radius: 10px 6px 6px 10px;
	transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
	z-index: -1;
}
.open .arrow-left:after {
	transform-origin: center center;
	transform: rotate(30deg);
}
.open .arrow-right:after {
	transform-origin: center center;
	transform: rotate(-30deg);
}
