/* ============================================================
   INFINITY TRADERS — Retail Billing & Inventory Management
   Main Stylesheet
   ============================================================ */

/* ─── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --primary:        #2457D6;
  --primary-dark:   #1a3fa8;
  --primary-light:  #e8eefb;
  --primary-glow:   rgba(36, 87, 214, 0.18);
  --sidebar-bg:     #14213D;
  --sidebar-hover:  #1e3160;
  --sidebar-active: rgba(36, 87, 214, 0.25);
  --gold:           #D4AF37;
  --gold-light:     rgba(212, 175, 55, 0.15);
  --bg:             #F5F7FB;
  --card-bg:        #ffffff;
  --text-dark:      #0f172a;
  --text-nav:       #94a3b8;
  --text-muted:     #64748b;
  --text-body:      #374151;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --success:        #10b981;
  --success-light:  #d1fae5;
  --warning:        #f59e0b;
  --warning-light:  #fef3c7;
  --danger:         #ef4444;
  --danger-light:   #fee2e2;
  --info:           #3b82f6;
  --info-light:     #dbeafe;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-primary: 0 4px 16px rgba(36, 87, 214, 0.25);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --sidebar-w:      260px;
  --topbar-h:       64px;
  --transition:     0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ─── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── ACCESSIBLE KEYBOARD NAVIGATION & FOCUS INDICATORS ──────── */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--primary) !important;
  outline-offset: 2px !important;
}

.nav-link-item:focus-visible {
  outline: 2.5px solid #60a5fa !important;
  outline-offset: -2px !important;
  background: var(--sidebar-hover) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35) !important;
}

.product-card-pos:focus-visible {
  outline: 2.5px solid var(--primary) !important;
  outline-offset: 2px !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-md) !important;
  transform: translateY(-2px);
}

.btn-primary-it:focus-visible,
.btn-outline-it:focus-visible,
.btn-ghost:focus-visible,
.btn-sm-action:focus-visible,
.chart-filter-btn:focus-visible {
  outline: 2.5px solid var(--primary) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.form-control-it:focus-visible {
  border-color: var(--primary) !important;
  outline: 2.5px solid var(--primary) !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.it-table tbody tr:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: -2px !important;
  background: var(--primary-light) !important;
}

/* ─── APP SHELL ────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), width var(--transition);
  box-shadow: 4px 0 20px rgba(0,0,0,0.18);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.sidebar.collapsed { width: 72px; }

/* Brand - Fixed / Sticky at top while menu scrolls */
.sidebar-brand {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sidebar-bg);
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-h);
}

.brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
  font-family: 'Poppins', sans-serif;
}

.brand-text { overflow: hidden; transition: opacity var(--transition); }
.brand-text .brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 14px;
  color: #ffffff; line-height: 1.2;
  white-space: nowrap;
}
.brand-text .brand-subtitle {
  font-size: 10px; color: var(--text-nav);
  white-space: nowrap; line-height: 1.3;
}
.sidebar.collapsed .brand-text { opacity: 0; width: 0; }

/* Nav */
.sidebar-nav {
  flex: 1 0 auto;
  padding: 10px 0 16px;
  margin: 0;
  list-style: none;
}
.nav-section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(148,163,184,0.5); padding: 16px 20px 6px;
  white-space: nowrap; overflow: hidden;
  transition: opacity var(--transition);
}
.sidebar.collapsed .nav-section-label { opacity: 0; }

.nav-item {
  list-style: none;
}

.nav-link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  color: var(--text-nav);
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.nav-link-item:hover {
  background: var(--sidebar-hover);
  color: #e2e8f0;
  border-left-color: rgba(36, 87, 214, 0.4);
}

.nav-link-item.active {
  background: var(--sidebar-active);
  color: #ffffff;
  border-left-color: var(--primary);
}

