/*
 * ONZ OPS — Multi-Branch Restaurant Control System
 * Copyright (c) 2026 TwoTwo Labs. All Rights Reserved.
 *
 * PROPRIETARY AND CONFIDENTIAL. This source code is owned exclusively by
 * TwoTwo Labs. Unauthorized copying, modification, distribution, or use
 * of this file, via any medium, is strictly prohibited. TwoTwo Labs reserves
 * the right to deny service if any contractual obligation is not honoured.
 *
 * Licensed under the TwoTwo Labs Proprietary Software License.
 * See LICENSE file in the project root for full terms.
 */

/* ==========================================================================
   ONZ OPS DESIGN SYSTEM & CORE GLOBAL STYLES (VANILLA CSS)
   ========================================================================== */

/* 1. Theme Variables & Tokens */
:root {
  /* ONZ Ops Design System — Fenco-inspired professional hotel ops theme */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Core Palette */
  --sidebar-bg: #1a1a2e;          /* deep navy */
  --sidebar-active: #6c63ff;      /* indigo accent */
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-text: rgba(255, 255, 255, 0.7);
  --sidebar-text-active: #ffffff;

  --bg-primary: #f0f2f5;          /* light grey page bg */
  --bg-secondary: #f9fafb;        /* slightly lighter */
  --bg-tertiary: #ffffff;         /* card surfaces */
  --bg-glass: #ffffff;
  --border-glass: #e5e7eb;        /* light grey borders */
  --border-glass-hover: #d1d5db;
  
  --color-text-main: #1a1a2e;    /* dark navy for headings */
  --color-text-muted: #6b7280;   /* grey-500 */
  --color-text-dimmed: #9ca3af;  /* grey-400 */
  
  --primary: #6c63ff;             /* indigo */
  --primary-hover: #5a52e0;
  --primary-glow: rgba(108, 99, 255, 0.15);
  
  --accent: #3b82f6;              /* blue-500 for charts */
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  
  --success: #10b981;             /* emerald-500 */
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --warning: #f4a261;             /* warm orange */
  --warning-glow: rgba(244, 162, 97, 0.15);
  
  --danger: #ef4444;              /* red-500 */
  --danger-glow: rgba(239, 68, 68, 0.15);
  
  --chart-lavender: #a78bfa;      /* violet-400 for secondary series */
  
  /* Layout tokens */
  --sidebar-width: 240px;
  --header-height: 64px;
  --terminal-height: 180px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-neon: 0 1px 3px rgba(0, 0, 0, 0.08);
  --transition-smooth: all 0.2s ease;
}

/* 2. Resets and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .brand-title, .kpi-value, .section-header h1 {
  font-family: var(--font-family-heading);
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass-hover);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 3. Sandbox Header Controls */
.sandbox-bar {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

.logo-orb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-family-heading);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: var(--color-text-main);
  font-family: var(--font-family-heading);
}

.accent-text {
  color: var(--primary);
}

.controls-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sandbox-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sandbox-select:focus, .sandbox-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.network-status {
  padding-left: 12px;
  border-left: 1px solid var(--border-glass);
}

.status-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.btn-network {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.btn-network .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-network.online .status-dot {
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
}

.btn-network.offline {
  border-color: var(--danger);
}

.btn-network.offline .status-dot {
  background-color: var(--danger);
  box-shadow: 0 0 10px var(--danger-glow);
}

/* 4. Core Layout Architecture */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height) - var(--terminal-height));
  position: relative;
  overflow: hidden;
}

/* Sidebar Styling — Dark Navy ONZ Ops */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  z-index: 90;
  flex-shrink: 0;
}

/* Sidebar Logo Area */
.sidebar-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sidebar-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-family-heading);
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-app-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.sidebar-app-version {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  width: 100%;
}

.nav-link .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.nav-link.active::before {
  display: none;
}

.nav-link.active .icon {
  fill: #ffffff;
}

.sidebar-footer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-pill-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill-branch {
  font-size: 0.75rem;
  color: var(--sidebar-active);
  font-weight: 600;
  text-transform: uppercase;
}

/* Content Area */
.content-pane {
  flex: 1;
  background: var(--bg-primary);
  padding: 24px 28px;
  overflow-y: auto;
  position: relative;
}

