/*
Plugin Name: Mission Tracking
Version: 1.3.1
*/

/* List view */

div.mt_nav {
	display: inline-block;
	margin: 0 1px 0.5em 1px;
	box-sizing: border-box;
}
div.mt_nav img {
	vertical-align: middle;
}
div.mt_nav a {
	display: block;
}
div.mt_nav a, div.mt_nav.active {
	padding: 0.5em;
}
div.mt_nav.active, div.mt_nav:hover {
	margin: 0 0 0.5em 0;
	background: rgba(255,255,255,0.1);
	border: 1px dotted rgba(255,255,255,0.5);
}

table.launchcalendar {
	width: 100%;
	margin-bottom: 0.5em;
	font-family: 'Open Sans', Arial, sans-serif;
	border-collapse: collapse;
	border: 1px solid #8a93a1;
}
table.launchcalendar td {
	padding: 4px;
}
table.launchcalendar th {
	margin: 0;
	height: 27px;
	font-size: 10pt;
	font-weight: normal;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: left;
	text-shadow: 1px 1px 0 #000;
	background: #4a5566;
	background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(0,0,0,0));
}
table.launchcalendar th span {
	vertical-align: middle;
}
table.launchcalendar th span.net {
	opacity: 0.75;
	margin-right: 4px;
	font-size: 0.75em;
	letter-spacing: 0;
}
table.launchcalendar th:first-child {
	background: #1a437c;
}
table.launchcalendar.past th:first-child {
	background: #424d5e;
}
table.launchcalendar th:last-child {
	padding-left: 8px;
}
table.launchcalendar th:first-child, table.launchcalendar td.vehicle {
	text-align: center;
}
table.launchcalendar td.vehicle {
	width: 86px;
	max-width: 86px;
	vertical-align: top;
	letter-spacing: 0.2em;
	font-size: 66%;
	text-transform: uppercase;
	background-repeat: no-repeat;
	background-position: center 57px;
	overflow: hidden;
}
table.launchcalendar td.vehicle div {
	width: 86px;
	height: 130px;
	margin: 4px 0;
	background-repeat: no-repeat;
	background-position: center center;
}
table.launchcalendar td.description {
	height: 100px;
	padding: 4px 8px;
	vertical-align: top;
	color: rgba(255,255,255,0.75);
	border-top: 1px solid #8a93a1;
	border-left: 1px solid #8a93a1;
}
table.launchcalendar td.description p {
	margin: 0 0 0.5em 0;
}
table.launchcalendar td.description ul {
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style-type: none;
}
table.launchcalendar td.description ul li {
	display: inline-block;
	margin-bottom: 4px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
}
table.launchcalendar td.description ul li a {
	display: block;
	padding: 2px 4px;
	color: #fff;
}
table.launchcalendar td.description ul li a span.date {
	opacity: 0.5;
}
table.launchcalendar td.description ul li:hover {
	background: rgba(178, 210, 255, 0.25);
}
table.launchcalendar th,
table.launchcalendar td.launchdetails {
	border-left: 1px solid #8a93a1;
}
table.launchcalendar td.launchdetails {
	height: 62px; 
	padding-bottom: 0; 
	vertical-align: top;
	background-repeat: no-repeat;
	background-position: right center;
	background-position: calc(100% - 8px) center;
}
table.launchcalendar td td {
	padding: 0 2px;
	font-size: 8pt;
	border: none;
}
table.launchcalendar td.launchdetails table td:first-child {
	color: rgba(255,255,255,0.75);
}
h2.schedule {
	font-size: 14pt !important;
	margin-bottom: 8px;
}

/* Calendar view */

table.calendar {
	position: relative;
	margin-bottom: 1em;
	width: 100%;
	border-collapse: collapse;
}
table.calendar th, table.calendar td {
	border: 1px solid rgba(255,255,255,0.5);
}
table.calendar th a {
	display: block;
	width: 100%;
	height: 100%;
}
table.calendar th a:hover {
	background: rgba(255,255,255,0.1);
}
table.calendar th, td.calendar-day-head {
	height: 27px;
	background: rgba(0,0,0,0.1);
	font-weight: bold;
	text-align: center;
	vertical-align: middle;
	line-height: 27px;
}
td.calendar-day-head {
	width: 90px;
	overflow: hidden;
}
td.calendar-day {
	position: relative;
	width: 14%;
	height: 90px;
	font-size: 10px;
	text-align: center;
	vertical-align: top;
}
td.calendar-day:hover {
	background: rgba(255,255,255,0.1);
}

