* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 80px;
    /* Ajusta según la altura del footer */
}


.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #90c73d;
    color: #fff;
    border-bottom: 4px solid #8CAD49;
}

.header img {
    width: 90px;
    height: auto;
    margin-right: 10px;
}

.header h1 {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 0;
    flex: 1;
}

.header .cancel-operation {
    font-size: 1.0em;
    color: #e1502d;
    cursor: pointer;
    background: #f2b092;
    border: 1px solid #e1502d;
    padding: 7px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header .manual-operation {
    color: #264a22;
    border: 1px solid #264a22;
    background: #c3dea2;
    font-size: 1.0em;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.button-container {
    display: flex;
    gap: 10px;
    /* Espacio entre los botones */
}


.header .cancel-operation:hover {
    color: #DB3515;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #ABCC5C;
    color: #fff;
}

.delete-button {
    background: transparent;
    border: none;
    color: #FF7070;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-button:hover {
    color: #DB3515;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ef4a36;
    color: #fff;
    border-top: 4px solid #EF7D51;
    position: fixed;
    /* Cambiado a fijo */
    bottom: 0;
    /* Siempre al fondo */
    left: 0;
    right: 0;
    z-index: 1;
    /* Asegura que esté por debajo del modal */
}

.total {
    font-size: 1.2em;
    font-weight: bold;
}

.pay-button {
    background: #c3dea2;
    color: #264a22;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button-container {
    display: flex;
    gap: 10px;
    /* Espacio entre los botones */
    align-items: center;
    /* Alineación vertical */
}


.swal-custom-popup {
    z-index: 1050 !important;
    /* Asegura que el modal esté encima */
}

/* Contenedor de la lista de productos */
.products-list {
  flex: 1;
  max-height: 700px; /* Ajusta este valor según tus necesidades */
  overflow-y: auto;
  padding: 20px;
  background: #f7f7f7;
}

  
  /* Cada producto como un "card" o fila */
  .product-item {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Imagen del producto */
  .product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
  }
  
  /* Nombre y SKU */
  .product-details {
    flex: 1; /* Para ocupar el espacio sobrante */
  }
  .product-details h3 {
    font-size: 1.1em;
    margin-bottom: 4px;
    color: #333;
  }
  .product-details p {
    font-size: 0.9em;
    color: #666;
  }
  
  /* Precio */
  .product-price {
    font-size: 1em;
    font-weight: bold;
    margin-right: 20px;
    color: #333;
  }
  
  /* Controles de cantidad */
  .product-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Botones (+ / -) */
  .quantity-btn {
    background: #c3dea2;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    color: #264a22;
    font-size: 1em;
    transition: background 0.3s ease;
  }
  .quantity-btn:hover {
    background: #b5d48e;
  }
  .quantity-number {
    min-width: 20px;
    text-align: center;
  }
  
  /* Botón eliminar */
  .delete-button {
    background: transparent;
    border: none;
    color: #FF7070;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  .delete-button:hover {
    color: #DB3515;
  }
  
  .discount-button {
    background-color: #f0ad4e;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color .2s;
  }
  .discount-button:hover {
    background-color: #ec971f;
  }
  
  .discount-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  