.tab-wrapper {
  position: relative;
  height: 100%;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

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

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

/* Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* 5. Clean Card System — ONZ Ops */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
}

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

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.5;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}

.kpi-change {
  font-size: 0.75rem;
  color: var(--color-text-dimmed);
  font-weight: 500;
}

.kpi-change.positive { color: var(--success); }
.kpi-change.negative { color: var(--danger); }
.kpi-change.warning { color: var(--warning); }

/* Dashboard Grid Layouts */
.dashboard-grids {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.grid-span-2 {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .dashboard-grids {
    grid-template-columns: 1fr;
  }
  .grid-span-2 {
    grid-column: span 1;
  }
}

/* 6. Buttons & User Interaction */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #000;
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-glass-hover);
  color: var(--color-text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-text-main);
}

.btn-warning {
  background: var(--warning);
  color: #000;
}
.btn-warning:hover {
  box-shadow: 0 0 12px var(--warning-glow);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  box-shadow: 0 0 12px var(--danger-glow);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* 7. Beautiful CSS Graphs */
.chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
}

.css-chart-bar-group {
  display: flex;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  gap: 16px;
}

.css-chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.css-chart-bar-fill {
  width: 100%;
  max-width: 48px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  animation: growUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-height: 4px;
}

.css-chart-column:nth-child(even) .css-chart-bar-fill {
  background: linear-gradient(to top, var(--primary), #9088ff);
  box-shadow: 0 0 8px var(--primary-glow);
}

.css-chart-column:nth-child(odd) .css-chart-bar-fill {
  background: linear-gradient(to top, var(--accent), #60a5fa);
  box-shadow: 0 0 8px var(--accent-glow);
}

.css-chart-value {
  position: absolute;
  top: -24px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-main);
  width: 100%;
  text-align: center;
}

.css-chart-label {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@keyframes growUp {
  from { height: 0; }
}

/* 8. Forms & Inputs Control */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  padding: 12px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .currency {
  position: absolute;
  left: 12px;
  color: var(--color-text-dimmed);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-wrapper input {
  padding-left: 28px;
}

.input-wrapper.primary-input input {
  border-color: var(--accent-glow);
}
.input-wrapper.primary-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.text-large { font-size: 1.4rem; }
.font-bold { font-weight: 700; }
.helper-text {
  font-size: 0.72rem;
  color: var(--color-text-dimmed);
  margin-top: 4px;
}

/* Form Actions alignment */
.border-top {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.text-right { text-align: right; }
.spacing-top { margin-top: 20px; }
.spacing-bottom { margin-bottom: 24px; }

/* 9. Tables styling */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-filters {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-glass);
  align-items: center;
}

.search-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  padding: 8px 12px;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  flex: 1;
}

.search-input:focus { border-color: var(--primary); }

.filter-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  padding: 8px 12px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.select-sm {
  padding: 4px 8px;
  font-size: 0.78rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.max-height-audit {
  max-height: 400px;
  overflow-y: auto;
}

.select-scroller {
  max-height: 230px;
  overflow-y: auto;
}

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

.data-table th, .data-table td {
  padding: 14px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-glass);
}

.data-table th {
  background: rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
}

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

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.font-mono-cells td {
  font-family: monospace;
  font-size: 0.8rem;
}

/* Badges styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Stock alert dashboard visual widgets */
.stock-alert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.stock-alert-name { font-weight: 600; }
.stock-alert-qty {
  color: var(--danger);
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--color-text-dimmed);
  font-size: 0.85rem;
  padding: 20px 0;
}

/* 10. Financial sales locked screen overlay & variance colors */
.locked-overlay {
  position: relative;
}

.locked-overlay::before {
  content: '🔒 Financial Records Locked';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warning);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--warning);
}

.variance-alert-high {
  color: var(--danger);
  font-weight: 700;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
}

.variance-ok {
  color: var(--success);
  font-weight: 600;
}

/* Denomination grid */
.denomination-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

.denom-row {
  display: grid;
  grid-template-columns: 80px 30px 1fr 30px 1.2fr;
  align-items: center;
  gap: 8px;
}

.denom-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.denom-multiply {
  color: var(--color-text-dimmed);
  text-align: center;
  font-size: 0.8rem;
}

.denom-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
}

