html {
	font-size: 11pt;
	max-height: 10in;
}

div,h1,h2,h3,h4,h5,input,textarea,.pure-g [class *= "pure-u"] {
	font-family:"Trebuchet MS",sans-serif;
}

h1 {
	color: #fcf8ed;
	background-color:#374d6a;
	
}

h2 {
	font-size: 2em;
	font-weight: 100;
	text-align: center;
	margin: .5em 0em 0em 0em;
	text-transform: uppercase;
}

h3 {
	font-size: 2em;
	text-align: center;
	padding-top: 0;
	margin: .5em 0em 0em 0em;
}

h4 {
	color: steelblue;
	font-size: 1.6em;
	margin:0px;
	font-style: italic;
}

h5 {
	font-size: 2em;
}


hr {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
}


#ptfirst,#ptlast,#ptdob,#ptroom,#callbacknum {
	*width: 80%;
}

#messagetext {
	*width: 95%;
}

.jumbo {
	font-size: 2em;
	font-weight: bold;
	
}

#xurg1,#xurg2 {
	visibility: hidden;
}

.xurgency-btn {
	min-height: 1in;
	padding-bottom: 1em;
	text-align: center;
}

ul {
	*padding: 0;
	*margin: 0;
	*display: inline;
	line-height: 190%;
}

ul li {
	margin-left: 0em;
	padding-left: 0em;
}

.pad1 {
	padding: 1em;
	text-align: justify;
}

#alt_body {
	display: none;
}

#xupper_group {
/* 	background-color: #f3f8ff; */
	border-bottom: solid thin darkgray;
	
}

#lower_portion, #xwhole_message_block {
	margin: 0px;
	padding: 10px;
}

#existing_patients h2, #previous_messages_title h2, #message h3 {
	border-bottom: 2px solid darkgray;
	padding-bottom: 5px;
	margin-bottom: 5px;
}

#navbar {
	*padding: 3px 5px 3px -5px;
	background-color: #C8D6E8;
}

#feedback, #mobilenumber {
	padding-right: 10px;
	float: right;
}

#existing_patients {
	margin: 0px;
	padding: 20px 10px 20px 10px;
}

#previous_messages_title {
}

#xpatient_info,#xurgency,#xmessage_content,#notifications {
	min-height: 2in;
	padding: 10px;
	border: solid lightsteelblue;
	-webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    behavior: url(CSS/pie/PIE.php);
}

#extend-alt {
	border-top: 2px solid darkgray;
	margin-left:auto;
	margin-right: auto;
	padding: 10px 0px;
	text-align: center;	
	width: 97%;
}

#ext, #no-ext {
	border-top: 2px solid darkgray;
	padding-top: 10px;	
}

.urgency-btn {
	vertical-align: sub;
}

#search_info {
	padding: 10px;
	border: solid lightsteelblue;
	-webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    behavior: url(CSS/pie/PIE.php);	
}

.messageheader {
	padding: 2px;
	background-color: white;
}

.messageheader-all {
	border-bottom: 2px solid darkgray;
}

.messageheader p {
	margin: .5em 1em;
	line-height: 1.2em;
	text-indent: -1em;
	
}

.mhodd {
	background-color: #EFF3F8;
}

.selectedmessage {
	background-color: lightskyblue;
}

.nametag {
	text-align: right;
	margin: .5em .5em 0em .5em;
	padding: .5em .5em .5em 1em;

}

.datetimesender {
	text-align: left;
	margin-left: .25em;
	margin-bottom: 0em;
	margin-top:3px;
	*padding-left: 1em;
}

.datetimeresponse {
	text-align: left;
	margin-left: 22%;
	margin-bottom: 0em;
	margin-top:3px;
	
}

.m-datetimesender {
	margin-left: 1em;
}

.m-datetimeresponse {
	margin-top: 0px;
	padding-left: 22.5%;
}

#m-all-badge {
	margin-right:20px;
}

