@charset "utf-8";

/* Main elements of page */
html {
	margin: 0px;
	height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
	text-align: justify;
}

#main-wrapper {
	margin: 0px;
	padding: 0px;
}

/* Footer */
footer{	
	max-width: 1150px;
	font-size: 9pt;
	color: #b3b3b3;
/* 	color: #a6a6a6; */
	margin: auto;
	position: relative;
}

footer p{
	width: 62%;
	float: right;
	text-align: right;
}

/* Header */
#header {
/* 	min-width: 450px; */
	min-height: 115px;
	padding: 0;
	background-color: #e5e5e5;
	box-shadow: 0 7px 10px 3px #e5e5e5;
}

header{	
	max-width: 1150px;
	padding: 5px 20px;
	margin: 0 auto;
	position: relative;
}

header div *{
	display: inline-block;	
}

#logo {
	width:85px;
	vertical-align: -24px;
}

header h1 {
	font-family: Cambria;
	font-weight: bold;
	font-size: 26pt;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-left: 15px;
}

header .small-title{
	display: none;
}

header h1,nav a:visited,nav a:link, h2 {
	color: #00427f;
}

nav {
	position: relative;
	float: right;
}

nav ul {
	margin: 0px;
	list-style-type: none;
	display: flex;
}

nav li {
	margin-right: 15px;
}

nav a {
	font-size: 13pt;
	padding-bottom: 2.5px;
	text-decoration: none;
}

nav a:hover {
	border-bottom: 3px solid #00427f;
}

nav a:focus{
	outline: 1px dotted #c2c2c2;	
}

nav a.visited{
	border-bottom: 3px solid #00427f;
}

/* Section */
section{
	font-size: 11pt;
	padding: 20px;
	margin: auto;
	max-width: 1000px;
	min-height: 520px;
	position: relative;
}

#pct-calc-intro{
	margin: 5px 0px 15px 0px;	
}

#pct-calc-intro h3{
	margin: 0px 0px 10px 0px;
}

#pct-calc-intro p {
	margin: 5px 0px;
}

/* PCT calculator blocks */
.block{
	min-width: 300px;
	width: 85%;
}

.block-legend{
	text-align: left;
	background: #00427f;
	padding: 5px 20px;
	border-radius: 5px 5px 0 0;
	border: 3px solid #00427f;
	color: white;
	font-size: 14pt;
	position: relative;
	box-sizing: border-box;
}

.minimize-button{
	border: none;
	background-color: #00427f;
	vertical-align: top;
	position: absolute;
	right: 10px;
	padding: 0px;
}

.minimize-button:focus{
	outline: 1px dotted #d4d4d4;
}

.minimize-button img{
	width: 24px;
}

/* PCT calculator form */
#block-form {
	border-radius: 0 0 5px 5px;
	border: 3px solid #00427f;
	border-top-width: 0px;
	padding-top: 5px;
}

.fieldsets{
	text-align: center;
}

.fieldsets fieldset{
	position: relative;
	min-width: 180px;
	width: 45%;
	display: inline;
	vertical-align: top;
	margin: 10px 10px;
	padding: 0px 10px;
	border-radius: 5px;
	border-color: #fff;
	border-style: solid;
	box-sizing: border-box;
	box-shadow: 5px 5px 15px #b9b9b8;
	text-align: left;
	font-size: 10pt;
}

fieldset legend{
	font-style: italic;
	color: #00427f;
	margin: 0 5px;
}

/* All form fields */
fieldset span{
	position: relative;
	margin: 0px 5px 15px 5px;	
	display: block;
	width: 100%;
}

fieldset span *{
	display: inline;
	width: 85%;
}

fieldset label{
	margin-top: 10px;
	display: block;
	padding-right: 10px;
	box-sizing: border-box;
}

fieldset label *{
	display: inline;
	color: #00427f;
	margin-bottom: 6px;
	box-sizing: border-box;
}

fieldset input{
	border-radius: 5px;
	border: 1px solid #e6e7e8;
	padding: 3px 15px;
	margin: 5px 0px 3px 0px;
	height: 28px;
}

fieldset input:focus{
	background-color: #e6e7e8;
	border: 1px solid #e6e7e8;
	outline: none;
}

/* Remove yellow background with input is active */
fieldset input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0px 9999px white;
}

.text-input{
	color: grey;
	font-size: 10pt;
	margin: 0px;
	margin-left: 16px;
}

/* Form drop down lists */
select{
	padding-left: 10px;
	margin: 5px 0px 0px 0px;
	cursor:pointer;
	border-radius: 2px;
	text-decoration: none;
	border: 1px solid #e6e7e8;
	border-radius: 5px 0 0 5px;
	outline: none;
	background-color: white;
	font-size: 10pt;
	height: 28px;
}

select:focus{
	border-radius: 0px;
	border: 1px solid #e6e7e8;
	background-color: #e6e7e8;
}

