.edit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-h1-input {
    font-size: 1.0rem;
    font-weight: 700;
    width: 100%;
    padding: 0.1rem 0.2rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.tables {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: sans-serif;
    padding-bottom: 25px;
}

.table-name {
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.progress {
    display: flex;
    gap: 4px;
}

.step {
    position: relative;
    flex: 1;
    height: 20px;
    border: 1px solid #555;
    background-color: #eee;
    overflow: hidden;
    border-radius: 3px;
}

.step.current {
    background-color: lightgreen;
}

.step.future {
    background-color: lightgrey;
}

/* Étapes complètement terminées */
.step.filled {
    background-color: #4caf50;
}

/* Étape courante partiellement remplie */
.step.current::after {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--percent, 0%);
    background-color: #4caf50;
}

.progress {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* bouton + et corbeille */
.btn-step {
    flex: 0 0 auto;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    color: #fff;
}

.btn-step.add-step {
    background: #0d6efd;
}

.btn-step.del-step {
    background: red;
}

.btn-step.delete-step {
    background: transparent;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

/* on met la petite corbeille dans le coin droit de la dernière étape */

.step .trash {
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 10px;
    cursor: pointer;
}

.percent-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    font-size: 14px;
}

.percent-menu div {
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.percent-menu div:hover {
    background: #eef;
}

