/* ==========================================================================
   Infossel Billing Software (SMARTBILL360) - Premium World-Class UI Engine
   Curated Multi-Themes, Glassmorphism, Dark/Light Mode & Accessible Contrast
   ========================================================================== */

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

:root {
  /* Default: Aurora Blue Theme */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --secondary: #6366f1;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-primary: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Plus Jakarta Sans', 'Hind Madurai', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Theme: Emerald Commerce */
[data-theme="emerald"] {
  --primary: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;
  --primary-rgb: 5, 150, 105;
  --accent: #14b8a6;
  --accent-rgb: 20, 184, 166;
  --bg-main: #f0fdf4;
  --bg-card: #ffffff;
  --bg-elevated: #dcfce7;
  --border-color: #bbf7d0;
}

/* Theme: Royal Amethyst */
[data-theme="amethyst"] {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-rgb: 124, 58, 237;
  --accent: #ec4899;
  --accent-rgb: 236, 72, 153;
  --bg-main: #faf5ff;
  --bg-card: #ffffff;
  --bg-elevated: #f3e8ff;
  --border-color: #e9d5ff;
}

/* Theme: Sunset Coral */
[data-theme="sunset"] {
  --primary: #ea580c;
  --primary-light: #f97316;
  --primary-dark: #c2410c;
  --primary-rgb: 234, 88, 12;
  --accent: #fb7185;
  --accent-rgb: 251, 113, 133;
  --bg-main: #fff7ed;
  --bg-card: #ffffff;
  --bg-elevated: #ffedd5;
  --border-color: #fed7aa;
}

/* Dark Mode (Midnight Executive) */
[data-mode="dark"] {
  --bg-main: #0b1220;
  --bg-card: #131d31;
  --bg-elevated: #1a2742;
  --border-color: #243556;
  --border-focus: #60a5fa;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

/* Navigation & Header */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-badge {
  font-size: 0.65rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Global Search Bar in Header */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.header-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Controls: Themes, Lang, User */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-ctrl {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  background: var(--border-color);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.user-role-chip {
  font-size: 0.65rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
}

/* ==========================================================================
   2. Main Menus with Instant Accessible Submenus
   ========================================================================== */
/* ==========================================================================
   2. Main Menus with Instant Accessible Submenus & 3D Glassmorphism
   ========================================================================== */
.nav-bar-container {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  width: 100%;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 38px;
  background: var(--bg-elevated);
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 5;
}

.nav-scroll-btn:hover {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.nav-scroll-right {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.main-navigation-bar {
  background: transparent;
  border: none;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.25) transparent;
}

.main-navigation-bar::-webkit-scrollbar {
  height: 3px;
}
.main-navigation-bar::-webkit-scrollbar-track {
  background: transparent;
}
.main-navigation-bar::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.25);
  border-radius: 9999px;
}
.main-navigation-bar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.nav-menu-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0.25rem 0;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0 !important;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.68rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link:hover, .nav-item.active .nav-link, .nav-item.dropdown-open .nav-link {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.25);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.12);
}

.nav-chevron {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item:hover .nav-chevron,
.nav-item.dropdown-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}


/* 3D Submenu Flyout / Dropdown */
.submenu-flyout {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 9999;
  backdrop-filter: blur(16px);
  transform-origin: top left;
}

.nav-item.dropdown-open .submenu-flyout,
.nav-item:hover .submenu-flyout,
.nav-item:focus-within .submenu-flyout {
  display: flex !important;
  animation: flyout3DEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flyout3DEnter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.submenu-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.08);
}

/* ==========================================================================
   3. App Layout Shell
   ========================================================================== */
.app-container {
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.kpi-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-on-primary);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-elevated);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Cards & Panels (3D Depth by Default) */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
              0 8px 10px -6px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12),
              0 8px 12px -4px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--primary-rgb), 0.02);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.25rem;
}

/* POS Fast Billing Screen Layout */
.billing-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .billing-workspace {
    grid-template-columns: 1fr;
  }
}

.customer-quick-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.item-scanner-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.item-scanner-input {
  flex: 1;
  position: relative;
}

.item-scanner-input input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.item-scanner-input i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

/* POS Items Grid / Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.data-table th {
  background: var(--bg-elevated);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(var(--primary-rgb), 0.02);
}

/* Editable inputs inside POS grid */
.grid-qty-input, .grid-rate-input, .grid-disc-input {
  width: 75px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: right;
}

.grid-qty-input:focus, .grid-rate-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* Billing Totals Sidebar */
.bill-summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-row.highlight {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px dashed var(--border-color);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.payment-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.pay-btn-mode {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.pay-btn-mode.active, .pay-btn-mode:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45), 
              0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: zoomIn3D 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn3D {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06) 0%, transparent 100%);
}

