/* ==========================================================================
   FuadCompuZONE POS - Frozen Food & Toko Kelontong
   Theme Engine: 3D Claymorphism, 3D White & Dark (Inspired by 1 Synergy)
   Auto-Versioning, Multi-layer Security, Thermal Print & Mobile HP Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Theme 1: 3D Claymorphism (Default signature of 1 synergy) */
  --clay-bg: radial-gradient(circle at 30% 20%, #FFF5ED 0%, #F5DCD0 60%, #E8C6B6 100%);
  --clay-card-bg: #FFFFFF;
  --clay-card-border: rgba(255, 255, 255, 0.85);
  --clay-card-shadow: 10px 10px 24px rgba(185, 145, 125, 0.28), -8px -8px 20px #FFFFFF;
  --clay-card-inner: inset 1px 1px 2px rgba(255, 255, 255, 0.9);
  --clay-primary: linear-gradient(180deg, #FF763B 0%, #E85207 100%);
  --clay-primary-solid: #E85207;
  --clay-primary-shadow: 0 6px 16px rgba(232, 82, 7, 0.38);
  --clay-accent: #0284c7;
  --clay-text: #2D2420;
  --clay-text-muted: #7A665A;
  --clay-input-bg: #FAF6F3;
  --clay-input-border: #E2D2C2;
  --clay-header-bg: rgba(255, 248, 242, 0.92);
  --clay-sidebar-bg: #2B1D16;

  /* Current Active Variables */
  --bg-main: var(--clay-bg);
  --bg-card: var(--clay-card-bg);
  --card-border: var(--clay-card-border);
  --card-shadow: var(--clay-card-shadow);
  --primary-gradient: var(--clay-primary);
  --primary: var(--clay-primary-solid);
  --primary-shadow: var(--clay-primary-shadow);
  --text-main: var(--clay-text);
  --text-muted: var(--clay-text-muted);
  --input-bg: var(--clay-input-bg);
  --input-border: var(--clay-input-border);
  --header-bg: var(--clay-header-bg);
  --sidebar-bg: var(--clay-sidebar-bg);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ==========================================================================
   Theme 2: Klasik Hijau (RegoPOS / Minimarket Classic Register)
   ========================================================================== */
body.theme-classic-green {
  --bg-main: linear-gradient(180deg, #4b8c0f 0%, #3d760a 100%);
  --bg-card: #ffffff;
  --card-border: #84cc16;
  --card-shadow: 0 4px 14px rgba(20, 45, 5, 0.2);
  --primary-gradient: linear-gradient(180deg, #4d8f0c 0%, #3b7208 100%);
  --primary: #3b7208;
  --primary-shadow: 0 4px 12px rgba(59, 114, 8, 0.35);
  --text-main: #0f172a;
  --text-muted: #475569;
  --input-bg: #f8fafc;
  --input-border: #94a3b8;
  --header-bg: #eef7e3;
  --sidebar-bg: #1e3a08;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--bg-main) !important;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

/* ==========================================================================
   LOGIN SCREEN WITH 3D MATH CAPTCHA (Like 1 Synergy)
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.login-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--card-shadow);
  border: 1.5px solid var(--card-border);
  position: relative;
}

/* 3D Math CAPTCHA Box (Signature of 1 Synergy) */
.captcha-box-3d {
  background: linear-gradient(145deg, #EDE0D4 0%, #E2D2C2 100%);
  border-top: 2px solid #D2BEAD;
  border-bottom: 2px solid #B09B8A;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #5C4033;
  padding: 10px 16px;
  text-align: center;
  user-select: none;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 2px 3px 6px rgba(0, 0, 0, 0.08);
}

body.theme-classic-green .captcha-box-3d {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border-top: 2px solid #86efac;
  border-bottom: 2px solid #22c55e;
  color: #14532d;
}

.btn-refresh-captcha {
  background: linear-gradient(145deg, #FFFFFF 0%, #F5E8DF 100%);
  border: 1.5px solid #D2BEAD;
  border-radius: 10px;
  padding: 0 14px;
  height: 44px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.06);
  transition: all 0.15s;
}

.btn-refresh-captcha:active {
  transform: translateY(2px);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.15);
}

/* ==========================================================================
   APP LAYOUT & SIDEBAR
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
}

/* Sidebar Backdrop for Auto-Hide overlay */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  margin-left: auto;
}
.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==========================================================================
   POS FULLSCREEN AUTO-HIDE SIDEBAR MODE
   ========================================================================== */
body.pos-mode-active .sidebar {
  transform: translateX(-100%);
  z-index: 1100;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

body.pos-mode-active .sidebar.open {
  transform: translateX(0);
}

body.pos-mode-active .main-wrapper {
  margin-left: 0 !important;
  width: 100%;
}

.sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--primary-shadow);
}

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--primary-shadow);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
}

.main-wrapper {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Visibility Helpers */
.show-xs { display: none !important; }
.hide-xs { display: inline-flex !important; }

/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */
.top-header {
  height: 72px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.header-title-box {
  min-width: 0;
}

.top-page-title {
  font-weight: 900;
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.top-page-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ==========================================================================
   DIGITAL CASH REGISTER VFD DISPLAY (MODE KOMPUTER - BESAR SEPERTI MESIN KASIR)
   ========================================================================== */
.top-cashier-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0D0A08; /* Deep Onyx Obsidian register screen */
  border: 2px solid #543725;
  border-bottom: 5px solid #281910; /* Heavy 3D hardware bezel shelf */
  border-radius: 14px;
  padding: 4px 22px 6px 22px;
  margin-left: 20px;
  min-width: 290px;
  cursor: pointer;
  box-shadow: 
    0 6px 20px rgba(13, 10, 8, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    inset 0 0 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.top-cashier-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 12px 12px 0 0;
}

.top-cashier-display:hover {
  transform: translateY(-2px);
  border-color: #8E5A3C;
  box-shadow: 
    0 8px 24px rgba(13, 10, 8, 0.45),
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(234, 88, 12, 0.25);
}

.top-cashier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  margin-bottom: 2px;
}

.vfd-status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF66;
  box-shadow: 0 0 8px #00FF66;
  display: inline-block;
  flex-shrink: 0;
  animation: vfdPulse 2s infinite ease-in-out;
}

@keyframes vfdPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px #00FF66; }
}

.top-cashier-tag {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #FFA578; /* Warm glowing terracotta */
  text-transform: uppercase;
}

.top-cashier-qty-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
  line-height: 1.2;
}

