/***** facture *****/
#creation_ligne_manuelle {
	.modal-dialog {
		width: 50%;
	}
	.row {
		textarea#designation_ligne {
			float: left;
			width: 80% !important;
		}
		p {
			padding-top: 8px;
			font-weight: bold;
		}
	}
	label[for="designation_ligne"] {
		width: 19% !important;
	}
}
.half_dialog {
	width: 50%;
}
#form_commande_regularisation {
	.resultat {
		left: -20px;
		position: relative;
	}
}
#form_non_facturable {
	input {
		left: -20px;
		position: relative;
	}
	label {
		width: 92%;
	}
}
#zedoc {
	position: relative;
	width: 100%;
	padding: 20px 20px 5% 15px;
	margin-bottom: 15px;
	iframe {
		width: 100%;
		min-height: 900px;
	}
}
#reglement {
	table {
		td {
			&:last-child {
				padding: 6px !important;
			}
		}
	}
}


/************* FACTURES ***************/

// .detail_ligne .colonne2:nth-child(2n):not(.last){margin-right:1%;}


/****** Gestion des factures *********/

#gestion-facture {
	form {
		.filtre {
			width: 33%;
		}
		.filtre.last {
			width: 17%;
		}
		.filtreBtn {
			width: 100%;
			position: relative;
			display: inline-block;
		}
	}
	.bg_form {
		.principal {
			margin-right: 2%;
		}
	}
	.ss_parametres {
		width: 450px;
	}
	.ss_parametres_top {
		width: 450px;
	}
	.infos_tooltip.top {
		left: 0px;
	}
}
.ss_params {
	width: 450px;
}
#commandes {
	.infos_tooltip.top {
		left: 0px;
	}
}

.informations_facture {padding:10px;}

.lignes_supplementaires {
	background-color:#dbdbdb;
	text-align:center;
	display: block;
	width: 100%;
	margin: 0;
}

.existCde {
	background-image: url(../IconeV2/Misc/existCde.png);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 15px;
    height: 15px;
    display: inline-block;
	margin-right:1px;
	}

.lignes_supplementaires span.voir_plus {
	background-image: url(../IconeV2/Misc/voir_ligne.png);
    background-repeat: no-repeat;
    background-position: 100% 17px;
	text-align: center;
    color: var(--main-color-blue);
    display: inline-block;
    padding: 10px 15px 10px 10px;
    font-weight: bold;
	cursor:pointer;
	}
.fondLettre{
	color: white;
	margin-right: 1px;
	margin-bottom: 1px;
	width: 15px;
	display: inline-block;
	text-align: center;
}
.fondGris{
	background: grey;
}
.fondRouge{
	background: var(--error);
}
#gestion-facture .fondBleu{
	background: var(--main-color-blue);
}
.pj input {width:55%!important;}

.loupe_icon {
	background-image:url(../../IconeV2/Gestion/zoom.svg);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 14px;
    height: 14px;
	display: inline-block;
	margin-right:1px;
}	

.alert_ecart {
	background-image:url(../IconeV2/Gestion/Anomaly.svg);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 15px;
    height: 15px;
    display: inline-block;
	margin-right:1px;
	}