/* ==========================================================================
   3D System: Depth, Shadows, Perspective, and Vibrant Accents
   ========================================================================== */
.card-3d {
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
              0 8px 10px -6px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.7),
              inset 0 -2px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-3d:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.14),
              0 12px 16px -6px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 3D KPI Cards with Vibrant Gradients & Glowing Edges */
.kpi-card-3d {
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}

.kpi-card-3d:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 18px 36px -8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 3D KPI Icon Badge: Strictly 1:1 Aspect Ratio (Never Stretched) */
.kpi-icon-3d {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.kpi-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.18) 100%);
  border-color: rgba(37, 99, 235, 0.3);
}
.kpi-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(139, 92, 246, 0.18) 100%);
  border-color: rgba(124, 58, 237, 0.3);
}
.kpi-orange {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(249, 115, 22, 0.18) 100%);
  border-color: rgba(234, 88, 12, 0.3);
}
.kpi-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.18) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.kpi-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.18) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

/* 3D Physical Push Buttons */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
}

.btn-3d-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff !important;
  border-color: #1e40af;
  box-shadow: 0 4px 0 #1e3a8a, 0 8px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-3d-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-3d-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1e3a8a, 0 3px 6px rgba(37, 99, 235, 0.2);
}

.btn-3d-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  border-color: #047857;
  box-shadow: 0 4px 0 #064e3b, 0 8px 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-3d-success:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-3d-success:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #064e3b, 0 3px 6px rgba(16, 185, 129, 0.2);
}

.btn-3d-purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff !important;
  border-color: #6d28d9;
  box-shadow: 0 4px 0 #4c1d95, 0 8px 16px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-3d-purple:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-3d-purple:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #4c1d95, 0 3px 6px rgba(124, 58, 237, 0.2);
}

.btn-3d-amber {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  border-color: #b45309;
  box-shadow: 0 4px 0 #78350f, 0 8px 16px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-3d-amber:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-3d-amber:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #78350f, 0 3px 6px rgba(245, 158, 11, 0.2);
}

.btn-3d-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff !important;
  border-color: #b91c1c;
  box-shadow: 0 4px 0 #7f1d1d, 0 8px 16px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-3d-danger:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-3d-danger:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7f1d1d;
}

.btn-3d-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: 0 3px 0 var(--border-color), 0 4px 10px rgba(0,0,0,0.06);
}
.btn-3d-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 3px 0 rgba(var(--primary-rgb), 0.3), 0 6px 14px rgba(var(--primary-rgb), 0.15);
}
.btn-3d-outline:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border-color);
}

/* 3D Item Search Autocomplete Dropdown */
.item-search-dropdown-3d {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(var(--primary-rgb), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  max-height: 420px;
  overflow-y: auto;
  z-index: 2500;
  padding: 0.35rem 0;
  animation: zoomIn3D 0.15s ease-out;
}

.item-ac-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-ac-row:last-child {
  border-bottom: none;
}

.item-ac-row:hover,
.item-ac-row.selected {
  background: rgba(var(--primary-rgb), 0.12);
  transform: translateX(4px);
}

/* Touch POS Category Pills */
.category-touch-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.65rem 0;
  scrollbar-width: none;
}
.category-touch-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.cat-pill-3d:hover, .cat-pill-3d.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}

/* 3D Payment Mode Buttons */
.pay-mode-btn-3d {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-elevated);
  color: var(--text-main);
  box-shadow: 0 3px 0 var(--border-color);
}
.pay-mode-btn-3d i {
  font-size: 1.15rem;
}
.pay-mode-btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--border-color), 0 8px 15px rgba(0,0,0,0.08);
}
.pay-mode-btn-3d:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border-color);
}
.pay-mode-btn-3d.active[data-mode="CASH"] {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: #047857;
  box-shadow: 0 4px 0 #064e3b, 0 8px 18px rgba(16, 185, 129, 0.4);
}
.pay-mode-btn-3d.active[data-mode="UPI"] {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  border-color: #6d28d9;
  box-shadow: 0 4px 0 #4c1d95, 0 8px 18px rgba(124, 58, 237, 0.4);
}
.pay-mode-btn-3d.active[data-mode="CARD"] {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-color: #075985;
  box-shadow: 0 4px 0 #0c4a6e, 0 8px 18px rgba(2, 132, 199, 0.4);
}
.pay-mode-btn-3d.active[data-mode="CREDIT"] {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 4px 0 #78350f, 0 8px 18px rgba(245, 158, 11, 0.4);
}
.pay-mode-btn-3d.active[data-mode="SPLIT"] {
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  border-color: #be185d;
  box-shadow: 0 4px 0 #831843, 0 8px 18px rgba(236, 72, 153, 0.4);
}

