body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 20px;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1.5em;
}
.info {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
}
.info span {
    font-weight: bold;
    color: #4CAF50;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 10px;
}
th {
    background-color: #f4f4f4;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}
tr:nth-child(even) {
    background-color: #f9fafb;
}
tr:hover {
    background-color: #e8f5e9;
}
.total {
    font-size: 1.2em;
    text-align: right;
    padding: 20px;
    font-weight: bold;
    background-color: #f4f4f4;
}
.totals {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9fafb;
}

@media screen and (max-width: 768px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .quantity-cell input, 
    .unit-price-cell input {
        font-size: 12px;
    }

    tfoot th, tfoot td {
        font-size: 14px;
    }
}


/* General Styles - Mantienen el diseño web original */

/* Responsividad específica para iPhones y dispositivos móviles */
@media screen and (max-width: 768px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 12px;
    }

    /* Tabla */
    table {
        font-size: 12px;
        box-shadow: none; /* Eliminamos sombra para móviles */
        margin-top: 10px;
    }

    th, td {
        padding: 8px;
    }

    th {
        text-align: center;
    }

    td {
        font-size: 12px;
        text-align: center; /* Centraremos el texto en móviles */
    }

    .quantity-cell input, 
    .unit-price-cell input {
        font-size: 12px;
        padding: 5px;
    }

    .total {
        font-size: 14px;
        color: #0056b3;
    }

    /* Footer (Botón de PDF) */
    button {
        font-size: 14px;
        padding: 10px 16px;
        max-width: 150px;
    }

    /* Mejoramos la accesibilidad del total general */
    tfoot th, tfoot td {
        font-size: 14px;
    }
}