:root {
	--orange: #edbb5f;
	--red: #ed5f5f;
	--blue: #315aff;
	--gray: #999;
	--green: #5fed5f;

	--sky_blue: #2EA3F2;
}
	
body {
	background-color:#fff;
	color:#666;
	font-family: Helvetica,Arial,Lucida,sans-serif;
	font-weight:bold;
	font-size: 14px;
	padding:0px;
	margin:0px;
}

header {
	height:40px;
	position:relative;
	padding:20px;

	border-bottom: 2px solid #282828;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
header h1 {
	/*
	position:absolute;
	left:20px;
	top: 20px;
	*/
	margin:0px;
	padding:0px;
}
header nav {
	text-align:right;
}
header nav a {
	line-height:40px;
	text-decoration: none;
	padding-right: 22px;
}
header nav a:hover, header nav a.selected {
	color:#2EA3F2;
}
header nav select {
	width:50%;
	display:none;
}

h2 {
	font-size: 38px;
	padding:0px;
	margin:0px;
	margin-bottom:40px;
	/*margin-top:20px;*/

	text-align: center;
	text-transform: uppercase;
	line-height: 74px;
	padding-top: 25px;

}
h2::after/*, h2::before*/ {
	content:'';
	width:60px;
	height:2px;
	background-color:var(--sky_blue);
	display:block;
}
/*h2::before {
	margin-left:20%;
	margin-bottom:20px;
}*/
h2::after {
	/*margin-top:20px;*/
	margin:auto;
}

h3, h4 {
	margin-top:0px;
	padding-bottom:5px;
	padding-left:5px;
	margin-bottom:20px;
	border-bottom:1px solid var(--sky_blue);
	font-weight:1.2em;
}
h4 {
	font-weight:1.1em;
	border-bottom:0px;
}
h4::before {
	width:10px;
	height:10px;
	display:inline-block;
	margin-right:10px;
	vertical-align: middle;
	background-color:var(--orange);
	content:' ';
}
section {
	position:relative;
}

footer {
	background-color: #282828;
	color:#fff;
	padding:10px;
	line-height: 25px;
	/*margin-top:80px;*/
	position:relative;
}

a {
	color:#666;
}
a:hover {
	opacity:0.8;
	transition:all 0.3s
}

form {
	background-color:#fff;
	color: #333;
	padding:30px;
	width:80%;
	/*margin-bottom:20px;*/

	box-sizing: border-box;

	line-height: 2em;

	margin: auto;
	margin-bottom:20px;
}

form.filter {
	width:300px;
	background-color: #fff;

	padding:20px;
	margin-bottom:20px;
	/*border-bottom:2px solid var(--orange);*/
	float: right;
}
form.filter input[name="trigger"] {
	display:none;
}
form.filter .checkboxes label {
	width:auto;
}
form.filter .dates {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
form.filter .dates .date {
	margin-right: 0;
}

form label {
	display:inline-block;
	width:50%;
	margin-right:10px;
	text-align:left;
	text-transform: uppercase;
	vertical-align:baseline;
}

form>div:last-child {
	text-align:right;
}
form>div:not(:last-child),
form>div.sub_form>div {
	/*margin-bottom:20px;*/
	padding-bottom:20px;
}
form input:lastchild {
	margin:0px;
}
form input, select, textarea {
	width:100%;
	box-sizing: border-box;
	border:0px;
	border-bottom:1px solid #dfdfe3;
	color:#333;
	padding:16px;
	margin-bottom:20px;

	font-family: Helvetica,Arial,Lucida,sans-serif;
	font-weight: bold;
	/*text-transform: uppercase;*/
	font-size: 0.85em;

	border-radius: 10px;
}
form .autocomplete_container {
	width:100%;
}
textarea {
	border:1px solid #dfdfe3;
}
form input[type="button"] {
	margin-bottom:0px;
}
form input[type="radio"],
form input[type="checkbox"] {
	width:auto;
}
form input[type="number"],
form input[type="date"],
form input[type="time"],
form input[type="range"],
form input[type="color"],
form input[readonly],
form input[type="file"],
form .has_side_label {
	width: calc(50% - 20px);
	padding:0px;
	text-align:right;
	font-size: 1em;
	vertical-align: baseline;
	margin:0;
}
form input[readonly] {
	background-color:#ccc;
}
form input[type="color"] {
	height: 20px;
}

form label.inline {
	display:inline-block;
	padding:16px;
	margin-bottom:20px;
	margin-right:0px;
}
form input.submit, input[type="button"], button {
	color: #ffffff ;

	font-family: Helvetica,Arial,Lucida,sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	background-color: var(--sky_blue);

	font-size: 20px;
	font-weight: 500;
	padding: .3em 1em;
	line-height: 1.7em;

	width:auto;

	border:0px;

	cursor:pointer;

	transition: all 0.3s
}

input[type="button"]:hover, button:hover {
	color: var(--sky_blue);
	/*background-color:rgba(167, 92, 7, 0.6)*/
	background-color: white;
}

input[type="button"].reset, 
input[type="button"].delete_btn,  
input[type="button"].cancel {
	background-color: var(--red);
}

form .invalid {
	background-color:rgb(255, 200, 200);
	border-color:#f00;
	color:#f00;
}

form.submitting input.submit {
	display:none;
}
form.submitting::after {
	content:' ';
	width:20px;
	height:20px;
	background-image: url('../design/loading.gif');
	background-size:100%;
	display:block;
}

form div.checkboxes {
	text-align:left;
}
form div.checkboxes input[type="radio"],
form div.checkboxes input[type="checkbox"],
form div.checkboxes label.inline {
	margin-bottom:0px;
}

form img.img_preview {
	width: calc(50% - 20px);
	max-width:120px;
	height:auto;
	display:block;
	margin-left:auto;
	margin-right:0;
}

form ul.info {
	color:var(--gray);
	margin-bottom:20px;
	margin-top: 0px;
}

form div.nav_form {
	border:1px solid #666;
	padding:0px !important;
	margin-bottom:20px;
	background-color:#666;
}

form .nav_form input[type="button"] {
	background-color:#aaa;
	color:#000;
	font-size:1.1em;
	text-transform: none;
	padding:10px;
	border:1px solid #666;
	width:33.33%;
	box-sizing: border-box;

	transition: all 0.3s
}

form .nav_form input[type="button"]:hover {
	background-color:#ccc;
}
form .nav_form input[type="button"].selected {
	background-color:#fff;
}

form .nav_form input[type="button"]:first-child {
	width:100%;
}
form table {
	width:100%;
	min-width:0;
}
form table td {
	padding:10px;
}

 
select option[value="lightgray"], select[value="lightgray"] { background-color:lightgray; }
select option[value="yellow"], select[value="yellow"] { background-color:yellow; }
select option[value="orange"], select[value="orange"] { background-color:orange; }
select option[value="pink"], select[value="pink"] { background-color:pink; }
select option[value="blue"], select[value="blue"] { background-color:blue; color:white; }
select option[value="red"], select[value="red"] { background-color:red; }
select option[value="green"], select[value="green"] { background-color:green; }
select option[value="purple"], select[value="purple"] { background-color:purple; color:white; }
select option[value="black"], select[value="black"] { background-color:black; color:white; }

table, div.table_btns {
	width: 75%;
}
table {
	background-color: #fff;
	color:#333;
	
	/*min-width: 900px;*/
	border: 0px;
	border-spacing: 0px;
}
table td {
	padding:20px;
}

table thead {
	background-color: #f4f4f4;      
}
table thead td {
	border-bottom: 1px solid #d9d9d9;
}

table thead td.sortable {
	cursor:pointer;
}
table thead td.asc::after {
	content:'▲';
	color:var(--sky_blue);
}
table thead td.desc::after {
	content:'▼';
	color:var(--sky_blue);
}

table .view_img,
table .checkbox_img,
table .edit_img, 
table .delete_img {
	cursor:pointer;
}

table .img_preview {
	max-height:50px;
	padding:5px;
}
table .img_preview img {
	max-width:120px;
	height:auto;
}

table td,
table td input, 
table td select, 
table td textarea {
	margin-bottom:0px;
}

table.datatable td[data-colname="view"],
table.datatable td[data-colname="select"],
table.datatable td[data-colname="edit"],
table.datatable td[data-colname="delete"] {
	width:25px;
}

table#table_waves_steps tbody tr[data-type-value="break"] {
	background-color:var(--orange);
}
table#table_waves_steps tbody tr[data-type-value="lunchbreak"] {
	background-color:#c8c8c8;
}
table#table_waves_steps tbody tr[data-status="unplanned"] {
	background-color: var(--gray);
}

