body {
  font-family: sans-serif;
  background: #222;
  color: white;
  margin: 0;
}
.pos-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
}

.pos-header {
  display: flex;
  justify-content: space-between;
  background: #f4f4f4;
  color: #cf8888;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.pos-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  flex-grow: 1;
}

.product-list {
  background: #cf8888;
  border-radius: 5px;
  overflow-y: auto;
  padding: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  border-bottom: 2px solid #cf8888;
  text-align: left;
  padding: 10px;
}
td {
  padding: 10px;
  border-bottom: 1px solid #cf8888;
}

.controls {
  background: #cf8888;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.totals {
  background: #000;
  padding: 20px;
  border-radius: 5px;
  border: 2px solid #28a745;
}
.total-row {
  font-size: 2rem;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.total-row.small {
  font-size: 1.2rem;
  color: #aaa;
  margin-top: 10px;
}

body {
  font-family: sans-serif;
  background: #222;
  color: white;
  margin: 0;
}
.pos-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
}

.pos-header {
  display: flex;
  justify-content: space-between;
  background: #f4f4f4;
  color: #333;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.pos-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  flex-grow: 1;
}

.product-list {
  background: #cf8888;
  border-radius: 5px;
  overflow-y: auto;
  padding: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  border-bottom: 2px solid #88be83;
  text-align: left;
  padding: 10px;
}
td {
  padding: 10px;
  border-bottom: 1px solid #a58080;
}

.controls {
  background: #cf8888;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.totals {
  background: #000;
  padding: 20px;
  border-radius: 5px;
  border: 2px solid #28a745;
}
.total-row {
  font-size: 2rem;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.total-row.small {
  font-size: 1.2rem;
  color: #aaa;
  margin-top: 10px;
}

.btn {
  padding: 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
}
/*CARGAR*/
.btn-primary {
  background: #eee23d;
  color: white;
}
/*ELEGIR METODO DE PAGO*/
.btn-success {
  background: #9beb99;
  color: white;
}
/*ANULAR COMPRA*/
.btn-danger {
  background: #c24f4f;
  color: white;
}
/*IMPRIMIR TICKET*/
.btn-warning {
  background: #f87c4a;
  color: white;
  margin-top: auto;
}
.actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {

  background: white;
  color: #333;
  width: 430px;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.30);

}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.payment-grid button:nth-child(1){

    background:#d8f3dc;

}

.payment-grid button:nth-child(2){

    background:#cde7ff;

}

.payment-grid button:nth-child(3){

    background:#ffe5b4;

}

.payment-grid button:nth-child(4){

    background:#ffd6e8;

}

.payment-grid button:nth-child(5){

    background:#e5d4ff;

}

.payment-grid button:nth-child(6){

    background:#d6fff6;

}

.payment-grid button:nth-child(7){

    background:#fff1b8;

}

.payment-grid button{

    border:none;

    border-radius:15px;

    padding:18px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 5px 12px rgba(0,0,0,.12);

}

.payment-grid button:hover{

    transform:translateY(-3px) scale(1.03);

}

.payment-grid button:hover{

  background:#ffe7f3;
  transform:scale(1.05);
}

/* Punto 1: Mejorar el campo en el cual se carga el código de producto (más alto y menos ancho) */

#cod-producto{

  width:150px;
  height:50px;
  border:none;
  border-radius:12px;
  text-align:center;
  font-size:22px;
  font-weight:bold;
  background:#fff;
  margin-top:10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.payment-grid button {
  padding: 20px;
  cursor: pointer;
}

/* Punto 1: Mejorar el campo en el cual se carga el código de producto (más alto y menos ancho) */

#cod-producto {
  width: 100px;
  height: 40px;
  font-size: 20px;
  margin-top:5px;
}

.actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-pago{
    grid-column: 1 / 3;
}

.btn-info{
    background:#3498db;
    color:white;
}
.btn-secondary{
    background:#6c757d;
    color:white;
}