﻿/*#region REPORT - GENERAL */

.container.report  {
    padding: 0 !important;
	width: 100% !important;
    height: auto !important;    
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
	position: relative;
}

.container.report h1 {
	font-family: 'FagoOffc-Bold';
	font-size: 4em;
	font-weight: bold;
	color: #164D77 !important;
	width: 100%;
}

.container.report h2 {
	font-family: 'FagoOffc';
	font-size: 2em;
	font-weight: normal;
	color: #164D77 !important;
	width: 100%;
}

.container.report p {
	font-family: 'FagoOffc';
	font-size: 1.5em;
	font-weight: normal;
	color: #164D77 !important;
}

.container.report .production {
    color: #2E75B6 !important;
}

.container.report .health {
    color: #35946B !important;
}

.container.report .type {
    color: #C55A11 !important;
}

.avoid-break {
    page-break-inside: avoid !important;
}

.break-before {
    page-break-before: always !important;
}

/*#endregion */

/*#region REPORT - COVER */

#cover > img {
	display: block;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto;
}

#cover > .cover-title {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 2cm 1.5cm 1.5cm 2cm !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 auto;
}

#cover > .cover-title h1.text-white, #cover > .cover-title h2.text-white {
    color: #fff !important;
}

#backcover img {
    width: 100% !important;
    height: 100% !important;
}

/*#endregion */
/*#region REPORT - INTRODUCTION */
#introductionBack {
    background-image: url(/Content/images/report/backgrounds/intro.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 1050px;
    height: 1485px;
}

#introduction {
    padding: 2cm 1.5cm 1.5cm 2cm !important;
}

#introduction p {
    white-space: pre-wrap;
}

/*#endregion */

/*#region REPORT - FARM INDEX */

#index {
	padding: 2cm 1.5cm 1.5cm 2cm !important;
}

#index .milk-can span {
    position: absolute;
    top: 45%;        
    font-size: 5em;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;    
}

#index .milk-can div {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    font-weight: bold;
    font-size: 1.3em;
    text-transform: uppercase;
}

#index .milk-can img {
    padding: 0 30px;
}


#index .weights-chart {
    margin-top: 25px;
    border: none;
    padding: 20px 0;
}

#index .weights-chart h4 {
    position: absolute;
    z-index: 10;
    width: 100%;
    color: #164D77;
    font-weight: bold;
}

#index div.summary {       
    page-break-inside: avoid;
}

#index div.summary .table{       
    color: #164D77;
    font-weight: bold;
    font-size: 1.7em;
    border: none;
}


#index div.summary .table tr th:first-child, #index div.summary .table tr td:first-child{
    padding-left: 50px;
}

#index div.summary .table tr th:last-child, #index div.summary .table tr td:last-child{
    padding-left: 50px;
}

#index div.summary .table td, #index div.summary .table th {
    border: none !important;
}

#index div.summary .table th {
    text-decoration: underline;
}

/*#endregion */

/*#region REPORT - PROGRESS */

#progress {
	padding: 2cm 1.5cm 1.5cm 2cm !important;
}

#progress h3 {
	color: #264F8E !important;
	background-color: #C2D3DF;
	padding: 10px 0 10px 20px;
	font-weight: bold;
	width: 100%;
}

#progress h4 {
	position: absolute;
	width: 100%;
	z-index: 10;
	padding: 0;
	margin: 0;
    left: 0px;
}

#progress div.chart {
	width: 100%;
	height: auto;
}

#progress > div {
	/*page-break-before: auto;
	page-break-after: auto;
	page-break-inside: auto;*/
	
	width: 100%;
	height: auto;
}

#progress > div > div{
	/*page-break-before: avoid;
	page-break-after: avoid;
	page-break-inside: avoid;*/

	margin-bottom: 20px;
}

/*#endregion */

/*#region REPORT - History */

#history {
	padding: 2cm 1.5cm 1.5cm 2cm !important;
}

.history {
    max-width: 90%;
    margin: 0 auto;
    font-size: 1em;
    border: 1px solid #ddd !important;
}

.history th, .history td {
    border: 1px solid #ddd !important;
    padding: 5px !important;
}

.history thead th {
    background: #164D77;
    color: #fff;
    font-weight: bold;
}

.history thead th:last-child {
    text-transform: uppercase;
}

.history tbody td.total {
    background: #BAD7EC;
}

/*#endregion */