.denom-input:focus { border-color: var(--accent); }

.denom-equals {
  color: var(--color-text-dimmed);
  text-align: center;
  font-size: 0.8rem;
}

.denom-subtotal {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  color: var(--color-text-main);
}

.denom-sum {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 11. Staff Attendance and Salary Advances widgets */
.attendance-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 8px;
}

.attendance-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.attendance-emp-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attendance-emp-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.attendance-emp-role {
  font-size: 0.72rem;
  color: var(--color-text-dimmed);
  text-transform: uppercase;
}

.attendance-options {
  display: flex;
  gap: 6px;
}

.btn-att {
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-att:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-att.active-present {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: var(--success);
}

.btn-att.active-absent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-att.active-half {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border-color: var(--warning);
}

/* Admin Edit Request Cards */
.approvals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.approval-card {
  border-left: 4px solid var(--warning);
}

.approval-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.approval-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.approval-diff-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: monospace;
  font-size: 0.78rem;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diff-red { color: var(--danger); }
.diff-green { color: var(--success); }

.approval-reason {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.approval-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* 12. Local database console terminal */
.terminal-bar {
  height: var(--terminal-height);
  background: #06070a;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  z-index: 120;
  position: relative;
  transition: var(--transition-smooth);
}

.terminal-bar.collapsed {
  height: 40px !important;
}

.terminal-header {
  height: 40px;
  background: #0d0f14;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  user-select: none;
}

.terminal-header-title {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

.blinking {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-body {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a78bfa; /* subtle light violet console text */
  background: #050608;
}

.log-line {
  margin-bottom: 6px;
  word-break: break-all;
}

.log-line.system { color: #60a5fa; }
.log-line.success { color: var(--success); }
.log-line.warning { color: var(--warning); }
.log-line.error { color: var(--danger); }
.log-line.action { color: #f472b6; }

/* 13. Dialog Popups (Modal Elements) */
.glass-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--color-text-main);
  max-width: 500px;
  width: calc(100% - 32px);
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  outline: none;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.glass-dialog::backdrop {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.dialog-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-close-dialog {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-dialog:hover { color: #fff; }

.warning-alert-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--warning);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Helper utilities */
.hidden { display: none !important; }
.badge-warning.hidden { display: none !important; }

/* 14. Responsive Layout adjustments */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    height: auto;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .sandbox-bar {
    flex-direction: column;
    height: auto;
    padding: 12px;
    gap: 12px;
  }
  
  .controls-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }
  
  .control-item {
    justify-content: space-between;
  }
}

/* 15. Alert banner styles */
.alert-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.88rem;
  animation: slideDown 0.3s ease-out forwards;
}

.alert-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.date-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: monospace;
  font-weight: 600;
}

/* Receiving grids */
.receiving-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.receiving-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.rec-qty {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
}

.rec-meta {
  font-size: 0.72rem;
  color: var(--color-text-dimmed);
}

.rec-actions {
  display: flex;
  justify-content: flex-end;
}

.sales-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .sales-module-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
/* ==========================================================================
   ONZ OPS — SPLIT PANEL LOGIN SCREEN
   ========================================================================== */
#loginOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  transition: opacity 0.3s ease-out;
}

#loginOverlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

/* Hide bottom nav and helper orb when login screen is active */
#loginOverlay:not(.hidden) ~ .mobile-bottom-nav,
#loginOverlay:not(.hidden) ~ #helpOrb,
#loginOverlay:not(.hidden) ~ #helpMenu {
  display: none !important;
}

/* Split Layout Container */
.login-split-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Brand Panel */
.login-brand-panel {
  width: 45%;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Decorative concentric circles */
.login-brand-decor {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-brand-decor::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-brand-decor::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-brand-logo {
  margin-bottom: 8px;
}

.login-brand-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  font-family: var(--font-family-heading);
  letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-control {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.password-toggle:hover {
  color: #374151;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-top: -4px;
}

.remember-me-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  color: #6b7280 !important;
  margin-bottom: 0 !important;
}

.remember-me-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #6c63ff;
}

.forgot-password-link {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.forgot-password-link:hover {
  color: #5a52e0;
  text-decoration: underline;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin: 8px 0;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid #f3f4f6;
}

.login-divider:not(:empty)::before {
  margin-right: .5em;
}

.login-divider:not(:empty)::after {
  margin-left: .5em;
}

.login-brand-name {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

.login-brand-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.login-brand-version {
  position: absolute;
  bottom: 24px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* Right Form Panel */
.login-form-panel {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-welcome {
  font-family: var(--font-family-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  color: #374151;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-align: left;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.login-form .form-control {
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  color: #1a1a2e;
  border-radius: 8px !important;
  padding: 12px 14px;
  font-size: 0.95rem;
  height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-family);
}

.login-form .form-control:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
  outline: none;
}

.login-button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.login-button-group .btn-primary {
  background: #6c63ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
  transition: all 0.15s ease;
  letter-spacing: 0.2px;
}

.login-button-group .btn-primary:hover {
  background: #5a52e0;
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

.login-button-group .btn-primary:active {
  transform: scale(0.98);
}

.btn-google {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

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

.login-footer-text {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin: 0;
}

.demo-credentials-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-credentials-title {
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}

.demo-credentials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.demo-cred-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.demo-cred-item:hover {
  background: var(--primary-glow);
  color: #fff;
}

.demo-cred-role {
  font-weight: 600;
  color: var(--accent);
}

.login-error-message {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ==========================================================================
   GLOWING OFFLINE CONNECTION BANNER
   ========================================================================== */
.connection-banner {
  width: 100%;
  background: rgba(245, 158, 11, 0.18);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 24px;
  text-align: center;
  position: relative;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: bannerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.connection-banner.hidden {
  display: none !important;
}

.banner-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warning);
  letter-spacing: 0.4px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  background-color: var(--warning);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--warning);
  animation: bannerDotPulse 1.8s infinite ease-in-out;
}

@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bannerDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--warning); }
}

/* ==========================================================================
   OBSIDIAN SVG BI CHARTS GRAPHICS
   ========================================================================= */
.chart-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.chart-label-text {
  font-family: var(--font-family);
  font-size: 10px;
  fill: var(--color-text-dimmed);
}

.chart-title-text {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  fill: var(--color-text-main);
}

.chart-spline-path {
  fill: none;
  stroke: url(#splineGradient);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.chart-bar-element {
  fill: url(#barGradient);
  rx: 4px;
  ry: 4px;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.3));
}

.chart-bar-element:hover {
  opacity: 0.85;
}

.chart-data-node {
  fill: var(--accent);
  stroke: #0a0a0c;
  stroke-width: 2.5;
  r: 5;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chart-data-node:hover {
  transform: scale(1.4);
  fill: #fff;
}

/* ==========================================================================
   HELP ORB & GUIDED TUTORIAL OVERLAYS
   ========================================================================== */
.help-orb {
  position: fixed;
  bottom: 85px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(96,165,250,0.5);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-orb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(96,165,250,0.8);
}

.help-menu {
  position: fixed;
  bottom: 140px;
  right: 30px;
  width: 250px;
  background: rgba(15, 17, 26, 0.9);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: modalScaleUp 0.2s ease-out forwards;
}

.help-menu-item {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.help-menu-item:hover {
  background: rgba(96, 165, 250, 0.12);
  border-color: var(--primary);
  color: #fff;
}

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.tour-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(96,165,250,0.1);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tour-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.tour-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-dots {
  display: flex;
  gap: 8px;
}

.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-glass-hover);
  transition: var(--transition-smooth);
}

.tour-dot.active {
  width: 18px;
  border-radius: 4px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   HELP ACCORDION PANEL
   ========================================================================== */
.help-accordion {
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.01);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.help-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text-main);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.help-accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.help-accordion-body {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
}

.help-accordion.active {
  border-color: var(--border-glass-hover);
  background: rgba(255,255,255,0.02);
}

.help-accordion.active .help-accordion-body {
  padding: 0 18px 16px 18px;
  max-height: 200px;
}

.help-accordion.active .acc-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.acc-chevron {
  font-size: 0.65rem;
  color: var(--color-text-dimmed);
  transition: transform 0.2s ease;
}

/* ==========================================================================
   HOTEL THE NIYAZ PREMIUM DESIGN REBRAND LAYOUT
   ========================================================================== */

/* Dark floating sidebar matching the design system and reference */
.sidebar {
  width: var(--sidebar-width) !important;
  background: var(--sidebar-bg) !important;
  color: #ffffff !important;
  border-right: none !important;
  padding: 32px 18px !important;
  border-radius: var(--radius-lg) !important;
  margin: 20px 0 20px 20px !important;
  height: calc(100vh - 40px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.sidebar .nav-link {
  color: #8c8c9a !important;
  margin-bottom: 2px;
  font-weight: 500;
  border-radius: 16px !important;
  padding: 14px 18px !important;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

.sidebar .nav-link.active {
  background: var(--sidebar-active) !important; /* indigo */
  color: var(--sidebar-text-active) !important; /* white */
  font-weight: 700 !important;
}

.sidebar .nav-link.active::before {
  display: none !important; /* remove old vertical line indicator */
}

.sidebar .nav-link.active .icon {
  fill: var(--sidebar-text-active) !important;
  filter: none !important;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 20px !important;
  background: transparent !important;
  border: none !important;
}

.user-pill-name {
  color: #f4f4f5 !important;
  font-size: 0.9rem !important;
}

.user-pill-branch {
  color: var(--sidebar-active) !important; /* indigo accent */
  font-size: 0.8rem !important;
}

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

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #ffffff !important;
}

/* Dashboard root layout */
.dashboard-root-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1200px) {
  .dashboard-root-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-main-col {
  display: flex;
  flex-direction: column;
}

.greeting-bar {
  margin-bottom: 28px;
}

.greeting-bar h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

/* Premium Pastel Card System based on the example image */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  border-radius: 28px !important;
  padding: 32px 28px !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.02) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease !important;
}

.kpi-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 35px rgba(28, 25, 23, 0.05) !important;
}

/* Yellow Card (Daily Net Sales) */
.kpi-card:nth-child(1) {
  background: #fef08a !important; /* amber-200 */
  color: #713f12 !important;
}
.kpi-card:nth-child(1) .kpi-label { color: #854d0e !important; }
.kpi-card:nth-child(1) .kpi-value { color: #713f12 !important; }
.kpi-card:nth-child(1) .kpi-change { color: #a16207 !important; }
.kpi-card:nth-child(1)::before {
  content: '+';
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 80px;
  font-weight: 300;
  opacity: 0.12;
  font-family: sans-serif;
}

/* Pink Card (Petty Cash Expensed) */
.kpi-card:nth-child(2) {
  background: #fbcfe8 !important; /* pink-200 */
  color: #831843 !important;
}
.kpi-card:nth-child(2) .kpi-label { color: #9d174d !important; }
.kpi-card:nth-child(2) .kpi-value { color: #831843 !important; }
.kpi-card:nth-child(2) .kpi-change { color: #be185d !important; }
.kpi-card:nth-child(2)::before {
  content: '♥';
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 70px;
  opacity: 0.12;
}

/* Green Card (Low Stock Items) */
.kpi-card:nth-child(3) {
  background: #a7f3d0 !important; /* emerald-200 */
  color: #064e3b !important;
}
.kpi-card:nth-child(3) .kpi-label { color: #047857 !important; }
.kpi-card:nth-child(3) .kpi-value { color: #064e3b !important; }
.kpi-card:nth-child(3) .kpi-change { color: #065f46 !important; }
.kpi-card:nth-child(3)::before {
  content: '▲';
  position: absolute;
  right: 20px;
  top: 25px;
  font-size: 60px;
  opacity: 0.12;
}

/* Blue Card (Variance Discrepancies) */
.kpi-card:nth-child(4) {
  background: #bfdbfe !important; /* blue-200 */
  color: #1e3a8a !important;
}
.kpi-card:nth-child(4) .kpi-label { color: #1d4ed8 !important; }
.kpi-card:nth-child(4) .kpi-value { color: #1e3a8a !important; }
.kpi-card:nth-child(4) .kpi-change { color: #1e40af !important; }
.kpi-card:nth-child(4)::before {
  content: '★';
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 70px;
  opacity: 0.12;
}

/* Sidebar side column styling */
.dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Calendar Card styling */
.calendar-card {
  border-radius: 28px !important;
  padding: 24px !important;
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow-neon) !important;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.calendar-nav-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
  font-weight: bold;
}

.calendar-nav-btn:hover {
  color: var(--color-text-main);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dimmed);
  margin-bottom: 12px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.calendar-days div {
  padding: 6px 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.calendar-days div:hover:not(.empty):not(.current-active) {
  background: var(--bg-secondary);
}

.calendar-days .current-active {
  background: #fbcfe8 !important; /* light pink */
  color: #831843 !important; /* dark pink text */
  font-weight: 700;
}

.calendar-action-btn {
  width: 100%;
  border-radius: 14px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 10px !important;
}

/* Operations Timeline Card */
.timeline-card {
  border-radius: 28px !important;
  padding: 24px !important;
  background: var(--bg-tertiary) !important;
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header-clean h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 16px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-glass);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-glass-hover);
  border: 2px solid var(--bg-tertiary);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item.done::before {
  background: var(--success);
}

.timeline-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.timeline-item .time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dimmed);
}

.timeline-content {
  font-size: 0.85rem;
  background: var(--bg-secondary);
  padding: 10px 14px;
  border-radius: 14px;
}

.timeline-content strong {
  color: var(--color-text-main);
  font-weight: 600;
  display: block;
}

.timeline-content p {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* General Layout spacing rules */
.app-layout {
  padding: 20px 20px 20px 0 !important;
  gap: 20px !important;
  background: var(--bg-primary) !important;
  height: calc(100vh - var(--header-height)) !important;
}

.content-pane {
  background: var(--bg-primary) !important;
  padding: 12px 12px 0 0 !important;
}

.tab-wrapper {
  overflow-y: auto;
  height: 100%;
  padding-right: 8px;
}

/* Dynamic glass-cards updates for general layout elements */
.glass-card {
  border-radius: 28px !important;
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow-neon) !important;
}

/* Fix sandbox top bar to sit on cream background */
.sandbox-bar {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-glass) !important;
}

/* ==========================================================================
   MOBILE-ONLY RESPONSIVE DASHBOARD LAYOUT (Matches reference image)
   ========================================================================== */

/* Toggle view visibilities by screen width */
.mobile-dashboard {
  display: none;
}

@media (max-width: 600px) {
  .desktop-dashboard, 
  .dashboard-root-layout {
    display: none !important;
  }
  
  .mobile-dashboard {
    display: flex;
    flex-direction: column;
    padding-bottom: 100px; /* space for bottom nav */
    gap: 20px;
    background: #fbf9f3 !important; /* cream background */
    min-height: 100vh;
  }

  /* Remove page margin padding on mobile */
  .app-layout {
    padding: 0 !important;
    gap: 0 !important;
  }

  .content-pane {
    padding: 16px 16px 0 16px !important;
  }

  /* Hide sidebar on mobile - standard overlay can trigger if needed, but bottom nav handles routing */
  .sidebar {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: grid !important;
  }

  .terminal-bar {
    display: none !important;
  }
}

/* Mobile Header */
.mobile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-back-btn {
  background: transparent;
  border: 1px dashed var(--color-text-dimmed);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.mobile-back-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.mobile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.mobile-avatar .logo-orb {
  width: 100%;
  height: 100%;
}

/* Central Operational Score Section */
.mobile-score-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}

.score-wheel-container {
  width: 240px;
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-num {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #121216;
  line-height: 1;
}

.score-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Floating icons around the score wheel */
.wheel-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fbf9f3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.wheel-icon svg {
  width: 14px;
  height: 14px;
}

.ic-yellow { background: #fef08a; fill: #713f12; }
.ic-green { background: #a7f3d0; fill: #064e3b; }
.ic-pink { background: #fbcfe8; fill: #831843; }
.ic-blue { background: #bfdbfe; fill: #1e3a8a; }
.ic-gold { background: #fed7aa; fill: #7c2d12; }

/* Mobile Action Row */
.mobile-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.mobile-action-pill {
  background: #121216;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.mobile-action-pill:active {
  transform: scale(0.96);
}

.mobile-action-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  color: #121216;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.mobile-action-circle:active {
  transform: scale(0.92);
}

/* Niyaz AI Assistant Banner on mobile */
.mobile-assistant-banner {
  background: #fbcfe8; /* pink-200 */
  color: #831843;
  padding: 20px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.05);
}

.mobile-assistant-banner::before {
  content: '♥';
  position: absolute;
  right: 15px;
  bottom: -15px;
  font-size: 90px;
  opacity: 0.08;
}

.assistant-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.assistant-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #9d174d;
}

.mobile-assistant-banner p {
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.assistant-banner-btn {
  background: #121216;
  color: #ffffff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 2;
}

/* Mobile Outlets Progress Bars */
.mobile-outlets-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outlets-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.outlets-section-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.btn-outlets-filter {
  background: #121216;
  color: #ffffff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.outlet-performance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outlet-perf-item {
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outlet-perf-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
}

.outlet-indicator-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.outlet-perf-val {
  margin-left: auto;
  font-weight: 700;
}

.outlet-perf-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-glass);
  border-radius: 4px;
  overflow: hidden;
}

.outlet-perf-bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* Curved Sticky Bottom Navigation Bar — ONZ Ops Navy */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--sidebar-bg);
  display: none; /* hidden on desktop */
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 20px 20px 0 0;
  padding: 0 8px;
}

.bottom-nav-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  transition: color 0.15s ease;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item.active {
  color: var(--sidebar-active) !important;
}

/* Bottom Nav Raised Center + Button styling */
.bottom-nav-center-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bottom-nav-center-btn {
  position: absolute;
  top: -22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sidebar-active);
  border: 3px solid var(--sidebar-bg);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.45);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-center-btn span {
  line-height: 1;
}

.bottom-nav-center-btn:active {
  transform: scale(0.9) translateY(4px);
}

/* Mobile login responsive — stack vertically */
@media (max-width: 600px) {
  .login-split-layout {
    flex-direction: column;
  }
  .login-brand-panel {
    width: 100%;
    min-height: 220px;
    flex-shrink: 0;
  }
  .login-brand-name {
    font-size: 1.4rem;
  }
  .login-form-panel {
    padding: 24px 20px;
  }
  .login-card {
    gap: 20px;
  }
}

/* ==========================================================================
   FENCO FINANCE DASHBOARD STYLING FOR DESKTOP
   ========================================================================== */

/* Outer grid wrapper for desktop */
.fenco-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 10px 40px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Row: Greetings and Team Avatars */
.fenco-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.fenco-greetings h1 {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #121216;
  margin: 0 0 4px 0;
}

.fenco-user-name {
  color: #5c53ff; /* Fenco indigo/blue-violet */
}

.fenco-greetings p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.fenco-team-container {
  display: flex;
  align-items: center;
}

.fenco-team-avatars {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.fenco-team-avatars .avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-primary);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background: #a7f3d0;
  transition: transform 0.2s ease;
}

.fenco-team-avatars .avatar-circle:hover {
  transform: translateY(-4px) scale(1.05);
  z-index: 10;
}

/* Avatar backgrounds based on content */
.fenco-team-avatars .avatar-circle:nth-child(1) { background: #fed7aa; color: #7c2d12; } /* orange */
.fenco-team-avatars .avatar-circle:nth-child(2) { background: #bfdbfe; color: #1e3a8a; } /* blue */
.fenco-team-avatars .avatar-circle:nth-child(3) { background: #fbcfe8; color: #831843; } /* pink */
.fenco-team-avatars .avatar-circle:nth-child(4) { background: #a7f3d0; color: #064e3b; } /* green */
.fenco-team-avatars .avatar-circle:nth-child(5) { background: #fef08a; color: #713f12; } /* yellow */

.fenco-team-avatars .avatar-circle-more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-primary);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #6b7280;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fenco-team-avatars .avatar-circle-more:hover {
  background: #f9fafb;
}

/* Card rows */
.fenco-row-1, .fenco-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Base Card style */
.fenco-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
  border: 1.5px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
}

.fenco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.fenco-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: capitalize;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-menu-dots {
  color: #d1d5db;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
}

.card-menu-dots:hover {
  color: #9ca3af;
}

/* Card 1: Balance / Sales Statistics */
.stats-card {
  padding-bottom: 20px;
}

.stats-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #121216;
  margin: 4px 0 2px 0;
  letter-spacing: -1px;
}

.stats-card-title {
  color: #9ca3af;
}

.stats-card-subtitle {
  font-size: 0.78rem;
  color: #9ca3af;
}

.stats-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
}

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

.sparkline-svg {
  width: 90px;
  height: 32px;
}

.trend-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stats-mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.stats-mini-bar-chart .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 14px;
}

.stats-mini-bar-chart .bar-fill {
  width: 100%;
  background: #bfdbfe; /* light blue */
  border-radius: 4px;
  transition: height 0.5s ease;
  min-height: 4px;
}

.stats-mini-bar-chart .bar-col:nth-child(even) .bar-fill {
  background: #cbd5e1; /* slate */
}

.stats-mini-bar-chart .bar-col:last-child .bar-fill {
  background: #6c63ff; /* indigo active */
}

.stats-mini-bar-chart span {
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Card 2: Shift Cash Register */
.fenco-register-card {
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  border-radius: 24px;
  padding: 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.25);
  border: none;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
}

.fenco-register-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.35);
}

.register-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.register-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.register-amount-group {
  margin: 14px 0;
  z-index: 1;
}

.register-amount-group h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 0 0;
  letter-spacing: -1px;
}

.register-lbl {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}

.cc-bg-decor {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  right: -40px;
  bottom: -40px;
  pointer-events: none;
}

.cc-bg-decor::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.cc-bank-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
}

.cc-chip {
  width: 36px;
  height: 26px;
  background: #fbd38d;
  border-radius: 6px;
  position: relative;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cc-chip-line {
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  width: 100%;
}

.cc-number {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 4px;
  display: flex;
  gap: 14px;
  margin: 16px 0;
  z-index: 1;
  font-family: 'Courier New', Courier, monospace;
}

.cc-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}

.cc-lbl {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 2px;
}

.cc-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.cc-brand-logo {
  display: flex;
  position: relative;
  width: 44px;
  height: 28px;
}

.logo-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: absolute;
}

.logo-circle.red {
  background: #ef4444;
  left: 0;
}

.logo-circle.orange {
  background: #f97316;
  right: 0;
  opacity: 0.85;
}

/* Card 3: Operations Health / Analytics (circular progress) */
.health-card {
  align-items: stretch;
}

.health-legends {
  display: flex;
  gap: 16px;
  margin: 10px 0;
}

.legend-item {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-item .dot.purple { background: #6c63ff; }
.legend-item .dot.green { background: #10b981; }
.legend-item .dot.pink { background: #ec4899; }

.gauge-chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  margin-top: 10px;
}

.gauge-svg {
  width: 180px;
  height: 90px;
  position: absolute;
  bottom: 0;
}

.gauge-center-text {
  position: absolute;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #121216;
  line-height: 1;
}

.gauge-lbl {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Card 4: Last Transactions */
.transactions-card {
  grid-column: span 1;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.tx-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121216;
}

.tx-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tx-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tx-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #121216;
}

.tx-date {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
}

.tx-amount {
  font-size: 0.88rem;
  font-weight: 700;
  color: #10b981;
}

.tx-amount.negative {
  color: #ef4444;
}

/* Card 5: Financial Distribution */
.distribution-card {
  justify-content: flex-start;
  gap: 20px;
}

.distribution-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.dist-stat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.dist-stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dist-percent {
  font-size: 1.8rem;
  font-weight: 800;
  color: #121216;
  line-height: 1;
}

.dist-lbl {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.dist-bars-container {
  width: 100%;
  height: 14px;
  background: #f3f4f6;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
}

.dist-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
}

.dist-bar-fill.primary {
  background: #6c63ff; /* Indigo */
}

.dist-bar-fill.accent {
  background: #fed7aa; /* Orange/Peach */
}

/* Card 6: AI Assistant Dark Capsule */
.fenco-kitchen-control-card {
  background: #121216;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.fenco-kitchen-control-card:hover {
  transform: translateY(-3px);
}

.kitchen-card-left {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.kitchen-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.kitchen-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.kitchen-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kitchen-card-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.fenco-kitchen-control-card p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.4;
  margin: 0;
}

.kitchen-btn {
  background: #ffffff;
  color: #121216;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  margin-top: 10px;
}

.kitchen-btn:hover {
  background: #f3f4f6;
  transform: scale(1.02);
}

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

/* Responsiveness for smaller screens but desktop */
@media (max-width: 1024px) {
  .fenco-row-1, .fenco-row-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
