@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════
   BILLNOVA — PREMIUM REDESIGN
   Aesthetic: Refined dark luxury + geometric
   Fonts: Outfit (display) + Instrument Serif (accent) + JetBrains Mono (data)
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

:root {
  /* BillNova — Professional palette inspired by Zoho/Tally */
  --ink:    #0d1117;      /* deepest bg */
  --ink2:   #161b22;      /* card bg */
  --ink3:   #1c2333;      /* input bg */
  --ink4:   #222b3a;      /* hover bg */
  --line:   #2d3748;      /* borders */
  --line2:  #3a4a63;      /* stronger borders */
  --muted:  #5a6a85;      /* placeholder text */
  --dim:    #8fa3bf;      /* secondary text */
  --body:   #c9d6e6;      /* body text */
  --bright: #f0f4f9;      /* headings */
  --white:  #ffffff;
  /* Primary — Zoho Blue */
  --violet:   #2563eb;    /* primary blue (Zoho/professional) */
  --violet-d: #1d4ed8;    /* darker blue */
  --violet-glow: rgba(37,99,235,0.18);
  /* Status colors */
  --emerald: #10b981;     /* success green */
  --amber:   #f59e0b;     /* warning amber */
  --rose:    #ef4444;     /* danger red */
  --sky:     #06b6d4;     /* info cyan */
  --orange:  #f97316;     /* Tally orange accent */
  /* Radius */
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 18px;
  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.25);
  --shadow:    0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --glow: 0 0 30px rgba(37,99,235,0.15);
}


/* ═══ LIGHT MODE ═══ */
body.light-mode {
  /* Clean professional light mode — Zoho/Tally inspired */
  --ink:    #f4f6fb;
  --ink2:   #ffffff;
  --ink3:   #f0f3f9;
  --ink4:   #e8edf6;
  --line:   #d1d9e6;
  --line2:  #b8c4d8;
  --muted:  #7a8da8;
  --dim:    #4a5d78;
  --body:   #2d3e55;
  --bright: #0f1e32;
  --white:  #ffffff;
  --violet:   #2563eb;
  --violet-d: #1d4ed8;
  --violet-glow: rgba(37,99,235,0.10);
  --emerald: #059669;
  --amber:   #d97706;
  --rose:    #dc2626;
  --sky:     #0891b2;
  --orange:  #ea6c00;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --glow:      0 0 30px rgba(37,99,235,0.08);
}

