x
/* =============================================================
   Cascade Project Manager – Plugin CSS
   Ce fichier CSS est entièrement encapsulé sous #cpm-workspace-container
   pour éviter les conflits avec d’autres styles WordPress.
   ============================================================= */

/* 1. Réinitialisation et règles de base */

#cpm-workspace-container,
#cpm-workspace-container html,
#cpm-workspace-container body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Info label – style d’étiquette d’origine */
.info_label {
    background-color: #fff1a4;
    padding: 4px;
    font-weight: bold;
    color: #9f9774;
    border-radius: 1em 0;
    text-transform: uppercase;
    font-size: 16px;
    padding: 0.3em;
    display: inline-block;
    margin: 0;

}

/* 2. Disposition générale du Workspace */
#cpm-workspace-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

#cpm-workspace-container .cpm_container {}

/* Définition explicite des titres */
#cpm-workspace-container h1 {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.75em;
}

#cpm-workspace-container h2 {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.7em;
}

#cpm-workspace-container h3 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.65em;
}

#cpm-workspace-container h4 {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.6em;
}

#cpm-workspace-container h5 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.55em;
}

#cpm-workspace-container h6 {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Colonne de gauche : Navigation & Flow d’exécution */
#cpm-workspace-container>#execution-flow-column {
    width: 18%;
    background: #fdfdfd;
    border-right: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Colonne de droite : Zone d’édition */
#cpm-workspace-container>#edition-interface-column {
    flex: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 3. Navigation – Colonne de Gauche */
#cpm-global-navigation {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
}

.cpm_header {
    display: flex;
    justify-content: space-between;
}

#cpm-workspace-container #cpm-global-navigation button {
    padding: 11px 5px;
}

#cpm-workspace-container button {
    font-size: 10px;
}

#cpm-global-navigation h3 {
    font-size: 14px;
    color: #0073aa;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Regrouper les boutons "Créer projet" et "Ajouter projet" côte à côte */
#project-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Projet Tree */
#project-tree {
    list-style: none;
    padding: 0;
    margin: 0 !important;
}

#project-tree ul {
    list-style-type: none;
    margin: 0;
    padding-left: 20px;
}

#project-tree li {
    cursor: pointer;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 12px;
}

#project-tree li:hover {
    background-color: #e0f2f7;
    color: #0073aa;
}

#project-tree li div {
    display: flex;
    align-items: center;
}

#project-tree li div:hover {
    background-color: #f0f0f0;
}

#project-tree li div span {
    margin-left: 10px;
    flex: 1;
    font-size: 12px !important;
}

/* 4. Flow d'exécution */
#cpm-execution-flow {
    list-style: none;
    padding: 0;
    margin: 0;
}

#cpm-execution-flow li {
    margin: 8px 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cpm-execution-flow li:hover {
    background-color: #e6f7ff;
    border-color: #0073aa;
}

/* 5. Contexte – Filtre, Pool d’Items, Conditions/Objectifs */
#cpm-context-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#cpm-context-bar>#left-panel,
#cpm-context-bar>#right-panel {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
}

#tabs-panel {
    display: flex;
}

#cpm-workspace-container #tab-content {
    background-color: #83a8ff1a;
    box-shadow: #ebf84dc4 -11px 3px 9px -11px;
}

#cpm-workspace-container #tabs-panel button {
    width: 100%;
    font-size: 19px;
    font-weight: 400;
}

#cpm-workspace-container #tabs-panel button:nth-child(1) {
    background-color: #b8ffa9;
}

#cpm-workspace-container #tabs-panel button:nth-child(3) {
    background-color: #dcf1f1;
}

#ressources-panel {}

/* Zone d'affichage des colonnes (injectées via JS) */
#cpm-workspace-area {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    width: 100%;
    box-shadow: inset #62f84d 8px 0px 10px -10px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.column-separator {
    width: 1px;
    background: #aaa;
    height: 100%;
}

.separator-label {
    font-size: 10px;
    margin-bottom: 2px;
    color: #555;
}


