/* SPL-Portal: Swift / Liquid Glass für Dashboard, Widgets, Admin-Karten.
   Baut auf amt-swift.css (body[data-swift="1"]) auf. */

body[data-swift="1"] .amt-settings {
  position: relative;
}

body[data-swift="1"] .amt-settings__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 15rem;
  padding: 0.75rem 0.9rem 0.85rem;
}

body[data-swift="1"] .amt-settings__panel[hidden] {
  display: none;
}

body[data-swift="1"] .amt-settings__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
}

body[data-swift="1"] .content__title,
body[data-swift="1"] h2.content__title {
  margin: 2px 4px 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

body[data-swift="1"] .content__title--dash-more {
  margin-top: 18px;
  font-size: 22px;
}

body[data-swift="1"] .widget,
body[data-swift="1"] .content--dash-tiles .widget,
body[data-swift="1"] .kpi-card,
body[data-swift="1"] .content--dash-tiles .kpi-card,
body[data-swift="1"] .admin-card,
body[data-swift="1"] .nw-qry-widget {
  border: 1px solid var(--glass-edge) !important;
  border-radius: var(--radius-card);
  background: var(--bg-card) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

body[data-swift="1"] .content--dash-tiles .widget:hover,
body[data-swift="1"] .content--dash-tiles .kpi-card:hover {
  transform: none;
  border-color: var(--glass-edge) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--glass-shadow);
}

body[data-swift="1"] .content--dash-tiles .widget__head,
body[data-swift="1"] .widget__head {
  background: transparent;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
}

body[data-swift="1"] .widget__head-title,
body[data-swift="1"] .widget__head-meta,
body[data-swift="1"] .kpi-card__label,
body[data-swift="1"] .kpi-card__sub,
body[data-swift="1"] .footer-note {
  color: var(--text-muted);
}

body[data-swift="1"] .widget__head-title,
body[data-swift="1"] .kpi-card__value {
  color: var(--text);
}

body[data-swift="1"] .widget--link-tile {
  color: inherit;
  text-decoration: none;
}

body[data-swift="1"] .nw-system__section-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

body[data-swift="1"] .info-list dt {
  color: var(--text-muted);
}

body[data-swift="1"] .info-list dd {
  color: var(--text);
}

body.nw-auth-gate--open .app {
  display: none !important;
}

body.nw-auth-gate--open::before {
  content: none;
}

body.nw-auth-gate--open .sidebar,
body.nw-auth-gate--open .topbar,
body.nw-auth-gate--open .nw-auth-gate,
body.nw-auth-gate--open .nw-auth-gate__card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.nw-auth-gate--open .nw-auth-gate {
  background: #e8ecf2;
}

html[data-theme="dark"] body.nw-auth-gate--open .nw-auth-gate {
  background: #0c0e14;
}

body.nw-auth-gate--open .nw-auth-gate__card {
  background: #ffffff !important;
}

html[data-theme="dark"] body.nw-auth-gate--open .nw-auth-gate__card {
  background: #1c1c1e !important;
}

body[data-swift="1"] .admin-breadcrumb a,
body[data-swift="1"] .widget__head-meta a,
body[data-swift="1"] .nw-system__section-link {
  color: var(--accent);
}

body[data-swift="1"] .sidebar__nav-label,
body[data-swift="1"] .sidebar__section-summary {
  color: inherit;
}
