body {
  margin: 0;
  font: 400 4vw Arial, sans-serif;
  background: #f8f8f8;
  color: #000;
}

#item-list {
  padding: 3vw 3vw 15vh;
  display: flex;
  flex-direction: column;
  gap: 3vw;
}

.item, .txn, .analytics-card {
  background: #fff;
  border-radius: 2vw;
  box-shadow: 0 0 4vw rgba(0, 0, 0, 0.1);
  padding: 3vw;
}

.analytics-card {
  text-align: center;
}

.item {
  display: flex;
  flex-direction: column;
}

.item-header, .item-prices, .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-header {
  font: bold 4vw Arial, sans-serif;
  margin-bottom: 1vw;
}

.item-prices {
  font-size: 3.5vw;
  margin: 1vw 0;
}

.item-name {
  font-size: 4vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-stock {
  flex: 0 0 25%;
  text-align: right;
  font-size: 3.5vw;
  color: #888;
}

.qty-control {
  display: flex;
  border: 2px solid dodgerblue;
  border-radius: 10vw;
  overflow: hidden;
  background: #fff;
  height: 4vh;
  width: 29vw;
}

.qty-control button, .qty-control input {
  border: none;
  background: #fff;
  font-size: 4vw;
  padding: 2vw;
  width: 10vw;
  text-align: center;
}

.qty-control input {
  border: 1px solid #ddd;
  border-top: none;
  border-bottom: none;
}

#bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: dodgerblue;
  color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 3vw 0;
  z-index: 10;
}

#bottom-bar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 4vw;
}

.popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 4vw;
  padding-bottom: 20vh;
  box-sizing: border-box;
  z-index: 1000;
}

.hidden {
  display: none;
}

.summary, .adjustments, .cash-due {
  margin: 3vw 0;
  font-size: 4vw;
}

.adjustments {
  display: flex;
  gap: 2vw;
}

.adjustments input {
  flex: 1;
  font-size: 4vw;
  padding: 2.5vw;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 25vw;
}

.cash-due {
  font-weight: bold;
  font-size: 5vw;
}

.cost-form .row, .row {
  display: flex;
  gap: 2vw;
  margin-bottom: 3vw;
}

.cost-form input, .cost-form select, .row input, select#cost-type {
  flex: 1;
  font-size: 4vw;
  padding: 2vw;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 3vw;
  box-sizing: border-box;
}

.cost-form .row.three-cols input {
  flex: 1;
  min-width: 0;
}

button, .close-popup-btn, .tabs button {
  background: dodgerblue;
  color: #fff;
  border: none;
  border-radius: 1vw;
  padding: 2vw 4vw;
  font-size: 4vw;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-popup-btn {
  padding: 3vw 6vw;
  border-radius: 10vw;
  width: 90%;
}

.tabs {
  display: flex;
  margin-top: 3vw;
}

.tabs button {
  flex: 1;
  background: #e0e0e0;
  color: #000;
  border-radius: 0;
}

.tabs button.active {
  background: dodgerblue;
  color: #fff;
}

.tab-content {
  display: none;
  margin-top: 3vw;
}

.tab-content.active {
  display: block;
}

.txn-date {
  font-size: 3vw;
  color: #777;
  margin-top: 1vw;
}

.popup-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 3vw;
  text-align: center;
  z-index: 1001;
}

#customer-name {
  width: 100%;
  box-sizing: border-box;
  font-size: 4vw;
  padding: 3vw;
  margin-bottom: 3vw;
}

.cart-item {
  padding: 2vw 0;
  border-bottom: 1px solid #ddd;
  font-size: 4vw;
}

.cart-item-name {
  font-weight: bold;
  flex: 2;
}

.cart-item-qty {
  flex: 2;
  text-align: center;
}

.cart-item-total {
  flex: 1.5;
  text-align: right;
  color: dodgerblue;
  font-weight: 600;
}