body, button, select {
	font-family: VAGRoundedStd-Thin,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
	background-color: white;
}
h1 {
	margin-bottom: 0.5em;
}
h1, h2, h3, h4, .v2 #organisations .number {
	color: #FF6700;
}
h1, h2, h3, h4, .number {
	font-family: VAGRoundedStd-Black,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
}
h2 {
	padding-top: 1.17647em;
}

p a, p a:visited {
	color: #FF6700!important;
}
p a:hover, p a:focus {
	color: #999999!important;
}

#main {
	background-color: #ffffff;
	color: #5b5b5b;
	margin-top: 2em;
}
.holder {
	width: 1132px;	/*  IoT width is 1100px but we need to add 2x1em */
}
#main ul.grid {
	margin-bottom: 0em;
}
.glory {
	padding: 0em 0;
}
.glory .holder {
	line-height: 0;
	padding: 0em;
}
.glory img {
	height: 57px;
	width: auto;
}
.centre {
	text-align: center;
}
ul.grid {
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(32px, auto);
	grid-gap: 1em;
}
ul.grid.dashboard li:nth-child(4n) {
	border-right-width: 0px;
}
ul.grid.dashboard li:nth-child(4n+1):nth-last-child(-n+4), ul.grid.dashboard li:nth-child(4n+1):nth-last-child(-n+4) ~ li {
	border-bottom-width: 0px;
}

ul.grid.tabs li:nth-child(4n) {
	border-right: 0px!important;
}

ul.grid.tabs li > a, ul.grid li.tabs > iframe, ul.grid li.tabs > div {
	min-height: 160px;
	cursor: pointer;
}
ul.grid.dashboard li > a, ul.grid li.dashboard > iframe, ul.grid li.dashboard > div {
	min-height: 160px;
	cursor: pointer;
}
ul.grid li {
	margin-bottom: 0px;
}

ul.grid li .number {
	font-size: 4em;
	line-height: 1em;
	letter-spacing: 2px;
	margin-bottom: 0.25em;
}
ul.grid.tabs li > a:hover, ul.grid.tabs li > a:focus {
	background: #FF6700;
	color: black;
}
ul.grid li > a:hover, ul.grid li > a:focus, .graph table .bar:hover {
	/*opacity: 0.85;*/
	color: black;
	background: #FF7F29;
}
.deselected a, .graph table .bar.deselected, .infobubble_inner.deselected { background-color: #333333!important; color: white!important; }
.deselected a:hover, .deselected a:focus, .graph table .bar.deselected:hover { background-color: #5b5b5b!important; color: white!important; }


ul.grid.tabs li {
	margin-bottom: 0;
}
#main ul.grid.tabs {
	/*border-bottom: 1em solid #FF6700;*/
}
#main > .holder.no-bottom {
	margin-bottom: 0px;
	padding-bottom: 0px;
}
.border {
	border: 1em solid #FF6700;
	padding: 2em;
}
#location {
	height: 536px;
	position: relative;
}
#location .switcher {
	z-index: 100;
	position: absolute;
	padding: 0.5em;
	bottom: 0px;
	right: 0px;
}
#location .switcher button {
	display: block;
	background-color: #333333;
	color: white;
	border: 0px;
}
.location-pane {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background: #d9d9d9;
}
#map {
	z-index: 1;
}
#hexmap {
	z-index: 2;
}
#hexmap-inner {
	margin: auto;
	left: auto;
	position: relative;
	border: 0px;
	padding-top: 16px;
}
.infobubble {
	position: absolute;
	right: 1em;
	top: 1em;
	width: 40%;
	max-width: 40%;
	display: block;
	border-radius: 0px;
	text-align: right;
	height: 2em;
	z-index: 100;
}
.infobubble_inner {
	position: relative;
	display: inline-block;
	width: auto;
	background-color: #FF6700;
	color: black;
	line-height: 1.5em;
	padding: 0.5em;
}


.info {
    padding: 0.5em;
    background: rgb(255,255,255);
    box-shadow: 0 0 1em rgba(0,0,0,0.4);
}
.info h4 {
    margin: 0 0 5px;
    color: #777;
}

.spinner {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 10px;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%,-50%, 0);
	position: absolute;
	text-align: center;
	margin-right: -50%;
}
.spinner > div {
	height: 100%;
	width: 6px;
	margin-right: 1px;
	display: inline-block;
	-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
	animation: sk-stretchdelay 1.2s infinite ease-in-out;
}
.spinner .rect2 {
	-webkit-animation-delay: -1.1s;
	animation-delay: -1.1s;
}

.spinner .rect3 {
	-webkit-animation-delay: -1.0s;
	animation-delay: -1.0s;
}

.spinner .rect4 {
	-webkit-animation-delay: -0.9s;
	animation-delay: -0.9s;
}

.spinner .rect5 {
	-webkit-animation-delay: -0.8s;
	animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
	0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
	20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
	0%, 40%, 100% {
		transform: scaleY(0.4);
		-webkit-transform: scaleY(0.4);
	}  20% {
		transform: scaleY(1.0);
		-webkit-transform: scaleY(1.0);
	}
}

