body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background-color: #f0f0f0;
}

#exportPdfBtn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

#a4-page {
    width: 794px; /* Largeur d'un A4 en pixels (approx.) */
    height: 1123px; /* Hauteur d'un A4 en pixels (approx.) */
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#upper-half, #lower-half {
    flex: 1; /* Chaque moitié prend 50% de la hauteur */
    padding: 20px;
    box-sizing: border-box;
}

#upper-half {
    border-bottom: 1px solid #ccc; /* Pour séparer les deux moitiés */
}



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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}








        body, html {
           /* height: 100%;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            overflow: hidden;*/
            background-color: #f0f2f5;
        }
        .app-container {
            display: flex;
            height: 100%;
            position: relative;
        }
        .sidebar {
            width: 400px;
            padding: 20px;
            background: #ffffff;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            position: absolute;
            top: 0;
            height: 100%;
            z-index: 1000;
            overflow-y: auto;
            transition: transform 0.3s ease;
        }
        .sidebar.left {
            left: 0;
            transform: translateX(-100%);
        }
        .sidebar.left.active {
            transform: translateX(0);
        }
        .sidebar.right {
            right: 0;
            transform: translateX(100%);
        }
        .sidebar.right.active {
            transform: translateX(0);
        }
		
        
		
		
        #report-preview-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            max-width: 360px; /* Limite la largeur pour une meilleure visualisation */
        }
		
		table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        th, td {
            border: 1px solid #000;
            padding: 8px;
            text-align: left;
        }
        thead {
            background-color: #d1e2d4;
            text-align: center;
        }
        .header-title {
            font-size: 1.2em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
        }
        .header-info {
            font-weight: bold;
            text-align: center;
            padding: 5px;
            text-decoration: underline;
        }


		#map {
           /* flex-grow: 1;
            height: 100%;
            z-index: 1;*/
        }
        .toggle-btn {
            position: absolute;
            top: 20px;
            z-index: 1001;
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
        }
        .toggle-btn.left {
            left: 20px;
        }
        .toggle-btn.right {
            right: 20px;
        }
        .form-section {
            margin-bottom: 20px;
        }
        .inline-group {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        .checkbox-group, .radio-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .report-section {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 1001;
            background: #ffffff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        #map {
            /*width: 100%;
            height: 100%;*/
        }
        .custom-marker {
            /* Styles de base pour le marqueur, les couleurs et rotations sont dynamiques */
            width: 30px;
            height: 30px;
            border-radius: 50% 50% 50% 0;
            position: relative;
            border: 2px solid white;
            box-shadow: 0 0 5px rgba(0,0,0,0.5);
        }
        .custom-marker-circle {
            /* Styles pour le rond blanc à l'intérieur */
            position: absolute;
            top: 50%;
            left: 50%;
            width: 80%;
            height: 80%;
            background-color: white;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: black;
            font-size: 10px;
        }






/* Styles pour l'impression */
@media print {
    /* Cache tous les éléments de la page... */
    body * {
        visibility: hidden;
    }

    /* ...sauf le conteneur A4 et tout ce qu'il contient */
    #a4-page, #a4-page * {
        visibility: visible;
    }
    
    /* Positionne le conteneur en haut de la page imprimée */
    #a4-page {
        position: absolute;
        left: 0;
        top: 0;
        border: none;
        box-shadow: none;
		width: 100%;
		height: 100%;
    }
    
    /* S'assure que les marges et les paddings sont adaptés à l'impression */
    body {
        margin: 0;
        padding: 0;
    }
}