.n4v-inactive-dependency {
    opacity: 0.6;
    position: relative;
}

.n4v-inactive-dependency::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.01);
    pointer-events: none;
}

/*rouge pour le moment, faire un truc grisé*/
.n4v-inactive-dependency {
    border: 1px solid #ff6b6b !important;
    border-radius: 4px;
    padding: 2px;
}

.accordion-button {
    color: rgba(51,51,51) !important;
    font-size: 14px;
    font-weight: normal;
    padding-left: 2.5rem;
    padding-right: 1rem;
}
.accordion-button::after {
    position: absolute;
    left: 1rem;
    right: auto;
    transform: rotate(-90deg);
}
.accordion-button:not(.collapsed) {
    color: initial !important;
}

.accordion-button:focus {
    color: initial !important;
    border: 1px dashed #acacac !important;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(0deg); /* flèche vers le bas (état ouvert) */
}

.form-control {
    border: 1px solid rgba(191,191,191) !important;
    border-radius: 0 !important;
  }
  

  .accordion-body > [data-id] {
    margin-left: 16px;
}

.n4vset-block{
    margin: 2px 5px 5px 5px;
}

/* Appliquer un layout flex aux conteneurs de propriété */
.n4vset-block[data-id] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Aligner label + input/select/pickr sur une ligne avec le lock à droite */
.n4vset-block[data-id] > .form-label,
.n4vset-block[data-id] > .form-check,
.n4vset-block[data-id] > .btn-group,
.n4vset-block[data-id] > select,
.n4vset-block[data-id] > input[type="text"],
.n4vset-block[data-id] > input[type="number"],
.n4vset-block[data-id] > div[id] { /* pour Pickr */
    /*order: 1;*/
}

.n4vset-block[data-id] > small.form-text {
    order: 2;
    margin-top: 4px;
}


.n4vset-block[data-id] > .lock-toggle {    
    z-index: 1;
}

.n4vset-block-lib{
    display: flex;
    margin-right: 5px;
    min-width: 40%;
    align-items: center;
}

fieldset[data-id] legend {
    position: relative;
    display: flex;
    padding: 0px 0px 5px 0px;
}


.n4vset-block[data-id],
fieldset[data-id] {
    position: relative;
}

.pcr-result{
    flex: 1 1 15em !important;
}

.n4vset-block-font .n4vset-block[data-id$="_color"] > div {
    min-width: 1px;
    min-height: 1px;
}

.edit-mode-property .add-constraint,
.edit-mode-property .add-rule,
.edit-mode-property .remove-all {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.btn-xs {
    padding: 0.125rem 0.25rem !important;
    font-size: 0.675rem !important;
    border-radius: 0.15rem !important;
    line-height: 1 !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* styles split-mode */
.n4v-split-mode {
    height: 100%;
    display: flex;
}

.n4v-panel-header {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.n4v-edit-container, 
.n4v-preview-container {
    overflow-y: auto;
    height: calc(100% - 40px);
    width: 100%;
}

    .split-container {
      display: flex;
      height: 100vh;
      width: 100%;
    }

    .split-panel {
      overflow: auto;
      padding: 1rem;
    }

    /* Gouttière (séparateur) */
    .gutter {
      background-color: #dee2e6;
      cursor: col-resize;
    }

    .gutter:hover {
      background-color: #adb5bd;
    }