/**
 * Dapur Tyas POS - Modern Terminal Stylesheet
 * Konsep: Modern F&B Terminal POS (Clean White, Tech Blue, Emerald Green)
 * Layout Full-App: Terstruktur, Ringkas, Cepat untuk Operasional Kasir
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* PALET WARNA: PUTIH & ORANGE (Brand Dapur Tyas) */
  --c-white: #ffffff;
  --c-bg: #fafaf9;
  --c-surface: #ffffff;
  --c-surface-hover: #fff7ed;
  
  /* Orange Brand (Navigasi, Seleksi, Aksi Utama) */
  --c-blue: #ea580c;
  --c-blue-hover: #c2410c;
  --c-blue-light: #fff7ed;
  --c-blue-border: #fed7aa;
  --c-blue-text: #9a3412;

  /* Hijau Emerald (Bayar, Stok Aman, Sukses, Keuangan) */
  --c-green: #16a34a;
  --c-green-hover: #15803d;
  --c-green-light: #f0fdf4;
  --c-green-border: #bbf7d0;
  --c-green-text: #14532d;

  /* Netral & Tipografi */
  --c-slate-900: #1c1917;
  --c-slate-800: #292524;
  --c-slate-600: #57534e;
  --c-slate-500: #78716c;
  --c-slate-400: #a8a29e;
  --c-slate-200: #e7e5e4;
  --c-slate-100: #f5f5f4;

  /* Status */
  --c-red: #dc2626;
  --c-red-light: #fef2f2;
  --c-red-border: #fecaca;
  --c-amber: #d97706;
  --c-amber-light: #fffbeb;
  --c-amber-border: #fde68a;

  /* Radius & Shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 9999px;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, 0.05);
  --sh-lg: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* =============================================
   POS KEYFRAME ANIMATIONS
   ============================================= */

@keyframes posOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes posDialogIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes posToastIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes posToastOut {
  from { opacity: 1; transform: translateX(0) scale(1); max-height: 80px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(24px) scale(0.9); max-height: 0; margin-bottom: -8px; }
}

@keyframes cartRowIn {
  from { opacity: 0; transform: translateX(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cartRowOut {
  from { opacity: 1; transform: scale(1); max-height: 80px; }
  to   { opacity: 0; transform: scale(0.95) translateX(12px); max-height: 0; }
}

@keyframes badgePop {
  0%   { transform: scale(0.5); opacity: 0; }
  65%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes priceFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cart item row animation classes */
.ticket-item-row.entering {
  animation: cartRowIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ticket-item-row.leaving {
  animation: cartRowOut 0.25s ease forwards;
  overflow: hidden;
  pointer-events: none;
}

/* Cart counter badge pop animation */
.cart-counter-pill.pop {
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}


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

body.pos-layout {
  background-color: var(--c-bg);
  color: var(--c-slate-900);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   1. TOPBAR POS TERMINAL (PUTIH & BIRU DENGAN SEARCH TERPADU)
   ========================================================= */
.pos-topbar {
  background: var(--c-white);
  border-bottom: 1.5px solid #fed7aa;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.04);
  animation: slideInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-badge {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Topbar Search (Lebih Rapi & Luas) */
.search-container {
  flex: 1;
  max-width: 480px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--r-md);
  padding: 0 12px;
  transition: all 0.15s ease;
}

.search-box:focus-within {
  background: var(--c-white);
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--c-slate-900);
  outline: none;
}

.search-box svg {
  color: #ea580c;
  flex-shrink: 0;
}

/* Topbar Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.clock-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: #ea580c;
}

.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 0.825rem;
  font-weight: 700;
  color: #57534e;
  background: var(--c-white);
  border: 1.5px solid #fed7aa;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-topbar:hover {
  background: #fff7ed;
  color: #ea580c;
  border-color: #ea580c;
}

.badge-count-green {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* =========================================================
   2. MAIN POS WORKSPACE (KATALOG KIRI + TIKET PESANAN KANAN)
   ========================================================= */
.pos-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  padding: 18px 24px;
  max-width: 1520px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.4s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* SISI KIRI: KATALOG MENU */
.catalog-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Category Filter Tabs (Sleek Horizontal Pills) */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 1.5px solid #fed7aa;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-slate-600);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-chip:hover {
  border-color: var(--c-blue-border);
  color: var(--c-blue);
  background: var(--c-blue-light);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.filter-chip .chip-badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.filter-chip.active .chip-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--c-white);
}

/* Menu Grid (Touch-First POS Cards) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.product-tile {
  background: var(--c-white);
  border: 1.5px solid #fed7aa;
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.18s ease,
              box-shadow 0.22s ease;
}

.product-tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-blue);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
}

.product-tile:active {
  transform: scale(0.97) translateY(0);
  transition-duration: 0.1s;
}

.tile-img-box {
  width: 100%;
  height: 125px;
  border-radius: var(--r-md);
  background: var(--c-slate-100);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge Stok di Kartu */
.stock-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.stock-pill.ready {
  background: var(--c-green-light);
  color: var(--c-green);
  border: 1px solid var(--c-green-border);
}

.stock-pill.low {
  background: var(--c-amber-light);
  color: var(--c-amber);
  border: 1px solid var(--c-amber-border);
}

.stock-pill.empty {
  background: var(--c-red-light);
  color: var(--c-red);
  border: 1px solid var(--c-red-border);
}

/* Badge Keranjang Aktif (Orange) */
.cart-counter-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
  display: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.tile-info {
  padding: 10px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tile-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-slate-400);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-slate-900);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--c-slate-100);
}

.tile-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-blue);
}

