/*********/
/* RESET */
/*********/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	}

form *, button {
	font-size: inherit;
	font-family: inherit;
	}

/* HTML5 */
header, footer, section, nav, article, aside {
	display: block;
	}

/* Mobile browsers */
html {
    -webkit-text-size-adjust: 100%;
	}

/***********/
/* GENERAL */
/***********/

html {
	line-height: 1;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 62.5%;
    }

html, body {
    height: 100%; /* see http://www.alistapart.com/articles/footers */
    min-width: 1200px;
    max-width: 1400px;
    margin: 0 auto 1px; /* force vertical scrollbar */
	background: white;
	color: black;
	}
	
p { padding-bottom: 1em; }
	
em 	{
	font-style: italic;
	font-weight: normal;
	}
	
strong 	{
	font-style: normal;
	font-weight: bold;
	}

strong em, em strong {
	font-style: italic;
	font-weight: bold;
	}
	
a, a:link {
	color: #15E;
	text-decoration: underline;
	}
a:visited { 
	color: #15E;
	text-decoration: underline;
	}
a:hover, a:active, a:focus {
	color: black;
	text-decoration: underline;
	}

input, select, textarea {
    box-sizing: border-box;
    border: solid 1px #222;
    border-radius: 2px;
    padding: 0 4px;
    background: #fcfcfc;
    }

input:disabled, select:disabled, textarea:disabled {
    background: #fbfbf4;
    color: #BBB;
    border-color: #D8D8D8;
    }

input[type=submit], input[type=button], input[type=reset], button {
    background: #FFB;
    }

input:focus, select:focus, textarea:focus, button:focus {
    background: #FF9;
    }

input[type=submit]:focus, input[type=button]:focus, input[type=reset]:focus, button:focus {
    background: #FF7;
    }

table {
	table-layout: auto;
	border-collapse: collapse;
	border-spacing: 0;
	}
caption, th, td {
	text-align: left;
	font-weight: normal;
	}

/*****************/
/* SITE SPECIFIC */
/*****************/

#container {
    position: relative;
    min-height: 100%;
    box-sizing: border-box;
    padding: 20px 20px 180px;
    }

.nav li {
    list-style-type: none;
    display: inline-block;
    padding: 0 1em;
    }

#header {
    position: relative;
    padding: 3em 0;
    min-height: 3em;
    }

#header a {
    text-decoration: none;
    }

#header h1 {
    float: left;
    font-size: 3em;
    width: 4.5em;
    }

.user-info {
    position: absolute;
    top: 1em;
    right: 0.5em;
    width: 25em;
    text-align: right;
    letter-spacing: 0.2px;
    }

.user-info .nav li {
    display: block;
    padding: 1.2em 0 0;
    }

header nav {
    margin: 0 17em 0 15em;
    }
    
#nav, #nav-team-year {
    display: block;
    font-size: 1.5em;
    }

#nav > li,
#nav-team-year > li {
    margin: 0.75em 0;
    }

#sel_team {
    width: 18em;
    }

#sel_year {
    width: 5em;
    }

#nav-team-year form.JS-inst label, #nav-team-year form.JS-inst input {
    position: absolute;
    left: -5000px;
    }

.inc-menu {
    padding: 1em;
    font-size: 1.7em;
    }

.inc-menu > * {
    display: inline-block;
    min-width: 3em;
    text-align: center;
    }

#footer {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 40px 20px 20px 0;
    text-align: right;
    min-height: 120px;
    min-width: 249px;
    background: url(../images/logo_small.png) center right scroll no-repeat;
    }

#footer span {
    position: absolute;
    bottom: 0;
    right: 0;
    }
    
#footer a {
    color: black !important;
    }

/*
 * Headings
 * --------
 */

h2 {
    margin: 1em 0;
    font-size: 22px;
    font-size: 2.2rem;
    }

/*
 * Tables
 * ------
 */

table {
    font-size: 12px;
    font-size: 1.2rem;
    line-height: 1.2;
    }

