/*
* Estilos Públicos para Petifinder QR Manager
* @version 6.0
*/

#pf-qr-activator-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: sans-serif;
    box-sizing: border-box;
}

.pf-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.pf-input-field {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.pf-btn-action {
    background: #00a550;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.pf-btn-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Estilos de la v5.7 */
.pf-user-info-box {
    background: #f0f6fc; 
    border: 1px solid #b6d4f5; 
    padding: 15px; 
    border-radius: 5px; 
    margin-bottom: 20px; 
    font-size: 0.9em;
}
.pf-user-info-box p {
    margin-top: 0; 
    margin-bottom: 10px;
}
.pf-user-info-box ul {
    list-style: none; 
    margin: 0; 
    padding-left: 0;
}
.pf-user-info-box li {
    margin-bottom: 5px;
}
.pf-missing-field-label {
    margin-bottom: 5px; 
    margin-top: 0; 
    color: #c00; 
    font-weight: bold;
}
/*
* ======================================================
* ESTILOS TABLA DE CAUSAS (v6.4)
* ======================================================
*/

.tca-tabla-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tca-total-recaudado {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 18px 25px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.tca-total-label {
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

.tca-total-monto {
    font-size: 24px;
    color: #38a169;
    font-weight: 700;
}

.tca-tabla-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tca-tabla-causas {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e2e8f0;
    border-top: none;
}

.tca-tabla-causas thead {
    background: #4a5568;
    color: white;
}

.tca-tabla-causas th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tca-tabla-causas tbody tr {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.tca-tabla-causas tbody tr:hover {
    background-color: #edf2f7;
}

.tca-tabla-causas tbody tr:last-child {
    border-bottom: none;
}

.tca-tabla-causas td {
    padding: 16px 20px;
    color: #2d3748;
    font-size: 15px;
}

.tca-paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.tca-btn-pagina {
    background: #4a5568;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.tca-btn-pagina:hover:not(:disabled) {
    background: #2d3748;
}

.tca-btn-pagina:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.tca-info-pagina {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.tca-sin-datos {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Ocultar paginación en móvil */
@media screen and (max-width: 968px) {
    .tca-paginacion {
        display: none;
    }
    
    .tca-total-recaudado {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .tca-total-label {
        font-size: 14px;
    }
    
    .tca-total-monto {
        font-size: 20px;
    }
    
    .tca-tabla-scroll {
        border-radius: 0 0 8px 8px;
    }
    
    .tca-tabla-causas {
        border-radius: 0 0 8px 8px;
        font-size: 13px;
    }
    
    .tca-tabla-causas th {
        padding: 12px 15px;
        font-size: 11px;
    }
    
    .tca-tabla-causas td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Hacer columnas FECHA y NOMBRE más anchas */
    .tca-tabla-causas th:nth-child(1),
    .tca-tabla-causas td:nth-child(1) {
        min-width: 160px;
        width: 30%;
    }
    
    .tca-tabla-causas th:nth-child(2),
    .tca-tabla-causas td:nth-child(2) {
        min-width: 140px;
        width: 28%;
    }
    
    .tca-tabla-causas th:nth-child(3),
    .tca-tabla-causas td:nth-child(3) {
        min-width: 120px;
        width: 22%;
    }
    
    .tca-tabla-causas th:nth-child(4),
    .tca-tabla-causas td:nth-child(4) {
        min-width: 110px;
        width: 20%;
    }
}