/* 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;
}

/* tool.hs-anhalt.de/cve: dieselben Glasflächen wie SWIFT. */

body[data-swift="1"] .cve-tool {
  position: relative;
  z-index: 1;
}

body[data-swift="1"] .cve-tool__bar,
body[data-swift="1"] .cve-tool .uu-toolbar,
body[data-swift="1"] .cve-tool .uu-kpi,
body[data-swift="1"] .cve-tool #cve-table,
body[data-swift="1"] .cve-tool #cve-catalog-result:not(:empty),
body[data-swift="1"] .cve-tool .cve-login,
body[data-swift="1"] .cve-tool .cve-detail__sheet,
html[data-theme="dark"] body[data-swift="1"] .cve-tool .cve-login,
html[data-theme="dark"] body[data-swift="1"] .cve-tool .cve-detail__sheet {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  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"] .cve-tool__bar {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

body[data-swift="1"] .cve-tool__bar h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

body[data-swift="1"] .cve-tool .uu-toolbar,
body[data-swift="1"] .cve-tool #cve-table,
body[data-swift="1"] .cve-tool #cve-catalog-result:not(:empty) {
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
}

body[data-swift="1"] .cve-tool #cve-table {
  overflow: auto;
}

body[data-swift="1"] .cve-tool .uu-kpi {
  background: var(--bg-card);
}

body[data-swift="1"] .cve-tool .admin-section h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

body[data-swift="1"] .cve-tool button:not(.uu-host__btn) {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  font-weight: 600;
}

body[data-swift="1"] .cve-tool .uu-host__btn {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-weight: 650;
}

body[data-swift="1"] .cve-tool .status-table,
body[data-swift="1"] .cve-tool .uu-detail .status-table {
  background: transparent;
  box-shadow: none;
}

body[data-swift="1"] .cve-tool .cve-gauge {
  width: 294px;
  max-width: 100%;
  flex: 0 0 auto;
}

body[data-swift="1"] .cve-tool .cve-gauge svg {
  width: 252px;
  height: 252px;
  max-width: 100%;
}

body[data-swift="1"] .cve-tool button.cve-meter,
body[data-swift="1"] .cve-tool button.cve-slice-page,
body[data-swift="1"] .cve-tool button.cve-slice-close,
body[data-swift="1"] .cve-tool button.cve-slice-link,
body[data-swift="1"] .cve-tool button.cve-open.cve-slice-link {
  min-height: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font-weight: 500;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-swift="1"] .cve-tool button.cve-meter {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0.14rem 0.46rem 0.16rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
}

body[data-swift="1"] .cve-tool button.cve-slice-link,
body[data-swift="1"] .cve-tool button.cve-open.cve-slice-link {
  padding: 0;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  background: none;
  white-space: nowrap;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--all {
  background: color-mix(in srgb, var(--text-muted) 7%, #fff);
  border-color: color-mix(in srgb, var(--text-muted) 18%, transparent);
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--critical {
  background: #fdeceb;
  border-color: #f0c4be;
  color: #9f2d20;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--high {
  background: #fff3e6;
  border-color: #f0d2ae;
  color: #9a5410;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--medium {
  background: #fff8e4;
  border-color: #ead48a;
  color: #8a6810;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--low {
  background: #f1f8e8;
  border-color: #cfe6b4;
  color: #4e7a1c;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--negligible {
  background: #eef6f8;
  border-color: #c5dde4;
  color: #3d6a78;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--unknown {
  background: #f3f3f5;
  border-color: #e1e1e6;
  color: #63636a;
}

html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--critical {
  background: rgba(239, 59, 47, 0.18);
  border-color: rgba(239, 59, 47, 0.4);
  color: #ffb4ab;
}

html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--high {
  background: rgba(245, 160, 0, 0.18);
  border-color: rgba(245, 160, 0, 0.4);
  color: #ffd19a;
}

html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--medium {
  background: rgba(245, 197, 24, 0.16);
  border-color: rgba(245, 197, 24, 0.36);
  color: #ffe7a3;
}

html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--low {
  background: rgba(141, 198, 63, 0.16);
  border-color: rgba(141, 198, 63, 0.36);
  color: #d5f0b0;
}

html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--unknown,
html[data-theme="dark"] body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--all {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: inherit;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--period {
  align-items: flex-end;
  text-align: right;
  min-width: 4.4rem;
  padding: 0.2rem 0.45rem;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--period .uu-kpi__value {
  font-size: 1.2rem;
  font-weight: 650;
  width: 100%;
  text-align: right;
}

body[data-swift="1"] .cve-tool button.cve-meter.cve-meter--cell {
  align-items: center;
  text-align: center;
  min-width: 3.15rem;
  padding: 0.18rem 0.28rem 0.16rem;
}

body[data-swift="1"] .cve-tool #cve-catalog-q,
body[data-swift="1"] .cve-tool #cve-catalog-q::placeholder {
  font-size: 1.02rem;
}
