/* MES (Tulip/Solumina-style) operator console shell · 2 pages */
:root[data-system="mes"], body[data-system="mes"] {
  --shell-bg: #1a232c;
  --shell-bg-hover: #2a3744;
  --shell-fg: #ffffff;
  --shell-accent: #2563eb;
  --shell-header-h: 48px;
  --shell-rail-w: 0;
}
body[data-system="mes"] {
  margin: 0;
  padding-top: 0;        /* MES native .mes-top IS the system header — no W2 shell header */
  font-family: -apple-system, "Segoe UI", sans-serif;
  background: #f4f6f9; font-size: 13px;
}
body[data-system="mes"] .shell-header { display: none !important; }
body[data-system="mes"] .shell-footer { display: none !important; }
body[data-system="mes"] .shell-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--shell-header-h);
  background: linear-gradient(180deg, var(--shell-bg-hover) 0%, var(--shell-bg) 100%);
  color: var(--shell-fg);
  display: flex; align-items: center; padding: 0 18px;
  font-size: 13px; z-index: 100;
}
body[data-system="mes"] .shell-logo {
  font-weight: 700; letter-spacing: -0.01em; margin-right: 24px;
  display: flex; align-items: center; gap: 8px;
}
body[data-system="mes"] .shell-logo::before {
  content: ''; display: inline-block; width: 26px; height: 26px;
  border: 2px solid var(--shell-accent); border-radius: 4px;
}
body[data-system="mes"] .shell-search {
  flex: 1; max-width: 360px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px; padding: 5px 10px; color: #fff; font-size: 12.5px;
}
body[data-system="mes"] .shell-right {
  margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px;
}
body[data-system="mes"] .shell-status {
  background: rgba(37,99,235,0.18); padding: 4px 12px;
  border-radius: 4px; font-size: 11.5px;
  border: 1px solid rgba(37,99,235,0.38);
  display: inline-flex; align-items: center; gap: 6px;
}
body[data-system="mes"] .shell-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: mes-pulse 1.5s infinite;
}
@keyframes mes-pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.55 } }
body[data-system="mes"] .shell-rail { display: none; }
body[data-system="mes"] .shell-footer {
  padding: 12px 22px; border-top: 1px solid #d8dee8;
  font-size: 11px; color: #6b7c8e; text-align: center; background: #fff;
}
/* NOTE: legacy .mes-top (MES station info + operator chip "M. Rodriguez · Tech III") and .dash-top (MFG dashboard breadcrumbs) intentionally NOT hidden — they render below the shell header. */
