/* ValidaPWA - Hyper-Polished Native Mobile Web Design System (iOS 17 & Material You aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-app: #030712;
  --bg-header: rgba(15, 23, 42, 0.78);
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-active: rgba(47, 63, 90, 0.85);
  --bg-input: rgba(15, 23, 42, 0.9);
  
  --color-primary: #06b6d4;
  --color-primary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --color-secondary: #6366f1;
  --color-accent-glow: rgba(6, 182, 212, 0.4);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.16);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.16);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.16);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(6, 182, 212, 0.4);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  --shadow-sheet: 0 -15px 50px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* EXECUTIVE ENTERPRISE THEME OVERRIDES */
[data-theme="executive"] {
  --bg-app: #090d16;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(17, 24, 39, 0.78);
  --bg-card-active: rgba(30, 41, 59, 0.9);
  --bg-input: #111827;

  --color-primary: #38bdf8;
  --color-primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 40%, #1e1b4b 100%);
  --color-secondary: #6366f1;
  --color-accent-glow: rgba(56, 189, 248, 0.35);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.16);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.16);
  --color-danger: #f43f5e;
  --color-danger-bg: rgba(244, 63, 94, 0.16);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.4);

  --shadow-sheet: 0 -15px 50px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 10px 40px -10px rgba(56, 189, 248, 0.25);
}

body, .app-viewport, .native-item-card, .kpi-native-card, .native-card, .bottom-nav, .app-header {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* BASE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #020617;
  color: var(--text-main);
}

body.mobile-app {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.25) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.9) 0px, transparent 100%);
  background-attachment: fixed;
}

/* RESPONSIVE LAYOUT ENGINE (Mobile, Tablet, Desktop) */
.app-viewport {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* TOP PWA BANNER */
.pwa-banner {
  background: var(--color-primary-gradient);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 101;
}

.btn-pwa-install {
  background: white;
  color: #0f172a;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
}

/* APP HEADER (DYNAMIC ISLAND / STATUS BAR) */
.app-header {
  height: 64px;
  padding-top: env(safe-area-inset-top);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: var(--bg-header);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-logo-badge {
  width: 40px;
  height: 40px;
  background: var(--color-primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-glow);
}

.app-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-pill:active {
  transform: scale(0.92);
}

.icon-btn-native {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.icon-btn-native:active {
  transform: scale(0.9);
}

/* APP MAIN CONTENT AREA */
.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.2rem;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* Custom smooth scrollbar inside app */
.app-content::-webkit-scrollbar {
  width: 5px;
}
.app-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mobile-tab {
  display: none;
  animation: nativeTabSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-tab.active {
  display: block;
}

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

/* NATIVE SCANNER CARD & CAMERA RETICLE */
.native-scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.scanner-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 270px;
  background: #020617;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#interactive-scanner {
  width: 100%;
  height: 100%;
}

#interactive-scanner video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Reticle corner brackets HUD */
.scanner-reticle {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 5;
}

.scanner-reticle .corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 6px var(--color-primary));
}

.corner.top-left { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; }
.corner.top-right { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; }
.corner.bottom-left { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; }
.corner.bottom-right { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; }

.scanner-laser {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), #38bdf8, transparent);
  box-shadow: 0 0 16px var(--color-primary), 0 0 30px #38bdf8;
  animation: scanLaserMobile 2.2s infinite ease-in-out;
  display: none;
}

@keyframes scanLaserMobile {
  0% { top: 10%; }
  50% { top: 85%; }
  100% { top: 10%; }
}

.scanner-status-pill {
  margin-top: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 500;
}

