/* Estilos generales del cuerpo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f7f9;
}

/* Estilos de la sección del panel de ventas */
.section {
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

/* Estilos del encabezado del panel */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #00796b;
    padding-bottom: 10px;
}

header h1 {
    margin: 0;
    color: #00796b;
    font-size: 26px;
}

button {
    background-color: #00796b;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #004d40;
    transform: translateY(-2px);
}

/* Estilos del campo de búsqueda */
#searchContainer {
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#searchInput::placeholder {
    color: #999;
}

/* Estilos de la tabla de ventas */
#salesTableContainer {
    margin-bottom: 20px;
}

#salesTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#salesTable th, #salesTable td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

#salesTable th {
    background-color: #00796b;
    color: #ffffff;
    font-weight: 600;
}

#salesTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#salesTable tr:hover {
    background-color: #e0f2f1;
}

/* Estilos del contenedor del gráfico de ventas */
#salesChartContainer {
    margin-bottom: 20px;
}

/* Estilos del modal para agregar venta */
.modal {
    display: none; /* Asegura que el modal esté oculto inicialmente */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    padding: 15px; /* Reducido padding */
    border-radius: 8px;
    width: 50%; /* Tamaño reducido del modal */
    max-width: 300px; /* Tamaño máximo reducido del modal */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Botón de cerrar modal */
.close {
    color: #aaa;
    float: right;
    font-size: 20px; /* Reducido tamaño del ícono */
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

/* Estilos del formulario en el modal */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 5px 0 3px; /* Reducido margen */
    font-weight: 500;
    font-size: 14px;
}

form input {
    margin-bottom: 10px; /* Reducido margen inferior */
    padding: 8px; /* Reducido padding */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px; /* Reducido tamaño del texto */
}

form button {
    background-color: #00796b;
    color: #ffffff;
    padding: 10px; /* Reducido padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px; /* Reducido tamaño del texto */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #004d40;
    transform: translateY(-2px);
}
