/* ==========================================================
   VapeVault ERP - Royal Gold & Obsidian Black Luxury Edition
   Signature Venetian Gold (#D4AF37) & Obsidian Deep Black
   ========================================================== */

:root {
  /* ROYAL GOLD BRAND SYSTEM */
  --gold-primary: #d4af37;
  --gold-hover: #e6c352;
  --gold-bright: #f5cb5c;
  --gold-dark: #b8860b;
  --gold-light: rgba(212, 175, 55, 0.14);
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-glow: 0 0 16px rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #f5cb5c 0%, #d4af37 50%, #aa771c 100%);
  --gold-btn-gradient: linear-gradient(135deg, #f5cb5c 0%, #d4af37 60%, #b8860b 100%);
  
  --odoo-purple: #121217;
  --odoo-purple-hover: #1b1b22;
  --odoo-purple-dark: #0a0a0d;
  --odoo-purple-light: rgba(212, 175, 55, 0.14);
  
  --odoo-teal: #d4af37;
  --odoo-teal-hover: #e6c352;
  --odoo-teal-active: #b8860b;
  --odoo-teal-light: rgba(212, 175, 55, 0.18);
  
  --odoo-orange: #f59e0b;
  --odoo-red: #ef4444;
  --odoo-green: #10b981;
  --odoo-blue: #38bdf8;

  /* OBSIDIAN BLACK & GOLD CANVAS (DEFAULT) */
  --bg-body: #09090c;
  --bg-navbar: #0e0e13;
  --bg-control-panel: #131319;
  --bg-card: #16161f;
  --bg-card-subtle: #1b1b26;
  --bg-input: #101015;
  --bg-hover: #222230;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-navbar: #f5cb5c;
  
  --border: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-focus: var(--gold-primary);
  
  --primary: var(--gold-primary);
  --primary-hover: var(--gold-hover);
  --secondary: #272733;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(212, 175, 55, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(212, 175, 55, 0.18);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* DEEP OBSIDIAN NIGHT MODE */
[data-theme="dark"] {
  --bg-body: #060608;
  --bg-navbar: #0a0a0e;
  --bg-control-panel: #0f0f14;
  --bg-card: #14141c;
  --bg-card-subtle: #181822;
  --bg-input: #0b0b0f;
  --bg-hover: #1e1e2b;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-light: #e2e8f0;
  --text-navbar: #f5cb5c;
  
  --border: rgba(212, 175, 55, 0.2);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-focus: #f5cb5c;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.2);
}

/* ROYAL GOLD & OBSIDIAN BLACK PALETTE (APPLIED UNIVERSALLY) */
[data-theme="light"], [data-theme="dark"], :root {
  --bg-body: #08080a;
  --bg-navbar: #0e0e13;
  --bg-control-panel: #121217;
  --bg-card: #14141c;
  --bg-card-subtle: #191923;
  --bg-input: #0b0b0f;
  --bg-hover: #1e1e2b;
  
  --text-main: #f1eee7;
  --text-muted: #948f86;
  --text-light: #cbd5e1;
  --text-navbar: #f5cb5c;
  
  --border: rgba(212, 175, 55, 0.22);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: #f5cb5c;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.18);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(212, 175, 55, 0.15);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================
   0. FULLSCREEN LOGIN SCREEN & AUTH CARD (VAPZ ADMIN PORTAL)
   ========================================================== */
.login-screen-wrapper {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(800px 500px at 50% 0%, rgba(220, 174, 69, 0.18), transparent 70%), #08080a;
  backdrop-filter: blur(10px);
  z-index: 9999;
  font-family: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-y: auto;
}

.login-card {
  width: min(420px, 100%);
  padding: 38px 32px 30px;
  border-radius: 24px;
  background: #121216;
  border: 1px solid rgba(220, 174, 69, 0.25);
  text-align: center;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 50px -15px rgba(220, 174, 69, 0.22);
  position: relative;
}

.login-card .vapz-login-logo {
  width: 155px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(220, 174, 69, 0.32));
}

.login-card h1 {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1eee7;
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.login-card p {
  color: #948f86;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.login-card .vapz-field {
  text-align: left;
  margin-bottom: 16px;
}

.login-card label {
  display: block;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbc6bc;
  margin-bottom: 6px;
}

.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #f1eee7;
  outline: 0;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.login-card input:focus {
  border-color: #dcae45;
  box-shadow: 0 0 0 3px rgba(220, 174, 69, 0.15);
}

.login-card .btn-gold {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: 'Oxanium', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(135deg, #fbe6a2 0%, #e8bd52 35%, #c8922b 70%, #f3d27a 100%);
  color: #140e02;
  box-shadow: 0 8px 22px -10px rgba(220, 174, 69, 0.6);
  transition: all 0.2s ease;
  margin-top: 8px;
  text-align: center;
}

.login-card .btn-gold:hover {
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(220, 174, 69, 0.75);
}

.login-card .btn-gold:active {
  transform: translateY(0);
}

.login-card .back-link {
  display: inline-block;
  margin-top: 18px;
  color: #948f86;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.login-card .back-link:hover {
  color: #f6d77e;
}

.login-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb3b3;
  font-weight: 600;
  text-align: left;
}

/* ==========================================================
   1. ODOO APP NAVBAR (HEADER)
   ========================================================== */
header.app-header {
  background: var(--bg-navbar);
  color: var(--text-navbar);
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Odoo 9-dots App Launcher */
.odoo-app-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #f5cb5c;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.odoo-app-launcher:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #f5cb5c;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

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

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #f5cb5c;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.brand-text span {
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Odoo Horizontal App Navigation */
.nav-tabs {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
  margin: 0 6px;
  flex: 1;
  min-width: 0;
}
.nav-tabs::-webkit-scrollbar {
  height: 4px;
}
.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 600;
  padding: 0 8px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-tab-btn:hover {
  color: #f5cb5c;
  background: rgba(212, 175, 55, 0.12);
}

.nav-tab-btn.active {
  color: #f5cb5c;
  background: rgba(212, 175, 55, 0.18);
  font-weight: 800;
}

.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f5cb5c);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -1px 8px rgba(212, 175, 55, 0.7);
}

/* Prominent Settings Tab Highlight */
.nav-tab-btn.nav-tab-settings,
.nav-tab-btn[data-tab="settings"] {
  background: rgba(254, 240, 138, 0.15);
  border: 1px solid rgba(254, 240, 138, 0.35);
  border-radius: 6px;
  height: 38px;
  margin: 0 4px;
  color: #fef08a !important;
  font-weight: 700;
}
.nav-tab-btn.nav-tab-settings:hover,
.nav-tab-btn[data-tab="settings"]:hover {
  background: rgba(254, 240, 138, 0.25);
  color: #ffffff !important;
}
.nav-tab-btn.nav-tab-settings.active,
.nav-tab-btn[data-tab="settings"].active {
  background: rgba(254, 240, 138, 0.35);
  color: #ffffff !important;
}

/* Odoo App Launcher Dropdown Grid */
.odoo-apps-dropdown {
  position: absolute;
  top: 54px;
  left: 12px;
  background: var(--bg-card, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 14px;
  z-index: 1000;
  width: 320px;
}
.odoo-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.odoo-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  color: var(--text-main, #ffffff);
  cursor: pointer;
  transition: all 0.15s ease;
}
.odoo-app-item:hover {
  background: linear-gradient(135deg, #f5cb5c, #d4af37);
  color: #000000;
  transform: translateY(-2px);
}
.odoo-app-item .app-icon {
  font-size: 1.4rem;
}
.odoo-app-item .app-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}
.odoo-app-item.active-settings-app {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  color: #fef08a;
}

/* Header Right Area */
.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.branch-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-branch-dropdown {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.header-branch-dropdown option {
  background: #212529;
  color: #ffffff;
}

/* Odoo User Pill */
.odoo-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

.odoo-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--odoo-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.odoo-theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.odoo-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================
   2. ODOO CONTROL PANEL (BREADCRUMBS & ACTIONS BAR)
   ========================================================== */
.odoo-control-panel {
  background: var(--bg-control-panel);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 52px;
  z-index: 40;
}

.odoo-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.odoo-breadcrumb-root {
  color: var(--text-muted);
  font-weight: 500;
}
.odoo-breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.odoo-breadcrumb-current {
  color: var(--text-main);
  font-weight: 800;
}

.odoo-control-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Odoo View Switcher Buttons (Kanban / List) */
.odoo-view-switchers {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.odoo-view-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.odoo-view-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.odoo-view-btn.active {
  background: rgba(212, 175, 55, 0.2);
  color: #f5cb5c;
  font-weight: 800;
}
[data-theme="dark"] .odoo-view-btn.active {
  background: rgba(212, 175, 55, 0.25);
  color: #f5cb5c;
}

/* Odoo Facet Search Bar */
.odoo-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  gap: 8px;
  min-width: 260px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.odoo-search-box:focus-within {
  border-color: var(--odoo-teal);
  box-shadow: 0 0 0 3px var(--odoo-teal-light);
}
.odoo-search-input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  width: 100%;
}

/* ==========================================================
   3. ODOO BUTTON SYSTEM
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  text-decoration: none;
}

.btn-primary, .btn-odoo-primary {
  background: linear-gradient(135deg, #f5cb5c 0%, #d4af37 60%, #b8860b 100%);
  color: #09090b !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover, .btn-odoo-primary:hover {
  background: linear-gradient(135deg, #ffe082 0%, #e5c158 60%, #c69512 100%);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active, .btn-odoo-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(212, 175, 55, 0.4);
}

.btn-secondary, .btn-odoo-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-odoo-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1eb956;
  border-color: #1eb956;
}

.btn-success {
  background: var(--odoo-green);
  color: #ffffff;
  border-color: var(--odoo-green);
}
.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: var(--odoo-red);
  color: #ffffff;
  border-color: var(--odoo-red);
}
.btn-danger:hover {
  background: #c82333;
}

.btn-restock {
  background: linear-gradient(135deg, #f5cb5c 0%, #d4af37 60%, #b8860b 100%);
  color: #09090b;
  border-color: rgba(212, 175, 55, 0.5);
  font-weight: 800;
}
.btn-restock:hover {
  background: linear-gradient(135deg, #ffe082 0%, #e5c158 60%, #c69512 100%);
  color: #000000;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 4px;
}

/* ==========================================================
   4. MAIN WORKSPACE & CARDS
   ========================================================== */
main.app-main {
  flex: 1;
  padding: 20px 24px;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

/* Odoo Form Inputs & Controls */
.search-box, input[type="text"], input[type="number"], input[type="password"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 10px;
}

.search-box:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--odoo-teal);
  box-shadow: 0 0 0 3px var(--odoo-teal-light);
}

/* ==========================================================
   5. ODOO POINT OF SALE (POS) & 2-COLUMN LAYOUT
   ========================================================== */
.pos-grid, .pos-layout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1080px) {
  .pos-grid, .pos-layout-container {
    grid-template-columns: 1fr;
  }
}

/* Category Filter Pills */
.pos-categories, .category-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.cat-btn:hover {
  border-color: var(--odoo-teal);
  background: var(--bg-hover);
}
.cat-btn.active {
  background: var(--odoo-teal);
  color: #ffffff;
  border-color: var(--odoo-teal);
}

/* POS Products Tiles Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.prod-card:hover {
  transform: translateY(-2px);
  border-color: var(--odoo-teal);
  box-shadow: var(--shadow-md);
}

.pos-tile-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  margin-bottom: 8px;
}

.prod-brand {
  font-size: 0.72rem;
  font-weight: 800;
  color: #d4af37;
  text-transform: uppercase;
  margin-bottom: 2px;
}
[data-theme="dark"] .prod-brand {
  color: #f5cb5c;
}

.prod-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.prod-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.prod-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.prod-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--odoo-teal);
}

.prod-stock {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.prod-stock.healthy {
  background: rgba(40, 167, 69, 0.15);
  color: var(--odoo-green);
}
.prod-stock.low {
  background: rgba(245, 158, 11, 0.15);
  color: var(--odoo-orange);
}
.prod-stock.empty {
  background: rgba(220, 53, 69, 0.15);
  color: var(--odoo-red);
}

/* Interactive Catalog Mode Inside POS */
.pos-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.pos-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pos-catalog-card:hover {
  transform: translateY(-2px);
  border-color: var(--odoo-teal);
  box-shadow: var(--shadow-md);
}
.pos-catalog-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.pos-catalog-flavor {
  background: rgba(212, 175, 55, 0.14);
  color: #f5cb5c;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}
[data-theme="dark"] .pos-catalog-flavor {
  color: #f5cb5c;
}
.pos-catalog-actions {
  margin-top: 8px;
}
.pos-catalog-action-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* POS Cart Sidebar & Ticket Panel */
.cart-panel, .odoo-pos-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.cart-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #181822 0%, #0d0d12 100%);
  border-bottom: 2px solid var(--gold-primary);
  color: #f5cb5c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-list, .odoo-ticket-items {
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border);
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.2;
}
.cart-item-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.qty-btn:hover {
  background: var(--bg-hover);
  border-color: var(--odoo-teal);
  color: var(--odoo-teal);
}

.cart-footer {
  padding: 14px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.total-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}
.total-amount {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--odoo-teal);
}