th {
    padding: 4px;
    background: #FFB;
    }

td, th {
    padding: 0.5em;
    vertical-align: middle;
    height: 2em;
    }

tr:nth-child(2n+1) {
    background: #FFD;
    }

hr.pme-hr		     { display: none; }
table.pme-main 	     { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
table.pme-navigation { border: #004d9c 0px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }

table.pme-navigation td {
    padding: 0.5em 1em 0.5em 0;
    }

td.pme-navigation {
    white-space: nowrap;
    text-align: center;
    }

td[class^=pme-key], td[class^=pme-value], td[class^=pme-help], td.pme-navigation, td[class^=pme-cell], td[class^=extra],
td.pme-sortinfo, td.pme-filter {
    border: #004d9c 1px solid;
    }

td[class^=pme-key] {
    width: 30%;
    }

td[class^=pme-value] {
    width: 70%;
    }

td.extra-title {
    width: 20%
    }

td.extra-content {
    width: 80%;
    }

td.pme-cell-date {
    white-space: nowrap;
    }

td.pme-buttons { text-align: left;   }
td.pme-message { text-align: center; }
td.pme-stats   { text-align: right;  }

/* --- */

table.pme-main {
    margin-bottom: 1em;
    }

table tr.pme-navigation {
    background: transparent;
    }

th[class^=pme-header] {
    border: #004d9c 1px solid;
    padding: 4px;
    background: #FFB;
    width: 6%;
    }

th.pme-header-text {
    width: auto;
    }

th[class^=pme-header] a {
    color: inherit;
    }

.pme-search {
    display: none;
    }

td[class^=pme-cell] a {
    text-decoration: none;
    }

td.pme-cell-numeric {
    text-align: right;
    }

td.pme-cell-cas-num {
    text-align: center;
    font-weight: bold;
    }

form.pme-form[name=PME_sys_form] > div {
    min-height: 200px;
    }

#PME_dhtml_tab0 {
    min-height: 0;
    }

#PME_dhtml_tab0 td:first-child {
    font-weight: bold;
    }

tr.pme-tab {
    background: transparent;
    }

td[class^=pme-tab] {
    padding-bottom: 0;
    }

a.pme-tab, a.pme-tab-selected {
    display: inline-block;
    height: 2.6em;
    line-height: 1.3;
    margin: 0.5em 0.5em 0;
    padding: 7px 5px;
    border: solid 1px #333;
    border-bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    text-decoration: none;
    background: #ddd;
    color: black;
    }

a.pme-tab-selected {
    cursor: default;
    }

a.pme-tab-selected, a.pme-tab:focus, a.pme-tab:hover {
    background: #FFD;
    }

a.pme-tab-selected {
    position: relative;
    top: 1px;
    }

.input-error {
    background: #EB3D3D;
    }

input[type=text], textarea {
    width: 92%;
    }

input[name=PME_data_date] {
    width: 7em;
    }

input[type=date] {
    width: 12em;
    }

input[name=PME_data_personnel], input[name=PME_data_hours] {
    width: 7em !important;
    padding-right: 0.5em;
    }

[name=PME_data_report_time], input[name=PME_data_callout_time], #PME_dhtml_tab0 select {
    width: 12em !important;
    }

.date-helper-buttons {
    display: inline-block;
    margin-left: 20px;
    }

span.yes-label {
    position: absolute;
    left: -5000px;
    }

.gmap-container table, .osmap-container table {
    float: left;
    width: 59%;
    }

#gmap, #osmap { 
    float: right;
    width: 40%;
    height: 500px;
    }

body .ol-popup-content {
    max-height: none;
    overflow-x: visible;
    white-space: nowrap;
    font-size: 1.4rem;
    line-height: 1.3;
    }

.osmap-picker-coords {
    display: block;
    position: absolute;
    bottom: 1%;
    right: 1%;
    width: 6em;
    padding: 10px;
    text-align: left;
    color: #fff;
    background: #555;
    }