table#table_interventions tbody tr[data-status-value="canceled"] {
	background-color: var(--gray);
}
table#table_interventions tbody tr[data-status-value="started"] {
	background-color: var(--orange);/*var(--red);*/
}
table#table_interventions tbody tr[data-status-value="submitted"] {
	background-color: var(--blue);
}
table#table_interventions tbody tr[data-status-value="todo"] {
	/*background-color: var(--red);*/
}
table#table_interventions tbody tr[data-status-value="reported"] {
	background-color: var(--green);
}
table#table_interventions tbody tr[data-status-value="canceled"] img.edit_img {
	display:none;
}



div.btn_container {
	text-align:right;
}

#loading {
	position:fixed;
	top:0px;
	left:0px;
	width:100%;
	height:100%;
	background-color:#fff;
	background-image: url('../design/loading.gif');
	background-repeat:no-repeat;
	background-position: center;
	background-size: 64px 64px;

	opacity:1.0;
	transition: opacity 0.3s;
	
	z-index: 1000;
}

#pages {
	/*background-color: #282828;*/
	background-color: #12113F;
	color:#fff;
	padding:20px;
	position:relative;
}


#app #online_status {
	/*
	width:100px;
	height:100px;
	
	position:absolute;
	top:10px;
	right:10px;
	*/
	float:right;
	
	color:var(--orange);
	/*
	border:1px solid var(--orange) ;
	padding:10px;
	background-color:#282828;
	*/
	text-align:left;
}
#app #online_status h3 {
	display:none; /* inline-block*/
	border:none;
	margin:0px;
	padding:0px;
	line-height:25px;
}
#app #online_status img {
	vertical-align: top;
}