/* Odoo POS Keypad (Numpad) */
.odoo-pos-numpad {
  padding: 12px;
  background: var(--bg-card);
}

.odoo-numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.odoo-pad-btn {
  height: 46px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  user-select: none;
}
.odoo-pad-btn:hover {
  background: var(--bg-hover);
  border-color: #adb5bd;
}
.odoo-pad-btn:active {
  transform: scale(0.96);
}

.odoo-pad-btn.mode-btn {
  background: rgba(212, 175, 55, 0.12);
  color: #f5cb5c;
  font-size: 0.82rem;
  font-weight: 800;
}
[data-theme="dark"] .odoo-pad-btn.mode-btn {
  color: #f5cb5c;
}
.odoo-pad-btn.mode-btn.active {
  background: linear-gradient(135deg, #f5cb5c, #d4af37);
  color: #000000;
}

/* Fast Cash Chips */
.odoo-fast-cash-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.odoo-fast-cash-chip {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--odoo-teal);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.odoo-fast-cash-chip:hover {
  background: var(--odoo-teal-light);
  border-color: var(--odoo-teal);
}

/* Big Odoo Validate / Payment Button */
.odoo-pay-btn {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f5cb5c 0%, #d4af37 60%, #b8860b 100%);
  color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
  transition: all 0.15s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.odoo-pay-btn:hover {
  background: linear-gradient(135deg, #ffe082 0%, #e5c158 60%, #c69512 100%);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.65);
  transform: translateY(-1px);
}

/* ==========================================================
   6. DIGITAL CATALOG TAB & CARDS
   ========================================================== */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.catalog-card:hover {
  transform: translateY(-2px);
  border-color: var(--odoo-teal);
  box-shadow: var(--shadow-md);
}

.catalog-card-img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.catalog-brand {
  font-size: 0.74rem;
  font-weight: 800;
  color: #d4af37;
  text-transform: uppercase;
}
[data-theme="dark"] .catalog-brand {
  color: #f5cb5c;
}

.catalog-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.catalog-specs-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.catalog-spec-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.catalog-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.catalog-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--odoo-teal);
}

.catalog-floating-cart {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-navbar);
  border: 2px solid var(--odoo-teal);
  box-shadow: var(--shadow-lg);
  border-radius: 30px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 99;
  color: #ffffff;
}

