/* ========================================================
   PAYTM VYAPAR SAATHI — FLAGSHIP COCKPIT UI (WCAG AAA UNIGNORABLE EDITION)
   High-Contrast, Tactile Micro-Interactions, Pixel-Perfect Fintech Design
   ======================================================== */

.app-view {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family);
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
}

/* ========================================================
   1. COLLAPSIBLE ICON SIDEBAR
   ======================================================== */
.cockpit-sidebar {
  width: var(--sidebar-expanded);
  background: var(--bg-card);
  border-right: 1.5px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cockpit-sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-glass);
  background: var(--bg-card);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--paytm-navy) 0%, var(--paytm-blue) 50%, var(--paytm-primary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 41, 112, 0.2);
  border: 1.5px solid rgba(0, 186, 242, 0.4);
}

.sidebar-brand-text {
  line-height: 1.15;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.sidebar-brand-text .brand-title {
  font-size: 0.90rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand-text .brand-title .paytm-highlight {
  color: #0056b3; /* Deep high-contrast blue in light mode */
}

[data-theme="dark"] .sidebar-brand-text .brand-title .paytm-highlight {
  color: var(--paytm-cyan);
}

.sidebar-brand-text .brand-subtitle {
  font-size: 0.67rem;
  color: #64748B;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.sidebar-collapse-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: var(--paytm-blue);
  color: #ffffff;
  border-color: var(--paytm-blue);
  transform: scale(1.05);
}

.cockpit-sidebar.collapsed .sidebar-brand-text {
  display: none;
}

/* Sidebar Navigation Items */
.sidebar-menu {
  flex: 1;
  padding: 1.2rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  border: 1.5px solid transparent;
  user-select: none;
}

.sidebar-item:hover {
  background: var(--bg-card-hover);
  color: var(--paytm-primary);
  border-color: var(--border-glass);
  transform: translateX(3px);
}

.sidebar-item.active {
  background: linear-gradient(135deg, #002970 0%, #004b99 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 41, 112, 0.25);
  border-color: rgba(0, 186, 242, 0.4);
}

[data-theme="dark"] .sidebar-item.active {
  background: linear-gradient(135deg, rgba(0, 186, 242, 0.25) 0%, rgba(0, 86, 179, 0.4) 100%);
  color: #ffffff !important;
  border-color: var(--paytm-cyan);
  box-shadow: 0 4px 20px rgba(0, 186, 242, 0.3);
}

.sidebar-item.active .sidebar-icon svg {
  stroke: #ffffff;
  stroke-width: 2.5;
}

.sidebar-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cockpit-sidebar.collapsed .sidebar-text {
  display: none;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1.5px solid var(--border-glass);
}

.sidebar-logout-item {
  color: #dc2626 !important;
  border: 1.5px solid rgba(220, 38, 38, 0.2) !important;
  background: rgba(220, 38, 38, 0.05);
}

.sidebar-logout-item:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.sidebar-logout-item:hover .sidebar-icon svg {
  stroke: #ffffff !important;
}

/* ========================================================
   2. MAIN CONTENT AREA & TOP NAVBAR
   ======================================================== */
.cockpit-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
  background: var(--bg-app);
}

.top-navbar {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 4px rgba(0, 20, 50, 0.04);
}

/* Top Nav Left Group & Dedicated Desktop Voice Mic */
.top-nav-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.desktop-voice-bar-btn {
  background: linear-gradient(135deg, #002970 0%, #0056B3 100%) !important;
  border: 1.5px solid rgba(0, 186, 242, 0.45) !important;
  border-radius: 50px !important;
  height: 36px !important;
  padding: 0 12px 0 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 41, 112, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

.desktop-voice-bar-btn:hover {
  background: linear-gradient(135deg, #001f54 0%, #004494 100%) !important;
  border-color: #00BAF2 !important;
  box-shadow: 0 3px 12px rgba(0, 186, 242, 0.35) !important;
  transform: none !important;
}

.desktop-voice-bar-btn.listening {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
  border-color: #FECACA !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.6) !important;
}

.desktop-voice-icon-box {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #00BAF2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
}

.desktop-voice-bar-btn.listening .desktop-voice-icon-box {
  background: #FFFFFF !important;
}

.desktop-voice-bar-btn.listening .desktop-voice-icon-box svg {
  stroke: #DC2626 !important;
}

.desktop-voice-beacon {
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.8) !important;
}

.desktop-voice-bar-btn.listening .desktop-voice-beacon {
  background: #EF4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9) !important;
}

.desktop-voice-labels {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  line-height: 1.15 !important;
}

.desktop-voice-action {
  font-size: 0.80rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.01em !important;
}

.desktop-voice-tag {
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.search-mic-icon-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  border-radius: 50% !important;
  margin-left: 4px !important;
  transition: background 0.15s ease !important;
}

.search-mic-icon-btn:hover {
  background: #E0F2FE !important;
}

/* High-Contrast Search Bar */
.top-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(0, 20, 50, 0.04);
  transition: all 0.2s ease;
}

.top-search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

[data-theme="dark"] .top-search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 186, 242, 0.25);
}

.top-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  width: 100%;
}

.top-search-bar input::placeholder {
  color: var(--text-muted);
  opacity: 1;
  font-weight: 500;
}

/* Navbar Actions */
.top-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

/* Dark Mode Switch - Removed as requested, pure light theme active */
.theme-switch {
  display: none !important;
}

.theme-switch-slider {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #002970 0%, #004b99 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-switch-slider {
  transform: translateX(32px);
  background: linear-gradient(135deg, var(--paytm-cyan) 0%, #0098d4 100%);
  color: #001233;
}

.merchant-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 50px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.merchant-profile-btn:hover {
  border-color: var(--border-focus);
  box-shadow: 0 2px 8px rgba(0, 20, 50, 0.08);
}

.merchant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #002970, #00baf2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 41, 112, 0.2);
}

/* ========================================================
   3. SPATIAL BENTO POS COCKPIT & MOTION DESIGN SYSTEM
   Zero-Waste, Spatial Depth, Glassmorphism, Micro-Animations
   Compliant with UI/UX Pro Max & Antigravity Design Principles
   ======================================================== */

