/* NetSuite shell · navy header + left rail · 14 pages */
:root[data-system="netsuite"], body[data-system="netsuite"] {
  --shell-bg: #003d5c;
  --shell-bg-hover: #00547d;
  --shell-fg: #ffffff;
  --shell-accent: #0070b3;
  --shell-rail-bg: #f5f7fa;
  --shell-rail-fg: #1f2d3d;
  --shell-rail-active: #003d5c;
  --shell-header-h: 40px;
  --shell-rail-w: 0;            /* NS leaf pages use the native .ns-top tab nav, not a shell rail */
  --shell-page-toolbar-h: 36px;
}
body[data-system="netsuite"] {
  margin: 0;
  padding-top: 0;        /* NS native .ns-top IS the system header — no W2 shell header */
  padding-left: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fafbfc;
}
body[data-system="netsuite"] .shell-rail   { display: none !important; }
body[data-system="netsuite"] .shell-header { display: none !important; }
body[data-system="netsuite"] .shell-footer { display: none !important; }
body[data-system="netsuite"] .shell-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--shell-header-h);
  background: var(--shell-bg);
  color: var(--shell-fg);
  display: flex; align-items: center; padding: 0 16px;
  font-size: 13px; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
body[data-system="netsuite"] .shell-logo {
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  margin-right: 24px; text-transform: uppercase;
}
body[data-system="netsuite"] .shell-search {
  flex: 1; max-width: 480px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 5px 10px; color: #fff;
  font-size: 12.5px;
}
body[data-system="netsuite"] .shell-search::placeholder { color: rgba(255,255,255,0.55); }
body[data-system="netsuite"] .shell-right {
  margin-left: auto; display: flex; align-items: center; gap: 14px;
  font-size: 12px;
}
body[data-system="netsuite"] .shell-rail {
  position: fixed; top: var(--shell-header-h); bottom: 0; left: 0;
  width: var(--shell-rail-w);
  background: var(--shell-rail-bg);
  color: var(--shell-rail-fg);
  border-right: 1px solid #d8dee8;
  overflow-y: auto;
  font-size: 12.5px;
  padding: 12px 0;
}
body[data-system="netsuite"] .shell-rail .nav-section {
  padding: 6px 16px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; color: #6b7c8e; letter-spacing: 0.06em;
  margin-top: 8px;
}
body[data-system="netsuite"] .shell-rail .nav-link {
  display: block; padding: 6px 16px; color: var(--shell-rail-fg);
  text-decoration: none; border-left: 3px solid transparent;
}
body[data-system="netsuite"] .shell-rail .nav-link:hover { background: #e7eaf0; }
body[data-system="netsuite"] .shell-rail .nav-link.active {
  background: white; border-left-color: var(--shell-rail-active); font-weight: 600;
}
body[data-system="netsuite"] .shell-footer {
  margin-left: 0;
  padding: 12px 22px; border-top: 1px solid #e5e7eb;
  font-size: 11px; color: #64748b; text-align: center;
}
/* NOTE: legacy .ns-top (NetSuite tabs Activities/Lists/Financial/Reports/Customisation/Setup) renders below the shell — intentionally NOT hidden. */
/* Status pill */
body[data-system="netsuite"] .shell-status {
  background: rgba(255,255,255,0.12); padding: 3px 10px;
  border-radius: 999px; font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
body[data-system="netsuite"] .shell-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
}
body[data-system="netsuite"] .shell-status.amber .dot { background: #fbbf24; }
body[data-system="netsuite"] .shell-status.red   .dot { background: #f87171; }
