#suggestions2 {
    display: none; /* oculto inicialmente, visible cuando hay resultados */
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    color: white;
    font-size: 20px;
    position: absolute;
    z-index: 999;
    width: 100%;
}

.suggestions {
    display: none; /* Ocultar la lista inicialmente */
    border-top: none;
    padding-bottom: 30px;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suggestions div:hover {
    background-color: #02270e;
}

.suggestions img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.selected-players div {
    padding: 8px;
    margin-top: 5px;
    background-color: #e3ffe3;
    display: flex;
    align-items: center;
}

.selected-players button {
margin-left: 10px;
}

.selected-players img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

#searchInput{
    margin: 20px 0px;
}


.buscador-jugador{
    width: 100% !important;
    background: black !important;
    font-size: 24px !important;
    padding: 20px !important;
    color: white !important;
    border: none !important;
}

/*menu lateral*/


.sidenav {
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: -180vw;
    background: linear-gradient(to bottom, #112f1e, rgb(0 0 0));
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 10px;
    margin-top: 50px;
	z-index:999;
    opacity: 0;
    max-width: 380px;
  }

  .sidenav_open {
    transition: all .3s ease 0s;
    overflow: auto;
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }
  
  .sidenav .menu{
    padding: 3px 3px 3px 22px;
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
    font-weight: bold;
    border-bottom: 2px solid #447d2a;

  }

  .sidenav .menu-icono{
    float: left; 
    margin-right: 10px;
     margin-top: 5px;
  }
  
  .sidenav a:hover {
    color: #405820;
  }
  
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 56px;
    margin-left: 50px;
  }


/* 2. Contenedor de la barra de desplazamiento (Ancho) */
#mySidenav::-webkit-scrollbar {
    width: 10px; /* Define el ancho de la barra vertical */
}

/* 3. PISTA/TRACK (El fondo de la barra) */
.sidenav::-webkit-scrollbar-track {
    background: #222222; /* Gris muy oscuro o color de fondo de tu sidenav */
}

/* 4. PULGAR/THUMB (La pieza que se arrastra - Color Negro) */
.sidenav::-webkit-scrollbar-thumb {
    background: #000000; /* Color negro puro */
    border-radius: 5px; /* Bordes ligeramente redondeados */
    /* Opcional: Borde para separarlo del track, si es necesario */
    border: 1px solid #222222;
}

/* 5. Estilo del THUMB al pasar el ratón (Hover) */
.sidenav::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a; /* Un negro ligeramente más claro/suave al pasar el ratón */
}

/* VAMOS CON EL MENU CALENDARIO */

  .main-header {
            background: #ffffff;
            border-bottom: 1px solid #e4e7eb;
            padding: 8px 16px;
            position: sticky;
            top: 0;
            z-index: 200; /* por encima del panel y del overlay */
        }
        .header-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
        }
        .header-logo img {
            height: 34px;
        }
        .header-spacer {
            flex: 1;
        }

        /* Botón del panel calendario al lado del logo/menú */
        .cal-panel-toggle {
            margin-left: 10px;
            background: #06612f;
            color: #fff;
            border: none;
            border-radius: 999px;
            padding: 6px 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        .cal-panel-toggle i {
            font-size: 18px;
        }
        .cal-panel-toggle:hover {
            background: #09a64b;
        }
        /* Opcional: estilo diferente cuando está abierto (X) */
        .cal-panel-toggle.is-open {
            background: #b91c1c;
        }
        .cal-panel-toggle.is-open:hover {
            background: #dc2626;
        }

        /* Contenido demo */
        .page-content {
            max-width: 1100px;
            margin: 24px auto;
            padding: 0 16px 60px;
        }
        .page-content h1 {
            margin-top: 0;
        }
        .page-content p {
            color: #555;
        }

        /* ---------- PANEL Y OVERLAY ---------- */

        /* Overlay, pero solo bajo la cabecera (lo ajusta JS) */
        #cal-panel-overlay {
            position: fixed;
            top: 0;              /* se ajustará por JS a altura de header */
            left: 0;
            right: 0;
            height: 100vh;       /* se ajustará por JS */
            background: rgba(0,0,0,0.35);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease;
            z-index: 150;        /* por debajo del header, por encima del contenido */
        }
        #cal-panel-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Panel lateral derecho, bajo la cabecera (top/height por JS) */
        #cal-panel {
            position: fixed;
            top: 0;              /* se ajustará por JS */
            right: 0;
            width: 360px;
            max-width: 100%;
            height: 100vh;       /* se ajustará por JS */
            background: #ffffff;
            z-index: 160;        /* debajo del header, por encima del overlay */
            display: flex;
            flex-direction: column;
            font-size: 14px;

            /* oculto por defecto */
            transform: translateX(100%);
            transition: transform 0.25s ease;

            box-shadow: none; /* sin sombra lateral */
        }
        #cal-panel.open {
            transform: translateX(0);
        }

        /* Cabecera del panel */
        .cal-panel-header {
            padding: 10px 14px;
            border-bottom: 1px solid #e3e3e3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, #06612f, #09a64b);
            color: #fff;
        }
        .cal-panel-title {
            font-weight: 600;
        }
        /* Quitamos botón de cierre interno, lo hace el del header (X) */
        .cal-panel-close {
            display: none;
        }

        /* Navegación de días + calendario */
        .cal-panel-nav {
            padding: 8px 10px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;          /* centra verticalmente todo */
            justify-content: space-between;
            background: #f9fdf9;
        }

        /* Botones GRANDES de cambio de día */
        .cal-nav-btn {
            border: none;
            background: #06612f;
            color: #fff;
            border-radius: 999px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
        }
        .cal-nav-btn i {
            font-size: 18px;
        }
        .cal-nav-btn:hover {
            background: #09a64b;
        }

        .cal-nav-center {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cal-current-date-label {
            font-weight: 600;
            font-size: 20px;
        }

        /* Botón de icono calendario */
        .cal-date-btn {
            border: none;
            background: #ffffff;
            border-radius: 999px;
            padding: 5px 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d0d7de;
        }
        .cal-date-btn i {
            font-size: 14px;
            color: #555;
        }
        .cal-date-btn:hover {
            border-color: #09a64b;
            background: #f3fff7;
        }


        /* Contenido del panel */
        .cal-panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 10px 12px;
            background: #ffffff;
        }
        .cal-panel-loading {
            text-align: center;
            padding: 20px 10px;
            font-size: 13px;
            color: #666;
        }
        .cal-panel-empty {
            padding: 20px 10px;
            text-align: center;
            font-size: 13px;
            color: #888;
        }

        /* Cabecera del día */
        .cal-day-header {
            padding: 6px 4px;
            margin-bottom: 4px;
            border-radius: 6px;
            background: #f0faf3;
            display: flex;
            justify-content: space-between;
            font-size: 16px;
            color: #06612f;
            font-weight: 600;
        }

        /* Bloque de competición */
        .cal-competition-block {
            margin-bottom: 10px;
        }
        .cal-competition-header {
         display: flex;
            align-items: center;
            margin: 20px 0px;
        }
        .cal-competition-logo {
            width: 20px;
            height: 20px;
            margin-right: 6px;
        }
        .cal-competition-name {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .cal-date-wrap{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* input invisible encima del botón */
.cal-date-picker-overlay{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

        /* MOBILE: ventana (no full width), SIN margen top extra y SIN bordes redondeados */
        @media (max-width: 480px) {
            #cal-panel {
                width: 92vw;              /* ventana, no 100% */
                max-width: 420px;
                border-radius: 0;         /* sin redondeado */
                overflow: hidden;
            }
        }