div.name {
	position: absolute;
	margin-top: 1px;
	width: 100%;
	min-height: 12px;
	margin-bottom: 4px;
}
div.name div.label {
	max-height: 12px;
	padding: 0 4px;
	line-height: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.table div.tooltip {
	display: none;
}
.table div.name:hover div.label div.tooltip {
    display: block;
    position: absolute;
    left: 0;
    top: -3px;
    padding: 2px 5px;
    background: #142642;
    border: 1px solid #999;
    white-space: normal;
    z-index: 99;
}

div.day-number {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 20px;
	height: 20px;
	color: #FFF;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
	background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.1);
}

div.plus {
	position: relative;
	margin: -50px 0px 0px 57px;
	width: 18px;
	height: 18px;
	color: #fff;
	font-size: 11px;
	line-height: 17px;
	text-align: center;
	background: rgba(0,0,255,0.25);
	border: 1px solid rgba(255,255,255,0.5);
}

div.mission {
	text-align: center;
}

div.mission img {
	margin-top: 16px;
}

div.info div.mission {
	display: inline-block;
	margin: 0 4px;
	min-width: 50px;
	text-align: center;
}

div.info > div.day-number {
	float: left;
	visibility: visible;
	position: relative;
	top: 46px;
	left: 650px;
	margin-left: -40px;
	width: 40px;
	height: 40px;
	color: #fff;
	font-size: 22px;
	line-height: 36px;
}

td.calendar-day.extend div.info {
	width: 0;
	height: 0;
	overflow: hidden;
	z-index: 98;
}

td.calendar-day.extend:hover div.info {
    position: absolute;
    left: -2px;
    margin-top: 38px;
    width: 250px;
    height: auto;
    min-height: 100px;
    border: 1px solid #a6b8d5;
    background: #2c3d59;
}

div.mask {
	display: none;
}
td.calendar-day.extend:hover div.mask {
	display: block;
	position: absolute;
	margin-left: -1px;
	margin-top: 35px;
	width: 92px;
	height: 1px;
	background: #2c3d59;
	z-index: 99;
}

.today {
	background: rgba(255,255,255,0.1);
}
.void {
	background: rgba(0,0,0,0.1);
}

/* Mobile */

@media only screen and (-webkit-device-pixel-ratio:3),
	only screen and (min-resolution: 3dppx),
	only screen and (-webkit-device-pixel-ratio:2) and (min-device-width : 320px) and (max-device-width : 568px),
	only screen and (max-width: 800px) and not (-webkit-device-pixel-ratio:2),
	only screen and (min-resolution: 1.5dppx) and not (-webkit-device-pixel-ratio:2),
	only screen and (max-width: 800px)	{
	table.launchcalendar th {
		letter-spacing: initial;
	}
	table.launchcalendar td.logo {
		width: 0;
		background: none;
	}
	table.launchcalendar td.launchdetails {
		background: none !important;
	}
	table.launchcalendar td.launchdetails table td:first-child {
		margin-left: 2px;
		margin-right: 4px;
	}
	table.launchcalendar td.description p {
		line-height: 1em;
		font-size: 10pt;
		padding: 4px;
	}
}

/* iPhone 5/6 */

@media only screen and (-webkit-device-pixel-ratio:2) and (min-device-width : 320px) and (max-device-width : 568px),
	only screen and (-webkit-device-pixel-ratio:2) and (min-device-width : 375px) and (max-device-width : 667px),
	only screen and (-webkit-device-pixel-ratio:3) and (min-device-width : 414px) and (max-device-width : 736px) {
	table.launchcalendar td,
	table.launchcalendar td.logo {
		padding: 0 !important;
	}
}