h3.iych-title {
    margin: 0px !important;
}

.iych-field {
    display: flex;
    flex-direction: column;
}

select#iych_event_id {
    width: fit-content;
}

form.iych-inscription-main-form {
    padding: 24px 0px !important;
}

.iych-is-hidden {
    display: none !important;
}

.iych-row, .iych-equipier-row {
    display: flex !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
    align-items: end;
}

button.iych-remove-equipier, button.iych-add-equipier {
    height: fit-content;
    font-size: 16px !important;
    text-align: center;
    font-weight: 600 !important;
}

button.iych-remove-equipier {
    background-color: #c52222 !important;
    border-color: #c52222 !important;;
    color: #F9F4EA !important;
}

button.iych-add-equipier {
    background-color: #2b7502 !important;
    border-color: #2b7502 !important;;
    color: #F9F4EA !important;
}

button.iych-remove-equipier:hover {
    background-color: #F9F4EA !important;
    border-color: #c52222 !important;;
    color: #c52222 !important;
}

button.iych-add-equipier:hover {
    background-color: #F9F4EA !important;
    border-color: #2b7502 !important;;
    color: #2b7502 !important;
}

select#iych_payment_status {
    max-width: fit-content !important;
}

/* Tags statut paiement (admin régates) */
.iych-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}

/* Payé = vert */
.iych-tag--paid {
    background-color: #E3F8E6; /* vert très clair */
    color: #176C2F;            /* vert foncé */
}

/* En attente = bleu / violet doux (tu peux ajuster la teinte) */
.iych-tag--pending {
    background-color: #E4F0FF; /* bleu très clair */
    color: #1F4F8A;            /* bleu foncé */
}

/* Annulé / remboursé / échoué = rouge */
.iych-tag--cancelled {
    background-color: #FDE2E2; /* rouge très clair */
    color: #B3261E;            /* rouge foncé */
}

/* Au cas où : statut inconnu */
.iych-tag--neutral {
    background-color: #F1F1F1;
    color: #444444;
}

a.iych-btn-inscription {
    background: #003178;
    border-radius: 50px;
    border-width: 2px;
    border-color: #003178;
    padding: 0px 20px;
    color: #FFB833;
    display: flex;
    align-items: center;
}

a.iych-btn-inscription:hover {
    background: #FFB833;
    border-color: #FFB833;
    color: #003178;
}

/* Type d'évènement */
.iych-tag--event-regatta {
    background: rgba(0, 123, 255, 0.2); /* bleu très léger */
    color: #00507a;
}

.iych-tag--event-training {
    background: rgba(217, 0, 255, 0.2); /* bleu très léger */
    color: #59007a;
}

.title_table {
    text-align: start;
}

.nom_bateau {
    text-transform  : uppercase;
}

input#iych_skipper_lastname, input#iych_skipper_firstname, input#iych_skipper_email, input#iych_skipper_tel {
    max-width: 100% !important;
}

span.iych-col, p.iych-col {
    width: 100% !important;
}

/* -------------------------------------------------- */
/*  UI/UX : message de succès + modal                 */
/* -------------------------------------------------- */
.iych-inline-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(43, 117, 2, 0.08);
    margin: 12px 0 18px;
}

.iych-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.iych-modal.is-open {
    display: block;
}

.iych-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65) !important;
}

.iych-modal__panel {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    margin: 24vh auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    padding: 0;
    overflow: hidden;
}

.iych-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.iych-modal__header h4 {
    margin: 0;
    font-size: 18px;
}

.iych-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.iych-modal__content {
    padding: 14px 16px;
}

.iych-modal__actions {
    padding: 0 16px 16px;
    display: flex;
    justify-content: flex-end;
}

/* -------------------------------------------------- */
/*  Tableau inscrits : scroll mobile (x + y)          */
/* -------------------------------------------------- */
.iych-inscriptions-table {
    min-width: 560px;
}

@media (max-width: 768px) {
    .iych-inscriptions-table thead th {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }

    .iych-inscriptions-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        border-collapse: collapse;
        }

}
p.description {
    margin-bottom: 0px !important;
}

.iych-col--full {
    width: 100% !important;
    flex: 1 1 100% !important;
}

.iych-accompagnant-row {
    display: flex !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
    align-items: end;
}

button.iych-remove-accompagnant, button.iych-add-accompagnant {
    height: fit-content;
    font-size: 16px !important;
    text-align: center;
    font-weight: 600 !important;
}

button.iych-remove-accompagnant {
    background-color: #c52222 !important;
    border-color: #c52222 !important;
    color: #F9F4EA !important;
}

button.iych-add-accompagnant {
    background-color: #2b7502 !important;
    border-color: #2b7502 !important;
    color: #F9F4EA !important;
}

button.iych-remove-accompagnant:hover {
    background-color: #F9F4EA !important;
    border-color: #c52222 !important;
    color: #c52222 !important;
}

button.iych-add-accompagnant:hover {
    background-color: #F9F4EA !important;
    border-color: #2b7502 !important;
    color: #2b7502 !important;
}

/* Sélecteur événement + inscription existante */
.iych-edit-selector select {
    width: 100%;
    max-width: 100%;
}

.iych-selector-row {
    align-items: flex-start !important;
}

.iych-alert {
    margin: 0 0 20px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
}

.iych-alert p:last-child {
    margin-bottom: 0 !important;
}

/* Actions groupées admin inscriptions */
.iych-admin-bulk-form .iych-inscriptions-bulk-actions {
    margin: 10px 0;
}

.iych-inscriptions-admin-table .check-column {
    width: 2.5em;
    text-align: center;
    vertical-align: top;
}

.iych-inscriptions-admin-table .check-column input[type="checkbox"] {
    margin-top: 2px;
}