.nav-link-item.active .nav-icon { color: #60a5fa; }
.nav-icon { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-label { font-size: 13.5px; font-weight: 500; transition: opacity var(--transition); }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }

/* Tooltip for collapsed */
.sidebar.collapsed .nav-link-item .tooltip-text {
  display: block;
  position: absolute; left: 72px;
  background: #1e293b; color: #e2e8f0;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: opacity 0.15s; z-index: 9999;
  box-shadow: var(--shadow-md);
}
.sidebar.collapsed .nav-link-item:hover .tooltip-text { opacity: 1; }
.tooltip-text { display: none; }

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  margin-top: auto;
  background: var(--sidebar-bg);
}

.sidebar-footer .version-tag {
  font-size: 11px; color: rgba(148,163,184,0.4);
  text-align: center; white-space: nowrap;
}
.sidebar.collapsed .sidebar-footer .version-tag { display: none; }

/* ─── MAIN CONTENT ─────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
  min-width: 0;
}
.main-content.sidebar-collapsed { margin-left: 72px; }

/* ─── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 1030;
  box-shadow: var(--shadow-sm);
}

.btn-sidebar-toggle {
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-sidebar-toggle:hover { background: var(--border-light); color: var(--text-dark); }

.topbar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text-dark); white-space: nowrap;
  flex: 1;
}

.topbar-search {
  position: relative;
  flex-shrink: 0;
}
.topbar-search input {
  width: 240px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px; color: var(--text-body);
  background: var(--bg);
  transition: all var(--transition);
  outline: none;
}
.topbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #fff;
}
.topbar-search .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none;
}

.topbar-date {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.topbar-icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 17px;
  transition: all var(--transition); position: relative;
}
.topbar-icon-btn:hover { background: var(--border-light); color: var(--primary); }
.topbar-icon-btn .badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
}

.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--border-light); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition);
}
.user-menu-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.user-name { font-size: 13px; font-weight: 500; color: var(--text-dark); }

/* ─── PAGE CONTAINER ───────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px 28px 40px;
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header-left h1 {
  font-size: 22px; font-weight: 700; color: var(--text-dark);
}
.page-header-left .breadcrumb-text {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}

/* ─── KPI CARDS ────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--kpi-accent, var(--primary));
}

.kpi-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.kpi-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted);
}
.kpi-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--kpi-icon-bg, var(--primary-light));
  color: var(--kpi-accent, var(--primary));
}
.kpi-value {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-dark); line-height: 1.2;
  margin-bottom: 8px;
}
.kpi-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 50px;
}
.kpi-change.up { color: var(--success); background: var(--success-light); }
.kpi-change.down { color: var(--danger); background: var(--danger-light); }
.kpi-change-note { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.kpi-subtitle { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* ─── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  display: flex; align-items: center; gap: 8px;
}
.card-title i { color: var(--primary); }
.card-body { padding: 22px; }
.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

/* ─── CHART SECTION ────────────────────────────────────────── */
.chart-wrapper { position: relative; height: 300px; width: 100%; }
.chart-wrapper.category-chart-wrapper { height: 220px; }
.chart-wrapper canvas { max-width: 100%; display: block; }
.chart-filter-group {
  display: flex; gap: 6px;
}
.chart-filter-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.chart-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.chart-filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* ─── TABLES ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table.it-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.it-table th {
  padding: 11px 16px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  text-align: left; font-weight: 600;
  color: var(--text-muted);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.it-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
}
.it-table tr:hover td { background: var(--border-light); }
.it-table tr:last-child td { border-bottom: none; }

/* ─── BADGES ───────────────────────────────────────────────── */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge-paid    { color: var(--success); background: var(--success-light); }
.badge-unpaid  { color: var(--danger);  background: var(--danger-light); }
.badge-partial { color: var(--warning); background: var(--warning-light); }
.badge-active  { color: var(--success); background: var(--success-light); }
.badge-low     { color: var(--warning); background: var(--warning-light); }
.badge-out     { color: var(--danger);  background: var(--danger-light); }
.badge-primary { color: var(--primary); background: var(--primary-light); }
.badge-gold    { color: #92650a; background: var(--gold-light); }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn { border-radius: var(--radius-sm); font-weight: 500; font-size: 13.5px; transition: all var(--transition); }

.btn-primary-it {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary-it:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-primary-it:active { transform: none; }

.btn-outline-it {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 8px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-outline-it:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }

.btn-ghost {
  background: transparent; color: var(--text-muted); border: none;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text-dark); }

.btn-sm-action {
  padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all var(--transition);
}
.btn-sm-action:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-sm-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }
.btn-sm-success:hover { border-color: var(--success); color: var(--success); background: var(--success-light); }