#m-user-settings {
	margin: 10px;
}

.messagemargin {
	margin: .25em .5em 0em .5em;
	padding: .25em;
}

.sendermessage {
	width: auto;
	max-width: 80%;
	margin: 0em .5em 0em .25em;
	background-color: #D0DCEB;
	padding: .5em .75em;
	-webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.messageresponse {
	width: auto;
	max-width: 80%;
	margin: 0em .5em 0em 20%;
	background-color: lightgreen;
	padding: .5em 1em;
	-webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.m-sendermessage {
	margin-top: .5em;
}

.m-messageresponse {
	margin: .5em .5em 0em 20%;
}

.m-messageresponse-alternate {
	background-color: #BCF5BC;
}

.m-messageresponse-grayed {
	color: darkgray;
	background-color: gainsboro;
}

.m-messageresponse-announcement {
	text-align: center;
	text-transform: uppercase;
	color: black;
	background-color: none;
	margin: 1em 1em 1em 0em;

}

.evenrow {
	background-color: #d9e3ee;	
}

.msg-sent {
	background-color: lightblue;
}

.msg-answered {
	background-color: lightgreen;
}

#extend {
	padding-top: 0px;
	margin-top: 0px;
	background-color: white;
}

#mobileheader {
	background-color:#374d6a;
	color:#fcf8ed;
	padding-left: 0.25em;
	border-bottom: thin outset black;
	font-size: large;
	text-shadow:2px 2px 2px rgba(0,0,0,.5);
	position: fixed;
	top:0px;
	margin: 0px;
}

#card {
	box-shadow: 2px 2px 8px rgba(0,0,0,.8);
	background-color: white;
	height: 440px;	
}

#mobilemessageheader {
}

#controls-mobile-header {
	padding: 5px 0px 0px 0px;
	margin-bottom: 5px;
	background-color: #374d6a;
	color: floralwhite;
	text-align: center;
}

#m-header,.m-header {
	//background-color: #374d6a;
	color: white;
	font-size: 1.5em;
	line-height: 2.5em;
	text-align: center;
	height:.5in;
	margin: 0px;
	padding: 0px;
}

.m-show-all {
	background-color: #DFE7F2;
	border-bottom: 2px solid darkgray;
	padding: 10px 0px 10px 0px;
	//height: 5.5em;
}

.m-show-all-odd {
	background-color: #EFF3F8;
}

#patient-summary {
	padding-bottom: 5px;
}

#m-replacedheader {
	background-color: #374d6a;
	color: floralwhite;
	font-size: 2em;
	text-align: center;	
	padding: 0px;
}

#m-alert {
	margin-top: 20px;
}

#remind_button {
	box-shadow: 2px 2px 4px #404040;
}

#remind_icon {
	margin-top: 0px;
	margin-right: -10px;
}

.qq_code_header {
	font-size: 150%;
	text-align: center;
	font-weight: bold;
}

.white {
	color: white;
}

#testo {
/* 	background: teal; */
}

#m-search, #m-settings {
	color: white;
	margin-top: 12px;
	border: solid transparent;
}

#quick-response-header {
	text-align: center;
	background-color: steelblue;
	color: white;
	margin: 0px;
	padding: 5px 0px;
	font-size: large;
}

#mobile-body {
	background-color: #DFE7F2;
}

#mobile-header {
	padding: 0px 0px 5px 0px;
	background-color: floralwhite;
	}

.badge-grn {
	font-size: 90%;
	background-color: green;
	box-shadow: 2px 2px 4px black;
	}

.badge-orng {
	font-size: 90%;
	background-color: orange;
	box-shadow: 2px 2px 4px black;
	}

#conversation {
	position: absolute;
	top: 0px;
	bottom: 0px;
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #b2b2b2;
	padding-right: 0px;
}	

