/* ============================================
   WAK PLONG POS - SHARED THEME
   Theme: Navy #1b2e4b + Red #e74c3c
   ============================================ */

:root {
  --bg: #1b2e4b;
  --bg2: #243352;
  --bg3: #2d3f63;
  --surface: #fff;
  --surface2: #f4f5f7;
  --border: #e0e0e0;
  --text: #1b2e4b;
  --text2: #555;
  --text3: #888;
  --accent: #e74c3c;
  --accent2: #c0392b;
  --green: #27ae60;
  --yellow: #f1c40f;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.15);
  --radius-sm: 8px;
  --radius-xs: 6px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
html, body { height:100%; width:100%; overflow:hidden; }
body {
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

/* Scrollbars */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

/* Toast */
.toast {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 11px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  max-width: 85%;
  text-align: center;
  word-break: break-word;
  display: none;
  pointer-events: none;
}
.toast.show { display: block; }
.toast.err { background: var(--accent); }
.toast.warn { background: #e67e22; }

/* Offline Banner */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #e67e22;
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  z-index: 9998;
  display: none;
}
.offline-banner.show { display: block; }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; gap: 12px; color: rgba(255,255,255,.5); font-size: 12px; }

/* Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 14px 16px;
  z-index: 500;
  display: none;
  max-width: 280px;
  box-shadow: var(--shadow);
}
.install-prompt.show { display: block; }
.install-prompt h4 { color: #fff; font-size: 13px; margin-bottom: 6px; }
.install-prompt p { color: rgba(255,255,255,.6); font-size: 11px; margin-bottom: 10px; }
.install-prompt-btns { display: flex; gap: 8px; }
.install-prompt-btns button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.install-prompt-btns .ip-install { background: var(--accent); color: #fff; }
.install-prompt-btns .ip-later { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

/* Fullscreen Button */
.btn-fs {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  display: none;
  -webkit-user-select: none;
  user-select: none;
}
.btn-fs.visible { display: inline-flex; align-items: center; justify-content: center; }
.btn-fs:active { background: rgba(255,255,255,.25); }

/* === Payment Method Buttons === */
.btn-bayar-tunai, .btn-bayar-qris {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: .15s;
}
.btn-bayar-tunai {
  background: #fff;
  border: 2px solid #f1c40f;
  color: #222;
}
.btn-bayar-tunai:hover {
  background: rgba(241,196,15,.08);
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(241,196,15,.3);
}
.btn-bayar-tunai:active {
  transform: scale(.96) translateY(0);
  box-shadow: none;
}
.btn-bayar-qris {
  background: #fff;
  border: 2px solid #2ecc71;
  color: #222;
}
.btn-bayar-qris:hover {
  background: rgba(46,204,113,.08);
  border-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46,204,113,.3);
}
.btn-bayar-qris:active {
  transform: scale(.96) translateY(0);
  box-shadow: none;
}
.btn-bayar-tunai:disabled, .btn-bayar-qris:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn-bayar-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #111;
}
.btn-bayar-sub {
  font-size: 10px;
  font-weight: 400;
  color: #555;
}

/* === Payment Modal Total Row === */
.pay-total-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 16px;
}
.pay-order-id {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: 1px;
}
.pay-total-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pay-total-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pay-total-amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}

/* === Pay Methods Container === */
.pay-methods {
  display: flex;
  gap: 12px;
  padding: 0 0 8px;
}

/* === Payment Method Badge in Queue Card === */
.pay-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-left: 4px;
}
.pay-badge.tunai { background: rgba(241,196,15,.2); color: #f1c40f; }
.pay-badge.qris  { background: rgba(46,204,113,.2); color: #2ecc71; }

/* === Status Badge === */
.status-pending {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  letter-spacing: .5px;
}

