    
/*modal Formulaire*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    background: rgba(0,0,0,0.5);
    border: none;
    box-shadow: 0em 0em 0.2em 0.2em #888;
}

/* window */
.modal-content {
    position: absolute;
    top: 7%;
    left: 12.5%;
    border: none;
    box-shadow: 0em 0em 0.2em 0.2em #888;

    width: 90%;
    max-width: 400px;

     background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0em 0em 0.2em 0.2em #888;

    transform: scale(0.99);   /* 🔥 équivalent zoom 67% */
    transform-origin: top left;

    transition: all 0.2s ease;
}

/* header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    color: white;

    cursor: move;
}

.modal-header:active {
    cursor: grabbing;
}

/* actions */
.modal-actions span {
    cursor: pointer;
    float: left;
    height: 1.8em;
    width: 2em;
    margin: 0em 0em 0em 0.2em;
    cursor: pointer;
    background: none;
    padding: 0em 0em 0.3em 0em;
    border-radius: 0.1em;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    color: #fff;
}

/* body */
.modal-body {
    padding: 15px;
}



.search {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: #fcfcfc;
    flex-wrap: wrap;
    justify-content: space-between;
    
}

.search input[type="text"],
.search input[type="date"] {
    width: 25%;
    padding: 8px 10px;
    /*border: 1px solid #ccc;*/
    background: #eee;
    border-radius: 6px;
    outline: none;
    font-size: 0.9em;
}

.search input[type="text"]:focus,
.search input[type="date"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 3px rgba(74, 144, 226, 0.5);
}


/* responsive */
@media(max-width:600px){
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* maximize */
.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* minimized */
.minimized .modal-body {
    display: none;
}

.minimized {
    height: 50px !important;
    overflow: hidden;
}
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    z-index: 99999;
}

.task-item {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.task-item:hover {
    background: #555;
}

.btn{
    background: #eee;
    padding: 5px;
    color: #2c3e50;
    font-size: 1.6em;
    cursor: pointer;
}


/* 📱 Responsive mobile */

/* ================= CUSTOM SELECT ================= */

.custom-select {
    position: relative;
    width:100%;
    user-select:none;
    font-family:Arial, sans-serif;
}


/* texte avant clic */
.select-selected{

    background:#f5f5f5;

    padding:10px;

    border:1px solid #ccc;

    border-radius:6px;

    cursor:pointer;

    width:100%;

    box-sizing:border-box;

    transition:.2s;

}


.select-selected:hover{

    background:#e9e9e9;

}



/* filtre qui remplace le texte */

.select-search{

    display:none; /* caché au départ */

    background:#f5f5f5;

    padding:10px;

    border:1px solid #3498db;

    border-radius:6px;

    outline:none;

    width:100%;

    box-sizing:border-box;

}



/* dropdown */

.select-items{

    position:absolute;

    top:100%;

    left:0;

    right:0;


    background:white;


    border:1px solid #ccc;


    max-height:180px;

    overflow-y:auto;


    z-index:999;


    display:none;


    box-shadow:
    0 6px 15px rgba(0,0,0,.1);


    border-radius:0 0 6px 6px;

}



/* ouverture */

.select-items.visible{

    display:block;

}



/* options */

.select-items div{

    padding:10px;

    cursor:pointer;

    transition:.2s;

}



.select-items div:hover{

    background:#3498db;

    color:white;

}



/* option choisie */

.province-option.selected{

    background:#2c3e50;

    color:white;

}
