/*
    * Plugin Print
    * Propriétés de style
*/

/* Non affichage du btn d'accès au plugin en mode mobile */
.xs #printBtn {
	display: none;
}

/* 
* Propriétés de la modale 
*/

/* Modification de la taille de modale */

#printModal .modal-dialog {
    max-width: 80% !important;
}

#printModal .hide, #printModal .print .hide {
    display: none!important;
}

/* Structure de la modale */
.bodyFlex {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
}

/* 
* Propriétés globales des blocs 
*/

#blockViewImpress {
	border: 1px solid grey;
	padding: 15px;
}

#blockOptionsImpress {
    margin-right: 2em;
}

.print .print-panel-close {
	display: none;
}


.blockImpress {
	border: 1px solid #8080804f;
	background-color: #a9a9a912;
	resize: both;
	overflow: hidden;
	min-height: fit-content;
	max-width: 100%;
    max-height: 100%;
}

.blockImpress .badge {
	background-color: #d0d0d05c;
    color: #737373;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    padding: 2px;
    letter-spacing: .05rem;
    position: absolute;
    border-radius: 0;
    z-index: 1;
}

.blockImpress .text {
	height: 100%;
}

#print-title .text {
	font-size: x-large;
	font-weight: 700;
	padding: 20px 10px 0px;
}

.informations p {
    font-size: small;
    line-height: 1.2;
    margin-bottom: 5px;
}

#print-informations img {
	max-height: 50px;
}

#print-comments .text, #print-informations .informations {
	padding: 20px 10px 5px;
}

#mapBlock {
	width: 100%;
	height: 100%;
}

#mapPrint .ol-scale-line {
	left: 40px;
}

#northArrow-mapPrint {
	position: relative;
	bottom: 45px;
	left: 5px;
}

#northArrow-mapPrint img {
	width: 25px;
}

/* 
* printGridContainer
* Spécifications du gabarit initial
*/

#printGridContainer {
	position: relative;
}

/* Grille */
.containerBlockImpress {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(6, 1fr);
	gap: 10px;
	height: 100%;
	width: 100%;
}

#printGridContainer .legend {
	margin-top: 20px;
}

/* Propriété lors de l'impression PDF */

#printGridContainer.print {
	padding: 2px;
	border: none;
}

#printGridContainer.a4-landscape {
	width: 297mm;
	height: 210mm;
}

#printGridContainer.a4-portrait {
	width: 210mm;
	height: 297mm;
}

.print .badge {
	display: none;
}

.print .blockImpress {
	background-color: transparent;
}

.print .legend {
	margin-top:0px !important;
}

.print #print-qrcode, .print #print-legend, .print #print-title, .print #print-informations{
	border: none;

}

.print-option-checkbox {
	margin-right: 10px !important;
}

#blockOptionsImpress .panel {
	margin-top: 15%;
	margin-right: 20px;
}

.print-legend-img {
	margin: 5px;
	margin-bottom: 5px;
	background-color: white;
	padding: 5px;
}

.print-panel-close {
	position: absolute;
    right: 5px;
    z-index: 1;
    margin: 2px;
    opacity: .6;
    font-size: 0.7em;
}

#print-qrcode {
	background-color: white
}

.qrcode img {max-height: 6em;}

.qrcode.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}