.ms-results-app{width:100%;font-family:Arial,Helvetica,sans-serif;color:#293b48}.ms-results-app *{box-sizing:border-box}.ms-upload-screen{max-width:750px;margin:40px auto;padding:45px 25px;text-align:center;background:#f7f7f7;border:1px solid #dedede;border-radius:15px}.ms-upload-screen h1{margin:0 0 15px;font-size:32px}.ms-upload-screen p{color:#65717a;margin-bottom:30px}.ms-upload-button{display:inline-block;padding:15px 28px;background:#ADCF78;color:#fff;border-radius:8px;cursor:pointer;font-weight:bold}.ms-upload-button input{display:none}.ms-file-name{margin-top:20px;color:#65717a;font-size:14px}.ms-container{max-width:1450px;margin:auto;padding:30px 15px}.ms-header{text-align:center;margin-bottom:30px}.ms-header h1{margin:0;font-size:34px}.ms-header p{margin:10px 0 0;color:#687582;font-size:17px}.ms-summary{display:grid;grid-template-columns:repeat(6,1fr);gap:15px;margin-bottom:30px}.ms-card{padding:20px 10px;text-align:center;border:1px solid #ddd;border-radius:12px;background:#f7f7f7}.ms-card-value{font-size:28px;font-weight:bold;color:#ADCF78;margin-bottom:8px}.ms-card-label{color:#596670;font-size:14px}.ms-main-tabs{display:flex;gap:8px;overflow-x:auto;border-bottom:2px solid #ddd;margin-bottom:25px;padding-bottom:2px}.ms-main-tab{border:none;background:#f1f3f4;color:#44515c;padding:13px 20px;border-radius:10px 10px 0 0;cursor:pointer;white-space:nowrap;font-weight:bold}.ms-main-tab.active{background:#ADCF78;color:#fff}.ms-panel{display:none}.ms-panel.active{display:block}.ms-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:12px;margin-bottom:20px}.ms-filters input,.ms-filters select{width:100%;padding:12px;border:1px solid #d4d8db;border-radius:8px;background:#fff}.ms-table-wrap{overflow-x:auto;border:1px solid #e0e0e0;border-radius:10px}.ms-table{width:100%;min-width:900px;border-collapse:collapse}.ms-table th{background:#ADCF78;color:#fff;padding:13px 10px;text-align:left;white-space:nowrap}.ms-table td{padding:12px 10px;border-bottom:1px solid #ececec}.ms-table tr:hover{background:#f6f8f7}.ms-position{font-weight:bold;color:#ADCF78}.ms-time{font-weight:bold;white-space:nowrap}.ms-status{display:inline-block;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:bold}.ms-finished{background:#dff3e8;color:#5F7D35}.ms-not-finished{background:#ffe4e4;color:#b23a3a}.ms-btn{border:none;padding:8px 12px;border-radius:7px;cursor:pointer;background:#ADCF78;color:#fff;font-size:13px}.ms-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.ms-podium-card{border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.ms-podium-title{padding:14px 16px;background:#ADCF78;color:#fff;font-weight:bold;font-size:16px}
.ms-podium-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:13px 14px;border-bottom:1px solid #eee}
.ms-podium-row:last-child{border-bottom:none}
.ms-medal{font-size:25px;text-align:center}
.ms-podium-name{font-weight:bold}
.ms-podium-meta{font-size:12px;color:#687582;margin-top:3px}
.ms-podium-time{font-weight:bold;color:#ADCF78;white-space:nowrap}.ms-category-card{border:1px solid #ddd;border-radius:12px;overflow:hidden}.ms-category-title{padding:13px;background:#ADCF78;color:#fff;font-weight:bold}.ms-category-row{display:flex;gap:10px;padding:10px 12px;border-bottom:1px solid #eee}.ms-category-pos{width:35px;color:#ADCF78;font-weight:bold}.ms-club-controls{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.ms-toggle{padding:10px 15px;border:1px solid #ccc;border-radius:7px;background:#f5f5f5;cursor:pointer}.ms-toggle.active{background:#ADCF78;color:#fff;border-color:#ADCF78}.ms-ranking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.ms-ranking-box{border:1px solid #ddd;border-radius:12px;overflow:hidden}.ms-ranking-title{padding:14px;background:#f3f5f4;font-weight:bold;font-size:17px}.ms-ranking-row{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #eee}.ms-ranking-num{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ADCF78;color:#fff;font-weight:bold}.ms-intermediate-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:20px;padding-bottom:5px}.ms-intermediate-tab{padding:11px 18px;border:1px solid #d5d5d5;background:#f7f7f7;border-radius:8px;cursor:pointer;white-space:nowrap;font-weight:bold}.ms-intermediate-tab.active{background:#ADCF78;border-color:#ADCF78;color:#fff}.ms-intermediate-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin-bottom:20px}.ms-small-card{border:1px solid #ddd;background:#f8f9f9;border-radius:10px;padding:16px;text-align:center}.ms-small-value{font-size:22px;font-weight:bold;color:#ADCF78}.ms-small-label{margin-top:7px;font-size:13px;color:#65717a}.ms-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.7);z-index:99999;padding:20px}.ms-modal.show{display:flex}.ms-modal-content{position:relative;width:100%;max-width:900px;max-height:90vh;overflow:auto;background:#fff;border-radius:12px;padding:25px}.ms-close{position:absolute;top:10px;right:15px;border:none;background:none;font-size:32px;cursor:pointer}.ms-diploma{min-height:500px;padding:45px 30px;border:8px solid #ADCF78;text-align:center;background:linear-gradient(135deg,#ffffff,#f5f8f6)}
.ms-diploma-logo{max-width:260px;width:80%;height:auto;margin:0 auto 25px;display:block}.ms-diploma h2{margin:0 0 25px;color:#ADCF78;font-size:36px}.ms-diploma-name{margin:30px 0;font-size:32px;font-weight:bold}.ms-diploma-info{font-size:18px;line-height:1.8}.ms-diploma-actions{display:flex;justify-content:center;margin-top:20px}@media(max-width:1000px){.ms-summary{grid-template-columns:repeat(3,1fr)}.ms-intermediate-summary{grid-template-columns:repeat(3,1fr)}.ms-filters{grid-template-columns:1fr 1fr}}@media(max-width:600px){.ms-container{padding:20px 8px}.ms-header h1{font-size:26px}.ms-summary{grid-template-columns:repeat(2,1fr);gap:10px}.ms-intermediate-summary{grid-template-columns:repeat(2,1fr)}.ms-filters{grid-template-columns:1fr}}@media print{body *{visibility:hidden!important}#msDiplomaModal,#msDiplomaModal *{visibility:visible!important}#msDiplomaModal{position:absolute!important;inset:0!important;background:#fff!important}.ms-close,.ms-diploma-actions{display:none!important}}
/* Multiesport corporate green: RGB(173,207,120) / #ADCF78 */
.ms-main-tab.active,
.ms-table th,
.ms-btn,
.ms-podium-title,
.ms-category-title,
.ms-toggle.active,
.ms-ranking-num,
.ms-intermediate-tab.active {
    color: #1f3218;
}

.ms-card-value,
.ms-position,
.ms-podium-time,
.ms-category-pos,
.ms-small-value,
.ms-diploma h2 {
    color: #5F7D35;
}

.ms-finished {
    background: #EAF4DE;
    color: #5F7D35;
}

.ms-diploma {
    border-color: #ADCF78;
}


/* =========================================================
   PAGINACIÓN DE CLASIFICACIÓN
   ========================================================= */
.ms-pagination-wrap{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 4px 8px;
}

.ms-pagination-info{
    font-size:14px;
    color:#55615a;
}

.ms-pagination{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
}

.ms-page-btn{
    appearance:none;
    border:1px solid #d8e1d1;
    background:#fff;
    color:#3e4c42;
    border-radius:8px;
    min-width:40px;
    height:40px;
    padding:0 12px;
    font-weight:700;
    cursor:pointer;
    transition:all .2s ease;
}

.ms-page-btn:hover:not(:disabled){
    border-color:#ADCF78;
    background:#f3f9ec;
}

.ms-page-btn.active{
    background:#ADCF78;
    border-color:#ADCF78;
    color:#1f3218;
}

.ms-page-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.ms-page-prev,
.ms-page-next{
    min-width:auto;
}

.ms-page-dots{
    padding:0 5px;
    color:#6d786f;
    font-weight:700;
}

.ms-empty-results{
    text-align:center;
    padding:32px !important;
    color:#6d786f;
}

@media(max-width:640px){
    .ms-pagination-wrap{
        flex-direction:column;
        align-items:stretch;
    }

    .ms-pagination-info{
        text-align:center;
    }

    .ms-pagination{
        justify-content:center;
    }

    .ms-page-prev,
    .ms-page-next{
        font-size:0;
        min-width:40px;
        padding:0;
    }

    .ms-page-prev::first-letter,
    .ms-page-next::first-letter{
        font-size:18px;
    }
}

/* CLASIFICACIONES POR ATRIBUTOS */
.ms-attribute-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding-bottom:4px}
.ms-attribute-tab{appearance:none;border:1px solid #d8e1d1;background:#fff;color:#3e4c42;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer;transition:all .2s ease}
.ms-attribute-tab:hover{border-color:#ADCF78;background:#f3f9ec}
.ms-attribute-tab.active{background:#ADCF78;border-color:#ADCF78;color:#1f3218}
.ms-attribute-title{margin-bottom:16px}
.ms-attribute-title h3{margin:0;color:#1f3218;font-size:22px}
@media(max-width:640px){.ms-attribute-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px}.ms-attribute-tab{white-space:nowrap;flex:0 0 auto}}


/* ATRIBUTOS V1.9 */
.ms-attribute-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 22px;
}

.ms-attribute-tab{
    appearance:none;
    border:1px solid #d8e1d1;
    background:#fff;
    color:#3e4c42;
    border-radius:999px;
    padding:10px 16px;
    font-weight:700;
    cursor:pointer;
}

.ms-attribute-tab:hover{
    border-color:#ADCF78;
    background:#f3f9ec;
}

.ms-attribute-tab.active{
    background:#ADCF78;
    border-color:#ADCF78;
    color:#1f3218;
}

.ms-attribute-title{
    margin:0 0 16px;
}

.ms-attribute-title h3{
    margin:0 0 5px;
    color:#1f3218;
    font-size:22px;
}

.ms-attribute-title p{
    margin:0;
    color:#6a746c;
}

.ms-attribute-filters{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 20px;
}

.ms-attribute-filters select,
.ms-attribute-clear{
    min-height:42px;
    border:1px solid #d8e1d1;
    border-radius:8px;
    background:#fff;
    padding:0 12px;
    color:#344139;
}

.ms-attribute-filters select{
    min-width:190px;
    flex:1 1 190px;
}

.ms-attribute-clear{
    cursor:pointer;
    font-weight:700;
}

.ms-attribute-clear:hover{
    border-color:#ADCF78;
    background:#f3f9ec;
}

@media(max-width:640px){
    .ms-attribute-tabs{
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:8px;
    }

    .ms-attribute-tab{
        white-space:nowrap;
        flex:0 0 auto;
    }

    .ms-attribute-filters{
        flex-direction:column;
    }

    .ms-attribute-filters select,
    .ms-attribute-clear{
        width:100%;
    }
}


/* Atributos PDF configurables desde shortcode */
.ms-attribute-pdf-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.ms-attribute-pdf-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}
.ms-attribute-pdf-button:hover{text-decoration:none;transform:translateY(-1px)}

.ms-diploma-actions{gap:10px;flex-wrap:wrap}.ms-btn-secondary{background:#f3f5f4!important;color:#3e4c42!important;border:1px solid #d8e1d1!important}.ms-diploma-actions .ms-btn:disabled{opacity:.6;cursor:wait}
@media print{
  @page{size:A4 landscape;margin:0}
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  body *{visibility:hidden!important}
  #msDiplomaModal,#msDiplomaModal *{visibility:visible!important}
  #msDiplomaModal{position:fixed!important;inset:0!important;display:block!important;padding:0!important;margin:0!important;background:#fff!important;overflow:hidden!important}
  #msDiplomaModal .ms-modal-content{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:hidden!important;padding:0!important;margin:0!important;border-radius:0!important;background:#fff!important}
  #msDiplomaModal .ms-diploma{width:297mm!important;height:210mm!important;min-height:210mm!important;margin:0!important;padding:24mm 18mm!important;border:3mm solid #ADCF78!important;box-sizing:border-box!important;page-break-after:avoid!important;break-after:avoid-page!important}
  #msDiplomaModal .ms-diploma-logo{max-width:70mm!important;margin:0 auto 10mm!important}
  #msDiplomaModal .ms-diploma h2{font-size:11mm!important;margin:0 0 7mm!important}
  #msDiplomaModal .ms-diploma-name{font-size:10mm!important;margin:8mm 0!important}
  #msDiplomaModal .ms-diploma-info{font-size:5.5mm!important;line-height:1.7!important}
  #msDiplomaModal .ms-close,#msDiplomaModal .ms-diploma-actions{display:none!important}
}

/* v2.6 - selector de eventos */
.ms-events-panel{padding:28px 0}
.ms-events-title{text-align:center;margin-bottom:24px}
.ms-events-title h2{margin:0 0 8px}
.ms-events-title p{margin:0;color:#666}
.ms-events-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.ms-event-card{appearance:none;border:1px solid #d8d8d8;background:#fff;border-radius:12px;padding:22px 18px;text-align:left;cursor:pointer;transition:.18s;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.ms-event-card:hover,.ms-event-card.active{border-color:#5f7d35;box-shadow:0 4px 14px rgba(0,0,0,.09);transform:translateY(-1px)}
.ms-event-name{display:block;font-size:20px;font-weight:700;color:#333;margin-bottom:8px}
.ms-event-count{display:block;font-size:14px;color:#777}
.ms-selected-event{margin-top:8px;font-size:15px;color:#666}


/* =========================================================
   V2.7 · VISTA MÓVIL DE PARTICIPANTES
   ========================================================= */
.ms-mobile-classification{display:none}
.ms-mobile-participant{display:flex;width:100%;align-items:center;gap:8px;margin:0 0 9px;padding:11px 9px;border:1px solid #dce3df;border-radius:13px;background:#fff;color:#293b48;text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(41,59,72,.05);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.ms-mobile-participant:hover,.ms-mobile-participant:focus{border-color:#ADCF78;box-shadow:0 4px 14px rgba(95,125,53,.12);outline:none}
.ms-mobile-participant:active{transform:scale(.99)}
.ms-mobile-rank{flex:0 0 38px;text-align:center;border-right:1px solid #edf0ee;padding-right:6px}
.ms-mobile-rank strong{display:block;font-size:17px;line-height:20px;color:#5F7D35}
.ms-mobile-rank small{display:block;font-size:9px;color:#7b8780;font-weight:700;text-transform:uppercase}
.ms-mobile-main{min-width:0;flex:1 1 auto}
.ms-mobile-name{display:block;font-size:13px;font-weight:800;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-mobile-meta,.ms-mobile-club{display:block;font-size:10px;line-height:15px;color:#6a756e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-mobile-club{color:#87918b}
.ms-mobile-result{flex:0 0 72px;text-align:right}
.ms-mobile-result strong{display:block;font-size:13px;color:#5F7D35;white-space:nowrap}
.ms-mobile-result small{display:block;font-size:10px;color:#687582;white-space:nowrap;margin-top:2px}
.ms-mobile-chevron{flex:0 0 14px;font-size:27px;line-height:1;color:#9aa49e;text-align:center}
.ms-mobile-participant.ms-detail-dnf,.ms-mobile-participant.ms-detail-dsq,.ms-mobile-participant.ms-detail-dns{background:#fbfcfb}
.ms-mobile-participant.ms-detail-dnf .ms-mobile-result strong,.ms-mobile-participant.ms-detail-dsq .ms-mobile-result strong,.ms-mobile-participant.ms-detail-dns .ms-mobile-result strong{color:#b23a3a}

.ms-participant-modal{padding:10px;background:rgba(10,18,15,.72);backdrop-filter:blur(3px)}
.ms-participant-modal-content{max-width:760px;max-height:94vh;padding:0;overflow:hidden;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.ms-participant-modal-content #msParticipantDetailContent{max-height:94vh;overflow:auto;padding:22px 18px 24px}
.ms-participant-modal .ms-close{z-index:2;top:7px;right:10px;width:40px;height:40px;border-radius:50%;background:#fff;font-size:28px;color:#4d5a52;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.ms-detail-topline{display:flex;gap:8px;flex-wrap:wrap;padding-right:48px;margin-bottom:13px}
.ms-detail-position,.ms-detail-category-position{display:inline-flex;align-items:center;padding:8px 11px;border-radius:10px;background:#eef7e5;color:#4d6d2c;font-size:12px;font-weight:800}
.ms-detail-category-position{background:#edf3fa;color:#315d87}
.ms-detail-name{font-size:25px;line-height:29px;font-weight:900;color:#1f2d36;padding-right:45px}
.ms-detail-dorsal{font-size:13px;color:#687582;margin-top:4px;margin-bottom:17px}
.ms-detail-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;border:1px solid #e1e7e3;border-radius:13px;overflow:hidden;background:#e1e7e3}
.ms-detail-info-grid>div{background:#fff;padding:11px 12px;min-width:0}
.ms-detail-info-grid span{display:block;font-size:10px;color:#748078;margin-bottom:3px;text-transform:uppercase;font-weight:700}
.ms-detail-info-grid strong{display:block;font-size:13px;color:#2e3c35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-detail-status-pill{display:inline-block!important;width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;font-size:10px!important}
.ms-detail-finished{background:#eaf4de;color:#5f7d35!important}.ms-detail-dnf,.ms-detail-dsq{background:#fff0f0;color:#b23a3a!important}.ms-detail-dns{background:#f2f3f3;color:#687582!important}.ms-detail-other{background:#f5f5f5;color:#687582!important}
.ms-detail-highlight{display:grid;grid-template-columns:1fr 1fr;margin:15px 0;border-radius:15px;background:linear-gradient(135deg,#f5faef,#edf5e7);border:1px solid #dce9d0;overflow:hidden}
.ms-detail-highlight>div{text-align:center;padding:16px 8px}.ms-detail-highlight>div+div{border-left:1px solid #dce9d0}.ms-detail-highlight span{display:block;font-size:11px;color:#65717a;margin-bottom:5px}.ms-detail-highlight strong{display:block;font-size:25px;color:#2d6c38;line-height:1.1}
.ms-detail-status-large{margin:15px 0;padding:18px;text-align:center;border-radius:14px;font-size:20px;font-weight:900}.ms-detail-status-large small{display:block;font-size:11px;font-weight:400;color:#6d7772;margin-top:5px}
.ms-detail-section{margin-top:17px}.ms-detail-section h3{margin:0 0 9px;padding:10px 12px;border-radius:10px;background:#eef5fa;color:#315d87;font-size:12px;letter-spacing:.2px}
.ms-detail-table-wrap{overflow-x:auto;border:1px solid #e0e6e2;border-radius:11px}.ms-detail-table{width:100%;min-width:560px;border-collapse:collapse;font-size:11px}.ms-detail-table th{background:#f5f7f6;color:#526059;padding:9px 8px;text-align:left;white-space:nowrap}.ms-detail-table td{padding:9px 8px;border-top:1px solid #edf0ee;white-space:nowrap}.ms-detail-table td:nth-child(2){font-weight:800;color:#5f7d35}
.ms-detail-actions{display:flex;justify-content:center;gap:9px;margin-top:18px}.ms-detail-action{border:0;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer}.ms-detail-action-primary{background:#ADCF78;color:#1f3218}
body.ms-modal-open{overflow:hidden}
@media(max-width:640px){
    .ms-desktop-classification{display:block}
    .ms-mobile-classification{display:block}
    .ms-desktop-classification{overflow-x:auto}
    .ms-table-wrap.ms-desktop-classification{display:none}
    .ms-mobile-participant{min-height:72px}
    .ms-pagination-wrap{margin-top:7px}
    .ms-participant-modal{align-items:flex-end;padding:0}
    .ms-participant-modal-content{width:100%;max-width:none;max-height:94vh;border-radius:20px 20px 0 0}
    .ms-participant-modal-content #msParticipantDetailContent{max-height:94vh;padding:22px 13px 25px}
    .ms-detail-name{font-size:22px;line-height:27px}
    .ms-detail-highlight strong{font-size:22px}
    .ms-detail-table{min-width:520px}
}


/* =========================================================
   BANDERAS / ORIGEN v2.8
   ========================================================= */
.ms-participant-name-with-flag{display:inline-flex;align-items:center;gap:7px}
.ms-origin-flag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0;vertical-align:middle}
.ms-origin-flag img{display:block;width:26px;height:18px;object-fit:cover;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.ms-origin-flag-mobile img{width:24px;height:16px}
.ms-origin-flag-detail img{width:38px;height:25px;border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.16)}
.ms-detail-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
@media(max-width:640px){
    .ms-mobile-name{display:flex;align-items:center;gap:7px}
    .ms-origin-flag-mobile img{width:25px;height:17px}
}


/* =========================================================
   V2.9 · FICHA DE PARTICIPANTE TAMBIÉN EN PC
   ========================================================= */
.ms-desktop-participant-cell{cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.ms-desktop-participant-cell:hover{background:#f4f8ef;box-shadow:inset 3px 0 0 #ADCF78}
.ms-desktop-participant-cell:focus{outline:2px solid #ADCF78;outline-offset:-2px;background:#f4f8ef}
.ms-desktop-participant-cell strong{cursor:pointer}


/* =========================================================
   V2.10 · DIFERENCIAS ENTRE TRAMOS + JPG DE FICHA
   ========================================================= */
.ms-detail-checkpoints-table{min-width:0!important}
.ms-detail-checkpoints-table th:last-child,.ms-detail-checkpoints-table td:last-child{text-align:right}
.ms-detail-segments-table{min-width:680px}
.ms-position-delta{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:3px 6px;border-radius:7px;font-weight:900;font-size:11px;line-height:1.1}
.ms-position-delta-up{background:#e7f6ea;color:#159447}
.ms-position-delta-down{background:#fff0f0;color:#d92d20}
.ms-position-delta-neutral{color:#7a8780;background:#f3f5f4}
.ms-detail-action-secondary{background:#edf3fa;color:#315d87}
@media(max-width:640px){
    .ms-detail-actions{flex-wrap:wrap}
    .ms-detail-action{flex:1 1 100%;min-width:0}
    .ms-detail-action-primary,.ms-detail-action-secondary{min-height:44px}
}

/* Perfil de desnivel Wikiloc */
.ms-wikiloc-section{overflow:hidden}.ms-wikiloc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.ms-wikiloc-heading h3{margin:0!important}.ms-wikiloc-link{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #d4e4c2;border-radius:7px;background:#f4f8ef;color:#5f7d35;text-decoration:none;font-size:12px;font-weight:bold;white-space:nowrap}.ms-wikiloc-link:hover{background:#eaf4df}.ms-wikiloc-frame{width:100%;border:1px solid #dfe5e1;border-radius:10px;overflow:hidden;background:#fff;min-height:500px}.ms-wikiloc-frame iframe{display:block;width:100%;height:500px;border:0}.ms-wikiloc-loading{min-height:500px;display:flex;align-items:center;justify-content:center;color:#777;font-size:13px}
.ms-wikiloc-powered{padding:4px 8px 7px;color:#777;font-size:11px;line-height:16px;background:#fff}.ms-wikiloc-powered a{color:#4C8C2B;text-decoration:none}@media(max-width:640px){.ms-wikiloc-heading{align-items:flex-start;flex-direction:column}.ms-wikiloc-link{font-size:11px}.ms-wikiloc-frame{min-height:360px}.ms-wikiloc-frame iframe{height:360px}.ms-wikiloc-loading{min-height:360px}

/* =========================================================
   V2.20 · WIKILOC OVERLAY INDEPENDIENTE
   ========================================================= */
.ms-wikiloc-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.ms-wikiloc-overlay-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.ms-wikiloc-overlay-panel{position:relative;z-index:1;width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:12px;padding:20px;box-sizing:border-box;box-shadow:0 12px 45px rgba(0,0,0,.35)}
.ms-wikiloc-overlay-close{position:absolute;top:8px;right:10px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#4d5a52;font-size:28px;line-height:38px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.ms-wikiloc-overlay-panel .ms-wikiloc-heading{padding-right:45px}
.ms-wikiloc-overlay-panel .ms-wikiloc-frame{width:100%;min-height:500px}
.ms-wikiloc-overlay-panel .ms-wikiloc-frame iframe{display:block;width:600px;max-width:100%;height:500px;margin:0 auto;border:0}
@media(max-width:640px){
 .ms-wikiloc-overlay{padding:10px;align-items:center}
 .ms-wikiloc-overlay-panel{width:100%;max-height:calc(100vh - 20px);padding:14px}
 .ms-wikiloc-overlay-panel .ms-wikiloc-frame{min-height:360px}
 .ms-wikiloc-overlay-panel .ms-wikiloc-frame iframe{width:100%;height:360px}
}


/* v2.21 - perfil de desnivel como imagen local */
.ms-profile-section{overflow:hidden}
.ms-profile-image-wrap{width:100%;border:1px solid #dfe5e1;border-radius:10px;overflow:hidden;background:#fff;padding:8px;box-sizing:border-box}
.ms-profile-image{display:block;width:100%;height:auto;max-width:100%;border:0;border-radius:6px}
@media(max-width:640px){.ms-profile-image-wrap{padding:5px}.ms-profile-image{width:100%;height:auto}}


/* =========================================================
   V2.24 · FICHA AVANZADA DEL PARTICIPANTE
   ========================================================= */
.ms-detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ms-detail-section-heading h3{margin:0!important}.ms-detail-section-note{font-size:11px;color:#7a8780;background:#f3f6f4;border-radius:999px;padding:5px 9px;white-space:nowrap}
.ms-attribute-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.ms-attribute-result-card{border:1px solid #dce5d7;background:linear-gradient(135deg,#fff,#f6faf3);border-radius:12px;padding:15px}.ms-attribute-result-name{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#718077;font-weight:800}.ms-attribute-result-value{font-size:18px;font-weight:900;color:#293b48;margin-top:6px}.ms-attribute-result-position{margin-top:8px;color:#5f7d35;font-size:12px}.ms-attribute-result-position strong{font-size:20px}.ms-attribute-no-position{color:#7a8780}
.ms-performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ms-performance-card{background:#f6f8f7;border-radius:12px;padding:15px;border:1px solid #e2e8e4}.ms-performance-card span{display:block;color:#7a8780;font-size:11px;text-transform:uppercase;font-weight:800}.ms-performance-card strong{display:block;margin-top:7px;color:#293b48;font-size:14px;line-height:1.35}
.ms-evolution-list{display:flex;flex-direction:column;gap:7px}.ms-evolution-row{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(100px,3fr) 42px;align-items:center;gap:10px;font-size:12px}.ms-evolution-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#536159}.ms-evolution-track{height:8px;background:#edf1ee;border-radius:999px;overflow:hidden}.ms-evolution-track span{display:block;height:100%;background:#ADCF78;border-radius:999px}.ms-evolution-row strong{text-align:right;color:#293b48}
.ms-journey-list{display:flex;flex-direction:column;gap:0}.ms-journey-item{display:grid;grid-template-columns:32px minmax(150px,1fr) 90px 45px;align-items:center;gap:10px;min-height:48px;border-bottom:1px solid #edf0ee}.ms-journey-item:last-child{border-bottom:0}.ms-journey-marker{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef5e8;color:#5f7d35;font-size:11px;font-weight:900}.ms-journey-item.segment .ms-journey-marker{background:#edf3fa;color:#315d87}.ms-journey-main strong{display:block;color:#293b48;font-size:13px}.ms-journey-main span{display:block;color:#87928c;font-size:10px;text-transform:uppercase;margin-top:2px}.ms-journey-time{text-align:right;font-weight:800;color:#293b48}.ms-journey-rank{text-align:right;color:#5f7d35;font-weight:900}
.ms-attribute-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:18px}.ms-attribute-overview-card{padding:15px;border:1px solid #dce5d7;background:#f7faf5;border-radius:12px}.ms-attribute-overview-card strong{display:block;color:#5f7d35;font-size:13px}.ms-attribute-overview-card span{display:block;color:#293b48;margin-top:5px;font-weight:700;font-size:14px}
@media(max-width:640px){.ms-performance-grid{grid-template-columns:1fr}.ms-evolution-row{grid-template-columns:minmax(90px,1.1fr) minmax(80px,2fr) 35px}.ms-journey-item{grid-template-columns:28px minmax(120px,1fr) 76px 36px;gap:7px}.ms-journey-main strong{font-size:12px}.ms-journey-time{font-size:12px}.ms-journey-rank{font-size:11px}.ms-attribute-result-grid{grid-template-columns:1fr}.ms-detail-section-heading{align-items:flex-start;flex-direction:column}}

/* =========================================================
   ESTADÍSTICAS 2.24.3
   ========================================================= */
.ms-stat-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;padding:20px 22px;border:1px solid #e1e7de;border-radius:14px;background:linear-gradient(135deg,#f8fbf5,#fff)}
.ms-stat-intro h2{margin:0 0 6px;color:#1f3218;font-size:25px}.ms-stat-intro p{margin:0;color:#667269;font-size:14px}.ms-stat-total{min-width:130px;text-align:center;border-left:1px solid #dce5d7;padding-left:20px}.ms-stat-total strong{display:block;font-size:30px;color:#5F7D35}.ms-stat-total span{font-size:12px;color:#667269;font-weight:700}
.ms-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ms-stat-wide,.ms-stat-full{grid-column:1/-1}.ms-stat-card{height:100%;border:1px solid #e0e6df;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(31,50,24,.04)}.ms-stat-card-head{padding:15px 18px;background:#f4f7f2;border-bottom:1px solid #e1e7de}.ms-stat-card-head h3{margin:0;color:#1f3218;font-size:17px}.ms-stat-card-body{padding:18px}
.ms-gender-stat{display:flex;align-items:center;justify-content:center;gap:45px;min-height:245px}.ms-donut{width:190px;height:190px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}.ms-donut-hole{width:116px;height:116px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#1f3218}.ms-donut-hole strong{font-size:27px}.ms-donut-hole span{font-size:12px;color:#6a746c}.ms-gender-legend{min-width:230px}.ms-gender-legend>div{display:grid;grid-template-columns:18px 1fr auto;gap:8px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0eb}.ms-gender-legend b{font-size:22px;color:#1f3218}.ms-gender-legend small{grid-column:2/4;color:#6a746c}.ms-legend-dot,.ms-stat-interval-legend i{width:11px;height:11px;border-radius:50%;display:inline-block}.ms-dot-male{background:#5F7D35}.ms-dot-female{background:#F28C28}.ms-dot-unknown{background:#cbd2cc}
.ms-stat-bar-row{display:grid;grid-template-columns:minmax(130px,190px) 1fr minmax(100px,145px);align-items:center;gap:10px;margin:10px 0}.ms-stat-bar-label{font-size:13px;color:#39463d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-stat-bar-track{height:16px;border-radius:999px;background:#eef2ec;overflow:hidden}.ms-stat-bar-fill{height:100%;min-width:0;border-radius:999px;background:#5F7D35}.ms-stat-time-fill{background:#ADCF78}.ms-stat-bar-value{text-align:right;font-weight:700;font-size:13px;color:#4d5c50;white-space:nowrap}.ms-stat-empty{text-align:center;color:#7a857c;padding:25px}
.ms-time-gender-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:170px;align-items:center}.ms-time-gender-cards>div{border:1px solid #e4e9e2;border-radius:12px;padding:20px;text-align:center;color:#435046}.ms-time-gender-cards .ms-legend-dot{margin-right:7px;vertical-align:middle}.ms-time-gender-cards strong{display:block;margin:10px 0 3px;font-size:28px;color:#5F7D35}.ms-time-gender-cards small{color:#718077}
.ms-stat-interval-card .ms-stat-card-body{overflow-x:auto}.ms-stat-interval-chart{min-width:760px;padding:8px 5px 10px}.ms-stat-interval-legend{display:flex;justify-content:flex-end;gap:18px;font-size:12px;color:#637067;margin-bottom:14px}.ms-stat-interval-legend span{display:flex;align-items:center;gap:6px}.ms-interval-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(54px,1fr);gap:7px;align-items:end;height:235px;border-bottom:1px solid #dfe6dd;padding:0 4px}.ms-interval-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0}.ms-interval-bars{height:185px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px;border-left:1px solid #edf0eb}.ms-interval-label{font-size:10px;color:#68746b;white-space:nowrap;transform:rotate(-40deg);transform-origin:center top;margin-top:12px;height:40px}.ms-interval-bar{width:13px;min-height:0;border-radius:5px 5px 0 0;position:relative;transition:height .25s ease}.ms-interval-bar.male{background:#5F7D35}.ms-interval-bar.female{background:#F28C28}.ms-interval-bar span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:10px;font-weight:700;color:#435046;margin-bottom:3px}
@media(max-width:900px){.ms-stat-grid{grid-template-columns:1fr}.ms-stat-wide,.ms-stat-full{grid-column:auto}.ms-gender-stat{gap:25px}.ms-stat-bar-row{grid-template-columns:minmax(100px,145px) 1fr minmax(90px,120px)}}
@media(max-width:600px){.ms-stat-intro{align-items:flex-start;flex-direction:column}.ms-stat-total{border-left:0;border-top:1px solid #dce5d7;padding:12px 0 0;width:100%}.ms-gender-stat{flex-direction:column;gap:20px}.ms-gender-legend{width:100%}.ms-time-gender-cards{grid-template-columns:1fr}.ms-stat-bar-row{grid-template-columns:100px 1fr 92px;gap:7px}.ms-stat-bar-value{font-size:11px}}

/* =========================================================
   ESTADÍSTICAS 2.24.3 FIX · GRÁFICOS REALES + RESPONSIVE
   ========================================================= */
#statisticsContent{width:100%;min-width:0}
.ms-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.ms-stat-wide,.ms-stat-full{grid-column:1/-1;min-width:0}
.ms-stat-card{min-width:0;height:100%;border:1px solid #dfe6dc;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 4px 16px rgba(31,50,24,.06)}
.ms-stat-card-head{display:flex;align-items:center;min-height:54px;padding:14px 18px;background:linear-gradient(180deg,#f7faf5,#f1f5ef);border-bottom:1px solid #e0e7dd}
.ms-stat-card-head h3{margin:0;color:#1f3218;font-size:17px;font-weight:800}
.ms-stat-card-body{padding:18px;min-width:0;overflow:hidden}
.ms-stat-svg{display:block;width:100%;height:auto;overflow:visible}
.ms-chart-grid{stroke:#e5ebe3;stroke-width:1}
.ms-chart-axis{fill:#7b867e;font-size:11px;font-weight:600}
.ms-chart-label{fill:#354238;font-size:13px;font-weight:600}
.ms-chart-value{fill:#293b48;font-size:12px;font-weight:800}
.ms-chart-track{fill:#edf2eb}
.ms-chart-bar{transition:opacity .2s,filter .2s}
.ms-chart-bar:hover{opacity:.82;filter:brightness(1.03)}
.ms-gender-chart-wrap{display:grid;grid-template-columns:minmax(230px,320px) minmax(220px,1fr);align-items:center;justify-content:center;gap:30px;max-width:760px;margin:0 auto}
.ms-gender-donut-svg{max-width:320px;margin:auto}
.ms-donut-number{font-size:29px;font-weight:900;fill:#1f3218}
.ms-donut-caption{font-size:11px;font-weight:800;letter-spacing:.08em;fill:#718077}
.ms-gender-legend{width:100%}
.ms-gender-legend>div{display:grid;grid-template-columns:16px 1fr auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1eb}
.ms-gender-legend strong{font-size:14px;color:#354238}.ms-gender-legend b{font-size:22px;color:#1f3218}.ms-gender-legend small{grid-column:2/4;color:#718077;font-size:12px}
.ms-stat-total{min-width:135px;text-align:center;border-left:1px solid #dce5d7;padding-left:20px}.ms-stat-total strong{display:block;font-size:30px;color:#5f7d35}.ms-stat-total span{font-size:12px;color:#667269;font-weight:700}
.ms-stat-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;padding:20px 22px;border:1px solid #e1e7de;border-radius:14px;background:linear-gradient(135deg,#f8fbf5,#fff)}
.ms-stat-intro h2{margin:0 0 6px;color:#1f3218;font-size:25px}.ms-stat-intro p{margin:0;color:#667269;font-size:14px}
.ms-stat-empty{text-align:center;color:#7a857c;padding:30px 10px}
.ms-stat-interval-card .ms-stat-card-body{overflow-x:auto;padding-bottom:25px}
.ms-stat-grouped{min-width:720px}

@media(max-width:900px){
  .ms-stat-grid{grid-template-columns:1fr}
  .ms-stat-wide,.ms-stat-full{grid-column:auto}
  .ms-stat-intro{align-items:flex-start}
}
@media(max-width:600px){
  .ms-container{padding:14px 7px}
  .ms-main-tabs{gap:5px;margin-left:-1px;margin-right:-1px;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .ms-main-tab{padding:11px 13px;font-size:12px;flex:0 0 auto}
  .ms-stat-grid{gap:12px}
  .ms-stat-card{border-radius:12px}
  .ms-stat-card-head{padding:12px 13px;min-height:48px}
  .ms-stat-card-head h3{font-size:14px}
  .ms-stat-card-body{padding:12px 10px}
  .ms-stat-intro{padding:14px;display:block;margin-bottom:12px}
  .ms-stat-intro h2{font-size:20px}
  .ms-stat-intro p{font-size:12px;line-height:1.45}
  .ms-stat-total{margin-top:12px;padding:10px 0 0;border-left:0;border-top:1px solid #dce5d7}
  .ms-gender-chart-wrap{grid-template-columns:1fr;gap:8px;max-width:360px}
  .ms-gender-donut-svg{width:250px;max-width:100%;margin:auto}
  .ms-gender-legend>div{padding:10px 0}
  .ms-gender-legend b{font-size:19px}
  .ms-chart-label{font-size:12px}
  .ms-chart-value{font-size:11px}
  .ms-chart-axis{font-size:10px}
  .ms-stat-horizontal{min-width:620px}
  .ms-stat-card:not(.ms-stat-interval-card) .ms-stat-card-body:has(.ms-stat-horizontal){overflow-x:auto}
  .ms-stat-grouped{min-width:720px}
}

/* =========================================================
   ESTADÍSTICAS 2.24.5 · DASHBOARD COMPACTO + RESPONSIVE
   ========================================================= */
#statisticsContent{width:100%;min-width:0}
#statisticsContent .ms-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#statisticsContent .ms-stat-wide,#statisticsContent .ms-stat-full{grid-column:auto}
#statisticsContent .ms-stat-full{grid-column:1/-1}
#statisticsContent .ms-stat-card{border-radius:10px;box-shadow:0 2px 8px rgba(31,50,24,.04)}
#statisticsContent .ms-stat-card-head{min-height:42px;padding:10px 13px}
#statisticsContent .ms-stat-card-head h3{font-size:15px}
#statisticsContent .ms-stat-card-body{padding:12px}
#statisticsContent .ms-stat-intro{padding:12px 16px;margin-bottom:14px}
#statisticsContent .ms-stat-intro h2{font-size:20px}
#statisticsContent .ms-stat-intro p{font-size:12px}
#statisticsContent .ms-stat-total{min-width:100px}
#statisticsContent .ms-stat-total strong{font-size:25px}
#statisticsContent .ms-gender-chart-wrap{grid-template-columns:minmax(145px,1fr) minmax(110px,1fr);gap:10px;max-width:none}
#statisticsContent .ms-gender-donut-svg{width:100%;max-width:210px}
#statisticsContent .ms-gender-legend>div{padding:8px 0;grid-template-columns:11px 1fr auto;gap:5px}
#statisticsContent .ms-gender-legend strong{font-size:12px}
#statisticsContent .ms-gender-legend b{font-size:18px}
#statisticsContent .ms-gender-legend small{font-size:10px}
#statisticsContent .ms-chart-label{font-size:10.5px}
#statisticsContent .ms-chart-value{font-size:10px}
#statisticsContent .ms-chart-axis{font-size:9px}
#statisticsContent .ms-stat-horizontal{min-width:0}
#statisticsContent .ms-time-gender-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
#statisticsContent .ms-time-gender-summary>div{display:grid;grid-template-columns:12px 1fr;column-gap:5px;align-items:center}
#statisticsContent .ms-time-gender-summary b{grid-column:2;font-size:20px;line-height:1.05;color:#5f7d35}
#statisticsContent .ms-time-gender-summary>div:nth-child(2) b{color:#f28c28}
#statisticsContent .ms-time-gender-summary small{grid-column:2;color:#718077;font-size:9px}
#statisticsContent .ms-time-gender-summary strong{font-size:11px}
#statisticsContent .ms-time-gender-legend{display:flex;justify-content:center;gap:15px;font-size:10px;color:#667269;margin:3px 0 2px}
#statisticsContent .ms-time-gender-legend span{display:flex;align-items:center;gap:4px}
#statisticsContent .ms-time-gender-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
#statisticsContent .ms-time-gender-hist{width:100%;min-width:0}
#statisticsContent .ms-stat-interval-card .ms-stat-card-body{overflow:hidden}
#statisticsContent .ms-stat-grouped{min-width:0;width:100%}
@media(max-width:1050px){
  #statisticsContent .ms-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #statisticsContent .ms-stat-full{grid-column:1/-1}
}
@media(max-width:700px){
  #statisticsContent .ms-stat-grid{grid-template-columns:1fr;gap:10px}
  #statisticsContent .ms-stat-full{grid-column:auto}
  #statisticsContent .ms-stat-intro{display:block}
  #statisticsContent .ms-stat-total{margin-top:8px;border-left:0;border-top:1px solid #dce5d7;padding:7px 0 0}
  #statisticsContent .ms-gender-chart-wrap{grid-template-columns:1fr;max-width:330px;margin:auto}
  #statisticsContent .ms-gender-donut-svg{width:210px;margin:auto}
  #statisticsContent .ms-gender-legend{width:100%}
  #statisticsContent .ms-stat-card-head h3{font-size:14px}
  #statisticsContent .ms-stat-horizontal{min-width:0}
  #statisticsContent .ms-stat-grouped{min-width:0}
  #statisticsContent .ms-stat-card-body{padding:10px 8px}
  #statisticsContent .ms-time-gender-summary b{font-size:19px}
}
@media(min-width:701px){
  #statisticsContent .ms-stat-card:nth-child(2) .ms-stat-card-body,
  #statisticsContent .ms-stat-card:nth-child(3) .ms-stat-card-body,
  #statisticsContent .ms-stat-card:nth-child(5) .ms-stat-card-body,
  #statisticsContent .ms-stat-card:nth-child(6) .ms-stat-card-body{overflow-x:auto}
}

/* =========================================================
   ESTADÍSTICAS 2.24.11 · PC COMPACTO / 2 COLUMNAS + CENTRADO
   ========================================================= */
#statisticsContent{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}
#statisticsContent .ms-stat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
#statisticsContent .ms-stat-card-head{
  min-height:38px;
  padding:8px 11px;
}
#statisticsContent .ms-stat-card-head h3{
  font-size:13px;
  line-height:1.2;
}
#statisticsContent .ms-stat-card-body{
  padding:9px;
}
#statisticsContent .ms-chart-label{font-size:9px}
#statisticsContent .ms-chart-value{font-size:8.5px}
#statisticsContent .ms-chart-axis{font-size:8px}
#statisticsContent .ms-donut-number{font-size:25px}
#statisticsContent .ms-donut-caption{font-size:9px}
#statisticsContent .ms-gender-chart-wrap{
  grid-template-columns:minmax(105px,1fr) minmax(90px,1fr);
  gap:7px;
}
#statisticsContent .ms-gender-donut-svg{max-width:155px}
#statisticsContent .ms-gender-legend>div{padding:5px 0;grid-template-columns:9px 1fr auto;gap:4px}
#statisticsContent .ms-gender-legend strong{font-size:10px}
#statisticsContent .ms-gender-legend b{font-size:15px}
#statisticsContent .ms-gender-legend small{font-size:8px}
#statisticsContent .ms-time-gender-summary{gap:6px;margin-bottom:3px}
#statisticsContent .ms-time-gender-summary strong{font-size:9px}
#statisticsContent .ms-time-gender-summary b{font-size:15px}
#statisticsContent .ms-time-gender-summary small{font-size:8px}
#statisticsContent .ms-time-gender-legend{font-size:8px;gap:9px}
#statisticsContent .ms-time-gender-hist{height:auto}
#statisticsContent .ms-stat-intro{padding:9px 12px;margin-bottom:10px}
#statisticsContent .ms-stat-intro h2{font-size:17px}
#statisticsContent .ms-stat-intro p{font-size:10px}
#statisticsContent .ms-stat-total{min-width:75px}
#statisticsContent .ms-stat-total strong{font-size:21px}
#statisticsContent .ms-stat-total span{font-size:9px}
#statisticsContent .ms-stat-full{grid-column:1/-1}

@media (max-width:1199px) and (min-width:701px){
  #statisticsContent{max-width:1100px}
  #statisticsContent .ms-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  #statisticsContent .ms-stat-full{grid-column:1/-1}
}

@media (max-width:700px){
  #statisticsContent{max-width:none}
  #statisticsContent .ms-stat-grid{grid-template-columns:1fr;gap:10px}
  #statisticsContent .ms-stat-card-head{min-height:42px;padding:10px 12px}
  #statisticsContent .ms-stat-card-head h3{font-size:14px}
  #statisticsContent .ms-stat-card-body{padding:10px 8px}
  #statisticsContent .ms-chart-label{font-size:12px}
  #statisticsContent .ms-chart-value{font-size:11px}
  #statisticsContent .ms-chart-axis{font-size:10px}
  #statisticsContent .ms-donut-number{font-size:29px}
  #statisticsContent .ms-donut-caption{font-size:11px}
  #statisticsContent .ms-gender-chart-wrap{grid-template-columns:1fr;max-width:330px}
  #statisticsContent .ms-gender-donut-svg{width:210px;max-width:100%}
  #statisticsContent .ms-gender-legend>div{padding:10px 0}
  #statisticsContent .ms-gender-legend strong{font-size:12px}
  #statisticsContent .ms-gender-legend b{font-size:19px}
  #statisticsContent .ms-gender-legend small{font-size:10px}
  #statisticsContent .ms-time-gender-summary b{font-size:19px}
  #statisticsContent .ms-time-gender-summary strong{font-size:11px}
  #statisticsContent .ms-time-gender-summary small{font-size:9px}
}

/* v2.25.2: acción para compartir el resultado por WhatsApp */
.ms-detail-action-whatsapp{background:#dff5e5;color:#176b35;border:1px solid #b7e4c4}
.ms-detail-action-whatsapp:hover{background:#c9eed4}

/* 2.25.3: icono oficial estilizado de WhatsApp en el botón de compartir */
.ms-whatsapp-icon{width:19px;height:19px;display:inline-block;vertical-align:-4px;margin-right:5px}
#filterSearch{min-width:0}


/* v2.25.4: botones de ficha dimensionados para PC sin alterar el diseño móvil */
@media (min-width: 641px){
  .ms-detail-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;width:100%;}
  .ms-detail-actions .ms-detail-action{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:64px;padding:12px 8px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:13px;}
  .ms-detail-actions .ms-whatsapp-icon{flex:0 0 auto;}
}


/* v2.25.5: corrección robusta frente a estilos del tema WordPress/Elementor en PC */
@media screen and (min-width: 641px) {
  #msParticipantModal .ms-participant-modal-content #msParticipantDetailContent .ms-detail-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #msParticipantModal .ms-participant-modal-content #msParticipantDetailContent .ms-detail-actions > button.ms-detail-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  #msParticipantModal .ms-participant-modal-content #msParticipantDetailContent .ms-detail-actions .ms-whatsapp-icon {
    width: 19px !important; height: 19px !important; flex: 0 0 19px !important;
  }
}


/* v2.25.6: botones de ficha apilados verticalmente tanto en PC como en móvil */
#msParticipantModal .ms-participant-modal-content #msParticipantDetailContent .ms-detail-actions {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#msParticipantModal .ms-participant-modal-content #msParticipantDetailContent .ms-detail-actions > button.ms-detail-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-align: center !important;
  line-height: 1.3 !important;
}


/* v2.25.7: refuerzo inline en el HTML de acciones para evitar que temas/constructores alteren la disposición. */


/* v2.25.8: tamaño e identidad visual del icono de WhatsApp, aislados de estilos globales */
#msParticipantModal #msParticipantDetailContent .ms-detail-action-whatsapp .ms-whatsapp-icon,
#msParticipantModal #msParticipantDetailContent .ms-whatsapp-icon {
  width:20px !important; height:20px !important; min-width:20px !important; max-width:20px !important;
  flex:0 0 20px !important; display:inline-block !important; vertical-align:middle !important;
  margin:0 7px 0 0 !important; color:#25D366 !important; overflow:visible !important;
}
#msParticipantModal #msParticipantDetailContent .ms-whatsapp-icon path { fill:#25D366 !important; }

/* Multiesport Resultados 2.26.0: búsqueda rápida de participantes */
.ms-filters .ms-search-wrap{position:relative;min-width:0;width:100%;z-index:30}
.ms-filters .ms-search-wrap #filterSearch{width:100%;min-width:0}
.ms-search-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;max-height:360px;overflow-y:auto;background:#fff;border:1px solid #d7e0d4;border-radius:10px;box-shadow:0 12px 30px rgba(24,45,20,.18);z-index:9999;padding:5px}
.ms-search-suggestion{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;border:0!important;border-radius:7px!important;background:#fff!important;color:#293b48!important;text-align:left!important;cursor:pointer!important;box-sizing:border-box!important}
.ms-search-suggestion:hover,.ms-search-suggestion:focus{background:#f0f6e9!important;outline:2px solid #adcf78!important;outline-offset:-2px}
.ms-search-bib{flex:0 0 42px;min-width:42px;text-align:center;padding:7px 3px;border-radius:6px;background:#adcf78;color:#203218;font-weight:700;font-size:13px}
.ms-search-info{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}
.ms-search-info strong{font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.ms-search-info small{font-size:11px;color:#66736b;line-height:1.3;overflow-wrap:anywhere}
.ms-search-time{flex:0 0 auto;font-size:12px;font-weight:700;color:#345021;white-space:nowrap}
.ms-search-empty{padding:14px;color:#687582;font-size:13px;text-align:center}
@media(max-width:700px){.ms-search-suggestions{max-height:55vh}.ms-search-suggestion{gap:8px!important;padding:9px!important}.ms-search-time{font-size:11px}}

/* Multiesport Resultados 2.26.1: uniformar búsqueda rápida en escritorio (tema/Elementor) */
@media screen and (min-width: 701px) {
  .ms-results-app .ms-filters {
    align-items: start !important;
    grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(145px, 1fr)) !important;
    gap: 12px !important;
  }
  .ms-results-app .ms-filters > .ms-search-wrap,
  .ms-results-app .ms-filters > select {
    align-self: start !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
  }
  .ms-results-app .ms-filters > select {
    height: 44px !important;
    padding: 0 12px !important;
    line-height: normal !important;
    border: 1px solid #d4d8db !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #293b48 !important;
  }
}
.ms-results-app .ms-filters .ms-search-wrap {position:relative!important;display:block!important;align-self:start!important;z-index:100!important;}
.ms-results-app .ms-filters .ms-search-wrap #filterSearch {display:block!important;width:100%!important;height:46px!important;min-height:46px!important;box-sizing:border-box!important;border:1px solid #d4d8db!important;border-radius:9px!important;background:#fff!important;color:#293b48!important;padding:0 14px!important;line-height:normal!important;}
.ms-results-app .ms-search-suggestions[hidden] {display:none!important;}
.ms-results-app .ms-search-suggestions:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;}
.ms-results-app .ms-search-suggestions .ms-search-suggestion,
.ms-results-app .ms-search-suggestions button.ms-search-suggestion {
  appearance:none!important;-webkit-appearance:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  width:100%!important;height:auto!important;min-height:56px!important;max-height:none!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:9px 11px!important;border:1px solid #e5ebe1!important;border-radius:8px!important;
  background:#fff!important;box-shadow:none!important;color:#293b48!important;text-align:left!important;text-decoration:none!important;
  font-family:Arial,Helvetica,sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important;box-sizing:border-box!important;
}
.ms-results-app .ms-search-suggestions .ms-search-suggestion:hover,
.ms-results-app .ms-search-suggestions .ms-search-suggestion:focus {background:#f0f6e9!important;border-color:#adcf78!important;outline:0!important;}
.ms-results-app .ms-search-suggestions .ms-search-bib {display:block!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;padding:7px 3px!important;background:#adcf78!important;color:#203218!important;border:0!important;border-radius:6px!important;text-align:center!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;}
.ms-results-app .ms-search-suggestions .ms-search-info {display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;width:auto!important;}
.ms-results-app .ms-search-suggestions .ms-search-info strong {display:block!important;margin:0!important;padding:0!important;color:#293b48!important;font-size:14px!important;font-weight:700!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.ms-results-app .ms-search-suggestions .ms-search-info small {display:block!important;margin:0!important;padding:0!important;color:#66736b!important;font-size:11px!important;font-weight:400!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.ms-results-app .ms-search-suggestions .ms-search-time {display:block!important;flex:0 0 auto!important;margin-left:auto!important;padding-left:8px!important;color:#345021!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap!important;}


/* Multiesport Resultados 2.26.7: filtros en columna en móviles, incluso con estilos del tema */
@media screen and (max-width: 700px) {
  .ms-results-app .ms-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .ms-results-app .ms-filters > *,
  .ms-results-app .ms-filters > .ms-search-wrap,
  .ms-results-app .ms-filters > select,
  .ms-results-app .ms-filters input,
  .ms-results-app .ms-filters select {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ms-results-app .ms-filters > select { height: 46px !important; }
}
