*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* ------------------------------------------------------------------
   TOUCH-FIRST BASELINE
   - Make targets easier to tap on POS touch screens.
   - Prevent accidental double-tap zoom / highlight artifacts.
   ------------------------------------------------------------------ */

html, body { height: 100%; }

/* Better touch interactions */
button, a, input, textarea, select {
  touch-action: manipulation;
}

* { -webkit-tap-highlight-color: transparent; }

/* iOS: prevent focus zoom on small font inputs */
input, textarea, select {
  font-size: 16px;
}

/* Minimum tap target sizing */
.btn-primary,
.btn-secondary,
.staff-tabs .tab-link,
.order-footer-btn,
.qty-btn,
.modal-add-btn,
.modal-close,
.btn-menu {
  min-height: 44px;
}

/* Smooth scrolling on touch devices */
.order-main,
.modal-body,
#billPickBody {
  -webkit-overflow-scrolling: touch;
}

/* LOGIN */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f4f6f8;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.login-title {
  margin: 0 0 4px;
  font-size: 24px;
  text-align: center;
}

.login-subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2);
}

.alert {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 10px;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.mt-3 {
  margin-top: 12px;
}

/* STAFF LAYOUT */

.staff-body {
  background: #111111;
}

.topbar {
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn-menu {
  border: none;
  background: transparent;
  font-size: 22px;
  padding: 4px 8px;
}

.btn-menu:active { transform: scale(0.98); }

.topbar-title {
  font-weight: 600;
  font-size: 15px;
}

.topbar-user {
  font-size: 16px;
  color: #6b7280;
}

.staff-tabs {
  display: flex;
  background: #111111;
  padding: 6px 8px;
  gap: 8px;
}

.staff-tabs .tab-link {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 0;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
}

.staff-tabs .tab-link.active {
  border-color: #22c55e;
  color: #16a34a;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

.staff-main {

}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Bills */

.empty-state {
  text-align: center;
  font-size: 16px;
  padding: 20px 10px;
  color: #6b7280;
}

.bill-card {
  background: #fff7e6;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bill-card-link {
  text-decoration: none;
  color: inherit;
}

.bill-type {
  font-size: 16px;
  font-weight: 600;
}

.bill-no {
  font-size: 15px;
  color: #6b7280;
}

.bill-amount {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.bill-meta {
  font-size: 14px;
  color: #6b7280;
  text-align: right;
}

.bill-meta span + span {
  margin-left: 6px;
}

/* Tables */

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .table-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.table-box {
  border-radius: 8px;
  padding: 12px 0;
  border: 2px solid #22c55e;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.table-box.table-open {
  border-color: #fb923c;
  background: #fff7ed;
  color: #ea580c;
}

/* ORDER PAGE */

.staff-order-layout {
  display: flex;
  height: calc(100vh - 52px);
}

.order-sidebar {
  width: 72px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sidebar-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  text-decoration: none;
  color: #6b7280;
  font-size: 14px;
}

.sidebar-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #9ca3af;
  margin-bottom: 4px;
}

.sidebar-cat-label {
  text-align: center;
  line-height: 1.2;
}

.sidebar-cat.active .sidebar-cat-icon {
  border-color: #22c55e;
}

.sidebar-cat.active {
  color: #22c55e;
}

.order-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 70px;
  overflow-y: auto;
}

.order-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.order-search-form {
  flex: 1;
}

.order-search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  font-size: 14px;
}

.order-view-toggle {
  display: flex;
  gap: 4px;
  font-size: 18px;
}

.toggle-icon {
  padding: 4px 6px;
  border-radius: 8px;
  color: #9ca3af;
}

.toggle-icon.active {
  background: #22c55e;
  color: #fff;
}

.order-category-title {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* ------------------------------------------------------------------
   LANDSCAPE / POS TERMINAL OPTIMIZATION
   - Better density and usability on horizontal screens.
   ------------------------------------------------------------------ */

@media (orientation: landscape) and (min-width: 900px) {
  .topbar { height: 64px; padding: 0 16px; }
  .topbar-title { font-size: 18px; }
  .topbar-user { font-size: 15px; }
  .btn-menu { font-size: 24px; padding: 10px 14px; }

  .staff-main {  }
  .staff-tabs { padding: 8px 12px; gap: 10px; }
  .staff-tabs .tab-link { padding: 10px 0; font-size: 16px; }

  .table-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }

  /* Order page */
  .staff-order-layout { height: calc(100vh - 64px); }
  .order-sidebar { width: 110px; padding-top: 10px; }
  .sidebar-cat { padding: 10px 6px; font-size: 14px; }
  .sidebar-cat-icon { width: 34px; height: 34px; }
  .order-main { padding: 10px 14px 84px; }
  .order-search-row { gap: 10px; margin-bottom: 10px; }
  .order-search-input { padding: 12px 16px; font-size: 16px; }

  .order-category-title { font-size: 16px; margin: 10px 0 8px; }

  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-card-bottom { padding: 12px 10px 14px; }
  .product-name { font-size: 16px; }
  .product-price { font-size: 16px; }

  .order-footer { height: 72px; padding: 0 16px; }
  .order-footer-left { font-size: 14px; }
  .order-footer-total { font-size: 18px; }
  .order-footer-btn { padding: 12px 26px; font-size: 16px; min-height: 52px; }

  /* Modal: center on wide/landscape screens (more like desktop POS) */
  .modal-overlay { align-items: center; }
  .modal-sheet {
    max-width: 760px;
    border-radius: 18px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .modal-title { font-size: 18px; }
  .modal-sub-price { font-size: 16px; }
  .modal-add-btn { padding: 12px 28px; font-size: 16px; min-height: 52px; }
  .qty-btn { width: 48px; height: 48px; font-size: 20px; }
  #modal-qty { width: 72px; padding: 10px 6px; font-size: 16px; }
}

@media (orientation: landscape) and (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .table-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (min-width: 1600px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.product-card {
  border: none;
  padding: 0;
  border-radius: 10px;
  background: #e5e7eb;
  box-shadow: 0 2px 4px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.product-promo {
  background: #fecaca;
}

.product-card-top {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
}

.product-card-tag {
  border-radius: 4px;
  padding: 2px 6px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.product-card-bottom {
  background: #ffffff;
  padding: 8px 6px 10px;
}

.product-name {
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.product-price {
  font-size: 15px;
  color: #6b7280;
}

/* footer order */

.order-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.order-footer-left {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.order-footer-lines {
  color: #6b7280;
}

.order-footer-total {
  font-weight: 700;
  font-size: 15px;
}

.order-footer-btn {
  border-radius: 999px;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  background: #d1d5db;
  color: #ffffff;
}

.order-footer-btn:not([disabled]) {
  background: #3b82f6;
}

/* MODAL ITEM */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 40;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 16px rgba(15,23,42,0.25);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 12px 16px 4px;
  position: relative;
}

.modal-close {
  position: absolute;
  left: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
}

.modal-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.modal-sub-price {
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  margin-top: 2px;
}

.modal-body {
  padding: 8px 16px 12px;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 14px;
}

.modal-section-label {
  font-size: 16px;
  margin-bottom: 4px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 18px;
}

#modal-qty {
  width: 56px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 4px;
}

.price-option-list {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.price-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.price-option-row:last-child {
  border-bottom: none;
}

.price-option-row.active {
  border-left: 3px solid #22c55e;
  background: #ecfdf5;
}

.price-option-name {
  flex: 1;
}

.price-option-price {
  font-weight: 600;
}

#modal-note {
  width: 100%;
  min-height: 70px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 16px;
  background: #f9fafb;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-total {
  font-size: 16px;
  font-weight: 700;
}

.modal-add-btn {
  border-radius: 999px;
  border: none;
  padding: 8px 22px;
  font-size: 14px;
  background: #22c55e;
  color: #ffffff;
}

/* ------------------------------------------------------------------
   LANDSCAPE / LARGE SCREEN TUNING
   - Designed for cashier screens / tablets mounted in landscape.
   ------------------------------------------------------------------ */

@media (orientation: landscape) and (min-width: 900px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  .btn-menu {
    font-size: 26px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .topbar-title {
    font-size: 18px;
  }

  .topbar-user {
    font-size: 16px;
  }

  .staff-tabs {
    padding: 10px 14px;
    gap: 10px;
  }

  .staff-tabs .tab-link {
    padding: 12px 0;
    font-size: 16px;
  }

  .staff-main {
    
  }

  /* Tables: show more columns */
  .table-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  /* Order layout */
  .staff-order-layout {
    height: calc(100vh - 64px);
  }

  .order-sidebar {
    width: 108px;
    padding-top: 12px;
  }

  .sidebar-cat {
    padding: 10px 6px;
    font-size: 15px;
  }

  .sidebar-cat-icon {
    width: 40px;
    height: 40px;
  }

  .order-main {
    padding: 12px 14px 86px;
  }

  .order-search-input {
    padding: 12px 14px;
    font-size: 16px;
  }

  .order-category-title {
    font-size: 16px;
    margin: 10px 0 8px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card-bottom {
    padding: 10px 10px 12px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-price {
    font-size: 16px;
  }

  /* Footer: larger buttons */
  .order-footer {
    height: 70px;
    padding: 0 16px;
  }

  .order-footer-left {
    font-size: 16px;
  }

  .order-footer-btn {
    padding: 12px 28px;
    font-size: 16px;
    min-height: 52px;
  }

  /* Modal: center sheet for landscape */
  .modal-overlay {
    align-items: center;
  }

  .modal-sheet {
    max-width: 720px;
    border-radius: 18px;
  }
}

@media (orientation: landscape) and (min-width: 1200px) {
  .table-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (min-width: 1600px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* SUMMARY PAGE */

.summary-main {
  padding: 10px 12px 80px;
}

.summary-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-pill {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.summary-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.summary-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 2px 4px rgba(15,23,42,0.04);
}

.summary-label {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 4px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

.summary-line:last-child {
  border-bottom: none;
}

.summary-line-info {
  font-size: 16px;
}

.summary-line-sub {
  font-size: 14px;
  color: #6b7280;
}

.summary-line-amount {
  font-size: 16px;
  font-weight: 600;
}

.summary-line-new {
  background: #fef3c7;
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
}

/* summary footer */

.summary-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 10px;
}

.summary-footer-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.summary-add-btn {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  color: #16a34a;
}

.summary-add-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.summary-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-footer-info {
  font-size: 16px;
}

.summary-footer-total {
  font-weight: 700;
  font-size: 16px;
}

.summary-save-btn {
  border-radius: 999px;
  border: none;
  padding: 8px 24px;
  font-size: 14px;
  background: #3b82f6;
  color: #ffffff;
}


/* === PRO LOOK OVERRIDES === */

/* Bill list card */
.bill-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}

.bill-type {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.bill-no {
  font-size: 14px;
  color: #9ca3af;
}

.bill-amount {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.bill-meta {
  font-size: 14px;
  color: #9ca3af;
}

/* Table boxes */
.table-box {
  border-radius: 12px;
  border-width: 1px;
  font-weight: 600;
}

.table-box.table-open {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

/* Summary section look */
.summary-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}

.summary-line {
  padding: 8px 0;
}

.summary-line + .summary-line {
  border-top: 1px solid #f3f4f6;
}

/* New items highlight */
.summary-line-new {
  background: #fefce8;
  border-radius: 10px;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Right side amount + remove */
.summary-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.summary-remove-btn {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #ef4444;
  padding: 0;
  cursor: pointer;
}

.summary-remove-btn:hover {
  text-decoration: underline;
}

/* Footer summary more polished */
.summary-footer {
  box-shadow: 0 -2px 8px rgba(15,23,42,0.06);
}

.summary-footer-total {
  font-size: 18px;
}



/* แสดงคนคีย์ + เวลาคีย์ */
.summary-line-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Drawer (burger menu) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.35);
  display: none;
  z-index: 40;
}

.drawer-overlay.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: #ffffff;
  box-shadow: 2px 0 10px rgba(15,23,42,0.25);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  font-weight: 600;
  margin-bottom: 12px;
}

.drawer-user {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 16px;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu li {
  margin-bottom: 6px;
}

.drawer-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #111827;
}

.drawer-menu a:hover {
  background: #f3f4f6;
}


/* ===== FONT SIZE OVERRIDES (bigger for readability on mobile) ===== */

body,
.staff-body {
  font-size: 15px;
}

.login-title {
  font-size: 22px;
}

.login-subtitle {
  font-size: 14px;
}

.table-box .table-name {
  font-size: 16px;
}

.table-box .table-meta {
  font-size: 16px;
}

.bill-card .bill-type {
  font-size: 14px;
}

.bill-card .bill-no {
  font-size: 15px;
}

.bill-card .bill-amount {
  font-size: 18px;
}

.bill-card .bill-meta {
  font-size: 15px;
}

.summary-label {
  font-size: 14px;
}

.summary-line-info {
  font-size: 15px;
}

.summary-line-sub {
  font-size: 16px;
}

.summary-line-meta {
  font-size: 15px;
}

.summary-footer-info {
  font-size: 14px;
}

.summary-footer-total {
  font-size: 20px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  font-size: 15px;
}


/* โต๊ะสถานะ invoiced (ออกใบเรียกเก็บเงินแล้ว) */
.table-box.table-invoiced {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
  position: relative;
}

.table-name-text {
  display: inline-block;
  vertical-align: middle;
}

.table-badge-invoiced {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #facc15;
  color: #78350f;
  vertical-align: middle;
}


/* ปรับขนาด icon SweetAlert2 ที่ใช้ Font Awesome */
.swal2-fa-icon {
  border: none !important;
}
.swal2-fa-icon .fa-solid {
  font-size: 2.5rem;
  color: #f59e0b;
}


/* product card image */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.product-card-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2px;
}

.product-card-image {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.product-card-image-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px dashed #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.7;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar-user {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  line-height: 1.2;
}

.topbar-username {
  font-weight: 500;
  color: #111827;
}

.topbar-commission {
  font-size: 11px;
  color: #16a34a;        /* เขียว = เงินเข้า */
  margin-top: 2px;
}


/********************************************************************/
.product-card-bottom {
    background: #ffffff;
    padding: 8px 6px 10px;
    border-radius: 15px;
}

.order-sidebar {
    width: 72px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: scroll;
}