/* 6. Boutons généraux */
#cpm-workspace-container button {
    background-color: #ffeb9c;
    color: #333;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#cpm-workspace-container button:hover {
    background-color: #ffb007;
    transform: scale(1.05);
}

/* Bouton Terminer (complétion) */
#cpm-workspace-container #complete-button-current-process {
    margin-top: 10px;
    background: green;
    color: white;
    display: block;
    width: 100%;
    font-size: 16px;

}

/* 7. Fenêtre d’édition */
#cpm-workspace-edition {
    background: #f0f0f0;
    border: 1px solid #ccc;
    margin-top: 10px;
    padding: 10px;
    min-height: 150px;
}

/* 8. Header du projet */
#cpm-header {
    background: linear-gradient(135deg, #e6f0ff, #ffffff);
    border-bottom: 1px solid #ddd;
    flex-direction: row;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#cpm-header h3 {
    font-size: 14px;
    color: #0073aa;
    margin-bottom: 10px;
    font-weight: bold;
}

#cpm-header h4 {
    font-size: 12px;
    color: #555;
    margin: 0;
}

/* 9. Conteneurs internes */
.cpm_container {
    background: #fff;
}

.tab {
    display: inline;
    background-color: #555;
    padding: 8px;
    box-shadow: black 0px -1px 6px -4px;
    border-radius: 13px 14px 0px 0px;
    font-size: 16px;
}

#breadcrumb {}

#breadcrumb span {}

.cpm_sub_container {
    background: white;
    padding: 10px;
}

/* 10. Sections (infos, conditions, objectifs) */
#cpm-project-info,
#cpm-objectives,
#cpm-conditions,
#cpm-produits {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    width: 100%;
    display: none;
}

#cpm-project-info h2 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

#cpm-header h3 {
    font-size: 14px;
    color: #0073aa;
    margin-bottom: 10px;
}

#cpm-header h4 {
    font-size: 12px;
    color: #555;
    margin: 0;
}

/* 11. Pool d’Items */
#pool-items-panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
}

#cpm-pool-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.pool-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.pool-item h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.pool-item p {
    font-size: 12px;
    color: #777;
}

.pool-item:hover {
    background: #f5faff;
}

#cpm-add-item-btn {
    align-self: flex-start;
    background: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#cpm-add-item-btn:hover {
    background: #005b8f;
}

/* 12. Filtres et Tags */
#filter-controls {
    display: flex;
    align-items: left;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

#filter-buttons {}

#filter-buttons button {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    transition: background 0.3s ease;
}

#filter-buttons button:hover {
    background: #e0e0e0;
}

#pool-filter-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

#filter-tags {
    margin-top: 5px;
}

.filter-tag {
    display: inline-block;
    background: #8e98ff;
    color: #fff;
    padding: 3px 6px;
    margin: 3px 5px 0 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

#cpm-workspace-container .filter-tag button {
    background-color: #9ca3e7;
    border: none;
    margin-left: 3px;
    cursor: pointer;
}

/* 13. Colonnes de Process – Navigation horizontale */
.horizontal-column {
    padding: 10px;
    transition: opacity 0.5s ease;
}

.horizontal-column.child-column {
    border-left: 2px solid #ccc;
    padding-left: 10px;
}

