/*
#C91A1B red
#383838  dark gray
#D1D1D1 light gray
*/

:root {
	--ensoft-red: #c91a1a;
	--ensoft-light-gray: #d1d1d1;
	--text-color: #1d1d1d; 		/* Dark gray */
	--link-color: #4a7acc; 		/* Blue for links */
	--link-hover: #3b82f6; 		/* Lighter blue on hover */
   	--conflict-red: #c91a1b; 	/* Red for conflicts, as used in color bars in the UI*/
    --change-blue:  #3f6bff;	/* Blue for non-conflicting changes, as used in color bars in the UI*/
}

* {
	box-sizing: border-box;
}
        
div.wrapper {
	margin: auto;
}
/* Only set the specific width when viewing on screen. This allows the report to be printed in landscape mode. */
@media screen {
	div.wrapper {
		width: 1000px;
	}
	div.printGuarantee {
        display:none;
    }
	div.printOnly{
		display:none;
	}
	div.screenOnly{
		display:block
	}
}

@media print {
    div.printGuarantee {
        display:block!important;
    }
	div.printOnly{
		display:block;
	}
	div.screenOnly{
		display:none
	}
}

body,table,tr,td {
	font: 12px "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
}

h2 {
	font-size: 1.3rem;
	color: var(--ensoft-red);
	font-weight: 600;
	padding: 0.1rem;
	border-bottom-style: solid;
	border-color: var(--ensoft-light-gray);
}

h3 {
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0;
	color: var(--ensoft-red);
	margin-top: 1em;
	margin-bottom: 1em;
}

h4 {
	color: #383838;
/*	border-bottom: 1px solid;*/
	margin-bottom: 0em;
}

/* ========= Header section ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed from flex-start to stretch for vertical alignment control */
    background-color: var(--ensoft-red);
    padding: 30px;
    color: white;
}

.logo-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns content to the top */
}

.logo-right {
    display: flex;
    align-items: flex-end; /* Aligns the EnSoft Logo to the bottom */
}

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

.timestamp-container p {
    margin: 0px 0 0 8px; /* Minimal vertical spacing between the two labels */
}

.header .timestamp {
	font-style: italic;
	padding-bottom: 2px;
}

.header-footer {
	background-color: #1d1d1d; /* dark strip */
	color: white;
	text-align: center;
	padding: 12px;
	font-size: 1.33em;
}

.header-footer a {
	color: white;
	text-decoration: none;
}

/* ========= Files section ========== */

div.files-info 
{
 	margin: 30px 0 0 32px;
}	

div.files-info th
{
	font-size: 1.1em;
	vertical-align: top;
}	

div.files-info td
{
	font-size: 1.1em;
	vertical-align: top;
	padding: 0px 0px 2px 2px; /* Avoid top to align at top with header */
}

.additional-model-info {
	padding-left: 0.7em;
}

/* ========= Metrics section ========== */