#mobilefooter {
	position:fixed;
	left:0px;
	bottom:0px;
	height:40px;
	width:100%;
	background-color:#374d6a;
	box-shadow: 0px -2px 8px black;
}

#m-show-all,#callback-number {
	color: white;
}

#m-back {
	color: white;
	margin-top: 4px;
	padding-left: 0px;
}

#row-mobile-header {
	position: fixed;
	width: 100%;
	height: 145px;
	border-bottom: 2px solid darkgray;
	background-color: floralwhite;	
}

#row-conversation {
	position: fixed;
	top: 145px;
	bottom: 0px;
	width: 100%;
}

#row-controls {
	position: fixed;
	bottom: 0px;
	height: 46px;
	width: 100%;
}

#controls {
	padding: 0px;
	margin: 0px;
	display: none;
}

#qr {}

#mobile-all {
	margin: 0px;
	visibility: hidden;
}

.new {
	margin: 0 auto;
	text-align: left;
}

#show-all-conv-button {
	display: none;
}

#previous_messages_title {
	margin-top: 2em;
}

#previous_messages {
	border: solid thin gray;
}

#previous_message_block {
	height: 3in;
	overflow-y: auto;
	overflow-x: hidden; 
	cursor: pointer;
}

#previous_message_block_header {
}

#previous_message_block_content {
	overflow-y: auto;
	overflow-x: hidden; 

}

#previous_message_instructions {
	line-height: 1.8em;
	font-size: 120%;
	text-align: center;
	background-color: #374d6a;
	color: floralwhite;
	border-bottom: solid thin black;
}

#previous_message_instructions small{
	line-height: 1.5em;
}

#message_detail {
	height: 2in;
	border: inset medium #c3c3c3;
	background-color: #E7EDF5;
	overflow-y: auto;
	overflow-x: hidden; 
}

#ext {
	margin: .5em;
}

#on_call {
}

.button-small {
	font-size: 70%;
	margin: 4px 0px;
}

p,input,a,.buttons,li {
	padding: 0em 0em;
	margin: 0em;
}

li {
	text-align: left;
}

#welcome {
	padding: none;
	clear: none;
}

.rt-border {
	border: outset thin silver;
}

.floatleft {
	float: left;
}

.floatright{
	float: right;
}

textright {
	text-align: right;
}

input,textarea,select,option {
	background-color: #EFF3F8;
	
}

#header, .header {
	
	background-color:#374d6a;
	color:#fcf8ed;
	text-align:left;
	text-shadow:2px 2px 2px rgba(0,0,0,.5);
}

.header h1 {
	float:left;
	margin: 5px 10px;

}

.header p {
	float: right;
}

.header a {
	position: relative;
	top: .2em;
	float: right;
	line-height: 2em;
	text-shadow: none;
	box-shadow: 2px 2px 2px rgb(50,50,50);
}

#logout {
	position: relative;
	*top: 0em;
	float: right;
	text-shadow: none;
	box-shadow: 2px 2px 2px rgb(50,50,50);

}

#previous_message_legend {
	text-align: center;
	margin: 5px;
	font-size: smaller;
}

#message_sent_instructions {
	text-align: center;
	line-height: 2em;
}

.footer {
	bottom: 0;
	background-color:#374d6a;
	height: 50px;
	
}

.navbar {
	height: 2.2em;
	clear: both;
}

.nav {
	width:auto;
	height:100%;
	text-align:center;
	float:right;
	font-size:1.1em;
	line-height:1.2em;
}

.silverbox {
	background-color: silver;
	border-color: gray;
	color: black;
	padding: 10px 0px 0px;
	height: auto;
}

.invisible {
	visibility: hidden;
}

.strut {
	height:350px; 
}

.small-strut {
	height: 240px;
}

.nav-left {
	margin-top: 0em;
	margin-left: 0.5em;
	width:auto;
	height:auto;
	text-align:left;
	float:left;
	font-size:1.1em;
	line-height:1.2em;
}