.top-cashier-amount {
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace, sans-serif;
  font-size: 38px; /* Tampilan BESAR terlihat jelas dari kejauhan seperti mesin kasir supermarket */
  font-weight: 900;
  color: #00FF66; /* Neon digital register green */
  letter-spacing: 1.2px;
  line-height: 1.05;
  text-shadow: 0 0 16px rgba(0, 255, 102, 0.55), 0 0 4px rgba(0, 255, 102, 0.85);
  white-space: nowrap;
}

/* When cart has items, add subtle warm highlight */
.top-cashier-display.has-items {
  border-color: #9C6242;
  box-shadow: 
    0 6px 22px rgba(234, 88, 12, 0.32),
    inset 0 2px 4px rgba(0, 0, 0, 0.8);
}
.top-cashier-display.has-items .top-cashier-amount {
  color: #22FF77;
  text-shadow: 0 0 20px rgba(34, 255, 119, 0.65), 0 0 6px rgba(34, 255, 119, 0.95);
}

@media (max-width: 1200px) and (min-width: 992px) {
  .top-cashier-display {
    min-width: 250px;
    padding: 3px 16px 5px 16px;
    margin-left: 12px;
  }
  .top-cashier-amount {
    font-size: 30px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.header-shift-widget {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-bell-btn {
  position: relative;
  border-bottom: 2.5px solid #D8C3B3 !important;
  box-shadow: 2px 3px 8px rgba(185, 145, 125, 0.22), inset 0 1px 0 #FFFFFF !important;
}

.bell-badge {
  font-weight: 800;
  color: #e11d48;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.conn-pill.online {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  border-bottom: 2.5px solid #059669;
  box-shadow: 2px 3px 8px rgba(16, 185, 129, 0.2), inset 0 1px 0 #FFFFFF;
}

.conn-pill.offline {
  background: #fff1f2;
  color: #be123c;
  border: 1.5px solid #fecdd3;
  border-bottom: 2.5px solid #e11d48;
  box-shadow: 2px 3px 8px rgba(225, 29, 72, 0.2), inset 0 1px 0 #FFFFFF;
  animation: pulseOffline 2s infinite;
}

@keyframes pulseOffline {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.conn-pill.online .status-dot { background: #10b981; }
.conn-pill.offline .status-dot { background: #f43f5e; }

/* ==========================================================================
   3D CLAY BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--primary-shadow);
}
.btn-primary:active { transform: translateY(2px); }

.btn-emerald {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn-emerald:active { transform: translateY(2px); }

.btn-amber {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-rose {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.btn-outline {
  background: var(--bg-card);
  border: 1.5px solid var(--input-border);
  color: var(--text-main);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 14px; }

/* ==========================================================================
   PURE 3D TIMBUL CARDS (Tanpa Garis Warna, Murni Balok 3D Timbul & Tebal)
   ========================================================================== */
.card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-bottom: 5px solid #D4C0B0; /* Tebal Fisik Balok 3D Timbul */
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(185, 145, 125, 0.26),
              -6px -6px 18px #FFFFFF,
              inset 0 2px 0 rgba(255, 255, 255, 1),
              inset 0 -2px 0 rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-bottom 0.18s ease;
}

/* Hilangkan semua garis warna di sisi samping (border-left) total */
.card, .card[style*="border-left"] {
  border-left: 1.5px solid rgba(255, 255, 255, 0.95) !important;
}

/* Interaksi Hover & Click untuk Kartu yang Bisa Diklik */
.card[onclick],
.card[style*="cursor:pointer"],
.card[style*="cursor: pointer"] {
  cursor: pointer !important;
}

.card[onclick]:hover,
.card[style*="cursor:pointer"]:hover,
.card[style*="cursor: pointer"]:hover {
  transform: translateY(-3px) scale(1.008) !important;
  border-bottom: 6.5px solid #C4AC9B !important;
  box-shadow: 0 16px 34px rgba(185, 145, 125, 0.35),
              -6px -6px 18px #FFFFFF,
              inset 0 2px 0 #FFFFFF !important;
}

.card[onclick]:active,
.card[style*="cursor:pointer"]:active,
.card[style*="cursor: pointer"]:active {
  transform: translateY(2px) !important;
  border-bottom: 2.5px solid #D4C0B0 !important;
  box-shadow: 0 4px 12px rgba(185, 145, 125, 0.2), inset 0 1px 0 #FFFFFF !important;
}

/* Form Controls with Inset Lighting */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 11px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--input-bg);
  color: var(--text-main);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 82, 7, 0.18);
}

/* ==========================================================================
   POS SPLIT LAYOUT (CATALOG & CART)
   ========================================================================== */
.pos-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.pos-catalog {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 16px 20px;
}

.pos-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-scan-action {
  height: 44px;
  padding: 0 16px;
  flex-shrink: 0;
}

.pos-filter-scroll-row {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pos-filter-scroll-row::-webkit-scrollbar {
  display: none;
}

.pos-loc-pill {
  height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #E2D2C2;
  border-bottom: 2.5px solid #D8C3B3;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 2px 3px 8px rgba(185, 145, 125, 0.16), inset 0 1px 0 #FFFFFF;
  transition: all 0.15s;
}
.pos-loc-pill:focus, .pos-loc-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.75;
}

.search-input-wrap input.pos-search-input,
.search-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 10px 38px 10px 42px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-family);
  background: var(--input-bg);
  color: var(--text-main);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.search-input-wrap input.pos-search-input:focus,
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(232, 82, 7, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.search-input-wrap .clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(148, 163, 184, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.search-input-wrap .clear-btn:hover {
  background: rgba(225, 29, 72, 0.2);
  color: #e11d48;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #E2D2C2;
  border-bottom: 2.5px solid #D8C3B3;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 3px 8px rgba(185, 145, 125, 0.18), inset 0 1px 0 #FFFFFF;
  transition: all 0.15s;
}

.cat-pill:hover {
  transform: translateY(-1.5px);
  border-bottom-width: 3.5px;
  box-shadow: 3px 5px 12px rgba(185, 145, 125, 0.25);
}

.cat-pill.active {
  background: var(--primary-gradient);
  border-color: transparent;
  border-bottom: 2.5px solid #C2410C;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232, 82, 7, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Product Cards */
.product-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  align-content: start;
  padding-bottom: 24px;
}

/* ==========================================================================
   AUTHENTIC 3D TIMBUL PRODUCT CARDS (Menu Kasir POS)
   ========================================================================== */
.product-card {
  position: relative !important;
  background: #FFFFFF !important;
  border: 1.5px solid #F0DFD3 !important;
  border-top: 2px solid #FFFFFF !important;
  border-bottom: 5px solid #D4BFB0 !important; /* Tebal 5px Balok Timbul Bawah */
  border-radius: 18px !important;
  padding: 13px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(139, 94, 69, 0.2), 
              0 3px 6px rgba(139, 94, 69, 0.08), 
              inset 0 2px 0 #FFFFFF, 
              inset 0 -1.5px 0 rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
              border-bottom 0.15s ease !important;
  user-select: none !important;
}

.product-card:hover {
  transform: translateY(-3px) scale(1.012) !important;
  border-bottom: 6.5px solid #C4AC9B !important;
  box-shadow: 0 16px 32px rgba(139, 94, 69, 0.28), 
              0 4px 10px rgba(139, 94, 69, 0.12), 
              inset 0 2px 0 #FFFFFF !important;
}

.product-card:active {
  transform: translateY(2px) scale(0.99) !important;
  border-bottom: 2.5px solid #D4BFB0 !important;
  box-shadow: 0 4px 10px rgba(139, 94, 69, 0.16), inset 0 1px 0 #FFFFFF !important;
}

.prod-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.loc-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-badge.freezer {
  background: #e0f2fe;
  color: #0369a1;
}

.stock-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
}

.stock-badge.low { background: #fef3c7; color: #b45309; }
.stock-badge.empty { background: #ffe4e6; color: #be123c; }

.prod-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.prod-title-row > div {
  min-width: 0;
  flex: 1;
}

.prod-emoji {
  font-size: 24px;
  line-height: 1;
  background: #FFF5ED;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid #F0DFD3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 6px rgba(185, 145, 125, 0.15), inset 1px 1px 1px #FFFFFF;
}

.prod-photo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--input-border);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.06);
  background: var(--input-bg);
}

.prod-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prod-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
}

