html, body{
	margin:0;
	background:fff;
	padding:0;
	height:100%;
	min-width:10px;	/* Override 1200px in css.css, it does not fit into A4. */
	overflow:visible;
	max-width:27cm; /* approx. width of A4 landscape */
	}

#mainContent{
	margin:0;
	}

#allta, #mainContent #rtd2_div, #mapRight {
	margin:0 0 0 0 !important;	/* ""!important", because dragging will set inline style. */
}

.tripreporterDailyReport #mainContent #rtd2_div {
	float:none;
}

#toolbarLeft, .sideCollapse, #housenumbers_warnings_wrapper, .alert_wrapper, .messages_wrapper, .places_searcher_container, .feedback-btn {
	display: none;
}

#mapLegend {
	display: none;
}

#bottom{
	overflow: visible;
	min-width:10px;
	width:100%;
	}

#bottom table{
	width:100%;
  	height:100%;
	overflow:visible !important;
	float:none !important;
	}
	
#bottom .routesextended table {
	width:auto;
	height:auto;
}

#bottom table td{
  	height: 100%;
	}

#mainContent #bottom h3{
	font-size:18px;
	}

#bottom table thead th, #bottom table tr td, #bottom table tr.summary_row td{
	font-size:12px;
	}

#bottom table tr td.xl69,
#bottom table tr td.xl81{
	font-size:10px;
	}

#bottom table tr td{
	padding-left:2px;
	}

#bottom h3{
	border-bottom:0px white none;
	}

#bottom .report_name_daily{
	margin-left:60px;
	}

#rtd2_div #rec td.sm_nosa{
	font-weight:bold;
	}

#bottom table tr.holiday td{
	border:4px solid #FFDDCC;
	padding-left:0;
	background:#fff;
	}

.holidays{
	border:4px solid #FFDDCC;
	}

.for_print {
	display:block;
}

.for_print_table_row {
	display:table-row;
}

.noprint{
	display:none;
	}

.report_device_list_wrapper{
	display:none !important;
}

div#report_control_panel, .feedback-btn {
	display:none;
}

#heads2,  
.report_settings a, div.button,
.help_question_mark, #develtext1,#develtext2, 
.tablesorter .noprint_content a, .noprint_content a,
.routes_report_settings, .warnings, #print, 
span.summary_table_text_nowrap, #question, .maintable .spanned_row,
#d3_chart_container .d3js_buttons, 
div.routesextended input[type="button"], 
div#bottom table td.xl103 input[type="button"],
#rtd2_div table#rec td.sm_nosa input[type="button"],
#rtd2_div table#rec td input[type="button"],
#rtd2_div table#rec td input[type="submit"],
div#bottom table#rec tr td input[type="button"],
div#bottom table#rec tr td input[type="submit"],
.tripreporterDailyReport .only-print{
	display:none;
	}
	
.only-print {
	display:block;
}

.contacts {
	position:relative;
	float:left;
	width:100%;
}

.contacts img {
	position:absolute;
	top:50%;
	margin-top:-10px
}

.contacts p {
	position:relative;
	float:right;
	font-size:10px;
}

div.printing_buttons{
	display:block;
	margin:20px 0 20px 370px;	
	}

div.printing_buttons div.button, div.printing_buttons div.button input.clickable{
	display:inline;
	}

div.printing_buttons div.button{
	margin:0 0 0 25px;
	}

.report_name_summary, .atlas, 
.routesextended2_nosaukums, 
div.routesextended p.header, 
.fence_report_table, 
.depots_report_table {
	clear:left;	
	}

#bottom table.depots_report_table {
	table-layout:fixed;
}

#bottom table.depots_report_table td {
	font-size:10px;
}

table.tablesorter thead tr .header, table .sortable_table_header{
	background-image:none !important;
	}

td.sm_dati span.route_cat_name, 
td.sm_dati span.st_taskjobs, 
td.sm_dati span.st_categoryname, 
 .sm_data_body td span.route_cat_name,
 .sm_data_body td span.st_taskjobs,
 .sm_data_body td span.st_categoryname
