/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Estilo general */
body {
    font-family: 'Arial', sans-serif;
    background-color: #00796b;
    padding: 40px;
    color: #000;
}

/* Contenedor */
.container {
    background: #fff;
    max-width: 900px;
    margin: auto;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}



.title {
    text-align: left;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
}

/* Secciones principales */
.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.invoice-box {
    width: 45%;
    font-size: 13px;
    line-height: 1.6;
    min-width: 250px;
}

.invoice-box h3 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Detalles de factura */
.details-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.details-box div {
    flex: 1 1 45%;
    background-color: #f5f5f5;
    padding: 10px;
    border: 1px solid #ccc;
    min-width: 140px;
}

/* Tabla de productos */
#invoiceContent table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    overflow-x: auto;
    display: block;
}

#invoiceContent th,
#invoiceContent td {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 13px;
    text-align: left;
}

#invoiceContent th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Totales */
#dailyTotals {
    margin-top: 30px;
    font-size: 14px;
    text-align: right;
}

#dailyTotals p {
    margin: 6px 0;
}

#dailyTotals .total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Formulario */
label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilo de la sección de información de la empresa */
.company-info {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.company-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00796b;
}

.company-info input[type="text"],
.company-info input[type="email"] {
    width: calc(50% - 10px);
    margin-right: 10px;
}

.company-info input[type="text"]:last-child,
.company-info input[type="email"]:last-child {
    margin-right: 0;
}

.company-info button {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.company-info button:hover {
    background-color: #004d40;
}

/* Productos */
.productInput {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.productInput input {
    flex: 1 1 30%;
    min-width: 120px;
}

/* Botones */
button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

button:hover {
    background-color: #333;
}

/* -------------------- */
/* ADAPTATIVE (Responsive) */
/* -------------------- */

/* Tablets */
@media (max-width: 900px) {
    .title {
        text-align: center;
    }
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .invoice-box {
        width: 100%;
    }
}

/* Celulares */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px;
    }
    .logo {
        font-size: 28px;
        text-align: center;
    }
    .title {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }
    .details-box div {
        flex: 1 1 100%;
    }
    .company-info input[type="text"],
    .company-info input[type="email"] {
        width: 100%;
        margin-right: 0;
    }
    .productInput input {
        flex: 1 1 100%;
    }
    button {
        width: 100%;
        margin-right: 0;
    }
}