#start-day{
	font-style: italic;
	color: #00427f;
}

#patient-location{
	width: 10.5em;
	color: grey;
}

#instrument{
	width: 10.5em;
	color: grey;
}

#error-msg-block{
	font-size: 10pt;
	display: none;
	color: #ff3030;
	margin: 10px 20px 0px 20px;
}

#error-msg-block img{
	width: 16px;
	margin-right: 10px;
	vertical-align: middle;
	padding-bottom: 3px;
}

/* Form buttons */
#mandatory-fields{
	font-size: 9pt;
	color: #00427f;
	font-style: italic;
	margin-left: 40px;	
}

.button-group{
	position: relative;
	margin: 0px 30px 5px 30px;
	text-align: right;
}
	
.button{
	width: 75px;
	min-width: 60px;
	font-size: 12pt;
	text-align: center;
	text-decoration: none;
	background: #00427f;
	color: #FFFFFF;
	border:1px solid #00427f;
	cursor: pointer;
	border-radius: 5px;
	display: inline-block;
	padding:4px 9px;
	margin: 5px 2.5px;
	box-sizing: border-box;
	outline: none;
}

.button:focus{
 	color: #d1d3d4;
}

.button:hover{
	color: #00427f;
	background: #fff;
}

/* To remove dotted outline on focus buttons */
.button::-moz-focus-inner {
  	border: 0;
}

/* PCT calculator results */
#results{
	margin-top: 20px;
	display: none;
}

#block-results{
	border-radius: 0 0 5px 5px;
	border: 3px solid #00427f;
	border-top-width: 0px;
	position: relative;
	padding: 10px 30px;
}

h3{
	color: #00427f;
	font-style: italic;
	font-weight: normal;
}

/* Result tables */ 
.result-tables{
	overflow-x: auto;
	max-width: 400px;
}

.result-tables table{
	box-sizing: border-box; 
	border-collapse: collapse;
	text-align: center;
	width: 99%;
} 

.result-tables table, .result-tables td{
	border: 1px solid #e6e7e8;
}

.result-tables th{
	background-color: #00427f;
	color: white;
	font-weight: normal;
}

.result-tables .instrument-col{
	border-bottom: 1px solid white;
}

.result-tables td, .result-tables th{
	padding: 5px;
}

.result-tables td p{
	margin: 0px;
	position: relative;
}

.detailed-results{
	outline: 2px solid transparent;
	outline-offset: 1px;
}

.day1-results{
	display: none;
}

/* Equation */
.formula{
	text-align: left;
    font-size: 12pt;
    overflow-x: auto; 
}

.small-formula{
	display: none;
}
	
.formula tr td{
	text-align: center;
	padding: 0 5px 0 0;
	white-space: nowrap;
}

.small-formula span, .formula span{
	font-size: 11pt;
	display: inline-block;
	min-width: 50px;
    text-align: center;
    padding: 2px;
    margin: 0px 5px;
    color: #00427f;
   	background-color: #e6e7e8;
	border: 1px solid #a7a9ac;
}

.formula hr{
	border: 0;
	border-bottom: 2px solid black;
	margin: 4px 0;
}

/* Global results */
#global-results{
	width: auto;
	text-align: center;
	background-color: #ffeb90;
	border: 2px solid #ffeb90;
	font-size: 12pt;
	display: inline-block;
	box-sizing: border-box;
}

.print-background{
	display: none;
}

.relative-print-background{
	position: relative;
}

#global-results div {
	white-space: nowrap;
	padding: 10px 13px;
}

#delta-value{
	font-size: 14pt;
	font-weight: bold;
	padding-bottom: 0px;
}

#results ul{
	padding-left: 15px;
	list-style-type: square;
}

#results ul li{
	padding-bottom: 10px;
}

/* Info icons */
.info-icon{
	padding: 0;
	margin: 0;
	margin-left: 3px;
	width: 15px;
	vertical-align: 4px;
}

.tooltip .tooltip-text {
    visibility: hidden;
	white-space: normal;
    text-align: justify;
    text-align-last: left;
    font-style: normal;
    font-size: 10pt;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
	display: inline-block;
    padding: 9px 12px;
    color: #00427f;
   	background-color: #e6e7e8;
 	overflow-x: auto;
 	width: auto;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

.help-tooltip .info-icon{
	position: absolute;	
	text-align: right;
	right: 10px;
}

.help-info{
	position: absolute;	
	box-sizing: border-box;
	top: 35px;
	right: 15px;
	left: 15px;	
}

/* Property for firefox only */
@-moz-document url-prefix() {
	.help-info{
		top: 25px;
	}
}

.help-info ul{
	margin: 0px;
	padding-left: 10px;
	list-style-type: square;
}


#global-results-info{
	top: 35px;
	right: 40px;
	left: 60px;
}

.relative-block{
	position: relative;
	width: 100%;	
}

