
.family-ride-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.50);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.family-ride-modal.hidden {
    display: none;
}

.family-ride-dialog {
    background: white;
    width: min(500px,100%);
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(15,23,42,.25);
}

.family-ride-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.family-ride-header strong {
    font-size: 19px;
}

.family-ride-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.family-ride-person:last-child {
    border-bottom: 0;
}

.family-ride-person-name {
    font-weight: 600;
    color: #1f2937;
}

.family-ride-person-level {
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

.family-ride-person button {
    width: auto;
    white-space: nowrap;
}

@media (max-width:600px) {
    .family-ride-modal {
        align-items: flex-end;
        padding: 0;
    }

    .family-ride-dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        padding: 18px;
    }
}


/* ===== CORRECTION DISTANCE RANDONNEE TERMINEE ===== */

#completedRideDistanceForm .referent-distance-input {
    position: relative;
    display: block;
    overflow: hidden;
    background: #151515;
    border: 1px solid #3a3a3a;
    border-radius: 9px;
}

#completedRideDistanceForm .referent-distance-input input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 52px 11px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #151515;
    color: #fff;
    box-shadow: none !important;
}

/* Unité km */
#completedRideDistanceForm .referent-distance-input > span {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

/* Retire les flèches des input number */
#completedRideDistanceForm input[type="number"]::-webkit-inner-spin-button,
#completedRideDistanceForm input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#completedRideDistanceForm input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Distance actuelle : visuellement non modifiable */
#completedRideDistanceForm input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 700px) {
    #completedRideDistanceForm .referent-edit-grid {
        grid-template-columns: 1fr;
    }
}