.prod-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.14);
  color: #f5cb5c;
}
[data-theme="dark"] .prod-tag {
  color: #f5cb5c;
}

/* ==========================================================
   7. KPI METRICS & INVENTORY / PRODUCTS TAB
   ========================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-purple { border-top: 3px solid var(--gold-primary); }
.kpi-emerald { border-top: 3px solid var(--odoo-green); }
.kpi-amber { border-top: 3px solid var(--warning); }
.kpi-rose { border-top: 3px solid var(--danger); }
.kpi-cyan { border-top: 3px solid var(--odoo-teal); }

.kpi-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.tab-subnav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.tab-subnav-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.tab-subnav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.tab-subnav-btn.active {
  background: var(--gold-light);
  color: #f5cb5c;
  border-bottom: 2px solid var(--gold-primary);
}
[data-theme="dark"] .tab-subnav-btn.active {
  background: rgba(212, 175, 55, 0.22);
  color: #f5cb5c;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.prod-table-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.stock-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.stock-badge.in-stock {
  background: rgba(40, 167, 69, 0.15);
  color: var(--odoo-green);
}
.stock-badge.low-stock {
  background: rgba(245, 158, 11, 0.15);
  color: var(--odoo-orange);
}
.stock-badge.out-of-stock {
  background: rgba(220, 53, 69, 0.15);
  color: var(--odoo-red);
}

/* ==========================================================
   8. ODOO TABLES & DATA LISTS
   ========================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}

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

.data-table th {
  background: rgba(212, 175, 55, 0.08);
  color: #f5cb5c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.25);
}

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

.data-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

/* ==========================================================
   9. MODALS & POPUPS
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.15);
  padding: 24px;
}

/* ==========================================================
   10. SPECIAL ENTERPRISE WIDGETS & BANNERS
   ========================================================== */