.pulse-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.native-action-row {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

/* NATIVE BUTTONS */
.btn-native {
  width: 100%;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-native:active {
  transform: scale(0.95);
}

.btn-primary-native {
  background: var(--color-primary-gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary-native {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-success-native {
  background: linear-gradient(135deg, var(--color-success), #059669);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-danger-native {
  background: linear-gradient(135deg, var(--color-danger), #dc2626);
  color: white;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* CARDS & INPUTS */
.native-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  backdrop-filter: blur(12px);
}

.margin-top { margin-top: 1.1rem; }

.card-header-compact {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-native-group {
  display: flex;
  gap: 0.5rem;
}

.input-native {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-native:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

.input-native.readonly {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  font-weight: 800;
}

.quick-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  align-items: center;
}

.chip-demo {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}

.chip-demo:active {
  transform: scale(0.92);
  background: var(--color-primary);
  color: white;
}

/* NATIVE KPI GRID */
.native-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.kpi-native-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.kpi-native-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kpi-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.kpi-badge-icon.primary { background: rgba(6, 182, 212, 0.18); }
.kpi-badge-icon.danger { background: var(--color-danger-bg); }
.kpi-badge-icon.warning { background: var(--color-warning-bg); }
.kpi-badge-icon.success { background: var(--color-success-bg); }

.kpi-num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 600;
}

.color-danger { color: var(--color-danger); }
.color-warning { color: var(--color-warning); }
.color-success { color: var(--color-success); }

/* NATIVE PRODUCT CARDS LIST */
.native-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.search-bar-native {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 0.95rem;
  gap: 0.5rem;
}

.search-input-native {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.7rem 0;
  font-size: 0.9rem;
  outline: none;
}

.btn-icon-native-accent {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-gradient);
  border: none;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s ease;
}

.btn-icon-native-accent:active {
  transform: scale(0.9);
}

.filter-chips-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}

.filter-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.native-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.native-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  gap: 0.95rem;
  align-items: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.native-item-card:active {
  transform: scale(0.97);
}

.item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.item-title {
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.chip-expired { background: var(--color-danger-bg); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.chip-warning { background: var(--color-warning-bg); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.3); }
.chip-ok { background: var(--color-success-bg); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-small-native {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-small-native:active {
  transform: scale(0.92);
}

/* BOTTOM NAVIGATION BAR (DOCK FLOATING) */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(70px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab-btn:active {
  transform: scale(0.88);
}

.tab-icon {
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tab-label {
  font-size: 0.72rem;
  font-weight: 700;
}

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

.nav-tab-btn.active .tab-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px var(--color-primary));
}

/* NATIVE BOTTOM SHEET MODALS */
.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-card {
  width: 100%;
  max-height: 88%;
  background: #0f172a;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.35rem 2.2rem 1.35rem;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bottom-sheet-backdrop.active .bottom-sheet-card {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  background: var(--text-dim);
  border-radius: var(--radius-full);
  margin: 0 auto 0.95rem auto;
  opacity: 0.7;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.sheet-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.sheet-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-group-native label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.quick-pills-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.quick-pill {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.quick-pill:active {
  background: var(--color-primary);
  color: white;
}

.sheet-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.6rem 0;
}

.sheet-subtitle {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-primary);
}

.sheet-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.product-native-summary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  gap: 0.95rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.summary-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.summary-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.summary-code {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: monospace;
}

.native-photo-box {
  width: 100%;
  height: 125px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

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

/* SETTINGS ITEMS */
.native-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.settings-item-btn {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}

.settings-item-btn:active {
  transform: scale(0.97);
}

.item-icon {
  font-size: 1.45rem;
}

.item-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.item-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.item-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.danger-item strong {
  color: var(--color-danger);
}

.native-info-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.native-info-box h4 {
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* Login Modal & Alert Styles */
.login-card-sheet {
  max-width: 420px;
  margin: auto;
}

.alert-native {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS FOR TABLET & DESKTOP SCREENS
   ========================================================================== */

/* TABLET LAYOUT BREAKPOINT (>= 768px) */
@media (min-width: 768px) {
  body.mobile-app {
    padding: 1.25rem;
    align-items: center;
    justify-content: center;
  }

  .app-viewport {
    max-width: 1200px;
    height: calc(100vh - 2.5rem);
    max-height: 940px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .app-header {
    height: 72px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .app-content {
    padding: 1.75rem;
    padding-bottom: 100px;
  }

  /* Scanner Tab Grid Layout */
  #tab-scanner.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .native-scanner-card {
    height: 100%;
  }

  .scanner-frame-wrapper {
    height: 380px;
  }

  /* Dashboard KPI Grid & Radar */
  .kpi-native-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }

  #urgency-radar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
  }

  /* Inventory Product Cards Grid */
  #inventory-native-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.1rem;
  }

  /* Settings Page Group */
  .native-settings-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Bottom Floating Dock Navigation */
  .bottom-nav {
    max-width: 560px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
    height: 64px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    padding-bottom: 0;
  }

  /* Modals & Dialogs Centered */
  .bottom-sheet-card {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 28px !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  }
}

/* DESKTOP WIDESCREEN BREAKPOINT (>= 1280px) */
@media (min-width: 1280px) {
  .app-viewport {
    max-width: 1440px;
    height: calc(100vh - 3rem);
  }

  #inventory-native-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Dashboard Chart Grid & Printable Tag Styles */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .dashboard-charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tag-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tag-print-card {
  background: white;
  color: #0f172a;
  border: 2px dashed #ef4444;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.tag-badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #tags-print-container, #tags-print-container * {
    visibility: visible;
  }
  #tags-print-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