/* Motion Canvas Background & Zero-Waste Spacing (0.1 - 0.2cm edge margins) */
.cockpit-view-section {
  display: none;
  animation: motionViewIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding: 4px 6px 10px 6px !important;
  max-width: 100% !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cockpit-view-section.active {
  display: block;
}

@keyframes motionViewIn {
  from { opacity: 0; transform: translateY(8px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================
   EXECUTIVE REAL-TIME MERCHANT GLANCE STRIP (TOP VIEWPORT)
   ======================================================== */
.pos-glance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
}

.glance-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-glass) !important;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px -1px rgba(0, 41, 112, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glance-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #002970;
}

.glance-card.glance-collections::after { background: #002970; }
.glance-card.glance-udhaar::after { background: #DC2626; }
.glance-card.glance-soundbox::after { background: #0284C7; }
.glance-card.glance-loan::after { background: #B45309; }

.glance-card:hover {
  transform: none !important;
  box-shadow: 0 4px 12px -2px rgba(0, 41, 112, 0.08), 0 0 0 1px rgba(0, 186, 242, 0.25) !important;
  border-color: rgba(0, 186, 242, 0.35) !important;
}

.glance-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 41, 112, 0.08);
  color: #002970;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glance-icon-badge.coral { background: rgba(220, 38, 38, 0.1); color: #DC2626; }
.glance-icon-badge.soundbox { background: rgba(0, 186, 242, 0.12); color: #0284C7; }
.glance-icon-badge.gold { background: rgba(217, 119, 6, 0.12); color: #B45309; }

.glance-content {
  flex: 1;
  min-width: 0;
}

.glance-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glance-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 1px 0;
}

.glance-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #002970;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.glance-value.coral { color: #DC2626; }
.glance-value.cyan { color: #0284C7; font-size: 1.05rem; }
.glance-value.gold { color: #B45309; }

.glance-trend-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.glance-trend-pill.up { background: #D1FAE5; color: #059669; }

.glance-tag-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.glance-tag-pill.coral { background: #FEE2E2; color: #DC2626; }
.glance-tag-pill.gold { background: #FEF3C7; color: #B45309; }

.glance-subtext {
  font-size: 0.68rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Soundwave Animation */
.soundwave-live-mini {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.soundwave-live-mini span {
  width: 2.5px;
  background: #00BAF2;
  border-radius: 2px;
  animation: soundwaveBeat 0.8s infinite alternate ease-in-out;
}

.soundwave-live-mini span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.soundwave-live-mini span:nth-child(2) { height: 11px; animation-delay: 0.3s; }
.soundwave-live-mini span:nth-child(3) { height: 7px; animation-delay: 0.2s; }
.soundwave-live-mini span:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes soundwaveBeat {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ========================================================
   SPATIAL 2-COLUMN BENTO GRID COCKPIT (AIRY & SPACIOUS)
   ======================================================== */
.dashboard-canvas,
.pos-bento-cockpit {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

/* Card 1: Bahi-Khata (Left Column, spans both rows for continuous ledger feel) */
.col-khata {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.col-khata .pos-ledger-feed {
  flex: 1;
  max-height: 480px;
  overflow-y: auto;
}

/* Card 2: AI Growth Engine (Right Column, Top) */
.col-growth {
  grid-column: 2;
  grid-row: 1;
}

/* Card 3: Low Stock Inventory Guardian (Right Column, Bottom) */
.col-inventory {
  grid-column: 2;
  grid-row: 2;
}

/* Spatial Weightless Cards */
.glass-card,
.pos-bento-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-glass) !important;
  box-shadow: 0 2px 12px -2px rgba(0, 41, 112, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.glass-card::before,
.pos-bento-card::before {
  display: none;
}

.glass-card:hover,
.pos-bento-card:hover {
  border-color: rgba(0, 186, 242, 0.4) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 41, 112, 0.08), 0 0 0 1px rgba(0, 186, 242, 0.2) !important;
  transform: none !important;
}

/* Card Header */
.card-top,
.pos-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.card-heading,
.pos-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-heading span,
.pos-header-title h2 {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #002970 !important;
  margin: 0;
  letter-spacing: -0.01em;
}

.pos-header-icon {
  font-size: 1.1rem;
}

/* Voice Mic Button with concentric ripples */
.pos-mic-btn {
  background: rgba(0, 186, 242, 0.12);
  border: 1.5px solid rgba(0, 186, 242, 0.4);
  color: #0077A3;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.pos-mic-btn:hover {
  background: #00BAF2;
  color: #FFFFFF;
  transform: none !important;
  box-shadow: 0 0 14px rgba(0, 186, 242, 0.5);
}

.pos-mic-btn-prominent {
  background: linear-gradient(135deg, #002970 0%, #0077A3 100%) !important;
  border: 1px solid rgba(0, 186, 242, 0.4) !important;
  color: #FFFFFF !important;
  padding: 3px 8px 3px 6px !important;
  border-radius: 16px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 41, 112, 0.18) !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  position: relative !important;
}

.pos-mic-btn-prominent:hover {
  background: linear-gradient(135deg, #001f54 0%, #0056B3 100%) !important;
  border-color: #00BAF2 !important;
  box-shadow: 0 3px 10px rgba(0, 186, 242, 0.3) !important;
  transform: none !important;
}

.pos-mic-btn-prominent.listening {
  background: #DC2626 !important;
  border-color: #FECACA !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5) !important;
}

.pos-btn-khata-qr {
  background: #EFF6FF !important;
  color: #002970 !important;
  border: 1px solid #BFDBFE !important;
  border-radius: 8px !important;
  padding: 5px 9px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.pos-btn-khata-qr:hover {
  background: #DBEAFE !important;
}

.pos-btn-pnl-email {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 8px !important;
  padding: 5px 9px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.pos-btn-pnl-email:hover {
  background: #D1FAE5 !important;
}

.pos-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: ripplePulse 1.8s infinite;
}

@keyframes ripplePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Mini Metrics Strips Inside Cards (Eliminates White Space) */
.pos-khata-metrics-strip,
.pos-inventory-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.khata-metric-chip,
.stock-metric-chip {
  padding: 5px 8px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  box-sizing: border-box;
}

.khata-metric-chip .chip-label,
.stock-metric-chip .chip-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.khata-metric-chip .chip-val,
.stock-metric-chip .chip-val {
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 1px;
}

.khata-metric-chip.coral,
.stock-metric-chip.coral {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.khata-metric-chip.emerald,
.stock-metric-chip.emerald {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.khata-metric-chip.cyan,
.stock-metric-chip.cyan {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

/* Status Pills */
.pos-status-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pos-pill-coral {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.pos-pill-emerald {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.pos-pill-cyan {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

/* Telemetry Bars */
.pos-khata-telemetry,
.pos-inventory-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #475569;
  margin-bottom: 8px;
  padding: 5px 10px;
  background: #F8FAFC;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* In-Card Instant Customer Search */
.pos-card-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 8px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 10px;
  transition: all 0.2s ease;
}

.pos-card-search-wrap:focus-within {
  background: #FFFFFF;
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

.card-search-icon {
  font-size: 0.82rem;
  color: #64748B;
  margin-right: 6px;
  user-select: none;
}

.pos-card-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #0F172A;
  padding: 6px 0;
  font-weight: 600;
  min-width: 0;
}

.pos-card-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 500;
}

.card-search-clear-btn {
  background: #E2E8F0;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.card-search-clear-btn:hover {
  background: #CBD5E1;
  color: #0F172A;
}

.telemetry-soundbox-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #002970;
}

.soundbox-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00BAF2;
  box-shadow: 0 0 6px #00BAF2;
}

.voice-hint-pill {
  font-size: 0.70rem;
  color: #475569;
}

.inventory-status-live {
  color: #059669;
  font-weight: 700;
  font-size: 0.70rem;
}

/* AI Intelligence Strip */
.ai-intelligence-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 8px;
}

.ai-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284C7;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Dense Scrollable List Feeds */
.ledger-list,
.pos-ledger-feed,
.stock-warning-list,
.pos-stock-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 86, 179, 0.25) transparent;
}

#khataAuditList {
  max-height: 460px !important;
  gap: 8px !important;
  padding: 10px !important;
}

/* Flexible, Non-Overlapping List Rows */
.ledger-item {
  min-height: 44px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  margin-bottom: 6px !important;
  transition: all 0.15s ease;
  box-sizing: border-box !important;
}

.ledger-item.audit-item {
  padding: 10px 14px !important;
}

.ledger-item:hover {
  background: #F0F9FF !important;
  border-color: #BAE6FD !important;
}

.pos-feed-row,
.stock-warning-item,
.pos-stock-row {
  height: 44px !important;
  min-height: 44px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.pos-feed-row:hover,
.stock-warning-item:hover,
.pos-stock-row:hover {
  background: #F0F9FF !important;
  border-color: #BAE6FD !important;
}

.pos-row-left,
.ledger-item > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ledger-item.audit-item > div:first-child {
  align-items: flex-start !important;
}

.pos-dot,
.ledger-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  flex-shrink: 0;
}

.pos-dot-coral, .dot-orange {
  background: #DC2626 !important;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.4) !important;
}

.pos-dot-emerald, .dot-green {
  background: #059669 !important;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4) !important;
}

.pos-customer-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.pos-customer-name {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-item strong {
  display: inline !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
}

.pos-customer-sub {
  font-size: 0.70rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pos-amount-tag,
.badge-ledger-amount {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  font-family: monospace;
}

.pos-amount-coral,
.badge-ledger-udhaar {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA !important;
}

.pos-amount-emerald,
.badge-ledger-paid {
  background: #D1FAE5 !important;
  color: #059669 !important;
  border: 1px solid #A7F3D0 !important;
}

.pos-time-tag,
.date-stamp-pill {
  font-size: 0.68rem !important;
  color: #64748B !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
}

.pos-pill-receipt {
  font-size: 0.70rem;
  font-weight: 700;
  color: #059669;
  padding: 2px 5px;
}

/* Primary Action Buttons */
.pos-btn-settle-emerald {
  background: #059669 !important;
  color: #FFFFFF !important;
  border: 1px solid #047857 !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  border-radius: 6px !important;
  cursor: pointer;
  padding: 4px 9px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.15s ease !important;
}

.pos-btn-settle-emerald:hover {
  background: #047857 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35) !important;
}

.pos-btn-reminder-blue {
  background: #F0F9FF !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
  padding: 4px 7px !important;
  height: 28px !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.15s ease !important;
}

.pos-btn-reminder-blue:hover {
  background: #E0F2FE !important;
  border-color: #7DD3FC !important;
}

.btn-text-short {
  display: none;
}

.btn-text-full {
  display: inline;
}

.pos-btn-cyan,
.pos-btn-cyan-sm,
.btn-action-cyan {
  background: linear-gradient(135deg, #002970 0%, #0056B3 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 41, 112, 0.2) !important;
}

.pos-btn-cyan-sm,
.btn-action-cyan {
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
  height: 28px !important;
}

.pos-btn-cyan:hover,
.pos-btn-cyan-sm:hover,
.btn-action-cyan:hover {
  background: linear-gradient(135deg, #001A4A 0%, #004494 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 41, 112, 0.3) !important;
}

.pos-btn-ghost-sm {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-btn-ghost-sm:hover {
  border-color: #0056B3;
  color: #0056B3;
  background: #F0F9FF;
}

.btn-full-width,
.pos-btn-outline-wide {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #002970 !important;
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  padding: 7px 12px !important;
  border-radius: 7px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  transition: all 0.2s ease;
}

.btn-full-width:hover,
.pos-btn-outline-wide:hover {
  background: #F0F9FF !important;
  border-color: #00BAF2 !important;
  color: #0056B3 !important;
}

/* AI Mini Cards in Column 2 */
.pos-mini-card,
.growth-alert-box {
  background: #F8FAFC !important;
  border: 1.5px solid var(--border-glass) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease;
}

.pos-alert-winback,
.growth-alert-box {
  border-left: 4px solid #DC2626 !important;
}

.pos-card-surge {
  border-left: 4px solid #0284C7 !important;
}

.pos-card-cross {
  border-left: 4px solid #059669 !important;
}

.pos-mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #002970;
  font-weight: 700;
}

.pos-badge-alert {
  font-size: 0.68rem;
  font-weight: 800;
  color: #DC2626;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  padding: 1px 6px;
  border-radius: 4px;
}

.pos-badge-surge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0284C7;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  padding: 1px 6px;
  border-radius: 4px;
}

.pos-mini-card-body,
.alert-subtext {
  font-size: 0.78rem !important;
  color: #334155 !important;
  line-height: 1.35 !important;
  margin-bottom: 4px !important;
}

.pos-mini-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.pos-action-sub {
  font-size: 0.72rem;
  color: #002970;
  font-weight: 600;
}

.pos-progress-track {
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
  margin: 3px 0;
}

.pos-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0056B3, #059669);
  border-radius: 3px;
}

.pos-surge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #475569;
}

.pos-combo-text {
  font-size: 0.76rem;
  color: #0F172A;
  font-weight: 600;
}

/* Stock Rows in Column 3 */
.pos-stock-row,
.stock-warning-item {
  height: 44px !important;
  min-height: 44px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-sizing: border-box;
  gap: 8px;
}

.pos-stock-meta,
.stock-warning-item > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.pos-stock-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.pos-stock-name,
.stock-warning-item strong {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.pos-stock-sub {
  font-size: 0.68rem;
  color: #64748B;
  display: block;
}

.pos-stock-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pos-stock-pill,
.stock-warning-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap;
  display: inline-block !important;
  margin-top: 0 !important;
  flex-shrink: 0;
}

.pos-stock-pill-critical,
.stock-warning-badge {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA !important;
}

/* Bottom Strip: Vyapar Credit Score 88/100 */
.pos-credit-strip {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  margin-top: 6px !important;
  background: linear-gradient(90deg, #FFFFFF 0%, #F0F9FF 50%, #FFFFFF 100%) !important;
  border: 1.5px solid var(--border-glass) !important;
  box-shadow: 0 2px 10px -2px rgba(0, 41, 112, 0.06) !important;
  border-radius: 9px !important;
}

.pos-credit-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 175px;
}

.pos-credit-gauge-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-gauge-circle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: 2.5px solid #0056B3;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pos-gauge-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: #002970;
  line-height: 1;
  letter-spacing: -0.5px;
}

.pos-gauge-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.pos-gauge-tier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.pos-gauge-tier strong {
  color: #059669 !important;
  font-weight: 800;
}

.pos-gauge-risk {
  font-size: 0.72rem;
  color: #64748B;
}

.pos-credit-center {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
}

.pos-credit-preapproved-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0056B3;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.pos-credit-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.pos-credit-amount {
  font-size: 1.45rem;
  font-weight: 900;
  color: #002970;
  letter-spacing: -0.02em;
}

.pos-credit-tagline {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 700;
}

.pos-credit-terms,
.loan-eligibility-text {
  font-size: 0.74rem !important;
  color: #475569 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100% !important;
  margin: 0 !important;
}

.pos-credit-terms strong {
  color: #002970;
}

.pos-credit-right {
  flex-shrink: 0;
}

.pos-btn-cyan-lg {
  background: linear-gradient(135deg, #002970 0%, #0056B3 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 41, 112, 0.25);
  transition: all 0.2s ease;
}

.pos-btn-cyan-lg:hover {
  background: linear-gradient(135deg, #001A4A 0%, #004494 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 41, 112, 0.35);
}

/* ========================================================
   UNIFIED CLEAN PAYTM LIGHT THEME FOR ENTIRE COCKPIT
   ======================================================== */
.app-view {
  background: #F8FAFD !important;
  color: #091124 !important;
}

.cockpit-main {
  background: transparent !important;
}

.cockpit-sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
}

.sidebar-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.sidebar-item {
  color: #334155 !important;
}

.sidebar-item:hover {
  background: #F0F9FF !important;
  color: #0056B3 !important;
}

.sidebar-item.active {
  background: #E0F2FE !important;
  color: #0056B3 !important;
  border: 1px solid #BAE6FD !important;
}

.sidebar-item.active .sidebar-icon svg {
  stroke: #0056B3 !important;
}

.top-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.top-search-bar {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}

.top-search-bar input {
  color: #091124 !important;
}

.top-search-bar input::placeholder {
  color: #64748B !important;
}

.merchant-profile-btn {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

.merchant-profile-btn #headerMerchantName {
  color: #091124 !important;
}

.merchant-profile-btn #headerMerchantShop {
  color: #64748B !important;
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION BAR & RESPONSIVE ENGINE
   ======================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1024px) {
  .pos-glance-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dashboard-canvas,
  .pos-bento-cockpit {
    grid-template-columns: 1.05fr 0.95fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .cockpit-sidebar {
    display: none !important;
  }

  .cockpit-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-bottom: 84px !important;
    box-sizing: border-box !important;
  }

  .app-view,
  #appView,
  .cockpit-view-section,
  .pos-bento-cockpit {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .top-navbar {
    padding: 0 10px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 4px rgba(0, 20, 50, 0.05) !important;
  }

  /* Completely hide desktop mic button & search on mobile */
  #desktopVoiceMicBtn,
  .desktop-voice-bar-btn,
  .top-search-bar {
    display: none !important;
  }

  .mobile-top-brand {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .lang-toggle-btn {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .top-icon-btn {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Initials Avatar in Top Right Corner */
  .merchant-profile-btn {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .merchant-profile-text-wrap,
  .merchant-profile-btn #headerMerchantName,
  .merchant-profile-btn #headerMerchantShop,
  .merchant-profile-btn div:not(.merchant-avatar) {
    display: none !important;
  }

  .merchant-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #002970, #00BAF2) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 41, 112, 0.25) !important;
    border: 2px solid #FFFFFF !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s ease;
  }

  .merchant-avatar:active {
    transform: scale(0.92);
  }

  .cockpit-view-section {
    padding: 6px 12px 84px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 2x2 Clean Grid on Phones - All 4 vital numbers instantly visible */
  .pos-glance-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .glance-card {
    flex: auto !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .glance-icon-badge {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .glance-content {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .glance-value-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .glance-value {
    font-size: 1.15rem !important;
  }

  .glance-label {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .glance-subtext {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
  }

  .dashboard-canvas,
  .pos-bento-cockpit {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .col-khata,
  .col-growth,
  .col-inventory,
  .pos-credit-strip,
  #profitTrendsRechartsRoot {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .pos-bento-card {
    padding: 10px 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid var(--border-glass) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  /* Card Header on Mobile: Row 1 = Title + Pill; Row 2 = 3 Equal Action Buttons */
  .pos-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 7px !important;
    padding-bottom: 5px !important;
    min-width: 0 !important;
  }

  .pos-header-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .pos-header-title h2 {
    font-size: 0.90rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  #cardKhataPendingPill {
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .pos-card-header-actions,
  .pos-card-header > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .pos-mic-btn-prominent,
  .pos-header-action-btn,
  .pos-card-header-actions button,
  .pos-card-header > div:last-child button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 4px 4px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    height: 28px !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .pos-mic-btn-prominent span,
  .pos-header-action-btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Dense Metrics Strips (Pending, Recovered, Accounts) - Never overflows */
  .pos-khata-metrics-strip,
  .pos-inventory-metrics-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .khata-metric-chip,
  .stock-metric-chip {
    padding: 4px 4px !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: 6px !important;
  }

  .khata-metric-chip .chip-label,
  .stock-metric-chip .chip-label {
    font-size: 0.58rem !important;
  }

  .khata-metric-chip .chip-val,
  .stock-metric-chip .chip-val {
    font-size: 0.78rem !important;
  }

  .pos-khata-telemetry {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    font-size: 0.68rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .pos-khata-telemetry .telemetry-soundbox-tag {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .pos-khata-telemetry .voice-hint-pill {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 50% !important;
    font-size: 0.64rem !important;
  }

  .pos-card-search-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
  }

  .pos-card-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.78rem !important;
  }

  /* Mobile Finger-Friendly Buttons */
  .pos-btn-action-sm,
  .pos-btn-cyan-sm {
    min-height: 25px !important;
    padding: 2px 6px !important;
    font-size: 0.68rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Bahi-Khata Ledger Row Fix on Mobile (2-Line Responsive Layout: Zero Overflow) */
  .pos-feed-row {
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 7px !important;
    margin-bottom: 5px !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  /* Line 1: Customer identification on the left */
  .pos-row-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .pos-customer-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .pos-customer-name {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 130px !important;
  }

  .pos-customer-sub {
    font-size: 0.70rem !important;
    color: #64748B !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Line 2: Amount badge on left, quick action buttons on right */
  .pos-row-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
    padding-top: 4px !important;
    border-top: 1px dashed #F1F5F9 !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }

  .pos-amount-tag {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: -0.2px !important;
  }

  /* Hide redundant date timestamp on small mobile screens to prevent overlap */
  .pos-row-right .pos-time-tag {
    display: none !important;
  }

  .pos-action-btn-group,
  .pos-row-right > div {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .pos-btn-whatsapp .btn-text-full {
    display: none !important;
  }

  .pos-btn-whatsapp .btn-text-short {
    display: inline !important;
  }

  .btn-text-short {
    display: inline !important;
  }

  .btn-text-full {
    display: none !important;
  }

  .pos-stock-row {
    height: auto !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .pos-stock-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .pos-stock-name {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 140px !important;
  }

  /* Full-width bottom credit score card on mobile */
  .pos-credit-strip {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 10px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pos-credit-left {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .pos-credit-center {
    width: 100% !important;
    text-align: left !important;
  }

  .pos-credit-headline {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .pos-credit-right {
    width: 100% !important;
  }

  .pos-credit-right .pos-btn-cyan-lg {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Responsive React Components on Dashboard */
  .digital-khata-responsive-grid,
  .profit-chart-responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #digitalKhataQrStudioCard,
  .pos-profit-trends-card {
    padding: 10px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .chhota-galla-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 10px !important;
    overflow: hidden !important;
  }

  .micro-galla-btn-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .micro-galla-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    cursor: pointer !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 4px !important;
  }

  .micro-galla-btn .micro-btn-label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-align: left !important;
  }

  .micro-galla-btn .micro-btn-margin {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #059669 !important;
    background: #ECFDF5 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  .profit-chart-mode-toggle {
    width: 100% !important;
    display: flex !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
  }

  .profit-chart-mode-toggle button {
    flex: 1 1 0 !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    padding: 6px 4px !important;
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  .profit-summary-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .profit-chart-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #printableKhataStandeeCard {
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .chatbot-launcher {
    display: flex !important;
    position: fixed !important;
    bottom: 70px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #002970 0%, #00BAF2 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 41, 112, 0.35) !important;
    z-index: 9998 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .chatbot-window {
    bottom: 70px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: calc(100vh - 84px) !important;
  }

  body:not(.in-cockpit) .mobile-bottom-nav,
  #appView[style*="display: none"] .mobile-bottom-nav,
  #appView[style*="display:none"] .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 -4px 16px rgba(0, 20, 50, 0.08) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-item {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #64748B !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    flex: 1 !important;
    height: 100% !important;
    transition: all 0.2s ease !important;
  }

  .mobile-nav-item span {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
  }

  .mobile-nav-item.active {
    color: #0056B3 !important;
  }

  .mobile-nav-item.active .mobile-nav-icon svg {
    stroke: #0056B3 !important;
  }

  .mobile-nav-center-btn {
    position: relative !important;
    transform: translateY(-10px) !important;
  }

  .mobile-nav-center-circle {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #002970 0%, #00BAF2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 186, 242, 0.45) !important;
    border: 3px solid #FFFFFF !important;
    transition: transform 0.2s ease !important;
  }

  .mobile-nav-center-btn:active .mobile-nav-center-circle {
    transform: scale(0.92) !important;
  }

  .mobile-nav-center-btn span {
    margin-top: 1px !important;
    color: #002970 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
  }

  /* ========================================================
     MOBILE-FRIENDLY RESPONSIVE DATA TABLES (STOCK, KHATA, HISTORY)
     ======================================================== */
  .mobile-table-scroll-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    color: #0056B3 !important;
    background: rgba(0, 186, 242, 0.08) !important;
    border: 1px dashed rgba(0, 186, 242, 0.4) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  .table-responsive-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 4px rgba(0, 20, 50, 0.04) !important;
    scrollbar-width: thin !important;
    scrollbar-color: #00BAF2 #E2E8F0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .table-responsive-card::-webkit-scrollbar {
    height: 4px !important;
  }

  .table-responsive-card::-webkit-scrollbar-track {
    background: #E2E8F0 !important;
    border-radius: 4px !important;
  }

  .table-responsive-card::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #002970, #00BAF2) !important;
    border-radius: 4px !important;
  }

  .interactive-table {
    min-width: 560px !important;
    width: 100% !important;
    font-size: 0.72rem !important;
  }

  .interactive-table th {
    padding: 6px 7px !important;
    font-size: 0.63rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    background: #F8FAFC !important;
    border-bottom: 1.5px solid #E2E8F0 !important;
    color: #475569 !important;
  }

  .interactive-table td {
    padding: 5px 7px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
  }

  .interactive-table tr:hover td {
    background: #F8FAFC !important;
  }

  .interactive-table .badge-status {
    padding: 2px 5px !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    gap: 3px !important;
  }

  /* ========================================================
     STOCK TAB (VIEW-INVENTORY) MOBILE OPTIMIZATION
     ======================================================== */
  .inv-col-product {
    min-width: 110px !important;
    max-width: 140px !important;
    white-space: normal !important;
    padding: 5px 6px !important;
  }

  .inv-product-name {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #0F172A !important;
  }

  .inv-packaging-sub {
    font-size: 0.58rem !important;
    color: #64748B !important;
    margin-top: 1px !important;
  }

  .inv-col-category {
    padding: 5px 6px !important;
  }

  .inv-cat-badge {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
  }

  .inv-col-stock {
    min-width: 78px !important;
    max-width: 88px !important;
    padding: 5px 6px !important;
  }

  .inv-stock-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.63rem !important;
    margin-bottom: 2px !important;
    gap: 3px !important;
  }

  .inv-stock-status {
    font-size: 0.63rem !important;
    font-weight: 800 !important;
  }

  .inv-stock-threshold {
    font-size: 0.55rem !important;
    color: #64748B !important;
  }

  .inv-stock-track {
    width: 100% !important;
    height: 3.5px !important;
    background: #E2E8F0 !important;
    border-radius: 2px !important;
    overflow: hidden !important;
  }

  .inv-stock-bar {
    height: 100% !important;
    border-radius: 2px !important;
  }

  .inv-col-price,
  .inv-price-val {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
  }

  .inv-col-cost {
    padding: 5px 6px !important;
    font-size: 0.68rem !important;
  }

  .inv-wholesale-val {
    font-size: 0.68rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
  }

  .inv-margin-tag {
    font-size: 0.58rem !important;
    color: #00d26a !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
  }

  .inv-col-supplier {
    padding: 5px 6px !important;
    max-width: 100px !important;
  }

  .inv-supplier-name {
    font-size: 0.66rem !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 95px !important;
  }

  .inv-supplier-contact {
    font-size: 0.56rem !important;
    color: #64748B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 95px !important;
  }

  .inv-col-action {
    padding: 5px 6px !important;
    text-align: right !important;
  }

  .inv-btn-reorder {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    height: 25px !important;
    min-height: 25px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  /* ========================================================
     ZERO-WASTE SPATIAL LAYOUT FOR ALL TABS ON MOBILE
     (Stock, Khata, Madad / Growth, Transactions)
     ======================================================== */
  .section-banner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 2px 6px 2px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .section-banner-title h2 {
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0F172A !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .section-banner-title p {
    display: none !important; /* Eliminate bulky marketing paragraphs on phones */
  }

  .section-banner .btn-primary-gradient {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
    width: auto !important;
    min-height: 28px !important;
    border-radius: 6px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  /* 2x2 Dense Stat Ribbon (Matches Dashboard Glance Strip) */
  .stat-ribbon {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    margin-bottom: 6px !important;
  }

  .stat-card {
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 20, 50, 0.04) !important;
  }

  .stat-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.88rem !important;
    border-radius: 6px !important;
  }

  .stat-val {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  .stat-lbl {
    font-size: 0.62rem !important;
    margin-top: 1px !important;
    color: #64748B !important;
  }

  /* Filter & Search Toolbar Zero Waste */
  .filter-toolbar {
    padding: 5px 6px !important;
    margin-bottom: 6px !important;
    gap: 5px !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 20, 50, 0.04) !important;
  }

  .filter-group {
    gap: 4px !important;
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0 !important;
    scrollbar-width: none !important;
  }

  .filter-group::-webkit-scrollbar {
    display: none !important;
  }

  .filter-pill {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 20px !important;
  }

  .search-pill-input {
    width: 100% !important;
    padding: 4px 8px !important;
    height: 30px !important;
    border-radius: 20px !important;
  }

  .search-pill-input input {
    font-size: 0.72rem !important;
  }

  /* View 2: Bahi-Khata Zero Waste */
  #view-khata > div[style*="margin-top"] {
    margin-top: 8px !important;
  }

  #view-khata h3 {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
  }

  #khataAuditList {
    padding: 6px 8px !important;
    border-radius: 8px !important;
    gap: 5px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  #khataAuditList .pos-feed-row {
    padding: 6px 8px !important;
    min-height: 42px !important;
  }

  /* View 5: AI Growth & Loans (Madad) Zero Waste */
  #view-analytics > div[style*="display:grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 6px !important;
  }

  #view-analytics .glass-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 1px 4px rgba(0, 20, 50, 0.04) !important;
  }

  #view-analytics .card-heading {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
  }

  #view-analytics p {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  #analyticsCampaignsList {
    gap: 6px !important;
  }

  #festiveAlertBox {
    margin-top: 6px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
  }

  #festiveTitle {
    font-size: 0.82rem !important;
  }

  #festiveDetails {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
  }

  .gauge-container {
    margin: 0 auto !important;
    max-width: 170px !important;
  }

  .radial-gauge-svg {
    max-height: 70px !important;
  }

  .score-display {
    font-size: 1.45rem !important;
    margin-top: -10px !important;
  }

  .score-tagline {
    font-size: 0.66rem !important;
  }

  #view-analytics [style*="background:var(--bg-surface)"] {
    padding: 6px 8px !important;
    margin: 6px 0 !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
  }

  #openLoanDisbursalBtn {
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
    min-height: 36px !important;
    margin-top: 6px !important;
  }
}

/* ========================================================
   LANGUAGE TOGGLE BUTTON
   ======================================================== */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: 50px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-toggle-btn:hover {
  border-color: var(--border-focus);
  box-shadow: 0 2px 8px rgba(0, 20, 50, 0.08);
}

.lang-toggle-active {
  color: #0056B3;
  font-weight: 800;
}

.lang-toggle-divider {
  color: var(--text-muted);
  font-weight: 400;
}

.lang-toggle-inactive {
  color: var(--text-muted);
  font-weight: 600;
}

/* ========================================================
   CLEAN ICON BUTTON & NOTIFICATION DOT
   ======================================================== */
.top-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.top-icon-btn:hover {
  background: var(--bg-card-hover);
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

/* ========================================================
   ACTIONABLE SMALL BUTTONS (Reminder Bhejo, Order Karein)
   ======================================================== */
.pos-btn-action-sm {
  background: #0056B3;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pos-btn-action-sm:hover {
  background: #004494;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 41, 112, 0.2);
}

/* Responsive adjustment for tablets / POS terminals */
@media (min-width: 769px) and (max-width: 1100px) {
  .dashboard-canvas,
  .pos-bento-cockpit {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .pos-credit-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .pos-credit-center {
    border: none !important;
    padding: 8px 0 !important;
  }
}

/* Reorder & Action Buttons */
.btn-action-cyan {
  background: linear-gradient(135deg, #00baf2 0%, #0098d4 100%);
  color: #001233;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 186, 242, 0.3);
}

.btn-action-cyan:hover {
  background: #00a5e3;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 186, 242, 0.45);
}

.btn-action-blue {
  background: linear-gradient(135deg, #002970 0%, #004b99 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 41, 112, 0.25);
}

.btn-action-blue:hover {
  background: linear-gradient(135deg, #001f54 0%, #003d7a 100%);
  transform: scale(1.03);
}

.btn-full-width {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-glass);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-full-width:hover {
  background: #002970;
  color: #ffffff;
  border-color: #002970;
  box-shadow: 0 4px 14px rgba(0, 41, 112, 0.2);
}

[data-theme="dark"] .btn-full-width:hover {
  background: var(--paytm-cyan);
  color: #001233;
  border-color: var(--paytm-cyan);
}

/* ========================================================
   4. DYNAMIC VIEW SECTIONS & DATA VIEWS
   ======================================================== */
.cockpit-view-section {
  display: none;
  animation: viewFadeIn 0.25s ease-out forwards;
  padding: 6px 10px 24px 10px;
  max-width: 100%;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.cockpit-view-section.active {
  display: block;
}

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

/* Section Header Banners */
.section-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.section-banner-title h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.section-banner-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #002970 0%, #0056b3 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 41, 112, 0.25);
  transition: var(--transition-smooth);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 41, 112, 0.35);
  background: linear-gradient(135deg, #001f54 0%, #004494 100%);
}

/* Stat Ribbon - Bold & Unignorable Metrics */
.stat-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* WCAG AAA High-Contrast Stat Icons */
.stat-icon.cyan { background: #e0f2fe; color: #0284c7; border: 1.5px solid #bae6fd; }
.stat-icon.green { background: #d1fae5; color: #059669; border: 1.5px solid #a7f3d0; }
.stat-icon.orange { background: #fef3c7; color: #d97706; border: 1.5px solid #fde68a; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; border: 1.5px solid #ddd6fe; }
.stat-icon.red { background: #fee2e2; color: #dc2626; border: 1.5px solid #fecaca; }

[data-theme="dark"] .stat-icon.cyan { background: rgba(0, 186, 242, 0.18); color: #38bdf8; border-color: rgba(0, 186, 242, 0.4); }
[data-theme="dark"] .stat-icon.green { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16, 185, 129, 0.4); }
[data-theme="dark"] .stat-icon.orange { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
[data-theme="dark"] .stat-icon.purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; border-color: rgba(168, 85, 247, 0.4); }
[data-theme="dark"] .stat-icon.red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Filter & Action Toolbar */
.filter-toolbar {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  border: 1.5px solid var(--border-glass);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.filter-pill.active {
  background: #002970;
  color: #ffffff;
  border-color: #002970;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 41, 112, 0.2);
}

[data-theme="dark"] .filter-pill.active {
  background: var(--paytm-cyan);
  color: #001233;
  border-color: var(--paytm-cyan);
}

.search-pill-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-glass);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  width: 280px;
  transition: all 0.2s;
}

.search-pill-input:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

.search-pill-input input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
}

.search-pill-input input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

/* Tables & Cards */
.table-responsive-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.8rem;
}

.interactive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.interactive-table th {
  background: var(--bg-card-subtle);
  padding: 1.05rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1.5px solid var(--border-glass);
}

.interactive-table td {
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  border-bottom: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  vertical-align: middle;
}

.interactive-table tr:last-child td {
  border-bottom: none;
}

.interactive-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Stock Table Semantic Desktop Classes */
.inv-col-product {
  min-width: 160px;
}
.inv-product-name {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.inv-packaging-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.inv-cat-badge {
  font-size: 0.8rem;
}
.inv-col-stock {
  min-width: 140px;
}
.inv-stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.inv-stock-threshold {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.inv-stock-track {
  width: 100%;
  height: 6px;
  background: var(--border-glass);
  border-radius: 3px;
  overflow: hidden;
}
.inv-stock-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.inv-price-val {
  font-weight: 700;
}
.inv-wholesale-val {
  color: var(--text-secondary);
}
.inv-margin-tag {
  font-size: 0.75rem;
  color: #00d26a;
  font-weight: 700;
  margin-left: 0.3rem;
}
.inv-supplier-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.inv-supplier-contact {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.inv-btn-reorder {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.mobile-table-scroll-hint {
  display: none;
}

/* ========================================================
   5. WCAG AAA STATUS BADGES (CRISP, CONTRAST-CERTIFIED)
   ======================================================== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Light Theme Badges (Contrast >= 5.5:1 against card background) */
.badge-green { 
  background: #dcfce7; 
  color: #166534; 
  border: 1.5px solid #bbf7d0; 
}
.badge-orange { 
  background: #fef3c7; 
  color: #92400e; 
  border: 1.5px solid #fde68a; 
}
.badge-red { 
  background: #fee2e2; 
  color: #991b1b; 
  border: 1.5px solid #fecaca; 
}
.badge-cyan { 
  background: #e0f2fe; 
  color: #0369a1; 
  border: 1.5px solid #bae6fd; 
}
.badge-purple { 
  background: #f3e8ff; 
  color: #6b21a8; 
  border: 1.5px solid #e9d5ff; 
}
.badge-gray { 
  background: #f1f5f9; 
  color: #334155; 
  border: 1.5px solid #cbd5e1; 
}

/* Dark Theme Badges (Contrast >= 8:1 against dark background) */
[data-theme="dark"] .badge-green { 
  background: rgba(16, 185, 129, 0.2); 
  color: #34d399; 
  border-color: rgba(16, 185, 129, 0.4); 
}
[data-theme="dark"] .badge-orange { 
  background: rgba(245, 158, 11, 0.2); 
  color: #fbbf24; 
  border-color: rgba(245, 158, 11, 0.4); 
}
[data-theme="dark"] .badge-red { 
  background: rgba(239, 68, 68, 0.2); 
  color: #fca5a5; 
  border-color: rgba(239, 68, 68, 0.4); 
}
[data-theme="dark"] .badge-cyan { 
  background: rgba(0, 186, 242, 0.2); 
  color: #38bdf8; 
  border-color: rgba(0, 186, 242, 0.4); 
}
[data-theme="dark"] .badge-purple { 
  background: rgba(168, 85, 247, 0.2); 
  color: #c084fc; 
  border-color: rgba(168, 85, 247, 0.4); 
}
[data-theme="dark"] .badge-gray { 
  background: rgba(148, 163, 184, 0.15); 
  color: #e2e8f0; 
  border-color: rgba(148, 163, 184, 0.3); 
}

/* Simulator Card */
.simulator-card {
  background: linear-gradient(135deg, rgba(0, 41, 112, 0.05) 0%, rgba(0, 186, 242, 0.08) 100%);
  border: 2px dashed #0056b3;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .simulator-card {
  background: linear-gradient(135deg, rgba(0, 41, 112, 0.2) 0%, rgba(0, 186, 242, 0.15) 100%);
  border-color: var(--paytm-cyan);
}

.chip-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.amount-chip {
  padding: 0.6rem 1.3rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-chip:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.amount-chip.active {
  background: #002970;
  color: #ffffff;
  border-color: #002970;
  box-shadow: 0 4px 12px rgba(0, 41, 112, 0.25);
}

[data-theme="dark"] .amount-chip.active {
  background: var(--paytm-cyan);
  color: #001233;
  border-color: var(--paytm-cyan);
}

.form-input-text {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.form-input-text:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Modals — Ultra-Modern Indian Retail Experience */
.vyapar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 40, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.vyapar-modal-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 20, 50, 0.35);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.vyapar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #E2E8F0;
  gap: 12px;
}

.vyapar-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.modal-main-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-subtag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #EFF6FF;
  color: #0056B3;
  padding: 2px 8px;
  border-radius: 12px;
}

.modal-sub-heading {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 1px;
}

.vyapar-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vyapar-modal-close:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: rotate(90deg);
}

.vyapar-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required-star {
  color: #EF4444;
  font-weight: 800;
}

.badge-sms {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid #A7F3D0;
}

/* 1. Khata Type Selector Tabs */
.khata-type-toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 12px;
}

.type-pill-btn {
  border: 1.5px solid transparent;
  background: transparent;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748B;
  transition: all 0.2s ease;
}

.type-pill-btn.active-udhaar {
  background: #FFFFFF;
  color: #DC2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  border-color: #FCA5A5;
}

.type-pill-btn.active-jama {
  background: #FFFFFF;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
  border-color: #6EE7B7;
}

/* 2. Hero Amount Input Box */
.hero-amount-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.hero-amount-box.is-udhaar {
  background: #FFF5F5;
  border-color: #FECACA;
}

.hero-amount-box.is-jama {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.hero-currency-tag {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0F172A;
  margin-right: 6px;
}

.hero-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  font-weight: 900;
  color: #0F172A;
  outline: none;
  width: 100%;
}

.hero-amount-label {
  position: absolute;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  pointer-events: none;
}

/* Quick Amount Chips */
.quick-chip-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.quick-chip-strip::-webkit-scrollbar {
  display: none;
}

.amount-quick-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.amount-quick-chip:hover {
  background: #002970;
  color: #FFFFFF;
  border-color: #002970;
  transform: translateY(-1px);
}

.amount-quick-chip:active {
  transform: scale(0.95);
}

/* Quick Item Chips */
.item-suggestion-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.item-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Soundbox Reminder Banner */
.soundbox-reminder-banner {
  background: linear-gradient(135deg, rgba(0, 186, 242, 0.08), rgba(0, 41, 112, 0.04));
  border: 1px solid rgba(0, 186, 242, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.35;
}

.soundbox-reminder-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Modal Footer */
.vyapar-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #E2E8F0;
}

.btn-modal-cancel {
  flex: 1;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-modal-submit-khata {
  flex: 2;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
}

.btn-modal-submit-khata.is-jama {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-modal-submit-khata:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Profile Modal Logout Buttons */
.btn-profile-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1.5px solid #FECACA;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-logout:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.btn-profile-quick-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-profile-quick-logout:hover {
  background: #DC2626;
  color: white;
}

/* Toast Notification */
.vyapar-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.vyapar-toast.info {
  background: #002970;
  border: 1.5px solid var(--paytm-cyan);
}

.vyapar-toast.success {
  background: #065f46;
  border: 1.5px solid #34d399;
}

.vyapar-toast.error {
  background: #991b1b;
  border: 1.5px solid #f87171;
}

/* Responsive Breakpoints */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-canvas {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* ========================================================
   DASHBOARD CARDS: BORDERS MATCHING OTHER TABS (LIGHT GREY)
   (Matches exact 1.5px solid var(--border-glass) on Bahi-Khata/Stock tabs)
   ======================================================== */
#view-dashboard .glance-card {
  border: 1.5px solid var(--border-glass) !important;
}

#view-dashboard .pos-bento-card,
#view-dashboard .glass-card {
  border: 1.5px solid var(--border-glass) !important;
}

#view-dashboard .pos-credit-strip {
  border: 1.5px solid var(--border-glass) !important;
}

#view-dashboard .pos-mini-card,
#view-dashboard .growth-alert-box {
  border: 1.5px solid var(--border-glass) !important;
}

#view-dashboard #profitTrendsRechartsRoot .pos-bento-card {
  border: 1.5px solid var(--border-glass) !important;
}

#view-dashboard #profitTrendsRechartsRoot .profit-chart-responsive-grid > div,
#view-dashboard #profitTrendsRechartsRoot .digital-khata-responsive-grid > div {
  border: 1.5px solid var(--border-glass) !important;
}

/* ========================================================
   FINAL AUTHORITATIVE MOBILE OVERRIDES (<= 768px)
   Guarantees 100% Alignment of Bottom Cards with Top Glance Cards
   and Unignorable Floating Chatbot Launcher in Bottom Right
   ======================================================== */
@media (max-width: 768px) {
  #view-dashboard,
  .cockpit-view-section {
    padding: 6px 12px 84px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #view-dashboard .pos-glance-strip,
  #view-dashboard .pos-bento-cockpit {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
  }

  #view-dashboard .pos-bento-cockpit {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #view-dashboard .pos-bento-card,
  #view-dashboard .col-khata,
  #view-dashboard .col-growth,
  #view-dashboard .col-inventory,
  #view-dashboard .pos-credit-strip,
  #view-dashboard #profitTrendsRechartsRoot {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #view-dashboard .pos-bento-card,
  #view-dashboard #profitTrendsRechartsRoot .pos-bento-card,
  #view-dashboard #profitTrendsRechartsRoot .pos-profit-trends-card,
  #view-dashboard #digitalKhataQrStudioCard {
    padding: 10px 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid var(--border-glass) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #view-dashboard #profitTrendsRechartsRoot .profit-chart-responsive-grid,
  #view-dashboard #profitTrendsRechartsRoot .digital-khata-responsive-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 10px !important;
  }

  #view-dashboard #profitTrendsRechartsRoot .profit-chart-box,
  #view-dashboard #profitTrendsRechartsRoot .chhota-galla-card,
  #view-dashboard #profitTrendsRechartsRoot .micro-galla-btn-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Floating Chatbot Bubble Launcher in Bottom Right */
  .chatbot-launcher {
    display: flex !important;
    position: fixed !important;
    bottom: 74px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #002970 0%, #00BAF2 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 41, 112, 0.35) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }
}



