.actas-admin-grid{
    display:grid;
    gap:14px;
    margin-top:18px;
}

.actas-admin-card{
    display:grid;
    grid-template-columns:110px 1fr 130px 160px;
    align-items:center;
    gap:16px;
}

.actas-hora{
    font-weight:800;
    font-size:18px;
}

.actas-partido{
    display:grid;
    grid-template-columns:1fr 50px 1fr;
    align-items:center;
    gap:12px;
}

.actas-partido strong:first-child{
    text-align:right;
}

.actas-partido span{
    text-align:center;
    font-weight:900;
}

.actas-selector{
    display:flex;
    align-items:center;
    gap:8px;
}

.acta-print-body{
    margin:0;
    background:#fff;
    color:#000;
    font-family:Arial,Helvetica,sans-serif;
}

.acta-documento{
    width:190mm;
    min-height:265mm;
    margin:8mm auto;
    box-sizing:border-box;
    page-break-after:always;
}

.acta-documento:last-child{
    page-break-after:auto;
}

.acta-cabecera{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border:2px solid #000;
    padding:8px 12px;
}

.acta-liga{
    font-size:11px;
    font-weight:800;
    margin:0;
}

.acta-cabecera h1{
    margin:3px 0;
    font-size:19px;
}

.acta-cabecera p{
    margin:0;
}

.acta-jornada{
    text-align:center;
    border-left:2px solid #000;
    padding-left:20px;
}

.acta-jornada span{
    display:block;
    font-size:10px;
}

.acta-jornada strong{
    font-size:30px;
}

.acta-datos{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    border:2px solid #000;
    border-top:0;
}

.acta-datos div{
    padding:6px 10px;
    border-right:1px solid #000;
}

.acta-datos div:last-child{
    border-right:0;
}

.acta-datos span{
    display:block;
    font-size:9px;
    text-transform:uppercase;
}

.acta-datos strong{
    font-size:12px;
}

.acta-enfrentamiento{
    display:grid;
    grid-template-columns:1fr 50px 1fr;
    align-items:center;
    border:2px solid #000;
    border-top:0;
}

.acta-enfrentamiento div{
    padding:8px;
    text-align:center;
}

.acta-enfrentamiento span{
    display:block;
    font-size:9px;
}

.acta-enfrentamiento strong{
    font-size:14px;
}

.acta-vs{
    font-weight:900;
    font-size:15px;
}

.acta-plantillas{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:8px;
}

.acta-equipo h2{
    font-size:12px;
    margin:0;
    padding:5px;
    text-align:center;
    border:1px solid #000;
    border-bottom:0;
}

.acta-tabla{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:8px;
}

.acta-tabla th,
.acta-tabla td{
    border:1px solid #000;
    padding:3px;
    height:15px;
}

.acta-tabla th{
    font-size:7px;
    text-transform:uppercase;
}

.acta-num{
    width:18px;
    text-align:center;
}

.acta-dorsal{
    width:28px;
    text-align:center;
    font-weight:bold;
}

.acta-check,
.acta-marca{
    width:22px;
    text-align:center;
}

.acta-jugador{
    white-space:nowrap;
    overflow:hidden;
}

.acta-alerta{
    display:block;
    font-size:6px;
    margin-top:1px;
}

.acta-suspendido{
    text-decoration:line-through;
}

.acta-resultado{
    margin-top:8px;
    border:2px solid #000;
    padding:7px;
}

.acta-resultado h3,
.acta-incidencias h3{
    margin:0 0 7px;
    font-size:10px;
    text-align:center;
}

.acta-marcador{
    display:grid;
    grid-template-columns:1fr 35px 15px 35px 1fr;
    align-items:center;
    gap:6px;
    text-align:center;
    font-size:10px;
}

.acta-caja-gol{
    height:25px;
    border:2px solid #000;
}

.acta-incidencias{
    margin-top:8px;
    border:1px solid #000;
    padding:7px;
}

.acta-incidencias div{
    height:18px;
    border-bottom:1px solid #777;
}

.acta-firmas{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:28px;
}

.acta-firmas div{
    text-align:center;
    font-size:8px;
}

.acta-firmas span{
    display:block;
    border-top:1px solid #000;
    margin-bottom:4px;
}

@media(max-width:800px){
    .actas-admin-card{
        grid-template-columns:1fr;
    }

    .actas-partido strong:first-child{
        text-align:left;
    }
}

@media print{

    @page{
        size:letter portrait;
        margin:6mm;
    }

    body{
        margin:0;
    }

    .acta-documento{
        width:100%;
        min-height:0;
        margin:0;
    }
}

/* ===== ACTAS V1.1: nombres completos ===== */

.acta-jugador{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.15;
    height:auto !important;
}

.acta-tabla td{
    height:auto;
    min-height:15px;
    vertical-align:middle;
}

.acta-tabla th:nth-child(1),
.acta-tabla td:nth-child(1){
    width:18px;
}

.acta-tabla th:nth-child(2),
.acta-tabla td:nth-child(2){
    width:32px;
}

.acta-tabla th:nth-child(4),
.acta-tabla td:nth-child(4),
.acta-tabla th:nth-child(5),
.acta-tabla td:nth-child(5),
.acta-tabla th:nth-child(6),
.acta-tabla td:nth-child(6),
.acta-tabla th:nth-child(7),
.acta-tabla td:nth-child(7){
    width:22px;
}

.acta-tabla th:nth-child(3),
.acta-tabla td:nth-child(3){
    width:auto;
}