/* 3D Glowing Grand Total Panel */
.grand-total-3d-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.16) 100%);
  border: 2px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-align: right;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.grand-total-3d-val {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.modal-body {
  padding: 1.25rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Thermal & A4 Invoice Print Media */
@media print {
  body * {
    visibility: hidden;
  }
  #printableInvoice, #printableInvoice * {
    visibility: visible;
  }
  #printableInvoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .main-navigation-bar, .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   4. Advanced, Colorful & Interactive Showcase Website Styles
   ========================================================================== */
.site-announcement-bar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb, #06b6d4, #10b981);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.showcase-hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.08) 35%, rgba(248, 250, 252, 1) 80%);
  overflow: hidden;
  text-align: center;
}

.showcase-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-content-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-mega-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 40%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description-tamil {
  font-family: 'Hind Madurai', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  max-width: 820px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.hero-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
  color: #ffffff;
}

.btn-hero-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Glowing Metrics Counter Band */
.metrics-counter-band {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.metric-box {
  text-align: center;
  position: relative;
}

.metric-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e2e8f0;
}

@media (max-width: 768px) {
  .metric-box:not(:last-child)::after {
    display: none;
  }
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Interactive Calculator & Live Simulator Widgets on Landing */
.interactive-tools-section {
  padding: 5rem 1.5rem;
  background: #f8fafc;
}

.section-head-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-heading-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.interactive-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-interactive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 0.08);
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* 14 Major Modules Mega-Grid */
.modules-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1300px;
  margin: 0 auto;
}

.module-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.module-card-item:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 24px -5px rgba(37, 99, 235, 0.12);
}

.module-top-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.module-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.module-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.module-features-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.module-features-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.module-features-list li i {
  color: #10b981;
  font-size: 0.75rem;
}

/* Industry Cards */
.industry-tab-container {
  max-width: 1200px;
  margin: 0 auto;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

/* FAQ Accordion */
.faq-accordion-box {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.75rem;
}

/* ==========================================================================
   Single-Screen Viewport-Locked POS Architecture (No Window Scroll)
   ========================================================================== */
body.pos-page-locked {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.pos-page-locked .top-bar {
  padding: 0.35rem 1rem !important;
}

body.pos-page-locked .brand-logo-badge {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.95rem !important;
}

body.pos-page-locked .brand-titles .brand-name {
  font-size: 0.95rem !important;
}

body.pos-page-locked .brand-titles .brand-sub {
  display: none !important;
}

body.pos-page-locked .header-search {
  max-width: 320px !important;
}

body.pos-page-locked .header-search input {
  padding: 0.3rem 0.65rem 0.3rem 2rem !important;
  font-size: 0.78rem !important;
}

body.pos-page-locked .app-container {
  flex: 1 !important;
  min-height: 0 !important;
  padding: 0.4rem 0.75rem !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.pos-page-locked .billing-workspace {
  flex: 1 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 375px !important;
  gap: 0.65rem !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

.pos-left-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* 1. Compact Customer Banner */
.pos-customer-bar-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  flex-shrink: 0;
  gap: 0.5rem;
}

/* 2. Compact Scanner & Action Bar */
.pos-scanner-bar-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

/* 3. Compact Category Strip */
.pos-cat-strip-compact {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
  scrollbar-width: none;
}
.pos-cat-strip-compact::-webkit-scrollbar {
  display: none;
}

/* 4. POS Items Table Flex Container */
.pos-table-container-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.pos-table-card-head {
  padding: 0.35rem 0.75rem;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.pos-table-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}

.pos-table-scroll-area table {
  width: 100%;
  border-collapse: collapse;
}

.pos-table-scroll-area thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
  box-shadow: 0 1px 0 var(--border-color);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pos-table-scroll-area tbody td {
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  vertical-align: middle;
}

.quick-drop-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(37,99,235,0.12) !important;
}

.quick-drop-btn:hover {
  background: rgba(37,99,235,0.1) !important;
  border-color: var(--primary) !important;
  transform: translateY(-1px);
}

.pos-table-card-foot {
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

/* Right Summary Panel */
body.pos-page-locked .bill-summary-panel {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow-y: auto !important;
  padding: 0.65rem 0.85rem !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px -3px rgba(0,0,0,0.06);
}

body.pos-page-locked .summary-row {
  margin-bottom: 0.3rem !important;
  font-size: 0.8rem !important;
}

body.pos-page-locked .grand-total-3d-box {
  padding: 0.55rem 0.85rem !important;
  margin: 0.4rem 0 !important;
}

body.pos-page-locked .grand-total-3d-val {
  font-size: 1.7rem !important;
}

/* ==========================================================================
   Reports Suite Enhanced Styling
   ========================================================================== */
.report-nav-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.report-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: var(--bg-elevated);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.report-tab-pill:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.report-tab-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.report-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