button, select {
	font-size: 1em;
	cursor: pointer;
	background-color: white;
	color: #5b5b5b;
	border: 1px solid #FF6700;
	margin-right: 0.5em;
	margin-bottom: 0.5em;
	padding: 0.5em 0.5em;
}
button:hover, button:focus, button.selected {
	background-color: #FF6700!important;
	color: black!important;
}

.barchart {
	height: 300px;
	margin-bottom: 1em!important;
}
ul.grid li > a, ul.grid li > div, .block, .barchart table .bar, .barchart table .antibar {
	transition: height 0.2s ease-in, background-color 0.2s ease-in;
}
.barchart table td:hover .bar, .barchart table td:hover .antibar {
	transition: background-color 0s ease-in;
}

.balloon {
	position: absolute;
	color: #5b5b5b!important;
	background-color: white;
	padding: 0.25em 0.5em;
	left: 50%;
	top: 0;
	transform: translate3d(-50%,-120%, 0);
	white-space: nowrap;
	margin-right: -50%;
	text-align: center;
	z-index: 100;
	box-shadow: 1px 1px 10px rgba(0,0,0,0.2);
}
.balloon::after {
	content: '';
	position: absolute;
	bottom: auto;
	width: 0;
	height: 0;
	border: 0.5em solid transparent;
	transform: translate3d(-50%,0%, 0);
	left: 50%;
	border-top-color: white;
	bottom: -1em;
}

.showtable {
	float: right;
	margin-left: 1em;
	margin-top: -38px;
	cursor: pointer;
}
.showtable img {
	height: 1.3em;
}
.close {
	margin-left: 1em;
	font-size: 2em;
	padding: 0.25em;
	float: right;
	text-decoration: none;
}
#data h2 {
	padding-top: 0px;
}
table.data { width: 100%; margin-bottom: 2em; }
table.data th, table.data td { border: 1px solid #333333; text-align: left; padding: 0.125em 0.25em; color: #333333; }
table.data th { background-color: #333; color: #efefef; cursor: pointer; padding-bottom: 1.5em; background-image: url('order.svg'); background-position: bottom 0.25em center; background-repeat: no-repeat; background-size: 1em 1em; }
table.data th.ascending { background-image: url('ascending.svg'); }
table.data th.descending { background-image: url('descending.svg'); }
table.data th a, table.data td a { color: inherit; }
table.data tr.off td { opacity: 0.3; }
table.data .align { text-align: right; }


@media only screen and (max-width: 1178px) {
	.border { padding: 0em; border-left: 0px; border-right: 0px; border-bottom: 0px; }
	h2 {
		padding-top: 0.588235em;
	}
}
@media only screen and (max-width: 950px) {
	ul.grid li .number {
		font-size: 3em;
	}
}
@media only screen and (max-width: 700px) {
	.glory img {
		height: auto;
		width: 30%;
	}
	ul.grid li { width: 50%; }
	ul.grid.tabs li { width:25%; }
	ul.grid.dashboard li:nth-child(2n) { border-right: 0px; }
	#main ul.grid li { border-right: 1px solid white; }
	ul.grid.dashboard li:nth-child(4n) {
		border-right-width: auto;
	}
	ul.grid.dashboard li:nth-child(4n+1):nth-last-child(-n+4), ul.grid li:nth-child(4n+1):nth-last-child(-n+4) ~ li {
		border-bottom-width: auto;
	}
	ul.grid.dashboard li:nth-child(2n) {
		border-right-width: 0px;
	}
	ul.grid.dashboard li:nth-child(2n+1):nth-last-child(-n+2), ul.grid.dashboard li:nth-child(2n+1):nth-last-child(-n+2) ~ li {
		border-bottom-width: 0px!important;
	}

	ul.grid li .number {
		font-size: 3em;
		margin-bottom: 0.25em;
	}
	ul.grid.tabs li .number {
		font-size: 2em;
	}
	ul.grid li > a, ul.grid li > iframe, ul.grid li > div {
	    padding: 1.5em 0.5em;
		min-height: 160px;
    }
	ul.grid.tabs li > a, ul.grid.tabs li > iframe, ul.grid.tabs li > div {
	    min-height: 112px;
    }
	ul.grid.dashboard li > a, ul.grid.dashboard li > iframe, ul.grid.dashboard li > div {
	    min-height: 136px;
	    max-height: 136px;
	    overflow: hidden;
    }
    #left ul.grid li, ul.grid li {
    	float: left;
    }
}

@media only screen and (max-width: 500px) {
	ul.grid.tabs li {
		font-size: 0.7em;
	}
	ul.grid.tabs li > a, ul.grid.tabs li > iframe, ul.grid.tabs li > div {
	    min-height: 96px;
    }
    #location .switcher {
		padding: 0em;
	}
	#location .switcher button {
		display: inline-block;
	}
	#location {
		height: 560px;
	}
}
