/* ============================================================
   JGC – Wisdsol Tech
   Design adapted from Household of Faith (faith.zip)
   Wisdsol Tech 2026
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --primary:   #1a3c6e;
  --secondary: #e8820c;
  --accent:    #f4a030;
  --success:   #27ae60;
  --danger:    #c0392b;
  --sidebar-w: 262px;
  --topbar-h:  58px;
  --font-h:    'Cinzel', serif;
  --font-b:    'Lato', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-b); background: var(--bs-body-bg); color: var(--bs-body-color); }

/* ════════════════════════════════════════════════════════════
   PUBLIC SITE — DARK MODE
   Bootstrap 5.3 auto-switches --bs-body-bg/color via data-bs-theme,
   but our custom classes use hardcoded hex values, so they need
   explicit dark overrides here.
   ════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] body { background: #11151f; color: #cbd5e1; }

/* Cards (product/service/project/news grids site-wide) */
[data-bs-theme="dark"] .jgc-card { background: #1a1f2e; color: #cbd5e1; border-color: #2d3748; }
[data-bs-theme="dark"] .jgc-card .text-muted { color: #94a3b8 !important; }
[data-bs-theme="dark"] .card { background: #1a1f2e; color: #cbd5e1; border-color: #2d3748; }

/* Section label / heading text */
[data-bs-theme="dark"] .section-label { color: var(--accent); }
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 { color: #f1f5f9; }

/* Bootstrap utility overrides that assume light mode */
[data-bs-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-bs-theme="dark"] .bg-light { background: #1e2537 !important; }
[data-bs-theme="dark"] .border { border-color: #2d3748 !important; }
[data-bs-theme="dark"] .table { color: #cbd5e1; }

/* Forms on public pages (contact, login) */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #1a1f2e; color: #e2e8f0; border-color: #2d3748;
}
[data-bs-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus { background: #1a1f2e; color: #e2e8f0; }

/* Modals / dropdowns on public pages */
[data-bs-theme="dark"] .modal-content { background: #1a1f2e; color: #cbd5e1; }
[data-bs-theme="dark"] .dropdown-menu:not(.dropdown-menu-dark) { background: #1a1f2e; border-color: #2d3748; }
[data-bs-theme="dark"] .dropdown-menu:not(.dropdown-menu-dark) .dropdown-item { color: #cbd5e1; }
[data-bs-theme="dark"] .dropdown-menu:not(.dropdown-menu-dark) .dropdown-item:hover { background: #232b3d; }

/* Badges with light backgrounds need contrast in dark mode */
[data-bs-theme="dark"] .badge.bg-light { background: #2d3748 !important; color: #cbd5e1 !important; }

/* ════════════════════════════════════════════════════════════
   ERP LAYOUT  (standalone – does NOT extend public base)
   ════════════════════════════════════════════════════════════ */

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: var(--sidebar-w);
  background: linear-gradient(180deg, #1a3c6e 0%, #080f3a 100%);
  color: #fff;
  display: flex; flex-direction: column;
  z-index: 1050;
  box-shadow: 4px 0 24px rgba(0,0,0,.3);
  transform: translateX(-100%);           /* hidden by default */
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar.open { transform: translateX(0); }

/* Logo band */
.sidebar-logo {
  flex-shrink: 0;
  padding: 1.2rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: center;
  display: block; cursor: pointer; transition: opacity .15s;
}
.sidebar-logo:hover { opacity: .85; }
.sidebar-logo .logo-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  letter-spacing: 1px;
}
.sidebar-logo h5 {
  font-family: var(--font-h); font-size: .75rem; color: var(--accent);
  margin: .5rem 0 .1rem; letter-spacing: 1.2px; line-height: 1.3;
}
.sidebar-logo small { color: rgba(255,255,255,.45); font-size: .65rem; display: block; }

/* Company switcher */
.sidebar-company-switcher {
  flex-shrink: 0; padding: .45rem .65rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-company-btn {
  width: 100%; padding: .38rem .65rem !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.82) !important;
  border-radius: 7px !important; font-size: .8rem;
  display: flex; align-items: center; gap: .45rem;
  transition: background .15s; text-align: left;
}
.sidebar-company-btn:hover { background: rgba(255,255,255,.15) !important; }
.company-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* Scrollable nav */
.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: .5rem;
  min-height: 0;                           /* flex child must have this */
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 2px; }

/* Nav group header */
.nav-group-header {
  padding: .55rem 1rem .2rem;
  color: rgba(255,255,255,.38);
  font-size: .61rem; text-transform: uppercase; letter-spacing: 1.6px;
  margin-top: .35rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none; transition: color .2s;
}
.nav-group-header:hover { color: rgba(255,255,255,.65); }
.nav-group-header .toggle-icon { font-size: .55rem; transition: transform .3s; }
.nav-group-header.collapsed .toggle-icon { transform: rotate(-90deg); }

.nav-group-items {
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.nav-group-items.collapsed { max-height: 0 !important; }

/* Nav links */
.sidebar .nav-link {
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem 1.1rem;
  margin: 1px 8px;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.sidebar .nav-link i { width: 17px; text-align: center; font-size: .88rem; flex-shrink: 0; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.11); color: #fff; transform: translateX(3px); }
.sidebar .nav-link.active {
  background: rgba(255,255,255,.17); color: #fff; font-weight: 600;
}
.sidebar .nav-link.active::before {
  content: '';
  position: absolute; left: 8px;
  width: 3px; height: 65%;
  background: var(--accent); border-radius: 2px;
}

/* Sidebar footer */
.sidebar-footer {
  flex-shrink: 0; padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.09);
}
.sidebar-footer .user-block {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(255,255,255,.07);
  border-radius: 9px; padding: .55rem .75rem;
  margin-bottom: .45rem;
}
.sidebar-footer .user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; flex-shrink: 0;
}
.sidebar-footer .user-name  { font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-footer .user-role  { font-size: .67rem; color: rgba(255,255,255,.48); }
.sidebar-footer .logout-btn {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .48rem .9rem; border-radius: 8px;
  color: rgba(255,120,120,.88); font-size: .82rem;
  text-decoration: none; transition: background .2s, color .2s;
}
.sidebar-footer .logout-btn:hover { background: rgba(255,60,60,.14); color: #ff7070; }

/* ── Mobile overlay ─────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.52); z-index: 1040;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Main content ───────────────────────────────────────────── */
.main-content {
  margin-left: 0;                         /* default: sidebar hidden */
  min-height: 100vh;
  transition: margin-left .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
/* On desktop (>=992px) sidebar is always open, so push content */
@media (min-width: 992px) {
  .main-content { margin-left: var(--sidebar-w); }
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .topbar { background: #1a1f2e; border-color: #2d3748; }

.topbar-left  { display: flex; align-items: center; gap: .75rem; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }

.hamburger-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fff; border: 1.5px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555; transition: all .2s; flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-bs-theme="dark"] .hamburger-btn { background: #1e2537; border-color: #2d3748; color: #cbd5e1; }

.topbar-user {
  display: flex; align-items: center; gap: .55rem;
  padding: .28rem .55rem; border-radius: 9px;
  background: #f8f9fa; border: 1px solid #eee; cursor: pointer;
}
.topbar-user:hover { background: #eef2ff; }
[data-bs-theme="dark"] .topbar-user { background: #1e2537; border-color: #2d3748; }
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .74rem; flex-shrink: 0;
}
.topbar-name { font-size: .81rem; font-weight: 600; color: #333; line-height: 1.2; }
.topbar-role { font-size: .66rem; color: #888; }
[data-bs-theme="dark"] .topbar-name { color: #e2e8f0; }
[data-bs-theme="dark"] .topbar-role { color: #94a3b8; }

.theme-toggle-btn, .notif-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: #fff; border: 1.5px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #666; transition: all .2s; position: relative;
}
.theme-toggle-btn:hover, .notif-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-bs-theme="dark"] .theme-toggle-btn,
[data-bs-theme="dark"] .notif-btn { background: #1e2537; border-color: #2d3748; color: #cbd5e1; }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid #fff;
}

/* ── Page content ───────────────────────────────────────────── */
.page-content { padding: 1.4rem; flex: 1; background: #f0f2f5; }
[data-bs-theme="dark"] .page-content { background: #0f1117; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem;
}
.page-header h4 {
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 600;
  color: var(--primary); margin: 0;
}
[data-bs-theme="dark"] .page-header h4 { color: var(--accent); }
.page-subtitle { font-size: .8rem; color: #888; margin-top: .2rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
[data-bs-theme="dark"] .card { background: #1a1f2e; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.card-header {
  background: transparent; border-bottom: 1px solid #f0f0f0;
  font-weight: 600; padding: .85rem 1.2rem; font-size: .9rem;
}
[data-bs-theme="dark"] .card-header { border-color: #2d3748; color: #e2e8f0; }

/* ── STAT CARDS (faith gradient style) ─────────────────────── */
.stat-card {
  border-radius: 14px; padding: 1.4rem; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  display: block; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.22); color: #fff; }
.stat-card::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.stat-card::before {
  content: ''; position: absolute; right: 20px; bottom: -30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.stat-icon { font-size: 2rem; opacity: .75; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: .77rem; opacity: .85; }
.stat-trend { font-size: .73rem; opacity: .88; margin-top: .25rem; }

.grad-green  { background: linear-gradient(135deg,#27ae60,#2ecc71); }
.grad-red    { background: linear-gradient(135deg,#c0392b,#e74c3c); }
.grad-orange { background: linear-gradient(135deg,#e8820c,#f4a030); }
.grad-blue   { background: linear-gradient(135deg,#1a3c6e,#3949ab); }
.grad-teal   { background: linear-gradient(135deg,#0090d4,#00c4a0); }
.grad-purple { background: linear-gradient(135deg,#6f42c1,#9b59b6); }
.grad-dark   { background: linear-gradient(135deg,#2c3e50,#4a5568); }
.grad-amass  { background: linear-gradient(135deg,#d44000,#f4a030); }

/* ── Tables ─────────────────────────────────────────────────── */
.table { font-size: .86rem; }
.table thead th {
  background: #f8f9fa; font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid #dee2e6; padding: .75rem 1rem; white-space: nowrap;
}
[data-bs-theme="dark"] .table thead th { background: #1e2537; border-color: #2d3748; color: #94a3b8; }
.table tbody td { padding: .72rem 1rem; vertical-align: middle; }
.table tbody tr:hover { background: rgba(26,60,110,.04); }
[data-bs-theme="dark"] .table tbody tr:hover { background: rgba(255,255,255,.04); }
[data-bs-theme="dark"] .table tbody td { border-color: #2d3748; color: #e2e8f0; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px; border: 1.5px solid #e0e0e0; font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .18rem rgba(26,60,110,.18);
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #1e2537; border-color: #2d3748; color: #e2e8f0;
}
.form-label-upper {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #6c757d; margin-bottom: .3rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #0e2347; border-color: #0e2347; }

/* ── Status badges ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .58rem; border-radius: 20px;
  font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.s-success  { background: #e9f7ef; color: #1e8449; }
.s-danger   { background: #fdecea; color: #b71c1c; }
.s-warning  { background: #fef9e7; color: #9a7d0a; }
.s-info     { background: #e8f4fd; color: #0077b6; }
.s-primary  { background: #eef2ff; color: #1a3c6e; }
.s-secondary{ background: #f1f3f5; color: #555; border: 1px solid #dee2e6; }

/* ── Quick tiles ────────────────────────────────────────────── */
.quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .85rem .5rem; background: #fff;
  border: 1.5px solid #eee; border-radius: 12px;
  text-decoration: none; color: #444; font-size: .72rem; font-weight: 600;
  transition: all .2s;
}
.quick-tile:hover {
  border-color: var(--primary); background: #eef2ff;
  color: var(--primary); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26,60,110,.12);
}
.quick-tile i { font-size: 1.35rem; }
[data-bs-theme="dark"] .quick-tile { background: #1a1f2e; border-color: #2d3748; color: #94a3b8; }
[data-bs-theme="dark"] .quick-tile:hover { border-color: var(--accent); color: var(--accent); background: rgba(244,160,48,.07); }

/* ── Tenant / company tiles ─────────────────────────────────── */
.company-tile {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08); background: #fff;
  transition: transform .2s, box-shadow .2s; border: none;
}
.company-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.13); }
[data-bs-theme="dark"] .company-tile { background: #1a1f2e; }
.module-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; border: 1.5px solid #eee; border-radius: 10px;
  margin-bottom: .45rem; background: #fff; transition: border-color .15s;
}
.module-toggle-row:hover { border-color: var(--primary); }
[data-bs-theme="dark"] .module-toggle-row { background: #1a1f2e; border-color: #2d3748; }

/* ════════════════════════════════════════════════════════════
   PUBLIC WEBSITE (extends base/base.html)
   ════════════════════════════════════════════════════════════ */
.jgc-navbar {
  background: #fff; border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(26,60,110,.08);
}
[data-bs-theme="dark"] .jgc-navbar { background: #1a1f2e; border-color: var(--accent); }
.jgc-navbar .nav-link {
  font-weight: 500; padding: .5rem .85rem !important;
  border-radius: .4rem; transition: background .15s;
}
.jgc-navbar .nav-link:hover { background: rgba(26,60,110,.07); color: var(--primary) !important; }
.brand-name {
  font-family: var(--font-h); font-weight: 700; font-size: .92rem;
  color: var(--primary); line-height: 1.1;
}
.brand-sub { font-size: .62rem; color: #888; }
[data-bs-theme="dark"] .brand-name { color: var(--accent); }

/* Hero */
/* .jgc-hero removed — superseded by the hero carousel CSS in corporate/home.html;
   no template references this class anymore. */
.jgc-hero-content { position: relative; z-index: 2; }
.jgc-hero h1 { font-family: var(--font-h); font-size: clamp(2rem,5vw,3.2rem); }

.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--secondary);
}
.jgc-section { padding: 5rem 0; }
.jgc-section-alt { background: #f8f9fa; }
[data-bs-theme="dark"] .jgc-section-alt { background: #1a1f2e; }

/* Public cards */
.jgc-card {
  border: none; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.jgc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.jgc-card-img { height: 220px; object-fit: cover; width: 100%; }

/* Footer */
.jgc-footer { background: var(--primary); color: rgba(255,255,255,.85); }
.jgc-footer h5, .jgc-footer h6 { color: #fff; }
.footer-link { color: rgba(255,255,255,.7); text-decoration: none; display: block; padding: .15rem 0; font-size: .9rem; }
.footer-link:hover { color: var(--accent); }
.jgc-social { color: rgba(255,255,255,.7); transition: color .2s, transform .2s; display: inline-block; }
.jgc-social:hover { color: var(--accent); transform: translateY(-2px); }

/* Login */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg,#1a3c6e 0%,#080f3a 55%,#e8820c 100%);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.login-card { width: 100%; max-width: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card-header { background: #1a3c6e; padding: 2rem; text-align: center; color: #fff; }
.login-card-header .login-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
  margin-bottom: .75rem; border: 3px solid rgba(255,255,255,.25);
}
.login-card-header h2 { font-family: var(--font-h); font-size: .95rem; letter-spacing: 2px; margin: .25rem 0 0; }
.login-card-header p  { opacity: .6; font-size: .8rem; margin: .2rem 0 0; }
.login-card-body { background: #fff; padding: 2rem; }
[data-bs-theme="dark"] .login-card-body { background: #1a1f2e; }

/* PWA */
.pwa-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #dee2e6;
  display: flex; justify-content: space-around; align-items: center;
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); z-index: 1000;
}
[data-bs-theme="dark"] .pwa-bottom-nav { background: #1a1f2e; border-color: #2d3748; }
.pwa-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  flex: 1; padding: .4rem; text-decoration: none; color: #888; font-size: .65rem;
  transition: color .2s;
}
.pwa-nav-item i { font-size: 1.35rem; }
.pwa-nav-item.active { color: var(--primary); font-weight: 600; }

/* PWA install banner */
.pwa-install-banner {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  width: min(92vw, 400px); z-index: 1060; background: #fff;
  border: 1px solid #dee2e6; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15); padding: .85rem 1rem;
}
[data-bs-theme="dark"] .pwa-install-banner { background: #1a1f2e; border-color: #2d3748; color: #cbd5e1; }

/* GPS map */
#delivery-map, #executive-map { height: 400px; border-radius: 12px; border: 2px solid #eee; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,60,110,.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Responsive */
@media (max-width: 575px) {
  .stat-value { font-size: 1.3rem !important; }
  .page-content { padding: .9rem; }
  .jgc-hero { min-height: 70vh; }
  .jgc-section { padding: 3rem 0; }
}
@media print {
  .sidebar, .topbar, .pwa-install-banner, .pwa-bottom-nav { display: none !important; }
  .main-content { margin-left: 0 !important; }
}
