/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
   
a
{
	color:inherit;
}

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    /*line-height: 1.4;*/
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Header styles
   ========================================================================== */
   
body
{
	margin:8px;
	font-family:Helvetica;
}

/** Header bar responsiveness **/
@media only screen and (max-width: 396px)
{
	#header
	{
		padding-bottom:8px !important;
		padding-left:12px !important;
		padding-right:12px !important;
	}
	#header #logo
	{
		width:100%;
		text-align:center;
		padding-left:0px !important;
		padding-right:0px !important;
	}
	#header #search
	{
		float:left !important;
		clear:both;
		padding-left:0px;
	}
	#header #search
	{
		width:100% !important;
		padding:0px !important
	}
	#header #search #searchText
	{
		width:95% !important;
	}
	#header #search #go
	{
		position:absolute !important;
		right:8px;
	}

	#header #menu
	{
		width:100% !important;
		float:left;
		text-align:center;
	}
	#header #menu a
	{
		margin:-2px !important;
	}
	#header #menu .menu_item
	{
		margin-left:0px;
		/*width:64px !important;
		height:54px !important;*/
		width:25% !important;
		height:auto !important;

		float:none !important;
		display:inline-block !important;
	}
	#header #menu .menu_item .menu_title
	{
		width:100% !important;
		font-size:0.6em !important;
	}
	#header #menu .menu_item img
	{
		width:100% !important;
	}
	.icon
	{
		width:48% !important;
		margin-right:1% !important;
	}
}

@media only screen and (min-width:396px) and (max-width: 560px)
{
	#header
	{
		padding-bottom:24px !important;
	}
	#header #search
	{
		float:left !important;
		clear:both;
		padding-left:20px;
	}
	
	#header #search #searchText
	{
		width:286px !important;
	}
	
	#header #menu
	{
		width:100% !important;
		float:left;
	}
	#header #menu .menu_item
	{
		margin-left:0px;
	}
}
@media only screen and (min-width:561px) and (max-width: 940px)
{
	#header #search
	{
		float:left !important;
		clear:both;
		padding-left:20px;
		margin-top:-50px;
	}
	
	#header #search #searchText
	{
		width:286px !important;
	}
	
	#header #menu
	{
		width:180px !important;
		margin-top:-12px;
		float:left;
		
	}
	#header #menu .menu_item
	{
		margin-left:0px;
	}
}

@media only screen and (min-width: 941px) and (max-width: 1020px)
{	
	#header #search #searchText
	{
		width:150px;
	}
	
	#header #menu .menu_item
	{
		margin-left:0px;
	}
	
}	

@media only screen and (min-width: 1021px) and (max-width: 1200px)
{	
	#header #search #searchText
	{
		width:200px;
	}
	
	#header #menu .menu_item
	{
		margin-left:8px;
	}
	
}		

@media only screen and (min-width: 1201px)
{	
	#header #search #searchText
	{
		width:300px;
	}
	#header #menu .menu_item
	{
		margin-left:24px;
	}
	#header #menu
	{
		padding-top: 30px
	}
	
}

#header
{
	max-width:1200px;
	margin:0 auto;
	padding-top:15px;
	padding-bottom:40px;
}

#header #logo
{
	max-width: 300px;
	margin:0 auto;
	text-align:center;
	padding-left:20px;
	padding-right:20px;
	float:left;
}
#header #search
{
	float:right;
	padding-right:20px;
	height:64px;
}
#header #search form {
	height:64px;
	margin:0;
	padding:0;
	margin-top:16px;
	margin-bottom:16px;
}
#header #search #searchText
{
	border:none;
	background:#eee;
	height:32px;
	float:left;
	margin:0;
	padding:0;
	padding-left:5px;
}
#header #search #go
{
	background:#fff;
	border:none;
	height:32px;
	width:32px;
	float:left;
	background-image:url('../img/magnifysmall.png');
	margin:0;
	padding:0;
}

#header #menu .menu_item
{
	float:left;
	width:84px;
	height:64px;
	color:#333;
	position:relative;
	text-align:center;
}

#header #menu .menu_item .menu_title
{
	position:absolute;
	bottom:0px;
	width:84px;
	font-size:0.75em; 
	text-align:center;
	bottom:-3px;
}