/* 14. Vignettes Génériques pour Process et Items */
.vignette {
    width: 150px;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hover-add-sub {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: green;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: left 0.3s;
}

.vignette.process:hover .hover-add-sub {
    left: 0;
}

.vignette.selected {
    background-color: #e6ffe6;
    /* Vert très léger */
    transition: background-color 0.3s ease;
}

.vignette:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vignette .vignette-title {
    background: #f1f1f1;
    padding: 6px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.vignette .vignette-title:hover {
    cursor: pointer;
    background: #e6e6e6;
}

/* Champs de nombre dans vignette */
/* .vignette input[type="number"] {
    border: none;
    border-radius: 4px;
    padding: 5px;
    font-size: 12px;
    width: 68px;
} */

/* Bouton dans vignette */
.vignette .complete-button {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #62ff87;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.vignette .complete-button:hover {
    background-color: #218838;
}

/* 15. État visuel en cours / terminé sur vignette */
.vignette.process-completed {
    border-left: 5px solid rgb(104, 255, 104);
}

.vignette.process-in-progress {
    border-left: 5px solid #ffff8b;
}

/* Affichage de la barre d'actions au survol */
.vignette:hover .vignette-actions {
    display: flex;
    transition: all 0.3s ease;
}

/* Boutons d'action : agrandissement au survol */



/* Pour la vignette sélectionnée (déjà présent) : */
.vignette.selected {
    background-color: #e6ffe6;
    /* Vert très léger */
    transition: background-color 0.3s ease;
}


/* ============================
   Barre d'actions pour toutes les vignettes
   ============================ */

/* La barre d'actions est positionnée absolument en bas, cachée initialement par translation et opacité */
.vignette-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #ccc;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Lorsque l'on survole la vignette, la barre d'actions remonte et devient visible */
.vignette:hover .vignette-actions {
    transform: translateY(0);
    opacity: 1;
}

/* Regroupement à gauche pour "Ouvrir" et "Modifier" */
.vignette-actions .left-actions {
    display: flex;
    gap: 10px;
}

/* Boutons d'action sous forme d'icônes */
.vignette-actions button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    /* taille de l'icône */
    position: relative;
    transition: transform 0.2s ease;
}

/* Agrandissement de l'icône au survol */
.vignette-actions button:hover {
    transform: scale(1.2);
}

/* Affichage du tooltip sur le bouton via l'attribut data-tooltip */
.vignette-actions button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Afficher le texte (tooltip) lors du survol de l'icône */
.vignette-actions button:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Pour le bouton de suppression, on le place dans un conteneur à droite */
.vignette-actions .right-actions {
    display: flex;
    align-items: center;
}


#project-description {
    resize: none;
    pointer-events: none;
    height: 100px;
    width: 350px;

}

#pp-container {
    display: flex;
}

#pp-container div {
    display: inline;
    width: 80px;
}

/* Pour Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pour Firefox */

/* 
#pp-container input[type="number"]::-webkit-inner-spin-button,
#pp-container input[type="number"]::-webkit-outer-spin-button,
input[type=number] {
    -webkit-appearance: none;
    margin: 0;
    border: none;
    background: transparent;
    pointer-events: none;
    font-size: 16px;
    /* ajuste la taille selon tes besoins } */



/* 16. Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 800px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.modal.active {
    display: flex;
    flex-direction: column;
}

.modal.two-column .modal-content {
    display: flex;
    gap: 20px;
}

.modal.two-column .modal-content>div {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.modal .modal-content {
    width: 100%;
    overflow-y: auto;
}

.modal .close-modal,
.modal .close-slot-popup,
#close-library-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end;
}

/* Gérer l'apparition douce des boutons sans utiliser display:none */
.slot-buttons {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.colonne:hover .slot-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* 17. Library Modal */
#cpm-library-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

#cpm-library-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

/* 18. Modal "Créer un projet" en deux colonnes */
#project-modal.two-column .modal-content>.left-column {
    flex: 0 0 60%;
}

#project-modal.two-column .modal-content>.right-column {
    flex: 0 0 40%;
}

/* 19. Modal de slot */
#slot-popup-modal .modal-content {
    display: flex;
    gap: 20px;
}

#slot-popup-modal .modal-content>div {
    flex: 1;
    padding: 20px;
}

/* 20. Formulaires dans les modales */
.modal form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal form input[type="text"],
.modal form input[type="number"],
.modal form textarea,
.modal form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal form button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #fff1a4;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal form button:hover {
    background-color: #ffb007;
    transform: scale(1.05);
}

/* 21. Modal de modification (edit-modal) */
#edit-modal {
    display: none;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* 22. Workspace Cards (pour ajouter un plan) */
