/* ================= RESET ================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
}

/* ================= LOGIN ================= */

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: #fff;
  padding: 20px;
  width: 240px;
  border-radius: 6px;
  text-align: center;
}

.login-box input,
.login-box button {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
}

/* ================= POS LAYOUT ================= */

.pos-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* ================= MENU PANEL ================= */

.menu-panel {
  width: 40%;
  min-width: 260px;
  background: #ffffff;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}

.menu-panel h3 {
  text-align: center;
  margin-bottom: 10px;
}

/* SEARCH BAR */

#menuSearch {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* MENU BUTTONS */

.menu-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  font-size: 15px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}

.menu-btn:hover {
  background: #eaeaea;
}

/* ================= BILL PANEL ================= */

.bill-panel {
  width: 60%;
  padding: 12px;
  overflow-y: auto;
}

/* ================= RECEIPT ================= */

.bill {
  width: 58mm;
  background: #fff;
  padding: 6px;
  font-size: 13px;
  line-height: 1.4;
}

/* LOGO */

.logo-box {
  text-align: center;
  margin-bottom: 5px;
}

.logo-box img {
  width: 40mm;
}

/* BRAND */

.brand-name {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* CUSTOMER INFO */

#printCustomer,
#printMobile {
  font-size: 12px;
  margin: 2px 0;
}

/* DIVIDER */

.bill hr {
  border: none;
  border-top: 1px dashed #000;
  margin: 6px 0;
}

/* ================= ITEMS ================= */

.item-list {
  margin-top: 5px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 3px 0;
}

.item-name {
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-amt {
  font-weight: bold;
}

/* ================= TOTAL ================= */

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  margin-top: 6px;
}

/* ================= FOOTER ================= */

.center-text {
  text-align: center;
  font-size: 12px;
  margin-top: 6px;
}

/* ================= CONTROLS ================= */

.controls {
  margin-top: 12px;
}

.controls input,
.controls select,
.controls button {
  width: 100%;
  padding: 9px;
  margin-top: 6px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* REMOVE BUTTON */

.remove-btn {
  margin-left: 6px;
  cursor: pointer;
}

/* ================= UPI QR ================= */

#upiSection {
  text-align: center;
  margin-top: 8px;
}

#upiSection img {
  width: 35mm;
}

/* ================= PRINT ================= */

@media print {

  body * {
    visibility: hidden;
  }

  .bill,
  .bill * {
    visibility: visible;
  }

  .bill {
    position: absolute;
    top: 0;
    left: 0;
  }

  .no-print,
  .remove-btn {
    display: none !important;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .pos-container {
    flex-direction: column;
  }

  .menu-panel,
  .bill-panel {
    width: 100%;
  }
}