#explanation_about_holidays, 
input[type="checkbox"]{
	display:block;
	}

#feedback-button,
input[type="checkbox"].non_printable_checkbox{
	display:none;	
	}	

#d3_chart_container .d3js_wrapper{
	page-break-after:always;
	}
	
div.ui-dialog-titlebar,
div.ui-widget-overlay,
div.ui-dialog-buttonset{
	display:none;
	}

div#objects_tabs,
div#massadd_objects_adding_options,
div#objects_massadd_review table.blue_header_table th.in_map, 
div#objects_massadd_review table.blue_header_table td.in_map{
	display:none;
	}

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

div.ui-dialog{
	top:100px !important;
	left:0 !important;
	right:0 !important;	
	border:none;
	padding:0 !important;
	}

.ui-dialog .ui-dialog-content{
    padding:0 10px 0 10px;
	}

div#objects_massadd_review{
	width:100%;
	position:static;
	float:none;
	}

div#objects_massadd_review table.blue_header_table{
	max-width:100% !important;
	width:100%;
	float:none;
	position:static;
	}

div#objects_massadd_review table.blue_header_table td input[type="checkbox"]{
	display:inline;
	}


 div#objects_massadd_review{
 	margin-top:0;
 	}
 	
.fence_report_export_links{
	display:none;
	}
	
table tr td img.change_history{
	display:none;
	}
	
div.help_dialog_opener_top{
	display:none;
	}	
	
div.fuel_report_change_link,
div.fuel_table_wrapper table .show_in_graph_button_cell{
	display:none;
	}
	
button.IS_Button.noprint,
a.noprint{	
	display:none;
	}

.olControlPanel, .olControlPanZoomBar, .olControlLayerSwitcher, .olControlOverviewMap, .olControlMousePosition,
#map div.olControlMousePosition, .olLayerGoogleCopyright, .olNearestObjectsItemInactive, .olObjectGroupItemInactive {
	display: none;
}

.segment_controls {
	display: none;
}

.segment, div.segment, .segment_header, div.segment_header, .segment_body, div.segment_body {
	float: none;	/* Without this, the segment's body (gritter table) gets printed on the next page after its header. */
	background: none;
	color: #000000;
}

#gritter_path_table_list .modular_report_table tbody tr,
#gritter_path_table_list .modular_report_table tr .radiobutton_pair {
	display:none;
}

#gritter_path_table_list .modular_report_table tbody tr.highlighted,
#gritter_path_table_list .modular_report_table tbody tr.sum_row {
	display: table-row;
}

thead tr, table.dataTable thead tr {
	background: none;
}

#routingBlock, #mapRight #graphs, #mapRight #graphs .segment {
	display: none;
}


.floatingHeader, .FixedHeader_Header,
/* TODO Do we really want such a strong/global rule? */
#mainContent .dataTable:not(#rec) {
	display:none;
}

div.report_control_form_wrapper{
	display:none;
}

div#massadd_routes_adding_options,
div#routes_massadd_review table.blue_header_table th.in_map, 
div#routes_massadd_review table.blue_header_table td.in_map{
	display:none;
}

table.lt_est td {
	font-size:10px;
}

table.lt_est .xl41, table.lt_est .xl43, table.lt_est .xl44, table.lt_est .xl45,
table.lt_est .xl23, table.lt_est .xl31,
table.lt_est .xl29 {
	font-size:10px;
}

table.lt_est .xl38 {
	font-size:8px;
	font-weight:normal;
}

table.lt_est .xl21 {
	font-size:10px;
}

table.lt_est .xl25 {
	font-size:14px;
}

.SkyFMS #rtd2_div .excel_sheet,
.SkyFMS #rtd2_div .excel_sheet table {
	width:100%;
	float:none;
	padding:0;
	margin:0;
}

.SkyFMS  #rtd2_div .excel_sheet {
	border:none;
}

.pdf_page_break {
	 page-break-before: always;
}

.pdf_page_break_after {
	page-break-after: always;
}

.tr_routes tr td {
	width:calc(100% / 8);
}