/* Éditeur de conditions CEDEF */

#cedef-condition-editor .cedef-group {
    margin-bottom: 4px;
}

#cedef-condition-editor .cedef-group .cedef-group {
    margin-left: 16px;
}

#cedef-condition-editor select,
#cedef-condition-editor input[type="text"] {
    vertical-align: middle;
}

#cedef-condition-editor .cedef-criterion-type {
    min-width: 220px;
}

#cedef-condition-editor .cedef-formation-select {
    min-width: 240px;
}

/* Table de résultats */
#cedef-test-results table {
    font-size: 12px;
}

#cedef-test-results td,
#cedef-test-results th {
    padding: 4px 8px;
}

/* ── Sélecteur d'étape ── */
.cedef-step-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f0fb;
    color: #00478d;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.cedef-step-tag--empty {
    background: #f0f0f1;
    color: #999;
    font-weight: 400;
    font-style: italic;
}
.cedef-step-picker-item {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.cedef-step-picker-item:hover {
    background: #e8f0fb;
    color: #00478d;
}

/* ── Arbre de critères (dialog de détail dans l'admin) ── */
.cedef-criteria-group {
    margin-bottom: 4px;
}
.cedef-criteria-group--nested {
    margin-left: 16px;
}
.cedef-criteria-group__header {
    margin: 8px 0 4px;
    font-style: italic;
    color: #555;
}
.cedef-criteria-list {
    margin: 0 0 6px;
    padding-left: 20px;
}
.cedef-criteria-item {
    margin-bottom: 3px;
}
.cedef-criteria-item--pass {
    color: #006c49;
}
.cedef-criteria-item--fail {
    color: #950014;
}