.pdf {
	background-image: url(../IconeV2/Misc/pdf.svg);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 15px;
    height: 15px;
    display: inline-block;
	margin-right:1px;
	
}
.pdf_blue {
	background-image: url(../IconeV2/Misc/pdf_blue.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size:cover;
	width: 15px;
	height: 15px;
	display: inline-block;
	margin-right:1px;

}
.alerte_orange {
	background-image: url(../IconeV2/Gestion/Incidental.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size:cover;
	width: 15px;
	height: 15px;
	display: inline-block;
	margin-right:1px;
	
	}
.pre_affectation {
	background-image: url(../IconeV2/Gestion/Validated-assignment-blue.svg);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 18px;
    height: 18px;
    display: inline-block;
	margin-right:1px;
}


.ecart_planning{
	background-image:url(../IconeV2/Gestion/Planning-modify.svg);
    background-repeat: no-repeat;
    background-position: center center;
	background-size:cover;
    width: 15px;
    height: 15px;
    display: inline-block;
	margin-right:1px;
}
.ligne1 {
	display: flex;
}
.calendrier {
		background-image: url(../IconeV2/Global/deadline-change.svg);
		background-repeat: no-repeat;
		background-position: center center;
		background-size:cover;
		width: 15px;
		height: 15px;
		display: inline-block;
		margin-right:1px;
		}
.statut.transferer {
	background-image: url(../IconeV2/Misc/LAD_Tr_Vali.png);
	width: 20px;
	height: 23px;
	background-position: center bottom;
	background-repeat: no-repeat;
	display: inline-block;
	top: 2px;
}
.statut.enErreur {
	background-image: url(../IconeV2/Misc/LAD_Tr_error.png);
	width: 20px;
	height: 23px;
	background-position: center bottom;
	background-repeat: no-repeat;
	display: inline-block;
	top: 2px;
}
#incidents .btn_modifier, #marche .btn_modifier{
	background-repeat: no-repeat;
	background-position: center center;
	background-image:url(../IconeV2/Global/edition-white.svg);
	width: 50%;
    height: 50%;
    margin-bottom: 5px!important;
  	padding: 12px!important;
  	margin-left : 10px !important
    }	
/********** Visualisation - Règlement **************/
#visualisation_facture {
	padding: 15px;
	.montant {
		.resultat {
			text-align: right;
			margin-right: 4%;
			width: 39% !important;
		}
	}
	table {
		tr {
			td {
				span.num_cde {
					width: 90%;
					display: inline-block;
				}
				span.num_br {
					width: 90%;
					display: inline-block;
				}
				.colonne2 {
					span.champs_label {
						width: 37%;
						display: inline-block;
					}
					span.resultat {
						width: 60%;
						font-weight: bold;
						display: inline-block;
					}
				}
			}
		}
	}
}
#reglement {
	padding: 15px;
	h2 {
		a {
			float: right;
			margin-right: 0px;
			margin-top: -10px;
			font-size: var(--fs-base);
		}
	}
	.informations {
		span.resultat {
			width: 85%;
		}
	}
	.parametrage {
		.ss_parametres {
			.ss_params {
				top: 33px;
				right: 6px;
			}
		}
	}
}
.detail_commande {
	table {
		thead {
			tr {
				background-color: #eee !important;
				color: var(--main-color-full);
			}
		}
	}
}
.detail_ligne {
	table {
		thead {
			tr {
				background-color: #eee !important;
				color: var(--main-color-full);
			}
		}
	}
}

/********** Nouvelle Facture : Entête *********/
.bg_blanc {
	background-color: var(--color-bg-default);
}
.titre_partie {
	font-size: var(--fs-14);
	font-weight: bold;
	margin-bottom: 20px;
}

.infos_societe {
	border-top: 1px solid #ddd;
	padding: 15px;
}
.fournisseur {
	border-top: 1px solid #ddd;
	padding: 15px;
}
.reglement {
	border-top: 1px solid #ddd;
	padding: 15px;
}
.champs_supplementaires {
	border-top: 1px solid #ddd;
	padding: 15px;
	.switch {
		margin-left: 15%;
	}
}
.reglementBanque {
	border-top: 1px solid #ddd;
	padding: 15px;
	#compte {
		div {
			float: left;
			label {
				width: 95%;
			}
			input {
				width: 95%;
			}
		}
		div.last {
			label {
				width: 100%;
			}
			input {
				width: 100%;
			}
		}
	}
	#div_CODE_BANQ {
		width: 25%;
	}
	#div_CODE_GUIC {
		width: 25%;
	}
	#div_NUM_COMPT {
		width: 25%;
	}
	#div_CLE_RIB {
		width: 25%;
	}
	#ibanLabel {
		width: 100%;
		text-align: center;
		label {
			width: 100%;
			text-align: center;
		}
	}
	#iban {
		div {
			float: left;
		}
		#div_IBANPAYS {
			width: 13%;
			select {
				width: 92%;
			}
		}
		#div_IBANCLE {
			width: 12%;
			input {
				width: 88%;
			}
		}
		div.last {
			width: 75%;
			input {
				width: 100%;
			}
		}
	}
}
.champs_btn {
	border-top: 1px solid #ddd;
	padding: 15px;
	clear: both;
}
.rowBtnPj {
	border-top: 1px solid #ddd;
	padding: 15px;
}
.infos_create_projet {
	border-top: 1px solid #ddd;
	padding: 15px;
}
#modificationFacture {
	.infos_societe {
		border: none;
	}
}
.societe {
	width: 31%;
	display: inline-block;
	margin-right: 1%;
	vertical-align: middle;
	position: relative;
	vertical-align: top;
}
.num_enregistrement {
	width: 31%;
	display: inline-block;
	margin-right: 1%;
	vertical-align: middle;
	position: relative;
	vertical-align: top;
	label {
		width: 60%;
		padding-top: 10px;
	}
	input {
		width: 35%;
		display: inline-block;
		float: right;
	}
}
.libelle_societe {
	width: 31%;
	display: inline-block;
	margin-right: 1%;
	vertical-align: middle;
	position: relative;
	vertical-align: top;
}
.colonne3 {
	width: 31%;
	display: inline-block;
	margin-right: 1%;
	vertical-align: middle;
	position: relative;
	vertical-align: top;
}
#attestations {
	.colonne3 {
		vertical-align: top;
	}
}
#lignes_ao {
	.colonne3 {
		vertical-align: top;
	}
}
#factures {
	#entete {
		.reglement {
			.colonne3 {
				vertical-align: top;
			}
		}
		#txDevise {
			position: relative;
			.span_devise_change {
				padding: 11px 12px;
			}
		}
		#txDeviseSTE {
			margin-top: 10px;
			margin-bottom: 0px;
			width: 60%;
			input {
				width: 100%;
			}
			.span_devise_change {
				padding: 6px 12px;
			}
		}
	}
}
#imageFacture {
	button {
		width: 20px;
		height: 20px;
	}
}


