img {
	min-height: 5vh;
	min-width: 50%;
	margin-left: auto;
	margin-right: auto;
	border:1px solid #CCCCCC;
}

h1 input {
	width: 100%;
}

input:disabled, select:disabled {
	border: none;
	background-color: transparent;
}

input.form-control:disabled, select.form-control:disabled {
	border: none;
	background-color: transparent;
}

.container {
	margin-top: 4rem;
	margin-bottom: 2rem;
}

.basic_info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.basic_info > div {
	width: 47%;
	/* border: 1px solid red; */
}

.progress_diagram {
	width: 100%;
	padding-top: 2vh;
	padding-bottom: 2vh;
	position: relative;
}

.progress_diagram > div {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;	
}

.progress_diagram > div:last-of-type {
	position: absolute;
	top: 2vh;
	z-index: 10;
}

.progress_phase {
	width: 10rem;
	height: 10rem;
	padding: 1rem;
	text-align: center;
	border-radius: 10vw;
	border: 1px solid silver;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.background .progress_phase:not(:last-child)::after {
  	content: '\25B8';
  	font-size: 4rem;
  	position: relative;
  	transform: translate(110%, 0%);
}

.foreground .progress_phase {
	background-color: transparent;
}

.background .progress_phase.completed {
	border-width: 10px;
	opacity: 1;
}

.background .progress_phase.ongoing {
	border-width: 12px;
	font-weight: 1000;
	background-color: transparent;
}

.background .progress_phase.scheduled {
	opacity: 0.2;
}

.foreground .progress_phase {
	border: none;
}

.foreground .progress_phase.completed {
	font-weight: 800;
	color: white;
}

.foreground .progress_phase.ongoing {
	font-weight: 1000;
}

.foreground .progress_phase.scheduled {
	background-color: rgba(0, 0, 0, 0.25);
}

.info_entry {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5vh;
	margin-bottom: 0.5vh;
	min-height: 3.5rem;
}

.info_entry .key {
	width: 30%;
}

.info_entry .value {
	width: 66%;
	display: flex;
	flex-direction: row; 
	align-items: center;
}

.info_entry .unit {
	width: fit-content;
	min-width: 3rem;
	margin-left: 5px;
}

.info_entry a {
	color: black;
}

.info_entry i {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	margin-left: 0.1rem;
	margin-right: 0.1rem;
	text-align: center;
	min-width: 3rem;
}

.info_entry.snapshot {
	width: 100%;
	height: 15.5rem;
	background-size: 100% auto;
	background-position: center center;
	background-repeat: no-repeat;
}

.phase {
	margin-bottom: 0.5rem;
}

.project_progress .phase {
	padding: 0.25rem;
	border-radius: 0.25rem;
}

.subheader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 3rem;
	line-height: 2.5rem;
}

.subheader.ongoing {
	background-color: white;
	font-weight: 1000;
	border-width: 10px;
	color: black;
	padding-left: 0.4rem;
	padding-right: 0.5rem;
}

.subheader:not(.ongoing) {
	background-color: silver;
}

.subheader i {
	min-width: 2rem;
	text-align: center;
	/* border: 1px solid gray; */
}

/*
.table_row {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 3fr 3fr 3fr 3fr 3fr;
}
*/

.subheader {
	background-color: silver;
	border-radius: 5px;
	border: 1px solid gray;
	padding: 1rem;
}

.subheader.completed {
	background-color: transparent;
	color: white;
}

.table_row {
	display: flex;
	flex-wrap: wrap;
	border-radius: 5px;
	border-top: 1px solid rgba(255, 255, 255, 0.9);
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

.table_row .entry {
	width: 18.75%;
	text-align: center;
	min-height: 3rem;
	line-height: 3rem;
}

.table_row .entry a {
	color: inherit;
}

.table_row .entry:nth-child(7n+1) {
	width: 6.25%;
	font-size: 1.8rem;
	padding-top: 0.5rem;
}

.table_row .entry:nth-child(7n) {
	width: 100%;
}

.table_row .entry:nth-child(7n+1) i {
	display: none;
}

.table_row:not(.ongoing):not(.completed) .entry:nth-child(7n+1) i.fa-hourglass {
	display: block;
}

.table_row.ongoing i.fa-hammer {
	display: block;
} 

.table_row.completed i.fa-check-circle {
	display: block;	
}

.table_row .notes {
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	padding: 0.5rem;
}

.table_row .notes.omitted {
	display: none;
}

.task {
	background-color: rgba(0, 0, 0, 0.75);
	color: rgba(255, 255, 255, 0.6);
}

.task.ongoing {
	background-color: rgba(255, 255, 255, 0.5);
	color: black; 
}

.task.completed {
	/* background-color: rgba(0, 0, 0, 0.5); */
	background-color: transparent;
	color: rgba(35, 35, 35, 0.95);
}

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) {
  	.container {
  		font-size: 1.8rem;
  	}
  	
  	.form-control {
  		font-size: 1.8rem;
  	}
  	
  	.progress_phase > div {
  		font-size: 1.5rem;
  		line-height: 2rem;
  		letter-spacing: -1px;
  		font-weight: 1000;
  	}
  
  	.basic_info {
  		flex-direction: column-reverse;
  	}
  	
  	.basic_info > div {
  		width: 100%;
  	} 
  	
  	.info_entry .key {
  		width: 35%;
  	}
  	
  	.info_entry .value {
  		width: 62%;
  	}
  	
  	.info_entry i {
  		width: 4rem;
  	}
  	
  	.info_entry .unit {
  		min-width: 7rem;
  	}
  	
  	.table_row {
  		align-items: center;
  	}
  	
  	.table_row .entry {
  		font-size: 1.5rem;
  		overflow-wrap: break-word;
  	}
  	
  	.table_row .entry .form-control {
  		font-size: 1.5rem;
  	}	
}

@media screen and (max-width: 991px) {
	.container {
		max-width: none;
		padding: 3rem;
		margin-top: 2rem;
	}
		
	.background .progress_phase:not(:last-child)::after {
  		transform: translate(73%, 0%);
	}
	
	.background .progress_phase:first-child::after {
		transform: translate(90%, 0%);
	}	
}

@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
	.background .progress_phase:not(:last-child)::after {
  		transform: translate(80%, 0%);
	}
	
	.background .progress_phase:first-child::after {
		transform: translate(95%, 0%);
	}
	
  	.info_entry .key {
  		width: 40%;
  	}
  	
  	.info_entry .value {
  		width: 60%;
  	}
}

.phase0 .task.completed {
	color: rgba(200, 200, 200, 0.95);
}

.phase0 {
	border-color: #4472C4;
	background-color: #4472C4;
	/* background-color: rgba(68, 114, 196, 0.7); */
}

.phase0::after {
	color: #4472C4;
}

.phase1 {
	border-color: #ED7D31;
	background-color: #ED7D31;
	/* background-color: rgba(237, 125, 49, 0.7); */
}

.phase1::after {
	color: #ED7D31;
}

.phase2 {
	border-color: #FFC000;
	background-color: #FFC000;
	/* background-color: rgba(255, 192, 0, 0.7); */
}

.phase2::after {
	color: #FFC000;
}

.phase3 {
	border-color: #CC66FF;
	background-color: #CC66FF;
	/* background-color: rgba(80, 40, 100, 0.7); */
}

.phase3::after {
	color: #CC66FF;
}

.phase4 {
	border-color: #70AD47;
	background-color: #70AD47;
	/* background-color: rgba(112, 173, 71, 0.7); */
}