/* Light mode specific overrides */
body.light-mode .sidebar { border-right-color: var(--line); }
body.light-mode .topbar  { border-bottom-color: var(--line); }
body.light-mode .nice-table thead tr { background: var(--ink4); }
body.light-mode .nice-table tbody tr:hover { background: var(--ink3); }
body.light-mode .modal-box { background: var(--ink2); }
body.light-mode .overlay { background: rgba(10,15,30,0.5); }
body.light-mode input,
body.light-mode select,
body.light-mode textarea { background: var(--ink3); border-color: var(--line); color: var(--bright); }
body.light-mode input:focus,
body.light-mode select:focus { border-color: var(--violet); }
body.light-mode .kpi-card { background: var(--ink2); border-color: var(--line); }
body.light-mode .sb-item:hover,
body.light-mode .sb-item.active { background: var(--ink3); }
body.light-mode .badge { background: var(--ink3); }
body.light-mode .act-btn { background: var(--ink4); color: var(--body); }
body.light-mode .act-btn:hover { background: var(--line2); }
body.light-mode .tab-btn { color: var(--dim); }
body.light-mode .tab-btn.active { background: var(--violet); color: #fff; }
body.light-mode .plan-card { background: var(--ink2); }
body.light-mode code { background: var(--ink4); color: var(--violet); }

/* Theme toggle button */
.theme-toggle {
  width: 38px; height: 22px;
  background: var(--ink4);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  transition: background .25s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform .25s, background .25s;
}
body.light-mode .theme-toggle { background: #e0e7ff; border-color: #c7d2fe; }
body.light-mode .theme-toggle::after { background: var(--violet); transform: translateX(16px); }
.theme-toggle-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--dim);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sec { max-width: 100%; }
/* ═══ SCREEN SYSTEM ═══ */
.screen { display: none; }
.screen.active { display: flex; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   AUTH SCREEN — SPLIT LAYOUT
═══════════════════════════════════════════ */
#auth-screen {
  min-height: 100vh;
  flex-direction: row;
}

.auth-left {
  flex: 1;
  background: var(--ink2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.auth-left-inner {
  position: relative;
  z-index: 3;
  max-width: 440px;
  padding: 48px;
  width: 100%;
}
.auth-bg-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); z-index: 2;
  pointer-events: none;
}
.g1 { width: 500px; height: 500px; background: rgba(167,139,250,0.15); top: -100px; left: -150px; animation: pulse 6s ease-in-out infinite; }
.g2 { width: 400px; height: 400px; background: rgba(52,211,153,0.08); bottom: -80px; right: -100px; animation: pulse 8s ease-in-out infinite reverse; }
@keyframes pulse { 0%,100%{opacity:0.8;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

.auth-brand-big { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.logo-mark { display: flex; align-items: center; justify-content: center; }
.logo-mark.sm svg { width: 28px; height: 28px; }
.brand-wordmark { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.sb-brand { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 700; color: var(--white); }

.auth-hero { margin-bottom: 36px; }
.auth-hero-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 40px; font-weight: 700; line-height: 1.15;
  color: var(--white); letter-spacing: -1px; margin-bottom: 14px;
}
.auth-hero-title em { font-style: normal; color: var(--violet); font-family: 'Instrument Serif', serif; }
.auth-hero-sub { color: var(--dim); font-size: 15px; line-height: 1.65; }

.auth-stats { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.auth-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--white); }
.stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.auth-stat-div { width: 1px; height: 36px; background: var(--line); }

.auth-testimonial { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; }
.test-quote { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.test-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #38bdf8); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }

/* Auth Right */
.auth-right {
  width: 480px; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 40px;
}
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-logo { margin-bottom: 28px; }
.form-heading { font-family: 'Inter', system-ui, sans-serif; font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; margin-bottom: 6px; }
.form-sub { color: var(--dim); font-size: 14px; margin-bottom: 28px; }

.field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-group label { font-size: 12.5px; font-weight: 500; color: var(--dim); letter-spacing: 0.3px; }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%; background: var(--ink3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px 11px 38px;
  color: var(--bright); font-family: 'Inter', system-ui, sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input:not(:placeholder-shown) { padding-left: 14px; }
.input-wrap .input-icon + input { padding-left: 38px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.5; pointer-events: none; }
.input-wrap input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(167,139,250,0.12); }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); cursor: pointer; }
.checkbox-label input[type=checkbox] { accent-color: var(--violet); }
.link-subtle { font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: none; }
.link-subtle:hover { color: var(--body); }
.link-accent { color: var(--violet); cursor: pointer; text-decoration: none; font-weight: 500; }
.link-accent:hover { color: var(--violet-d); }
.switch-line { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--dim); }

.btn-hero {
  width: 100%; background: linear-gradient(135deg, var(--violet-d), #6366f1);
  color: #fff; border: none; border-radius: var(--r); padding: 13px 20px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(124,90,244,0.35);
  letter-spacing: 0.1px;
}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124,90,244,0.45); }
.btn-hero:active { transform: scale(0.98); }

