@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Commissioner:FLAR,wght@0,400;0,500;0,600;0,700;0,800;100,400;100,500;100,600;100,700;100,800&display=swap');
@font-face {
    font-family: "RCD Faro Text Report";
    src: local("RCD Faro Text"), local("RCDFaroText-Regular");
    font-style: normal;
    font-weight: 400 500;
}
@font-face {
    font-family: "RCD Faro Text Report";
    src: local("RCD Faro Text SemiBold"), local("RCDFaroText-SemiBold");
    font-style: normal;
    font-weight: 600;
}
@font-face {
    font-family: "RCD Faro Text Report";
    src: local("RCD Faro Text Bold"), local("RCDFaroText-Bold");
    font-style: normal;
    font-weight: 700 900;
}
@font-face {
    font-family: "RCD Faro Display SemiBold";
    src: local("RCD Faro Display SemiBold"), local("RCDFaroDisplay-SemiBold");
    font-style: normal;
    font-weight: 600 900;
}
@font-face {
    font-family: "RCD Faro Headline Report";
    src: local("RCD Faro Headline"), local("RCDFaroHeadline-Regular");
    font-style: normal;
    font-weight: 400 500;
}
@font-face {
    font-family: "RCD Faro Headline Report";
    src: local("RCD Faro Headline SemiBold"), local("RCDFaroHeadline-SemiBold");
    font-style: normal;
    font-weight: 600 900;
}
:root {
    --font-body: "Commissioner", sans-serif;
    --font-display: "Barlow Condensed", sans-serif;
    --font-body-variation: "FLAR" 100, "VOLM" 0;
    --font-report-body: "RCD Faro Text Report", "RCD Faro Text", Commissioner, sans-serif;
    --font-report-display: "RCD Faro Display SemiBold", "Barlow Condensed", sans-serif;
    --font-report-headline: "RCD Faro Headline Report", "RCD Faro Headline", sans-serif;
}
html,
body,
input,
button,
select,
textarea {
    font-family: var(--font-body);
    font-variation-settings: var(--font-body-variation);
}
h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.modal-title,
.custom-tab,
.sidebar-link,
.sidebar .nav-link,
.sumario-resumen-rank-title,
.sumario-resumen-focus-title {
    font-family: var(--font-display);
    font-variation-settings: normal;
    letter-spacing: 0.01em;
}
.page-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: clamp(1.85rem, 1.35rem + 1vw, 2.35rem);
    line-height: 1.02;
    text-wrap: balance;
}

/* ========== Mejorar dropdown Dash ========== */
.Select-menu-outer,
.VirtualizedSelectOption,
.Select-option,
.Select-menu,
.Select-control,
.Select-placeholder {
    font-size: 12px !important;
}

.Select-option,
.VirtualizedSelectOption {
    min-height: 38px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

.Select-control,
.Select-placeholder {
    min-height: 40px !important;
    font-size: 15px !important;
}

/* Para Dash manteniendo compatibilidad con dcc.Dropdown */
div[class*="Dropdown-menu"],
div[class*="Dropdown-option"] {
    font-size: 14px !important;
    min-height: 38px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}


/* ================= Global ================= */
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    color: #2f3338;
    background-image: url("/assets/login_bg_filtro.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    scrollbar-color: #ffffff rgba(13, 59, 102, 0.15);
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: rgba(13, 59, 102, 0.15);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #cfd1d3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0d3b66;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-title {
    font-size: clamp(1.6rem, 1.8vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.card-header h3,
.card-header h4,
.card-header h5 {
    color: #0d3b66;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.4vw, 1.5rem);
}

.card-body p,
.card-body li,
.card-body span {
    font-size: 1.05rem;
    color: #2f3338;
}

.card .list-group-item a,
.card a.nav-link {
    color: #2f3338 !important;
    font-size: 1.05rem;
    font-weight: 500;
}

.card .list-group-item {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
}

.card .list-group-item a:hover {
    color: #0d3b66 !important;
}

/* Login mode (pantalla de login) */
body.login-mode {
    background-image: url("/assets/login_bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-color: #0d3b66;
}

/* ================= Dashboard wrapper ================= */
/* Contenedor principal que agrupa sidebar + contenido */
.dashboard-wrapper {
    display: flex;
    /* convierte en flex container */
    flex-wrap: nowrap;
    /* nunca permite wrapping */
    min-height: 100vh;
    height: 100vh;
    background-image: url("/assets/login_bg_filtro.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    overflow: hidden;
}

/* ================= Sidebar ================= */
.sidebar {
    flex: 0 0 230px;
    /* ancho fijo dentro de flex */
    max-width: 230px;
    background-color: #0d3b66;
    color: white;
    font-size: 17px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    /* para que quede fija al hacer scroll */
    top: 0;
    z-index: 1000;
    min-height: 100vh;
    /* aseguramos altura completa */
}

.sidebar-link {
    display: block;
    color: white;
    padding: 12px 0;
    text-decoration: none;
    font-size: 17px;
    transition: background 0.2s ease-in-out;
}

.sidebar-link:hover {
    background-color: #0d3b66;
    padding-left: 10px;
}

/* ======= Sidebar: resalto de enlace activo (dbc.NavLink con active) ======= */
/* Estilo común para enlaces activos */
.sidebar .nav-link.active {
    background-color: #f8f9fa !important;
    color: #0d3b66 !important;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

/* Sección principal seleccionada (Verde/Turquesa) */
.sidebar .nav-link-main.active,
.sidebar .section-btn.selected {
    border-left: 6px solid #148E82 !important;
}

.sidebar .nav-link-main {
    padding-left: 0.75rem !important;
}

/* Subsección seleccionada (Azul Marino) */
.sidebar .nav-link-sub.active {
    border-left: 6px solid #001F3F !important;
}

/* Estilo base para subenlaces */
.sidebar .nav-link-sub {
    padding-left: 1.5rem !important;
}

/* Estilo para los botones de sección cuando están expandidos o activos */
.sidebar .section-btn {
    transition: all 0.2s ease;
    font-family: var(--font-display) !important;
    font-variation-settings: normal !important;
    letter-spacing: 0.01em;
}

.sidebar .section-btn.selected {
    background-color: rgba(20, 142, 130, 0.1) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Hover sutil en enlaces de la barra */
.sidebar .nav .nav-link {
    transition: padding-left 0.15s ease, background-color 0.15s ease;
}

.sidebar .nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ======= Sidebar: resalto de cabecera de grupo activa ======= */
.sidebar .active-group {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-left: 4px solid #148E82;
    border-radius: 0 6px 6px 0;
}

/* ================= Contenido del Dashboard ================= */
/* El div que envuelve cada subpágina (tabs + page-wrapper) */
.dashboard-content {
    flex: 1;
    /* ocupa el resto del espacio */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* deja que el contenido use todo el ancho disponible */
    padding: 20px 32px;
    /* espacio alrededor */
    overflow-x: auto;
    /* permite scroll horizontal en móviles */
    margin-left: 230px;
    /* respeta el ancho del sidebar fijo */
    scrollbar-color: #ffffff rgba(13, 59, 102, 0.15);
}

.dashboard-content::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: rgba(13, 59, 102, 0.15);
    border-radius: 4px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}


/* Wrapper uniforme para el contenido de cada página */
.page-wrapper {
    width: 100%;
    max-width: 1600px;
    padding: clamp(24px, 3vw, 48px);
    background: rgba(230, 231, 232, 0.95);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(13, 59, 102, 0.2);
    font-family: var(--font-body);
    /* Nota: ya no margin:auto; .dashboard-content se encarga de centrar */
}


/* Ajuste de padding en móvil */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 20px;
    }
}

/* ================= Pestañas ================= */
.custom-tabs {
    border-bottom: 2px solid #eee;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

.custom-tab {
    padding: 14px 40px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    color: #0d3b66;
    cursor: pointer;
    transition: border 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
}

.custom-tab:hover {
    border-bottom: 3px solid #ccc;
}

.custom-tab--selected {
    border-bottom: 3px solid #0d3b66;
    color: #0d3b66;
}

.depor-blue {
    color: #0d3b66;
    font-weight: 700;
}

.report-week-strip::-webkit-scrollbar {
    height: 9px;
}

.report-week-strip::-webkit-scrollbar-track {
    background: #dbe7f3;
    border-radius: 6px;
}

.report-week-strip::-webkit-scrollbar-thumb {
    background: #0d3b66;
    border-radius: 6px;
}

.report-section-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    align-items: stretch;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #0d3b66 #dbe7f3;
}

.report-section-tab {
    appearance: none;
    border: 0;
    border-bottom: 4px solid transparent;
    background: #ffffff;
    color: #4a5568;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 58px;
    padding: 14px 18px 12px;
    text-align: center;
    white-space: nowrap;
}

.report-section-tab:hover {
    color: #0d3b66;
    background: #f8fafc;
}

.report-section-tab--active {
    border-bottom-color: #148E82;
    color: #0d3b66;
    font-weight: 800;
}

.report-section-tab:focus,
.report-section-tab:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(20, 142, 130, 0.18);
}

/* Tabs contexto rendimiento - Ficha jugadora */
.ficha-context-tab,
.ficha-context-tab span,
#ficha-rendimiento-context .tab,
#ficha-rendimiento-context .tab span {
    color: #4a6078 !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.ficha-context-tab--selected,
.ficha-context-tab--selected span,
#ficha-rendimiento-context .tab--selected,
#ficha-rendimiento-context .tab--selected span {
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

/* ================= Botón de descarga ================= */
#boton-descargar:hover img {
    opacity: 1 !important;
    transform: scale(1.05);
    transition: 0.2s ease-in-out;
}

/* ================= Modales de Comentarios ================= */
.modal-body-custom {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Listas estilizadas con iconos según tipo */
ul.estilizado {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul.estilizado li {
    padding: 8px 0;
    display: flex;
    align-items: start;
    gap: 8px;
}

ul.estilizado li::before {
    content: '✅';
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

/* Versión roja para 'A mejorar' */
ul.estilizado.red li::before {
    content: '⚠️';
    color: #b2344F;
}

/* Cabecera modal visualmente limpia */
.modal-header {
    background-color: #f5f7fa;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-family: var(--font-body);
    color: #0d3b66;
    font-weight: 600;
    font-size: 20px;
}

.bloque-comentario {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
    font-family: var(--font-body);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bloque-verde {
    background-color: #f0faee;
    color: #2e7d32;
    border-left: 6px solid #66bb6a;
}

.bloque-rojo {
    background-color: #fff2f2;
    color: #b71c1c;
    border-left: 6px solid #ef5350;
}

.bloque-comentario ul {
    margin: 0;
    padding-left: 20px;
}

.bloque-comentario li {
    margin-bottom: 10px;
}

.botonera-comentarios {
    text-align: right;
    margin-top: 8px;
}

.botonera-comentarios .btn {
    margin-left: 6px;
}

/* ================= Home - Hero & Callout ================= */
.home-hero {
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.92), rgba(13, 59, 102, 0.7));
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(13, 59, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%);
    transform: rotate(15deg);
}

.dashboard-wrapper .content-container {
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.home-hero h2 {
    color: #fff;
    font-weight: 700;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.95);
}

.home-hero .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.home-callout {
    border-left: 6px solid #0d3b66;
    background: #f5f9ff;
    color: #0d3b66;
}

/* ================= Semáforo Control ================= */
.semaforo-page {
    font-size: 15px;
}

/* ================= Animations (subtle) ================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.55s ease forwards;
}

.fade-in-2 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.1s forwards;
}

.fade-in-3 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Contextos de Partidos - Match Cards ================= */
.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Scrollbar personalizado para celdas de contexto */
.context-cell-content::-webkit-scrollbar {
    width: 6px;
}

.context-cell-content::-webkit-scrollbar-track {
    background: rgba(13, 59, 102, 0.15);
    border-radius: 10px;
}

.context-cell-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
}

/* ================= Modales de Comentarios ================= */
.modal-body-custom {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Listas estilizadas con iconos según tipo */
ul.estilizado {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul.estilizado li {
    padding: 8px 0;
    display: flex;
    align-items: start;
    gap: 8px;
}

ul.estilizado li::before {
    content: '✅';
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

/* Versión roja para 'A mejorar' */
ul.estilizado.red li::before {
    content: '⚠️';
    color: #b2344F;
}

/* Cabecera modal visualmente limpia */
.modal-header {
    background-color: #f5f7fa;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-family: var(--font-body);
    color: #0d3b66;
    font-weight: 600;
    font-size: 20px;
}

.bloque-comentario {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
    font-family: var(--font-body);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bloque-verde {
    background-color: #f0faee;
    color: #2e7d32;
    border-left: 6px solid #66bb6a;
}

.bloque-rojo {
    background-color: #fff2f2;
    color: #b71c1c;
    border-left: 6px solid #ef5350;
}

.bloque-comentario ul {
    margin: 0;
    padding-left: 20px;
}

.bloque-comentario li {
    margin-bottom: 10px;
}

.botonera-comentarios {
    text-align: right;
    margin-top: 8px;
}

.botonera-comentarios .btn {
    margin-left: 6px;
}

/* ================= Home - Hero & Callout ================= */
.home-hero {
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.92), rgba(13, 59, 102, 0.7));
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(13, 59, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%);
    transform: rotate(15deg);
}

.dashboard-wrapper .content-container {
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.home-hero h2 {
    color: #fff;
    font-weight: 700;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.95);
}

.home-hero .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.home-callout {
    border-left: 6px solid #0d3b66;
    background: #f5f9ff;
    color: #0d3b66;
}

/* ================= Semáforo Control ================= */
.semaforo-page {
    font-size: 15px;
}

/* ================= Animations (subtle) ================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.55s ease forwards;
}

.fade-in-2 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.1s forwards;
}

.fade-in-3 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Contextos de Partidos - Match Cards ================= */
.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Scrollbar personalizado para celdas de contexto */
.context-cell-content::-webkit-scrollbar {
    width: 6px;
}

.context-cell-content::-webkit-scrollbar-track {
    background: rgba(13, 59, 102, 0.15);
    border-radius: 10px;
}

.context-cell-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
}

.context-cell-content::-webkit-scrollbar-thumb:hover {
    background: #cfd1d3;
}

/* ================= Custom Dropdown Styles for Antropometría ================= */
#antropo-player-multi-dd .Select-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#antropo-player-multi-dd .Select-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

#antropo-player-multi-dd .Select-menu-outer {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

/* --- CORRECCIÓN: Soporte para listas virtualizadas (Dash default) --- */

/* Opción cuando pasas el ratón (hover/focus) */
#antropo-player-multi-dd .Select-option.is-focused,
#antropo-player-multi-dd .VirtualizedSelectOption.VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.15) !important;
    /* Shade suave del 148E82 */
    color: #0d3b66 !important;
}

/* Opción seleccionada */
#antropo-player-multi-dd .Select-option.is-selected,
#antropo-player-multi-dd .VirtualizedSelectOption.VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    /* Shade más fuerte */
    color: #0d3b66 !important;
}

/* Texto de las opciones normales */
#antropo-player-multi-dd .Select-option,
#antropo-player-multi-dd .VirtualizedSelectOption {
    background-color: #ffffff !important;
}

.bloque-comentario ul {
    margin: 0;
    padding-left: 20px;
}

.bloque-comentario li {
    margin-bottom: 10px;
}

.botonera-comentarios {
    text-align: right;
    margin-top: 8px;
}

.botonera-comentarios .btn {
    margin-left: 6px;
}

/* ================= Home - Hero & Callout ================= */
.home-hero {
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.92), rgba(13, 59, 102, 0.7));
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(13, 59, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%);
    transform: rotate(15deg);
}

.dashboard-wrapper .content-container {
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.home-hero h2 {
    color: #fff;
    font-weight: 700;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.95);
}

.home-hero .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.home-callout {
    border-left: 6px solid #0d3b66;
    background: #f5f9ff;
    color: #0d3b66;
}

/* ================= Semáforo Control ================= */
.semaforo-page {
    font-size: 15px;
}

/* ================= Animations (subtle) ================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.55s ease forwards;
}

.fade-in-2 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.1s forwards;
}

.fade-in-3 {
    opacity: 0;
    animation: fadeIn 0.55s ease 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Contextos de Partidos - Match Cards ================= */
.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Scrollbar personalizado para celdas de contexto */
.context-cell-content::-webkit-scrollbar {
    width: 6px;
}

.context-cell-content::-webkit-scrollbar-track {
    background: rgba(13, 59, 102, 0.15);
    border-radius: 10px;
}

.context-cell-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
}

.context-cell-content::-webkit-scrollbar-thumb:hover {
    background: #cfd1d3;
}

/* ================= Custom Dropdown Styles for Antropometría ================= */
#antropo-player-multi-dd .Select-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#antropo-player-multi-dd .Select-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