#header #menu .menu_item img
{
	width:64px;
	position:relative;
	
}

#header #menu a
{
	text-decoration:none;
}

/* ==========================================================================
   Login/logout footer styles
   ========================================================================== */

#login
{
	text-align:center;
	width:100%;
	max-width:400px;
	margin-left:auto;
	margin-right:auto;
	padding-top:15px;
}

#login img
{
	padding-bottom:24px;
	width:80%;
	max-width:300px;
	margin-left:20px;
	margin-right:20px;
}

.login_input
{
	border:0;
	background-color:#eee;
	color:#222;
	height:32px;
	margin:3px;
	padding-left:5px;
	width:80%;
	max-width:300px;
	margin-left:20px;
	margin-right:20px;
}

.login_submit
{
	margin-top:10px;

}

#footer
{
	margin-left:auto;
	margin-right:auto;
	width:100%;
	max-width:1200px;
	padding-top:10px;
	padding-bottom:15px;
}

#footer a {
	float:right;
}

.icon_item { width: 84px; height: 64px; color: #333; position: relative; text-align: center; }
.icon_item .icon_title { position: absolute; width: 84px; font-size: 0.75em; text-align: center; bottom: 10px; text-decoration:none; }
.icon_item img { width:32px; position:relative; }
/* ==========================================================================
   mainNav styles
   ========================================================================== */

/** Grid responsiveness **/

@media only screen and (max-width: 275px)
{
	#grid .category_title
	{
		font-size:0.75em;
		box-shadow:2px 2px 2px #888888
	}
	.widthcenterer
	{
		width:90%; margin:0 auto;
	}
	.icon
	{
		width:80px;
	}
	.icon .icon_title
	{
		font-size:0.70em; 
		margin-bottom:-5px;
	}
	.category
	{
		width:100.0%;
	}
}
@media only screen and (min-width:276px) and (max-width: 940px)
{
	#grid .category_title
	{
		font-size:0.85em;
		box-shadow:2px 2px 2px #888888
	}
	.widthcenterer
	{
		width:90%; margin:0 auto;
	}
	.icon
	{
		width:100px;
	}
	.icon .icon_title
	{
		font-size:0.80em; 
		margin-bottom:-5px;
	}
	.category
	{
		width:100.0%;
	}
}	
		
@media only screen and (min-width:941px) and (max-width: 1050px)
{
	#grid .category_title
	{
		font-size:1.00em;
		box-shadow:3px 2px 2px #888888
	}
	.widthcenterer
	{
		width:250px; margin:0 auto;
	}
	.icon
	{
		width:115px;
	}
	.icon .icon_title
	{
		font-size:0.75em; 
	}
	.category
	{
		width:33.3%;
	}
}
@media only screen and (min-width:940px) and (max-width: 1050px) and (min-height:930px)
{
	#grid .category_title
	{
		font-size:1.25em;
		box-shadow:4px 2px 2px #888888
	}
	.widthcenterer
	{
		width:330px; margin:0 auto;
	}
	.icon
	{
		width:155px;
	}
	.icon .icon_title
	{
		font-size:0.9em; 
	}
	.category
	{
		width:50%;
	}

}
@media only screen and (min-width: 1051px)
{
	#grid .category_title
	{
		font-size:1.25em;
		box-shadow:4px 2px 3px #888888
	}
	.widthcenterer
	{
		width:310px; margin:0 auto;
	}
	.icon
	{
		width:145px;
	}
	.icon .icon_title
	{
		font-size:0.9em; 
	}
	.category
	{
		width:33.3%;
	}
}

body
{
	font-family:Helvetica;
}
#grid
{
	margin:0 auto;

	width:100%;
	max-width:1200px;
}

.category
{
	overflow:auto;
	float:left;
	margin-bottom:15px;
}
.category_title
{
	font-size:1.25em;
	box-shadow:4px 2px 3px #888888;
	position:absolute;
	font-weight:normal;
	color:#ddd;
	background-color:#333;
	z-index:1;
	padding:2px;
	padding-right:7px;
	padding-left:7px;
}

.icon
{
	overflow:auto;
	float:left;
	background-color:#eee;
	background: -moz-linear-gradient(-45deg, rgba(238,238,238,1) 34%, rgba(220,220,220,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right bottom, color-stop(34%,rgba(238,238,238,1)), color-stop(100%,rgba(220,220,220,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(-45deg, rgba(238,238,238,1) 34%,rgba(220,220,220,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(-45deg, rgba(238,238,238,1) 34%,rgba(220,220,220,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(-45deg, rgba(238,238,238,1) 34%,rgba(220,220,220,1) 100%); /* IE10+ */
	background: linear-gradient(135deg, rgba(238,238,238,1) 34%,rgba(220,220,220,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dcdcdc',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
	position:relative;
	margin:10px;
	margin-left:0px;
	margin-top:0px;
	text-align:center;
	opacity:0.9;
}
.icon .icon_title
{
	position:absolute;
	bottom:7px;
	width:100%;
	text-align:center;

}
.icon img
{
	position:relative;
	width:100%;
	opacity:0.9;
}
.icon:hover
{
	opacity:1.0;
}

/* ==========================================================================
   Search styles
   ========================================================================== */

.container h3
{
	color:#ddd;
	background-color:#333;
	padding-left:7px; padding-top:2px;
	padding-bottom:2px;
	box-shadow: 4px 2px 3px #888888;
	font-size:1.25em;
	font-weight:normal
}

#search-result-container
{
	width:100%;
}

.search-result-box
{
	background-color:#eee;
	min-height:150px; 
	margin-bottom:15px;
}

#search-3, #search-4
{
	width:49%;
}
@media only screen and (max-width: 1000px)
{
	#search-3, #search-4
	{
		width:100%;
	}
}

.search-result-results
{
	padding:45px 30px 30px;
}

.search-result-header
{
	font-weight:bold;
}


.search-result-results a div { background-color:#ddd; }
.search-result-results a:hover div { background-color:#ccc; }

/* Customer search box on add call page (and on add/edit machines page) */
#job_details_container .generic-realtable
{
	margin-top:0px;
}
#customer_details_container .generic-realtable
{
	margin-top:0px;
}
.search_machine_results_box
{
	background-color:#fdfdfd;	
}
.search_customer_results_box
{
	background-color:#fdfdfd;
}

.disabledDiv
{
	background-color:#ddd;
}

.disabledDiv .generic-realtable, .disabledDiv .generic-table-rows, .disabledDiv .generic-table-header, .disabledDiv img
{
	display:none;
}



/* ==========================================================================
   Generic styles
   ========================================================================== */

#generic-container
{
	width:100%;
}

.generic-box
{
	background-color:#eee;
	margin-bottom:15px;
}

.generic-box-content
{
	padding-top:45px;
	padding-right: 30px;
	padding-bottom: 25px;
	padding-left: 30px;
}

.generic-search-box
{
	width:30%; border:none; height:32px; padding:0px
}
.generic-search-image
{
	width:32px;
}

.generic-2column-first
{
	float:left;
	width:50%;
	margin-right:24px;
	margin-bottom:12px;
}
.generic-2column-second
{
	float:left;
}
.generic-3column-first, .generic-3column-second, .generic-3column-third
{
		width:33%;
		float:left;
}

@media only screen and (max-width: 1000px)
{
	.generic-2column-first, .generic-2column-second
	{
		width:100%;
	}
	
	.generic-3column-first, .generic-3column-second, .generic-3column-third
	{
		width:100%;
	}
}

.generic-table
{
	margin-top:16px;
}

.generic-table-header
{
	font-weight:bold;
	display:block;
	background-color:#333;
}
.generic-table-header div
{
	display:inline-block;
	color:#ddd; background-color:#333;
}

.generic-table-rows a
{
	display:block;
	clear:both;
	background-color:#ddd;
}
.generic-table-rows a:hover { background-color:#ccc;}
.generic-table-rows a div { display:inline-block; background-color:#ddd; }
.generic-table-rows a:hover div { background-color:#ccc; }


.generic-realtable
{
	width:100%;
	margin-top:16px;
}

.generic-realtable tr th
{
	border-bottom:none !important;
	font-weight:bold;
	background-color:#333;
	color:#ddd;
	padding-top:0px;
	padding-bottom:0px;
	margin-top:0px;
	margin-bottom:0px;
}

.generic-realtable tr td
{
	border-bottom: 1px dotted #333;
	background-color:#ddd;
	padding-top:2px;
	padding-bottom:2px;
	margin-top:0px;
	margin-bottom:0px;
	height:25px;
}
.generic-realtable tr:hover td
{
	background-color:#ccc;
	cursor:pointer;
}
.generic-realtable tr td a
{
	text-decoration:none;
	display:block;
}
.generic-realtable .secondary-row td
{
	background-color:#e8e8e8;
}


.generic-pagelist
{
	margin-top:12px;
}

.generic-pagelist-pretext
{
	float:left; margin:3px; padding-left:0px; margin-left:0px; padding:5px;
}

.generic-pagelist-page
{
	float:left; margin:3px; padding:5px; 
}
.generic-pagelist-page-clickable
{
	cursor:pointer; background-color:#333; color:#ddd;
}

/* Generic form styles */
.generic-form-button{
	border:none;
	background-color:#333;
	color:#ddd;
	padding:5px 10px;
	width:auto;
}

.generic-button{
	width:auto;
	border:none;
	background-color:#333;
	color:#ddd;
	/*padding:5px; */
	padding-left:10px;
	padding-right:10px;
}

.generic-button:hover{
		color: black;
		background-color: #666;
}

.field_contain
{
	padding-bottom:5px;
}

.field_contain input[disabled], .field_contain select[disabled], .field_contain textarea[disabled]
{
	background-color:#ddd;
	color:#666;
}

.field_contain input, .field_contain select{
	border: medium none;
	height: 24px;
	background: none repeat scroll 0 0 #FFFFFF;
	border-radius: 0.1em;
	padding: 0 0 0 5px;
}
.field_contain textarea{
		border: medium none;
		background: none repeat scroll 0 0 #FFFFFF;
		border-radius: 0.1em;
		padding: 0 0 0 5px;	
}

.field_contain select
{
	/*width: 180px;*/
}

.field_contain input[type="checkbox"]{
	height: 1em;
}

.field_contain label {
	font-size: 0.9em;
	width: 170px;
	display: inline-block;
}

.generic-error { padding:0; margin:0; margin-bottom:12px;}
.generic-error p { margin:0; padding:0; color:red; }

.field_contain .generic_submit /*Matt, i think you can use .generic-form-button , it looks like similiar styles. */
{
	width:auto;
	border:none;
	background-color:#333;
	color:#ddd;
	/*padding:5px; */
	padding-left:10px;
	padding-right:10px;
	margin-bottom:10px;
}

input[type="checkbox"] {
	width:20px;
	height:20px;
}

/* ==========================================================================
   Readings CSS
   ========================================================================== */

.editPencil
{
	width:10px;
	line-height:100%;
}

.deleteButton
{
	width:10px;
	line-height:100%;	
}

.editReadingDate, .editReadingReading, .editReadingRate, .editReadingDelete
{
	cursor:pointer;
}

/* ==========================================================================
   Print Readings CSS
   ========================================================================== */

#print_readings { font-family: Arial;}
#print_readings .title { text-align:center;font-size:22px; font-weight:bold; }
#print_readings table { width:100%; }
#print_readings table .header td { padding-top:5px; padding-bottom:10px;}
#print_readings table tr td { font-size: 14px; vertical-align:top; padding-top:3px; text-align:left; }
#print_readings table .subdata td { padding-top:0px; font-size:13px;  padding-bottom:7px; }


/* ==========================================================================
   Custom JQuery UI
   ========================================================================== */

#ui-datepicker-div
{
	background-color:#eee;
}

.ui-datepicker-title
{
	color:#ccc !important;
}

#tabs
{
	padding:0px;
	margin:0px;
	border:none !important;
}

.ui-tabs-nav
{
	border:none !important;
	padding:0px !important;
	margin:0px !important;
}

.ui-tabs-nav li
{
	border:none !important;
	padding-bottom:0px !important;
	padding:0px !important;
	margin:0px !important;
}
.ui-tabs-nav li a
{
	background-color:#333 !important;
	border:none !important;
	color:#ddd  !important;
	outline:none !important;
}

.ui-tabs-nav .ui-state-active
{
	border:none !important;
	outline:none !important;
}

.ui-tabs-nav .ui-state-active a
{
	background-color:#eee !important;
	color:#333  !important;
	border:none !important;
	outline:none !important;
}

.ui-state-hover a
{
	color:#ddd !important;
	border:none !important;
}

/* ==========================================================================
   Form styles by Zubair
   ========================================================================== */



.container{
    /*background-color: #eee;*/
    margin:0 auto;
    width:90%;
    max-width:1160px;
    padding-left:20px;
    padding-right:20px;
}

.container h3 { margin-top:0px; }


  
#call_details_container .field_contain{
	width: 30.6%;
	float: left;
	color: #212121;
	border: medium none;
}



#customer_details_container .field_contain{
	width: 100%;
	margin-top: 6px; 
}

#customer_details_container label{
	display: inline-block;
}

#tabs, #tabs .customers_details_container{
	font-family: Helvetica;
	font-size: 1em;
}

#job_details_container .field_contain{
	width: 100%;
	margin-top: 6px;
}

#job_details_container label{
	width: 150px;
	display: inline-block;
}

::-webkit-input-placeholder {color:grey;font-size:0.9em;opacity:0.5;}
:-moz-placeholder {/* Firefox 18- */color:grey;font-size:0.9em;opacity:0.5;}
::-moz-placeholder {/* Firefox 19+ */color:grey;font-size:0.9em;opacity:0.5;}
:-ms-input-placeholder {color:grey;font-size:0.9em;opacity:0.5;}

#tabs .ui-corner-all, #tabs .ui-corner-bottom, #tabs .ui-corner-right, #tabs .ui-corner-br {
    border-bottom-right-radius: 0px;
}
#tabs .ui-corner-all, #tabs .ui-corner-bottom, #tabs .ui-corner-left, #tabs .ui-corner-bl {
    border-bottom-left-radius: 0px;
}
#tabs .ui-corner-all, #tabs .ui-corner-top, #tabs .ui-corner-right, #tabs .ui-corner-tr {
    border-top-right-radius: 0px;
} 
#tabs .ui-corner-all, #tabs .ui-corner-top, #tabs .ui-corner-left, #tabs .ui-corner-tl {
    border-top-left-radius: 0px;
}
.ui-widget-header{
	background-image: none;
	background-color: #333333;
	font-size: 1.25em;
    font-weight: normal;
}
#tabs{
    border-radius: 0px;
	border: none;
	margin-bottom: 15px;
}
.ui-widget-content{
	background: none;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor{
	padding: 2px 7px;
}
#ui-id-1:hover, #ui-id-2:hover{
	background-image: none;
	/*background-color: red;*/
}
#ui-id-1, #ui-id-2{
	background-image: none;
	background-color: #EEEEEE;
}
#ui-id-1:focus, #ui-id-1:target, #ui-id-2:focus, #ui-id-2:target{
	background-color: #EEEEEE;	
}

.textarea_med{
	height:84px;
	width:320px;		
}

@media only screen and (max-width: 430px)
{
	.textarea_med{
			height:84px;
			width:100%;		
	}
}

/* Accordion Styles */

.ui-accordion{
	background-color: #ddd;
	font-size: inherit;
	font-family: inherit;
}

.ui-accordion .ui-accordion-content {
	padding: 1em 1em;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active{
	background-color: #ddd !important;
	color: #333 !important;
	border-top: 1px dotted #333;
	border-bottom: 1px dotted #333;
	border-right: none;
	border-left: none;
}

.ui-accordion .ui-accordion-header{
	background-color: #333;
	background-image: none;
	color: #ddd;
	font-size: 1.25em;
	padding-top: 0px;
	padding-bottom: 0px;
}

.ui-corner-all, .ui-corner-top, .ui-corner-bottom,
.ui-corner-right, .ui-corner-left,
.ui-corner-tr, .ui-corner-tl, .ui-corner-br, .ui-corner-bl{
	border-radius: 0px;
}

.ui-widget-content{
	border: none;
}

#delete_site{
	cursor: pointer;
	display: inline-block;
}

/* ==========================================================================
   Part Quantity Buttons
   ========================================================================== */

.qty-button {
		margin: 0 0 0 5px;
}

.part_quantity {
		width: 40px;
		text-align: center;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
    
    /*
     *	Custom print styles by zubair@proactivcomp.co.nz
     */
    
    #header, .do_not_print{
		display: none;
    }
	
	input{
		width: 100%;
	}

}
