
body {

  background: #f4f6f8;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
}
.panel {
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
}
h2 {
  margin-top: 0;
}

label {
  margin-top: 10px;
  font-size: 13px;
}

input {
  padding: 8px;
  margin-top: 4px;
}

button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: #007bff;
  color: white;
  border: none;
}

button:hover {
  background: #0056b3;
}
#fullPaidBtn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  background: #2563eb;   /* primary blue */
  color: white;
  border: none;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}
#fullPaidBtn:hover {
  background: #1d4ed8;
}
#refundBtn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  background: #d9534f;   /* red (danger) */
  color: white;
  border: none;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  box-shadow: 0 4px 10px rgba(220,38,38,0.25);
}
#refundBtn:hover {
  background: #b91c1c;
}
#receiveDueBtn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  background: #71996cde;  /* green success */
  color: white;
  border: none;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  box-shadow: 0 4px 10px rgba(22,163,74,0.25);
}
#receiveDueBtn:hover {
  background: #6cb164de;
}

.primary {
  background: #2563eb;
  color: white;
  border: none;
}

.danger {
  background: #dc2626;
  color: white;
  border: none;
}

.scan {
  margin-bottom: 10px;
}

table {
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
  text-align: left;
}

.summary {
  margin-top: auto;
}

.summary div {
  margin-top: 8px;
}

.grand {
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.product-table th {
  background: #f1f5f9;
  font-size: 14px;
}

.product-table td {
  font-size: 13px;
}

.low-stock {
  color: #dc2626;
  font-weight: bold;
}

.ok-stock {
  color: #16a34a;
  font-weight: bold;
}

.product-table tr:hover {
  background: #f9fafb;
  cursor: pointer;
}
.tax-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.tax-box input {
  width: 60%;
}
#paid {
  width: 95%;
}
#customerName,
#customerPhone,
#cashierName {
  width: 95%;
}
#shopNameInput,
#shopAddressInput,
#shopPhoneInput {
  width: 95%;
}
.panel.products.color {
  width: 95%;     /* section width */
  margin: 10px auto; /* center */
}
.top.nav {
  width: 100%;     /* section width */
  margin: 10px auto; /* center */
}
.search-box {
  position: relative;
}
#search {
  width: 100%;
}

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.suggest-item {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggest-item:hover {
  background: #f0f0f0;
}
.suggest-item.active {
  background: #dcecff;
}
.panel.reports {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1;
}

.report-filters, .export-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.report-filters label {
  margin-right: 5px;
  font-weight: 500;
}

.report-filters input {
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button.primary {
  padding: 6px 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button.export {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

button.csv { background: #f0ad4e; color: white; }
button.excel { background: #5cb85c; color: white; }
button.pdf { background: #d9534f; color: white; }

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.report-table th, .report-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

.report-table th {
  background: #f2f2f2;
}
.payment-box {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.panel.products.color {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.payment-box label {
  font-size: 13px;
}

.payment-box input {
  width: 90%;
  padding: 8px;
  margin-top: 4px;
}

.due-line {
  margin-top: 8px;
  font-weight: bold;
  color: #dc2626;
}

button.productlist {
  padding: 6px 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.comment-box {
  margin-top: 10px;
  padding: 10px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.comment-wrapper {
  position: relative;
}

.comment-wrapper textarea {
  width: 95%;
  padding: 8px;
  padding-bottom: 40px; /* space for button */
  resize: vertical;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.comment-wrapper button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #2563eb;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  width: 95%;
}


.scan-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.scan-btn {
  padding: 8px 10px;
  font-size: 18px;
  background: #ffffff;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 6px;
  width: 60px;
}

.scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.scanner-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 320px;
}

#reader {
  width: 100%;
}

#saveShopInfoBtn {
    background-color: #2563eb; /* Green background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 10px 20px;        /* Top-bottom and left-right padding */
    border-radius: 6px;        /* Rounded corners */
    cursor: pointer;           /* Pointer on hover */
    font-size: 14px;           /* Text size */
    margin-top: 10px;          /* Space above */
    transition: background 0.3s ease; /* Smooth hover effect */
  }

.top-nav {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
}

#logoutBtn{
  background:#dc2626;
  color:white;
  border:none;
  padding:10px 14px;
  border-radius:6px;
  cursor:pointer;
  width: 30%;
}

#logoutBtn:hover{
  background:#b91c1c;
} 

#productListBtn{
  background:#ec9c40;
  color:rgb(56, 50, 50);
  
}

#productListBtn:hover{
  background:#f7ba75;
} 

.print-btn {
  background: rgb(67, 163, 196);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.print-btn:hover {
  background: #00a6d6;
}
/* ===== FULL MOBILE APP FEEL ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* center whole app like due.html */
body {
  display: flex;
  justify-content: center;
  background: #f4f6f8;
}

/* main app container */
.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 10px;
}

/* FIX: remove effect of extra wrappers */
.shop-info {
  width: 100%;
}

/* NAV must align with app */
.top-nav {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
}

/* make panels tighter like due */
.panel {
  margin-bottom: 10px;
}

/* smoother mobile spacing */
h2 {
  font-size: 18px;
}

button {
  font-size: 14px;
}