/********************* FACTURES - Choix des commandes **************/

#filtre_commandes {
	.button_right {
		margin: 2% 1% 0px 0px;
	}
}
.filtre_commande {
	width: 35%;
	display: inline-block;
	vertical-align: top;
	padding: 1%;
	border-right: 1px solid #ddd;
	&:nth-child(2) {
		width: 55%;
		.champs {
			width: 32%;
			display: inline-block;
			max-height: 30px;
			width: 32%;
			display: inline-block;
			max-height: 30px;
			label {
				width: 45%;
			}
		}
		.champs.margin10 {
			margin-top: 10px;
		}
	}
	.champs {
		width: 22%;
		display: inline-block;
		position: relative;
		margin-right: 1%;
		label {
			width: 29%;
			display: block;
			float: left;
			vertical-align: middle;
			padding: 9px 0px;
			margin-bottom: 0px;
		}
		input {
			width: 55%;
			display: inline-block;
			float: right;
		}
		select {
			width: 55%;
			display: inline-block;
			float: right;
		}
	}
	.champs.crea_debut {
		width: 56%;
	}
	.champs.crea_fin {
		margin-right: 0px;
		width: 40%;
	}
}
.filtre_commande.last {
	width: 20%;
	border-right: none;
}
.crea_debut {
	label {
		width: 45% !important;
	}
}
.crea_fin {
	label {
		width: 20% !important;
	}
	input {
		width: 75% !important;
	}
}
.tblEclatementLigne .ligne1:first-child {
	width: auto !important;
  }
#choix_avoir {
	.filtre_commande {
		&:nth-child(2) {
			.champs {
				width: 49%;
				display: inline-block;
				max-height: 30px;
			}
		}
		width: 45%;
	}
}
#choix_commandes {
	#divOngletsEtBoutons {
		position: relative;
		#divBoutons {
			text-align: right;
			top: 0px;
			position: absolute;
			width: 50%;
			right: 0px;
			top:-5px;
			a {
				margin-right: 1%;
			}
		}
	}
	#tableau_commandes {
		width: 100%;
		display: inline-block;
	}
	.affichageFicLAD#tableau_commandes {
		width: 75%;
		display: inline-block;
	}
	thead {
		tr {
			th {
				vertical-align: middle !important;
			}
		}
	}
	input[type="checkbox"] {
		float: left !important;
	}
	.parametrage {
		width: 40px;
		float: right;
	}
	.ss_parametres {
		right: 0px;
		top: 30px;
	}
	.apercu_facture {
		display: inline-block;
		vertical-align: top;
		float: right;
		width: 25%;
	}
	.alerte_orange {
		margin-top: 8px;
		margin-left: 8px;
	}
}
#utilisateurs-autorises {
	input[type="checkbox"] {
		float: none;
	}
}
#acquisition {
	.parametrage {
		width: 40px;
		float: right;
	}
	.ss_parametres {
		right: 0px;
		top: 30px;
	}
}
#accords-groupes {
	table {
		th {
			vertical-align: middle;
		}
	}
}
#affectations {
	.ss_parametres {
		.ss_params {
			right: 0px !important;
		}
	}
}
#signatures {
	.ss_parametres {
		right: 0px;
		top: 30px;
	}
}
#importation_facture {
	.apercu_facture {
		display: inline-block;
		vertical-align: top;
		float: right;
		width: 30%;
	}
}
#tableau_commandes {
	.champs_btn {
		.colonne2 {
			button {
				float: left;
			}
		}
		.colonne2.last {
			button {
				float: right;
			}
		}
	}
}
.detail_ligne {
	td {
		table {
			thead {
				tr {
					background-color: #eee !important;
					color: var(--main-color-full);
					font-weight: bold;
				}
			}
		}
	}
}
.background_detail {
	background-color: rgba(74, 85, 107, 0.06);
}
.detail_ligne_show {
	background-color: rgba(74, 85, 107, 0.06);
	border-color: currentcolor rgba(102, 175, 233, 0.9) rgba(102, 175, 233, 0.9);
	border-style: none solid solid;
	border-width: 0px 2px 2px;
	border-image: none 100% / 1 / 0 stretch;
	box-shadow: none;
}
.entete_ligne_show {
	border-color: rgba(102, 175, 233, 0.9) rgba(102, 175, 233, 0.9) currentcolor;
	border-style: solid solid none;
	border-width: 2px 2px 0px;
	border-image: none 100% / 1 / 0 stretch;
	box-shadow: none;
}