#app.offline #online_status .online {
	 display:none;
}
#app:not(.offline) #online_status .offline {
	display:none;
}
#back_btn {
	position:absolute;
	top:20px;
	right:20px;
	z-index:2;
}
#debug {
	display:none;
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
	height:100px;
	overflow: auto;
	font-size:10px;
	background-color: rgba(255,255,255,0.6);
	color:#000;
}
#debug.clicked_7 {
	display:block;
}
/* ***************************************************************************************** */
/* CLASSES */
.color_result {
	width:100px;
	height:20px;
	border:1px solid #000;
}

.sign_container canvas {
	border:2px solid #333;
	width:100%;
}
.sign_container label {
	width:auto;
}

.report_download_container {
	font-size: 20px;
	font-weight: 500;
	padding: .3em 1em;
	line-height: 1.7em;
	text-transform: uppercase;
	border: 1px solid #2EA3F2;
	display: inline-block;
}

.hidden {
	display:none !important;
}

.modal_container {
	position:fixed;
	left:0px;
	top:0px;
	z-index:1000;
	width:100%;
	height:100%;
	background-color:rgba(0,0,0,0.6);  
	
	opacity:0.0;

	 /* transition: opacity 0.5s;
	transition-timing-function: ease-in;*/
}
.modal_container .modal_content {
	position:absolute;
	width:33%;
	min-width:320px;
	left:50%;
	top:50%;
	transform:translate(-50%, -50%);

	background-color:#fff;
	color: #333;

	padding:60px;
}
.modal_container .modal_content .modal_text {
	margin-bottom:30px;
	text-align:center;
}
.modal_container .modal_content .modal_actions {
	display:flex;
	justify-content: space-between;
}
.modal_container .modal_content .modal_actions input[type="button"] {
	position:inline-block;      
}

