/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container Styling */
.login-container {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 14px;
    color: #34495e;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #3498db;
}

/* Error Message */
.error {
    text-align: center;
    color: red;
    margin-top: 10px;
}

/* Tabla Styling */
.table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
    max-height: 500px; /* Define la altura máxima del contenedor de la tabla */
    overflow-y: auto;  /* Activa el desplazamiento vertical cuando sea necesario */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #f2f2f2; /* Color de fondo para los títulos */
    font-weight: bold; /* Hacer los títulos más destacados */
}

/* Justificar a la derecha las celdas de las columnas "Valor Litro" y "Total Venta" */
.right-align {
    text-align: right;
}

/* Aumentar el ancho de las columnas */
th:nth-child(1),
td:nth-child(1) {
    width: 10%;
}

th:nth-child(2),
td:nth-child(2) {
    width: 15%;
}

th:nth-child(3),
td:nth-child(3) {
    width: 15%;
}

th:nth-child(4),
td:nth-child(4) {
    width: 15%;
}

th:nth-child(5),
td:nth-child(5) {
    width: 10%;
}

th:nth-child(6),
td:nth-child(6) {
    width: 10%;
}

th:nth-child(7),
td:nth-child(7) {
    width: 10%;
}

th:nth-child(8),
td:nth-child(8) {
    width: 15%;
}

/* Responsive Styling */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 5px;
    }
}

/* Responsive Styling for smaller screens */
@media (max-width: 600px) {
    .login-container {
        padding: 15px;
        max-width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    input {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}