.workspace-card {
    width: 220px;
    height: 150px;
    border: 2px dashed #0073aa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f8ff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.workspace-card:hover {
    background: #e6f7ff;
}

/* 23. Responsive – Adaptation pour petits écrans */
@media (max-width: 768px) {
    #cpm-workspace-container {
        flex-direction: column;
    }

    #execution-flow-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    #edition-interface-column {
        margin-left: 0;
    }

    #left-panel,
    #right-panel {
        width: 100%;
    }
}

/* 24. Forçage des titres dans le plugin */
#cpm-workspace-container h1,
#cpm-workspace-container h2,
#cpm-workspace-container h3,
#cpm-workspace-container h4 {
    color: #333;
}

/* --------------------
     Quelques classes utilitaires
----------------------- */
.hidden {
    display: none;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* Bouton pour masquer la navigation */
#toggle-navigation {
    position: absolute;
    top: -40px;
    left: 5%;
    z-index: 1000;
}

/* Pour la bordure gauche de la zone Produits */
.produit-border {
    border-left: 1px solid #ccc;
}

/* =============================================================
     Fin du fichier CSS du Cascade Project Manager
============================================================= */
/* =============================================================
   Début de la section personnalisée pour la barre d'actions des vignettes
============================================================= */
/* CONTAINER DES COLONNES */
/* CONTENEUR DES COLONNES : affichage en ligne avec défilement horizontal */
/* CONTENEUR DES COLONNES : affichage en ligne avec défilement horizontal */
/* CONTENEUR DES COLONNES */
.cpm-columns-container {
    overflow-x: auto;
    padding: 10px;
}

/* CHAQUE COLONNE D'ÉTAPE */
.step-column {
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-right: 10px;
    border-left: 1px solid #aaa;
    padding-top: 40px;
    /* espace pour le header */
}

/* Ligne de démarcation avec label d'étape */
.step-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #aaa;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 0;
}

/* Conteneur des vignettes dans une étape */
.step-content {
    margin-top: 10px;
}