/* == Metrics Table section(<IE9.0 doesn't support n-th child so have to trivially use first-child+..  ) == */
.table-container {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

table.metrics-table {
	margin-left: 32px;
}

table.metrics-table, table.metrics-table th {
	border: 1px solid #383838;
	border-collapse: collapse;
}

table.metrics-table td {
	border-right: 1px solid #E8E8E8;
	border-collapse: collapse;
}

table.metrics-table td:last-child {
	border-right: 1px solid #383838;
	border-collapse: collapse;
}

/* Header row */
table.metrics-table th {
	background: #E8E8E8;
	text-align: center;
}

/* Summary row */
table.metrics-table tr:last-child {
	border: 1px solid #000000;
}

table.metrics-table th:first-child {
	width: 160px;
}

table.metrics-table th:first-child +th,
table.metrics-table th:first-child +th +th,
table.metrics-table th:first-child +th +th +th, 
table.metrics-table th:first-child +th +th +th +th
{
    width:50px;
}

table.metrics-table th:first-child +th +th +th +th +th,
table.metrics-table th:first-child +th +th +th +th +th +th
{
    width:84px;
}

table.metrics-table td:first-child {
	text-align: left;
	background: #F0F0F0;
}

table.metrics-table tr {
	text-align: center;
	font: bold;
}

.audit-progress {
	font-size: 1.1em;
	font-weight: 600;
	margin-left: 30px;
}

.copy-button {
	margin-left: 0.5em;
	background: #E8E8E8;
	color: white;
	border: none;
	padding: 0.3em 0.5em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s ease;
}

.copy-button:hover {
	/* Disabled for now */
/*	background: #555555;*/
}

@media print {
	.copy-button {
		display: none;
	}
}

/* ========= TOC section ========== */
.table-of-contents {
	margin-left: 30px;
    font-size: 1.2em;        
}

.table-of-contents ol {
	list-style-type: upper-alpha;
	padding-left: 1.5rem;
}

.table-of-contents ol ol {
	list-style-type: decimal;
	padding-left: 2rem;
}

.content-link {
	color: var(--link-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

.content-link:hover, .content-link:focus {
	color: var(--link-hover);
	text-decoration: underline;
}

/* ========= Legend section ========== */
table.color-scheme {
	margin-left: 32px;
	margin-right: auto;
	margin-top: 1em;
	margin-bottom: 2em;
	border-style: outset;
	border-width: 1px;
	border-color: var(--ensoft-light-gray);
    padding: 0px 20px 0px 0px;
}

table.color-scheme img
{
    padding: 0px 0px 0px 20px;
}

/* Grouping a container diff: 2 screenshots and tables */
div.imageGrouping {
	background:#F0F0F0; 
	margin: 0 0 25px;
	padding-top: 25px;
	padding-right: 15px;
	padding-bottom: 25px;
	padding-left: 15px;
}

td {
	padding: 2px;
}
/*
.content-link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 18px;
	color: #22618A;
}


a.content-link:link,a.content-link:visited,a.content-link:active {
	text-decoration: none;
}

a.content-link:hover {
	color: #5989A7;
	text-decoration: none;
}
*/

td.centered img {
	border: medium none;
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 440px;
	/*	width: expression(this.width > 289 ? 289 : true);*/
}

ul.A,ol.A {
	list-style-type: upper-alpha;
}

ul.I,ol.I {
	list-style-type: upper-roman;
}

th {
	text-align: left;
}

.indent {
	padding-left: 2em;
}

.model-name {
	color: #b6121b;
	font-weight: bold;
}


#created-with {
	text-align: center;
	font-size: 10px;
	color: #00395A; /*simdiff_blue*/
	margin-top: 5em;
}

#custom-section {
	margin-top: 6em;
}

#custom-company {
	text-align: center;
	font-size: 10px;
}

#creation-date {
	text-align: center;
	font-size: 10px;
}


.align-center {
	display: block;
	margin: 0 auto;
}

div.changes {
	page-break-before: always;
}

/*div.table-of-contents {
	page-break-before: always;
}*/
div.general-info { /*background-color:#d0e4fe;*/
	margin-top: 5em;
}

div.general-info table {
	margin-top: 2em;
}

div.general-info th {
	font-weight: bold;
}

div.legend-section {
	border-style: solid;
	border-width: 5px;
}



table.changes-paths-table {
	width: 100%;
	border: 0px;
	border-collapse: collapse;
	border-bottom: 1px ridge #999999;
	margin-bottom: 1em;
}

.right-bordered {
	border-right: 1px ridge #999999;
}

table.changes-paths-table td {
	width: 440px;
}

table.left-element-changes-table,table.left-empty-element-changes-table
	{
	width: 50%;
	margin-bottom: 1em;
}

table.right-element-changes-table,table.right-empty-element-changes-table
	{
	width: 50%;
	margin-bottom: 1em;
	margin-left: 50%;
}

table.justified-element-changes-table {
	width: 100%;
	margin-bottom: 1em;
}

table.justified-element-changes-table > tbody > tr > td:not(:last-child) {
    
	white-space: nowrap;

} 

table.justified-element-changes-table > tbody > tr > td:last-child {

    	width: 99%;

}

table.left-element-changes-table,table.left-element-changes-table td,table.left-element-changes-table th,table.right-element-changes-table,table.right-element-changes-table td,table.right-element-changes-table th,table.justified-element-changes-table,table.justified-element-changes-table td,table.justified-element-changes-table th
	{
	border: 1px solid #d4d4d4;
	border-collapse: collapse;
}