.wholesale-tag {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}

.expiry-tag {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}
.expiry-tag.soon { background: #ffedd5; color: #c2410c; }
.expiry-tag.expired { background: #ffe4e6; color: #be123c; }

.prod-box-btn {
  margin-top: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1.5px solid #fdba74;
  background: #fff7ed;
  color: #c2410c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.prod-box-btn:hover {
  background: #ffedd5;
  border-color: var(--primary);
}

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

/* ==========================================================================
   CART PANEL
   ========================================================================== */
.pos-cart {
  background: var(--bg-card);
  border-left: 1.5px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: -4px 0 16px rgba(0,0,0,0.04);
}

.cart-header {
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--card-border);
  background: var(--header-bg);
  position: relative;
  z-index: 20;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cart-item {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.cart-item.wholesale-active {
  background: #f0fdf4;
  border-color: #86efac;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--input-border);
  background: var(--bg-card);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 58px;
  height: 30px;
  text-align: center;
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  background: var(--bg-card);
}

.cart-footer {
  padding: 14px 16px;
  border-top: 1.5px solid var(--card-border);
  background: var(--bg-card);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   TABLES & DATA
   ========================================================================== */
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--input-bg);
  color: var(--text-muted);
  font-weight: 800;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1.5px solid var(--input-border);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(0,0,0,0.02); }

/* ==========================================================================
   THEME SELECTOR IN HEADER & LOGIN (Clean, Non-Intrusive)
   ========================================================================== */
.theme-select-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid var(--input-border);
  border-bottom: 2.5px solid #D8C3B3;
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 2px 3px 8px rgba(185, 145, 125, 0.22), inset 0 1px 0 #FFFFFF;
  outline: none;
  transition: all 0.15s;
}

.theme-select-pill:focus, .theme-select-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.login-theme-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--input-bg);
  border-radius: 999px;
  border: 1px solid var(--input-border);
}