.demo-pill {
  margin-top: 14px; padding: 9px 16px;
  background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.2);
  border-radius: 50px; text-align: center; font-size: 12.5px; color: var(--violet);
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar {
  width: 240px; height: 100vh; background: var(--ink2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; z-index: 150;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; }

.sb-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.sb-company {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.sb-company:hover { background: var(--ink3); }
.sb-company-av {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet-d), #38bdf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 10px rgba(124,90,244,0.3);
}
.sb-company-info { flex: 1; min-width: 0; }
.sb-company-info span { display: block; }
.sb-company-info span:first-child { font-size: 13px; font-weight: 600; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-gstin { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.sb-chevron { color: var(--muted); flex-shrink: 0; }

.sb-nav { padding: 12px 10px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; }
.sb-group-label {
  font-size: 10px; font-weight: 600; color: var(--muted);
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 8px 10px 3px;
}
.sb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 7px;
  color: var(--dim); font-size: 12.5px; font-weight: 400;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; margin-bottom: 1px; position: relative;
}
.sb-item:hover { background: var(--ink4); color: var(--body); }
.sb-item.active { background: rgba(167,139,250,0.1); color: var(--violet); font-weight: 500; }
.sb-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--violet); border-radius: 2px;
}
.sb-ic { width: 16px; display: flex; align-items: center; justify-content: center; opacity: 0.7; flex-shrink: 0; }
.sb-item.active .sb-ic { opacity: 1; }

.sb-footer {
  padding: 12px 14px 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.sb-user { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.sb-user-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.sb-user-info { min-width: 0; display: flex; align-items: center; gap: 6px; }
.sb-user-info span:first-child { font-size: 12.5px; font-weight: 500; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.sb-plan-tag { background: linear-gradient(135deg, var(--violet-d), #38bdf8); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 20px; letter-spacing: 0.5px; flex-shrink: 0; }
.sb-logout { background: none; border: 1px solid var(--line); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.sb-logout:hover { border-color: var(--rose); color: var(--rose); }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.main { margin-left: 240px; min-height: 100vh; display: block !important; overflow-x: hidden; box-sizing: border-box; width: calc(100% - 240px); }
.main > header.topbar { display: flex !important; width: 100% !important; box-sizing: border-box; }
.main > #trial-banner { display: flex !important; width: 100% !important; box-sizing: border-box; }
.main > .content { display: block !important; width: 100% !important; box-sizing: border-box; clear: both; }

/* TOPBAR */
.topbar {
  height: 58px; min-height: 58px; background-color: #0b0d12; background: rgba(11,13,18,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 20px;
  position: sticky; top: 0; z-index: 100;
  box-sizing: border-box;
  width: 100%;
}
.tb-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.menu-btn { display: none; background: none; border: none; color: var(--dim); cursor: pointer; padding: 6px; border-radius: 8px; transition: background 0.15s; flex-shrink: 0; }
.menu-btn:hover { background: var(--ink3); color: var(--body); }
.tb-breadcrumb { font-size: 15px; font-weight: 600; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tb-btn {
  position: relative; background: var(--ink3); border: 1px solid var(--line);
  color: var(--dim); width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tb-btn:hover { border-color: var(--line2); color: var(--body); }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; background: var(--rose); border-radius: 50%; border: 2px solid var(--ink); }
.tb-user { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 10px; border-radius: 10px; transition: background 0.15s; flex-shrink: 0; white-space: nowrap; }
.tb-user:hover { background: var(--ink3); }
.tb-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #f472b6); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.tb-user-info { display: flex; flex-direction: column; min-width: 0; }
.tb-name { font-size: 13.5px; font-weight: 500; color: var(--bright); display: block; white-space: nowrap; }
.tb-sub { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; }

/* CONTENT */
.content { padding: 24px 20px; flex: 1; min-width: 0; box-sizing: border-box; position: relative; z-index: 1; }
.sec { display: none; animation: secIn 0.25s ease; }
.sec.active { display: block; }
@keyframes secIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* SECTION HEADER */
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.sec-title { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.sec-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.wave { font-style: normal; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  background: var(--violet-d); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 9px 18px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.2s; box-shadow: 0 2px 12px rgba(124,90,244,0.25);
  letter-spacing: 0.1px;
}
.btn-primary:hover { background: #8b63f8; box-shadow: 0 4px 20px rgba(124,90,244,0.4); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: var(--ink4); color: var(--dim); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 16px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--line2); color: var(--body); background: var(--ink3); }

.btn-group { display: flex; gap: 8px; }
.btn-xs { background: var(--ink4); border: 1px solid var(--line); color: var(--violet); border-radius: 6px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: 'Inter', system-ui, sans-serif; transition: all 0.15s; }
.btn-xs:hover { background: rgba(167,139,250,0.1); border-color: var(--violet); }

/* ═══════════════════════════════════════════
   KPI CARDS
═══════════════════════════════════════════ */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--kpi-accent), transparent);
  opacity: 0.6;
}
.kpi-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; }
.kpi-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.kpi-val { font-family: 'Inter', system-ui, sans-serif; font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; margin-bottom: 6px; }
.kpi-trend { font-size: 12px; margin-bottom: 14px; }
.kpi-trend.positive { color: var(--emerald); }
.kpi-trend.neutral { color: var(--muted); }
.kpi-trend.warning { color: var(--amber); }
.kpi-bar { height: 3px; background: var(--line); border-radius: 10px; overflow: hidden; }
.kpi-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.dash-card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.span-2 { grid-column: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-head h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--bright); }
.card-link { font-size: 12.5px; color: var(--violet); cursor: pointer; text-decoration: none; transition: color 0.15s; }
.card-link:hover { color: var(--violet-d); }
.period-chip { background: var(--ink4); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; font-size: 11.5px; color: var(--dim); }

/* GST Summary */
.gst-list { display: flex; flex-direction: column; }
.gst-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--dim); border-bottom: 1px solid rgba(37,44,61,0.6); }
.gst-row:last-child { border: none; }
.gst-row.total-row { font-weight: 600; color: var(--bright); padding-top: 11px; border-top: 1px solid var(--line); border-bottom: none; }
.green-txt { color: var(--emerald); }
.red-txt { color: var(--rose); }

/* Receivables */
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); position: relative; }
.rec-bar { height: 4px; background: var(--ink4); border-radius: 10px; width: 100%; position: absolute; top: -8px; left: 0; }
.rec-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--w); background: var(--c); border-radius: 10px; }
.rec-item { padding-top: 8px; }
.rec-amt { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--body); font-weight: 500; }