/* ==================================================
   ACTAS V3
   Nombres amplios + suspendidos separados
   ================================================== */

.acta-tabla{
    font-size:8.5px;
}

.acta-tabla th,
.acta-tabla td{
    padding:3px 4px;
}

/* Dorsal */
.acta-tabla th:nth-child(1),
.acta-tabla td:nth-child(1){
    width:34px !important;
    text-align:center;
}

/* Jugador */
.acta-tabla th:nth-child(2),
.acta-tabla td:nth-child(2){
    width:auto !important;
}

/* Jugó */
.acta-tabla th:nth-child(3),
.acta-tabla td:nth-child(3){
    width:27px !important;
    text-align:center;
}

/* Gol, TA, TR */
.acta-tabla th:nth-child(4),
.acta-tabla td:nth-child(4),
.acta-tabla th:nth-child(5),
.acta-tabla td:nth-child(5),
.acta-tabla th:nth-child(6),
.acta-tabla td:nth-child(6){
    width:22px !important;
    text-align:center;
}

.acta-jugador{
    font-size:8.5px;
    line-height:1.15;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere;
    text-decoration:none !important;
}

/* Ya no tachar suspendidos */
.acta-suspendido,
.acta-no-habilitado{
    text-decoration:none !important;
}

.acta-separador-suspendidos td{
    padding:4px !important;
    text-align:center !important;
    font-size:7px !important;
    font-weight:900;
    letter-spacing:.2px;
    background:#e5e5e5 !important;
    border-top:2px solid #000 !important;
    border-bottom:1px solid #000 !important;
}

.acta-no-habilitado td{
    background:#f0f0f0 !important;
}

.acta-no-habilitado .acta-jugador{
    font-size:8px;
}

.acta-estado-suspendido{
    display:block;
    margin-top:1px;
    font-size:6px;
    line-height:1;
    font-weight:900;
    letter-spacing:.15px;
}

.acta-bloqueado{
    text-align:center;
    font-weight:bold;
}

/* V3: neutralizar columna antigua # */
.acta-num{
    display:none !important;
}


/* ==================================================
   NOMINAS OFICIALES V1
   ================================================== */

.actas-botones{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.actas-botones button{
    width:100%;
    white-space:nowrap;
}

.nomina-documento{
    width:190mm;
    min-height:265mm;
    margin:8mm auto;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
    color:#000;
    background:#fff;
}

.nomina-cabecera{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border:2px solid #000;
    padding:9px 12px;
}

.nomina-liga{
    margin:0;
    font-size:11px;
    font-weight:800;
}

.nomina-cabecera h1{
    margin:3px 0;
    font-size:19px;
}

.nomina-cabecera p{
    margin:0;
}

.nomina-jornada{
    min-width:70px;
    text-align:center;
    border-left:2px solid #000;
    padding-left:18px;
}

.nomina-jornada span{
    display:block;
    font-size:9px;
}

.nomina-jornada strong{
    display:block;
    font-size:30px;
}

.nomina-info{
    display:grid;
    grid-template-columns:1.4fr 1.4fr .8fr .7fr;
    border:2px solid #000;
    border-top:0;
}

.nomina-info > div{
    padding:7px 8px;
    border-right:1px solid #000;
}

.nomina-info > div:last-child{
    border-right:0;
}

.nomina-info span{
    display:block;
    font-size:8px;
    font-weight:700;
}

.nomina-info strong{
    display:block;
    margin-top:2px;
    font-size:11px;
}

.nomina-equipo-principal strong{
    font-size:13px;
}

.nomina-listado{
    margin-top:10px;
}

.nomina-tabla{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:9px;
}

.nomina-tabla th,
.nomina-tabla td{
    border:1px solid #000;
    padding:4px;
    height:18px;
    vertical-align:middle;
}

.nomina-tabla th{
    text-transform:uppercase;
    font-size:8px;
    background:#eee;
}

.nomina-tabla th:nth-child(1){
    width:24px;
}

.nomina-tabla th:nth-child(3){
    width:42px;
}

.nomina-tabla th:nth-child(4),
.nomina-tabla th:nth-child(5){
    width:48px;
}

.nomina-tabla th:nth-child(6){
    width:90px;
}

.nomina-num,
.nomina-dorsal,
.nomina-check{
    text-align:center;
}

.nomina-check{
    font-size:16px;
}

.nomina-jugador{
    font-weight:600;
}

.nomina-suspendidos{
    margin-top:12px;
}

.nomina-suspendidos h3{
    margin:0;
    padding:6px;
    border:1px solid #000;
    border-bottom:0;
    text-align:center;
    font-size:10px;
}

.nomina-tabla-suspendidos th:last-child{
    width:180px;
}

.nomina-no-habilitado{
    font-weight:800;
    text-align:center;
}

.nomina-total{
    margin-top:14px;
    font-size:10px;
    font-weight:700;
}

.nomina-total span{
    display:inline-block;
    width:50px;
    height:15px;
    margin-left:6px;
    border-bottom:1px solid #000;
}

.nomina-firmas{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:55px;
    margin-top:34px;
}

.nomina-firmas div{
    text-align:center;
    font-size:9px;
}

.nomina-firmas span{
    display:block;
    border-top:1px solid #000;
    margin-bottom:5px;
}

.nomina-nota{
    margin-top:18px;
    font-size:8px;
    text-align:center;
}

@media print{

    .nomina-documento{
        width:100%;
        min-height:0;
        margin:0;
    }

}
