/* JetLog Top Navigation — nav.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Body offset ===== */
body.jn-has-sidebar { margin-left: 0; padding-top: 56px; transition: padding-top .3s ease; }

/* ===== Header bar ===== */
.jn-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(135deg, var(--jl-brand-dark, #0f3d1f) 0%, var(--jl-brand, #1c5636) 50%, var(--jl-brand-light, #2d6e45) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex; align-items: center; padding: 0 16px; gap: 4px;
  z-index: 100;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Logo ── */
.jn-logo {
  font-size: 20px; font-weight: 700; color: #fff;
  text-decoration: none; margin-right: 12px; white-space: nowrap;
  letter-spacing: 1px; flex-shrink: 0;
}
.jn-logo:hover { opacity: 0.9; }

/* ── Desktop nav ── */
.jn-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; min-width: 0; overflow: visible;
}

.jn-nav-group {
  position: relative;
}

.jn-nav-item {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; cursor: pointer;
  background: none; border: none;
  font-family: inherit; white-space: nowrap;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.jn-nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.jn-nav-item.jn-active { background: rgba(255,255,255,0.18); color: #fff; font-weight: 600; }

.jn-nav-chev {
  width: 12px; height: 12px; flex-shrink: 0;
  transition: transform .2s;
}
.jn-nav-item[aria-expanded="true"] .jn-nav-chev {
  transform: rotate(180deg);
}

/* ── Dropdown: static HTML pages (.jn-dropdown is the container) ── */
.jn-dropdown {
  position: relative;
}
.jn-dropdown.jn-open .jn-chev {
  transform: rotate(180deg);
}
.jn-dd-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; max-height: 70vh; overflow-y: auto;
  z-index: 110;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
}
.jn-dd-panel::-webkit-scrollbar { width: 4px; }
.jn-dd-panel::-webkit-scrollbar-track { background: transparent; }
.jn-dd-panel::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.jn-dropdown.jn-open .jn-dd-panel {
  display: block; opacity: 1; transform: translateY(0);
}
.jn-dd-panel.jn-dd-right { left: auto; right: 0; }

/* ── Dropdown: nav.js pages (.jn-dropdown is the flyout panel inside .jn-nav-group) ── */
.jn-nav-group > .jn-dropdown {
  display: none; position: fixed;
  background: #ffffff; border-radius: 12px;
  min-width: 260px; max-height: 70vh; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  padding: 8px 0; z-index: 110;
  scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
}
.jn-nav-group > .jn-dropdown::-webkit-scrollbar { width: 4px; }
.jn-nav-group > .jn-dropdown::-webkit-scrollbar-track { background: transparent; }
.jn-nav-group > .jn-dropdown::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.jn-nav-group > .jn-dropdown.jn-open { display: block; }
.jn-nav-group > .jn-dropdown-right { left: auto; right: 0; }

.jn-dropdown-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #94a3b8;
  padding: 10px 16px 6px; display: block;
  user-select: none;
}
.jn-dropdown-label:first-child { padding-top: 6px; }

.jn-dropdown-sep {
  height: 1px; background: #f1f5f9; margin: 6px 12px;
}

.jn-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: #334155; text-decoration: none;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.jn-dropdown-item:hover { background: #f8fafc; color: #1e293b; }
.jn-dropdown-item.jn-active { background: #f1f5f9; color: #1c5636; font-weight: 600; }
.jn-dropdown-item i, .jn-dropdown-item svg {
  width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; stroke-width: 1.75;
}
.jn-dropdown-item.jn-active i,
.jn-dropdown-item.jn-active svg { color: #1c5636; }

/* Highlighted dropdown item (e.g. Get a Quote) */
.jn-dropdown-item.jn-dropdown-highlight {
  background: #f0fdf4; color: #166534; font-weight: 600;
}
.jn-dropdown-item.jn-dropdown-highlight i,
.jn-dropdown-item.jn-dropdown-highlight svg { color: #166534; }
.jn-dropdown-item.jn-dropdown-highlight:hover { background: #dcfce7; }

/* Coming soon items */
.jn-dropdown-item.jn-coming-soon {
  opacity: 0.4; cursor: default; pointer-events: none;
}
.jn-dropdown-item.jn-coming-soon::after {
  content: 'Soon'; margin-left: auto;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #94a3b8; background: #f1f5f9;
  padding: 2px 6px; border-radius: 4px;
}

/* ===== "Get a Quote" CTA button ===== */
.jn-cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: #22c55e; border: none;
  box-shadow: 0 1px 4px rgba(34,197,94,0.3);
  transition: background .15s, box-shadow .15s, transform .1s;
  font-family: inherit; cursor: pointer; line-height: 1.4;
}
.jn-cta-btn:hover { background: #16a34a; box-shadow: 0 2px 8px rgba(34,197,94,0.4); }
.jn-cta-btn:active { transform: scale(0.97); }
.jn-cta-btn svg { flex-shrink: 0; }

/* ===== Field App — distinctive nav item ===== */
.jn-nav-field-app {
  background: rgba(34,197,94,0.15) !important;
  border: 1px solid rgba(34,197,94,0.3);
  color: #bbf7d0 !important;
}
.jn-nav-field-app:hover {
  background: rgba(34,197,94,0.25) !important;
  color: #fff !important;
}

/* ===== Header controls (right side) ===== */
.jn-header-controls {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}

/* Generic header button */
.jn-hdr-btn {
  position: relative; background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer; padding: 6px;
  border-radius: 6px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.jn-hdr-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.jn-hdr-btn svg { width: 18px; height: 18px; }

/* ===== Sync dot ===== */
.jn-sync { position: relative; }
.jn-sync-dot-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px; transition: background .15s;
}
.jn-sync-dot-btn:hover { background: rgba(255,255,255,0.12); }

.jn-sync-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #64748b; transition: background .3s;
}
.jn-sync-dot.jn-sync-healthy { background: #22C55E; }
.jn-sync-dot.jn-sync-warning { background: #F59E0B; animation: jn-pulse 2s ease-in-out infinite; }
.jn-sync-dot.jn-sync-critical { background: #EF4444; animation: jn-pulse 1s ease-in-out infinite; }
.jn-sync-dot.jn-sync-unknown { background: #64748b; }
.jn-sync-dot.jn-sync-active { animation: jn-pulse-fast .8s ease-in-out infinite; }
@keyframes jn-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes jn-pulse-fast { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Sync dropdown */
.jn-sync-dd {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; min-width: 260px; padding: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 120; overflow: hidden;
}
.jn-sync-dd.jn-open { display: block; }
.jn-sync-dd-head { font-size: 13px; font-weight: 600; color: #1e293b; padding: 12px 14px 8px; }
.jn-sync-dd-sep { height: 1px; background: #f1f5f9; margin: 0; }
.jn-sync-dd-list { padding: 6px 0; }
.jn-sync-dd-row { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 12px; }
.jn-sync-dd-label { color: #475569; flex: 1; font-weight: 500; }
.jn-sync-dd-time { color: #94a3b8; font-size: 11px; }
.jn-sync-dd-icon { width: 16px; text-align: center; font-size: 11px; font-weight: 700; }
.jn-sync-dd-icon.jn-sync-healthy { color: #22C55E; }
.jn-sync-dd-icon.jn-sync-warning { color: #F59E0B; }
.jn-sync-dd-icon.jn-sync-critical { color: #EF4444; }
.jn-sync-dd-icon.jn-sync-unknown { color: #64748b; }
.jn-sync-dd-actions { display: flex; gap: 8px; padding: 8px 14px; }
.jn-sync-dd-btn {
  flex: 1; padding: 6px 0; border: 1px solid #e2e8f0; border-radius: 6px;
  background: transparent; color: #64748b; font-size: 12px; font-weight: 500;
  cursor: pointer; text-align: center; text-decoration: none; transition: all .15s;
  font-family: inherit; display: block;
}
.jn-sync-dd-btn:hover { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; }
.jn-sync-dd-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Warehouse selector ===== */
.jn-wh-select {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 4px 24px 4px 8px; font-size: 12px; font-weight: 500;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23fff' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
  max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: inherit;
}
.jn-wh-select option { color: #1e293b; background: #fff; }
.jn-wh-select:hover { border-color: rgba(255,255,255,0.4); }
.jn-wh-select:focus { outline: none; border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }

/* ===== Track button ===== */
.jn-track-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.jn-track-label {
  color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 500;
  transition: color .15s;
}
.jn-track-btn:hover .jn-track-label { color: #fff; }

/* ===== Install App button (mobile only) ===== */
.jn-install-btn {
  background: rgba(255,255,255,0.12); border-radius: 8px; gap: 4px;
}
.jn-install-btn:hover { background: rgba(255,255,255,0.2); }
.jn-install-label {
  color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 600;
}
@media (min-width: 768px) {
  .jn-install-btn { display: none !important; }
}

/* ===== Bell badge ===== */
.jn-bell-badge {
  position: absolute; top: 0; right: 0; background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700; min-width: 14px; height: 14px;
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; transform: translate(25%, -25%); line-height: 1;
}
.jn-bell-badge:empty, .jn-bell-badge[data-count="0"] { display: none; }

/* ===== Notification panel ===== */
.jn-notif-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  width: 360px; max-height: 420px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 120; overflow: hidden;
}
.jn-notif-panel.jn-open { display: block; }
.jn-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.jn-notif-head h3 { font-size: 14px; font-weight: 600; color: #1e293b; margin: 0; }
.jn-notif-head button { background: none; border: none; color: #1c5636; font-size: 12px; cursor: pointer; font-weight: 500; font-family: inherit; }
.jn-notif-head button:hover { text-decoration: underline; }
.jn-notif-list { overflow-y: auto; max-height: 320px; }
.jn-notif-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f8fafc; cursor: pointer; transition: background .15s; }
.jn-notif-item:hover { background: #f8fafc; }
.jn-notif-item.jn-unread { background: #f0fdf4; }
.jn-notif-icon { font-size: 20px; flex-shrink: 0; width: 32px; height: 32px; line-height: 32px; text-align: center; overflow: hidden; }
.jn-notif-body { flex: 1; min-width: 0; }
.jn-notif-title { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-notif-msg { font-size: 12px; color: #475569; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-notif-time { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.jn-notif-empty { padding: 32px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.jn-notif-footer { padding: 8px 16px; border-top: 1px solid #f1f5f9; text-align: center; }
.jn-notif-footer a { color: #1c5636; font-size: 13px; font-weight: 500; text-decoration: none; }
.jn-notif-footer a:hover { text-decoration: underline; }

/* ===== Theme toggle ===== */
.jn-theme-btn {
  position: relative; background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer; padding: 6px;
  border-radius: 6px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.jn-theme-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* ===== User avatar in header ===== */
.jn-user-wrap { position: relative; }
.jn-user-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px; transition: background .15s;
  font-family: inherit;
}
.jn-user-btn:hover { background: rgba(255,255,255,0.12); }
.jn-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  color: #fff; overflow: hidden; font-size: 11px; font-weight: 700;
  letter-spacing: .5px;
}
.jn-avatar svg { width: 16px; height: 16px; }
.jn-avatar-lg { width: 36px; height: 36px; font-size: 13px; }

/* ── User dropdown ── */
.jn-user-dd {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; min-width: 220px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 120;
}
.jn-user-dd.jn-open { display: block; }
.jn-user-dd-info { padding: 10px 12px; }
.jn-user-dd-info-header { display: flex; align-items: center; gap: 10px; }
.jn-user-dd-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.jn-user-dd-email { font-size: 12px; color: #64748b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.jn-user-dd-sep { height: 1px; background: #f1f5f9; margin: 4px 6px; }
.jn-user-dd-link {
  display: block; padding: 8px 12px; color: #475569;
  font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 6px; transition: all .15s;
}
.jn-user-dd-link:hover { color: #1e293b; background: #f8fafc; }
.jn-user-logout { color: #ef4444; }
.jn-user-logout:hover { color: #ef4444; background: #fef2f2; }
.jn-user-role {
  font-size: 10px; font-weight: 600; color: #fff; padding: 2px 8px;
  border-radius: 9999px; line-height: 1.4; letter-spacing: 0.025em; text-transform: uppercase;
  display: inline-block; margin-top: 2px;
}

/* ===== Cmd+K hint badge ===== */
.jn-cmdk-hint {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 4px 8px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap; font-family: inherit;
}
.jn-cmdk-hint:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.15); }
.jn-cmdk-hint svg { width: 14px; height: 14px; }

/* ===== Hamburger ===== */
.jn-hamburger {
  display: none; background: none; border: none;
  color: rgba(255,255,255,0.85); cursor: pointer;
  padding: 6px; border-radius: 6px; transition: background .15s;
  align-items: center; justify-content: center;
}
.jn-hamburger:hover { background: rgba(255,255,255,0.12); }
.jn-hamburger svg { width: 22px; height: 22px; }

/* ===== Mobile panel (slide from left) ===== */
.jn-mobile-panel {
  display: none; position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: #fff; z-index: 200;
  transform: translateX(-100%); transition: transform .3s ease;
  flex-direction: column; overflow: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.jn-mobile-panel.jn-open {
  display: flex; transform: translateX(0);
}

.jn-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.jn-mobile-header .jn-logo { color: #1c5636; font-size: 18px; margin-right: 0; }
.jn-mobile-close {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 4px; border-radius: 6px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.jn-mobile-close:hover { color: #1e293b; background: #f1f5f9; }

.jn-mobile-nav {
  flex: 1; overflow-y: auto; padding: 8px 0;
  scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
}
.jn-mobile-nav::-webkit-scrollbar { width: 4px; }
.jn-mobile-nav::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Mobile direct link (Dashboard) */
.jn-mobile-link {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: #334155; text-decoration: none; transition: background .12s, color .12s;
}
.jn-mobile-link:hover { background: #f8fafc; color: #1e293b; }
.jn-mobile-link.jn-active { color: #1c5636; font-weight: 600; background: #f0fdf4; }
.jn-mobile-link.jn-coming-soon {
  opacity: 0.4; cursor: default; pointer-events: none;
}

/* Mobile accordion group */
.jn-mobile-group { border-top: 1px solid #f1f5f9; }
.jn-mobile-group:first-of-type { border-top: none; }

.jn-mobile-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: #1e293b; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left; transition: background .12s;
}
.jn-mobile-group-btn:hover { background: #f8fafc; }
.jn-mobile-group-btn.jn-group-active { color: #1c5636; }

.jn-mobile-chev {
  width: 14px; height: 14px; flex-shrink: 0; color: #94a3b8;
  transition: transform .2s;
}
.jn-mobile-group.jn-expanded .jn-mobile-chev { transform: rotate(180deg); }

.jn-mobile-group-items {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  background: #fafbfc;
}
.jn-mobile-group.jn-expanded .jn-mobile-group-items {
  max-height: 2000px;
}

.jn-mobile-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #94a3b8;
  padding: 10px 20px 4px; display: block; user-select: none;
}
.jn-mobile-sep { height: 1px; background: #f1f5f9; margin: 4px 16px; }

/* Mobile "Get a Quote" CTA */
.jn-mobile-cta {
  display: block; margin: 8px 16px 4px; padding: 12px 16px;
  background: #22c55e; color: #fff; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-align: center;
  text-decoration: none; letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  transition: background .15s;
}
.jn-mobile-cta:hover { background: #16a34a; }

/* Mobile Field App — distinctive item */
.jn-mobile-field-app {
  color: #22c55e !important; font-weight: 600 !important;
  border-left: 3px solid #22c55e; padding-left: 17px !important;
}

/* Mobile user area */
.jn-mobile-user {
  padding: 12px 16px; border-top: 1px solid #f1f5f9; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.jn-mobile-user-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.jn-mobile-user-role { font-size: 10px; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 9999px; display: inline-block; }

/* ===== Overlay (backdrop) ===== */
.jn-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 150;
  backdrop-filter: blur(2px);
  transition: opacity .2s;
}
.jn-overlay.jn-open { display: block; }

/* ===== Desktop (>768px) ===== */
@media (min-width: 769px) {
  .jn-hamburger { display: none !important; }
  .jn-mobile-panel { display: none !important; }
  .jn-overlay { display: none !important; }
}

/* ===== Mobile (<768px) ===== */
@media (max-width: 768px) {
  body.jn-has-sidebar { padding-top: 56px; }

  .jn-nav { display: none !important; }
  .jn-hamburger { display: flex; }

  /* Compact controls on mobile */
  .jn-wh-select-wrap { display: none; }
  .jn-cmdk-hint { display: none; }
  .jn-cta-btn { display: none; }
  .jn-hdr-btn.jn-anomaly-btn { display: none; }
  .jn-track-label { display: none; }

  /* Notification panel full width */
  .jn-notif-panel { width: calc(100vw - 24px); right: -8px; }
}

/* ===== Cmd+K Search Overlay ===== */
.jn-search-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: min(20vh, 160px);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.jn-search-overlay.jn-open { opacity: 1; pointer-events: auto; }

.jn-search-card {
  width: 100%; max-width: 520px; margin: 0 16px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.2);
  overflow: hidden;
}

.jn-search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid #f1f5f9;
}
.jn-search-input-wrap svg { flex-shrink: 0; color: #94a3b8; }
.jn-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b; caret-color: #1c5636;
}
.jn-search-input::placeholder { color: #cbd5e1; }
.jn-search-kbd {
  font-size: 11px; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-weight: 500;
  color: #94a3b8; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 4px;
  padding: 2px 6px; line-height: 1.3;
}

.jn-search-results {
  max-height: 340px; overflow-y: auto; padding: 6px 0;
  scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
}
.jn-search-results:empty { display: none; }
.jn-search-results::-webkit-scrollbar { width: 4px; }
.jn-search-results::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.jn-search-group-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8;
  padding: 8px 18px 4px;
}

.jn-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; cursor: pointer; text-decoration: none;
  color: #475569; font-size: 14px;
  transition: background .1s;
}
.jn-search-item:hover, .jn-search-item.jn-search-active {
  background: #f8fafc; color: #1e293b;
}
.jn-search-item.jn-search-active {
  background: #f0fdf4; color: #1e293b;
}
.jn-search-item i { flex-shrink: 0; width: 16px; height: 16px; color: #94a3b8; }

.jn-search-empty {
  text-align: center; padding: 24px 18px; font-size: 13px; color: #94a3b8;
}

.jn-search-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px; border-top: 1px solid #f1f5f9;
  font-size: 11px; color: #94a3b8;
}
.jn-search-footer kbd {
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 10px; font-weight: 500;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 3px; padding: 1px 4px;
}

/* ===== Bottom Tab Bar (mobile) ===== */
.jn-bottom-tabs {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1e293b; border-top: 1px solid #334155;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  z-index: 100;
  flex-direction: row; justify-content: space-around; align-items: flex-end;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  will-change: transform;
}
html.jn-light .jn-bottom-tabs { background: #fff; border-top-color: #e2e8f0; }

@media (max-width: 768px) {
  .jn-bottom-tabs { display: flex; }
  body.jn-has-sidebar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

.jn-tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 0; min-width: 56px;
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 10px; font-weight: 500;
  font-family: inherit; text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.jn-tab-item:active { transform: scale(0.92); }
.jn-tab-item svg { width: 22px; height: 22px; }
.jn-tab-item.jn-tab-active { color: var(--jl-accent, #2ee89e); }
html.jn-light .jn-tab-item { color: #94a3b8; }
html.jn-light .jn-tab-item.jn-tab-active { color: var(--jl-brand, #1c5636); }

.jn-tab-scan {
  position: relative;
}
.jn-tab-scan-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: #1c5636;
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px;
  box-shadow: 0 2px 8px rgba(28, 86, 54, 0.4);
  transition: transform 0.15s;
}
.jn-tab-scan-circle:active { transform: scale(0.92); }
.jn-tab-scan-circle svg { width: 24px; height: 24px; color: #fff; }

.jn-tab-badge {
  position: absolute; top: 2px; right: 8px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 14px; height: 14px;
  border-radius: 7px; display: flex;
  align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.jn-tab-badge:empty { display: none; }

/* ===== Scanner Modal ===== */
.jn-scanner-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999; backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  will-change: transform;
}
.jn-scanner-modal.jn-open { display: flex; }
.jn-scanner-modal-inner {
  width: 90%; max-width: 400px;
  background: #1e293b; border-radius: 16px;
  overflow: hidden;
}
html.jn-light .jn-scanner-modal-inner { background: #fff; }
.jn-scanner-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #334155;
}
html.jn-light .jn-scanner-modal-header { border-bottom-color: #e2e8f0; }
.jn-scanner-modal-header span {
  font-size: 16px; font-weight: 600; color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
html.jn-light .jn-scanner-modal-header span { color: #1e293b; }
.jn-scanner-modal-close {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; align-items: center;
}
.jn-scanner-modal-close:hover { color: #fff; }
.jn-scanner-modal-body {
  padding: 16px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.jn-scanner-modal-body #jn-scanner-reader { width: 100%; }
.jn-scanner-manual {
  display: flex; gap: 8px; padding: 0 16px 16px;
}
.jn-scanner-manual input {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #334155; background: #0f172a; color: #fff;
  font-size: 14px; font-family: inherit;
}
html.jn-light .jn-scanner-manual input {
  border-color: #e2e8f0; background: #f8fafc; color: #1e293b;
}
.jn-scanner-manual button {
  padding: 10px 16px; border-radius: 8px;
  background: #1c5636; color: #fff; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}

/* ===== Full-screen search on mobile ===== */
@media (max-width: 768px) {
  .jn-search-card {
    height: 100vh; border-radius: 0; max-width: 100%; margin: 0;
    display: flex; flex-direction: column;
  }
  .jn-search-overlay { padding-top: 0; }
  .jn-search-results { flex: 1; max-height: none; }
  .jn-search-footer { display: none; }
}

/* ===== Footer tracking bar ===== */
.jn-footer-track {
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
html:not(.jn-light) .jn-footer-track { border-top-color: #334155; }
.jn-footer-track-inner {
  display: flex; align-items: center; gap: 8px;
  max-width: 400px; width: 100%;
}
.jn-footer-track-icon {
  flex-shrink: 0; color: #94a3b8; display: flex; align-items: center;
}
.jn-footer-track-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #f8fafc; color: #1e293b;
  font-size: 13px; font-family: inherit;
  transition: border-color .15s;
}
html:not(.jn-light) .jn-footer-track-input {
  background: #1e293b; border-color: #334155; color: #e2e8f0;
}
.jn-footer-track-input:focus {
  outline: none; border-color: #1c5636; box-shadow: 0 0 0 2px rgba(28,86,54,0.15);
}
.jn-footer-track-input::placeholder { color: #94a3b8; }
.jn-footer-track-btn {
  flex-shrink: 0; height: 36px; padding: 0 14px;
  background: #1c5636; color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.jn-footer-track-btn:hover { background: #164a2d; }

/* ===== Print ===== */
@media print {
  .jn-header, .jn-overlay, .jn-mobile-panel, .jn-bottom-tabs, .jn-scanner-modal, .jn-footer-track { display: none !important; }
  body.jn-has-sidebar { margin-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
}