/* Modification of screen size */
@media only screen and (max-width: 800px){    
	
	section{
		min-height: 480px;
	}
	
	footer p{
		width: 100%;
		text-align: justify;
		padding: 0 25px 0 25px; 
		box-sizing: border-box;
		padding-bottom: 20px;
	}
}

/* Modification of screen size */
@media only screen and (max-width: 600px), screen and (max-height: 300px) {    
    
    #logo {
		width: 55px;
	}
    
    #banner div *{
    	display: block;
    }
    
    header #title{
		display: none;
	}
		
	header .small-title {
        font-size: 18pt;
        margin-top: 0px;
    }
    
    #header {
    	min-height: 100px;
    }

	footer p{
		width: 100%;
		text-align: justify;
		padding: 0 15px 0 15px; 
		box-sizing: border-box;
		padding-bottom: 15px;
	}
	
    nav{
    	margin-top: 10px;
    }
    
	nav a {
        font-size: 11pt;
    }
    
    #pct-calc-intro h3{
    	margin-top: 15px;
    }
    
    section{
    	font-size: 10pt;
    	padding: 10px;
    }
    
    .block{
    	width: 100%;
    }
    
    #block-results{
		padding: 3px 10px 3px 10px;
	}
	
	#print-button{
		margin-top: 10px;
	}
	
	.fieldsets{
		margin: 5px 5px;
	}

	.fieldsets fieldset{
		width: 95%;
	}
	.formula{
		display: none;
	}

	.small-formula{
		text-align: center;
		display: inline-block;
	}
	
	#error-msg-block{
		margin: 0 10px;
	}

	#error-msg-block img{
		width: 16px;
		margin-right: 5px;
	}	
}

/* Documents and contact */
.links:link, .links:visited{
	text-decoration: none;
	color: #00427f;
}

/* Printing */
#print-button input{
	margin: 0;
	margin-bottom: 5px;
}

#print-global-results-notes{
	text-align: left;	
}

.print-notes{
	display: none;
}

@media print {
	
	/* Selection of elements to print */
	#pct-calc-intro, #block-legend-form, #block-form, #navbar, #print-button, #results, .block, .block-legend{
		display: none;
	}
	
	body{
		font-size: 10pt;
	}
	
	h3{
		margin-top: 10px;
	}
	
	td br {
		display: none;
	}

	/* Header */
	#header {
		background-color: #e5e5e5;
		min-height: 55px;
		box-shadow: none;
		border-bottom: 1px solid #00427f;
	}

	#header h1{
		margin-top: 0;
		padding-bottom: 10px;
		font-size: 20pt;
	}
    
    #logo {
		width:45px;
		vertical-align: -10px;
	}
	
	/* Gobal results */
	#block-results{
		border: none;
		padding: 0;
	}
	
	#results{
		width: 99%;
	}
	
	#global-results{
		width: 185px;
		font-size: 11pt;
		color: black;
		padding: 0;
		margin: 0;
		margin-top: -15px;
		border: none;
		background-color: transparent;
	}
	
	.print-background{
		margin-top: -15px;
		display: block;
		width: 0;
		height: 0;
		border-top: solid 80px #ffeb90;
		border-left: solid 185px #ffeb90;
		position: absolute;
	}
	
	.formula hr{
		border-bottom: 1px solid black;
	}
	
	.info-icon{
		width: 10px;
		vertical-align: 0px;
	}
	
	/* Detailed results */
	#all-detailed-results {
		display: inline;
	}
	
	.result-tables{
		max-width: 80%;
	}

	.result-tables table{
		color: black;
		border-collapse: separate;
		border-spacing: 3px;
		border-color: transparent;
	}
	
	.result-tables td{
		color: black;
		padding: 0px;
		height: 30px;
		border: 2px solid green;
	}
	
	.result-tables td{	
		border: 2px solid #e6e7e8;
	}
	
	.result-tables th{
		border: 2px solid #e6e7e8;
		color: #00427f;
		background-color: #fff !important;
		font-weight: bold;
	}
	
	.result-tables .instrument-col{
		border-bottom: 2px solid #e6e7e8;
	}

	.result-tables td p{
		padding: 5px;
		color: black;
	}
	
	.result-tables td:nth-child(3){
		width: 160px;
	}
	
	.validated-results{
		border: none !important;
	}
	
	.validated-results .print-cells{
		display: block;
		position: absolute;
		width: 0;
		height: 0;
		margin-top: -3.5px;
		border-top: solid 34px #ffeb90;
		border-left: solid 164px #ffeb90;
	}

	/* Notes */
	.print-notes{
		margin-left: 10px;
		margin-top: 10px;
		margin-bottom: 10px;
		font-size: 9pt;
		font-style: italic;
		display: block;
	}
	
	/* Warnings and precautions */
	#results ul li {
	    padding-bottom: 5px;
	}
}