.theme-switcher-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.theme-switcher-btn:hover { color: var(--primary); }

.theme-switcher-btn.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: var(--primary-shadow);
}

/* ==========================================================================
   DIGITAL STAMP, SIGNATURE & LOGO PREVIEWS (Settings & Receipt)
   ========================================================================== */
.preview-image-box {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 2px dashed var(--input-border);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.preview-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Circular Toko Stamp */
.stamp-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 2.5px dashed #0284c7;
  border-radius: 50%;
  color: #0284c7;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-8deg);
  opacity: 0.88;
}

/* Developer Watermark Signature (FuadCompuZONE) */
.dev-footer-seal {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 10px;
  letter-spacing: 0.3px;
  user-select: none;
}

.dev-footer-seal strong {
  color: var(--primary);
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--card-border);
  overflow: hidden;
}

.modal-content.modal-lg { max-width: 840px; }

@keyframes modalNudge {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.012); }
  70% { transform: scale(0.996); }
}

.modal-content.modal-nudge {
  animation: modalNudge 0.24s ease;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1.5px solid var(--card-border);
  background: var(--header-bg);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  font-size: 13.5px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   MOBILE HP RESPONSIVE ENGINE (< 1024px & Small Phones)
   ========================================================================== */
.mobile-bottom-nav, .mobile-cart-bar, .cart-mobile-backdrop { display: none; }

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1100;
    height: 100vh;
    height: 100dvh;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }
  .sidebar.open {
    transform: translateX(0);
    z-index: 1100;
  }
  .main-wrapper { margin-left: 0; }

  .pos-container {
    grid-template-columns: 1fr;
    height: calc(100vh - 54px - 64px);
    height: calc(100dvh - 54px - 64px);
    overflow: hidden;
  }

  .pos-catalog {
    padding: 10px 10px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 4px 0 100px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Slide-Up Mobile Cart Drawer */
  .pos-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    height: 85vh;
    max-height: calc(100dvh - 70px);
    z-index: 950;
    border-top: 3px solid var(--primary);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(115%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .pos-cart.mobile-open { transform: translateY(0); }

  .cart-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 940;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .cart-mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Floating Bottom Cart Bar */
  .mobile-cart-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 74px;
    z-index: 900;
    background: var(--sidebar-bg);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
  }

  /* Bottom Navigation Bar (Single-Row Smooth Scroll, No 2nd Row Overflow) */
  .mobile-bottom-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-card);
    border-top: 1.5px solid var(--card-border);
    z-index: 1000;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
    padding: 0 2px;
  }
  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .mob-nav-btn {
    flex: 0 0 20%;
    min-width: 66px;
    height: 100%;
    padding: 4px 2px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
    white-space: nowrap;
  }

  .mob-nav-btn.active { color: var(--primary); }

  /* Page Sections (Inventory, Kasbon, Kulakan, Riwayat, Laporan) on Mobile */
  .page-section {
    padding: 10px 10px 85px !important;
  }
}