/* ═══════════════════════════════════════════
   TABLES
═══════════════════════════════════════════ */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--ink3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 14px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--violet); }
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input { background: none; border: none; outline: none; color: var(--bright); font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; padding: 10px 0; width: 100%; }
.filter-sel { background: var(--ink3); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; color: var(--dim); font-family: 'Inter', system-ui, sans-serif; font-size: 13px; cursor: pointer; outline: none; transition: border-color 0.2s; }
.filter-sel:focus { border-color: var(--violet); }

.table-wrap { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.nice-table { width: 100%; border-collapse: collapse; }
.nice-table.full { min-width: 900px; }
.nice-table th {
  padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px;
  background: var(--ink3); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.nice-table td {
  padding: 12px 16px; font-size: 13px; color: var(--dim);
  border-bottom: 1px solid rgba(37,44,61,0.5); vertical-align: middle;
}
.nice-table tr:last-child td { border-bottom: none; }
.nice-table tr:hover td { background: rgba(255,255,255,0.015); }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 20px; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-paid { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-unpaid { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-overdue { background: rgba(251,113,133,0.12); color: #fb7185; }
.badge-draft { background: rgba(100,116,139,0.12); color: #64748b; }
.badge-customer { background: rgba(52,211,153,0.1); color: #34d399; }
.badge-vendor { background: rgba(251,113,133,0.1); color: #fb7185; }
.badge-both { background: rgba(167,139,250,0.1); color: #a78bfa; }

/* Action buttons */
.act-btn { background: none; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 6px; font-size: 11.5px; cursor: pointer; transition: all 0.15s; margin-right: 4px; font-family: 'Inter', system-ui, sans-serif; }
.act-btn:hover { border-color: var(--violet); color: var(--violet); background: rgba(167,139,250,0.05); }
.act-btn.del:hover { border-color: var(--rose); color: var(--rose); background: rgba(251,113,133,0.05); }

/* Mono numbers in table */
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--violet); }
.num-bold { font-weight: 600; color: var(--bright); }

/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.tab-row { display: flex; gap: 4px; margin-bottom: 16px; background: var(--ink3); border: 1px solid var(--line); border-radius: 10px; padding: 4px; width: fit-content; }
.tab-btn { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; background: none; color: var(--dim); transition: all 0.15s; font-family: 'Inter', system-ui, sans-serif; }
.tab-btn:hover { color: var(--body); }
.tab-btn.active { background: var(--ink2); color: var(--bright); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

/* ═══════════════════════════════════════════
   GST REPORTS
═══════════════════════════════════════════ */
.gst-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.gst-tile { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: transform 0.2s; }
.gst-tile:hover { transform: translateY(-2px); }
.gst-tile.highlight { border-color: rgba(167,139,250,0.3); background: linear-gradient(135deg, rgba(167,139,250,0.07), var(--ink2)); }
.gt-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.gt-val { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--white); }
.gt-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.info-card.span-2 { grid-column: span 2; }
.info-card-head { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-table2 { width: 100%; border-collapse: collapse; }
.mini-table2 th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 7px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.mini-table2 th:first-child { text-align: left; }
.mini-table2 td { padding: 9px 12px; font-size: 13px; color: var(--dim); border-bottom: 1px solid rgba(37,44,61,0.4); text-align: right; }
.mini-table2 td:first-child { text-align: left; }
.mini-table2 tr.sum-row td { font-weight: 600; color: var(--bright); background: rgba(255,255,255,0.02); }
.payable-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.pay-box { background: var(--ink3); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.pay-box.accent-box { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.25); }
.pay-lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.pay-val { font-family: 'Inter', system-ui, sans-serif; font-size: 20px; font-weight: 700; color: var(--white); }

/* ═══════════════════════════════════════════
   REPORTS
═══════════════════════════════════════════ */
.report-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.report-card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; cursor: pointer; transition: all 0.2s; position: relative; text-align: center; }
.report-card:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.rc-icon { width: 48px; height: 48px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; }
.rc-icon.purple { background: rgba(167,139,250,0.1); }
.rc-icon.blue { background: rgba(56,189,248,0.1); }
.rc-icon.green { background: rgba(52,211,153,0.1); }
.rc-icon.orange { background: rgba(251,146,60,0.1); }
.rc-icon.pink { background: rgba(244,114,182,0.1); }
.rc-icon.teal { background: rgba(45,212,191,0.1); }
.rc-icon.yellow { background: rgba(251,191,36,0.1); }
.rc-icon.red { background: rgba(251,113,133,0.1); }
.rc-name { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 5px; }
.rc-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.pro-chip { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, var(--violet-d), var(--sky)); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.4px; }

/* ═══════════════════════════════════════════
   COMPANY FORM
═══════════════════════════════════════════ */
.form-sections { display: flex; flex-direction: column; gap: 16px; }
.form-block { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fb-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--bright);
  border-bottom: 1px solid var(--line); background: var(--ink3);
}
.fb-num { width: 26px; height: 26px; border-radius: 8px; background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--violet); }
.fg3, .fg2 { display: grid; gap: 14px; padding: 22px; }
.fg3 { grid-template-columns: repeat(3,1fr); }
.fg2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-2 { grid-column: span 2; }
.fld-3 { grid-column: span 3; }
.fld label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.3px; }
.fld input, .fld select, .fld textarea {
  background: var(--ink3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
  color: var(--bright); font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(167,139,250,0.1); }
.fld select { appearance: none; cursor: pointer; }
.fld textarea { resize: vertical; min-height: 80px; }
.save-flash { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: var(--emerald); padding: 12px 18px; border-radius: var(--r-sm); font-size: 13.5px; margin-top: 16px; text-align: center; }

/* ═══════════════════════════════════════════
   SUBSCRIPTION PLANS
═══════════════════════════════════════════ */
.billing-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; background: var(--ink3); border: 1px solid var(--line); border-radius: 50px; padding: 5px; width: fit-content; }
.bt-opt { padding: 8px 20px; border-radius: 50px; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--dim); transition: all 0.2s; }
.bt-opt.active { background: var(--ink2); color: var(--bright); box-shadow: var(--shadow-sm); }
.save-tag { background: linear-gradient(135deg, var(--emerald), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 11px; font-style: normal; font-weight: 700; margin-left: 4px; }
.plan-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 980px; }
.plan-card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.featured-plan { border-color: rgba(167,139,250,0.4); background: linear-gradient(160deg, rgba(167,139,250,0.06), var(--ink2)); box-shadow: 0 0 0 1px rgba(167,139,250,0.1), var(--glow); }
.plan-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--violet-d), var(--sky)); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.5px; }
.plan-tier { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; font-weight: 700; color: var(--bright); margin-bottom: 10px; }
.plan-price-wrap { margin-bottom: 6px; }
.plan-price { font-family: 'Inter', system-ui, sans-serif; font-size: 36px; font-weight: 700; color: var(--white); letter-spacing: -1px; }
.plan-cycle { font-size: 14px; color: var(--muted); }
.plan-tagline { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan-feats { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 9px; }
.plan-feats li { font-size: 13px; display: flex; align-items: center; gap: 9px; }
.plan-feats li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
.plan-feats li.yes { color: var(--body); }
.plan-feats li.yes::before { content: '✓'; background: rgba(52,211,153,0.12); color: var(--emerald); }
.plan-feats li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line2); }
.plan-feats li.no::before { content: '×'; background: rgba(100,116,139,0.1); color: var(--muted); }
.plan-btn { width: 100%; padding: 11px; border-radius: var(--r-sm); font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.plan-btn.current { background: var(--ink4); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.plan-btn.upgrade { background: linear-gradient(135deg, var(--violet-d), #6366f1); color: #fff; box-shadow: 0 4px 16px rgba(124,90,244,0.3); }
.plan-btn.upgrade:hover { box-shadow: 0 8px 24px rgba(124,90,244,0.45); transform: translateY(-1px); }
.plan-btn.outline { background: transparent; color: var(--violet); border: 1px solid rgba(167,139,250,0.4); }
.plan-btn.outline:hover { background: rgba(167,139,250,0.08); }

/* ═══════════════════════════════════════════
   MODALS
═══════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-box {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: var(--r-xl); width: 100%; max-width: 580px;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(167,139,250,0.06);
  animation: modalIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-box.xl { max-width: 960px; }
@keyframes modalIn { from{transform:scale(0.94) translateY(12px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 26px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 18px; font-weight: 700; color: var(--white); }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.modal-x { background: var(--ink4); border: 1px solid var(--line); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.modal-x:hover { border-color: var(--rose); color: var(--rose); }
.modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.mb-16 { margin-bottom: 16px; }

/* Invoice items table */
.items-section { margin-bottom: 20px; }
.items-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--bright); }
.items-table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; overflow-x: auto; }
.items-tbl { width: 100%; border-collapse: collapse; min-width: 700px; }
.items-tbl th { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 8px; background: var(--ink3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.items-tbl td { border-bottom: 1px solid rgba(37,44,61,0.5); padding: 2px; }
.items-tbl tr:last-child td { border-bottom: none; }
.items-tbl input, .items-tbl select {
  width: 100%; background: transparent; border: none;
  color: var(--bright); font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; padding: 8px 8px; outline: none;
}
.items-tbl input:focus { background: rgba(167,139,250,0.04); }
.items-tbl select { appearance: none; cursor: pointer; }
.del-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; font-size: 13px; }
.del-btn:hover { color: var(--rose); }

/* Totals */
.inv-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.totals-box { background: var(--ink3); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.t-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--dim); border-bottom: 1px solid rgba(37,44,61,0.4); }
.t-row:last-of-type { border: none; }
.t-row.grand { font-size: 16px; font-weight: 700; color: var(--white); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.t-words { font-size: 11px; color: var(--muted); font-style: italic; text-align: right; margin-top: 8px; }

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.empty-box { text-align: center; padding: 64px 20px; background: var(--ink2); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-illo { font-size: 52px; margin-bottom: 18px; }
.empty-box h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 18px; font-weight: 700; color: var(--bright); margin-bottom: 8px; }
.empty-box p { color: var(--muted); font-size: 13.5px; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--ink2); border: 1px solid var(--emerald);
  color: var(--emerald); padding: 13px 22px;
  border-radius: var(--r); font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow), 0 0 20px rgba(52,211,153,0.12);
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
@keyframes toastIn { from{transform:translateY(20px) scale(0.95);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .gst-tiles { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: repeat(3,1fr); }
  .payable-grid { grid-template-columns: 1fr 1fr; }
  .auth-right { width: 420px; }
}
@media (max-width: 900px) {
  #auth-screen { flex-direction: column; }
  .auth-left { min-height: 240px; }
  .auth-right { width: 100%; padding: 32px 24px; }
  .dash-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .grid-2 { grid-template-columns: 1fr; }
  .info-card.span-2 { grid-column: span 1; }
  .payable-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 150; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: flex !important; }
  .content { padding: 16px 12px; }
  .kpi-row { grid-template-columns: 1fr; }
  .fg2 { grid-template-columns: 1fr; }
  .fg3 { grid-template-columns: 1fr 1fr; }
  .fld-2, .fld-3 { grid-column: span 1; }
  .plan-row { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .gst-tiles { grid-template-columns: 1fr 1fr; }
  .tb-user-info { display: none; }
}

/* ── PDF Button ─────────────────────────────────── */
.pdf-btn {
  background: rgba(100, 80, 240, 0.08) !important;
  border-color: rgba(100, 80, 240, 0.3) !important;
  color: var(--violet) !important;
  font-weight: 600 !important;
}
.pdf-btn:hover {
  background: rgba(100, 80, 240, 0.16) !important;
  border-color: var(--violet) !important;
  color: var(--violet) !important;
}

/* ── New sections — Reports, Stock, Profile ────────────────── */
.rpt-panel { animation: secIn 0.2s ease; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Compact 2-col grid for modals */
.fg2.mb-16 { margin-bottom: 16px; }

/* Report date row */
.rpt-date-row { display:flex; gap:10px; align-items:flex-end; margin-bottom:16px; }

/* Stock status colour aliases */
.badge-in_stock  { background:rgba(52,211,153,.12); color:var(--emerald); }
.badge-low_stock { background:rgba(251,191,36,.12);  color:var(--amber); }
.badge-out_of_stock { background:rgba(251,113,133,.12); color:var(--rose); }

/* Prevent select dropdown overflow in modals */
.modal-body select { appearance:none; }

/* ── LAYOUT FIXES ────────────────────────────────────────────── */
.topbar { box-sizing: border-box; }
.tb-left { overflow: hidden; }
.tb-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tb-right { flex-shrink: 0; }
.tb-user-info { display: flex; flex-direction: column; }
.tb-name { white-space: nowrap; }
.tb-sub { white-space: nowrap; }
.sec { max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nice-table { min-width: max-content; }
.nice-table.full { min-width: 900px; }
.overlay { z-index: 1000; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tb-breadcrumb { max-width: 200px; }
}
@media (max-width: 900px) {
  .tb-user-info { display: none; }
  .tb-breadcrumb { max-width: 150px; font-size: 13px; }
}
@media (max-width: 768px) {
  .main { margin-left: 0; }
  .menu-btn { display: flex !important; }
  .sidebar { z-index: 200; }
  .content { padding: 16px 12px; }
  .sec-title { font-size: 18px; }
  .kpi-row { grid-template-columns: 1fr; }
  .fg2, .fg3 { grid-template-columns: 1fr; }
}

/* ── SELECT DROPDOWN FIX (all item/product dropdowns) ──────── */
/* Fix white text on white background in all select dropdowns */
select {
  background: #1a1a2e;
  color: #e2e0f0;
}
select option {
  background: #1a1a2e !important;
  color: #e2e0f0 !important;
}
select option:hover,
select option:focus,
select option:checked {
  background: #7c3aed !important;
  color: #fff !important;
}
/* Specifically target item row selects */
#items-body select,
#bill-items-body select,
#est-items-body select,
#items-body select option,
#bill-items-body select option,
#est-items-body select option {
  background: #1a1a2e !important;
  color: #e2e0f0 !important;
}
