/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
}

/* Estilo del Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header .logo-container {
    margin-bottom: 20px;
}

header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px; /* Agregado margen entre título y formulario */
}

/* Estilo de los formularios */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin-top: 20px; /* Agregado margen superior para separar más del título */
}

/* Estilo de los campos de formulario */
label {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px;
    display: block;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px; /* Aumentado espacio entre campos */
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

/* Estilos para el botón "Agregar Producto" y "Generar Remisión" */
button {
    padding: 12px 20px;
    border: none;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #218838;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos de la tabla */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    table-layout: fixed; /* Evita que la tabla se expanda demasiado */
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Evita que el contenido se desborde */
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

td {
    background-color: #fff;
}

/* Estilos de los iconos en los productos */
table select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Botón de "Eliminar" */
button[type="button"] {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="button"]:hover {
    background-color: #c82333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para los mensajes de éxito */
p {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
}

/* Enlaces */
a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    margin-top: 20px;
    display: block;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Mostrar solo el botón de "Ver PDF" cuando el PDF se haya generado */
#ver-pdf-button {
    display: none; /* Ocultar el botón de manera predeterminada */
}

#ver-pdf-button.show {
    display: inline-block; /* Mostrar el botón cuando se active */
}

/* Responsive */
@media (max-width: 768px) {
    header h2 {
        font-size: 20px;
    }
    form {
        padding: 20px;
    }
    input, select {
        font-size: 14px;
    }
    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 12px;
    }

    button {
        font-size: 14px;
    }
}

/* Espacio entre el título y el formulario */
h2 {
    margin-bottom: 20px; /* Esto agrega espacio debajo del título */
}

/* Espacio entre los campos del formulario */
form label {
    margin-bottom: 10px; /* Esto agrega más espacio entre las etiquetas y los campos */
}

form input[type="text"], form select {
    margin-bottom: 20px; /* Esto agrega espacio entre cada campo de entrada */
}