#antropo-player-multi-dd .Select-menu-outer {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

/* --- CORRECCIÓN: Soporte para listas virtualizadas (Dash default) --- */

/* Opción cuando pasas el ratón (hover/focus) */
#antropo-player-multi-dd .Select-option.is-focused,
#antropo-player-multi-dd .VirtualizedSelectOption.VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.15) !important;
    /* Shade suave del 148E82 */
    color: #0d3b66 !important;
}

/* Opción seleccionada */
#antropo-player-multi-dd .Select-option.is-selected,
#antropo-player-multi-dd .VirtualizedSelectOption.VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    /* Shade más fuerte */
    color: #0d3b66 !important;
}

/* Texto de las opciones normales */
#antropo-player-multi-dd .Select-option,
#antropo-player-multi-dd .VirtualizedSelectOption {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

/* Eliminar el fondo blanco de los valores seleccionados (tags) si es multi */
#antropo-player-multi-dd .Select-value {
    background-color: rgba(13, 59, 102, 0.1) !important;
    border: 1px solid rgba(13, 59, 102, 0.2) !important;
    color: #0d3b66 !important;
}

#antropo-player-multi-dd .Select-value-icon {
    border-right: 1px solid rgba(13, 59, 102, 0.2) !important;
}

#antropo-player-multi-dd .Select-value-icon:hover {
    background-color: rgba(13, 59, 102, 0.2) !important;
    color: #0d3b66 !important;
}

/* ================= Corrección Botones Sub-pestañas ================= */
/* Forzar fondo gris claro para botones inactivos (identificados por su color de texto gris) */
.subtab-button[style*="color: #6c757d"],
.subtab-button[style*="color: rgb(108, 117, 125)"] {
    background-color: #f8f9fa !important;
}

/* ================= Dropdown Microciclos ================= */
/* Estilizar el dropdown de microciclos */
#sc-microciclo-dropdown .Select-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#sc-microciclo-dropdown .Select-menu-outer {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

#sc-microciclo-dropdown .Select-menu {
    background-color: #ffffff !important;
}

#sc-microciclo-dropdown .Select-option {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#sc-microciclo-dropdown .Select-option.is-focused {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#sc-microciclo-dropdown .Select-option.is-selected {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

#sc-microciclo-dropdown .Select-placeholder {
    color: #6c757d !important;
}

#sc-microciclo-dropdown .Select-value-label {
    color: #2f3338 !important;
}

/* Versión virtualizada (si aplica) */
#sc-microciclo-dropdown .VirtualizedSelectOption {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#sc-microciclo-dropdown .VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#sc-microciclo-dropdown .VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

/* ================= Dropdown Styles for Entrenamiento Jugadoras ================= */
/* Estilos para #scj-jugador-selector y #scj-microciclo-dropdown */

#scj-jugador-selector .Select-control,
#scj-microciclo-dropdown .Select-control {
    background-color: #ffffff !important;
}

#scj-jugador-selector .Select-menu-outer,
#scj-microciclo-dropdown .Select-menu-outer {
    background-color: #ffffff !important;
}

#scj-jugador-selector .Select-option,
#scj-microciclo-dropdown .Select-option {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#scj-jugador-selector .Select-option.is-focused,
#scj-microciclo-dropdown .Select-option.is-focused {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#scj-jugador-selector .Select-option.is-selected,
#scj-microciclo-dropdown .Select-option.is-selected {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

#scj-jugador-selector .Select-placeholder,
#scj-microciclo-dropdown .Select-placeholder {
    color: #6c757d !important;
}

#scj-jugador-selector .Select-value-label,
#scj-microciclo-dropdown .Select-value-label {
    color: #2f3338 !important;
}

/* Versión virtualizada (si aplica) */
#scj-jugador-selector .VirtualizedSelectOption,
#scj-microciclo-dropdown .VirtualizedSelectOption {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#scj-jugador-selector .VirtualizedSelectFocusedOption,
#scj-microciclo-dropdown .VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#scj-jugador-selector .VirtualizedSelectSelectedOption,
#scj-microciclo-dropdown .VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

/* ================= Dropdown Jugador Evolutivo Médico ================= */
#jugador-selector .Select-control {
    background-color: #ffffff !important;
}

#jugador-selector .Select-menu-outer {
    background-color: #ffffff !important;
}

#jugador-selector .Select-option {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#jugador-selector .Select-option.is-focused {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#jugador-selector .Select-option.is-selected {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

#jugador-selector .Select-placeholder {
    color: #6c757d !important;
}

#jugador-selector .Select-value-label {
    color: #2f3338 !important;
}

#jugador-selector .VirtualizedSelectOption {
    background-color: #ffffff !important;
    color: #2f3338 !important;
}

#jugador-selector .VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.3) !important;
    color: #0d3b66 !important;
}

#jugador-selector .VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
}

/* ==========================================================================
   GLOBAL DROPDOWN STYLING (VERDE Y GRIS - OVERRIDE FINAL)
   Aplica el estilo "Diapositiva Verde y Gris" a TODOS los dropdowns
   ========================================================================== */

/* 1. Control (Input cerrado) - Fondo Gris */
.Select-control {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #2f3338 !important;
}

.Select-placeholder {
    color: #6c757d !important;
}

.Select-value-label {
    color: #2f3338 !important;
}

/* 2. Menú Desplegable - Fondo Gris */
.Select-menu-outer {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 3. Opciones - Normal (Gris) */
.Select-option,
.VirtualizedSelectOption {
    background-color: #ffffff !important;
    color: #2f3338 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* 4. Opciones - Hover/Foco (Verde Claro suave) */
.Select-option.is-focused,
.VirtualizedSelectOption.VirtualizedSelectFocusedOption {
    background-color: #d1e7dd !important;
    /* Verde muy suave */
    color: #0f5132 !important;
    /* Verde oscuro texto */
    font-weight: 500 !important;
}

/* 5. Opciones - Seleccionado (Verde Teal más intenso) */
.Select-option.is-selected,
.VirtualizedSelectOption.VirtualizedSelectSelectedOption {
    background-color: #a8d5d1 !important;
    /* Verde Teal visible */
    color: #0d3b66 !important;
    /* Azul oscuro texto */
    font-weight: 700 !important;
}

/* ==========================================================================
   DROPDOWN MODERN DASH (COMPATIBILIDAD WEB/SERVIDOR)
   Targeting para Dash 2.0+ que usa clases dinámicas de React-Select
   ========================================================================== */

/* Control base (Input cerrado) */
div[class*="dash-dropdown"] [class*="-control"] {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    min-height: 40px !important;
}

/* Menú desplegable (Lista) */
div[class*="dash-dropdown"] [class*="-menu"] {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
}

/* Opciones individuales */
div[class*="dash-dropdown"] [class*="-option"] {
    background-color: #ffffff !important;
    color: #2f3338 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

/* Opción en FOCO / HOVER */
div[class*="dash-dropdown"] [class*="-option"][class*="-isFocused"] {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

/* Opción SELECCIONADA */
div[class*="dash-dropdown"] [class*="-option"][class*="-isSelected"] {
    background-color: #a8d5d1 !important;
    color: #0d3b66 !important;
    font-weight: 700 !important;
}

/* Input de búsqueda interno */
div[class*="dash-dropdown"] input {
    color: #2f3338 !important;
    font-family: inherit !important;
}

/* Placeholder */
div[class*="dash-dropdown"] [class*="-placeholder"] {
    color: #6c757d !important;
}

/* Asegurar que el contenedor de valores y el valor único tengan el color correcto */
div[class*="dash-dropdown"] [class*="-ValueContainer"],
div[class*="dash-dropdown"] [class*="-singleValue"] {
    background-color: transparent !important;
    color: #2f3338 !important;
}

/* Forzar que el input de búsqueda no tenga fondo blanco propio */
div[class*="dash-dropdown"] [class*="-Input"],
div[class*="dash-dropdown"] input {
    background-color: transparent !important;
    color: #2f3338 !important;
    border: none !important;
    box-shadow: none !important;
}

#jugador-selector .Select-option.is-focused,
#jugador-selector .VirtualizedSelectOption.VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.30) !important;
    color: #0d3b66 !important;
}

#jugador-selector .Select-option.is-selected,
#jugador-selector .VirtualizedSelectOption.VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
    font-weight: 700 !important;
}

#jugador-selector div[class*="dash-dropdown"] [class*="-option"][class*="-isFocused"] {
    background-color: rgba(13, 59, 102, 0.30) !important;
    color: #0d3b66 !important;
}

#jugador-selector div[class*="dash-dropdown"] [class*="-option"][class*="-isSelected"] {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
    font-weight: 700 !important;
}

#adm-roles .Select-option.is-focused,
#adm-roles .VirtualizedSelectOption.VirtualizedSelectFocusedOption {
    background-color: rgba(13, 59, 102, 0.30) !important;
    color: #0d3b66 !important;
}

#adm-roles .Select-option.is-selected,
#adm-roles .VirtualizedSelectOption.VirtualizedSelectSelectedOption {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
    font-weight: 700 !important;
}

#adm-roles div[class*="dash-dropdown"] [class*="-option"][class*="-isFocused"] {
    background-color: rgba(13, 59, 102, 0.30) !important;
    color: #0d3b66 !important;
}

#adm-roles div[class*="dash-dropdown"] [class*="-option"][class*="-isSelected"] {
    background-color: rgba(13, 59, 102, 0.25) !important;
    color: #0d3b66 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   RESPONSIVE — Mobile & Tablet
   ========================================================================== */

/* Hamburger button — hidden on desktop, shown on mobile/tablet via media query */
#hamburger-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    background: #0d3b66;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

#hamburger-btn:hover {
    background: #148E82;
}

/* Sidebar overlay — covers content when sidebar is open on mobile */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    cursor: pointer;
}

#sidebar-overlay.active {
    display: block;
}

/* ── Tablet & Mobile (≤ 1024px, incluye iPad Pro) ── */
@media (max-width: 1024px) {

    #hamburger-btn {
        display: flex;
    }

    #main-sidebar {
        transform: translateX(-260px) !important;
        transition: transform 0.3s ease !important;
        z-index: 1050 !important;
    }

    #main-sidebar.sidebar-open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
    }

    .content-container {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 3.75rem !important;
    }

    .dashboard-content {
        margin-left: 0 !important;
        padding: 16px !important;
    }

    .dashboard-wrapper {
        overflow-x: hidden !important;
    }

    .page-wrapper {
        padding: 16px !important;
        border-radius: 12px;
    }

    .custom-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .custom-tab {
        padding: 10px 18px;
        white-space: nowrap;
        font-size: 14px;
    }

    #login-wrapper {
        padding: 1rem !important;
    }
}

/* ── Tablet mediano (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .content-container {
        padding-top: 4rem !important;
    }

    .page-wrapper {
        padding: 20px !important;
        border-radius: 14px;
    }
}

/* ── Mobile only (≤ 575px) ── */
@media (max-width: 575.98px) {

    body {
        font-size: 15px;
    }

    .content-container {
        padding: 3.75rem 0.5rem 1rem !important;
    }

    .page-title {
        font-size: 1.25rem !important;
    }

    .page-wrapper {
        padding: 12px !important;
        border-radius: 8px;
    }
}

/* Superficies del dashboard: el contenedor queda transparente para que se vea la foto de fondo. */
.dashboard-wrapper .card,
.dashboard-wrapper .card-header,
.dashboard-wrapper .card-body,
.dashboard-wrapper .card-footer,
.dashboard-wrapper .card .list-group-item,
.dashboard-wrapper .context-result-card {
    background-color: white !important;
}

/* ==========================================================================
   Sumario Rendimiento · Identidad - Rendimiento
   ========================================================================== */

.sumario-resumen-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7dde6;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.sumario-resumen-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
}

.sumario-resumen-table th,
.sumario-resumen-table td {
    border: 1px solid #d7dde6;
    vertical-align: top;
}