/********************* FACTURES - Affectations ********************/
.detail_affectations {
	vertical-align: middle;
	.row {
		display: inline-block;
		margin-right: 0px;
		float: right;
		background-color: var(--color-bg-default);
		padding: 5px;
		margin: 0px;
		width: 62%;
		.colonne3 {
			width: 30%;
			margin-right: 1%;
			label {
				padding: 0px;
			}
		}
		.colonne3.last {
			width: 37%;
			margin-right: 0%;
		}
		.ecart.colonne3 {
			label {
				width: 26% !important;
			}
		}
		span {
			border-radius: 2px;
			padding: 0px 5px;
			float: right;
		}
		span.montant {
			background-color: #ededed;
		}
		span.ecart {
			color: #fff;
			margin-left: 2px;
		}
		p {
			display: inline-block;
			width: 100%;
			margin: 0px;
			&:last-child {
				margin-bottom: 0px;
			}
		}
	}
	div.clearfix {
		width: 38%;
		float: left;
	}
	#btnTotaux {
		button {
			float: right;
			margin: 5px;
		}
	}
	>div {
		>button {
			margin-top: 5px;
			margin-right: 5px;
		}
		>a {
			>button {
				margin-top: 5px;
				margin-right: 5px;
			}
		}
		>button.ajout {
			background-position: 5% 11px !important;
		}
	}
}
.eclatementLigne {
	button.right {
		float: right;
		margin: 5px;
	}
	div.clearfix {
		width: 100%;
		float: left;
	}
	>td {
		padding: 0px !important;
		&:last-child {
			padding: 0px !important;
		}
	}
}
#affectations {
	table {
		.ligne1 {
			position: relative;
			input {
				height: 25px;
			}
		}
		.ligne2 {
			position: relative;
			input {
				height: 25px;
			}
		}
		.resultat {
			width: 45%;
			float: right;
		}
		tr {
			td {
				padding: 6px;
			}
		}
	}
	.notFull {
		width: 90% !important;
	}
	td[align="right"] {
		.ligne2 {
			input {
				text-align: right;
			}
		}
	}
	.parametre {
		background-position: 3px 6px;
	}
	.colonne3 {
		input {
			// width: 45% !important;
		}
		select {
			// width: 45% !important;
		}
		textarea {
			// width: 45% !important;
		}
	}
	#tableau_affectations {
		.resultat {
			width: 50%;
			float: right;
		}
		.openDetail {
			background-position: right 17px;
		}
		.alerte_orange {
			float: right;
			margin-right: -3px;
			margin-top: -15px;
		}
	}
	.apercu_facture {
		width: 21.50%;
		display: inline-block;
		vertical-align: top;
		float: right;
	}
	.parametre.ferme {
		background-position: 3px 5px;
	}
	.parametre.ouvert {
		background-position: 2px -36px;
	}
	.ss_parametres {
		right: 0px;
		top: 29px;
	}
}
.hide_detail {
	display: none;
}
.affichageFicLAD#tableau_affectations {
	float: left;
	width: 78.5%;
}
.tableau_affectations {
	input[type="checkbox"] {
		width: 100%;
		display: inline-block;
		height: 25px;
	}
}
tr.pre-affectation {
	color: var(--main-color-blue);
	input {
		color: var(--main-color-blue);
	}
}
table {
	tr {
		td.active {
			background-color: transparent !important;
		}
	}
}
#tableau_affectations {
	table {
		tr {
			td {
				.ligne1 {
					position: relative;
					margin-top: 7px !important;
					display: inline-block;
					width: 100%;
					vertical-align: top !important;
					input {
						margin-top: -5px;
						font-size: var(--fs-base);
						height: 25px;
						padding: 3px 5px 3px 5px;
						width: 100%;
						margin-top: -8px;
					}
					.glyphicon-search {
						top: -2px;
						right: 10px;					  
					}
					input.left {
						text-align: left;
					}
				}
				.ligne2 {
					position: relative;
					margin-top: 7px !important;
					display: inline-block;
					width: 100%;
					vertical-align: top !important;
					input {
						margin-top: -5px;
						font-size: var(--fs-base);
						height: 25px;
						padding: 3px 5px 3px 5px;
						width: 100%;
					}
					.glyphicon-search {
						top: 2px;
						right: 10px;
					}
					input.left {
						text-align: left;
					}
				}
				vertical-align: top !important;
				.ligne1.non_modifiable {
					background-color: var(--color-bg-default);
					padding: 4px 6px 3px 5px !important;
					margin-top: 0px !important;
					width: 100% !important;
				}
			}
		}
		input.champs_recherche:not(.error) {
			padding: 3px 30px 3px 5px !important;
			vertical-align: top !important;
		}
	}
	.parametre {
		margin-top: -5px;
		width: 25px;
		height: 25px;
	}
	>table {
		>tbody {
			>tr {
				&:not(.detail_ligne) {
					>td {
						&:first-child {
							span.glyphicon-search {
								right: 25px;
							}
						}
					}
				}
			}
		}
	}
}
form {
	#tableau_affectations {
		.row {
			label.switchV2 {
				margin-left: 15%;
			}
		}
	}
}