.modal_container.success {
	background-color:rgba(16, 112, 45, 0.6);  
}
.modal_container.success .modal_content,
.modal_container.error .modal_content,
.modal_container.warning .modal_content {
	padding-top: 150px;
	background-image:url('../design/success.png');
	background-repeat: no-repeat;
	background-position: center 40px;
}
.modal_container.success input.cancel {
	background-color: var(--green);
}

.modal_container.error {
	background-color:rgba(148, 24, 24, 0.6);        
}
.modal_container.error .modal_content {
	color:rgb(148, 24, 24);
	background-image:url('../design/error.png');
}
.modal_container.warning {
	background-color:rgba(167, 92, 7, 0.6);  
}
.modal_container.warning .modal_content {
	color:rgba(167, 92, 7); 
	background-image:url('../design/warning.png');
}
.modal_container .modal_content .modal_text form, 
.modal_container .modal_content .modal_text form input {
	width:100%;
}

.dummy {
	display:none;
}
.clear {
	clear:both;
}

.group {
	border-top:2px solid #000;
	border-bottom:2px solid #000;
	padding:10px;
	margin-bottom:20px;

	background-color:#ccc;
}
.group .group {
	background-color:#eee;
	margin-left:5px;
	margin-right:5px;
	border:1px solid #000;
}

.extended_form>div {
	position:relative;
}
.extended_form>div input[class$="_delete_icon"] {
	position:absolute;
	top:0px;
	right:10px;
}

.img_preview_container {
	width:160px;
	height:160px;
	line-height: 160px;
	position:relative;
	display:inline-block;
	margin:15px;
	margin-left: 0px;
	margin-top: 0px;

	background-color:#ccc;
	border:3px solid var(--sky_blue);
	overflow:hidden;
}
.img_preview_container img {
	width:100%;
	height:auto;
	vertical-align: middle;
}
.img_preview_container .delete_img_btn {
	position:absolute;
	top:0px;
	right:0px;
	width:40px;
	height:40px;
	background-color:var(--red);
	color:#fff;
	font-weight:bold;
	border:1px solid #000;
	text-align:center;
	line-height:40px;
	font-size:40px;
	cursor:pointer;
	user-select:none;
}
.img_preview_container .delete_img_btn:hover {
	background-color:#ad4848;
}

a.download {
	color: #2EA3F2;
	padding-left: 24px;
	background-image:url('../design/download.png');
	background-repeat: no-repeat;
	background-position: left center;
}

.close_btn {
	border:3px solid #000;
	border-radius: 50%;
	width:30px;
	height:30px;

	background-color:#fff;
	color:#000;
	cursor:pointer;
	transition: all 0.3s;

	position:absolute;
	top:10px;
	right:10px;
}
.close_btn::after {
	content:'x';
	font-family:Verdana, Geneva, Tahoma, sans-serif;
	font-size: 24px;
	font-weight:bold;
	
	width:30px;
	line-height:24px;
	height:30px;
	text-align:center;
	display:inline-block;
}
.close_btn:hover {
	color:var(--orange);
	border-color:var(--orange);
	
}
.div_nav {
	width: calc(100% - 40px);
}
.div_nav h3 {
	display:inline-block;
	border:1px solid var(--orange);
	padding:10px;
	margin-right:5px;
	margin-bottom:10px;
	cursor:pointer;
}
.div_nav h3:hover, .div_nav h3.selected {
	background-color: var(--orange);
	color:#fff;
}
.div_nav h3.selected {
	border-bottom:1px solid var(--red);
}

.div_nav_content {
	background-color:#fff;
}

.attachment {
	text-align: right;
}
.attachment a.link {
	white-space: nowrap; /* Prevent text wrapping */
	overflow: hidden; /* Hide overflow */
	text-overflow: ellipsis; /* Add ellipsis (...) */

	width: calc(100% - 100px);
	height:25px;
	line-height: 25px;
	display: inline-block;
	vertical-align: middle;
}

.delete_icon, .info_icon, .view_icon {
	width:25px;
	height:25px;
	cursor:pointer;
	vertical-align: middle;
	transition: all 0.5s;
	display:inline-block;
	opacity:0.7;

	margin-top:5px;
	margin-bottom:5px;

	background-position: center;
	background-repeat: no-repeat;
}
.delete_icon:hover, .info_icon:hover, .view_icon:hover {
	opacity:1.0;
}