.low-stock-banner {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
[data-theme="dark"] .low-stock-banner {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.loyalty-widget {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.barcode-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  background: #ffffff;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  max-height: 380px;
  overflow-y: auto;
}

.barcode-sticker {
  background: #ffffff;
  color: #111111;
  border: 1px dashed #999;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  font-family: var(--font-sans);
}
.barcode-visual-bars {
  height: 32px;
  background: repeating-linear-gradient(90deg, #111 0, #111 2px, #fff 2px, #fff 4px, #111 4px, #111 5px, #fff 5px, #fff 8px);
  margin: 4px 0 2px 0;
}

/* ==========================================================
   11. REPORTS MODULE STYLING
   ========================================================== */
.reports-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.reports-subnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.reports-subnav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.reports-subnav-btn:hover {
  border-color: var(--odoo-teal);
  color: var(--text-main);
  background: var(--bg-hover);
}
.reports-subnav-btn.active {
  background: var(--odoo-teal);
  color: #ffffff;
  border-color: var(--odoo-teal);
}

.progress-bar-wrap {
  background: var(--bg-card-subtle);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.pnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.pnl-table th {
  background: var(--bg-card-subtle);
  padding: 10px 14px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pnl-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}
.pnl-row-bold {
  font-weight: 800;
  background: var(--bg-card-subtle);
}
.pnl-net-profit {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--odoo-green);
}
.pnl-net-loss {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--odoo-red);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #212529;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Logo Uploader & Preview in Settings */
.logo-upload-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-input, #1e1b2e);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  margin-bottom: 14px;
}
.logo-preview-box {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed var(--border, rgba(255, 255, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.logo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.logo-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================
   12. PRINT RULES & REPORT EXPORT
   ========================================================== */
@media print {
  header.app-header, 
  .odoo-control-panel, 
  .nav-tabs, 
  .reports-toolbar, 
  .reports-subnav,
  .btn, 
  .modal-overlay,
  #db-status-banner {
    display: none !important;
  }
  
  body, main.app-main {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px;
  }
  
  .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }

  .table-wrap {
    border: 1px solid #ddd !important;
    overflow: visible !important;
  }

  .data-table th, .data-table td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
  }
}