/* Wrapper pour la vignette process */
.process-vignette-wrapper {
    display: inline-flex;
    width: 180px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin: 5px;
    transition: box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.process-vignette-wrapper:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.process-vignette-wrapper.selected {
    border-color: #4caf50;
}

/* Bouton vertical pour ajouter un sous-process */
.subprocess-button {
    width: 0;
    background: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: width 0.3s ease;
    overflow: hidden;
}

.process-vignette-wrapper:hover .subprocess-button {
    width: 30px;
}

.subprocess-button:hover {
    background-color: #62ff87;
}

/* Contenu principal de la vignette process */
.process-content {
    flex: 1;
    padding: 10px;
}

/* Barre de progression */
.progress-container {
    width: 100%;
    height: 8px;
    background: #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

/* Titre et description de la process vignette */
.process-title {
    margin: 0;
    font-size: 16px;
    color: #000;
}

.process-description {
    font-size: 12px;
    color: #555;
}

/* Zone d'actions (ouvrir et supprimer) – positionnées en bas à droite, cachées par défaut */
.process-actions {
    position: absolute;
    display: flex;
    bottom: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-vignette-wrapper:hover .process-actions {
    opacity: 1;
}

.action-open,
.action-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.action-open:hover,
.action-delete:hover {
    transform: scale(1.1);
}

/* Pour les autres types de vignette (slot, objet) : laissez vos styles initiaux */
.vignette {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    display: inline-block;
    vertical-align: top;
    margin: 5px;
}

.vignette:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.vignette.selected {
    border-color: #4caf50;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation pour le volet droit qui s’ouvre */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-right.slide-in {
    animation: slideInFromRight 0.5s ease forwards;
}

/* Ajustements pour la modale slot */
#slot-popup-modal {
    display: none;
    /* sera activé en JS */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#slot-popup-modal.active {
    display: flex;
}

.modal-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Volet gauche – vignette fusionnée */
.modal-left {
    width: 30%;
    padding: 10px;
    border-right: 1px solid #ccc;
}

.slot-vignette-merged {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    background: #fefefe;
    cursor: pointer;
}

.slot-vignette-merged .slot-name-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.slot-vignette-merged .slot-content-preview {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Volet droit – onglets */
.modal-right {
    width: 40%;
    padding: 10px;
    border-right: 1px solid #ccc;
    display: none;
    /* affiché avec JS */
}

.modal-right.active {
    display: block;
}

.right-header {
    font-size: 18px;
    margin-bottom: 10px;
}

.tabs {
    margin-bottom: 10px;
}

#slot-modal-right .tab-btn {

    border: none;
    background: #eee;
    border-radius: 0;
    cursor: pointer;
}

#slot-modal-right .tab-btn.active {
    background: #ddd;
    font-weight: bold;
}

#slot-popup-modal .item-vignette {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    background: #fefefe;
    cursor: pointer;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Volet éditeur enrichi */
.modal-editor {
    width: 30%;
    padding: 10px;
    background: #f9f9f9;
    display: none;
    /* s'affiche au clic sur "Ajouter un item" */
}

.editor-header {
    font-size: 18px;
    margin-bottom: 10px;
}

.editor-content textarea {
    width: 100%;
    height: 200px;
    padding: 5px;
    font-size: 14px;
    resize: vertical;
}

.editor-item-modes {
    margin-top: 10px;
    font-size: 12px;
    color: #444;
}

.editor-item-modes label {
    margin-right: 5px;
}

.editor-actions {
    margin-top: 10px;
}

.btn-green {
    background: green;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-blue {
    background: blue;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Pour assurer un affichage centré de la modale */
.modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

#selected-slot-name {
    background-color: #f9f9f9;
    padding: 6px 11px;
    text-transform: capitalize;
}

/* Largeurs des colonnes dans la modale */
.modal-container {
    display: flex;
}

.modal-left {
    width: 25%;
}

.modal-editor {
    width: 140%;
}

.modal-right {
    width: 100%;
    height: 500px;
    overflow-y: scroll;
}

/* Animation pour le volet éditeur (slide-in from right) */
@keyframes slideInEditor {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-editor.slide-in {
    animation: slideInEditor 0.5s ease forwards;
}

/* Barre d’outils de l’éditeur avancé */
.ate-toolbar {
    background: #f2f2f2;
    border: 1px solid #ccc;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Boutons de la barre d’outils – remplacez le texte par des icônes (ici en Unicode ou en HTML) */
.ate-btn {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s, border-color 0.2s;
}

.ate-btn:hover {
    background: #e6e6e6;
    border-color: #888;
}

/* Exemple d'icônes dans la barre d'outils :
     Bold: 𝗕, Italic: 𝑰, Underline: U̲, Strike: S̶, etc. */
.ate-btn[data-command="bold"] {
    font-weight: bold;
}

.ate-btn[data-command="italic"] {
    font-style: italic;
}

.ate-btn[data-command="underline"] {
    text-decoration: underline;
}

.ate-btn[data-command="strikeThrough"] {
    text-decoration: line-through;
}

/* Zone éditable de l'éditeur avancé */
.ate-editor {
    border: 1px solid #ccc;
    min-height: 250px;
    padding: 10px;
    margin-top: 5px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
}

.ate-editor:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

/* Mode HTML source */
.ate-html-view {
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 13px;
    padding: 10px;
    margin-top: 5px;
    resize: vertical;
}


#slot-popup-modal .item-vignette.validated {
    background-color: #d4f7d4;
    border: 1px solid #8bc78b;
    position: relative;
}

#slot-popup-modal .badge.validated-badge {
    background: #8bc78b;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    right: 5px;
}

#slot-popup-modal .item-vignette .item-name {

    background-color: white;
    display: inline;
    padding: 10px;
    border-radius: 25px;
    font-weight: bold;

}

.filter_button_container_process {}

.filter_button_container_types {
    margin-left: 19px;
    border-left: 3px solid #b5b0a069;
    padding-left: 18px;
}


.filter_button_container_types #filter-btn-type-all {
    background-color: white;
}

