/* ================= GLOBAL ================= */

body {
  margin: 0;
  font-family: Arial, monospace;
  background: #f2f2f2;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ================= LOGIN ================= */

.login-box {
  background: #ffffff;
  padding: 20px;
  width: 220px;
  border-radius: 4px;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 10px;
}

.login-box input,
.login-box button {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
}

/* ================= POS LAYOUT ================= */

.pos-container {
  display: flex;
  height: 100vh;
}

/* LEFT MENU PANEL */

.menu-panel {
  width: 40%;
  background: #ffffff;
  padding: 10px;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}

.menu-panel h3 {
  text-align: center;
  margin-top: 0;
}

.menu-btn {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

.menu-btn:hover {
  background: #eaeaea;
}

/* RIGHT BILL PANEL */

.bill-panel {
  width: 60%;
  padding: 10px;
}

/* ================= RECEIPT ================= */

.bill {
  width: 58mm;
  background: #ffffff;
  padding: 6px;
  font-size: 13px; /* Base font size */
  line-height: 1.35;
}

/* Logo */

.logo-box {
  text-align: center;
  margin-bottom: 5px;
}

.logo-box img {
  width: 40mm;
  height: auto;
}

/* Brand */

.brand-name {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 2px 0;
}

/* Customer Info */

#printCustomer,
#printMobile {
  font-size: 12px;
  margin: 2px 0;
}

/* Divider */

.bill hr {
  border: none;
  border-top: 1px dashed #000;
  margin: 6px 0;
}

/* ================= ITEM LIST ================= */

.item-list {
  margin-top: 6px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 3px 0;
}

.item-name {
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-amt {
  font-weight: bold;
  font-size: 12.5px;
}

/* ================= TOTAL ================= */

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  margin-top: 6px;
}

/* ================= FOOTER ================= */

.center-text {
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}

/* ================= CONTROLS ================= */

.controls {
  margin-top: 10px;
}

.controls input,
.controls select,
.controls button {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  font-size: 14px;
}

/* Remove button (screen only) */

.remove-btn {
  margin-left: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* ================= PRINT RULES ================= */

@media print {
  body * {
    visibility: hidden;
  }

  .bill,
  .bill * {
    visibility: visible;
  }

  .bill {
    position: absolute;
    left: 0;
    top: 0;
  }

  .no-print {
    display: none !important;
  }
}
/* UPI QR section */
#upiSection img {
  margin-top: 4px;
}

@media print {
  #upiSection {
    display: block;
  }
}