.sumario-resumen-section-cell {
    width: 36%;
    background: linear-gradient(135deg, #09131d, #17324d);
    color: #fff;
    padding: 11px 14px;
}

.sumario-resumen-section-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sumario-resumen-section-meta {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.84;
}

.sumario-resumen-column-cell {
    color: #fff;
    text-align: center;
    padding: 9px 7px 8px;
}

.sumario-resumen-column-title {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.sumario-resumen-column-meta {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 600;
    opacity: 0.96;
}

.sumario-resumen-group-cell {
    background: #5a5d63;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sumario-resumen-group-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
}

.sumario-resumen-group-inner span {
    color: #fff !important;
}

.sumario-resumen-group-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.sumario-resumen-description-cell {
    width: 36%;
    background: #f5f6f8;
    padding: 10px 12px;
}

.sumario-resumen-description-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sumario-resumen-description-block + .sumario-resumen-description-block {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d7dde6;
}

.sumario-resumen-description-text {
    color: #1f2933;
    font-size: 12px;
    line-height: 1.35;
}

.sumario-resumen-pending {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    background: #fff5cf;
    color: #7c5d00;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.sumario-resumen-metrics-cell {
    padding: 6px;
}

.sumario-resumen-cell-bg-identity-0 { background: #e3edf8; }
.sumario-resumen-cell-bg-identity-1 { background: #edf4fb; }
.sumario-resumen-cell-bg-identity-2 { background: #f4f8fc; }
.sumario-resumen-cell-bg-identity-3 { background: #f7f9fc; }
.sumario-resumen-cell-bg-identity-4 { background: #fbfcfe; }

.sumario-resumen-cell-bg-performance-0 { background: #eef9f2; }
.sumario-resumen-cell-bg-performance-1 { background: #f4fbf6; }
.sumario-resumen-cell-bg-performance-2 { background: #fff8e2; }
.sumario-resumen-cell-bg-performance-3 { background: #fff0eb; }
.sumario-resumen-cell-bg-performance-4 { background: #ffe8e6; }

.sumario-resumen-cell-stack {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sumario-resumen-chip {
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.15;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sumario-resumen-chip-name {
    font-weight: 700;
    font-size: 10px;
    line-height: 1.05;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sumario-resumen-chip-footer {
    margin-top: auto;
    padding-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sumario-resumen-chip-rank,
.sumario-resumen-chip-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.sumario-resumen-chip-arrow {
    font-size: 11px;
    min-width: 24px;
}

.sumario-resumen-tone-identity-0 {
    background: #d5e4f5;
    border-color: #9cb9d9;
    color: #163a63;
}

.sumario-resumen-tone-identity-1 {
    background: #e2ecf8;
    border-color: #b4c8e1;
    color: #315884;
}

.sumario-resumen-tone-identity-2 {
    background: #edf3fa;
    border-color: #c8d5e7;
    color: #4d6785;
}

.sumario-resumen-tone-identity-3 {
    background: #f3f7fb;
    border-color: #d5dfec;
    color: #687d96;
}

.sumario-resumen-tone-identity-4 {
    background: #f8fafc;
    border-color: #e0e7f0;
    color: #8190a5;
}

.sumario-resumen-tone-performance-0 {
    background: #d9f2e1;
    border-color: #93d0a7;
    color: #0f5132;
}

.sumario-resumen-tone-performance-1 {
    background: #eaf7ef;
    border-color: #b6ddb9;
    color: #1d6b42;
}

.sumario-resumen-tone-performance-2 {
    background: #fff4c9;
    border-color: #ecd88b;
    color: #7b5c00;
}

.sumario-resumen-tone-performance-3 {
    background: #ffe2d9;
    border-color: #f3b9a5;
    color: #9c3f24;
}

.sumario-resumen-tone-performance-4 {
    background: #ffd8d3;
    border-color: #ef9a90;
    color: #9b1c1c;
}

.sumario-resumen-empty {
    display: block;
    min-height: 22px;
}

.sumario-resumen-empty-state {
    padding: 50px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
}

.sumario-resumen-footnote {
    background: #fff8e1;
    border: 1px solid #f1d48b;
    border-radius: 12px;
    padding: 11px 13px;
    color: #775200;
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE LAYOUT FIXES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
#app-container,
#dashboard-view {
    width: 100%;
    min-height: 100%;
}

body.dashboard-mode {
    overflow-x: hidden;
}

.dashboard-wrapper {
    --sidebar-width: 250px;
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-image: url("/assets/login_bg_filtro.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    overflow: visible;
}

.sidebar,
#main-sidebar {
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex: 0 0 var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-container {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    box-sizing: border-box;
    overflow-x: hidden;
}

#page-content {
    width: 100%;
    min-width: 0;
}

#page-content .container,
#page-content .container-fluid {
    max-width: 100%;
}

#page-content .card,
#page-content .card-body,
#page-content .row,
#page-content [class*="col-"] {
    min-width: 0;
}

#page-content .js-plotly-plot,
#page-content .dash-graph,
#page-content .dash-table-container {
    max-width: 100%;
}

.page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .dashboard-wrapper {
        display: block;
        min-height: 100dvh;
    }

    #main-sidebar {
        width: min(84vw, 280px);
        max-width: min(84vw, 280px);
        height: 100dvh;
        min-height: 100dvh;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1050 !important;
    }

    #main-sidebar.sidebar-open {
        transform: translateX(0) !important;
    }

    .content-container {
        width: 100% !important;
        min-height: 100dvh;
        margin-left: 0 !important;
        padding: 4.25rem 1rem 1rem !important;
        overflow-x: hidden;
    }

    #page-content {
        overflow-x: hidden;
    }

    .page-wrapper {
        width: 100%;
        padding: 16px !important;
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    #hamburger-btn {
        top: 10px;
        left: 10px;
        width: 42px;
        height: 42px;
    }

    .content-container {
        padding: 4rem 0.75rem 0.75rem !important;
    }

    #page-content .container,
    #page-content .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ========== ANÁLISIS RIVAL ========== */

.rival-tabs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rival-section-tab {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #6c757d;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.rival-section-tab:hover {
    border-color: #148E82;
    color: #148E82;
}

.rival-section-tab--active {
    background: #0d3b66;
    border-color: #0d3b66;
    color: white;
}

.rival-section-tab--active:hover {
    border-color: #0d3b66;
    color: white;
}

.rival-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #0d3b66;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(20, 142, 130, 0.2);
}

.rival-header-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rival-results-matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #cfd6dc;
    background: #ffffff;
}

.rival-results-trend__identity {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 10px 8px;
}

.rival-results-trend__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.rival-results-trend__team {
    color: #0d3b66;
    font-size: 20px;
    font-weight: 800;
}

.rival-results-balance {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 0.9fr) repeat(2, 2fr);
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #9cb8ff;
    border-radius: 5px;
    background: #eef3ff;
}

.rival-results-balance__heading,
.rival-results-balance__outcome,
.rival-results-balance__condition {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rival-results-balance__heading {
    padding: 8px;
    background: #0730b4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
}

.rival-results-balance__outcome {
    flex-direction: column;
    border: 1px solid #cfd8e3;
    background: #ffffff;
}

.rival-results-balance__number {
    width: 100%;
    flex: 1;
    display: grid;
    place-items: center;
    color: var(--balance-color);
    font-size: 22px;
    font-weight: 900;
}

.rival-results-balance__label {
    width: 100%;
    padding: 6px 4px;
    background: var(--balance-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.rival-results-balance__outcome--win { --balance-color: #16a34a; }
.rival-results-balance__outcome--draw { --balance-color: #f2ad00; }
.rival-results-balance__outcome--loss { --balance-color: #e3343a; }

.rival-results-balance__condition {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0730b4;
    font-size: 12px;
    font-weight: 900;
}

.rival-results-matrix {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #27364a;
    font-family: var(--font-body);
}

.rival-results-matrix th,
.rival-results-matrix td {
    height: 22px;
    padding: 2px 4px;
    border-right: 1px solid #d6dce1;
    border-bottom: 1px solid #d6dce1;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.rival-results-matrix tr:last-child th,
.rival-results-matrix tr:last-child td {
    border-bottom: 0;
}

.rival-results-matrix__label {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 82px;
    min-width: 82px;
    background: #f8fafc;
    color: #0d3b66;
    text-align: left !important;
    padding-left: 8px !important;
}

.rival-results-matrix__week,
.rival-results-matrix__rival,
.rival-results-matrix__score,
.rival-results-matrix__result {
    width: 37px;
    min-width: 37px;
}

.rival-results-matrix__week,
.rival-results-matrix__summary-header {
    background: #eef2f5;
    color: #4a5568;
}

.rival-results-matrix__rival {
    color: #0d3b66;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rival-results-matrix__score {
    color: #586779;
    font-weight: 600 !important;
}

.rival-results-matrix__result {
    color: #ffffff;
}

.rival-results-matrix__result--win {
    background: #55bd28;
}

.rival-results-matrix__result--draw {
    background: #f39a0a;
}

.rival-results-matrix__result--loss {
    background: #d93b35;
}

.rival-results-matrix__result--empty {
    background: #ffffff;
}

.rival-results-matrix__summary,
.rival-results-matrix__summary-header {
    width: 64px;
    min-width: 64px;
    background: #f8fafc;
    color: #344054;
}

.rival-points-table-wrapper {
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid #cfd6dc;
}

.rival-points-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #263548;
    font-family: var(--font-body);
}

.rival-points-table th,
.rival-points-table td {
    height: 22px;
    padding: 3px 4px;
    border-right: 1px solid #d6dce1;
    border-bottom: 1px solid #d6dce1;
    font-size: 8.5px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.rival-points-table__position-header {
    width: 28px;
    background: #f4f6f8;
}

.rival-points-table__team-header {
    width: 112px;
    background: #f4f6f8;
    text-align: left !important;
}

.rival-points-table__group-header {
    height: 25px !important;
    background: #e7ebef;
    color: #0d3b66;
    font-size: 9px !important;
    font-weight: 800;
    border-left: 2px solid #b8c1ca;
}

.rival-points-table__stat-header {
    background: #f4f6f8;
    color: #536274;
    font-weight: 700;
}

.rival-points-table__stat-header--points,
.rival-points-table__stat--points {
    background: #dfe4e9;
    color: #0d3b66;
    font-weight: 800;
}

.rival-points-table__stat--group-start {
    border-left: 2px solid #b8c1ca;
}

.rival-points-table__position {
    width: 28px;
    background: #f8fafc;
    font-weight: 800;
}

.rival-points-table__position--champions {
    border-left: 4px solid #28a745;
    background: #eaf7ed;
    color: #18752d;
}

.rival-points-table__position--relegation {
    border-left: 4px solid #dc3545;
    background: #fdecee;
    color: #b32130;
}

.rival-points-table__team {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: left !important;
    font-size: 9px !important;
    font-weight: 600;
}

.rival-points-table__team span {
    font-size: 8.5px !important;
    line-height: 1 !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rival-points-table__row:hover td {
    background-color: #f7fafc;
}

.rival-points-table__row--selected td {
    background-color: #fff3b8 !important;
    color: #3f3500;
    font-weight: 800;
}

.rival-points-table__row--selected .rival-points-table__position--champions {
    border-left-color: #28a745;
}

.rival-points-table__row--selected .rival-points-table__position--relegation {
    border-left-color: #dc3545;
}

.rival-position-zone-legend {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: -1px;
    color: #536274;
    font-size: 9px;
    font-weight: 700;
}

.rival-position-zone-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.rival-position-zone-legend__swatch {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 2px;
}

.rival-position-zone-legend__swatch--champions {
    background: rgba(40, 167, 69, 0.45);
    border: 1px solid #28a745;
}

.rival-position-zone-legend__swatch--relegation {
    background: rgba(220, 53, 69, 0.38);
    border: 1px solid #dc3545;
}

.rival-level-results-summary {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(620px, 1.4fr);
    gap: 14px;
    margin-top: 18px;
}

.rival-summary-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8dee4;
    background: #ffffff;
}

.rival-summary-panel__title {
    min-height: 28px;
    padding: 7px 10px;
    background: #e1e3e5;
    color: #263548;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.rival-level-summary {
    padding: 8px 10px;
}

.rival-level-summary__row {
    display: grid;
    grid-template-columns: minmax(155px, 1.2fr) minmax(90px, 0.8fr) minmax(185px, 1.35fr);
    align-items: center;
    gap: 8px;
    min-height: 25px;
}

.rival-level-summary__label,
.rival-level-summary__value {
    color: #344054;
    font-size: 8.5px;
    font-weight: 700;
    white-space: nowrap;
}

.rival-level-summary__value {
    font-weight: 600;
}

.rival-level-summary__bar {
    height: 8px;
    overflow: hidden;
    background: #e8ebee;
}

.rival-level-summary__bar-fill {
    height: 100%;
    background: #6c757d;
}

.rival-result-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.rival-result-summary {
    --result-color: #6c757d;
    --result-light: #eceff1;
    min-width: 0;
    border-left: 1px solid #d8dee4;
}

.rival-result-summary:first-child {
    border-left: 0;
}

.rival-result-summary--win {
    --result-color: #55bd28;
    --result-light: #e6f6df;
}

.rival-result-summary--draw {
    --result-color: #f39a0a;
    --result-light: #fff0d8;
}

.rival-result-summary--loss {
    --result-color: #d9534f;
    --result-light: #f9dddd;
}

.rival-result-summary__title {
    padding: 7px 8px;
    background: var(--result-light);
    color: var(--result-color);
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.rival-result-summary__total {
    padding: 5px 8px 3px;
    color: #344054;
    font-size: 8.5px;
    font-weight: 700;
    text-align: center;
}

.rival-result-summary__location {
    display: grid;
    grid-template-columns: 58px minmax(45px, 1fr) 85px;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
}

.rival-result-summary__location-label {
    padding: 3px 4px;
    background: var(--result-color);
    color: #ffffff;
    font-size: 7.5px;
    font-weight: 800;
    text-align: center;
}

.rival-result-summary__location-bar {
    height: 7px;
    overflow: hidden;
    background: var(--result-light);
}

.rival-result-summary__location-fill {
    height: 100%;
    background: var(--result-color);
}

.rival-result-summary__location-value {
    color: #536274;
    font-size: 7.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .rival-level-results-summary {
        grid-template-columns: 1fr;
    }
}

.rival-score-distributions {
    display: grid;
    grid-template-columns: repeat(2, minmax(580px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.rival-score-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.rival-score-category {
    --category-color: #6c757d;
    --category-light: #eceff1;
    min-width: 0;
    border-left: 1px solid #d8dee4;
}

.rival-score-category:first-child {
    border-left: 0;
}

.rival-score-category--win {
    --category-color: #55bd28;
    --category-light: #e6f6df;
}

.rival-score-category--draw {
    --category-color: #f39a0a;
    --category-light: #fff0d8;
}

.rival-score-category--loss {
    --category-color: #d9534f;
    --category-light: #f9dddd;
}

.rival-score-category__title {
    min-height: 27px;
    padding: 7px 6px;
    background: var(--category-light);
    color: var(--category-color);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.rival-score-category__total {
    padding: 5px 6px 3px;
    color: #344054;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
}

.rival-score-category__outcomes {
    padding: 2px 6px 6px;
}

.rival-score-category__outcome {
    display: grid;
    grid-template-columns: 18px minmax(45px, 1fr) 76px;
    align-items: center;
    gap: 5px;
    min-height: 19px;
}

.rival-score-category__outcome-code {
    width: 16px;
    height: 14px;
    color: #ffffff;
    font-size: 7px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}

.rival-score-category__outcome-code--win,
.rival-score-category__outcome-fill--win {
    background: #55bd28;
}

.rival-score-category__outcome-code--draw,
.rival-score-category__outcome-fill--draw {
    background: #f39a0a;
}

.rival-score-category__outcome-code--loss,
.rival-score-category__outcome-fill--loss {
    background: #d9534f;
}

.rival-score-category__outcome-bar {
    height: 6px;
    overflow: hidden;
    background: #e8ebee;
}

.rival-score-category__outcome-fill {
    height: 100%;
}

.rival-score-category__outcome-value {
    color: #536274;
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1350px) {
    .rival-score-distributions {
        grid-template-columns: 1fr;
    }
}

.rival-standings-table {
    font-size: 13px;
}

.rival-standings-table th {
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    border-bottom: 2px solid #0d3b66;
    padding: 8px 6px;
    letter-spacing: 0.3px;
}

.rival-standings-table td {
    padding: 7px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.rival-standings-highlight {
    background-color: rgba(20, 142, 130, 0.10) !important;
    font-weight: 600;
}

.rival-standings-highlight td {
    border-bottom-color: rgba(20, 142, 130, 0.25);
}

.rival-standings-depor {
    background-color: #fff8e1 !important;
}

.rival-standings-promo1 {
    background-color: rgba(46, 125, 50, 0.06);
}

.rival-standings-promo2 {
    background-color: rgba(102, 187, 106, 0.06);
}

.rival-standings-relega {
    background-color: rgba(198, 40, 40, 0.06);
}

.rival-standings-header {
    background-color: #fafafa;
}

.rival-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.rival-player-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 14px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.rival-player-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rival-player-card--manual {
    border-style: dashed;
    border-color: #148e82;
    background: #f7fdfc;
}

.rival-player-card__manual-badge {
    margin-top: 4px;
    color: #148e82;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rival-player-card__remove-button {
    border-color: #b42318;
    color: #b42318;
}

.rival-player-card__remove-button:hover {
    border-color: #b42318;
    background: #fef3f2;
    color: #b42318;
}

.rival-player-card__number {
    min-width: 30px;
    color: #0d3b66;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.rival-player-card__content {
    min-width: 0;
    flex: 1;
}

.rival-player-card__top {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.rival-player-card__top > div {
    min-width: 0;
    flex: 1;
}

.rival-player-card__comment-button {
    width: 19px;
    height: 19px;
    min-width: 19px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 19px;
    margin: 0;
    padding: 0 0 1px;
    border: 1px solid #0d3b66;
    border-radius: 50%;
    background: #ffffff;
    color: #0d3b66;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
}

.rival-player-card__comment-button:hover {
    border-color: #148e82;
    background: #edf9f7;
    color: #148e82;
}

.rival-player-card__comment-button.has-comment {
    border-color: #15803d;
    background: #ecfdf3;
    color: #15803d;
}

.rival-player-card__position {
    margin: 1px 0 6px;
    color: #148e82;
    font-size: 11px;
    font-weight: 500;
}

.rival-player-card__comment-preview {
    margin-top: 7px;
    padding-top: 6px;
    overflow: hidden;
    border-top: 1px solid #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rival-player-comment-modal__meta {
    margin-top: 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
}

.rival-squad-header {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 76px;
    margin-bottom: 24px;
    padding: 10px 18px;
}

.rival-squad-header__identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rival-squad-header__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.rival-squad-header__team {
    margin: 0;
    color: #181818;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.rival-squad-header__manager {
    justify-self: end;
    min-width: 190px;
    color: #343a40;
}

.rival-squad-header__manager-label {
    display: inline-block;
    margin-bottom: 2px;
    padding: 2px 8px;
    background: #7e7e7e;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.35px;
}

.rival-squad-header__manager-name {
    font-size: 11px;
    font-weight: 700;
}

.rival-squad-header__legend {
    margin-top: 5px;
    color: #777;
    font-size: 9px;
    white-space: nowrap;
}

.rival-empty-state {
    max-width: 620px;
    margin: 36px auto;
    padding: 34px 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

.rival-empty-state__icon {
    margin-bottom: 12px;
    color: #148e82;
    font-size: 30px;
}

.rival-empty-state__title {
    margin-bottom: 6px;
    color: #0d3b66;
    font-size: 15px;
    font-weight: 800;
}

.rival-empty-state__text,
.rival-comparison-note {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 12px;
}

.rival-physical-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
}

.rival-comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.rival-comparison-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #fff;
    font-size: 12px;
}

.rival-comparison-table th,
.rival-comparison-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.rival-comparison-table thead th {
    background: #0d3b66;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rival-comparison-table tbody th {
    color: #334155;
    font-weight: 700;
    text-align: left;
}

.rival-comparison-table td.is-better {
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.rival-comparison-table td.is-worse {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.rival-comparison-table td.is-equal {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

.postpartido-next-rival__tabs {
    margin-bottom: 20px;
    box-shadow: none;
}

.postpartido-next-rival__content {
    min-width: 0;
}

#postpartido-section-tabs .report-section-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-x: visible;
}

#postpartido-section-tabs .report-section-tab {
    min-height: 64px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.18;
    white-space: normal;
}

/* Informe evolutivo: comparte navegación y lenguaje visual con postpartido. */
#evolutivo-section-tabs .report-section-tabs {
    grid-auto-flow: column;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-x: visible;
}

#evolutivo-section-tabs .report-section-tab {
    min-height: 58px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.18;
    white-space: normal;
}

.evolutivo-workspace {
    display: grid;
    gap: 14px;
}

.evolutivo-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    background: #f8fafc;
}

.evolutivo-context__eyebrow,
.evolutivo-panel__eyebrow {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.evolutivo-context__title {
    color: #0d3b66;
    font-size: 15px;
    font-weight: 800;
}

.evolutivo-context__meta,
.evolutivo-metric-card__meta {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.evolutivo-context__badge {
    padding: 7px 10px;
    border: 1px solid rgba(20, 142, 130, 0.28);
    border-radius: 999px;
    background: #edf9f7;
    color: #0d6f68;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.evolutivo-panel {
    min-height: 420px;
    padding: 20px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.evolutivo-panel__header {
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.evolutivo-panel__title {
    margin: 5px 0 6px;
    color: #0d3b66;
    font-size: 20px;
    font-weight: 800;
}

.evolutivo-panel__description {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.evolutivo-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.evolutivo-metric-card {
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #148e82;
    border-radius: 8px;
    background: #f8fafc;
}

.evolutivo-metric-card__title {
    color: #0d3b66;
    font-size: 12px;
    font-weight: 800;
}

.evolutivo-panel__content-placeholder {
    display: flex;
    min-height: 140px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed #b8c5d1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.evolutivo-panel__data {
    margin-top: 16px;
}

.evolutivo-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.evolutivo-chart-grid--classification {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evolutivo-chart-grid--classification .evolutivo-chart-card:last-child {
    grid-column: 1 / -1;
    width: min(560px, 100%);
    justify-self: center;
}

.evolutivo-chart-grid--participation {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    align-items: start;
}

.evolutivo-chart-grid--wide-last .evolutivo-chart-card:last-child {
    grid-column: 1 / -1;
}

.evolutivo-chart-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.05);
}

.evolutivo-chart-card--wide {
    grid-column: 1 / -1;
}

.evolutivo-section-card {
    grid-column: 1 / -1;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.05);
}

.evolutivo-section-card__band {
    background: #0d3b66;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.evolutivo-section-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evolutivo-section-card__body--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.evolutivo-chart-card table {
    border-collapse: collapse;
}

.evolutivo-chart-card table tbody tr:hover {
    background-color: #f8fafc;
}

.evolutivo-chart-card__eyebrow {
    color: #148e82;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.evolutivo-chart-card__title {
    margin: 4px 0 2px;
    color: #0d3b66;
    font-size: 14px;
    font-weight: 800;
}

.evolutivo-chart-card__meta {
    min-height: 17px;
    color: #64748b;
    font-size: 10px;
}

.evolutivo-chart-card__graph {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
}

.evolutivo-chart-card__component {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
}

.evolutivo-chart-card__graph .js-plotly-plot,
.evolutivo-chart-card__graph .plot-container,
.evolutivo-chart-card__graph .svg-container {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 980px) {
    #evolutivo-section-tabs .report-section-tabs {
        grid-auto-flow: column;
        grid-auto-columns: minmax(165px, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
    }

    .evolutivo-chart-grid,
    .evolutivo-chart-grid--classification,
    .evolutivo-chart-grid--participation {
        grid-template-columns: 1fr;
    }

    .evolutivo-chart-grid--wide-last .evolutivo-chart-card:last-child {
        grid-column: auto;
    }

    .evolutivo-chart-grid--classification .evolutivo-chart-card:last-child {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .evolutivo-context {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .evolutivo-context__badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.postpartido-analysis-card {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.postpartido-analysis-card:last-child {
    margin-bottom: 0;
}

.postpartido-analysis-card__title {
    margin-bottom: 7px;
    color: #0d3b66;
    font-size: 12px;
    font-weight: 900;
}

.postpartido-analysis-card__textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0d3b66;
    font-family: Commissioner, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

#postpartido-week-content .rival-report-field-card__label {
    font-size: 14px;
}

#postpartido-week-content .rival-report-field-card__status {
    font-size: 11px;
}

#postpartido-week-content .rival-rich-editor__surface {
    min-height: 160px;
    font-size: 14px;
    line-height: 1.5;
}

#postpartido-week-content .rival-report-field-card__save {
    font-size: 12px;
}

.postpartido-rich-text-card {
    width: 100%;
    max-width: none;
}

.postpartido-rich-text-footer {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
}

.postpartido-rich-text-footer.has-audio {
    justify-content: space-between;
}

.postpartido-rich-text-footer__save {
    flex: 0 0 auto;
}

.postpartido-audio-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.postpartido-audio-inline__title {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.postpartido-rich-text-footer .postpartido-audio-recorder {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.postpartido-rich-text-footer .postpartido-audio-status {
    margin-top: 0 !important;
    white-space: nowrap;
}

.postpartido-pdf-native-content {
    position: absolute;
    z-index: 2;
    top: 15.5%;
    right: 4%;
    bottom: 6.5%;
    left: 4%;
    overflow: hidden;
    color: #263548;
    font-family: "Commissioner", sans-serif;
}

/* Diapositivas de rankings individuales (19-27): la plantilla ya trae su
   propio título "RANKINGS INDIVIDUALES · ..." impreso como una barra fina
   justo debajo del encabezado (~17%-21.6% de la diapositiva); el valor por
   defecto de .postpartido-pdf-native-content lo tapaba. Se empieza más
   abajo para dejarlo a la vista y se aprovecha el resto del alto sobrante
   para que las tarjetas de ranking salgan más grandes. */
.postpartido-pdf-native-content--individual {
    top: 23%;
    bottom: 3%;
    /* 36.33cm de ancho sobre una diapositiva de 37.35cm (en vez del 92% /
       34.36cm del valor por defecto). */
    left: 1.36%;
    right: 1.36%;
}

.postpartido-pdf-native-content--evolutivo-ranking {
    top: calc(15.5% + 2.8cm);
}

.postpartido-pdf-native-content--performance {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.postpartido-pdf-native-content--performance .post-performance__table {
    min-width: 0;
}

.postpartido-pdf-native-content--performance .post-performance__header {
    padding: 10px 12px;
    font-size: 12px;
}

.postpartido-pdf-native-content--performance .post-performance__metric-name,
.postpartido-pdf-native-content--performance .post-performance__metric-field,
.postpartido-pdf-native-content--performance .post-performance__value,
.postpartido-pdf-native-content--performance .post-performance__comparison {
    padding: 11px 12px;
    font-size: 13px;
}

.postpartido-pdf-observation {
    margin-top: 8px;
}

.postpartido-pdf-observation__label {
    margin-bottom: 8px;
    color: #0730b4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.postpartido-pdf-observation__text,
.postpartido-pdf-observation__text * {
    margin-bottom: 6px;
    color: #0730b4 !important;
    font-family: "Commissioner", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.postpartido-pdf-observation--positive .postpartido-pdf-observation__label {
    color: #1f9d55;
}

.postpartido-pdf-observation--positive .postpartido-pdf-observation__text:not(.is-empty),
.postpartido-pdf-observation--positive .postpartido-pdf-observation__text:not(.is-empty) * {
    color: #1f9d55 !important;
}

.postpartido-pdf-observation--negative .postpartido-pdf-observation__label {
    color: #c0392b;
}

.postpartido-pdf-observation--negative .postpartido-pdf-observation__text:not(.is-empty),
.postpartido-pdf-observation--negative .postpartido-pdf-observation__text:not(.is-empty) * {
    color: #c0392b !important;
}

.postpartido-pdf-observation__text.is-empty,
.postpartido-pdf-observation__text.is-empty * {
    color: #94a3b8 !important;
    font-style: italic;
}

.postpartido-pdf-native-content--physical-charts .post-performance__physical-charts {
    height: 100%;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.postpartido-pdf-native-content--physical-charts
.post-performance__physical-charts--single {
    grid-template-columns: minmax(0, 1fr);
}

/* Página Rendimiento Físico del PPTX: las dispersiones necesitan más
   altura (~10cm) que las demás páginas de rendimiento, así que aquí se
   compacta la tabla/observaciones de arriba para hacerles sitio y además
   dejar un margen inferior (que no queden pegadas al borde de la
   diapositiva). */
.postpartido-pdf-native-content--performance-fisico {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.postpartido-pdf-native-content--performance-fisico .post-performance__table {
    min-width: 0;
}

.postpartido-pdf-native-content--performance-fisico .post-performance__header {
    padding: 5px 10px;
    font-size: 12px;
}

.postpartido-pdf-native-content--performance-fisico .post-performance__metric-name,
.postpartido-pdf-native-content--performance-fisico .post-performance__metric-field,
.postpartido-pdf-native-content--performance-fisico .post-performance__value,
.postpartido-pdf-native-content--performance-fisico .post-performance__comparison {
    padding: 6px 10px;
    font-size: 13px;
}

.postpartido-pdf-native-content--performance-fisico .postpartido-pdf-observation {
    margin-top: 3px;
}

.postpartido-pdf-native-content--performance-fisico .postpartido-pdf-observation__label {
    margin-bottom: 4px;
}

.postpartido-pdf-native-content--performance-fisico .postpartido-pdf-observation__text,
.postpartido-pdf-native-content--performance-fisico .postpartido-pdf-observation__text * {
    margin-bottom: 3px;
}

.postpartido-pdf-physical-charts {
    margin-bottom: 18px;
}

.postpartido-pdf-native-content--verification .post-verification__note {
    margin-bottom: 6px;
    font-size: 10px;
}

.postpartido-pdf-native-content--verification .postpartido-pdf-observation {
    margin-top: 8px;
}

.postpartido-pdf-native-content--verification .post-verification__section-title,
.postpartido-pdf-native-content--verification .post-verification__group {
    min-width: 0;
}

.postpartido-pdf-native-content--verification .post-verification__section-title {
    margin-top: 6px;
    padding: 3px 6px;
    font-size: 9px;
}

.postpartido-pdf-native-content--verification .post-verification__group-title {
    padding: 3px 5px;
    font-size: 8px;
}

.postpartido-pdf-native-content--verification .post-verification__row {
    grid-template-columns: minmax(85px, .8fr) minmax(150px, 1.4fr) 30px 42px minmax(115px, 1fr) 54px 54px;
}

.postpartido-pdf-native-content--verification .post-verification__header-cell,
.postpartido-pdf-native-content--verification .post-verification__cell {
    padding: 3px 5px;
    font-size: 7.5px;
    line-height: 1.25;
}

.postpartido-pdf-native-content--verification .post-verification__cell--metrics > div + div {
    margin-top: 5px;
}

.postpartido-pdf-native-content--verification .post-verification__metric-line.is-unavailable {
    font-size: 7.5px;
}

.postpartido-pdf-native-content--verification .post-verification__score {
    width: 18px;
    height: 18px;
    font-size: 8px;
}

@media (max-width: 900px) {
    .postpartido-rich-text-footer.has-audio,
    .postpartido-audio-inline {
        align-items: flex-start;
        flex-direction: column;
    }
}

.postpartido-completion .rival-completion__sections {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 980px) {
    #postpartido-section-tabs .report-section-tabs {
        grid-auto-flow: column;
        grid-auto-columns: minmax(165px, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
    }
    .postpartido-completion .rival-completion__sections {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .postpartido-completion .rival-completion__sections {
        grid-template-columns: 1fr;
    }
}

.report-workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.report-workspace-toolbar__summary {
    min-width: 0;
}

.report-workspace-toolbar__eyebrow {
    margin-bottom: 4px;
    color: #0d3b66;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.report-workspace-toolbar__match {
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-workspace-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.report-workspace-toolbar__status {
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
}

.report-workspace-week-panel {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

.report-compact-week-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
    padding: 2px;
}

.report-compact-week-button {
    width: 32px;
    height: 44px;
    flex: 0 0 32px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 3px 2px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0d3b66;
    line-height: 1;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.report-compact-week-button__label {
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.report-compact-week-button__badge,
.report-compact-week-button__empty {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    object-fit: contain;
}

.report-compact-week-button__empty {
    display: grid;
    place-items: center;
    color: #94a3b8 !important;
    font-size: 10px !important;
}

.report-compact-week-button:hover:not(:disabled) {
    border-color: #148e82;
    background: #edf9f7;
}

.report-compact-week-button.is-active {
    border-color: #0d3b66;
    background: #dbeafe;
    color: #0d3b66;
    box-shadow: 0 2px 6px rgba(13, 59, 102, 0.22);
}

.report-compact-week-button.is-empty,
.report-compact-week-button:disabled {
    border-color: #dfe5eb;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.66;
}

.report-compact-week-button.is-empty .report-compact-week-button__badge,
.report-compact-week-button:disabled .report-compact-week-button__badge {
    filter: grayscale(1);
}

/* is-pending: partido ya programado en el calendario pero aún no jugado —
   se puede seleccionar para prepararlo, así que el escudo se ve a color
   (solo un borde discontinuo lo distingue de uno ya jugado). */
.report-compact-week-button.is-pending {
    border-style: dashed;
}

.rival-completion {
    padding: 12px 14px 10px;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    background: #ffffff;
}

.rival-completion__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rival-completion__title {
    flex: 0 0 auto;
    color: #0d3b66;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.rival-completion__count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.rival-completion__overall-bar {
    height: 9px;
    min-width: 180px;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.rival-completion__overall-fill,
.rival-completion-card__fill {
    height: 100%;
    border-radius: inherit;
    background: #0d6efd;
    transition: width 180ms ease;
}

.rival-completion__overall-fill.is-complete,
.rival-completion-card__fill.is-complete {
    background: #16a34a;
}

.rival-completion__percent {
    width: 34px;
    flex: 0 0 34px;
    color: #0d3b66;
    font-size: 10px;
    font-weight: 900;
    text-align: right;
}

.rival-completion__sections {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.rival-completion-card {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.rival-completion-card.is-complete {
    border-color: #86efac;
    background: #f0fdf4;
}

.rival-completion-card__header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.rival-completion-card__title {
    min-width: 0;
    overflow: hidden;
    color: #0d3b66;
    font-size: 8px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rival-completion-card__count {
    flex: 0 0 auto;
    color: #0d3b66;
    font-size: 8px;
    font-weight: 900;
}

.rival-completion-card__bar {
    height: 5px;
    overflow: hidden;
    margin: 7px 0 6px;
    border-radius: 999px;
    background: #e8edf2;
}

.rival-completion-card__next {
    overflow: hidden;
    color: #64748b;
    font-size: 7px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rival-completion-card.is-complete .rival-completion-card__next {
    color: #15803d;
}

.rival-completion__note {
    margin-top: 7px;
    color: #64748b;
    font-size: 8px;
}

/* Legibilidad de la vista web del informe pre-partido. El PDF conserva su escala propia. */
.prepartido-web .report-workspace-toolbar__eyebrow { font-size: 12px; }
.prepartido-web .report-workspace-toolbar__match { font-size: 15px; }
.prepartido-web .report-workspace-toolbar__status { font-size: 12px; }
.prepartido-web .report-workspace-toolbar .btn { font-size: 13px; }

.prepartido-web .report-compact-week-button {
    width: 36px;
    height: 48px;
    flex-basis: 36px;
}

.prepartido-web .report-compact-week-button__label { font-size: 10px !important; }
.prepartido-web .rival-completion__title { font-size: 14px; }
.prepartido-web .rival-completion__count,
.prepartido-web .rival-completion__percent { font-size: 12px; }
.prepartido-web .rival-completion-card { padding: 10px 11px; }
.prepartido-web .rival-completion-card__title,
.prepartido-web .rival-completion-card__count { font-size: 10px; }
.prepartido-web .rival-completion-card__next { font-size: 9px; }
.prepartido-web .rival-completion__note { font-size: 10px; }
.prepartido-web .report-section-tab { font-size: 1rem; }

.prepartido-web #rival-tab-content { font-size: 15px; }
.prepartido-web #rival-tab-content .rival-section-title { font-size: 16px; }
.prepartido-web #rival-tab-content .rival-comparison-note,
.prepartido-web #rival-tab-content .rival-empty-state__text {
    font-size: 14px;
    line-height: 1.45;
}

.prepartido-web #rival-tab-content .rival-results-matrix th,
.prepartido-web #rival-tab-content .rival-results-matrix td {
    height: 26px;
    font-size: 10.5px;
}

.prepartido-web #rival-tab-content .rival-points-table th,
.prepartido-web #rival-tab-content .rival-points-table td {
    height: 25px;
    font-size: 10.5px;
}

.prepartido-web #rival-tab-content .rival-points-table tbody td {
    height: 21px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.prepartido-web #rival-tab-content .rival-points-table-wrapper {
    overflow-x: hidden;
}

.prepartido-web #rival-tab-content .rival-points-table {
    min-width: 0;
}

.prepartido-web #rival-tab-content .rival-points-table__group-header,
.prepartido-web #rival-tab-content .rival-points-table__team,
.prepartido-web #rival-tab-content .rival-points-table__team span {
    font-size: 11px !important;
}

.prepartido-web #rival-tab-content .rival-summary-panel__title { font-size: 11px; }
.prepartido-web #rival-tab-content .rival-summary-panel__title--level-points { font-size: 10px; }
.prepartido-web #rival-tab-content .rival-result-summary__location {
    grid-template-columns: 78px minmax(45px, 1fr) 85px;
}
.prepartido-web #rival-tab-content .rival-result-summary__location-label {
    white-space: nowrap;
}
.prepartido-web #rival-tab-content .rival-level-summary__label,
.prepartido-web #rival-tab-content .rival-level-summary__value,
.prepartido-web #rival-tab-content .rival-result-summary__title,
.prepartido-web #rival-tab-content .rival-result-summary__total,
.prepartido-web #rival-tab-content .rival-score-category__title,
.prepartido-web #rival-tab-content .rival-score-category__total { font-size: 10.5px; }
.prepartido-web #rival-tab-content .rival-result-summary__location-label,
.prepartido-web #rival-tab-content .rival-result-summary__location-value,
.prepartido-web #rival-tab-content .rival-score-category__outcome-value { font-size: 9.5px; }

.prepartido-web #rival-tab-content .rival-report-field-card__label { font-size: 14px; }
.prepartido-web #rival-tab-content .rival-report-field-card__optional,
.prepartido-web #rival-tab-content .rival-report-field-card__status { font-size: 11px; }
.prepartido-web #rival-tab-content .rival-rich-editor__surface {
    font-size: 14px;
    line-height: 1.5;
}
.prepartido-web #rival-tab-content .rival-report-field-card__save { font-size: 12px; }

.prepartido-web #rival-tab-content .rival-h2h-panel__title,
.prepartido-web #rival-tab-content .rival-h2h-panel__subheader,
.prepartido-web #rival-tab-content .rival-h2h-metric__title { font-size: 12px; }
.prepartido-web #rival-tab-content .rival-h2h-legend__item,
.prepartido-web #rival-tab-content .rival-h2h-row__rank,
.prepartido-web #rival-tab-content .rival-h2h-row__team,
.prepartido-web #rival-tab-content .rival-h2h-row__team > span,
.prepartido-web #rival-tab-content .rival-h2h-row__value { font-size: 10.5px !important; }

.prepartido-web #rival-tab-content .rival-player-card__position { font-size: 13px; }
.prepartido-web #rival-tab-content .rival-player-card__comment-preview,
.prepartido-web #rival-player-comment-meta,
.prepartido-web #possible-xi-player-meta { font-size: 11px; }
.prepartido-web #rival-player-comment-text { font-size: 14px !important; }

.prepartido-web #rival-tab-content .possible-xi__observations-label,
.prepartido-web #rival-tab-content .rival-forecast__label { font-size: 14px; }
.prepartido-web #rival-tab-content .possible-xi__observations,
.prepartido-web #rival-tab-content .rival-forecast__textarea { font-size: 14px; }
.prepartido-web #rival-tab-content .possible-xi__observations-save,
.prepartido-web #rival-tab-content .possible-xi__observations-save-status { font-size: 11px !important; }

.prepartido-web #rival-tab-content .rival-plan__title { font-size: 19px; }
.prepartido-web #rival-tab-content .rival-plan__subtitle { font-size: 13px; }
.prepartido-web #rival-tab-content .rival-plan__save-state,
.prepartido-web #rival-tab-content .rival-plan__column-title { font-size: 12px; }
.prepartido-web #rival-tab-content .rival-plan__section-title { font-size: 16px; }
.prepartido-web #rival-tab-content .rival-plan__group-title { font-size: 13px; }
.prepartido-web #rival-tab-content .rival-plan__cell,
.prepartido-web #rival-tab-content .rival-plan__select,
.prepartido-web #rival-tab-content .rival-plan__select .Select-control,
.prepartido-web #rival-tab-content .rival-plan__select div[class*="-control"] {
    font-size: 13px !important;
}

/* Salida y previsualización PDF de los informes pre/post-partido. */
.report-page-header {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.report-page-title,
.report-page-header__heading {
    width: 100%;
    text-align: center;
}

.report-header-actions {
    display: flex;
    position: absolute;
    right: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.report-pdf-export-panel {
    padding: 22px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: #fff;
}

.report-pdf-status {
    margin-bottom: 16px;
}

.report-pdf-export-button:disabled {
    cursor: not-allowed;
}

.report-pptx-export-button:disabled {
    cursor: not-allowed;
}

.report-pptx-capture-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 1500px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    pointer-events: none;
    z-index: 2147483000;
}

.report-pptx-capture-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #0730b4;
    font-size: 16px;
    font-weight: 800;
    z-index: 2147483647;
}

.report-pptx-capture-overlay__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-pptx-capture-stage .report-pdf-document {
    display: block !important;
    width: 1500px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.report-pptx-capture-stage .report-pdf-page {
    display: block !important;
    width: 1500px !important;
    max-width: none !important;
    height: 843.75px !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.report-pdf-export-source {
    position: fixed;
    left: -100000px;
    top: 0;
    width: 338.667mm;
    pointer-events: none;
}

.report-pdf-preview {
    padding: 18px;
    overflow-x: auto;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    background: #e9edf2;
}

.report-pdf-document {
    width: 100%;
    color: #111827;
    background: #e9edf2;
}

.report-pdf-document .report-pdf-page,
.report-pdf-document .report-pdf-page :where(
    div, span, p, h1, h2, h3, h4, h5, h6,
    label, li, a, th, td, input, textarea, button, text
) {
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
}

.report-pdf-document .report-pdf-page .report-pdf-display-title,
.report-pdf-document .report-pdf-page .report-pdf-page__title,
.report-pdf-document .report-pdf-page .report-cover-reference__title,
.report-pdf-document .report-pdf-page .report-cover-reference__match,
.report-pdf-document .report-pdf-page .report-cover-reference__detail {
    font-family: var(--font-report-display) !important;
    font-variation-settings: normal !important;
}

.report-pdf-document .report-pdf-page .report-pdf-headline-subtitle {
    font-family: var(--font-report-headline) !important;
    font-variation-settings: normal !important;
}

.report-pdf-page {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0 auto 18px;
    padding: 13mm 14mm;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.report-pdf-page:last-child {
    margin-bottom: 0;
}

.report-pdf-page__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #b4a06b;
}

.report-pdf-page__logo {
    width: 42px;
    height: 52px;
    object-fit: contain;
}

.report-pdf-page__eyebrow {
    color: #148e82;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.report-pdf-page__title {
    margin: 2px 0;
    color: #0730b4;
    font-size: 20px;
    font-weight: 900;
}

.report-pdf-page__subtitle {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.report-pdf-page__content {
    transform-origin: top left;
}

.report-powerpoint-page__content {
    position: absolute;
    z-index: 2;
    top: 15.5%;
    right: 4%;
    bottom: 6.5%;
    left: 4%;
    width: 124.3%;
    height: 113%;
    overflow: hidden;
    transform: scale(0.74);
    transform-origin: top left;
}

.report-powerpoint-page__content > div {
    margin-top: 0 !important;
}

.report-powerpoint-page__content--classification {
    top: 18.2%;
    left: 4%;
    width: 115%;
    height: 99%;
    transform: scale(0.80);
}

.report-powerpoint-classification > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 14px;
    margin-right: 0;
    margin-left: 0;
    --bs-gutter-x: 0;
}

.report-powerpoint-classification > .row > .col-lg-7,
.report-powerpoint-classification > .row > .col-lg-5 {
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    padding: 0;
    margin: 0 !important;
}

.report-powerpoint-classification > .row > .col-lg-7 > div,
.report-powerpoint-classification > .row > .col-lg-5 > div {
    height: 500px !important;
    border-color: transparent !important;
    background: transparent !important;
}

.report-powerpoint-classification .dash-graph,
.report-powerpoint-classification .js-plotly-plot,
.report-powerpoint-classification .plot-container,
.report-powerpoint-classification .svg-container {
    height: 445px !important;
    min-height: 445px !important;
    max-height: 445px !important;
}

.report-powerpoint-classification .rival-points-table th,
.report-powerpoint-classification .rival-points-table td {
    height: 22px;
    padding: 2px 3px;
    font-size: 12.5px;
}

.report-powerpoint-classification .rival-points-table tbody td {
    height: 24px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.report-powerpoint-classification h6 {
    font-size: 12px !important;
}

.report-powerpoint-classification .rival-points-table__group-header {
    height: 22px !important;
    font-size: 11.5px !important;
}

.report-powerpoint-classification .rival-points-table__stat-header {
    height: 22px;
    font-size: 10.5px !important;
}

.report-powerpoint-classification .rival-points-table__team,
.report-powerpoint-classification .rival-points-table__team span {
    font-size: 12px !important;
}

.report-powerpoint-classification .rival-points-table__stat--points,
.report-powerpoint-classification .rival-points-table__stat-header--points {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
}

.report-powerpoint-classification .rival-points-table-wrapper {
    margin-top: 7px;
    overflow: hidden;
    background: transparent;
}

.report-powerpoint-classification .rival-points-table {
    background: transparent;
}

.report-powerpoint-classification .rival-summary-panel {
    background: transparent;
}

.report-powerpoint-classification .rival-level-results-summary {
    grid-template-columns: minmax(450px, 0.84fr) minmax(750px, 1.56fr);
    gap: 12px;
    margin-top: 10px;
}

.report-powerpoint-classification .rival-level-summary__row {
    grid-template-columns: 210px 100px minmax(200px, 1fr);
    gap: 6px;
}

.report-powerpoint-classification .rival-result-summary__location {
    grid-template-columns: 96px minmax(40px, 1fr) 88px;
}

.report-powerpoint-classification .rival-result-summary__location-label {
    white-space: nowrap;
}

.report-powerpoint-classification .rival-score-distributions {
    gap: 12px;
    margin-top: 10px;
}

.report-powerpoint-classification .rival-summary-panel__title {
    min-height: 24px;
    padding: 5px 8px;
}

.report-powerpoint-classification .rival-summary-panel__title {
    font-size: 13px;
}

.report-powerpoint-classification .rival-summary-panel__title--level-points {
    font-size: 11.5px;
}

.report-powerpoint-classification .rival-level-summary {
    padding: 5px 8px;
}

.report-powerpoint-classification .rival-level-summary__row {
    min-height: 25px;
}

.report-powerpoint-classification .rival-level-summary__label,
.report-powerpoint-classification .rival-level-summary__value {
    font-size: 12.5px;
}

.report-powerpoint-classification .rival-result-summary__title,
.report-powerpoint-classification .rival-result-summary__total,
.report-powerpoint-classification .rival-result-summary__location-label,
.report-powerpoint-classification .rival-result-summary__location-value {
    font-size: 11.5px;
}

.report-powerpoint-classification .rival-result-summary__title {
    padding: 5px 7px;
}

.report-powerpoint-classification .rival-result-summary__total {
    padding: 4px 7px 2px;
}

.report-powerpoint-classification .rival-result-summary__location {
    padding: 3px 6px;
}

.report-powerpoint-classification .rival-score-category__title,
.report-powerpoint-classification .rival-score-category__total {
    font-size: 11.5px;
}

.report-powerpoint-classification .rival-score-category__title {
    min-height: 23px;
    padding: 5px;
    font-size: 12.5px;
}

.report-powerpoint-classification .rival-score-category__total {
    padding: 4px 5px 2px;
}

.report-powerpoint-classification .rival-score-category__outcomes {
    padding: 1px 5px 4px;
}

.report-powerpoint-classification .rival-score-category__outcome {
    min-height: 19px;
}

.report-powerpoint-classification .rival-score-category__outcome-value {
    font-size: 11px;
}

/* Segunda diapositiva de Situación clasificatoria / Tendencia de resultados. */
.report-classification-reference {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 32px 420px 82px 70px 70px 70px;
    gap: 8px;
    width: 100%;
    height: 792px;
    padding: 0;
    overflow: hidden;
    background: #e5e7eb;
    color: #0b1b4b;
    font-family: Commissioner, sans-serif;
}

.report-classification-reference__main-title,
.report-classification-reference__section-title,
.report-classification-reference__panel-title {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1b83;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.report-classification-reference__main-title {
    min-height: 32px;
    font-size: 15px;
    letter-spacing: 0.025em;
}

.report-classification-reference__top-grid {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    gap: 14px;
    min-height: 0;
}

.report-classification-reference__standings,
.report-classification-reference__evolution {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #c6d0df;
}

.report-classification-reference__standings table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.report-classification-reference__standings th {
    height: 28px;
    padding: 2px 7px;
    background: #0b1b83;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.report-classification-reference__standings th:nth-child(1) { width: 8%; }
.report-classification-reference__standings th:nth-child(2) { width: 43%; text-align: left; }
.report-classification-reference__standings th:nth-child(3) { width: 10%; }
.report-classification-reference__standings th:nth-child(4) { width: 9%; }
.report-classification-reference__standings th:nth-child(5) { width: 18%; }
.report-classification-reference__standings th:nth-child(6) { width: 12%; }

.report-classification-reference__standings td {
    height: 18px;
    padding: 1px 7px;
    overflow: hidden;
    border-right: 1px solid #edf1f6;
    border-bottom: 1px solid #cfd9e7;
    color: #0b1b4b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9.5px;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-classification-reference__standings td:nth-child(2) {
    font-weight: 600;
    text-align: left;
}

.report-classification-reference__standing-row:nth-child(even) td {
    background: #f1f5f9;
}

.report-classification-reference__standing-row.is-rival td {
    background: #fff0b3;
}

.report-classification-reference__standing-row.is-rival td:first-child {
    background: #d6a800;
    color: #ffffff;
}

.report-classification-reference__standing-row.is-depor td {
    background: #d9eaff;
    color: #0645b5;
    font-weight: 800;
}

.report-classification-reference__standing-row.is-depor td:first-child {
    background: #1647c8;
    color: #ffffff;
}

.report-classification-reference__evolution {
    display: grid;
    grid-template-rows: 28px minmax(0, 1fr);
    background: transparent;
    border: 0;
}

.report-classification-reference__panel-title {
    min-height: 28px;
    font-size: 10px;
}

.report-classification-reference .report-classification-reference__evolution-graph,
.report-classification-reference .report-classification-reference__evolution-graph .js-plotly-plot,
.report-classification-reference .report-classification-reference__evolution-graph .plot-container,
.report-classification-reference .report-classification-reference__evolution-graph .svg-container {
    width: 100% !important;
    height: 392px !important;
    min-height: 392px !important;
    max-height: 392px !important;
}

.report-classification-reference__section {
    display: grid;
    grid-template-rows: 22px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}

.report-classification-reference__section-title {
    min-height: 22px;
    font-size: 11px;
    letter-spacing: 0.025em;
}

.report-classification-reference__level-grid,
.report-classification-reference__distribution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.report-classification-reference__level-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 5px 8px;
    background: #ffffff;
    border: 1px solid #c4cfdf;
    border-radius: 3px;
}

.report-classification-reference__level-name,
.report-classification-reference__level-average {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid #9db6e8;
    border-radius: 3px;
    background: #edf3ff;
    color: #0b1b83;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
}

.report-classification-reference__level-name strong,
.report-classification-reference__level-average strong {
    font-size: 13px;
}

.report-classification-reference__level-record {
    overflow: hidden;
    color: #0b1b4b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-classification-reference__distribution-card {
    --distribution-color: #4dbd33;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 5px 8px;
    background: #ffffff;
    border: 1px solid #c4cfdf;
    border-radius: 3px;
}

.report-classification-reference__distribution-card.is-draw {
    --distribution-color: #f2b705;
}

.report-classification-reference__distribution-card.is-loss {
    --distribution-color: #dc3545;
}

.report-classification-reference__distribution-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    color: #0b1b4b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.report-classification-reference__distribution-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 2px;
    background: #dfe5ed;
}

.report-classification-reference__distribution-fill {
    height: 100%;
    min-width: 0;
    background: var(--distribution-color);
}

.report-classification-reference__distribution-card.is-empty
.report-classification-reference__distribution-fill {
    width: 100% !important;
    opacity: 0.32;
}

.report-powerpoint-page__content--results {
    top: 19%;
    right: auto;
    bottom: auto;
    left: 3.15%;
    width: 93.7%;
    height: 73%;
    transform: none;
}

.report-powerpoint-page__content--results .rival-results-matrix th,
.report-powerpoint-page__content--results .rival-results-matrix td {
    height: 33px;
    padding: 4px 3px;
    font-size: 12px;
}

.report-powerpoint-page__content--results .rival-results-matrix-wrapper {
    margin-top: 0;
    overflow: hidden;
}

.report-powerpoint-page__content--results .rival-results-matrix {
    width: 100%;
    min-width: 100%;
}

.report-powerpoint-page__content--results .rival-results-matrix__label {
    width: 90px;
    min-width: 90px;
}

.report-powerpoint-page__content--results :is(
    .rival-results-matrix__week,
    .rival-results-matrix__rival,
    .rival-results-matrix__score,
    .rival-results-matrix__result
) {
    width: auto;
    min-width: 0;
}

.report-powerpoint-page__content--results :is(
    .rival-results-matrix__summary,
    .rival-results-matrix__summary-header
) {
    width: 58px;
    min-width: 58px;
}

.report-powerpoint-page__content--results .report-powerpoint-results-comment {
    box-sizing: border-box;
    min-height: 94px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-top: 0;
    background: #ffffff;
}

.report-template-section-band {
    box-sizing: border-box;
    min-height: 36px;
    padding: 8px 14px;
    background: #0730b4;
    color: #ffffff !important;
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.report-powerpoint-page__content--results .report-powerpoint-plain-text__label {
    color: #ffffff !important;
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
}

.report-powerpoint-results-matrix {
    margin-top: 10px;
}

.report-powerpoint-page__content--results .report-powerpoint-plain-text,
.report-powerpoint-page__content--results .report-powerpoint-plain-text * {
    color: #0730b4 !important;
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
}

.report-powerpoint-page__content--peculiarities-text,
.report-powerpoint-page__content--squad-comments {
    top: 19%;
    right: auto;
    bottom: auto;
    left: 3.15%;
    display: block;
    width: 93.7%;
    height: auto;
    overflow: visible;
    transform: none;
}

.report-peculiarities-template {
    width: 100%;
    color: #0730b4;
}

.report-peculiarities-template__band {
    box-sizing: border-box;
    min-height: 36px;
    padding: 8px 14px;
    background: #0730b4;
    color: #ffffff !important;
    font-family: var(--font-report-body) !important;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.report-peculiarities-template__rows {
    margin-top: 10px;
}

.report-peculiarities-template__row {
    display: grid;
    grid-template-columns: 17% minmax(0, 1fr);
    min-height: 76px;
    margin-bottom: 11px;
    border: 1px solid #b8c2cf;
    background: #ffffff;
}

.report-peculiarities-template__row:last-child {
    margin-bottom: 0;
}

.report-peculiarities-template__label,
.report-peculiarities-template__value {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px 14px;
    color: #0730b4 !important;
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
    font-size: 15px !important;
    line-height: 1.22;
}

.report-peculiarities-template__label {
    border-right: 1px solid #b8c2cf;
    font-weight: 800;
}

.report-peculiarities-template__value .report-powerpoint-plain-text,
.report-peculiarities-template__value .report-powerpoint-plain-text * {
    margin: 0 !important;
    color: #0730b4 !important;
    font-family: var(--font-report-body) !important;
    font-variation-settings: normal !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
}

.report-powerpoint-page__content--head-to-head {
    top: 22.4%;
    right: auto;
    bottom: auto;
    left: 3.15%;
    width: 117.1%;
    height: 92%;
    transform: scale(0.80);
}

.report-h2h {
    box-sizing: border-box;
    overflow: visible;
    border: 0;
    background: #fff;
    padding: 8px 8px 10px;
}

.report-h2h__legend {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.report-h2h__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.report-powerpoint-page__content--head-to-head .report-h2h__grid--all {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px;
    background: #fff;
}

.report-powerpoint-page__content--head-to-head
    .report-h2h__grid--all:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.report-powerpoint-page__content--head-to-head
    .report-h2h__grid--all:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.report-h2h__grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-h2h__grid .rival-h2h-metric {
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    overflow: hidden;
}

.report-h2h__grid--all .rival-h2h-metric__title {
    font-size: 14px;
}

.report-h2h__grid--all .rival-h2h-row__rank,
.report-h2h__grid--all .rival-h2h-row__team,
.report-h2h__grid--all .rival-h2h-row__team > span,
.report-h2h__grid--all .rival-h2h-row__value {
    font-size: 12px !important;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-row {
    min-height: 34px;
    gap: 8px;
    padding: 4px 10px;
}

.report-powerpoint-page__content--head-to-head :is(
    .rival-h2h-row__logo,
    .rival-h2h-row__mean-icon
) {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-row__rank {
    width: 24px;
    flex-basis: 24px;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-row__team {
    width: 68px;
    flex-basis: 68px;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-row__bar {
    height: 10px;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-row__value {
    width: 60px;
    flex-basis: 60px;
}

.report-powerpoint-page__content--head-to-head .rival-h2h-legend__item {
    font-size: 12px !important;
}

.report-powerpoint-page__content--plan {
    width: 153.333%;
    height: 154%;
    transform: scale(0.60);
}

.report-powerpoint-page__content--squad {
    top: 16.5%;
    right: auto;
    bottom: auto;
    left: 4%;
    width: 122.67%;
    height: 110%;
    transform: scale(0.75);
}

.report-powerpoint-page__content--squad .rival-player-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.report-powerpoint-page__content--squad .rival-player-card {
    gap: 14px;
    padding: 10px 12px;
}

.report-powerpoint-page__content--squad .rival-player-card__number {
    font-size: 17px;
}

.report-powerpoint-page__content--squad .rival-player-card__top > div {
    font-size: 15px !important;
}

.report-powerpoint-page__content--squad .rival-player-card__position {
    font-size: 12.5px;
}

.report-powerpoint-page__content--squad .rival-player-card__content span {
    font-size: 12px !important;
}

.report-powerpoint-page__content--squad .rival-player-card__comment-preview {
    display: none !important;
}

.report-powerpoint-page__content--squad .rival-squad-header__identity {
    transform: translateX(60px);
}

.report-powerpoint-page__content--squad .rival-squad-header__logo {
    width: 56px;
    height: 56px;
}

.report-powerpoint-page__content--squad .rival-squad-header__team {
    font-size: 26px;
}

.report-powerpoint-page__content--squad .rival-squad-header__manager-label {
    padding: 3px 10px;
    font-size: 14px;
}

.report-powerpoint-page__content--squad .rival-squad-header__manager-name {
    margin-top: 3px;
    font-size: 16px;
}

.report-powerpoint-page__content--squad .rival-squad-header__legend {
    margin-top: 7px;
    font-size: 13px;
}

.report-powerpoint-page__content--squad .mb-4 {
    margin-bottom: 12px !important;
}

.report-powerpoint-page__content--squad-comments .report-squad-comments {
    width: 100%;
}

.report-squad-comments__grid {
    display: block;
}

.report-squad-comment {
    min-width: 0;
    margin-bottom: 10px;
    color: #0730b4;
    font-family: "Commissioner", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.18;
    break-inside: avoid;
}

.report-squad-comment__player {
    color: inherit;
    font: inherit;
    font-weight: 600;
}

.report-squad-comment__text {
    color: inherit;
    font: inherit;
    white-space: pre-wrap;
}

.report-powerpoint-page__content--xi {
    top: 14.5%;
    width: 107%;
    height: 95%;
    transform: scale(0.86);
}

.report-powerpoint-page__content--plan-summary {
    top: 9%;
    bottom: auto;
    display: flex;
    align-items: center;
    width: 108.24%;
    height: 100%;
    transform: scale(0.85);
}

.report-powerpoint-page__content--plan-summary-combined {
    top: 24.1%;
    bottom: auto;
    left: 1.11%;
    display: block;
    width: 135.8%;
    height: 124%;
    transform: scale(0.72);
}

.report-plan-summary-page--combined {
    display: grid;
    gap: 18px;
}

.report-plan-summary-page--combined .report-plan-summary__row {
    min-height: 40px;
}

.report-plan-summary-page--combined .report-plan-summary__row > div {
    padding: 5px 8px;
}

.report-plan-summary-page--combined .report-plan-summary__item,
.report-plan-summary-page--combined .report-plan-summary__item span,
.report-plan-summary-page--combined .report-plan-summary__description {
    font-size: 9px !important;
    line-height: 1.12;
}

.report-plan-summary-page--combined .report-plan-summary__value,
.report-plan-summary-page--combined .report-plan-summary__reference {
    font-size: 9px;
}

.report-plan-summary-page--combined .report-plan-summary__section-title {
    font-size: 9px;
}

.report-plan-summary-page--combined .report-plan-summary__column {
    font-size: 9px;
}

.report-plan-summary__observations-combined {
    margin: 0 4px 2px;
}

.report-plan-summary__observations-combined .report-powerpoint-plain-text,
.report-plan-summary__observations-combined .report-powerpoint-plain-text * {
    color: #0730b4 !important;
    font-family: "Commissioner", sans-serif !important;
    font-variation-settings: "FLAR" 100 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.report-plan-summary__observations-combined .report-powerpoint-plain-text p {
    margin: 0 !important;
}

.report-powerpoint-page__content--plan-summary > .report-plan-summary-page {
    position: relative;
    width: 100%;
}

.report-plan-summary {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.report-plan-summary__header,
.report-plan-summary__row {
    display: grid;
    grid-template-columns: 24% minmax(0, 1fr) 10% 14%;
}

.report-plan-summary__header {
    background: #0730b4;
    color: #fff;
}

.report-plan-summary__section-title {
    padding: 8px 12px;
    background: #e1e3e5;
    color: #0730b4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.025em;
}

.report-plan-summary__column {
    padding: 9px 10px;
    border-right: 1px solid rgba(255,255,255,.25);
    font-size: 11px;
    font-weight: 800;
}

.report-plan-summary__row {
    min-height: 64px;
    border-top: 1px solid #d8e0e8;
}

.report-plan-summary__row > div {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 9px 10px;
    border-right: 1px solid #e2e8f0;
}

.report-plan-summary__item {
    flex-direction: column;
    align-items: flex-start !important;
    color: #0730b4;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.report-plan-summary__item span {
    margin-top: 4px;
    color: #263548 !important;
    font-size: 12px !important;
}

.report-plan-summary__description {
    color: #263548;
    font-size: 12px;
    line-height: 1.3;
}

.report-plan-summary__value,
.report-plan-summary__reference {
    justify-content: center;
    color: #0730b4;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.report-plan-summary__reference {
    color: #536274;
    font-size: 11px;
}

.report-plan-summary__observations-standalone {
    position: absolute;
    right: 4px;
    bottom: calc(100% + 40px);
    left: 4px;
    margin: 0;
}

.report-plan-summary__observations-standalone .report-powerpoint-plain-text,
.report-plan-summary__observations-standalone .report-powerpoint-plain-text * {
    color: #0730b4 !important;
    font-family: "Commissioner", sans-serif !important;
    font-variation-settings: "FLAR" 100 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

.report-plan-summary__observations-standalone .report-powerpoint-plain-text p {
    margin: 0 !important;
}

.report-plan-summary--compact .report-plan-summary__section-title {
    padding: 6px 10px;
    font-size: 13px;
}

.report-plan-summary--compact .report-plan-summary__column {
    padding: 6px 8px;
    font-size: 12px;
}

.report-plan-summary--compact .report-plan-summary__row {
    min-height: 43px;
}

.report-plan-summary--compact .report-plan-summary__row > div {
    padding: 5px 8px;
}

.report-plan-summary--compact .report-plan-summary__item {
    font-size: 11px;
    line-height: 1.12;
}

.report-plan-summary--compact .report-plan-summary__item span,
.report-plan-summary--compact .report-plan-summary__description {
    font-size: 12.5px !important;
    line-height: 1.18;
}

.report-plan-summary--compact .report-plan-summary__value {
    font-size: 13.5px;
}

.report-plan-summary--compact .report-plan-summary__reference {
    font-size: 11.5px;
}

/* La tabla combinada debe prevalecer sobre las reglas compactas genéricas. */
.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__section-title {
    font-size: 9px !important;
}

.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__column {
    font-size: 9px !important;
}

.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__item,
.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__item span,
.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__description,
.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__value,
.report-plan-summary-page--combined
    .report-plan-summary--compact .report-plan-summary__reference {
    font-size: 9px !important;
}

.report-powerpoint-cover__background,
.report-powerpoint-back-cover__background {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #0730b4;
}

.report-powerpoint-cover__body,
.report-powerpoint-back-cover__body {
    position: absolute;
    z-index: 2;
    inset: 13% 8% 9%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.report-powerpoint-cover__title {
    margin-bottom: 6%;
    color: #fff;
    font-size: clamp(1.45rem, 3.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.025em;
}

.report-powerpoint-cover__teams {
    display: grid;
    width: min(70%, 800px);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7%;
}

.report-powerpoint-cover__badge {
    width: min(42%, 180px);
    max-height: 150px;
    object-fit: contain;
}

.report-powerpoint-cover__team {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(0.7rem, 1.35vw, 1.15rem);
    font-weight: 900;
}

.report-powerpoint-cover__versus {
    color: #b4a06b;
    font-size: clamp(1.1rem, 2.3vw, 2rem);
    font-weight: 900;
}

.report-powerpoint-cover__matchday {
    margin-top: 5%;
    padding: 8px 28px;
    border-top: 2px solid #b4a06b;
    border-bottom: 2px solid #b4a06b;
    color: #fff;
    font-size: clamp(0.72rem, 1.45vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-powerpoint-plain-text__label {
    margin-bottom: 6px;
    color: #0730b4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.report-powerpoint-plain-text {
    color: #1f2937;
    font-family: "Commissioner", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.report-powerpoint-plain-text p:last-child {
    margin-bottom: 0;
}

.report-powerpoint-plain-text.is-empty {
    color: #94a3b8;
    font-style: italic;
}

.report-powerpoint-results-comment,
.report-powerpoint-xi-comment {
    margin-top: 16px;
    padding: 0 4px;
}

.report-powerpoint-xi-comment .report-powerpoint-plain-text__label,
.report-powerpoint-xi-comment .report-powerpoint-plain-text {
    color: #0730b4;
    font-family: "Commissioner", sans-serif;
    font-variation-settings: "FLAR" 100;
}

.report-powerpoint-xi-comment .report-powerpoint-plain-text__label {
    font-size: 14px;
}

.report-powerpoint-xi-comment .report-powerpoint-plain-text {
    font-size: 14px;
    line-height: 1.42;
}

.report-powerpoint-xi .possible-xi__header,
.report-powerpoint-xi .possible-xi__system-grid,
.report-powerpoint-xi .possible-xi__observations-header,
.report-powerpoint-xi .possible-xi__observations-label,
.report-powerpoint-xi .possible-xi__observations {
    display: none !important;
}

.report-powerpoint-page__content--xi .possible-xi {
    max-width: 820px;
}

.report-powerpoint-page__content--xi .possible-xi__pitch {
    max-width: 420px;
}

.report-powerpoint-page__content--xi .possible-xi__slot-button.is-assigned {
    width: 86px;
    min-height: 50px;
}

.report-powerpoint-page__content--xi .possible-xi__player-name {
    font-size: 12px !important;
    line-height: 1.08;
}

.report-powerpoint-page__content--xi .possible-xi__player-number {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px !important;
}

.report-powerpoint-back-cover__logo {
    width: 6.93cm;
    max-width: none;
    height: 2.98cm;
    max-height: none;
    object-fit: fill;
}

.report-powerpoint-back-cover__club {
    margin-top: 22px;
    color: #fff;
    font-size: clamp(1.1rem, 2.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-powerpoint-back-cover__team {
    margin-top: 7px;
    color: #b4a06b;
    font-size: clamp(0.68rem, 1.25vw, 1.05rem);
    font-weight: 900;
    letter-spacing: 0.16em;
}

.report-section-index__crest {
    position: absolute;
    top: 2.2%;
    left: 3.1%;
    width: 7.2%;
    height: 11.5%;
    object-fit: contain;
    z-index: 2;
}

.report-section-index__items {
    position: absolute;
    top: 36.2%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5.8vh;
    z-index: 2;
}

.report-section-index__item {
    display: flex;
    width: 100%;
    height: 7.2vh;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4.2%;
    color: #b4a06b;
    font-size: clamp(1.05rem, 2vw, 1.85rem);
    font-weight: 600;
    line-height: 1;
    text-align: right;
    box-sizing: border-box;
}

.report-section-index__item--active {
    background: #b4a06b;
    color: #0730b4;
}

.report-section-index--dense .report-section-index__items {
    top: 34%;
    gap: 1.35vh;
}

.report-section-index--dense .report-section-index__item {
    height: 6.25vh;
    font-size: clamp(0.72rem, 1.45vw, 1.35rem);
}

.report-cover-reference__body {
    position: absolute;
    inset: 8% 8% 7%;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #fff;
    font-family: "Commissioner", sans-serif;
    text-align: center;
}

.report-cover-reference__crest {
    display: block;
    width: 6.93cm;
    min-width: 0;
    max-width: none;
    height: 2.98cm;
    max-height: none;
    margin: 9.5% auto 0;
    object-fit: fill;
}

.report-cover-reference__club {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 1.2%;
    color: #fff;
    font-size: clamp(1rem, 2.25vw, 2rem);
    letter-spacing: -0.035em;
}

.report-cover-reference__club-light {
    font-weight: 300;
}

.report-cover-reference__club-bold {
    font-weight: 800;
}

.report-cover-reference__line {
    width: 65%;
    height: 3px;
    margin-top: 5%;
    background: #fff;
}

.report-cover-reference__title {
    margin-top: 2.2%;
    color: #fff;
    font-size: 45px;
    font-weight: 800;
    font-variation-settings: "FLAR" 100;
    letter-spacing: 0.015em;
    line-height: 1;
}

.report-cover-reference__match {
    margin-top: 2.2%;
    color: #fff;
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    font-variation-settings: "FLAR" 100;
    letter-spacing: 0.02em;
}

.report-cover-reference__detail {
    margin-top: 1.1%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 600;
    font-variation-settings: "FLAR" 100;
    letter-spacing: 0.035em;
}

.report-cover-reference__line--bottom {
    margin-top: 2.4%;
}

.report-cover-reference__club--back {
    margin-top: 2%;
    font-size: clamp(1.15rem, 2.7vw, 2.5rem);
}

/* En la vista PDF los campos conservan su contenido, pero dejan de ser editables. */
.report-pdf-document .rival-rich-editor__toolbar,
.report-pdf-document .rival-report-field-card__status,
.report-pdf-document .report-workspace-toolbar__actions,
.report-pdf-document button:not(.possible-xi__slot-button),
.report-pdf-document .postpartido-audio-recorder,
.report-pdf-document .rival-plan__actions {
    display: none !important;
}

.report-pdf-document .rival-rich-editor__surface,
.report-pdf-document textarea,
.report-pdf-document input,
.report-pdf-document .Select-control,
.report-pdf-document .possible-xi__slot-button {
    pointer-events: none !important;
}

.report-pdf-document .rival-rich-editor__surface,
.report-pdf-document textarea {
    border-color: transparent !important;
    background: #fff !important;
}

body.report-pdf-printing {
    background: #fff !important;
}

@media print {
    @page {
        size: 338.667mm 190.5mm;
        margin: 0;
    }

    body.report-pdf-printing * {
        visibility: hidden !important;
    }

    body.report-pdf-printing,
    body.report-pdf-printing .report-pdf-export-source,
    body.report-pdf-printing .report-pdf-document,
    body.report-pdf-printing .report-pdf-document * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.report-pdf-printing {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.report-pdf-printing .report-pdf-export-source,
    body.report-pdf-printing .report-pdf-export-source *,
    body.report-pdf-printing .report-pdf-document,
    body.report-pdf-printing .report-pdf-document * {
        visibility: visible !important;
    }

    body.report-pdf-printing .report-pdf-export-source {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 338.667mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.report-pdf-printing .report-pdf-document {
        position: static;
        width: 338.667mm;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    body.report-pdf-printing .report-cover-reference,
    body.report-pdf-printing .report-section-index,
    body.report-pdf-printing .report-powerpoint-back-cover {
        background: #0730b4 !important;
        background-color: #0730b4 !important;
    }

    body.report-pdf-printing .report-pdf-page {
        width: 338.667mm;
        height: 190.5mm;
        min-height: 190.5mm;
        aspect-ratio: 16 / 9;
        margin: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    body.report-pdf-printing .report-pdf-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

@media (max-width: 1150px) {
    .rival-completion__sections {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }
}

@media (max-width: 768px) {
    .report-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-page-header__heading {
        text-align: center;
    }

    .report-header-actions,
    .report-workspace-toolbar__actions {
        position: static;
        flex-wrap: wrap;
    }

    .rival-completion__header {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .rival-completion__overall-bar {
        flex-basis: calc(100% - 48px);
        order: 4;
    }
    .rival-completion__percent {
        order: 5;
    }
    .rival-completion__sections {
        grid-template-columns: 1fr;
    }
}

.rival-h2h-panel {
    overflow: hidden;
    border: 1px solid #d8e0e8;
    border-radius: 9px;
    background: #fff;
}

.rival-h2h-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    background: #dfe4e9;
}

.rival-h2h-panel__title,
.rival-h2h-panel__subheader {
    margin: 0;
    color: #172b3f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.25px;
}

.rival-h2h-panel__subheader {
    padding: 7px 11px;
    border-top: 1px solid #d8e0e8;
    border-bottom: 1px solid #d8e0e8;
    background: #eef2f5;
    color: #0d3b66;
}

.rival-h2h-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.rival-h2h-legend__item {
    padding: 2px 5px;
    font-size: 9px !important;
    font-weight: 850;
    line-height: 1.2;
}

.rival-h2h-legend__item--depor { background: #dbeafe; color: #0d3b66 !important; }
.rival-h2h-legend__item--rival { background: #fee2e2; color: #9f3a32 !important; }
.rival-h2h-legend__item--mean { background: #dcfce7; color: #15803d !important; }

.rival-h2h-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    align-items: stretch;
}

.rival-h2h-grid--physical {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.rival-h2h-metric {
    min-width: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.rival-h2h-metric__title {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-bottom: 1px solid #e2e8f0;
    color: #0d3b66;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.rival-h2h-metric__rows {
    padding: 5px 0;
}

.rival-h2h-row {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
}

.rival-h2h-row--depor { background: #dbeafe; font-weight: 900; }
.rival-h2h-row--rival { background: #fee2e2; font-weight: 900; }
.rival-h2h-row--mean { background: #dcfce7; font-weight: 900; }

.rival-h2h-row__rank {
    width: 20px;
    flex: 0 0 20px;
    color: #64748b !important;
    font-size: 9px !important;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.rival-h2h-row__team {
    width: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: #0d3b66;
    font-size: 9px;
    white-space: nowrap;
}

.rival-h2h-row__team > span {
    color: inherit !important;
    font-size: 9px !important;
    line-height: 1;
}

.rival-h2h-row__logo,
.rival-h2h-row__mean-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    object-fit: contain;
}

.rival-h2h-row__mean-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #22a75a;
    color: white;
    font-size: 7px;
}

.rival-h2h-row__bar {
    height: 7px;
    flex: 1 1 auto;
    min-width: 22px;
    overflow: hidden;
    background: #f1f5f9;
}

.rival-h2h-row__fill { height: 100%; background: #cbd5e1; }
.rival-h2h-row__fill--depor { background: #0d3b66; }
.rival-h2h-row__fill--rival { background: #d9776b; }
.rival-h2h-row__fill--mean { background: #22a75a; }

.rival-h2h-row__value {
    width: 50px;
    flex: 0 0 50px;
    color: #172b3f !important;
    font-size: 9px !important;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1300px) {
    .rival-h2h-grid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 980px) {
    .rival-h2h-grid,
    .rival-h2h-grid--physical {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

.possible-xi-comparison {
    min-width: 0;
}

.possible-xi-comparison__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.possible-xi-comparison__autosave {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.possible-xi-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.possible-xi-comparison-grid .possible-xi {
    width: 100%;
    max-width: none;
    min-width: 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid #d8e0e8;
    border-top: 3px solid #0d3b66;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 41, 64, 0.06);
}

.possible-xi-comparison-grid .possible-xi--rival {
    border-top-color: #d9584f;
}

.possible-xi__system-grid {
    position: absolute;
    top: 13px;
    right: 12px;
    z-index: 4;
    width: 112px;
}

.possible-xi__system-label {
    display: none;
}

.possible-xi__system-select .Select-control,
.possible-xi__system-select div[class*="-control"] {
    height: 32px !important;
    min-height: 32px !important;
    border-color: #cad6e1;
    font-size: 11px !important;
}

.possible-xi__observations--compact {
    min-height: 66px;
}

.possible-xi {
    max-width: 980px;
    margin: 0 auto;
}

.possible-xi__header {
    display: flex;
    align-items: center;
    min-height: 62px;
    gap: 8px;
    margin: 0;
    padding: 8px 140px 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.possible-xi__team-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: contain;
}

.possible-xi__title {
    margin: 0;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.possible-xi__team-name {
    overflow: hidden;
    margin-top: 2px;
    color: #0d3b66;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.possible-xi__pitch-scroll {
    overflow: hidden;
    padding: 8px 10px 10px;
}

.possible-xi__pitch {
    position: relative;
    width: calc(100% - 20px);
    max-width: 340px;
    min-width: 0;
    aspect-ratio: 944 / 1464;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 12.5%,
            rgba(0, 0, 0, 0.035) 12.5%,
            rgba(0, 0, 0, 0.035) 25%
        ),
        linear-gradient(180deg, #53a94f 0%, #62b75a 50%, #4e9f49 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 5px 16px rgba(15, 23, 42, 0.14);
}

.possible-xi__pitch::before {
    content: "";
    position: absolute;
    inset: 2.5%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.possible-xi__halfway-line {
    position: absolute;
    top: 50%;
    right: 2.5%;
    left: 2.5%;
    border-top: 2px solid rgba(255, 255, 255, 0.9);
}

.possible-xi__centre-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.possible-xi__centre-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.possible-xi__penalty-area,
.possible-xi__goal-area {
    position: absolute;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
}

.possible-xi__penalty-area {
    width: 44%;
    height: 17%;
}

.possible-xi__goal-area {
    width: 20%;
    height: 7%;
}

.possible-xi__penalty-area--top,
.possible-xi__goal-area--top {
    top: 2.5%;
    border-top: 0;
}

.possible-xi__penalty-area--bottom,
.possible-xi__goal-area--bottom {
    bottom: 2.5%;
    border-bottom: 0;
}

.possible-xi__direction {
    position: absolute;
    left: 3.5%;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.possible-xi__direction--attack {
    top: 4%;
}

.possible-xi__direction--goal {
    bottom: 4%;
}

.possible-xi__slot {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.possible-xi__slot:hover,
.possible-xi__slot:focus-within {
    z-index: 4;
}

.possible-xi__position-label {
    display: none;
}

.possible-xi__slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.possible-xi__slot-button:hover,
.possible-xi__slot-button:focus-visible {
    transform: scale(1.06);
}

.possible-xi__slot-button.is-empty {
    width: 27px;
    height: 27px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(7, 36, 68, .78);
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.possible-xi__empty-symbol {
    transform: translateY(-1px);
}

.possible-xi__slot-button.is-assigned {
    width: 78px;
    min-height: 45px;
    padding: 4px 5px;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 8px;
    background: rgba(17, 36, 58, .92);
    box-shadow: 0 4px 12px rgba(0,0,0,.32);
}

.possible-xi__slot-button--rival.is-assigned {
    background: rgba(126, 31, 45, .94);
}

.possible-xi__player-number {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #1e3d59 !important;
    font-size: 9px !important;
    font-weight: 900;
}

.possible-xi__player-name {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.possible-xi-player-modal__meta {
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
}

.possible-xi__observations-label {
    display: block;
    margin: 0;
    color: #0d3b66;
    font-size: 12px;
    font-weight: 800;
}

.possible-xi__observations-header {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 7px 12px 5px;
}

.possible-xi__observations-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.possible-xi__observations-save {
    padding: 4px 9px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.possible-xi__observations-save-status {
    color: #15803d !important;
    font-size: 9px !important;
    font-weight: 750;
    white-space: nowrap;
}

.possible-xi__observations,
.rival-forecast__textarea {
    width: 100%;
    min-height: 86px;
    padding: 10px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-family: Commissioner, sans-serif;
    font-size: 12px;
    resize: vertical;
}

.possible-xi__observations {
    width: calc(100% - 24px);
    min-height: 76px;
    margin: 0 12px 12px;
}

.rival-plan {
    overflow: hidden;
    padding: 12px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #f8fafc;
}

.rival-plan__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rival-plan__title {
    margin: 0;
    color: #0d3b66;
    font-size: 16px;
    font-weight: 900;
}

.rival-plan__subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.rival-plan__save-state {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.rival-plan__autosave {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.rival-plan__table {
    min-width: 0;
}

.rival-plan__section-title {
    margin-top: 12px;
    padding: 8px 10px;
    background: #0d3b66;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.rival-plan__section-title:first-child {
    margin-top: 0;
}

.rival-plan__group {
    overflow-x: auto;
    border: 1px solid #d8e0e8;
    border-top: 0;
    background: #fff;
}

.rival-plan__group-title {
    min-width: 850px;
    padding: 7px 8px;
    background: #dbe4ec;
    color: #0d3b66;
    font-size: 11px;
    font-weight: 900;
}

.rival-plan__row {
    display: grid;
    min-width: 850px;
    grid-template-columns: minmax(150px, .75fr) minmax(280px, 2fr) 120px 112px;
    align-items: stretch;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.rival-plan__row:last-child {
    border-bottom: 0;
}

.rival-plan__row--header {
    border-bottom: 1px solid #d8e0e8;
    background: #f1f5f9;
}

.rival-plan__column-title {
    padding: 7px 8px;
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.rival-plan__column-title--center {
    text-align: center;
}

.rival-plan__cell {
    min-width: 0;
    padding: 8px;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11px;
    line-height: 1.35;
}

.rival-plan__cell--item {
    color: #0d3b66;
    font-weight: 800;
}

.rival-plan__cell--prediction {
    padding: 6px;
}

.rival-plan__cell--average {
    border-right: 0;
    color: #0d3b66;
    font-weight: 800;
    text-align: center;
}

.rival-plan__select,
.rival-plan__select .Select-control,
.rival-plan__select div[class*="-control"] {
    min-height: 32px !important;
    font-size: 11px !important;
}

.rival-plan__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #d8e0e8;
}

.rival-plan__observations {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #d8e0e8;
}

.rival-plan__observations .rival-rich-editor__surface {
    min-height: 220px;
}

.rival-forecast__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rival-forecast__card {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.rival-forecast__card--wide {
    grid-column: 1 / -1;
}

.rival-forecast__label {
    display: block;
    margin-bottom: 6px;
    color: #0d3b66;
    font-size: 12px;
    font-weight: 800;
}

.rival-position-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #148E82;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(20,142,130,0.06);
    border-radius: 6px;
    display: inline-block;
}

@media (max-width: 768px) {
    .report-workspace-toolbar,
    .possible-xi-comparison__header {
        align-items: stretch;
        flex-direction: column;
    }
    .report-workspace-toolbar__actions {
        justify-content: space-between;
    }
    .report-workspace-toolbar__match {
        white-space: normal;
    }
    .rival-h2h-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .rival-h2h-grid,
    .rival-h2h-grid--physical,
    .possible-xi-comparison-grid {
        grid-template-columns: 1fr;
    }
    .rival-tabs-row {
        gap: 6px;
    }
    .rival-section-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
    .rival-player-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .rival-squad-header {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .rival-squad-header__spacer {
        display: none;
    }
    .rival-squad-header__manager {
        justify-self: center;
    }
    .rival-physical-ranking-grid,
    .rival-forecast__grid {
        grid-template-columns: 1fr;
    }
    .rival-forecast__card--wide {
        grid-column: auto;
    }
    .possible-xi__pitch-scroll {
        margin-right: -10px;
        margin-left: -10px;
    }
    .possible-xi__system-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Copiloto ABANCA
   ========================================================================== */

.copilot-page {
    padding: clamp(18px, 2vw, 28px) !important;
}

.copilot-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-height: calc(100vh - 150px);
}

.copilot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 59, 102, 0.14);
}

.copilot-heading {
    min-width: 0;
}

.copilot-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 142, 130, 0.12);
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.copilot-title {
    margin: 6px 0 0;
    color: #0d3b66;
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    line-height: 1.05;
}

.copilot-status {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    min-height: 18px;
    max-width: 280px;
}

.copilot-conversation-panel {
    position: relative;
    flex: 1 1 auto;
    min-height: 360px;
    background: #ffffff;
    border: 1px solid rgba(13, 59, 102, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.copilot-chat-window {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: min(52vh, 560px);
    min-height: 360px;
    overflow-y: auto;
    padding: 18px;
    scrollbar-width: thin;
    scrollbar-color: #0d3b66 #dbe7f3;
}

.copilot-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 88%;
}

.copilot-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.copilot-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.copilot-avatar.assistant {
    background: #0d3b66;
}

.copilot-avatar.user {
    background: #148E82;
}

.copilot-bubble {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
    background: #f8fafc;
    color: #273142;
}

.copilot-bubble.user {
    background: #0d3b66;
    border-color: #0d3b66;
    color: #ffffff;
}

.copilot-bubble-label {
    margin-bottom: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.copilot-bubble.user .copilot-bubble-label,
.copilot-bubble.user .copilot-time,
.copilot-bubble.user .copilot-markdown,
.copilot-bubble.user .copilot-markdown p {
    color: #ffffff !important;
}

.copilot-markdown {
    font-size: 14px;
    line-height: 1.45;
}

.copilot-markdown p,
.copilot-markdown ul,
.copilot-markdown ol {
    margin-bottom: 8px;
}

.copilot-markdown p:last-child,
.copilot-markdown ul:last-child,
.copilot-markdown ol:last-child {
    margin-bottom: 0;
}

.copilot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.copilot-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(20, 142, 130, 0.12);
    color: #0d3b66;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.copilot-action-link:hover {
    background: rgba(20, 142, 130, 0.2);
    color: #0d3b66;
}

.copilot-time {
    margin-top: 6px;
    color: #98a2b3;
    font-size: 11px;
    text-align: right;
}

.copilot-loading-sentinel {
    height: 1px;
}

.copilot-examples {
    background: #ffffff;
    border: 1px solid rgba(13, 59, 102, 0.12);
    border-radius: 12px;
    padding: 14px;
}

.copilot-examples-title {
    color: #0d3b66;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.copilot-examples-subtitle {
    margin-top: 2px;
    color: #667085;
    font-size: 13px;
}

.copilot-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.copilot-example-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #ffffff;
    color: #273142;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.copilot-example-card:hover {
    border-color: rgba(20, 142, 130, 0.5);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.copilot-example-tag {
    color: #148E82;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.copilot-example-text {
    color: #273142;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 650;
}

.copilot-input-panel {
    background: #ffffff;
    border: 1px solid rgba(13, 59, 102, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.copilot-input {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 12px;
    color: #273142;
    font-size: 14px;
    line-height: 1.4;
}

.copilot-input:focus {
    outline: none;
    border-color: #148E82;
    box-shadow: 0 0 0 3px rgba(20, 142, 130, 0.16);
}

.copilot-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.copilot-hint {
    color: #667085;
    font-size: 12px;
}

.copilot-send {
    min-width: 104px;
    border-color: #148E82 !important;
    background: #148E82 !important;
    color: #ffffff !important;
    font-weight: 800;
}

@media (max-width: 900px) {
    .copilot-examples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .copilot-message {
        max-width: 96%;
    }
}

@media (max-width: 575.98px) {
    .copilot-page {
        padding: 12px !important;
    }

    .copilot-shell {
        min-height: auto;
    }

    .copilot-header,
    .copilot-input-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .copilot-status {
        max-width: 100%;
        text-align: left;
    }

    .copilot-chat-window {
        height: 48vh;
        min-height: 300px;
        padding: 12px;
    }

    .copilot-examples-grid {
        grid-template-columns: 1fr;
    }

    .copilot-send {
        width: 100%;
    }
}
.post-verification__note {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 11px;
}

.post-verification__pre-observation {
    margin: 0 0 18px;
    color: #0730b4;
    font-family: "Commissioner", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.post-verification__pre-observation p:last-child {
    margin-bottom: 0;
}

.post-verification__table-wrap {
    overflow-x: auto;
}

.post-verification__section-title {
    min-width: 980px;
    margin-top: 12px;
    padding: 8px 10px;
    background: #0d3b66;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.post-verification__section-title:first-child {
    margin-top: 0;
}

.post-verification__group {
    min-width: 980px;
    border-right: 1px solid #d7e0ea;
    border-left: 1px solid #d7e0ea;
}

.post-verification__group-title {
    padding: 7px 8px;
    background: #dbe4ec;
    color: #0d3b66;
    font-size: 11px;
    font-weight: 900;
}

.post-verification__row {
    display: grid;
    grid-template-columns: minmax(145px, .8fr) minmax(260px, 1.5fr) 70px 96px minmax(180px, 1fr) 95px 90px;
}

.post-verification__header-cell,
.post-verification__cell {
    min-width: 0;
    padding: 8px;
    border-top: 1px solid #d7e0ea;
    border-right: 1px solid #d7e0ea;
    font-size: 10px;
    line-height: 1.35;
}

.post-verification__header-cell {
    padding: 7px;
    background: #eef2f7;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}

.post-verification__cell--item {
    color: #0d3b66;
    font-weight: 800;
}

.post-verification__cell--center {
    text-align: center;
}

.post-verification__cell--strong {
    font-weight: 900;
}

.post-verification__cell--last {
    border-right: 0;
}

.post-verification__cell--metrics > div + div {
    margin-top: 4px;
}

.post-verification__metric-line.is-unavailable {
    color: #8a6514;
    font-size: 9px;
    font-weight: 700;
}

.post-verification__pending {
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.post-verification__score {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0d3b66;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.post-verification__score--q1 {
    border: 1px solid #8f1717;
    background: #c62828;
    color: #fff !important;
}

.post-verification__score--q2 {
    border: 1px solid #a84400;
    background: #e56700;
    color: #fff !important;
}

.post-verification__score--q3 {
    border: 1px solid #d09b00;
    background: #f6c945;
    color: #172033 !important;
}

.post-verification__score--q4 {
    border: 1px solid #4f7b13;
    background: #8fbd3f;
    color: #172033 !important;
}

.post-verification__score--q5 {
    border: 1px solid #0f4f2b;
    background: #18733f;
    color: #fff !important;
}

.post-verification__formation .Select-control {
    min-height: 30px;
}

.post-verification__formation .Select-value,
.post-verification__formation .Select-placeholder,
.post-verification__formation .Select-input {
    line-height: 28px !important;
    font-size: 10px;
}

.post-verification__observations {
    margin-top: 14px;
}

.post-verification__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d7e0ea;
}

.post-verification__controls-status {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.post-verification__controls-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-acta {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #fff;
}

.post-acta__comments-title {
    padding: 10px 14px;
    background: #234560;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .015em;
}

.post-acta__comments {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #f7f9fc;
}

.post-acta__comments .postpartido-rich-text-card {
    margin: 0;
    border-color: #ccd9e6;
    box-shadow: none;
}

.post-acta__comments .rival-rich-editor__surface {
    min-height: 120px !important;
}

.post-acta__scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: #f7f9fc;
}

.post-acta__team {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.post-acta__team--right {
    justify-content: flex-end;
    text-align: right;
}

.post-acta__team img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
    object-fit: contain;
}

.post-acta__team-name {
    overflow: hidden;
    color: #0d3b66;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-acta__formation {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.post-acta__score {
    min-width: 92px;
    padding: 8px 16px;
    border: 1px solid #c5ced9;
    border-radius: 7px;
    background: #e8edf3;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.post-acta__state {
    padding: 14px 16px 16px;
    border-top: 1px solid #d7e0ea;
    background: #fff;
}

#postpartido-week-content .post-acta__state-team,
#postpartido-week-content .post-acta__state-legend-item {
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.post-acta__state-team {
    margin-bottom: 8px;
    color: #0d3b66;
    font-weight: 900;
}

.post-acta__state-bar {
    display: flex;
    width: 100%;
    min-height: 28px;
    overflow: hidden;
    background: #eef2f7;
}

.post-acta__state-segment {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.post-acta__state-segment--winning {
    background: #59b832;
}

.post-acta__state-segment--drawing {
    background: #ff9d0a;
}

.post-acta__state-segment--losing {
    background: #df3b32;
}

.post-acta__state-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.post-acta__state-legend-item {
    font-size: 12px;
    font-weight: 900;
}

.post-acta__state-legend-item--winning {
    color: #39891d;
}

.post-acta__state-legend-item--drawing {
    color: #c87500;
}

.post-acta__state-legend-item--losing {
    color: #c12821;
}

/* Exportación a PPTX: la barra de estado va suelta encima de la
   diapositiva (ver _match_system_slide), así que el fondo/borde blanco de
   .post-acta__state (pensado para encajar dentro del panel de pantalla)
   se quita para que se vea transparente. */
.postpartido-pdf-state-bar .post-acta__state {
    background: transparent;
    border-top: none;
    padding: 0;
}

.post-acta__state-empty {
    padding: 12px 16px;
    border-top: 1px solid #d7e0ea;
    background: #fff;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.post-acta__section-title {
    padding: 10px 14px;
    background: #0d3b66;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center;
}

.post-acta__lineups {
    display: grid;
    grid-template-columns: minmax(190px, 20%) minmax(480px, 1fr) minmax(190px, 20%);
    min-height: 650px;
    background: #f7f8fa;
}

.post-acta__side,
.post-acta__pitch {
    min-width: 0;
    min-height: 650px;
}

.post-acta__side > div,
.post-acta__pitch > div {
    height: 100%;
}

.post-acta__side > div {
    padding: 10px !important;
    overflow-y: auto !important;
}

.post-acta__side > div div {
    font-size: 10px !important;
}

.post-acta__pitch > div {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

#postpartido-week-content .post-acta__pitch-player-name,
#postpartido-week-content .post-acta__pitch-player-name > span {
    font-size: 9px !important;
    line-height: 1.1 !important;
}

.post-acta__lineup-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    background: #0d3b66;
}

#postpartido-lineup-save-status {
    color: #fff !important;
}

.post-acta__pitch[data-edit-mode="true"] .post-acta__pitch-player {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.post-acta__pitch-player--dragging {
    cursor: grabbing !important;
    z-index: 5 !important;
    opacity: 0.85;
}

.post-acta-stats {
    margin: 18px 14px;
    overflow-x: auto;
    border: 1px solid #ccd8e4;
    background: #fff;
}

.post-acta-stats--with-intervals {
    height: auto;
    min-height: 650px;
    max-height: none;
    overflow-y: hidden;
}

.post-acta-stats__title {
    min-width: 980px;
    padding: 10px 14px;
    background: #234560;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.post-acta-stats__match-header {
    display: grid;
    min-width: 980px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #ccd8e4;
    background: #f8fafc;
}

.post-acta-stats__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #0d3b66;
    font-size: 11px;
    font-weight: 900;
}

.post-acta-stats__identity--right {
    justify-content: flex-end;
    text-align: right;
}

.post-acta-stats__identity img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

.post-acta-stats__score {
    min-width: 62px;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.post-acta-stats__section-title {
    min-width: 980px;
    padding: 8px 10px;
    border-bottom: 1px solid #ccd8e4;
    background: #e9edf2;
    color: #34495e;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.post-acta-stats__row {
    display: grid;
    min-width: 980px;
    grid-template-columns: 72px 88px 78px minmax(320px, 1fr) 78px 88px 72px;
    border-bottom: 1px solid #d7e0ea;
}

.post-acta-stats__row.is-unavailable {
    opacity: .62;
}

.post-acta-stats__column-head,
.post-acta-stats__value,
.post-acta-stats__metric {
    min-width: 0;
    padding: 9px 7px;
    border-right: 1px solid #d7e0ea;
}

.post-acta-stats__column-head {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    color: #5b6f83;
    font-size: 8px;
    font-weight: 900;
    text-align: center;
}

.post-acta-stats__value {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f7;
    color: #0f2942;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.post-acta-stats__value--match {
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.post-acta-stats__metric {
    background: #fff;
}

.post-acta-stats__metric-label {
    margin-bottom: 7px;
    color: #172033;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.post-acta-stats__bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.post-acta-stats__bar-half {
    display: flex;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f4;
}

.post-acta-stats__bar-half--left {
    justify-content: flex-end;
}

.post-acta-stats__bar-fill {
    height: 100%;
    border-radius: 999px;
}

.post-acta-stats__bar-fill--depor {
    background: #82a9e4;
}

.post-acta-stats__bar-fill--rival {
    background: #b94731;
}

.post-acta-interval-grid {
    display: grid;
    width: 100%;
    min-width: 980px;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 12px 0;
    background: #fff;
}

.post-acta-interval {
    min-height: 210px;
    border: 1px solid #ccd8e4;
    background: #fff;
}

.post-acta-interval__title {
    padding: 9px 10px;
    color: #0d3b66;
    font-size: 10px;
    font-weight: 900;
}

.post-acta-interval__graph {
    width: 100%;
    height: 245px;
}

.post-acta-interval__empty {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    color: #75869a;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.post-acta-interval__empty i {
    color: #aab7c5;
    font-size: 24px;
}

.post-acta-interval__empty small {
    font-size: 9px;
    font-weight: 700;
}

/* Captura rasterizada del panel "RESUMEN ESTADÍSTICAS ESTILO DE JUEGO" para
   el PPTX (ver _acta_comments_pdf_page): el hueco disponible es una altura
   fija de 51.4% de la diapositiva (~10.8cm), mucho menor que la altura
   natural de la tabla + las 3 gráficas de intervalos, así que aquí se
   compacta todo (en vez de con overflow:hidden, que las recortaba por
   abajo).*/
.postpartido-pdf-acta-capture .post-acta-stats {
    margin: 0;
    min-width: 0;
    overflow: visible;
}

.postpartido-pdf-acta-capture .post-acta-stats--with-intervals {
    min-height: 0;
}

.postpartido-pdf-acta-capture .post-acta-stats__title {
    min-width: 0;
    padding: 5px 8px;
    font-size: 10px;
}

.postpartido-pdf-acta-capture .post-acta-stats__match-header {
    min-width: 0;
    padding: 6px 8px;
    gap: 8px;
}

.postpartido-pdf-acta-capture .post-acta-stats__identity {
    gap: 5px;
    font-size: 9px;
}

.postpartido-pdf-acta-capture .post-acta-stats__identity img {
    width: 18px !important;
    height: 18px !important;
}

.postpartido-pdf-acta-capture .post-acta-stats__score {
    min-width: 40px;
    padding: 2px 8px;
    font-size: 11px;
}

.postpartido-pdf-acta-capture .post-acta-stats__section-title {
    min-width: 0;
    padding: 4px 8px;
    font-size: 9px;
}

.postpartido-pdf-acta-capture .post-acta-stats__row {
    min-width: 0;
}

.postpartido-pdf-acta-capture .post-acta-stats__column-head,
.postpartido-pdf-acta-capture .post-acta-stats__value,
.postpartido-pdf-acta-capture .post-acta-stats__metric {
    padding: 3px 6px;
}

.postpartido-pdf-acta-capture .post-acta-stats__column-head {
    font-size: 7px;
}

.postpartido-pdf-acta-capture .post-acta-stats__value {
    font-size: 9px;
}

.postpartido-pdf-acta-capture .post-acta-stats__value--match {
    font-size: 10px;
}

.postpartido-pdf-acta-capture .post-acta-stats__metric-label {
    margin-bottom: 4px;
    font-size: 8px;
}

.postpartido-pdf-acta-capture .post-acta-stats__bar-half {
    height: 5px;
}

.postpartido-pdf-acta-capture .post-acta-interval-grid {
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 0;
    gap: 6px;
}

.postpartido-pdf-acta-capture .post-acta-interval {
    min-height: 0;
}

.postpartido-pdf-acta-capture .post-acta-interval__title {
    padding: 3px 6px;
    font-size: 8px;
}

.postpartido-pdf-acta-capture .post-acta-interval__graph {
    height: 150px;
}

@media (max-width: 1050px) {
    .post-acta__lineups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-acta__pitch {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .post-acta__side,
    .post-acta__pitch {
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .post-acta__lineup-toolbar {
        flex-wrap: wrap;
        padding: 6px 8px;
    }

    .post-acta__lineup-toolbar .post-acta__section-title {
        flex-basis: 100% !important;
        padding: 4px 6px;
    }

    .post-acta__scoreboard {
        gap: 10px;
        padding: 12px;
    }

    .post-acta__team img {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px;
    }

    .post-acta__team-name {
        font-size: 10px;
    }

    .post-acta__formation {
        font-size: 9px;
    }

    .post-acta__score {
        min-width: 62px;
        padding: 6px 8px;
        font-size: 16px;
    }

    .post-acta__lineups {
        grid-template-columns: 1fr;
    }

    .post-acta__pitch {
        grid-column: 1;
    }

    .post-acta__side {
        min-height: 0;
    }
}
.post-performance__table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.post-performance__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border-bottom: 2px solid #64748b;
}

.post-performance__header {
    padding: 7px 9px;
    border-right: 1px solid rgba(255, 255, 255, .6);
    background: #0730b4;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}

.post-performance__header--title {
    width: 30%;
}

.post-performance__header--metric {
    width: 22%;
}

.post-performance__metric-name,
.post-performance__metric-field,
.post-performance__value,
.post-performance__comparison {
    padding: 9px 10px;
    border-bottom: 1px solid #cbd5e1;
    background: #fff;
    font-size: 10px;
    vertical-align: middle;
}

.post-performance__metric-name {
    width: 30%;
    color: #111827;
    font-weight: 800;
    text-align: center;
}

.post-performance__metric-field {
    width: 22%;
    color: #475569;
    font-weight: 600;
    text-align: center;
}

.post-performance__value {
    width: 30%;
    font-weight: 900;
    text-align: center;
}

.post-performance__comparison {
    width: 9%;
    border-left: 4px solid #cbd5e1;
    font-weight: 800;
    text-align: center;
}

.post-performance__comparison.is-equal {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.post-performance__comparison.is-favorable {
    border-left-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.post-performance__comparison.is-unfavorable {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.post-performance__physical-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.post-performance__chart-card {
    min-width: 0;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.post-performance__chart-title {
    padding: 7px 10px;
    background: #9ca3af;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}