@media (max-width: 991px) {
  .top-cashier-display {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-header {
    height: 54px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .header-left {
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .header-title-box {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  #menuToggleBtn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    font-size: 17px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .top-page-title {
    font-size: 13px !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.2px !important;
  }
  .top-page-subtitle {
    display: none !important;
  }
  .top-cashier-display {
    display: none !important;
  }
  .header-right {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }
  .header-right .hide-xs,
  .theme-select-pill.hide-xs {
    display: none !important;
  }
  .conn-pill {
    padding: 6px 8px !important;
    gap: 0 !important;
    border-radius: 999px !important;
  }
  .shift-amount-text {
    display: none !important;
  }
  .header-bell-btn {
    padding: 4px 7px !important;
    font-size: 12px !important;
    height: 34px !important;
    min-width: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .main-wrapper,
  .page-section {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-section .card,
  .page-section > div > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  /* Stack wide settings, report, and analytics cards into 1 full-width column on mobile/tablet */
  .page-section div[style*="minmax(280px"],
  .page-section div[style*="minmax(320px"],
  .page-section div[style*="minmax(340px"],
  .page-section div[style*="minmax(380px"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .show-xs { display: inline-flex !important; }
  .hide-xs { display: none !important; }

  /* Search & Actions Bar */
  .btn-scan-action {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }
  .search-input-wrap input.pos-search-input {
    height: 42px !important;
    font-size: 13px !important;
    padding: 8px 30px 8px 34px !important;
  }
  .pos-loc-pill {
    height: 34px !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .cat-pill {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }

  /* Product Card on Mobile: Crisp 2-Column Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .product-card {
    padding: 9px !important;
    border-radius: 12px !important;
  }
  .loc-badge, .stock-badge {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
    max-width: 75px !important;
  }
  .prod-name {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  .prod-price {
    font-size: 13.5px !important;
  }
  .wholesale-tag, .expiry-tag {
    font-size: 9px !important;
    padding: 2px 4px !important;
  }

  /* Compact KPI summary stat cards ONLY -> 2 neat columns without overflow */
  .page-section div[style*="minmax(170px"],
  .page-section div[style*="minmax(180px"],
  .page-section div[style*="minmax(200px"],
  .page-section div[style*="minmax(210px"],
  .page-section div[style*="minmax(220px"],
  .page-section div[style*="minmax(240px"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .page-section div[style*="minmax(170px"] .card,
  .page-section div[style*="minmax(180px"] .card,
  .page-section div[style*="minmax(200px"] .card,
  .page-section div[style*="minmax(210px"] .card,
  .page-section div[style*="minmax(220px"] .card,
  .page-section div[style*="minmax(240px"] .card {
    padding: 10px 12px !important;
  }
  .page-section div[style*="minmax(170px"] .card div[style*="font-size:24px"],
  .page-section div[style*="minmax(200px"] .card div[style*="font-size:24px"],
  .page-section div[style*="minmax(210px"] .card div[style*="font-size:24px"],
  .page-section div[style*="minmax(220px"] .card div[style*="font-size:24px"],
  .page-section div[style*="minmax(240px"] .card div[style*="font-size:24px"],
  .page-section div[style*="minmax(210px"] .card div[style*="font-size:22px"],
  .page-section div[style*="minmax(220px"] .card div[style*="font-size:22px"] {
    font-size: 16px !important;
  }
  /* Wide cards, settings panels, tables & charts -> 1 full-width column on mobile */
  .page-section div[style*="minmax(260px"],
  .page-section div[style*="minmax(280px"],
  .page-section div[style*="minmax(320px"],
  .page-section div[style*="minmax(340px"],
  .page-section div[style*="minmax(380px"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .page-section .card {
    padding: 12px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #view-settings .card > div[style*="justify-content:space-between"] {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  #view-settings div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 8px !important;
  }
  .modal-content {
    max-height: 96vh !important;
    border-radius: 16px !important;
    width: 100% !important;
  }
  .modal-header {
    padding: 12px 14px !important;
  }
  .modal-body {
    padding: 12px 14px !important;
  }
  .modal-footer {
    padding: 10px 14px !important;
    gap: 6px !important;
  }

  /* Table responsive touch scrolling */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  .data-table th, .data-table td {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
  }

  /* Prevent fixed-width toolbars & multi-col modal grids overflowing narrow 360px phones */
  .page-section input[type="text"],
  .page-section input[type="search"],
  .page-section select {
    max-width: 100%;
  }
  .modal-body div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .modal-footer {
    flex-wrap: wrap !important;
  }
}

/* ==========================================================================
   PRINT & RECEIPT STYLES (Thermal Receipt 58mm & 80mm Optimized)
   ========================================================================== */
.receipt-paper {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #ffffff;
  color: #000000;
  padding: 16px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  font-size: 11.5px;
  line-height: 1.35;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
}

.receipt-paper.receipt-80mm {
  max-width: 400px;
  font-size: 12.5px;
}

.receipt-divider {
  border-top: 1px dashed #000000;
  margin: 6px 0;
  height: 0;
  width: 100%;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.receipt-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-row span:last-child {
  white-space: nowrap !important;
  flex-shrink: 0;
  text-align: right;
}

.receipt-total-row {
  border-top: 1px dashed #000000;
  padding-top: 4px;
  margin-top: 4px;
}

#printArea { display: none; }

@page {
  margin: 0;
  size: auto;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
  }
  body * {
    visibility: hidden;
  }
  .app-layout, .modal-backdrop, .toast-container, .login-overlay, .theme-switcher-bar {
    display: none !important;
  }
  #printArea, #printArea * {
    visibility: visible;
  }
  #printArea {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  .receipt-paper {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace !important;
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .receipt-paper.receipt-58mm {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }
  .receipt-paper.receipt-80mm {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* Thermal Scale Barcode Label Printing */
  .thermal-scale-label {
    box-sizing: border-box !important;
    width: 50mm !important;
    max-width: 50mm !important;
    padding: 1.5mm 2mm !important;
    margin: 0 auto !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: #000000 !important;
    background: #ffffff !important;
    text-align: center !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .thermal-scale-label.label-40x30 {
    width: 40mm !important;
    max-width: 40mm !important;
    padding: 1mm 1.5mm !important;
  }
  .thermal-scale-label.label-receipt {
    width: 58mm !important;
    max-width: 58mm !important;
    padding: 2mm 3mm !important;
  }
  .thermal-scale-label:last-child {
    page-break-after: auto !important;
  }
}

/* ==========================================================================
   Barcode & QR Code Scanner Viewfinder
   ========================================================================== */
#barcodeScannerRegion {
  border: none !important;
  width: 100% !important;
  background: #0f172a !important;
  border-radius: 14px;
  overflow: hidden;
}
#barcodeScannerRegion video {
  width: 100% !important;
  height: auto !important;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
}
#barcodeScannerRegion img[alt="Info icon"],
#barcodeScannerRegion button,
#barcodeScannerRegion select {
  display: none !important;
}

/* ==========================================================================
   Scale Label Preview Card & Weighing Modal
   ========================================================================== */
.scale-label-preview-card {
  background: #ffffff;
  color: #0f172a;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 270px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}
.scale-label-preview-card .store-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.scale-label-preview-card .prod-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scale-label-preview-card .meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  margin: 3px 0;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 3px;
}
.scale-label-preview-card .total-price-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scale-label-preview-card .total-price-banner .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.scale-label-preview-card .total-price-banner .val {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #34d399;
}
.scale-label-preview-card .barcode-svg-wrap {
  margin: 4px 0 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scale-label-preview-card .barcode-svg-wrap svg {
  max-width: 100%;
  height: 42px;
}
.scale-label-preview-card .footer-info {
  font-size: 9px;
  color: #64748b;
  margin-top: 4px;
}


/* ==========================================================================
   PURE 3D CLAYMORPHISM: USER GUIDE CARDS
   (Replaces flat 2D border-left with deep, tactile 3D Clay styling)
   ========================================================================== */
.guide-card {
  position: relative !important;
  background: #FFFFFF !important;
  border: 1.5px solid #F0DFD3 !important;
  border-top: 2px solid #FFFFFF !important;
  border-bottom: 6px solid #CDB5A2 !important; /* Tebal 6px balok timbul nyata */
  border-left: 1.5px solid #F0DFD3 !important;
  border-right: 1.5px solid #F0DFD3 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 36px rgba(139, 94, 69, 0.24), 
              0 4px 12px rgba(139, 94, 69, 0.12), 
              inset 0 2px 0 #FFFFFF !important;
  margin-bottom: 24px !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              border-bottom 0.18s ease !important;
}

.guide-card:hover {
  transform: translateY(-3px) !important;
  border-bottom: 7.5px solid #C0A490 !important;
  box-shadow: 0 22px 44px rgba(139, 94, 69, 0.32), 
              0 6px 16px rgba(139, 94, 69, 0.16), 
              inset 0 2px 0 #FFFFFF !important;
}

.guide-step-tile {
  background: #FFFFFF !important;
  border: 1.5px solid #EEDCD0 !important;
  border-top: 2px solid #FFFFFF !important;
  border-bottom: 5px solid #D8C3B3 !important; /* Tebal 5px timbul */
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: 0 8px 20px rgba(139, 94, 69, 0.16), 
              inset 0 1.5px 0 #FFFFFF !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-bottom 0.15s ease !important;
}

.guide-step-tile:hover {
  transform: translateY(-2.5px) !important;
  border-bottom: 6px solid #C8B09E !important;
  box-shadow: 0 12px 26px rgba(139, 94, 69, 0.24), inset 0 1.5px 0 #FFFFFF !important;
}

/* ==========================================================================
   POS Cashier Keyboard Shortcut Legend Bar
   ========================================================================== */
.pos-shortcut-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.pos-shortcut-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  margin-right: 2px;
  white-space: nowrap;
}

.pos-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.pos-shortcut-chip:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.pos-shortcut-chip kbd {
  display: inline-block;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--input-border);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.pos-shortcut-chip--primary {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #047857;
}

.pos-shortcut-chip--primary kbd {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.pos-shortcut-chip--static {
  cursor: default;
  opacity: 0.85;
}

.pos-shortcut-chip--static:hover {
  transform: none;
  border-color: var(--input-border);
}

/* Searchable POS Customer Picker Combobox */
.customer-picker-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.customer-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  background: var(--input-bg);
  color: var(--text-main);
}

.customer-picker-wrap.has-selection .customer-picker-trigger {
  border-color: var(--primary);
}

.customer-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.customer-picker-caret {
  font-size: 11px;
  opacity: 0.7;
  flex-shrink: 0;
}

.customer-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 600;
  background: var(--bg-card);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  padding: 8px;
  min-width: 0;
}

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

.customer-picker-search {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.customer-picker-clear {
  padding: 6px 9px;
  flex-shrink: 0;
}

.customer-picker-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-picker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.customer-picker-item:hover,
.customer-picker-item.is-highlighted {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
}

.customer-picker-item.is-active {
  background: rgba(249, 115, 22, 0.13);
  border-color: var(--primary);
  font-weight: 800;
}

.customer-picker-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  font-weight: 800;
}

.customer-picker-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-picker-empty {
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   CLASSIC GREEN REGISTER WORKSPACE (Theme 2: Klasik Hijau / RegoPOS Style)
   ========================================================================== */
.classic-register {
  display: none;
}

body.theme-classic-green #topCashierTotalDisplay {
  display: none !important;
}

body.theme-classic-green .top-header {
  background: #3d7509;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

body.theme-classic-green .top-header .top-page-title {
  color: #ffffff;
}

body.theme-classic-green .top-header .top-page-subtitle {
  color: #ecfccb;
}

body.theme-classic-green .top-header .btn-outline,
body.theme-classic-green .top-header .theme-select-pill {
  background: rgba(255, 255, 255, 0.94);
  color: #14532d;
  border-color: #dcfce7;
}

body.theme-classic-green #view-pos > .pos-catalog,
body.theme-classic-green #view-pos > #posCartDrawer,
body.theme-classic-green #view-pos > #cartMobileBackdrop,
body.theme-classic-green #view-pos > #mobileCartBar {
  display: none !important;
}

body.theme-classic-green #view-pos {
  display: block;
  padding: 6px 8px 8px;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: #4e8c0d;
}

body.theme-classic-green #posClassicRegister {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #4e8c0d;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  overflow: hidden;
}

.classic-top-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  border-bottom: 2px solid #ffffff;
  flex-shrink: 0;
}

.classic-brand-col {
  display: flex;
  flex-direction: column;
  border-right: 2px solid #ffffff;
  min-width: 0;
}

.classic-brand-top {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 14px;
  min-height: 104px;
}

.classic-logo-tile {
  background: #ffffff;
  color: #3f7c09;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 78px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #ecfccb;
  flex-shrink: 0;
}

.classic-logo-tile img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.classic-host-meta {
  font-size: 12px;
  line-height: 1.35;
  color: #f7fee7;
  min-width: 0;
}

.classic-store-title-line {
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classic-host-sub-line {
  font-size: 12px;
  color: #ecfccb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classic-hero-total-wrap {
  position: relative;
  text-align: right;
  padding: 8px 20px 10px 24px;
  min-width: clamp(230px, 24vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #062a1b 0%, #020c08 75%, #010604 100%);
  border: 2px solid rgba(110, 231, 183, 0.8);
  box-shadow:
    0 0 18px rgba(16, 185, 129, 0.34),
    inset 0 0 22px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(167, 243, 208, 0.25);
}

.classic-hero-total-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 1;
}

.classic-hero-label {
  position: relative;
  z-index: 2;
  font-family: 'OCR A Extended', 'Consolas', 'Lucida Console', ui-monospace, monospace;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
  color: #6ee7b7;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.65);
}

.classic-hero-total {
  position: relative;
  z-index: 2;
  font-family: 'OCR A Extended', 'Consolas', 'Lucida Console', 'DejaVu Sans Mono', ui-monospace, monospace;
  font-size: clamp(50px, 5vw, 82px);
  font-weight: 900;
  line-height: 0.96;
  color: #4effa1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(78, 255, 161, 0.95),
    0 0 18px rgba(16, 185, 129, 0.85),
    0 0 36px rgba(6, 182, 212, 0.5);
}

.classic-welcome-strip {
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #437c0a;
  padding: 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
  overflow: hidden;
}

.classic-welcome-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.classic-welcome-marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  will-change: transform;
  animation: classicWelcomeMarquee 18s linear -6s infinite;
}

@keyframes classicWelcomeMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.classic-day-badge {
  background: rgba(255, 255, 255, 0.16);
  padding: 1px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.classic-customer-box {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: #4e8c0d;
}

.classic-cust-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #ffffff;
}

.classic-cust-meta {
  font-size: 11.5px;
  color: #ecfccb;
  line-height: 1.3;
}

.classic-cust-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.classic-mini-btn {
  background: #ffffff;
  color: #14532d;
  border: 1px solid #dcfce7;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.classic-mini-btn:hover {
  background: #fef9c3;
}

/* Middle Table + Spotlight */
.classic-mid-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  flex: 1;
  min-height: 0;
  border-bottom: 2px solid #ffffff;
}

.classic-table-wrap {
  background: #ffffff;
  color: #0f172a;
  border-right: 2px solid #ffffff;
  overflow-y: auto;
  overflow-x: auto;
}

.classic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.classic-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  padding: 6px 8px;
  border-bottom: 1.5px solid #94a3b8;
  border-right: 1px solid #cbd5e1;
  text-align: left;
  white-space: nowrap;
}

.classic-table tbody td {
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  height: 28px;
  vertical-align: middle;
}

.classic-cart-row {
  cursor: pointer;
}

.classic-cart-row:hover {
  background: #eff6ff;
}

.classic-cart-row.is-selected {
  background: #0066cc !important;
  color: #ffffff !important;
  font-weight: 800;
}

.classic-cart-row.is-selected td {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.classic-filler-row td {
  background: #ffffff;
  color: transparent;
  pointer-events: none;
}

.classic-side-panel {
  background: #4e8c0d;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow-y: auto;
}

.classic-spotlight-box {
  background: rgba(0, 0, 0, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  min-height: 112px;
}

.classic-spot-name {
  font-size: 15px;
  font-weight: 900;
  color: #fef08a;
  text-decoration: underline;
  margin-bottom: 6px;
  word-break: break-word;
}

.classic-spot-price {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.classic-spot-sub {
  font-size: 12px;
  color: #ecfccb;
  line-height: 1.35;
}

.classic-side-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.classic-btn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.classic-ctrl-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.classic-ctrl-btn:hover {
  background: #fef9c3;
}

.classic-ctrl-amber {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.classic-ctrl-danger {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.classic-pay-btn {
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: #1e293b;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.classic-pay-btn:hover {
  filter: brightness(1.06);
}

/* Bottom Console Grid */
.classic-bottom-grid {
  display: grid;
  grid-template-columns: 240px 1fr 270px 290px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  background: #4e8c0d;
}

.classic-info-cell,
.classic-input-cell,
.classic-totals-cell,
.classic-brand-footer-cell {
  padding: 8px 10px;
  border-right: 2px solid #ffffff;
  font-size: 12.5px;
  line-height: 1.45;
}

.classic-brand-footer-cell {
  border-right: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.classic-count-rows {
  display: flex;
  gap: 20px;
  font-size: 13px;
  margin-bottom: 4px;
}

.classic-count-rows > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.classic-count-rows strong {
  font-size: 16px;
  color: #fef08a;
}

.classic-input-label {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 3px;
  color: #ffffff;
}

.classic-data-input-wrap {
  position: relative;
}

.classic-data-input {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: 2px solid #dcfce7;
  padding: 6px 10px;
  font-size: 20px;
  font-weight: 900;
  outline: none;
  border-radius: 3px;
}

.classic-data-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
}

.classic-data-input::placeholder {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.classic-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 400;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #166534;
  border-radius: 6px;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
  max-height: 230px;
  overflow-y: auto;
}

.classic-suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 12.5px;
}

.classic-suggest-item:hover,
.classic-suggest-item.is-active {
  background: #0066cc;
  color: #ffffff;
}

.classic-totals-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.classic-total-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 6px;
}

.classic-total-lbl {
  font-weight: 800;
  font-size: 12.5px;
  color: #ffffff;
}

.classic-num-box {
  padding: 3px 8px;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
  color: #000000;
  border: 1px solid #64748b;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.classic-num-yellow { background: #fef9c3; }
.classic-num-cyan { background: #a5f3fc; }
.classic-num-white { background: #ffffff; cursor: pointer; }
.classic-num-white:hover { background: #fef3c7; }
.classic-num-pink { background: #fbcfe8; font-size: 16px; }

.classic-shortcut-bar {
  background: #437c0a;
  padding: 4px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: #f7fee7;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  body.theme-classic-green #view-pos {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .classic-top-grid,
  .classic-mid-grid,
  .classic-bottom-grid {
    grid-template-columns: 1fr;
  }
  .classic-brand-col,
  .classic-table-wrap,
  .classic-info-cell,
  .classic-input-cell,
  .classic-totals-cell {
    border-right: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  }
  .classic-table-wrap {
    max-height: 300px;
  }
  .classic-hero-total {
    font-size: clamp(44px, 7.5vw, 68px);
  }
}

@media (max-width: 640px) {
  .classic-brand-top {
    grid-template-columns: auto 1fr;
    min-height: auto;
  }
  .classic-hero-total-wrap {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 8px 14px;
  }
  .classic-hero-total {
    font-size: clamp(40px, 11vw, 56px);
  }
}