.ivory {
	background-color: #f8f2e4;
	padding: 0px;
	padding-bottom: 1em;
	margin: 1em 0em;
}

#Previous_messages {
	margin-top: 1em;
}

.centered {
	text-align:center;
}

.border {
	border: solid black;
}

.marg-centered {
	margin-left: auto;
	margin-right: auto;
}

.rightmarg {
	text-align: right;
}

.error {
	font-size:1.1em;
	line-height:1.2em;
	color:red;
}

.bold {
	font-weight:bold;
}

table,td,th,tr {
	border:solid silver thin;
	border-left-style: none;
	border-right-style: none; 
	background-color:#fff;
	color:#000;
	border-collapse:collapse;
	padding:5px;
	margin-left:auto;
	margin-right:auto;
	table-layout:auto;
	text-shadow:none;
	overflow:auto;
	text-align:center;
}

table,tr {
	border: none;
}

th {
	background-color:#8D9DB2;
	color:#fff;
}

table a {
	color:#1111a0;
	font-weight: bold;
}

.flush {
	margin: 0px;
	padding: 0px;
}

.black {
	background-color: #999;
	height: 540px;	
	box-shadow: 0px 2px 8px black;

}

.btn-red {
	color: white;
	background-color: red;
}

/* BUTTONS */
.buttons a, .buttons button{
    display:block;
    margin:4px 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #eee;
    border-left:1px solid #eee;    
    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; /* Links */    
    zoom: 1;
    
    /* Structure */

    *display: inline; /*IE 6/7*/
    white-space: nowrap;
    vertical-align: inherit;
    text-align: center;
    cursor: pointer;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
}
.buttons button{
    width:auto;
    overflow:visible;
    padding:4px 10px 3px 7px; /* IE6 */
}
.buttons button[type]{
    padding:5px 10px 5px 7px; /* Firefox */
    line-height:17px; /* Safari */
}
*:first-child+html button[type]{
    padding:4px 10px 3px 7px; /* IE7 */
}
.buttons button img, .buttons a img{
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}

/* STANDARD */
button:hover, .buttons a:hover{
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}
.buttons a:active{
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}/* POSITIVE */
button.positive, .buttons a.positive{
    color:#529214;
    background-color:#E6EFC2;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    behavior: url(CSS/pie/PIE.php);
    
}
.buttons a.positive:hover, button.positive:hover{
    background-color:#529214;
    border:1px solid #C6D880;
    color:white;
}
.buttons a.positive:active{
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}/* NEGATIVE */
.buttons a.negative, button.negative{
    color:#d12f19;
    background:#fbe3e4;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    behavior: url(CSS/pie/PIE.php);
    
}
.buttons a.negative:hover, button.negative:hover{
    background:#d12f19;
    border:1px solid #fbc2c4;
    color:white;
}
.buttons a.negative:active{
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}

.buttons .centered, a .centered {
	display: inline;
}

#menu ul {
	float: right;
}
#menu a {
	color: blue;
	font-weight: bold;
}
#menu a:hover {
	background-color: lightsteelblue;
	color: white;
	font-weight: bold;
}

.btn-size {
	width: auto;
	height: 34px;
	margin-right: 5px;
	line-height: normal;
	vertical-align: middle;
}

.bluegrad{
background: rgb(167,207,223); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E3Y2ZkZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMyMzUzOGEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top,  rgba(167,207,223,1) 0%, rgba(35,83,138,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(167,207,223,1)), color-stop(100%,rgba(35,83,138,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(167,207,223,1) 0%,rgba(35,83,138,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(167,207,223,1) 0%,rgba(35,83,138,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(167,207,223,1) 0%,rgba(35,83,138,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(167,207,223,1) 0%,rgba(35,83,138,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7cfdf', endColorstr='#23538a',GradientType=0 ); /* IE6-8 */

}

.logo {
	margin: 5pt 0pt 5pt 5pt;
}