/* ─── FORMS ────────────────────────────────────────────────── */
.form-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px; display: block;
}
.form-control-it {
  width: 100%; padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-body);
  background: var(--card-bg); outline: none;
  transition: all var(--transition);
  font-family: inherit;
}
.form-control-it:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control-it.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form-error-msg { font-size: 11.5px; color: var(--danger); margin-top: 4px; }
select.form-control-it { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  padding-right: 32px;
}

/* ─── GST TOGGLE ───────────────────────────────────────────── */
.gst-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--bg); border: 1.5px solid var(--border);
  margin-bottom: 12px;
}
.gst-toggle-wrap label { font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer; }
.form-switch .form-check-input { cursor: pointer; width: 42px; height: 22px; }
.form-switch .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ─── MODALS ───────────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  background: var(--sidebar-bg);
  color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none; padding: 18px 24px;
}
.modal-header .modal-title { font-weight: 600; font-size: 16px; color: #fff; }
.modal-header .btn-close { filter: invert(1); opacity: 0.7; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ─── INVOICE MODAL ────────────────────────────────────────── */
.invoice-container {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  font-family: 'Inter', sans-serif;
}
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.invoice-company { }
.invoice-company h2 { font-size: 22px; font-weight: 800; color: var(--primary); font-family: 'Poppins', sans-serif; }
.invoice-company p { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.7; }
.invoice-meta { text-align: right; }
.invoice-meta h3 { font-size: 28px; font-weight: 800; color: var(--text-dark); letter-spacing: -1px; }
.invoice-meta p { font-size: 12.5px; color: var(--text-muted); }
.invoice-meta .invoice-no { color: var(--primary); font-weight: 700; font-size: 13px; }
.invoice-divider { border-top: 2px solid var(--primary); margin: 18px 0; opacity: 0.2; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.invoice-party h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.invoice-party p { font-size: 13px; color: var(--text-dark); line-height: 1.7; }
.invoice-items-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.invoice-items-table th { padding: 9px 12px; background: var(--sidebar-bg); color: #fff; font-weight: 600; font-size: 11.5px; }
.invoice-items-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light); }
.invoice-items-table tr:nth-child(even) td { background: #fafafa; }
.invoice-totals { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.invoice-totals .total-row { display: flex; justify-content: space-between; width: 260px; padding: 4px 0; font-size: 13px; }
.invoice-totals .total-row.grand { border-top: 2px solid var(--primary); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--primary); }
.invoice-footer-note { text-align: center; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-muted); }
.placeholder-banner {
  background: var(--gold-light); border: 1px dashed var(--gold);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 11.5px; color: #92650a; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ─── TOAST ────────────────────────────────────────────────── */
.toast-container-it {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast-it {
  background: var(--sidebar-bg); color: #e2e8f0;
  padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 360px;
  animation: toastSlideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}
.toast-it.toast-success { border-left-color: var(--success); }
.toast-it.toast-danger  { border-left-color: var(--danger); }
.toast-it.toast-warning { border-left-color: var(--warning); }
.toast-it i { font-size: 17px; flex-shrink: 0; }
.toast-it.toast-success i { color: var(--success); }
.toast-it.toast-danger  i { color: var(--danger); }
.toast-it.toast-warning i { color: var(--warning); }
.toast-closing { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ─── BILLING / POS ─────────────────────────────────────────── */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.product-search-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
}
.product-search-bar input, .product-search-bar select {
  flex: 1; min-width: 140px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  max-height: 520px; overflow-y: auto;
  padding: 4px;
}
.product-card-pos {
  background: var(--card-bg); border: 1.5px solid var(--border-light);
  border-radius: var(--radius); padding: 12px;
  cursor: pointer; transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card-pos:hover {
  border-color: var(--primary); box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-2px);
}
.product-card-pos.out-of-stock { opacity: 0.55; cursor: not-allowed; }
.product-card-pos .prod-img-pos {
  width: 100%;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}
.product-card-pos .prod-img-pos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card-pos:hover .prod-img-pos img {
  transform: scale(1.06);
}
.product-card-pos .prod-brand { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 2px; }
.product-card-pos .prod-name { font-size: 12.5px; font-weight: 600; color: var(--text-dark); line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-pos .prod-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.product-card-pos .prod-price { font-weight: 700; color: var(--primary); font-size: 15px; font-family: 'Poppins', sans-serif; margin-top: auto; }
.product-card-pos .prod-stock { font-size: 11px; margin-top: 3px; }
.product-card-pos .prod-stock.low { color: var(--warning); }
.product-card-pos .prod-stock.out { color: var(--danger); }
.product-card-pos .prod-stock.ok  { color: var(--success); }

/* Cart */
.cart-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  position: sticky; top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 30px);
  overflow-y: auto;
  overflow-x: hidden;
}
.cart-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: var(--sidebar-bg); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h5 { color: #fff; font-size: 15px; font-weight: 600; margin: 0; }
.cart-badge { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.cart-gst-box {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbars for cart */
.cart-items::-webkit-scrollbar,
.cart-panel::-webkit-scrollbar {
  width: 5px;
}
.cart-items::-webkit-scrollbar-track,
.cart-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
.cart-items::-webkit-scrollbar-thumb,
.cart-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.cart-items::-webkit-scrollbar-thumb:hover,
.cart-panel::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.cart-item {
  padding: 10px 8px; border-bottom: 1px solid var(--border-light);
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:focus-within {
  background: rgba(36, 87, 214, 0.05);
  box-shadow: inset 3px 0 0 var(--primary);
}
.cart-item-name { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.cart-item-sku  { font-size: 11px; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; gap: 2px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--text-muted);
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input {
  width: 44px; text-align: center; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 2px;
  color: var(--text-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qty-input:focus,
.discount-input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2.5px rgba(36, 87, 214, 0.22) !important;
  background: #fff;
}
.discount-input {
  width: 65px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cart-item-total { font-size: 13.5px; font-weight: 700; color: var(--text-dark); text-align: right; }
.btn-remove-item {
  background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; padding: 2px 5px;
  border-radius: 4px; transition: background 0.15s;
}
.btn-remove-item:focus {
  outline: none;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}
.cart-shortcut-hints {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 3px;
  flex-wrap: wrap;
}
.cart-hint-pill {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cart-hint-pill kbd {
  font-family: inherit;
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0 3px;
  border-radius: 2px;
}

.cart-totals {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  font-size: 13px;
  flex-shrink: 0;
}
.total-line { display: flex; justify-content: space-between; padding: 2.5px 0; color: var(--text-body); }
.total-line.grand-total { font-weight: 700; font-size: 15px; color: var(--text-dark); border-top: 2px solid var(--border); margin-top: 6px; padding-top: 6px; }
.total-line.balance { color: var(--danger); font-weight: 600; }

.cart-footer { padding: 12px 16px; border-top: 1px solid var(--border-light); flex-shrink: 0; }
.customer-fields { margin-bottom: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.customer-fields .form-control-it { font-size: 12px; }
.payment-row { display: flex; gap: 8px; margin-bottom: 8px; }
.amount-row { display: flex; gap: 8px; margin-bottom: 10px; }
.cart-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cart-actions button {
  font-size: 11.5px;
  padding: 8px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.invoice-customer-addr {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Empty cart */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 28px 16px;
  color: var(--text-muted); text-align: center;
  min-height: 160px;
  margin: auto;
}
.cart-empty i { font-size: 38px; margin-bottom: 10px; color: #cbd5e1; }
.cart-empty p { margin: 0; font-size: 13px; }

/* ─── STOCK STATUS ─────────────────────────────────────────── */
.stock-ok  { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

/* ─── SECTIONS GRID ────────────────────────────────────────── */
.sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sections-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── QUICK ACTIONS ────────────────────────────────────────── */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 22px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  background: var(--card-bg); cursor: pointer;
  transition: all var(--transition); flex: 1; min-width: 100px;
}
.quick-action-btn i { font-size: 22px; color: var(--primary); }
.quick-action-btn span { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: center; }
.quick-action-btn:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action-btn:hover i { color: var(--primary-dark); }

/* ─── SEARCH & FILTER BAR ──────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 18px;
}
.filter-bar input, .filter-bar select { flex: 1; min-width: 140px; }

/* ─── PAGINATION ───────────────────────────────────────────── */
.pagination-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-muted);
}
.pagination-controls { display: flex; gap: 4px; }
.page-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-muted); cursor: pointer; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; color: var(--text-muted); text-align: center;
}
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.empty-state h4 { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 13px; max-width: 320px; }

/* ─── REPORTS GRID ─────────────────────────────────────────── */
.report-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}

/* ─── SETTINGS FORM ────────────────────────────────────────── */
.settings-section {
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.settings-section h5 {
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.settings-section h5 i { color: var(--primary); }
.settings-note {
  background: var(--primary-light); border-left: 3px solid var(--primary);
  padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px; color: var(--primary-dark); margin-top: 14px;
  display: flex; align-items: flex-start; gap: 8px;
}

/* ─── DEMO BANNER ──────────────────────────────────────────── */
.demo-banner {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius); padding: 10px 18px;
  font-size: 12.5px; color: #92650a;
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.demo-banner i { font-size: 15px; color: var(--gold); flex-shrink: 0; }

/* ─── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-section { animation: fadeIn 0.25s ease; }
.kpi-card { animation: fadeIn 0.3s ease both; }
.kpi-card:nth-child(1) { animation-delay: 0.0s; }
.kpi-card:nth-child(2) { animation-delay: 0.05s; }
.kpi-card:nth-child(3) { animation-delay: 0.1s; }
.kpi-card:nth-child(4) { animation-delay: 0.15s; }
.kpi-card:nth-child(5) { animation-delay: 0.2s; }
.kpi-card:nth-child(6) { animation-delay: 0.25s; }

/* ─── DROPDOWN ─────────────────────────────────────────────── */
.dropdown-menu { border: 1px solid var(--border-light); box-shadow: var(--shadow-md); border-radius: var(--radius); padding: 6px; }
.dropdown-item { border-radius: var(--radius-sm); font-size: 13.5px; padding: 8px 14px; }
.dropdown-item:active { background: var(--primary); }

/* ─── PURCHASE FORM ─────────────────────────────────────────── */
.purchase-items-table { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.purchase-item-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr auto; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border-light); align-items: center; }
.purchase-item-row:last-child { border-bottom: none; }
.purchase-item-row:first-child { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; color: var(--text-muted); }

/* Multi-Size Variant Matrix Badges */
.btn-xs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.btn-xs-badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.btn-xs-badge:active {
  transform: translateY(0);
}

/* ─── BEST-SELLING PRODUCT LIST ─────────────────────────────── */
.best-sell-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.best-sell-item:last-child { border-bottom: none; }
.best-sell-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.best-sell-rank.rank-1 { background: var(--gold-light); color: #92650a; }
.best-sell-info { flex: 1; }
.best-sell-info .name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.best-sell-info .cat  { font-size: 11.5px; color: var(--text-muted); }
.best-sell-val { font-weight: 700; color: var(--primary); font-size: 13px; font-family: 'Poppins', sans-serif; }

/* Low stock alert */
.low-stock-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.low-stock-item:last-child { border-bottom: none; }
.low-stock-info .name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.low-stock-info .sku  { font-size: 11.5px; color: var(--text-muted); }
.low-stock-qty { font-weight: 700; font-size: 13px; }
.low-stock-qty.zero { color: var(--danger); }
.low-stock-qty.low  { color: var(--warning); }

/* ─── CONFIRMATION DIALOG ──────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(14,20,27,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.confirm-box {
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px;
  max-width: 420px; width: 90%; text-align: center;
}
.confirm-box i { font-size: 44px; color: var(--warning); margin-bottom: 16px; display: block; }
.confirm-box h4 { font-size: 18px; margin-bottom: 10px; }
.confirm-box p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ─── CUSTOMER AUTOCOMPLETE DROPDOWN ─────────────────────── */
.customer-autocomplete-dropdown {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
}
.cust-suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.cust-suggest-item:hover, .cust-suggest-item.active {
  background: rgba(36, 87, 214, 0.25) !important;
}

/* ─── PRODUCT AUTOCOMPLETE DROPDOWN ─────────────────────── */
.product-autocomplete-dropdown {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 6px -2px rgba(15, 23, 42, 0.06);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1070;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
}
.prod-suggest-header {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prod-suggest-item {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prod-suggest-item:last-child {
  border-bottom: none;
}
.prod-suggest-item:hover, .prod-suggest-item.active {
  background: #eff6ff !important;
}
.prod-suggest-left {
  flex: 1;
  min-width: 0;
}
.prod-suggest-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-suggest-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}
.prod-suggest-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}
.prod-suggest-badge.cat {
  background: #e0f2fe;
  color: #0284c7;
}
.prod-suggest-badge.brand {
  background: #f1f5f9;
  color: #475569;
}
.prod-suggest-badge.variants {
  background: #ecfdf5;
  color: #059669;
}
.prod-suggest-right {
  text-align: right;
  flex-shrink: 0;
}
.prod-suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}
.prod-suggest-cost {
  font-size: 11px;
  color: var(--text-muted);
}
.suggest-mark {
  background: #fef08a;
  color: #854d0e;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}
.suggest-autofill-hint {
  margin-top: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

/* ─── DISCOUNT TOGGLE SWITCHER ────────────────────────────── */
.disc-toggle-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
  transition: all var(--transition);
}
.disc-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── TODAY'S CUSTOMERS & CLICKABLE KPI STYLES ───────────────── */
.kpi-card-clickable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.kpi-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 0 0 1.5px var(--kpi-accent, #38bdf8) !important;
  border-color: var(--kpi-accent, #38bdf8) !important;
}
.kpi-card-clickable:active {
  transform: translateY(-1px);
}
.kpi-card-clickable:focus-visible {
  outline: 2px solid var(--kpi-accent, var(--primary));
  outline-offset: 2px;
}
.kpi-card-clickable .kpi-change:hover {
  filter: brightness(0.95);
}
.kpi-click-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(226, 232, 240, 0.85);
  font-size: 11px;
  font-weight: 600;
  color: var(--kpi-accent, var(--primary));
  opacity: 0.88;
  transition: all 0.2s ease;
}
.kpi-card-clickable:hover .kpi-click-cue {
  opacity: 1;
}
.kpi-card-clickable:hover .kpi-click-cue i {
  transform: translateX(3px);
}
.kpi-click-cue i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* ─── DASHBOARD DETAIL MODAL STYLES ─────────────────────────── */
.detail-stat-chip {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.detail-stat-chip .chip-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.detail-stat-chip .chip-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-modal-table-wrap {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-modal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  margin-bottom: 0;
}
.detail-modal-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.detail-modal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.detail-modal-table tr:last-child td {
  border-bottom: none;
}
.detail-modal-table tr:hover td {
  background: #f8fafc;
}
.formula-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.today-customer-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.today-customer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
  border-color: #38bdf8 !important;
}
.clickable-row {
  transition: background 0.15s ease;
}
.clickable-row:hover {
  background: rgba(2, 132, 199, 0.05) !important;
}
.clickable-cust-link:hover {
  text-decoration: underline !important;
  color: var(--primary-dark) !important;
}
.cust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
}
.cust-pill:hover {
  background: #e2e8f0;
}


