﻿/* SUPPIX — eine Plattform: SUPPIX + Betrieb + Enterprise (ein Shell-Gefühl) */

.content.has-embed-view {
  padding-top: 0;
}

.content.has-embed-view .enterprise-embed-toolbar {
  display: none;
}

.content.has-embed-view .enterprise-embed-shell {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.content.has-embed-view .enterprise-embed-frame-wrap {
  border-radius: 0;
}

.dashboard-quick-nav {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(6.1rem, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.dashboard-quick-nav .quick-nav-tile {
  padding: 0.42rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  cursor: pointer;
  text-align: center;
}

.dashboard-quick-nav .quick-nav-tile-accent {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(15, 76, 92, 0.35);
  color: #f0fdfa;
  font-weight: 600;
}

.sidebar-nav .nav-drawer {
  margin: 0.1rem 0;
}

.sidebar-nav .nav-drawer.hidden {
  display: none;
}

.nav-drawer-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.48rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 8px;
  user-select: none;
}

.nav-drawer-summary::-webkit-details-marker {
  display: none;
}

.nav-drawer[open] > .nav-drawer-summary {
  color: #cbd5e1;
}

.nav-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.15rem 0 0.3rem 0.35rem;
}

.nav-drawer-body .nav-link {
  font-size: 0.86rem;
}

.nav-link-primary {
  font-weight: 600;
}

.nav-enterprise-plan-hint {
  margin: 0 0 0.35rem;
  padding: 0 0.25rem;
  font-size: 0.68rem;
}

.view-dashboard .hero-panel {
  display: none;
}

.view-deployment-plan .deployment-steps-compact {
  opacity: 0.85;
  font-size: 0.9rem;
}

.view-deployment-plan .deployment-plan-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(15, 76, 92, 0.15);
}

.view-dashboard .enterprise-hub-promo,
.view-dashboard .panel:has(#enterpriseHubPromo) {
  display: none;
}

.sidebar .sidebar-copy {
  display: none;
}

.sidebar-card {
  display: none;
}

.sidebar-company-picker {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(15, 76, 92, 0.22);
}

.sidebar-company-picker-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.sidebar-company-picker-select {
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f1419;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.2;
}

body.theme-white .sidebar-company-picker {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.22);
}

body.theme-white .sidebar-company-picker-label {
  color: #64748b;
}

body.theme-white .sidebar-company-picker-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

body.theme-white .sidebar-company-picker-hint {
  color: #64748b;
}

/* Einheitliche Select-Felder in Shell (Topbar, Auth, Sidebar) */
.shell select:not([multiple]),
.auth-panel select:not([multiple]) {
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  line-height: 1.2;
  border-radius: 10px;
}

.sidebar-company-picker-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.nav-link-betrieb.active,
#enterpriseNavMount .nav-link.active {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.35);
  color: #f0fdfa;
}

body[data-active-view] .topbar-copy h2 {
  transition: color 0.15s ease;
}

body[data-active-view="admin-v2"] .content,
body[data-active-view="enterprise-hub"] .content,
body[data-active-view="ai-assistant"] .content,
body[data-active-view="ops-center"] .content {
  background: #0a1016;
}

body[data-active-view="admin-v2"] .content::before,
body[data-active-view="enterprise-hub"] .content::before,
body[data-active-view="ai-assistant"] .content::before,
body[data-active-view="ops-center"] .content::before {
  display: none;
}

/* Embed-Ansichten: weniger Doppel-Chrome (Shell-Topbar schlank) */
body[data-active-view="admin-v2"] .topbar,
body[data-active-view="enterprise-hub"] .topbar,
body[data-active-view="ai-assistant"] .topbar,
body[data-active-view="ops-center"] .topbar {
  padding: 8px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(14, 21, 29, 0.92);
  border-color: rgba(94, 234, 212, 0.14);
  box-shadow: none;
}

body[data-active-view="admin-v2"] .topbar .eyebrow,
body[data-active-view="enterprise-hub"] .topbar .eyebrow,
body[data-active-view="ai-assistant"] .topbar .eyebrow,
body[data-active-view="ops-center"] .topbar .eyebrow {
  display: none;
}

body[data-active-view="admin-v2"] .topbar h2,
body[data-active-view="enterprise-hub"] .topbar h2,
body[data-active-view="ai-assistant"] .topbar h2,
body[data-active-view="ops-center"] .topbar h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

body[data-active-view="admin-v2"] .topbar-actions .ghost-button,
body[data-active-view="enterprise-hub"] .topbar-actions .ghost-button,
body[data-active-view="ai-assistant"] .topbar-actions .ghost-button,
body[data-active-view="ops-center"] .topbar-actions .ghost-button,
body[data-active-view="admin-v2"] .topbar-actions .primary-button,
body[data-active-view="enterprise-hub"] .topbar-actions .primary-button,
body[data-active-view="ai-assistant"] .topbar-actions .primary-button,
body[data-active-view="ops-center"] .topbar-actions .primary-button {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(120, 156, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.content.has-embed-view .enterprise-embed-shell {
  min-height: 0;
  border-radius: 12px;
}

.content.has-embed-view .system-alert-banner {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

/* Mobile: Sidebar oben, Inhalt darunter — nicht volle Viewport-Höhe blockieren */
@media (max-width: 960px) {
  body:not(.auth-locked) .shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body:not(.auth-locked) .sidebar {
    max-height: min(42vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not(.auth-locked) .content {
    min-height: 0;
  }

  body:not(.auth-locked) .content.has-embed-view .view.view-embed.active {
    min-height: 58vh;
  }

  body:not(.auth-locked) .mobile-shell-nav {
    z-index: 900;
  }
}
