/*
210x297
*/

@page {
	size:  auto;   /* auto is the initial value */
	margin: 0.5cm 0 0.5cm 0 ;  /* this affects the margin in the printer settings */
}


@media print {
	html, body {
		background: #fff;
		-webkit-print-color-adjust: exact !important;
		margin: 0;
		height: auto;
		max-height: initial;
		min-height: auto;
		/* overflow: auto; */
	}
	#header, 
	.lists, 
	.creations, 
	.buttons.apply, 
	.details ops-icon {
		display: none;
	}
    
    .block_breakers {
    	height: 1px;
    	width: 100%;
    }
    .default span, 
    .default pre, 
    .default input, 
    .default textarea, 
    .default select, 
    .default option, 
    .default a, 
    .graphs_sections li, 
    .graphs_sections .inputs {
        color: #000;
    }


	#outer_layer {
		padding: 0;
		height: auto;
		overflow: visible;
	}
	.default * {
		color: #000;
	}
	#layer {
		display: block;
		padding: 0;
		height: auto;
	}
	#interactive {
		width: 19.3cm;
		margin: auto;
	}
	.details {
		display:block;
		float: none;
		overflow: hidden;
	}
	.default h1 {
		color: #000;
	}
    .default h2, .default h3 {
        display: inline-block;
    }
	#outer_layer h1 {
		font-size: 0.8cm;
		margin-bottom: 0;
		display: inline-block;
		float: none;
		overflow: hidden;
	}
	.default h2, .default h3 {
       color: #ff9900;
       border-bottom: none;
       font-size: 0.8cm;
       line-height: 1cm;
       height: 1cm;
       /* margin-bottom: 0.5cm; */
    }
    #outer_layer h3 {
       font-size: 0.6cm;
       /* margin-right: 11cm; */
    }
	.detail_titles{
		margin-top: 0.5cm;
		/* margin-bottom: 0.5cm; */
		float: none;
		/* display: block; */
		/* overflow: hidden; */
	}
    .totals {
    	/* margin-right: 2cm; */
    	float: none;
    	/* display: block; */
    	/* overflow: hidden; */
    }
    .totals .main, .headers {
    	background-color: #ccc;
    	padding: 0 0.2cm;
    }
    .totals ul li{
    	padding: 0 0.5cm;
    }
    .totals li span {
    	width: 2.75cm;
    }
    .totals li span:nth-child(1) {
    	width: 15.75cm;
    }
    .totals ul li span:nth-child(1) {
    	width: 15.45cm;
    }
    .comparisons li{
    	padding: 0 0.2cm;
    }
    .cluster_report_sections .totals ul li:nth-child(2n), 
    .comparisons li:nth-child(2n) {
		background: rgba(200,200,200,0.1);
	}
	.headers span:nth-child(1), 
	.comparisons span:nth-child(1) {
		width: 7.5cm;
	}
	.headers span, 
	.comparisons span {
		width: 2.75cm;
	}
	.cluster_report_sections .comparisons ol span:nth-child(n)::after{
		right:-0.4cm
	}
    


    
    .aip_report_sections .totals {
    	width: 100%;
    	/* margin-right: 2cm; */
    }
    .aip_report_sections .totals li span:nth-child(1) {
    	width: 14cm;
    }
    .aip_report_sections .totals.apartments ul li.main {
    	background: transparent;
    }
    .aip_report_sections .totals ul ul li:nth-child(2n+1) {
    	width: 18cm;
    	background: rgba(200,200,200,0.1);
    }
    .aip_report_sections .totals ul ul li span:nth-child(1) {
    	width: 13.2cm;
    }
    .totals ul[name='aip_expenses'] li {
		padding: 0 0.2cm;
	}
	.aip_report_sections [name='income_total'] span:nth-child(1) {
    	width: 14cm;
    	padding: 0 0.2cm;
    }
	.aip_report_sections [name='income_total'] span:nth-child(2) {
    	width: 3.5cm;
    }
    .aip_report_sections .headers span, 
    .aip_report_sections .comparisons span {
		width: 4cm;
	}
    .aip_report_sections .headers span:nth-child(1), 
    .aip_report_sections .comparisons span:nth-child(1) {
		width: 9.3cm;
	}
    
    
    #outer_layer .company_balance_sections .a4 {
    	width: 277mm;
    	display: block;
    	page-break-before:always;
    	height: 200mm;
    	margin: 8mm 0 0 10mm;
    }
    #outer_layer .company_balance_sections {
    	width: 297mm;
    	margin: 0;
    }
    .company_balance_sections .details {
    	width: 100%;
    }
    #outer_layer .company_balance_sections h1 {
    	display: none;
    }
    .company_balance_sections .detail_titles {
    	display: none;
    }
    .company_balance_sections .print_titles {
    	display: block;
    }
    .company_balance_sections .print_titles span {
    	float: right;
    	font-size: 3mm;
    	line-height: 3mm;
    	height: 4mm;
    	margin-top: 1mm;
    }
    #outer_layer .company_balance_sections h2 {
    	font-size: 4mm;
    	line-height: 4mm;
    	height: 4mm;
    	float: left;
    	color: #000;
    }
    #outer_layer .company_balance_sections h3 {
    	margin-right: 0;
    	font-size: 3mm;
    	line-height: 3mm;
    	height: 4mm;
    	margin-top: 1mm;
    	float: left;
    	color: #000;
    }
    .company_balance_sections h4 {
    	font-size: 3mm;
    	line-height: 3mm;
    	height: 3mm;
    }
    .company_balance_sections .buttons {
        display: none;
    }
    .company_balance_sections .apartment_blocks {
    	margin-top: 7mm;
    }
    .company_balance_sections .apartment_blocks [name='include'] {
        display: none;
    }
    .company_balance_sections .vertical_margins {
    	display: none;
    }
    .company_balance_sections .apartment_blocks .hdrs {
    	border-bottom: 1px solid #000;
    }
    .company_balance_sections .apartment_blocks .figures {
    	margin-top: 0;
    }
    .company_balance_sections .apartment_blocks .totals, 
    .company_balance_sections .apartment_blocks .figures {
    	background: transparent;
    }
    .company_balance_sections .apartment_blocks .figures:nth-child(2n) {
    	background: #eee;
    }
    .company_balance_sections .apartment_blocks span {
		font-size: 2mm;
		line-height: 5mm;
		height: 5mm;
		min-height: auto;
	}
    .company_balance_sections .apartment_blocks .totals {
    	padding-top: 0.5mm;
    	padding-bottom: 0;
    	margin-top: 0;
    }
    .company_balance_sections li :nth-child(n+2), 
    .company_balance_sections h4 {
    	color: #000;
    }
    
    
    
    #outer_layer .graphs_sections {
    	width: 190mm;
    	height: 281mm;
    	display: block;
    	page-break-before:always;
    	margin: 8mm 0 0 10mm;
    }
    #outer_layer .graphs_sections h1, 
    #outer_layer .graphs_sections .creations, 
    #outer_layer .graphs_sections .apply {
    	display: none;
    }
    #outer_layer .graphs_sections #search_result {
    	border: none;
    }
    .no_print {
        display: none;
    }
    .graphs_sections .vertical_margins {
    	height: 1mm;
    }
    .graphs_sections .graph_containers {
    	width: 173mm;
    }
    .graph_containers .canvas_containers {
	    height: 34mm;
	    width: 91.7%;
	    margin-left: 4.1%;
	    margin-right: 2mm;
	}
    .graph_containers canvas {
		height: 100%;
		width: 100%;
	}
	.graph_containers ol {
		margin-top: 0;
		width: 100%;
	}
	.graph_containers ol li{
		font-size: 2.4mm;
		line-height: 4mm;
		height: 4mm;
		min-height: auto;
		width: 8.33%;
	}
	.graphs_sections .auxiliary_numbers li {
		font-size: 2.4mm;
		line-height: 4.2mm;
		height: 4.2mm;
		top: -0.9mm;
	}
	.graphs_sections .auxiliary_numbers li:nth-child(2n) {
		top: 0.9mm;
	}
	.graphs_sections .graph_info {
		min-height: 1mm;
		width: 17mm;
		min-width: auto;
		float: right;
	}
	.graphs_sections .graph_info li {
		width: 100%;
		min-height: auto;
		height: auto;
		margin-bottom: 1mm;
	}
	.graphs_sections .graph_info li div {
		height: 2.4mm;
		width: 2mm;
		margin-right: 0;
		position: absolute;
	}
	.graphs_sections .graph_info span {
		font-size: 2mm;
		line-height: 3mm;
		margin-top: 0;
		font-weight: 400;
		min-height: auto;
		padding-left: 3mm;
		float: left;
	}
	.graphs_sections h2 {
		font-size: 3.5mm;
		line-height: 4mm;
		height: 4mm;
	}
	.graphs_sections #premise_name {
		display: inline-block;
		margin-left: 2mm;
	}
	.graphs_sections #city_name {
		display: inline-block;
		margin-left: 2mm;
	}
	.graphs_sections h2 {
    	color: #000;
    }
    
    
        
	.default, .default * {
		float: none;
	}

    
}