#osmap-picker {
    position: fixed;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    }

#osmap-picker button.osmap-close {
    position: absolute;
    top: 1%;
    right: 1%;
    z-index: 10000;
    padding: 5px;
    font-size: 1.3em;
    background: #FFB938;
    }

input[name$=gr6] {
    width: 7em;
    text-align: center;
    }

table[summary=labels] tr {
    background: white;
    }

#page-container > .extra {
    display: none;
}

.cas-finish, .inc-link {
    margin: 1em 0;
    font-size: 1.4em;
    }

.pdf-link {
    clear: both;
    padding: 32px 0;
    }

.pdf-link a {
    display: block;
    height: 32px;
    width: 32px;
    background: url(../images/pdficon_large.png);
    text-indent: -5000px;
    }

a[data-explain] {
    display: block;
    }
   
#explan {
    position: fixed;
    top: 20%;
    left: 15%;
    right: 15%;
    background: #EEE;
    border: solid 2px #333;
    border-radius: 10px;
    -webkit-box-shadow: 10px 10px 25px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 25px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 10px 25px 0px rgba(0,0,0,0.75);
    padding: 10px;
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.3;
    }

/*
 * Map page
 * --------
 */

form.map-form {
    margin-bottom: 30px;
    }

form.map-form div, form.map-form fieldset {
    display: inline;
    }

form.map-form label, form.map-form .submit {
    margin-left: 4em;
    }

form.map-form a.date-picker-control {
    vertical-align: middle;
}

#main-map {
    background: #9CCEFF;
    }

/*
 * Login/User CP forms
 * -------------------
 */

p.strapline {
    font-size: 1.5em;
    color: #393;
    line-height: 1.5;
    }

p.gdpr-warning {
    font-size: 1.4em;
    color: #444;
    line-height: 1.5;
    }

form.user-form div, fieldset.submit {
    margin: 1em 0;
    font-size: 1.4em;
    }

form.user-form label {
    float: left;
    clear: left;
    width: 15em;
    margin-right: 1em;
    padding: 4px 0;
    text-align: right;
    }

form.user-form input[type=text], form.user-form input[type=email], form.user-form input[type=password], form.user-form select {
    width: 20em;
    padding: 3px;
    border-radius: 2px;
    border: solid 2px #444;
    background: #FCFCFC;
    }

form.user-form input:hover, form.user-form input:focus, form.user-form select:hover, form.user-form select:focus {
    background: #ff8;
}

form.user-form fieldset.submit {
    margin-left: 16em;
    }

form.user-form fieldset.submit input {
    width: auto;
    padding: 3px 1em;
    background: #ddd;
    }

form.user-form fieldset.submit input:hover, form.user-form fieldset.submit input:focus {
    background: #ff5;
    }

p.error {
    font-size: 1.4em;
    color: #C33;
    }

p.msg {
    font-size: 1.4em;
    color: #282;
    }

a#forgot-link, form.forgot {
    display: none;
    }

/*
 * User admin / Summary
 * --------------------
 */

body.admin #page-container,
body.summary #page-container {
    max-width: 100em;
    margin: 0 auto;
    }

table.user-table,
table.summary-table {
    width: 100%;
    }

table.user-table th, table.user-table td,
table.summary-table th, table.summary-table td {
    border: solid 1px #900C0C;
    }

table.user-table td[class^=edit-]:hover {
    background: #FF8;
    }

table.user-table td[data-perm] {
    text-align: center;
    }

table.user-table td.no-edit-fixed {
    color: #999;
    }

#form-users {
    display: none;
    z-index: 30000;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    }

#form-users form {
    width: 60%;
    margin: 10% auto;
    border-radius: 10px;
    padding: 5%;
    background: white;
    }

button#user-add {
    margin: 1em 0;
    }

/*
 * Loading overlay
 * ---------------
 */

#loading {
    display: none;
    }

#loading.active {
    display: block;
    z-index: 50000;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    }
