/* Onglets : styles communs .kmg-profile-tabs / .kmg-profile-tab dans front.css. */
[data-kmg-club-panel][hidden]{display:none!important}

.kmg-schedule-toolbar{display:flex;justify-content:flex-end;margin-bottom:16px}
.kmg-schedule-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kmg-schedule-day-card{border:1px solid #d8e0ea;border-radius:9px;padding:14px;min-height:80px}
.kmg-schedule-day-card h3{margin:0 0 10px;font-size:16px}
.kmg-schedule-no-courses{color:#8794a8;font-size:13px;margin:0}
.kmg-schedule-no-courses[hidden]{display:none}
.kmg-schedule-hidden-source{display:none}
.kmg-schedule-day-items .kmg-compact-item{margin:8px 0}
.kmg-club-instructors-card h3{font-size:16px;margin:22px 0 12px}
.kmg-club-instructors-card .kmg-card-head p{margin:6px 0 0;color:#7a8392}
.kmg-club-count{display:inline-block;background:#f2f3f5;border-radius:100px;padding:4px 9px;font-size:12px}
.kmg-club-empty-state{border:1px dashed #dce2ea;background:#f8f9fa;padding:20px;text-align:center;border-radius:10px;color:#8993a3}
.kmg-club-instructor-row{display:flex;align-items:center;gap:12px;border:1px solid #e1e5eb;border-radius:10px;padding:12px;margin-bottom:8px}
.kmg-club-instructor-actions,.kmg-club-instructor-role{margin-left:auto}
@media(max-width:650px){.kmg-schedule-week-grid{grid-template-columns:1fr}}

/* Quatre onglets : disposition de référence validée */
[data-kmg-club-panel="lieu"] .kmg-card,[data-kmg-club-panel="discipline"] .kmg-card,[data-kmg-club-panel="instructeur"] .kmg-card{background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 2px 14px rgba(20,30,45,.055);border:0}
[data-kmg-club-panel="lieu"] .kmg-card-head,[data-kmg-club-panel="discipline"] .kmg-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 24px;border-bottom:1px solid #e4e7eb;min-height:75px}
[data-kmg-club-panel="lieu"] .kmg-card-title,[data-kmg-club-panel="discipline"] .kmg-card-title{font-size:17px;font-weight:700;margin:0}
[data-kmg-club-panel="lieu"] .kmg-card-body,[data-kmg-club-panel="discipline"] .kmg-card-body{padding:25px 24px 30px;min-height:110px}
[data-kmg-club-panel="lieu"] .kmg-card-body>p,[data-kmg-club-panel="discipline"] .kmg-card-body>p{font-size:14px;margin:0 0 12px;color:#687486}
[data-kmg-club-panel="lieu"] .kmg-card-head .kmg-club-btn,[data-kmg-club-panel="discipline"] .kmg-card-head .kmg-club-btn,.kmg-schedule-toolbar .kmg-club-btn{border:2px solid #ed9200;border-radius:30px;background:white;color:#e98a00;font-weight:700;padding:7px 19px;white-space:nowrap}
[data-kmg-club-panel="planning"] .kmg-schedule-card{background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(20, 30, 45, .055);
    border: 0;}
[data-kmg-club-panel="planning"] .kmg-schedule-card>.kmg-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e4e7eb;flex-wrap:wrap}
[data-kmg-club-panel="planning"] .kmg-schedule-card>.kmg-card-body{padding:0}
.kmg-schedule-toolbar{margin:0 0 16px;justify-content:flex-end}
.kmg-schedule-week-grid{gap:12px}
.kmg-schedule-day-card{min-height:80px;padding:13px 14px;border:1px solid #d6dfeb;border-radius:8px;background:#fff}
.kmg-schedule-day-card h3{font-size:16px;font-weight:700;margin:0 0 12px}
[data-kmg-club-panel="instructeur"] .kmg-card-head{padding:20px 24px 18px;border-bottom:1px solid #e2e6eb}
[data-kmg-club-panel="instructeur"] .kmg-card-body{padding:4px 24px 28px}
[data-kmg-club-panel="instructeur"] .kmg-club-empty-state{padding:20px;border-radius:9px}
[data-kmg-info-submit][hidden]{display:none!important}
.kmg-inline-error{color:#b42318;font-size:13px;margin:9px 0}
@media(max-width:600px){[data-kmg-club-panel="lieu"] .kmg-card-head,[data-kmg-club-panel="discipline"] .kmg-card-head{padding:15px;flex-wrap:wrap}.kmg-schedule-week-grid{grid-template-columns:1fr}}

#kmg-schedule-hint{display:none;margin-top:10px}

/* Notices directement sous les onglets, sans doublon de style. */
.kmg-club-notices{margin:0 0 16px}
.kmg-club-notices:empty{display:none}
.kmg-club-hero-left{gap:8px 18px}

.kmg-discipline-color-swatch{display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-2px;margin-left:5px;border:1px solid rgba(0,0,0,.08)}

/* Planning : style fidèle aux cartes de référence, sans ombre sur les jours. */
[data-kmg-club-panel="planning"] .kmg-schedule-day-card h3{ text-shadow:none!important;filter:none!important; }
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-title{border-left:4px solid #e18c08;padding-left:9px;line-height:1.55;font-weight:400;}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-detail{padding-left:13px;line-height:1.6;}
.kmg-schedule-place-pin{display:inline-block;margin-right:6px;color:#e18c08;font-size:17px;font-weight:700;vertical-align:-1px;}

/* Titres du planning : aucune ombre ni effet de contour. */
.kmg-schedule-week-grid .kmg-schedule-day-card > h3, .kmg-schedule-week-grid .kmg-schedule-day-card h3 {text-shadow:none!important;filter:none!important;-webkit-text-stroke:0!important;}
.kmg-schedule-place-pin{display:inline-block;font-size:13px;line-height:1;vertical-align:baseline;margin-right:3px;}

/* Affichage hebdomadaire : titres sans ombre, discipline sur sa propre ligne. */
[data-kmg-club-panel="planning"] .kmg-schedule-week-grid .kmg-schedule-day-card > h3 {text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important;box-shadow:none!important;font-family:inherit!important;font-weight:700!important;letter-spacing:normal!important;}
[data-kmg-club-panel="planning"] .kmg-schedule-day-card > h3::before,[data-kmg-club-panel="planning"] .kmg-schedule-day-card > h3::after{text-shadow:none!important;filter:none!important;}
.kmg-schedule-day-items .kmg-schedule-hours{display:block;font-size:13px;font-weight:400;line-height:1.5;}
.kmg-schedule-day-items .kmg-schedule-discipline{display:block;font-size:15px;font-weight:600;line-height:1.5;margin-top:3px;}
.kmg-schedule-day-items .kmg-schedule-place-pin{display:inline-flex;align-items:center;justify-content:center;color:#e58a00;vertical-align:-2px;margin-right:5px;font-size:0;}
.kmg-schedule-day-items .kmg-schedule-place-pin svg{display:block;width:13px;height:13px;fill:currentColor;}

/* Planning : une seule disposition pour les cours chargés et ajoutés en AJAX. */
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-item{
 display:grid;grid-template-columns:minmax(0,1fr) 82px;
 grid-template-rows:auto auto;column-gap:10px;row-gap:6px;
 align-items:center;position:relative;padding:12px 10px 12px 24px;
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-item::before{
 content:"";position:absolute;left:11px;top:10px;bottom:10px;width:4px;
 border-radius:2px;background:var(--kmg-course-color,#e18c08);
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-summary{
 grid-column:1;grid-row:1 / 3;min-width:0;
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-title{
 border-left:0!important;padding-left:0;min-width:0;
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-detail{
 padding-left:0;min-width:0;
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-edit,
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-delete{
 grid-column:2;width:82px;max-width:100%;margin:0;
 justify-self:stretch;text-align:center;padding:7px 4px;
}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-edit{grid-row:1}
[data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-delete{grid-row:2}
@media(max-width:520px){
 [data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-item{grid-template-columns:minmax(0,1fr) 76px}
 [data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-summary{flex-basis:auto}
 [data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-edit,
 [data-kmg-club-panel="planning"] .kmg-schedule-day-items .kmg-compact-delete{width:76px}
}

/* Instructeurs : photo officielle, identité et actions lisibles. */
.kmg-club-instructors-card .kmg-club-instructor-row{min-height:76px;gap:14px;padding:12px 15px;background:#fff;transition:border-color .15s ease}
.kmg-club-instructors-card .kmg-club-instructor-row:hover{border-color:#cbd4df}
.kmg-club-instructors-card .kmg-club-instructor-photo{width:52px;height:52px;min-width:52px;object-fit:cover;object-position:center top;border-radius:9px;background:#f2f3f5;display:block}
.kmg-club-instructors-card .kmg-club-instructor-identity{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.kmg-club-instructors-card .kmg-club-instructor-identity strong{font-weight:600;color:#253041}
.kmg-club-instructors-card .kmg-club-instructor-identity small{font-size:12px;color:#8390a1}
.kmg-club-instructors-card .kmg-club-instructor-role{margin-left:auto;background:#fbf5ec;color:#b86c00;padding:7px 12px;border-radius:30px;font-size:12px;white-space:nowrap}
.kmg-club-instructors-card .kmg-club-instructor-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.kmg-club-instructors-card .kmg-club-instructor-actions .kmg-club-btn{font-size:12px;padding:7px 12px}
.kmg-club-withdrawal-status{font-size:13px;color:#9a6a16}
@media(max-width:600px){.kmg-club-instructors-card .kmg-club-instructor-row{flex-wrap:wrap}.kmg-club-instructors-card .kmg-club-instructor-actions{width:100%;margin-left:0}}

/* Retrait direct d'un instructeur : action secondaire, sans modifier les badges. */
.kmg-club-instructors-card .kmg-club-instructor-remove{border:1px solid #dc3545;border-radius:22px;background:#fff;color:#c92b3b;padding:7px 13px;font-size:12px;cursor:pointer;white-space:nowrap}
.kmg-club-instructors-card .kmg-club-instructor-remove:hover{background:#fff3f4}
.kmg-club-instructors-card .kmg-club-instructor-remove:focus-visible{outline:2px solid #c92b3b;outline-offset:2px}

/* Onglet instructeur : deux cartes compactes, une seule ligne par carte. */
.kmg-club-instructors-card .kmg-club-instructor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-row{min-width:0;min-height:78px;margin:0;display:flex;flex-wrap:nowrap;gap:10px;padding:12px;border:1px solid #dfe5ec;border-radius:11px}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-photo{width:48px;height:48px;min-width:48px;flex:0 0 48px}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-identity{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-identity strong{font-size:13px;line-height:1.35}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-role{flex:0 0 auto;margin-left:auto}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-actions{flex:0 0 auto;margin-left:auto;display:flex;flex-direction:column;align-items:stretch;gap:5px}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-actions .kmg-club-btn{padding:5px 9px;font-size:11px}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-remove{flex:0 0 auto;margin-left:auto;border:1px solid #d43b47;border-radius:24px;background:#fff;color:#c92b3b;font-size:12px;font-weight:600;padding:7px 12px;cursor:pointer;white-space:nowrap}
.kmg-club-instructors-card .kmg-club-instructor-grid .kmg-club-instructor-remove:hover{background:#fff1f2}
@media(max-width:780px){.kmg-club-instructors-card .kmg-club-instructor-grid{grid-template-columns:1fr}}

/* Suppression définitive depuis Mes clubs dirigés. */
.kmg-clubs-actions form{margin:0;display:inline-flex}
.kmg-clubs-actions .kmg-club-delete-button{border:1px solid #c73535!important;color:#b42323!important;background:#fff!important}
.kmg-clubs-actions .kmg-club-delete-button:hover{background:#fff2f2!important}

/* Cartes de suivi des validations dans Mon compte */
.kmg-validation-card{display:flex;align-items:center;gap:14px;border:1px solid #e1e5ea;border-radius:10px;background:#fff;padding:14px 16px;margin:12px 0 18px}
.kmg-validation-card-image{width:68px;height:68px;object-fit:contain;flex:0 0 68px;border-radius:6px}
.kmg-validation-card-content{min-width:0;flex:1;font-size:13px;line-height:1.45;color:#263142}
.kmg-validation-card-content>strong{display:block;font-size:13px;font-weight:600;color:#c16b00}
.kmg-validation-card-content p{margin:4px 0;color:#536071}
.kmg-validation-card-status{display:block;margin-top:7px;color:#a45b00}
.kmg-validation-card-remove{flex-shrink:0;white-space:nowrap}
@media(max-width:620px){.kmg-validation-card{flex-wrap:wrap}.kmg-validation-card-remove{margin-left:auto}}
/* La notice profil n'apparaît que sur l'onglet Profil. */
.kmg-profile-tabs:has([data-kmg-tab]:not([data-kmg-tab="profil"]).is-active) + .kmg-profile-notices .kmg-validation-card[data-kmg-validation-tab="profil"]{display:none}

/* Planning Mon compte : en-tête partagé avec les autres onglets. */
[data-kmg-club-panel="planning"] .kmg-schedule-card>.kmg-card-head .kmg-card-title{margin:0}
[data-kmg-club-panel="planning"] .kmg-schedule-card>.kmg-card-head .kmg-club-btn{border:2px solid #ed9200;border-radius:30px;background:#fff;color:#e98a00;font-weight:700;padding:7px 19px;white-space:nowrap}
[data-kmg-club-panel="planning"] .kmg-schedule-card>.kmg-card-body{padding:16px}



/* Mon compte : l'en-tête du planning doit rester visible comme celui des disciplines.
   Règle limitée au panneau front-end, sans incidence sur l'administration. */
[data-kmg-club-panel="planning"] #kmg-schedule-card > .kmg-card-head {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 75px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 24px;
    border-bottom: 1px solid #e4e7eb;
}
[data-kmg-club-panel="planning"] #kmg-schedule-card > .kmg-card-head > .kmg-card-title,
[data-kmg-club-panel="planning"] #kmg-schedule-card > .kmg-card-head > #kmg-schedule-add {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