.filter_button_container_types #filter-btn-type-savoir {
    background-color: #dcf0ff;
}


.filter_button_container_types #filter-btn-type-materiel {

    background-color: rgb(253, 247, 240);
}

#workspace-name {
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 23px;
    color: #958d7b;
}

.vignette-description {
    text-align: center;
}

.slot-entry-vignette,
.validated-material-vignette {
    display: inline-block;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin: 0 5px;
    min-width: 100px;
    text-align: center;
}

.validated-arrow {
    font-size: 20px;
    vertical-align: middle;
    margin: 0 5px;
}

#validated-item-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.validated-indicator {
    font-size: 0.9em;
    color: #333;
}

.plan_button_container {
    display: flex;
}

#cpm-execution-flow {
    background: linear-gradient(270deg, #f5f5f5, #e0e0e0);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 100px;
    /* pour donner une hauteur minimale */
}

/* Conteneur global du flux d'exécution */
#cpm-execution-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 550px;
    overflow-y: scroll;
}

/* Partie supérieure : process en cours */
#current-process-label {
    /* height: 30px; */
    background-color: #fafafa;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-weight: bold;
}

/* Partie centrale : zone du flux d'exécution */

#execution-flow-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* ou une hauteur fixe souhaitée */
}

#current-process-label {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    /* arrière-plan opaque pour garantir la lisibilité */
    padding: 10px;
    /* On autorise la hauteur à s’ajuster */
    height: auto;
    min-height: 40px;
    /* optionnel, pour garantir un minimum */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* légère ombre pour le distinguer */
}


#execution-route {
    position: relative;
    padding: 20px 10px;
    min-height: 100%;
    /* max-height: 544.8px; hauteur maximale */
    overflow-y: auto;
    background: linear-gradient(270deg, #f5f5f5, #e0e0e0);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animation de fond */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Style des vignettes du flux d'exécution */
.execution-flow-item {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 5px;
    font-size: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}


.execution-flow-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Le connecteur entre les vignettes */
.execution-flow-connector {
    width: 4px;
    background: #4caf50;
    flex-grow: 1;
    margin: 0 auto;
}

/* Partie inférieure : zone de contrôle */
#execution-controls {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    /* padding: 10px; */
    height: auto;
    min-height: 40px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#execution-controls #current-process-progress-bar {
    height: 7px;
    background-color: #e6e6e6;
    padding: 0;
    margin: 0;
}

#execution-controls #current-process-title {
    text-align: center;
}

#execution-controls #controls-inputs {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;


}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Exemple : les vignettes dans l'historique */
#execution-history .execution-history-item {
    background: #f5f5f5;
    /* fond légèrement gris */
    padding: 8px;
    margin: 5px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

/* Le bouton de réouverture dans l'historique */
#execution-history .reverse-button {
    cursor: pointer;
    border: none;
    background: #ccc;
    font-size: 1em;
}

/* Vous pouvez ajouter des hover effects */
#execution-history .reverse-button:hover {
    background: #bbb;
}

.execution-flow-dropzone {
    height: 40px;
    background-color: #4caf50;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 4px;
}

.execution-flow-dropzone.drag-over {
    background-color: #81c784;
    transform: scaleY(1.5);
}


.execution-flow-item.root-process {
    border: 2px solid #4caf50;
}

.execution-flow-item.current-process {
    border: 2px solid #388e3c;
}

#execution-route {
    position: relative;
}

#execution-route::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgb(0, 77, 128);
    z-index: 1;
}

#delete-zone {

    bottom: 10px;
    right: 10px;
    height: 80px;
    border: 2px dashed #ffacac;
    border-radius: 10px;
    text-align: center;
    line-height: 80px;
    font-size: 2em;
    z-index: 1000;
}