table.left-element-changes-table th,table.right-element-changes-table th,table.justified-element-changes-table th
{
	border-color: #585858;
	background-color: #C8C8C8;
    padding: 0 0.25em 0 0.25em;
}

table.justified-element-changes-table td:first-child +td +td +td {
    padding-left: 0.5em;
}

table.left-empty-element-changes-table td,table.right-empty-element-changes-table td
{
    padding: 0 0.25em 0 0.25em;
}

table.left-empty-element-changes-table,table.right-empty-element-changes-table
	{
	border: 1px solid black;
	background-color: #C8C8C8;
	border-collapse: collapse;
}

table.applied-filters-table
{
	margin-left: 32px;
	border-collapse: collapse;
}

table.applied-filters-table td {
	border: 1px solid #cccccc;
	border-collapse: collapse;
	vertical-align: top;
}

table.applied-filters-table th{
	border: 1px solid #000000;
	background-color: #C8C8C8;
	border-collapse: collapse;
	vertical-align: top;
}
table.applied-filters-table tr:first-child th {
    border-top: 1px solid #000000;
}
table.applied-filters-table tr:last-child td {
    border-bottom: 1px solid #000000;
}
table.applied-filters-table tr td:first-child,
table.applied-filters-table tr th:first-child {
    border-left: 1px solid #000000;
}
table.applied-filters-table tr td:last-child,
table.applied-filters-table tr th:last-child {
    border-right: 1px solid #000000;
}


table.attribute-changes-table,table.attribute-changes-table td,table.attribute-changes-table th
	{
	border: 1px solid #d4d4d4;
	border-collapse: collapse;
	vertical-align: top;
}

table.attribute-changes-table th {
	border-color: #585858;
	background-color: #C8C8C8;
	color: black;
	font-weight: normal;
}

table.attribute-changes-table td {
	vertical-align: top;
	/*FIXME: could not make Text align with top part of icon*/
	/*padding-top:0*/
	/*margin-top:0px;*/
}

table.attribute-changes-table {
	width: 95%;
	margin: 1em 0em 0em 2em;
}

.th-status {
	width: 5em; /* 5 is the minimum needed for Japanese version*/
}

.th-type {
	width: 8em;
}
/*
It's better to let the browser automtaically adjust column width. 
Otherwise, diffs with long attribute and small values will use multiple lines.
.th-attribute {
	width:9em;
}*/
td.img-status,td.img-type {
	vertical-align: top;
}

td.text-diffnum {
	vertical-align:top;
}

td.img-status img,td.img-type img {
	vertical-align: middle;
}

wbr {
	display: inline-block;
}

/*Taken from MergeColors.java*/
.status-conflict {
	color: white;
	background-color: var(--conflict-red);
	font-weight: bold;
}

.status-change {
	color: black;
}

.status-no-change {
	color: black;
}

.status-container-change {
	font-size: 1.1em;
	color: black;
    padding-left: 0.5em;
	font-weight: bold;
    border-bottom: 1.5px solid var(--change-blue);
}

.status-container-conflict {
	font-size: 1.1em;
	color: black;
    padding-left: 0.5em;
	font-weight: bold;
    border-bottom: 1.5px solid var(--conflict-red);
}

/* ========= Auditing section ========== */
div.auditing-data {
	width: inherit;
	white-space: normal;
	/*
    background-color:#C8C8C8;
    padding: 1em;
    */
}

.auditing-comment {
	float: left;
}

table.auditing-comment,table.auditing-comment td,table.auditing-comment tr,table.auditing-comment tbody
	{
	border: 0px solid;
	padding: 0px;
	margin: 0px;
}

div.auditing-data p {
	clear: both;
}

div.auditing-data img,img.auditing-tag {
	vertical-align: middle;
}

.auditing-label {
	font-weight: bold;
}

div.auditing-data div {
	margin: 5px;
}

.auditing-float {
	float: left;
}

.image-link {
	text-decoration: none;
}

div.auditing-tag-info {
	border: 0px;
	margin: 10px 0px 10px 0px;
	padding-bottom: 10px;
	padding-right: 5px;
	padding-left: 5px;
}