/************ Eclatement ligne ****************/
#eclatement_ligne {
	table {
		.row {
			margin: 0px;
		}
		.align-center {
			img {
				margin-top: -10px;
			}
		}
	}
	.row {
		.colonne2 {
			input {
				float: right;
				width: 60%;
				display: inline-block;
			}
		}
	}
	td[colspan="10"] {
		padding-bottom: 10px !important;
	}
	form {
		.resultat {
			text-align: left !important;
			padding-top: 8px;
		}
		>.row {
			>textarea {
				width: 81%;
			}
			>label {
				width: 19%;
			}
		}
	}
}


/************ Choix validation Facture ****************/
#choix_validation {
	#rowToutValider {
		margin-bottom: 70px;
	}
	button.right {
		float: right;
		margin: 5px;
	}
}



/***** Acquisition des factures + Suppression image *****/
#importation_facture {
	#tableau_acquisition {
		width: 70%;
		display: inline-block;
	}
	.apercu_facture {
		width: 29%;
		display: inline-block;
		vertical-align: top;
	}
}
#factures_archivees {
	#tableau_factures_archivees {
		width: 70%;
		display: inline-block;
	}
	.apercu_facture {
		width: 29%;
		display: inline-block;
		vertical-align: top;
	}
}
#suppression_image_lad {
	#tableau_image_lad {
		width: 70%;
		display: inline-block;
	}
	.apercu_facture {
		width: 29%;
		display: inline-block;
		vertical-align: top;
	}
	.champs_label {
		width: 40%;
		margin-left: 0%;
		padding-top: 0px;
	}
}
#tableau_acquisition {
	.champs_label {
		width: 40%;
		margin-left: 0%;
		padding-top: 0px;
	}
	.resultat {
		width: 60%;
	}
}
#tableau_factures_archivees {
	.champs_label {
		width: 40%;
		margin-left: 0%;
		padding-top: 0px;
	}
	padding: 15px 0px;
	.resultat {
		width: 60%;
	}
}
#suivi_demandes {
	padding: 15px 0px;
}
#signatures {
	padding: 15px 0px;
}
#tableau_image_lad {
	padding: 15px 0px;
	.resultat {
		width: 60%;
	}
}


/********************* FACTURES - Listes **************/
#liste_entete_factures {
	.filtreBtn {
		width: 100%;
		position: relative;
		display: inline-block;
		button {
			margin-top: 5px;
		}
	}
}
#liste_lignes_factures {
	.filtreBtn {
		width: 100%;
		position: relative;
		display: inline-block;
		button {
			margin-top: 5px;
		}
	}
}
#liste-globale-evenements {
	.filtreBtn {
		width: 100%;
		position: relative;
		display: inline-block;
		button {
			margin-top: 5px;
		}
	}
}
#liste-evenements {
	.filtreBtn {
		width: 100%;
		position: relative;
		display: inline-block;
		button {
			margin-top: 5px;
		}
	}
}
.sec-label-tooltip {
	font-size: var(--fs-base);
	margin-top: .2em;
	min-width: 163px !important;
	padding: 2px !important;
}
.custom-fixed {
	top: 134px !important;
	z-index: 24 !important;
}