.tile-add-btn {
  background: var(--c-blue-light);
  color: var(--c-blue);
  border: 1.5px solid var(--c-blue-border);
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.12s ease;
}

.product-tile:hover .tile-add-btn {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

.product-tile.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-tile.disabled:hover {
  transform: none;
  border-color: var(--c-slate-200);
  box-shadow: none;
}

/* =========================================================
   3. SISI KANAN: DIGITAL ORDER TICKET (PUTIH & ORANGE)
   ========================================================= */
.order-ticket-panel {
  background: var(--c-white);
  border: 1.5px solid #fed7aa;
  border-radius: var(--r-xl);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.05);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 76px;
  height: calc(100vh - 96px);
  max-height: 840px;
  overflow: hidden;
}

.ticket-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-white);
}

.ticket-title-wrap h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-slate-900);
}

.ticket-title-wrap span {
  font-size: 0.775rem;
  color: #ea580c;
  font-weight: 700;
}

.btn-clear-ticket {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #78716c;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-ticket:hover {
  background: var(--c-red-light);
  color: var(--c-red);
  border-color: var(--c-red-border);
}

/* Daftar Item di Tiket */
.ticket-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #fed7aa transparent;
}

.ticket-empty {
  text-align: center;
  padding: 60px 16px;
  color: var(--c-slate-400);
}

.ticket-empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: #fed7aa;
}

.ticket-empty h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-slate-600);
  margin-bottom: 4px;
}

.ticket-empty p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--c-slate-400);
}

.ticket-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--c-white);
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
  gap: 10px;
  transition: border-color 0.15s ease;
}

.ticket-item-row:hover {
  border-color: var(--c-blue);
}

.item-desc {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-subtotal {
  font-size: 0.775rem;
  color: var(--c-slate-500);
  margin-top: 2px;
}

.item-subtotal strong {
  color: var(--c-blue);
  font-weight: 700;
}

.item-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
  padding: 2px;
}

.btn-step {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--c-white);
  color: #ea580c;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
  transition: all 0.12s ease;
}

.btn-step:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

.step-count {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.btn-delete-item {
  background: transparent;
  border: none;
  color: var(--c-slate-400);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
}

.btn-delete-item:hover {
  color: var(--c-red);
  background: var(--c-red-light);
}

/* Footer Tiket Pesanan */
.ticket-footer {
  padding: 16px 20px;
  border-top: 1.5px solid #fed7aa;
  background: #fff7ed;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-slate-500);
}

.ticket-calc-row strong {
  color: var(--c-slate-900);
}

.ticket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #fed7aa;
}