.delete_icon {      
	background-image: url('../design/delete.png');      
}
.delete_icon:hover {
	background-color: #ed5f5f;	
}

.info_icon {
	background-image: url('../design/info-25.png');
}
.info_icon:hover {
	background-color: #12113F;
}

.view_icon {
	background: url('../design/view.png');
}
.view_icon:hover {
	background-color: var(--sky_blue);
}

/***********************************************************************************************************/
/* PAGE SPECIFIC */

/* CONNECT */
section#connect {
	background-color: #12113F;
}
section#connect form#form_connect{
	background-color: transparent;
}

section#connect #login_step {
	display: flex;
	justify-content: center;
}
section#connect #login_step_svgs {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}
section#connect #login_step_svgs svg {
	fill: white;
	color:white;
	height: 33px;
	margin-bottom: 23px;
	margin-right: 14px;
}
section#connect #login_step_inputs {
	width: 50%;
}
section#connect #login_step_inputs label {
	/*
	margin-top: 8px;
	margin-left: 15px;
	position: absolute;
	color: var(--sky_blue);
	*/
	display:none;
}
section#connect #login_step_inputs input::placeholder {
	color: var(--sky_blue);
	opacity:1.0;
	text-transform: uppercase;
	font-size:16px;
}

section#connect #secured_code_msg {
	color: white;
	text-align: center;
	font-size: 17px;
}

/* HOME */
section#scoreboard {
	z-index:3;

	padding: 20px;
	margin-top: 92px;
	background-color: #12113F;
}
section#scoreboard #map {
	width:auto;
	height:500px;
	margin-bottom:20px;
}

section#scoreboard #step_details_container,
section#scoreboard #global_recap_container {
	font-weight:normal;
	font-size: 12px;
	position:relative;
	/*margin-bottom:20px;*/
}

section#scoreboard #step_details td,
section#scoreboard #step_equipments td,
section#scoreboard #global_recap td {
	padding:5px;
}
section#scoreboard #step_equipments thead td {
	font-weight:bold;
}
section#scoreboard #step_details td:nth-child(1)::after,
section#scoreboard #global_recap td:nth-child(1)::after {
	content:':';
	padding-left:5px;
}
section#scoreboard #step_details td:nth-child(2),
section#scoreboard #global_recap td:nth-child(2) {
	font-weight:bold;
	text-transform: uppercase;
}
section#scoreboard #step_details_container #step_internal_notices {
	border: 1px solid #999;
	min-height: 50px;
	max-height: 256px;
	overflow: auto;
	color: #333;
	padding: 10px;
	font-weight:bold;
}

/* step details status cell */
section#scoreboard #step_details.submitted tr.status td.value {
	color:var(--blue);
}
section#scoreboard #step_details.canceled tr.status td.value {
	color:var(--gray);
}
section#scoreboard #step_details.started tr.status td.value {
	color:var(--orange);/*var(--red);*/
}
section#scoreboard #step_details.todo tr.status td.value {
	/*color:var(--red);*/
}
section#scoreboard #step_details.reported tr.status td.value {
	color:var(--green);
}
section#scoreboard #step_details.planned tr.status td.value {
	color:#282828;
}

/* displayed step details cells */
section#scoreboard #step_details tr.update {
	display:none;
}
section#scoreboard #step_details_container:not(.planned):not(.todo):not(.started):not(.unplanned) tr.update {
	display:table-row;
}
section#scoreboard #step_details_container tr.deadline {
	display:none;
}
section#scoreboard #step_details_container.started tr.deadline,
section#scoreboard #step_details_container.planned tr.deadline,
section#scoreboard #step_details_container.todo tr.deadline {
	display:table-row;
}
section#scoreboard #step_details_container tr.report {
	display:none;
}
section#scoreboard #step_details_container.reported tr.report {
	display:table-row;
}

