/* SaaS Web shell — 企业版 */
html[data-saas-web="1"] .titlebar,
html[data-saas-web="1"] .window-controls,
html[data-saas-web="1"] #global-window-controls,
html[data-saas-web="1"] [data-window-control],
html[data-saas-web="1"] .window-control-btn,
html[data-saas-web="1"] .window-pin,
html[data-saas-web="1"] .window-minimize,
html[data-saas-web="1"] .window-fullscreen,
html[data-saas-web="1"] .window-close {
  display: none !important;
}

html[data-saas-web="1"] body {
  overscroll-behavior: none;
  background: linear-gradient(180deg, #eef2f7 0%, #f4f6f9 40%, #f4f6f9 100%) !important;
}

html[data-saas-web="1"] #splash-screen {
  background: #f4f6f9 !important;
}
html[data-saas-web="1"] #splash-screen::before {
  background: #0a2f5c !important;
  height: 48px !important;
}
html[data-saas-web="1"] #splash-screen::after,
html[data-saas-web="1"] #splash-screen .splash-particles,
html[data-saas-web="1"] #splash-screen .splash-arc,
html[data-saas-web="1"] #splash-screen .splash-arc-2,
html[data-saas-web="1"] #splash-screen .splash-ring-outer,
html[data-saas-web="1"] #splash-screen .splash-ring-inner {
  display: none !important;
}
html[data-saas-web="1"] #splash-screen .splash-logo {
  background: #0a2f5c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(10, 47, 92, 0.2) !important;
  animation: none !important;
}
html[data-saas-web="1"] #splash-screen .splash-title {
  color: #0b1220 !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}
html[data-saas-web="1"] #splash-screen .splash-dev,
html[data-saas-web="1"] #splash-screen .splash-phone,
html[data-saas-web="1"] .app-footer .dev-contact,
html[data-saas-web="1"] .app-footer a[href^="tel:"] {
  display: none !important;
}
html[data-saas-web="1"] #splash-screen .splash-progress-fill {
  background: #0a2f5c !important;
}
html[data-saas-web="1"] #splash-screen .splash-status {
  color: #64748b !important;
}

html[data-saas-web="1"] .app-header {
  border-bottom: 0 !important;
  background: #0a2f5c !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
  color: #ffffff !important;
  -webkit-app-region: no-drag !important;
}
html[data-saas-web="1"] .app-header .header-title,
html[data-saas-web="1"] .app-header .gradient-text,
html[data-saas-web="1"] .app-header .header-user span,
html[data-saas-web="1"] .app-header .header-brand-name,
html[data-saas-web="1"] .app-header .header-brand-sub,
html[data-saas-web="1"] .app-header .header-edition-badge,
html[data-saas-web="1"] .app-header .header-user-label {
  color: #ffffff !important;
}
html[data-saas-web="1"] .app-header .header-search {
  background: rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-saas-web="1"] .app-header .header-search input {
  color: #ffffff !important;
}
html[data-saas-web="1"] .app-header .header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}
html[data-saas-web="1"] .app-header .header-icon-btn,
html[data-saas-web="1"] .app-header .sidebar-toggle,
html[data-saas-web="1"] .app-header .gt-density-btn,
html[data-saas-web="1"] .app-header .ai-assistant-btn {
  color: #ffffff !important;
}

html[data-saas-web="1"] .app-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  -webkit-app-region: no-drag !important;
}
html[data-saas-web="1"] #main-menu.sidebar-menu .menu-item {
  border-radius: 8px;
}
html[data-saas-web="1"] #main-menu.sidebar-menu .menu-item.active {
  background: #e8eef6 !important;
  color: #0a2f5c !important;
}
html[data-saas-web="1"] .app-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff !important;
  color: #64748b !important;
}
html[data-saas-web="1"] .page-container {
  max-width: 1400px;
  margin-inline: auto;
}

html[data-saas-web="1"] .login-wrapper,
html[data-saas-web="1"] .login-shell {
  background: linear-gradient(180deg, #eef2f7 0%, #f4f6f9 100%) !important;
}
html[data-saas-web="1"] .login-brand {
  background: #0a2f5c !important;
}
html[data-saas-web="1"] .login-shell .window-controls,
html[data-saas-web="1"] .login-wrapper .window-controls {
  display: none !important;
}

html[data-saas-web="1"] [title*="托盘"],
html[data-saas-web="1"] [aria-label*="托盘"] {
  display: none !important;
}

@media (max-width: 900px) {
  html[data-saas-web="1"] .app-sidebar,
  html[data-saas-web="1"] .sidebar {
    width: 72px;
  }
  html[data-saas-web="1"] .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-saas-web="1"] #splash-screen,
  html[data-saas-web="1"] #splash-screen * {
    animation: none !important;
    transition: none !important;
  }
}