.total-tag {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-slate-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-amount {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: -0.5px;
}

/* Tombol Bayar Sekarang (ORANGE BRAND SOLID) */
.btn-checkout-pay {
  width: 100%;
  background: #ea580c;
  color: var(--c-white);
  border: none;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.15s ease;
}

.btn-checkout-pay:hover:not(:disabled) {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

.btn-checkout-pay:active:not(:disabled) {
  transform: translateY(0);
}

.btn-checkout-pay:disabled {
  background: var(--c-slate-200);
  color: var(--c-slate-400);
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================
   4. MODAL PEMBAYARAN KASIR (ACCESSIBLE & SMOOTH SCROLL)
   ========================================================= */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  -webkit-overflow-scrolling: touch;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-dialog {
  background: var(--c-white);
  border-radius: var(--r-xl);
  max-width: 580px;
  width: 100%;
  margin: auto;
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-slate-200);
  /* Dialog animation */
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-modal-overlay.is-open .checkout-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}


.modal-head {
  padding: 18px 24px;
  border-bottom: 1.5px solid var(--c-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-white);
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-slate-900);
}

.modal-head span {
  font-size: 0.775rem;
  color: var(--c-slate-500);
}

.modal-close-icon {
  background: var(--c-slate-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-slate-500);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-icon:hover {
  background: var(--c-slate-200);
  color: var(--c-slate-900);
}

.modal-content-body {
  padding: 22px 24px;
  overflow-y: auto;
}

/* Tagihan Box (Biru Terang Bersih) */
.bill-banner {
  background: var(--c-blue-light);
  border: 1.5px solid var(--c-blue-border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.bill-banner .label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-blue-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bill-banner .value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-blue);
  margin-top: 2px;
  letter-spacing: -0.5px;
}

/* Metode Bayar Selector */
.payment-selector {
  margin-bottom: 18px;
}

.payment-selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-slate-800);
  margin-bottom: 8px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.method-chip {
  padding: 12px 8px;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  background: var(--c-white);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-slate-600);
  user-select: none;
  transition: all 0.15s ease;
}

.method-chip:hover {
  border-color: var(--c-slate-400);
  color: var(--c-slate-900);
}

.method-chip.active {
  border-color: var(--c-blue);
  background: var(--c-blue-light);
  color: var(--c-blue);
}

/* Input Tunai & Kembalian */
.cash-box-wrapper {
  margin-bottom: 16px;
}

.cash-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cash-top-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-slate-800);
}

.cash-top-row button {
  background: none;
  border: none;
  color: var(--c-blue);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cash-input-field {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--c-slate-900);
  background: var(--c-white);
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.15s;
}

.cash-input-field:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.cash-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-quick-chip {
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--c-slate-100);
  border: 1px solid var(--c-slate-200);
  border-radius: var(--r-sm);
  color: var(--c-slate-700);
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-quick-chip:hover {
  background: var(--c-blue-light);
  border-color: var(--c-blue-border);
  color: var(--c-blue);
}

/* Kembalian Box (ORANGE & PUTIH) */
.change-result-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--r-md);
  margin-bottom: 16px;
}

.change-result-box .title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
}

.change-result-box .status {
  font-size: 0.75rem;
  color: var(--c-slate-500);
  display: block;
}

.change-result-box .amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ea580c;
  font-family: var(--font-mono);
}

/* Modal Actions */
.modal-foot-actions {
  padding: 16px 24px;
  border-top: 1.5px solid #fed7aa;
  display: flex;
  gap: 12px;
  background: #fff7ed;
}

.btn-cancel-modal {
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid #fed7aa;
  background: var(--c-white);
  color: var(--c-slate-600);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-modal:hover {
  background: #ffedd5;
  color: #1c1917;
}

.btn-submit-modal {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: none;
  background: #ea580c;
  color: var(--c-white);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.15s ease;
}

.btn-submit-modal:hover:not(:disabled) {
  background: #c2410c;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

/* Toast Container */
#posToastContainer {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pos-toast {
  pointer-events: auto;
  background: var(--c-slate-900);
  color: var(--c-white);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 360px;
  animation: posToastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}

.pos-toast.leaving {
  animation: posToastOut 0.25s ease forwards;
}

.pos-toast.success {
  background: #064e3b;
  border-left: 4px solid var(--c-green);
}

/* Responsive */
@media (max-width: 1024px) {
  .pos-workspace {
    grid-template-columns: 1fr;
    padding-bottom: 90px;
  }
  
  .order-ticket-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    max-height: 80vh;
    z-index: 95;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
}

/* =========================================================
   5. QRIS BARCODE & MULTI-BANK TRANSFER STYLES
   ========================================================= */

/* --- A. QRIS Card Section --- */
.qris-box-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
  margin-bottom: 14px;
}

.qris-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #fed7aa;
  margin-bottom: 12px;
}

.qris-brand-banner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qris-badge-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 0.5px;
}

.qris-badge-sub {
  font-size: 0.65rem;
  font-weight: 800;
  background: #fef2f2;
  color: #b91c1c;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #fecaca;
  text-transform: uppercase;
}

