/* General Styles */
.cliente-info {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cliente-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.cliente-info p {
    margin-bottom: 20px;
    color: #666;
}

/* Info Boxes */
.info-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-box {
    border: 1px solid #ddd;
    padding: 15px;
    width: calc(33.33% - 10px);
    text-align: center;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #444;
}

.info-box p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

/* Ver Detalle Button */
.ver-detalle {
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.ver-detalle:hover {
    color: #2980b9;
}

/* Estado de Cuenta */
#estado-cuenta {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Facturas Table */
.facturas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.facturas-table th, .facturas-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.facturas-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.facturas-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.facturas-table tr:hover {
    background-color: #f5f5f5;
}

/* Loading and Error Messages */
#loading-container {
    text-align: center;
    padding: 20px;
}

#loading-message {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#error-message {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    background-color: #ffeeee;
    border: 1px solid #ffcccc;
    margin-bottom: 20px;
    color: #cc0000;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .ver-detalle, button, #loading-container, #error-message {
        display: none;
    }
    .cliente-info {
        box-shadow: none;
        padding: 0;
    }
    #estado-cuenta {
        box-shadow: none;
        padding: 0;
    }
    .facturas-table {
        page-break-inside: avoid;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .info-box {
        width: 100%;
    }
    .facturas-table {
        font-size: 14px;
    }
    .facturas-table th, .facturas-table td {
        padding: 8px;
    }
}

/* Print Button */
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

