#livetrack .head {
	padding:8px;
	background-color: #4286f7;
	color:#fff;
	font-size: 1.2em;
}
#livetrack .head a {
	color:#fff;	
}
#livetrack .head>* {
	vertical-align: middle;
}
#livetrack .head .back {
	padding: 8px 16px;
    margin-left: -8px;
    vertical-align: middle;
}
#livetrack .head .back i {
	font-weight: bold;
}
.sidebar {
	width:300px;
	position:fixed;
	right:0px;
	bottom:0;
	top:0;
	z-index:1001;
	background-color: #fff;
	box-shadow: 0 0px 4px 6px rgba(0,0,0,0.3);
	border-left: 1px solid #888;
}
.sidebar .list {
    padding-left:0.2em;
    padding-right:0.2em;
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    overflow-y: auto;
}

.sidebar .list table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
}

.sidebar th {
	text-align: left;
	padding-bottom:4px;
}
.sidebar th:first-child {
	width:24px;
	text-align:center;
}
.sidebar tr:hover td {
	background-color:#f0f8ff;
}
.sidebar table td {
	border-top:1px solid #888;
	vertical-align: top;
	cursor: pointer;
}
.sidebar table .sub {
	color:#888;
	padding-top:2px;
	font-size: 90%;
}

.sidebar .toggle {
	position: absolute;
    left: -23px;
    width:22px;
    top: 50%;
    font-size: 200%;
    padding:8px 0;
    line-height:2em;
	background-color: #f0f8ff;
    text-align: right;
    border: 1px solid #888;
    border-right: 0;
    color:#4286f7;
}

.sidebar .toggle i {
	vertical-align: middle;
}

.portrait #map-and-panel, .mini #map-and-panel {
	margin-top:0px;
}
.portrait #map-panel, .mini #map-panel {
	bottom: 30px;
    top: unset !important;
}
.mini .head {
	top:-38px;
	left:0;
	position:absolute;
	z-index: 2001;
}
.mini .head .back {
	position:absolute;
	top:38px;
	background-color: #4286f7;
	opacity: 0.7;
}
.portrait #liveterrain, .mini #liveterrain {
	margin:0 !important;
}
.portrait .sidebar {
	left:0;
	right:0;
	top:unset;
	width:unset;
}

.portrait .sidebar .toggle {
	left:50%;
	top:-30px;
	padding:0 8px;
	line-height:1em;
	text-align:center;
	border-right:1px solid #888;
	border-bottom: 0;
}
.xxxportrait .sidebar table .sub {
	display:inline-block;	
}

.leaflet-popup-content {
	margin: 4px 19px 8px 7px;
}
.map-popup .extend {
	position:absolute;
    padding: 0px 8px;
    font-size: 150%;
    margin-top: -2px;
    right:0;
}
.map-popup .tit {
	color:#000;
}

.leaflet-container {
	background-color:#aadaff;	/* sea color */
}

#livetrack  .active-0 {
	color: #a00;
    font-size: 75%;
    margin-left: 6px;
}
#livetrack  .active-1 {
	color:#0a0;
	font-size:75%;
	margin-left: 6px;
}


#livetrack #map-and-info {
	background-color:#fff;
}
	
#livetrack #map-panel {
    background-color: #0a99e8;
    left: 6px;
    position: absolute;
    text-align: center;
    top: 6px;
    width: 28px;
}

#livetrack #map-and-panel {
	position:relative;
	background-color:#0A99E8;
}

#livetrack #liveterrain {
	height:100px;
	margin:8px 8px 4px 8px;
	border: 1px solid #ccc; /* when empty */
	background-color: #eee;
}


@media (max-width: 800px) {
	#map-panel {
		top:0 !important;
		left:0 !important;
	}
	
}