.gpn-badge {
  font-size: 0.75rem;
  font-weight: 900;
  background: #1e3a8a;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.qris-merchant-info {
  margin-bottom: 14px;
}

.qris-merchant-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.2px;
}

.qris-merchant-meta {
  font-size: 0.775rem;
  color: #78716c;
  margin-top: 2px;
}

.qris-barcode-area {
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  padding: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  position: relative;
}

.qris-barcode-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
}

.qris-scan-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 10px;
  border-radius: 20px;
}

.qris-amount-banner {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qris-amount-banner span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9a3412;
}

.qris-amount-banner strong {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ea580c;
  font-family: var(--font-mono);
}

.qris-apps-container {
  margin-bottom: 14px;
}

.qris-apps-title {
  font-size: 0.725rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.qris-apps-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.qris-app-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  color: #44403c;
}

.qris-action-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-qris-fullscreen {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-qris-fullscreen:hover {
  background: #fff7ed;
  border-color: #ea580c;
}

/* --- B. Fullscreen Customer-Facing QRIS Modal --- */
.qris-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.qris-fullscreen-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.qris-fullscreen-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid #fed7aa;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qris-fullscreen-overlay.is-open .qris-fullscreen-dialog {
  transform: scale(1);
}

.qris-fullscreen-dialog .qris-barcode-img {
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

/* --- C. Multi-Bank Transfer Styles --- */
.transfer-box-card {
  margin-bottom: 14px;
}

.transfer-section-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: #292524;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transfer-badge-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: #fff7ed;
  color: #ea580c;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bank-card {
  background: #ffffff;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.bank-card:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  transform: translateY(-1px);
}

.bank-card.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.bank-logo-box {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 6px;
  border: 1px solid #f0eee9;
  margin-bottom: 4px;
}

.bank-logo-img {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.bank-card:hover .bank-logo-img {
  transform: scale(1.05);
}

.bank-tag {
  font-size: 0.725rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffffff;
  letter-spacing: 0.3px;
  width: 100%;
  text-align: center;
}

.bank-tag.bca { background: #005baa; }
.bank-tag.bri { background: #00529c; }
.bank-tag.mandiri { background: #002d62; }
.bank-tag.bni { background: #ea580c; }
.bank-tag.bsi { background: #00a39d; }
.bank-tag.seabank { background: #ff5722; }
.bank-tag.jago { background: #7030a0; }
.bank-tag.dana { background: #118eea; }
.bank-tag.gopay { background: #00aa13; }

.bank-label-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #292524;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.bank-code-text {
  font-size: 0.65rem;
  color: #78716c;
  font-family: var(--font-mono);
}

.selected-bank-logo-wrap {
  min-width: 80px;
  max-width: 90px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px 8px;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.08);
}

.selected-bank-logo-img {
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Detail Rekening Panel Terpilih */
.selected-bank-panel {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.05);
}

.selected-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #fed7aa;
  margin-bottom: 12px;
}

.selected-bank-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-bank-badge {
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  color: #ffffff;
}

.selected-bank-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1c1917;
}

.selected-bank-verified {
  font-size: 0.725rem;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Rekening Row */
.account-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf9;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  gap: 10px;
}

.account-number-block {
  flex: 1;
}

.account-number-block .acc-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.account-number-block .acc-number {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #1c1917;
  letter-spacing: 1px;
}

.account-number-block .acc-holder {
  font-size: 0.75rem;
  color: #57534e;
  margin-top: 2px;
}

.btn-copy-action {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.775rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy-action:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

.btn-copy-action.copied {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

/* Transfer Amount Box */
.transfer-amount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  gap: 10px;
}

.transfer-amount-card .amount-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  display: block;
}

.transfer-amount-card .amount-value {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ea580c;
}

/* Ref / Bukti Transfer Input */
.transfer-ref-input-group {
  margin-top: 10px;
}

.transfer-ref-input-group label {
  font-size: 0.775rem;
  font-weight: 700;
  color: #44403c;
  display: block;
  margin-bottom: 4px;
}

.transfer-ref-input-group input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.85rem;
  border: 1.5px solid #e7e5e4;
  border-radius: 8px;
  outline: none;
  background: #fafaf9;
  transition: all 0.15s ease;
}

.transfer-ref-input-group input:focus {
  border-color: #ea580c;
  background: #ffffff;
}

