body{
	margin-left: 0px;
	margin-top: 25px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFF;
	font-family: Arial;
	font-size: 13px;
	color: #333;	
	background-image: url("./data/design/fond.webp");
    background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;	
	}
table {
  
  background-color: #f1f1c1;
}
td {
   display: table-cell;
    vertical-align: middle;
}

td.transparent{
    background-color: transparent;
}

.encadrement{
	border:4px white outset;
	border-radius: 10px;}	

#conteneurInput div
{
    background     : #def;
    position       : relative;
    border         : 1px solid #999;
    text-align     : center;
    float          : left;
}
 
#conteneurInput input
{
    background     : none;
    border         : 0;
    padding        : 0 6px;
    width          : 130px;
}
 
span.top-left
{
    position       : absolute;
    width          : 4px;
    height         : 4px;
    overflow       : hidden;
    top               : -1px;
    left           : -1px;
    background     : url("top-left.gif");
}
 
span.bottom-left
{
    position       : absolute;
    width          : 4px;
    height         : 4px;
    overflow       : hidden;
    bottom         : -1px;
    left           : -1px;
    background     : url("bottom-left.gif");
}
 
span.bottom-right
{
    position       : absolute;
    width          : 4px;
    height         : 4px;
    overflow       : hidden;
    bottom         : -1px;
    right          : -1px;
    background     : url("bottom-right.gif");
}
 
span.top-right
{
    position       : absolute;
    width          : 4px;
    height         : 4px;
    overflow       : hidden;
    top            : -1px;
    right          : -1px;
    background     : url("top-right.gif");
}
.monsieur{
	background-color:lightgray;
	color: blue;
	}
.madame{
	background-color: pink;
	color: red;
	}


.password + .unmask {
  position:absolute;
  right: 68px; top: 7px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
  background: #aaa;
  border-radius: 50%;
}
.password + .unmask:before {
  content: "";
  position:absolute;
  top:4px; left:4px;
  z-index:1;
  width: 17px;
  height: 17px;
  background: #e3e3e3;
  border-radius: 50%;
}
.password[type="text"] + .unmask:after {
  content: "";
  position:absolute;
  top:6px; left:6px
  z-index:2;
  width: 13px;
  height: 13px;
  background: #aaa;
  border-radius: 50%;
}

/* Adaptation automatique selon la présence de la colonne de droite */
.main-content {
    flex: 2; /* S'adapte tout seul */
}

/* Si tu veux que le genoso soit plus large en mode "page complète" */
body:has(.secondary-content:empty) .main-content {
    flex: 1; /* Il prend tout l'espace */
}
.genogram-canvas { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.gen-row { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #ccc; padding-bottom: 10px; }
.individu-card { border: 1px solid #999; padding: 5px; border-radius: 4px; }
.sang { background-color: #e3f2fd; } /* Bleu pour la famille */
.choix { background-color: #fff3e0; } /* Orange pour les conjoints */
.cockpit-container {
    width: 90%;
    margin: auto;
    font-family: Arial, sans-serif;
}

.encadrement {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    background-color: #fdf9e0;
}

.encadrement th, .encadrement td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.encadrement tr:nth-child(even) {
    background-color: #f8f8f8;
}

.encadrement tr:hover {
    background-color: #e6f2ff;
}

input[type="text"], input[type="date"], select, textarea {
    width: 90%;
    padding: 4px;
    font-size: 14px;
}

textarea {
    width: 100%;
    height: 60px;
}

button img {
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px #888;
    cursor: pointer;
}

.notes-area label {
    font-weight: bold;
}

/* --- Styles pour la modale de documents --- */

#docModal {
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Arrière-plan de la modale (le reste de la page) */
#docModal::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #e74c3c;
}

#modalBody {
    height: 75vh;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

/* Style pour les icônes de documents dans tes tables */
.doc-thumbnail {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: #3498db;
}