/* Estilo del botón de exportar */
.exportar-btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.exportar-btn:hover {
    background-color: #218838;
}

.exportar-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Contador de socios (fuera de la tabla) */
.socios-count {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    padding: 8px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .socios-count {
        font-size: 1em;
        margin-bottom: 10px;
        padding: 6px 0;
    }
}

/* Estilo de la tabla de socios */
.socios-listado {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.socios-listado th,
.socios-listado td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    word-wrap: break-word;
}

.socios-listado th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.socios-listado tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.socios-listado tbody tr:hover {
    background-color: #e9e9e9;
}

/* Responsive: Diseño móvil para la tabla */
@media (max-width: 768px) {
    .socios-listado {
        font-size: 12px;
        table-layout: auto;
    }

    .socios-listado th,
    .socios-listado td {
        padding: 8px;
        white-space: normal;
    }

    /* Mostrar solo el primer encabezado (ID) en móvil */
    .socios-listado th {
        display: none;
    }
    .socios-listado th:first-child {
        display: table-cell;
        padding: 8px;
        white-space: normal;
        font-weight: bold;
    }

    /* Convertir tabla en lista vertical */
    .socios-listado td {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
        text-align: left;
    }

    /* Mostrar etiquetas antes de cada dato */
    .socios-listado td::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        width: 60px;
        margin-right: 10px;
    }

    /* Estilo especial para ID */
    .socios-listado td[data-label="ID"] {
        font-weight: bold;
        border-top: 2px solid #ddd;
        padding-top: 12px;
    }
}