/* filter */
section#scoreboard form.filter {
	float:none;
	padding:10px;
}
section#scoreboard .filter label {
	width:auto;
}
section#scoreboard .filter select {
	margin-bottom:5px;
}
section#scoreboard .filter label {
	padding:5px;
}
section#scoreboard .filter label.date {
	width:24%;
}
section#scoreboard .filter input[type="date"] {      
	width:66%;
	margin:0px;
}
section#scoreboard .filter .checkboxes {
	padding:0px;
}
section#scoreboard .filter h3 {
	margin:0px;
}

/* INTERVENTIONS */
#intervention_equipment_connections td.ports_id input {
	padding:4px;
	margin-bottom:8px;
}
#intervention_equipment_connections tr.sfp_port {
	background-color: #2EA3F2;
}

#interventions_edit input.snapshot {
	display:none;
}
#interventions_edit input.snapshot_btn {      
	background-image:url('../design/camera-icon-32-32.png');
	background-repeat: no-repeat;
	background-position: center center;
	padding:5px;
	width:42px;
	color:rgba(0, 0, 0, 0);
}
#interventions_edit .sub_form.pictures label {
	width:calc(50% - 45px);
}

#interventions_edit .attachment div {
	margin-left:20px;
}

/* WAVES */
#waves tr[data-distance] td[data-colname="view"] {
	background-image:url('../design/view.png');
	background-repeat: no-repeat;
	background-size: 25px auto;
	background-position: center;
	width:25px;

	cursor: pointer;
} 
#waves tr[data-distance="0.000"] td[data-colname="view"] {
	background:none;
	width:0px;
	cursor:auto;
} 

section#waves_edit #client_addresses_map {
	width: 66.66%;
	height:500px;
	margin-bottom:20px;
}
section#waves_edit tbody td[data-colname="locate"] {
	min-width: 27px;
	min-height:27px;
	background-image:url('../design/locate.png');
	background-repeat: no-repeat;
	background-position: center;
	cursor:pointer;
}

section#waves_edit #wave_costs {
	margin-bottom:20px;
	color: var(--orange);
}
section#waves_edit #wave_costs>div {
	display:inline-block;
	font-weight:normal;
	font-size:20px;
}
section#waves_edit #wave_costs #wave_costs_label {
	text-transform: uppercase;      
}
section#waves_edit #wave_costs #wave_costs_amount {
	font-weight:bold;
}
section#waves_edit #wave_costs #wave_costs_last_update {
	font-size:10px;
}

/***********************************************************************************************************/
/* USER SPECIFIC */

/* admin */
#app:not(.user_domain_admin) .admin_inputs {
	display:none;
}
#app:not(.user_domain_admin) #wave_costs {
	display:none;
}

/* validator */
.user_domain_validator .add_btn {
	display:none;
}
.user_domain_validator td[data-colname="delete"] {
	display:none !important;
}
.user_domain_validator .import_export_container {
	display:none;
}

/* technician */
#app.user_domain_technician #audit_form .generate_report_container {
	display:none;
}

/* client */
#app.user_domain_client #inventory>input {
	display:none !important;
}
#app.user_domain_client #inventory table td[data-colname="select"],
#app.user_domain_client #inventory table td[data-colname="delete"] {
	display:none !important;
}
#app.user_domain_client #inventory tbody td[data-colname="edit"] {
	background: url('../design/view.png');
	background-repeat: no-repeat;
	background-position: center;
}
#app.user_domain_client #inventory img.edit_img {
	opacity:0;
}

#app.user_domain_client #autocomplete_inventory_filter_client {
	display:none !important;
}
#app.user_domain_client #inventory_edit select {
	display:none !important;
}
#app.user_domain_client #inventory_edit input[type="text"] {
	position:relative !important;
	width:100% !important;
}
#app.user_domain_client #inventory_edit input[type="button"] {
	display:none !important;
}
#app.user_domain_client #inventory_edit input[name*="client"],
#app.user_domain_client #inventory_edit label[for*="client"] {
	display:none !important;
}

#app.user_domain_client #inventory_filter_client_address option[value="Unknown"],
#app.user_domain_client #inventory_filter_client_address option[value="SYS Telecoms"] {
	display:none;
}