/* Import Modern Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================================
   CEREDA SYSTEMS - MODERN IT DESIGN - CSS VARIABLES
   ============================================================================ */
:root {
  /* Cereda Colors - Modern IT Palette */
  --cereda-primary: #3fa3a3;
  --cereda-primary-dark: #008487;
  --cereda-primary-light: #5eb8b8;
  --cereda-accent: #00a3a6;

  /* Dark Mode Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Border Colors */
  --border-color: #334155;
  --border-accent: #3fa3a3;

  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Shadows - Modern */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(63, 163, 163, 0.3);

  /* Border Radius - Modern */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   THEME: simDesk (Violet / Ultra-Dark)
   ============================================================================ */
[data-theme="cereda-desk"] {
  --cereda-primary: #7c5cf6;
  --cereda-primary-dark: #6d46f5;
  --cereda-primary-light: #9b7ff8;
  --cereda-accent: #0ea5e9;
  --cereda-primary-rgb: 124, 92, 246;

  /* Content-Bereich: hell wie Cereda-Desk */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;   /* Panels/Sections: weiß (Sidebar hat eigenen Override) */
  --bg-card: #ffffff;
  --bg-tertiary: #f1f5f9;

  /* Text: dunkel auf hellem Hintergrund */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-color: #e2e8f0;
  --border-accent: #7c5cf6;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
  --shadow-glow: 0 0 20px rgba(124, 92, 246, 0.2);
}

html[data-theme="cereda-desk"] body {
  background: #f1f5f9;
}

/* ── Sidebar: ultra-dunkel, kein blur ── */
[data-theme="cereda-desk"] .sidebar {
  background: #04070f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: 1px solid #161c2d;
  box-shadow: 2px 0 16px rgba(0,0,0,0.5);
}

[data-theme="cereda-desk"] .sidebar-group + .sidebar-group {
  border-top-color: #161c2d;
}

[data-theme="cereda-desk"] .sidebar-logo {
  border-bottom-color: #161c2d;
}

/* Sidebar Text hell */
[data-theme="cereda-desk"] .sidebar-link {
  color: #94a3b8;
}
[data-theme="cereda-desk"] .sidebar-link:hover {
  background: rgba(124, 92, 246, 0.08);
  color: #e2e8f0;
}
[data-theme="cereda-desk"] .sidebar-link--active {
  color: #a78bfa !important;
  background: rgba(124, 92, 246, 0.15) !important;
}
[data-theme="cereda-desk"] .sidebar-link--active::before {
  background: #7c5cf6;
}
[data-theme="cereda-desk"] .sidebar-group-label {
  color: #475569;
}

/* ── Topbar: weiß mit Schatten ── */
[data-theme="cereda-desk"] .topbar {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Cards ── */
[data-theme="cereda-desk"] .card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Inputs & Select ── */
[data-theme="cereda-desk"] .form-input,
[data-theme="cereda-desk"] .form-select,
[data-theme="cereda-desk"] .form-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="cereda-desk"] .form-input:focus,
[data-theme="cereda-desk"] .form-select:focus {
  border-color: #7c5cf6;
}

/* ── Tabellen ── */
[data-theme="cereda-desk"] .table-container,
[data-theme="cereda-desk"] table {
  background: #ffffff;
}
[data-theme="cereda-desk"] thead th {
  background: #f8fafc;
  color: #64748b;
  border-bottom-color: #e2e8f0;
}
[data-theme="cereda-desk"] tbody tr:hover {
  background: #f8fafc;
}
[data-theme="cereda-desk"] tbody td {
  border-bottom-color: #f1f5f9;
}

/* ── Buttons ── */
[data-theme="cereda-desk"] .btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border-color: #e2e8f0;
}
[data-theme="cereda-desk"] .btn-secondary:hover {
  background: #e2e8f0;
}

/* ============================================================================
   GLOBAL STYLES - MODERN IT DESIGN
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(63, 163, 163, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(59, 130, 246, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(99, 102, 241, 0.07) 0%, transparent 45%),
    linear-gradient(145deg, #050d1e 0%, #0b1628 40%, #0d1f2d 70%, #060f1c 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ============================================================================
   LAYOUT - MODERN IT DESIGN
   ============================================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.main-content {
  flex: 1;
  padding: 32px 24px;
  background: transparent;
}

/* ============================================================================
   SIDEBAR LAYOUT
   ============================================================================ */
:root {
  --sidebar-width: 220px;
  --topbar-height: 60px;
}

/* ============================================================================
   LIGHT THEME (Apple-style, toggled via html[data-theme="light"])
   ============================================================================ */
html[data-theme="light"] {
  --bg-primary: #fbfbfd;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --border-color: #e5e5e7;
  --cereda-primary: #008487;
  --cereda-primary-dark: #006e71;
  --cereda-primary-light: #3fa3a3;
  --success: #34c759;
  --danger: #ff3b30;
  --warning: #ff9500;
  --info: #0071e3;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-md: 0 6px 24px -8px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 40px 80px -24px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 20px rgba(0,132,135,0.20);
}
html[data-theme="light"] body {
  background: #f5f5f7 !important;
  background-image: none !important;
}

.app-layout {
  min-height: 100vh;
}

.app-layout-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-top: var(--topbar-height);
}

.app-layout-content {
  background: transparent;
  padding: 28px 28px 40px;
}

/* ============================================================================
   SIDEBAR — Apple Design
   ============================================================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: #111827;
  border-right: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
}
html[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e5e7;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  text-decoration: none;
}
html[data-theme="light"] .sidebar-brand { border-bottom-color: #e5e5e7; }
.sidebar-brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #008487;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.sidebar-brand-name {
  font-size: 13.5px; font-weight: 700;
  color: #f5f5f7; letter-spacing: -0.01em; line-height: 1.2;
}
html[data-theme="light"] .sidebar-brand-name { color: #1d1d1f; }
.sidebar-brand-sub {
  font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 500;
}
html[data-theme="light"] .sidebar-brand-sub { color: #6e6e73; }

/* Nav search */
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 12px 8px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: rgba(255,255,255,0.35);
  cursor: default; flex-shrink: 0;
}
html[data-theme="light"] .sidebar-search {
  background: rgba(0,132,135,0.05);
  border-color: #e5e5e7;
  color: #6e6e73;
}
.sidebar-search svg { flex-shrink: 0; opacity: 0.6; }
.sidebar-search-kbd {
  margin-left: auto; font-size: 10px;
  background: rgba(255,255,255,0.12); padding: 2px 5px;
  border-radius: 4px; color: rgba(255,255,255,0.4);
}
html[data-theme="light"] .sidebar-search-kbd {
  background: #e5e5e7; color: #6e6e73;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 6px 0 16px; overflow-y: auto; overflow-x: hidden; }
.sidebar-group { padding: 2px 0; }
.sidebar-group-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.28);
  padding: 12px 18px 4px;
}
html[data-theme="light"] .sidebar-group-label { color: #6e6e73; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: background 0.12s, color 0.12s;
  position: relative; cursor: pointer;
  border: none; width: 100%; background: none; text-align: left;
}
html[data-theme="light"] .sidebar-link { color: #424245; }

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #f5f5f7;
}
html[data-theme="light"] .sidebar-link:hover {
  background: rgba(0,132,135,0.07);
  color: #1d1d1f;
}

.sidebar-link--active {
  background: rgba(0,132,135,0.18) !important;
  color: #3fa3a3 !important;
  font-weight: 600;
}
html[data-theme="light"] .sidebar-link--active {
  background: rgba(0,132,135,0.10) !important;
  color: #008487 !important;
}
.sidebar-link--active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: #008487; border-radius: 0 2px 2px 0;
}

.sidebar-link-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-link-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.sidebar-link-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.sidebar-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.45);
}
.sidebar-badge.danger { background: rgba(255,59,48,0.18); color: #ff6058; }
.sidebar-badge.accent { background: rgba(0,132,135,0.20); color: #3fa3a3; }
html[data-theme="light"] .sidebar-badge { background: rgba(0,0,0,0.07); color: #6e6e73; }
html[data-theme="light"] .sidebar-badge.danger { background: rgba(255,59,48,0.10); color: #ff3b30; }
html[data-theme="light"] .sidebar-badge.accent { background: rgba(0,132,135,0.12); color: #008487; }

.sidebar-submenu-chevron {
  margin-left: auto; font-size: 10px; opacity: 0.45; flex-shrink: 0;
  transition: transform 0.2s;
}
.sidebar-submenu-chevron.open { transform: rotate(90deg); }
.sidebar-submenu { padding-left: 14px; }

/* Legacy compat */
.sidebar-logo { display: none; }

/* ============================================================================
   TOPBAR — Apple Design
   ============================================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: rgba(17,24,39,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: none;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 12px;
}
html[data-theme="light"] .topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5e7;
}

/* Breadcrumb */
.topbar-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.35);
  flex: 1; min-width: 0;
}
.topbar-breadcrumb > span { white-space: nowrap; }
.topbar-breadcrumb .bc-sep { opacity: 0.4; }
.topbar-breadcrumb .bc-current {
  color: rgba(255,255,255,0.90); font-weight: 600;
}
html[data-theme="light"] .topbar-breadcrumb { color: #6e6e73; }
html[data-theme="light"] .topbar-breadcrumb .bc-current { color: #1d1d1f; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle (same slider as login) */
.nx-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 58px; height: 30px;
  border-radius: 15px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: background 0.2s;
  flex-shrink: 0;
}
html[data-theme="light"] .nx-theme-toggle {
  background: rgba(0,0,0,0.06);
  border-color: #e5e5e7;
}
.nx-theme-toggle .tt-ico {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  transition: opacity 0.2s;
  z-index: 1;
}
.nx-theme-toggle .tt-ico.sun { left: 2px; }
.nx-theme-toggle .tt-ico.moon { right: 2px; }
.nx-theme-toggle .tt-ico svg { width: 13px; height: 13px; }
.nx-theme-toggle .tt-thumb {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
  left: 2px;
  z-index: 2;
}
/* dark mode: thumb on right (moon side) */
html:not([data-theme="light"]) .nx-theme-toggle .tt-thumb { transform: translateX(28px); }
html:not([data-theme="light"]) .nx-theme-toggle .tt-ico.sun { opacity: 0.3; color: rgba(255,255,255,0.7); }
html:not([data-theme="light"]) .nx-theme-toggle .tt-ico.moon { opacity: 1; color: #f5f5f7; }
html[data-theme="light"] .nx-theme-toggle .tt-thumb { transform: translateX(0); background: #008487; }
html[data-theme="light"] .nx-theme-toggle .tt-ico.sun { opacity: 1; color: #fff; }
html[data-theme="light"] .nx-theme-toggle .tt-ico.moon { opacity: 0.3; color: #6e6e73; }

/* Icon buttons */
.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.60);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
}
.topbar-icon-btn svg { width: 16px; height: 16px; stroke-width: 1.75; }
.topbar-icon-btn:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.20);
}
html[data-theme="light"] .topbar-icon-btn {
  background: transparent;
  border-color: #e5e5e7;
  color: #6e6e73;
}
html[data-theme="light"] .topbar-icon-btn:hover {
  border-color: #008487;
  color: #008487;
  background: rgba(0,132,135,0.06);
}

/* User chip */
.nx-user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  cursor: pointer; position: relative;
}
html[data-theme="light"] .nx-user-chip {
  border-color: #e5e5e7;
  background: #f5f5f7;
}
.nx-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); white-space: nowrap; }
html[data-theme="light"] .nx-user-name { color: #1d1d1f; }
.nx-user-role {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #3fa3a3;
  background: rgba(0,132,135,0.18); padding: 2px 7px; border-radius: 20px;
  white-space: nowrap;
}
html[data-theme="light"] .nx-user-role { background: rgba(0,132,135,0.10); color: #008487; }
.nx-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #008487; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.nx-user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 200px;
  background: #1e293b; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  overflow: hidden; z-index: 200;
}
html[data-theme="light"] .nx-user-dropdown {
  background: #ffffff; border-color: #e5e5e7;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.nx-user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.75);
  text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  transition: background 0.12s, color 0.12s;
}
html[data-theme="light"] .nx-user-dropdown-item { color: #1d1d1f; }
.nx-user-dropdown-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
html[data-theme="light"] .nx-user-dropdown-item:hover { background: #f5f5f7; }
.nx-user-dropdown-item.danger { color: #ff6058; }
html[data-theme="light"] .nx-user-dropdown-item.danger { color: #ff3b30; }
.nx-user-dropdown-item.danger:hover { background: rgba(255,59,48,0.10); }
.nx-user-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }
html[data-theme="light"] .nx-user-dropdown-divider { background: #e5e5e7; }
.nx-user-dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.topbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: var(--transition);
}

.topbar-user:hover {
  border-color: var(--cereda-primary);
}

/* Notification dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 1000;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 1000;
  overflow: hidden;
  padding: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: inherit;
}

.user-dropdown-item:hover {
  background: var(--bg-secondary);
}

.user-dropdown-item--danger {
  color: #ef4444;
}

.user-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.07);
}

/* page-container für Seiten ohne eigene Klasse */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================================
   NAVBAR - MODERN IT DESIGN
   ============================================================================ */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--cereda-primary);
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
}

.navbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
}

.navbar-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--cereda-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--cereda-primary);
  transition: transform 0.2s;
}

.navbar-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.role-badge {
  background: linear-gradient(135deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  margin-left: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   BUTTONS - GLASSMORPHISM
   ============================================================================ */
.btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* PRIMARY — Teal glass */
.btn-primary {
  background: rgba(63, 163, 163, 0.55);
  color: #e0fafa;
  border-color: rgba(63, 163, 163, 0.70);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: rgba(63, 163, 163, 0.68);
  border-color: rgba(63, 163, 163, 0.85);
  box-shadow: 0 2px 12px rgba(63, 163, 163, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* SUCCESS — Green glass */
.btn-success {
  background: rgba(16, 185, 129, 0.50);
  color: #d1fae5;
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.62);
  border-color: rgba(16, 185, 129, 0.80);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-success:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* DANGER — Red glass */
.btn-danger {
  background: rgba(239, 68, 68, 0.50);
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.62);
  border-color: rgba(239, 68, 68, 0.80);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-danger:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* SECONDARY — Dark glass */
.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(63, 163, 163, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-secondary:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ============================================================================
   FORMS - MODERN IT DESIGN
   ============================================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(63, 163, 163, 0.60);
  background: rgba(63, 163, 163, 0.06);
  box-shadow: 0 0 0 3px rgba(63, 163, 163, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Dark dropdown options */
.form-select option {
  background-color: #1e293b;
  color: var(--text-primary);
}

.form-select option:hover,
.form-select option:checked {
  background-color: #334155;
}

.form-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================================
   CARDS - GLASSMORPHISM + 3D EFFECT
   ============================================================================ */
.card {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Helle Oberkante — simuliert Licht von oben */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(255, 255, 255, 0.65) 30%,
    rgba(255, 255, 255, 0.65) 70%,
    transparent 95%
  );
  pointer-events: none;
}

/* Linke Kante */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.50),
    rgba(255, 255, 255, 0.10),
    transparent
  );
  pointer-events: none;
}

.card:hover {
  border-color: rgba(63, 163, 163, 0.35);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.30),
    0 12px 28px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 0 1px rgba(63, 163, 163, 0.12);
}

.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ============================================================================
   TABLES - MODERN IT DESIGN
   ============================================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.table th,
.table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: linear-gradient(135deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.table tr:hover {
  background-color: var(--bg-tertiary);
}

.table tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================================================================
   STATUS BADGES - MODERN IT DESIGN
   ============================================================================ */
.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-aktiv {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-aktiv::before {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-inaktiv {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-inaktiv::before {
  background-color: var(--danger);
}

/* Asset Status Badges */
.status-verfuegbar {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-verfuegbar::before {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-zugewiesen {
  background-color: rgba(63, 163, 163, 0.15);
  color: var(--cereda-primary);
  border: 1px solid rgba(63, 163, 163, 0.3);
}

.status-zugewiesen::before {
  background-color: var(--cereda-primary);
  box-shadow: 0 0 6px var(--cereda-primary);
}

.status-beschaedigt {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-beschaedigt::before {
  background-color: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}

/* Workflow Status Badges (Onboarding/Offboarding) */
.status-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pending::before {
  background-color: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.status-in_progress {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-in_progress::before {
  background-color: var(--info);
  box-shadow: 0 0 6px var(--info);
}

.status-completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed::before {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-warning::before {
  background-color: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

/* ============================================================================
   CHECKLIST EDITOR - MODERN IT DESIGN
   ============================================================================ */
.checklist-editor {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.checklist-item:hover {
  border-color: var(--cereda-primary);
  background: var(--bg-tertiary);
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checklist-item.disabled:hover {
  border-color: var(--border-color);
  background: var(--bg-card);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.checklist-checkbox.checked {
  background: linear-gradient(135deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  border-color: var(--cereda-primary);
}

.checklist-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.checklist-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  user-select: none;
}

.checklist-item.disabled .checklist-text {
  color: var(--text-muted);
}

/* ============================================================================
   LOGIN PAGE — SPLIT DESIGN
   ============================================================================ */

/* CSS vars scoped to login only (light default, dark via data-theme) */
.login-split-root {
  --l-teal: #3fa3a3;
  --l-teal-deep: #008487;
  --l-teal-soft: #e8f4f4;
  --l-ink: #1d1d1f;
  --l-ink-2: #424245;
  --l-muted: #6e6e73;
  --l-muted-2: #86868b;
  --l-hair: #d2d2d7;
  --l-hair-soft: #e8e8ed;
  --l-canvas: #ffffff;
  --l-canvas-2: #f5f5f7;
  --l-surface: #ffffff;
  --l-crit: #d4382f;
  --l-crit-soft: rgba(212,56,47,0.10);
  --l-ease: cubic-bezier(0.4,0,0.2,1);
  --l-ease-out: cubic-bezier(0.2,0.8,0.2,1);
}
[data-theme="dark"] .login-split-root {
  --l-ink: #f5f5f7;
  --l-ink-2: #d0d0d5;
  --l-muted: #a1a1a6;
  --l-muted-2: #86868b;
  --l-hair: #2c2c33;
  --l-hair-soft: #1f1f25;
  --l-canvas: #0a0a0c;
  --l-canvas-2: #15151a;
  --l-surface: #17171c;
  --l-teal-soft: rgba(63,163,163,0.16);
  --l-crit-soft: rgba(212,56,47,0.18);
}

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── LEFT BRAND SIDE ── */
.login-brand {
  position: relative;
  overflow: hidden;
  background: #062626;
  color: white;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  isolation: isolate;
}
.login-brand::before {
  content: "";
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, #0d4747, transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 30%, #008487, transparent 55%),
    linear-gradient(135deg, #041e1e 0%, #0a3838 50%, #062626 100%);
}
.login-brand::after {
  content: "";
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(ellipse 40% 35% at 30% 30%, rgba(125,235,235,0.22), transparent 60%),
    radial-gradient(ellipse 35% 30% at 70% 70%, rgba(63,163,163,0.30), transparent 65%);
  filter: blur(40px);
  animation: login-aurora 22s ease-in-out infinite alternate;
}
@keyframes login-aurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100% { transform: translate3d(4%,-3%,0) rotate(4deg) scale(1.08); }
}
.login-brand-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.login-brand-circuit {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.55; pointer-events: none;
}
.login-brand-circuit svg { width:100%; height:100%; display:block; }
.login-brand-circuit .lc-line { fill:none; stroke:rgba(125,235,235,0.35); stroke-width:1; }
.login-brand-circuit .lc-node { fill:rgba(125,235,235,0.7); }
.login-brand-circuit .lc-pulse {
  fill:#7feaea; filter:drop-shadow(0 0 6px #7feaea);
  animation: login-node-pulse 3.5s ease-in-out infinite;
  transform-origin:center; transform-box:fill-box;
}
.login-brand-circuit .lc-pulse.p2 { animation-delay:1.2s; }
.login-brand-circuit .lc-pulse.p3 { animation-delay:2.4s; }
.login-brand-circuit .lc-pulse.p4 { animation-delay:0.6s; }
@keyframes login-node-pulse {
  0%, 100% { opacity:0.2; transform:scale(0.7); }
  50%      { opacity:1;   transform:scale(1.4); }
}

.login-brand-head {
  display:flex; align-items:center; justify-content:space-between;
  position:relative; z-index:1;
}
.login-brand-head img { height:36px; width:auto; filter:drop-shadow(0 4px 14px rgba(0,0,0,0.25)); }
.login-brand-tag {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; color:rgba(255,255,255,0.7);
  padding:6px 12px; border-radius:980px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
  letter-spacing:0.02em;
}
.login-brand-tag-dot {
  width:7px; height:7px; border-radius:50%;
  background:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,0.25);
  animation: login-live-pulse 2s ease-in-out infinite;
}
@keyframes login-live-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.login-brand-mid {
  margin-top:auto; margin-bottom:auto;
  padding:60px 0; max-width:540px;
  position:relative; z-index:1;
}
.login-eyebrow {
  display:inline-block; font-size:12px; font-weight:600;
  letter-spacing:0.16em; text-transform:uppercase; color:#7feaea;
  margin-bottom:22px; padding:4px 12px; border-radius:4px;
  border:1px solid rgba(125,235,235,0.3);
  background:rgba(125,235,235,0.04);
}
.login-brand-h1 {
  font-size:64px; font-weight:700; line-height:1.02;
  letter-spacing:-0.04em; margin:0 0 22px;
}
.login-brand-h1 .login-accent {
  background:linear-gradient(120deg, #7feaea 0%, #3fa3a3 60%, #008487 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.login-brand-lede {
  font-size:19px; line-height:1.5;
  color:rgba(255,255,255,0.72);
  letter-spacing:-0.01em; margin:0 0 36px;
  max-width:480px;
}
.login-features {
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.login-feat {
  padding:16px; border-radius:14px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(20px);
  transition:transform 0.3s, border 0.3s, background 0.3s;
}
.login-feat:hover { transform:translateY(-2px); border-color:rgba(125,235,235,0.3); background:rgba(255,255,255,0.06); }
.login-feat-ico {
  width:32px; height:32px; border-radius:9px;
  background:rgba(125,235,235,0.15); color:#7feaea;
  display:grid; place-items:center; margin-bottom:12px;
  font-size:15px;
}
.login-feat b { font-size:13.5px; font-weight:600; display:block; margin-bottom:2px; }
.login-feat span { font-size:11.5px; color:rgba(255,255,255,0.55); line-height:1.35; }

/* ── RIGHT LOGIN SIDE ── */
.login-form-side {
  background:var(--l-canvas);
  display:flex; flex-direction:column;
  padding:32px 56px;
  position:relative;
  transition:background-color 0.45s;
}
.login-form-top {
  display:flex; align-items:center; justify-content:flex-end; gap:14px;
}

/* theme toggle */
.login-theme-btn {
  position:relative; width:56px; height:28px; border-radius:980px;
  border:1px solid var(--l-hair); background:var(--l-canvas-2);
  cursor:pointer; padding:0;
  display:inline-flex; align-items:center; justify-content:space-between;
  flex-shrink:0; transition:background 0.4s, border-color 0.4s;
}
.login-theme-btn .ltt-ico { width:13px; height:13px; margin:0 7px; color:var(--l-muted); z-index:1; pointer-events:none; }
.login-theme-btn .ltt-ico svg { width:100%; height:100%; display:block; }
.login-theme-btn .ltt-ico.sun { color:#f5a623; }
[data-theme="dark"] .login-theme-btn .ltt-ico.sun { color:var(--l-muted); opacity:0.55; }
.login-theme-btn .ltt-ico.moon { color:var(--l-muted); opacity:0.55; }
[data-theme="dark"] .login-theme-btn .ltt-ico.moon { color:#c7c7e0; opacity:1; }
.login-theme-btn .ltt-thumb {
  position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%;
  background:linear-gradient(180deg,#ffffff,#ececef);
  box-shadow:0 2px 6px rgba(0,0,0,0.18);
  transition:transform 0.45s cubic-bezier(0.5,1.6,0.4,1), background 0.4s;
}
[data-theme="dark"] .login-theme-btn .ltt-thumb {
  transform:translateX(28px);
  background:linear-gradient(180deg,#3a3a40,#232328);
}

.login-stage { flex:1; display:grid; place-items:center; width:100%; }
.login-inner {
  width:100%; max-width:400px;
  opacity:0; transform:translateY(12px);
  animation:login-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) 0.1s forwards;
}
@keyframes login-rise { to { opacity:1; transform:translateY(0); } }

.login-h1 {
  font-size:40px; font-weight:700; letter-spacing:-0.03em;
  line-height:1.05; margin:0 0 10px; color:var(--l-ink);
}
.login-sub { font-size:15px; color:var(--l-muted); margin:0 0 32px; }

.login-ms-btn {
  width:100%;
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  padding:13px 18px;
  background:var(--l-surface); color:var(--l-ink);
  border:1px solid var(--l-hair); border-radius:14px;
  font-size:14.5px; font-weight:500; cursor:pointer;
  transition:background 0.18s, border-color 0.18s, transform 0.12s;
  font-family:"Segoe UI",-apple-system,sans-serif;
}
.login-ms-btn:hover { border-color:var(--l-muted-2); transform:scale(1.01); }
.login-ms-btn:active { transform:scale(0.99); }
.login-ms-logo {
  width:18px; height:18px; display:grid;
  grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px;
}
.login-ms-logo > span { display:block; }
.login-ms-logo > span:nth-child(1) { background:#f25022; }
.login-ms-logo > span:nth-child(2) { background:#7fba00; }
.login-ms-logo > span:nth-child(3) { background:#00a4ef; }
.login-ms-logo > span:nth-child(4) { background:#ffb900; }

.login-divider {
  display:flex; align-items:center; gap:12px;
  margin:22px 0 18px; font-size:12px;
  color:var(--l-muted-2); letter-spacing:0.04em;
  text-transform:uppercase; font-weight:500;
}
.login-divider::before,.login-divider::after { content:""; flex:1; height:1px; background:var(--l-hair-soft); }

.login-field { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.login-field label { font-size:12.5px; color:var(--l-ink-2); font-weight:600; }
.login-input-wrap { position:relative; }
.login-input {
  width:100%; appearance:none;
  background:var(--l-surface); border:1px solid var(--l-hair);
  border-radius:12px; padding:12px 14px; font-size:15px;
  color:var(--l-ink); outline:none;
  font-family:inherit;
  transition:border 0.18s, box-shadow 0.18s, background 0.4s;
}
.login-input:focus { border-color:var(--l-teal); box-shadow:0 0 0 4px rgba(63,163,163,0.12); }
.login-input::placeholder { color:var(--l-muted-2); }
.login-input[type="password"] { padding-right:44px; }

.login-eye-btn {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:8px; border:0;
  background:transparent; color:var(--l-muted);
  display:grid; place-items:center; cursor:pointer;
}
.login-eye-btn:hover { background:var(--l-canvas-2); color:var(--l-ink); }
.login-eye-btn svg { width:17px; height:17px; }

.login-submit-btn {
  width:100%; appearance:none; border:0;
  background:var(--l-teal); color:white;
  padding:13px 18px; border-radius:14px;
  font-size:14.5px; font-weight:600; cursor:pointer; margin-top:8px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 22px -10px rgba(63,163,163,0.55);
  font-family:inherit;
  transition:background 0.18s, transform 0.12s;
}
.login-submit-btn:hover { background:var(--l-teal-deep); transform:translateY(-1px); }
.login-submit-btn:active { transform:translateY(0); }
.login-submit-btn:disabled { opacity:0.65; cursor:not-allowed; transform:none; }
.login-submit-btn .lsb-arrow { transition:transform 0.25s cubic-bezier(0.2,0.8,0.2,1); }
.login-submit-btn:hover .lsb-arrow { transform:translateX(3px); }

.login-foot-row {
  margin-top:18px; display:flex; align-items:center; justify-content:space-between;
  font-size:13px;
}
.login-remember {
  display:inline-flex; align-items:center; gap:8px;
  color:var(--l-ink-2); cursor:pointer; user-select:none;
}
.login-remember input { display:none; }
.login-check-box {
  width:18px; height:18px; border-radius:6px;
  border:1px solid var(--l-hair); background:var(--l-surface);
  display:grid; place-items:center;
  transition:background 0.18s, border 0.18s;
}
.login-check-box svg { width:11px; height:11px; color:white; opacity:0; transition:opacity 0.18s; }
.login-remember input:checked + .login-check-box { background:var(--l-teal); border-color:var(--l-teal); }
.login-remember input:checked + .login-check-box svg { opacity:1; }
.login-forgot {
  color:var(--l-teal-deep); font-weight:500; text-decoration:none;
  border-bottom:1px solid transparent; cursor:pointer; background:none; border-top:none; border-left:none; border-right:none;
  font-size:13px; font-family:inherit;
  transition:border-color 0.18s;
}
.login-forgot:hover { border-bottom-color:currentColor; }

.login-err {
  display:none; align-items:flex-start; gap:10px;
  background:var(--l-crit-soft); border:1px solid rgba(212,56,47,0.25);
  color:var(--l-crit); padding:10px 12px; border-radius:12px;
  font-size:13px; margin-top:14px;
  animation:login-shake 0.5s;
}
.login-err.on { display:flex; }
.login-err svg { width:16px; height:16px; flex-shrink:0; margin-top:1px; }
@keyframes login-shake {
  10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)}
}

.login-page-foot {
  text-align:center; margin-top:32px;
  font-size:11.5px; color:var(--l-muted-2);
}
.login-page-foot b { color:var(--l-muted); font-weight:500; }

.login-spinner {
  width:16px; height:16px;
  border:2px solid rgba(255,255,255,0.4); border-top-color:white;
  border-radius:50%; animation:login-spin 0.7s linear infinite;
  display:inline-block;
}
@keyframes login-spin { to { transform:rotate(360deg); } }

/* Responsive */
@media (max-width:1000px) {
  .login-split { grid-template-columns:1fr; }
  .login-brand { min-height:auto; padding:36px 32px; }
  .login-brand-mid { padding:36px 0; }
  .login-brand-h1 { font-size:44px; }
  .login-features { grid-template-columns:1fr 1fr; }
  .login-form-side { padding:28px 32px 44px; }
}
@media (max-width:600px) {
  .login-brand { padding:28px 22px; }
  .login-brand-h1 { font-size:36px; }
  .login-features { grid-template-columns:1fr; }
  .login-form-side { padding:24px 22px 36px; }
  .login-h1 { font-size:32px; }
}

/* ============================================================================
   DASHBOARD - MODERN IT DESIGN
   ============================================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
}

.stat-card:hover {
  border-color: var(--cereda-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dashboard Welcome - Simple Design */
.dashboard-welcome {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.welcome-header {
  margin-bottom: 2rem;
  text-align: center;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.welcome-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.dashboard-info-box {
  background: linear-gradient(135deg, rgba(63, 163, 163, 0.1) 0%, rgba(0, 164, 166, 0.05) 100%);
  border: 1px solid rgba(63, 163, 163, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-box-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-box-content h3 {
  font-size: 1.1rem;
  color: var(--cereda-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.info-box-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Stats Section */
.stats-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  border-radius: 2px;
}

/* Enhanced Stat Cards with Icons */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  background: var(--bg-tertiary);
}

.stat-content {
  flex: 1;
}

/* Stat Card Variants */
.stat-card-primary .stat-icon {
  background: rgba(63, 163, 163, 0.1);
  border: 1px solid rgba(63, 163, 163, 0.3);
}

.stat-card-primary:hover {
  border-color: var(--cereda-primary);
}

.stat-card-success .stat-icon {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-card-success .stat-value {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-success:hover {
  border-color: #10b981;
}

.stat-card-danger .stat-icon {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stat-card-danger .stat-value {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-danger:hover {
  border-color: #ef4444;
}

.stat-card-info .stat-icon {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stat-card-info .stat-value {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-info:hover {
  border-color: #3b82f6;
}

.stat-card-warning .stat-icon {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stat-card-warning .stat-value {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-warning:hover {
  border-color: #f59e0b;
}

/* Asset Types Grid */
.asset-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.asset-type-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.asset-type-card:hover {
  border-color: var(--cereda-primary);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.asset-type-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.asset-type-info {
  flex: 1;
}

.asset-type-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cereda-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.asset-type-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.quick-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.quick-action-card:hover::before {
  transform: scaleX(1);
}

.quick-action-card:hover {
  border-color: var(--cereda-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.quick-action-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(63, 163, 163, 0.1) 0%, rgba(63, 163, 163, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63, 163, 163, 0.2);
  transition: var(--transition);
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(63, 163, 163, 0.2) 0%, rgba(63, 163, 163, 0.1) 100%);
}

.quick-action-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quick-action-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Activity Badges */
.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(63, 163, 163, 0.1);
  border: 1px solid rgba(63, 163, 163, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cereda-primary);
}

.action-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============================================================================
   SEARCH AND FILTER - MODERN IT DESIGN
   ============================================================================ */
.search-container {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--cereda-primary);
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 3px rgba(63, 163, 163, 0.15);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================================================
   LOADING SPINNER - MODERN IT DESIGN
   ============================================================================ */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--cereda-primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(63, 163, 163, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================================
   MODAL - MODERN IT DESIGN
   ============================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(160deg, rgba(30, 45, 80, 0.80) 0%, rgba(15, 25, 50, 0.85) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(63, 163, 163, 0.70);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(63, 163, 163, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Teal top-accent glow */
.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63, 163, 163, 0.9),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle left edge */
.modal-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(63, 163, 163, 0.3),
    transparent
  );
  pointer-events: none;
}

.modal-content.modal-large {
  max-width: 800px;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Stretch edge-to-edge despite modal-content padding */
  margin: -2rem -2rem 1.75rem -2rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(63, 163, 163, 0.05);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-body {
  padding: 0; /* padding comes from modal-content */
}

.modal-footer {
  /* Stretch edge-to-edge */
  margin: 1.75rem -2rem -2rem -2rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  flex-shrink: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-secondary);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.40);
  color: #fca5a5;
}

/* ============================================================================
   PAGE HEADERS - MODERN IT DESIGN
   ============================================================================ */
.page-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cereda-primary) 0%, var(--cereda-accent) 100%);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.text-primary {
  color: var(--cereda-primary);
}

/* ============================================================================
   RESPONSIVE - MODERN IT DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-menu {
    flex-direction: column;
    width: 100%;
  }

  .navbar-link {
    width: 100%;
    text-align: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}


/* ============================================================================
   DOCS PAGE - Markdown Rendering
   ============================================================================ */
.docs-content {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
}

.docs-content h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--cereda-primary);
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cereda-primary);
}

.docs-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
  padding-top: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.docs-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cereda-primary-light);
  margin: 24px 0 8px;
}

.docs-content p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.docs-content ul, .docs-content ol {
  margin: 0 0 12px 20px;
  color: var(--text-secondary);
}

.docs-content li {
  margin-bottom: 4px;
}

.docs-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.docs-content code {
  background: var(--bg-tertiary);
  color: var(--cereda-primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.docs-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0 20px;
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.docs-content th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.docs-content td {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.docs-content tr:nth-child(even) td {
  background: var(--bg-secondary);
}

.docs-content blockquote {
  border-left: 3px solid var(--cereda-primary);
  margin: 0 0 12px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

mark {
  background: var(--cereda-primary);
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
}

/* ── Chat Markdown Rendering ── */
.md-content { line-height: 1.6; font-size: inherit; }
.md-content p { margin: 0 0 8px; }
.md-content p:last-child { margin-bottom: 0; }
.md-content strong { font-weight: 700; }
.md-content em { font-style: italic; }
.md-content ul, .md-content ol { margin: 6px 0 8px 20px; padding: 0; }
.md-content li { margin-bottom: 3px; }
.md-content h1, .md-content h2, .md-content h3 { margin: 10px 0 6px; font-weight: 700; line-height: 1.3; }
.md-content h1 { font-size: 1.1rem; }
.md-content h2 { font-size: 1rem; }
.md-content h3 { font-size: 0.9rem; }
.md-content code { background: rgba(0,0,0,0.15); padding: 1px 5px; border-radius: 4px; font-family: monospace; font-size: 0.85em; }
.md-content pre { background: rgba(0,0,0,0.2); padding: 10px 14px; border-radius: 6px; overflow-x: auto; margin: 8px 0; }
.md-content pre code { background: none; padding: 0; }
.md-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 10px 0; }

/* ============================================================================
   CUSTOM SCROLLBARS
   ============================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
::-webkit-scrollbar-corner { background: transparent; }

/* ============================================================================
   DASHBOARD v2 — Apple-style (alle Klassen mit db- prefix)
   ============================================================================ */
.db-content { padding: 32px 40px 60px; }
.db-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.db-hero-date { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.01em; }
.db-hero-title { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--text-primary); margin: 0 0 10px; }
.db-hero-title .db-accent { color: var(--cereda-primary); }
.db-hero-sub { font-size: 15px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; max-width: 520px; }
.db-hero-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.db-hero-status .db-pdot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px #34c75930; }
.db-hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.db-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.db-btn:hover { border-color: var(--cereda-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.12); color: var(--cereda-primary); }
.db-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.db-btn.db-accent { background: var(--cereda-primary); color: #fff; border-color: var(--cereda-primary); }
.db-btn.db-accent:hover { background: #007073; border-color: #007073; color: #fff; }
.db-alerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.db-alert { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; }
.db-alert.a-red { background: #fff1f0; border-color: #fca5a5; }
.db-alert.a-amber { background: #fffbeb; border-color: #fcd34d; }
.db-alert.a-blue { background: #eff6ff; border-color: #93c5fd; }
[data-theme="dark"] .db-alert.a-red { background: #3f151540; border-color: #b91c1c50; }
[data-theme="dark"] .db-alert.a-amber { background: #3f2d0040; border-color: #d9770050; }
[data-theme="dark"] .db-alert.a-blue { background: #0f244440; border-color: #2563eb50; }
.db-alert .db-ai { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-alert.a-red .db-ai { background: #fecaca; color: #dc2626; }
.db-alert.a-amber .db-ai { background: #fde68a; color: #d97706; }
.db-alert.a-blue .db-ai { background: #bfdbfe; color: #2563eb; }
[data-theme="dark"] .db-alert.a-red .db-ai { background: #7f1d1d50; }
[data-theme="dark"] .db-alert.a-amber .db-ai { background: #78350f50; }
[data-theme="dark"] .db-alert.a-blue .db-ai { background: #1e3a5f50; }
.db-alert .db-ai svg { width: 17px; height: 17px; }
.db-alert .db-ah { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.db-alert .db-am { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.db-alert .db-alink { font-size: 12px; font-weight: 600; color: var(--cereda-primary); text-decoration: none; }
.db-alert .db-alink:hover { text-decoration: underline; }
.db-block { margin-bottom: 40px; }
.db-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.db-section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; color: var(--text-primary); margin: 0 0 2px; line-height: 1; }
.db-section-head p { font-size: 13px; color: var(--text-muted); margin: 0; }
.db-quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.db-quick-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); text-decoration: none; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.db-quick-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); border-color: var(--cereda-primary); }
.db-quick-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-quick-icon svg { width: 18px; height: 18px; }
.db-quick-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.db-quick-sub { font-size: 11.5px; color: var(--text-muted); }
.db-quick-card.qc-key .db-quick-icon  { background: #ff950018; color: #ff9500; }
.db-quick-card.qc-asset .db-quick-icon { background: #008a8a18; color: var(--cereda-primary); }
.db-quick-card.qc-tix .db-quick-icon  { background: #f59e0b18; color: #f59e0b; }
.db-quick-card.qc-mon .db-quick-icon  { background: #34c75918; color: #34c759; }
.db-quick-card.qc-patch .db-quick-icon { background: #5856d618; color: #5856d6; }
.db-quick-card.qc-sec .db-quick-icon  { background: #ff3b3018; color: #ff3b30; }
.db-quick-card.qc-on .db-quick-icon   { background: #007aff18; color: #007aff; }
.db-quick-card.qc-usr .db-quick-icon  { background: #af52de18; color: #af52de; }
.db-quick-card.qc-lic .db-quick-icon  { background: #ff950018; color: #ff9500; }
.db-quick-card.qc-share .db-quick-icon { background: #008a8a18; color: var(--cereda-primary); }
.db-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.db-kpi { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 22px; transition: box-shadow 0.15s; }
.db-kpi:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.db-kpi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.db-kpi-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.db-kpi-icon svg { width: 17px; height: 17px; }
.db-kpi-trend { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.db-kpi-trend.up { background: #ecfdf5; color: #059669; }
.db-kpi-trend.down { background: #fef2f2; color: #dc2626; }
.db-kpi-trend.flat { background: #f3f4f6; color: #6b7280; }
[data-theme="dark"] .db-kpi-trend.up { background: #14532d40; color: #34d399; }
[data-theme="dark"] .db-kpi-trend.down { background: #45101040; color: #f87171; }
[data-theme="dark"] .db-kpi-trend.flat { background: #37415140; color: #9ca3af; }
.db-kpi-value { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.db-kpi-value small { font-size: 18px; color: var(--text-muted); font-weight: 500; letter-spacing: -0.01em; }
.db-kpi-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.db-kpi-sub { font-size: 12px; color: var(--text-muted); }
.db-kpi.k-key .db-kpi-icon   { background: #ff950018; color: #ff9500; }
.db-kpi.k-asset .db-kpi-icon { background: #008a8a18; color: var(--cereda-primary); }
.db-kpi.k-tix .db-kpi-icon   { background: #f59e0b18; color: #f59e0b; }
.db-kpi.k-on .db-kpi-icon    { background: #007aff18; color: #007aff; }
.db-breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.db-breakdown { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 22px; }
.db-breakdown-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.db-breakdown-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.db-breakdown-icon svg { width: 16px; height: 16px; }
.db-breakdown-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); flex: 1; }
.db-breakdown-pct { font-size: 13px; font-weight: 700; color: var(--cereda-primary); }
.db-breakdown-num { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; margin-bottom: 12px; }
.db-breakdown-bar { height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.db-breakdown-bar span { display: block; height: 100%; border-radius: 3px; background: var(--cereda-primary); transition: width 0.6s ease; }
.db-breakdown.bd-note .db-breakdown-icon { background: #008a8a18; color: var(--cereda-primary); }
.db-breakdown.bd-mon .db-breakdown-icon  { background: #007aff18; color: #007aff; }
.db-breakdown.bd-head .db-breakdown-icon { background: #af52de18; color: #af52de; }
.db-breakdown.bd-other .db-breakdown-icon { background: #ff950018; color: #ff9500; }
.db-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 12px; }
.db-info-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px 24px; }
.db-info-card.db-feature { grid-row: span 2; display: flex; flex-direction: column; }
.db-info-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.db-info-eyebrow .db-ico { width: 22px; height: 22px; border-radius: 6px; background: #008a8a18; color: var(--cereda-primary); display: flex; align-items: center; justify-content: center; }
.db-info-eyebrow .db-ico svg { width: 13px; height: 13px; }
.db-info-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 6px; }
.db-info-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.45; }
.db-announce-list { flex: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.db-announce { display: flex; gap: 12px; align-items: flex-start; }
.db-av { width: 32px; height: 32px; border-radius: 50%; background: var(--cereda-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.db-av.s2 { background: #007aff; }
.db-av.s3 { background: #af52de; }
.db-announce h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 0 0 3px; }
.db-announce p { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; line-height: 1.4; }
.db-announce .db-when { font-size: 11px; color: var(--text-muted); }
.db-feat-cta { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: 13px; font-weight: 600; color: var(--cereda-primary); text-decoration: none; }
.db-feat-cta svg { width: 14px; height: 14px; }
.db-feat-cta:hover { text-decoration: underline; }
.db-empty-ann { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; gap: 8px; }
.db-agents-stat { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 8px; }
.db-agents-stat .num { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; }
.db-agents-stat .total { font-size: 15px; color: var(--text-muted); }
.db-agents-bar { height: 8px; border-radius: 4px; overflow: hidden; display: flex; margin-bottom: 8px; }
.db-agents-bar span { display: block; height: 100%; }
.db-agents-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.db-agents-legend div { display: flex; align-items: center; gap: 5px; }
.db-agents-legend i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.db-ring-wrap { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.db-ring { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.db-ring svg { transform: rotate(-90deg); width: 90px; height: 90px; }
.db-ring .db-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.db-ring-stats { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-muted); }
.db-ring-stats b { color: var(--text-primary); font-weight: 700; margin-right: 4px; }
.db-risk-badge-wrap { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin: 8px 0; background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.db-risk-badge-wrap.risk-mid { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.db-risk-badge-wrap.risk-high { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.db-risk-badge-wrap .db-rdot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; flex-shrink: 0; }
.db-risk-badge-wrap.risk-mid .db-rdot { background: #f59e0b; }
.db-risk-badge-wrap.risk-high .db-rdot { background: #ef4444; }
[data-theme="dark"] .db-risk-badge-wrap { background: #14532d40; border-color: #05966940; }
[data-theme="dark"] .db-risk-badge-wrap.risk-mid { background: #78350f40; border-color: #d9770640; }
[data-theme="dark"] .db-risk-badge-wrap.risk-high { background: #45101040; border-color: #dc262640; }
.db-risk-stats { display: flex; gap: 16px; margin-top: 12px; }
.db-risk-stat { text-align: center; }
.db-risk-stat .rv { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.db-risk-stat .rv.red { color: #dc2626; }
.db-risk-stat .rv.amber { color: #d97706; }
.db-risk-stat .rl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.db-share-stat { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; margin: 10px 0 8px; }
.db-share-stat span { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.db-share-list { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.db-share-list div { display: flex; align-items: center; gap: 7px; }
.db-share-list .db-sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.db-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px 24px; }
.db-card-head { margin-bottom: 18px; }
.db-card-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0 0 3px; letter-spacing: -0.015em; }
.db-card-sub { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.db-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.db-metric { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; }
.db-metric.m-hi   { border-color: #dc262630; }
.db-metric.m-mid  { border-color: #d9770630; }
.db-metric.m-low  { border-color: #05966930; }
.db-metric.m-sla  { border-color: #dc262650; }
.db-metric-prio { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.db-metric-prio .db-mp { width: 7px; height: 7px; border-radius: 50%; }
.db-metric.m-hi .db-mp { background: #dc2626; }
.db-metric.m-mid .db-mp { background: #d97706; }
.db-metric.m-low .db-mp { background: #059669; }
.db-metric.m-sla .db-mp { background: #dc2626; }
.db-metric-value { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; }
.db-metric-value .u { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.db-metric-label { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.db-performer { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.db-performer:last-child { border-bottom: none; }
.db-perf-av { width: 36px; height: 36px; border-radius: 50%; background: var(--cereda-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.db-perf-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.db-perf-stats { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.db-perf-rank { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--border-color); padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.db-perf-rank.gold   { background: #ff950020; color: #ff9500; }
.db-perf-rank.silver { background: #8e8e9320; color: #636366; }
.db-table-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.db-table-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-color); gap: 12px; }
.db-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.db-filter-pills button { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border-color); background: transparent; font-size: 12.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.12s; }
.db-filter-pills button.on { background: var(--cereda-primary); color: #fff; border-color: var(--cereda-primary); }
.db-filter-pills button:hover:not(.on) { border-color: var(--cereda-primary); color: var(--cereda-primary); }
.db-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.db-table thead tr { border-bottom: 1px solid var(--border-color); }
.db-table th { padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); text-align: left; }
.db-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover td { background: var(--cereda-primary)06; }
.db-user-cell { display: flex; align-items: center; gap: 8px; }
.db-av-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--cereda-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.db-action-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.db-action-pill.create { background: #ecfdf5; color: #059669; }
.db-action-pill.update { background: #eff6ff; color: #2563eb; }
.db-action-pill.delete { background: #fef2f2; color: #dc2626; }
[data-theme="dark"] .db-action-pill.create { background: #14532d30; color: #34d399; }
[data-theme="dark"] .db-action-pill.update { background: #1e3a5f30; color: #60a5fa; }
[data-theme="dark"] .db-action-pill.delete { background: #45101030; color: #f87171; }
.db-type-pill { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--border-color); font-size: 11px; color: var(--text-muted); }
.db-time-cell { color: var(--text-muted); font-size: 12px; }
@media (max-width: 1280px) {
  .db-quick-grid { grid-template-columns: repeat(5, 1fr); }
  .db-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .db-info-grid { grid-template-columns: repeat(2, 1fr); }
  .db-info-card.db-feature { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 960px) {
  .db-content { padding: 24px 20px 40px; }
  .db-hero-title { font-size: 34px; }
  .db-alerts { grid-template-columns: 1fr 1fr; }
  .db-quick-grid { grid-template-columns: repeat(4, 1fr); }
  .db-breakdown-grid { grid-template-columns: 1fr 1fr; }
  .db-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .db-content { padding: 16px 14px 40px; }
  .db-hero-title { font-size: 26px; }
  .db-hero { align-items: flex-start; }
  .db-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .db-kpi-grid { grid-template-columns: 1fr 1fr; }
  .db-alerts { grid-template-columns: 1fr; }
  .db-info-grid { grid-template-columns: 1fr; }
  .db-breakdown-grid { grid-template-columns: 1fr; }
  .db-metrics-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   BENUTZERVERWALTUNG — bv-* Classes
   ============================================================================ */
:root {
  --bv-green: #34d399; --bv-green-soft: rgba(52,211,153,0.1);
  --bv-amber: #f59e0b; --bv-amber-soft: rgba(245,158,11,0.1);
  --bv-red: #ef4444;   --bv-red-soft: rgba(239,68,68,0.1);
  --bv-purple: #a78bfa;--bv-purple-soft: rgba(167,139,250,0.1);
  --bv-blue: #60a5fa;  --bv-blue-soft: rgba(96,165,250,0.1);
  --bv-teal-soft: rgba(63,163,163,0.12);
  --bv-card: rgba(255,255,255,0.04);
  --bv-card2: rgba(255,255,255,0.02);
  --bv-line-strong: rgba(255,255,255,0.12);
  --bv-r-md: 12px; --bv-r-lg: 16px;
}

.bv-workspace { display: grid; grid-template-columns: 310px 1fr; flex: 1; min-height: 0; overflow: hidden; }

/* List panel */
.bv-list-panel { display: flex; flex-direction: column; border-right: 1px solid var(--border-color); background: var(--bg-secondary); overflow: hidden; }
.bv-list-head { padding: 20px 16px 12px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.bv-list-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.bv-list-title { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.bv-list-count { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.bv-list-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.bv-list-search { display: flex; align-items: center; gap: 8px; background: var(--bv-card); border: 1px solid var(--border-color); border-radius: 9px; padding: 8px 12px; margin-bottom: 10px; }
.bv-list-search input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; width: 100%; }
.bv-list-search input::placeholder { color: var(--text-muted); }
.bv-filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bv-filter-pill { padding: 4px 10px; border-radius: 999px; background: none; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 11.5px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.bv-filter-pill:hover { border-color: var(--cereda-primary); color: var(--cereda-primary); }
.bv-filter-pill.active { background: var(--bv-teal-soft); border-color: var(--cereda-primary); color: var(--cereda-primary); font-weight: 600; }
.bv-list-scroll { flex: 1; overflow-y: auto; }
.bv-section-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); padding: 14px 16px 6px; }
.bv-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.12s; position: relative; }
.bv-user-row:hover { background: rgba(255,255,255,0.04); }
.bv-user-row.active { background: var(--bv-teal-soft); border-left: 2px solid var(--cereda-primary); }
.bv-ur-av { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.bv-presence { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--bg-secondary); position: absolute; left: 43px; top: 12px; }
.bv-presence.online { background: var(--bv-green); }
.bv-presence.away { background: var(--bv-amber); }
.bv-presence.offline { background: var(--text-muted); }
.bv-ur-body { flex: 1; min-width: 0; }
.bv-ur-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-ur-email { font-size: 11.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-role-chip { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; letter-spacing: 0.03em; }
.bv-role-chip.super_admin,.bv-role-chip.admin { background: var(--bv-red-soft); color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.bv-role-chip.support,.bv-role-chip.bearbeiter { background: var(--bv-green-soft); color: #6ee7b7; border-color: rgba(52,211,153,0.25); }
.bv-role-chip.hr_personal,.bv-role-chip.buchhaltung { background: var(--bv-blue-soft); color: #93c5fd; border-color: rgba(96,165,250,0.25); }
.bv-role-chip.produktion { background: var(--bv-amber-soft); color: #fcd34d; border-color: rgba(245,158,11,0.25); }
.bv-role-chip.benutzer { background: rgba(148,163,184,0.12); color: #94a3b8; border-color: rgba(148,163,184,0.2); }
.bv-list-actions { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--border-color); }

/* Detail panel */
.bv-detail-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-primary); }
.bv-detail-inner { flex: 1; overflow-y: auto; padding: 28px 32px 48px; }
.bv-detail-empty { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--text-muted); font-size: 14px; }

/* Detail header */
.bv-detail-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.bv-dh-avatar { width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; flex-shrink: 0; position: relative; }
.bv-dh-presence { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--bg-primary); position: absolute; bottom: -2px; right: -2px; background: var(--bv-green); }
.bv-dh-presence.away { background: var(--bv-amber); }
.bv-dh-presence.offline { background: var(--text-muted); }
.bv-dh-body { flex: 1; min-width: 0; }
.bv-dh-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bv-dh-name { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; margin: 0; }
.bv-dh-handle { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.bv-dh-email { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.bv-dh-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-dh-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; border: 1px solid transparent; }
.bv-dh-badge svg { width: 13px; height: 13px; }
.bv-dh-badge.dept { background: rgba(255,255,255,0.06); color: var(--text-secondary); border-color: var(--border-color); }
.bv-dh-badge.active { background: var(--bv-green-soft); color: var(--bv-green); border-color: rgba(52,211,153,0.25); }
.bv-dh-badge .bv-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--bv-green); animation: bv-pulse 2s infinite; }
@keyframes bv-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.2)} }
.bv-dh-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Tabs */
.bv-tabs-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; flex-shrink: 0; }
.bv-tab { padding: 10px 16px; background: none; border: none; color: var(--text-secondary); font-size: 13.5px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bv-tab:hover { color: var(--text-primary); }
.bv-tab.active { color: var(--cereda-primary); border-bottom-color: var(--cereda-primary); font-weight: 600; }
.bv-tab-count { background: rgba(255,255,255,0.1); color: var(--text-secondary); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; }
.bv-tab.active .bv-tab-count { background: var(--bv-teal-soft); color: var(--cereda-primary); }

/* Stat row */
.bv-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.bv-stat-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 16px 18px; }
.bv-stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bv-stat-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.bv-stat-icon svg { width: 16px; height: 16px; }
.bv-stat-icon.s-status { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-stat-icon.s-assets { background: var(--bv-blue-soft); color: var(--bv-blue); }
.bv-stat-icon.s-lic { background: var(--bv-purple-soft); color: var(--bv-purple); }
.bv-stat-icon.s-fido { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-stat-trend { font-size: 11px; color: var(--text-muted); }
.bv-stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.bv-stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Grid layouts */
.bv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bv-grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Card */
.bv-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 18px 20px; }
.bv-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bv-card-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.bv-card-title svg { width: 15px; height: 15px; color: var(--text-secondary); }
.bv-card-link { font-size: 12px; color: var(--cereda-primary); text-decoration: none; font-weight: 600; cursor: pointer; background: none; border: none; }

/* Info rows (Persönliche Informationen) */
.bv-info-list { display: flex; flex-direction: column; gap: 0; }
.bv-info-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bv-info-row:last-child { border-bottom: none; }
.bv-info-k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.bv-info-k svg { width: 13px; height: 13px; flex-shrink: 0; }
.bv-info-v { font-size: 13px; color: var(--text-primary); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.bv-mini-av { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#5dbcbc,#3fa3a3); }
.bv-copy-btn { background: none; border: 1px solid var(--border-color); border-radius: 5px; padding: 2px 5px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; font-size: 10px; }
.bv-copy-btn:hover { color: var(--cereda-primary); border-color: var(--cereda-primary); }

/* Security items */
.bv-sec-list { display: flex; flex-direction: column; gap: 8px; }
.bv-sec-item { display: flex; align-items: center; gap: 12px; background: var(--bv-card2); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; }
.bv-sec-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bv-sec-icon svg { width: 15px; height: 15px; }
.bv-sec-icon.si-key { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-sec-icon.si-pwd { background: var(--bv-blue-soft); color: var(--bv-blue); }
.bv-sec-icon.si-ok { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-sec-icon.si-warn { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-sec-body { flex: 1; }
.bv-sec-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bv-sec-sub { font-size: 11.5px; color: var(--text-secondary); margin-top: 1px; }
.bv-sec-status { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.bv-sec-status.ok { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-sec-status.warn { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-sec-status.off { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.bv-risk-badge { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.bv-risk-badge.low { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-risk-badge.medium { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-risk-badge.high { background: var(--bv-red-soft); color: var(--bv-red); }

/* Activity */
.bv-activity-list { display: flex; flex-direction: column; position: relative; }
.bv-activity-list::before { content:''; position:absolute; left:10px; top:20px; bottom:20px; width:2px; background:var(--border-color); border-radius:1px; }
.bv-activity { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: flex-start; padding: 10px 0; position: relative; }
.bv-act-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; z-index: 1; flex-shrink: 0; }
.bv-act-dot svg { width: 11px; height: 11px; }
.bv-act-dot.ad-login { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-act-dot.ad-asset { background: var(--bv-blue-soft); color: var(--bv-blue); }
.bv-act-dot.ad-pwd { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-act-dot.ad-key { background: var(--bv-purple-soft); color: var(--bv-purple); }
.bv-act-dot.ad-perm { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-act-text { font-size: 12.5px; color: var(--text-primary); line-height: 1.4; }
.bv-act-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: monospace; }
.bv-act-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; padding-top: 2px; }

/* Groups */
.bv-group-section { margin-bottom: 16px; }
.bv-group-section h4 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.bv-group-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-group-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-color); color: var(--text-secondary); }
.bv-group-chip .bv-gdot { width: 6px; height: 6px; border-radius: 50%; }
.bv-group-chip.role { border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.bv-group-chip.role .bv-gdot { background: var(--bv-red); }
.bv-group-chip.entra { border-color: rgba(96,165,250,0.3); color: #93c5fd; }
.bv-group-chip.entra .bv-gdot { background: var(--bv-blue); }
.bv-group-chip.distrib { border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.bv-group-chip.distrib .bv-gdot { background: var(--bv-amber); }
.bv-app-perm { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bv-card2); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 6px; font-size: 12.5px; }
.bv-app-perm-name { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-primary); }
.bv-app-perm-name svg { width: 13px; height: 13px; color: var(--bv-green); }
.bv-app-perm-level { font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* Asset tab */
.bv-asset-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.bv-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bv-asset-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 16px; }
.bv-asset-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bv-asset-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bv-blue-soft); color: var(--bv-blue); display: flex; align-items: center; justify-content: center; }
.bv-asset-icon svg { width: 18px; height: 18px; }
.bv-asset-online { width: 9px; height: 9px; border-radius: 50%; background: var(--bv-green); }
.bv-asset-online.offline { background: var(--text-muted); }
.bv-asset-name { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; margin-bottom: 2px; }
.bv-asset-model { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.bv-bar-row { margin-bottom: 8px; }
.bv-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.bv-bar-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.bv-bar-fill { height: 100%; border-radius: 2px; background: var(--cereda-primary); transition: width 0.3s; }
.bv-bar-fill.amber { background: var(--bv-amber); }
.bv-bar-fill.red { background: var(--bv-red); }
.bv-asset-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.bv-asset-type-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 5px; }
.bv-asset-sn { font-size: 10.5px; color: var(--text-muted); font-family: monospace; }

/* License tab */
.bv-lic-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 20px 24px; margin-bottom: 20px; gap: 24px; }
.bv-lic-sum-item .bv-lic-sum-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.bv-lic-sum-item .bv-lic-sum-value { font-size: 24px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1; }
.bv-lic-sum-item .bv-lic-sum-sub { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.bv-lic-sum-item .bv-lic-sum-value.warn { color: var(--bv-amber); }
.bv-lic-section-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.bv-lic-section-label span { font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.08); padding: 1px 7px; border-radius: 999px; font-size: 10px; }
.bv-lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bv-lic-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.bv-lic-av { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; }
.bv-lic-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-lic-desc { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-lic-price { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; text-align: right; }
.bv-lic-per { font-size: 10px; color: var(--text-muted); }

/* Entra tab */
.bv-entra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bv-hybrid-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 18px 20px; }
.bv-hybrid-diagram { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.bv-hybrid-node { text-align: center; }
.bv-hybrid-node-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.bv-hybrid-node-icon svg { width: 22px; height: 22px; }
.bv-hybrid-node-icon.entra { background: var(--bv-blue-soft); color: var(--bv-blue); }
.bv-hybrid-node-icon.ad { background: var(--bv-purple-soft); color: var(--bv-purple); }
.bv-hybrid-node-label { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.bv-hybrid-node-sub { font-size: 10.5px; color: var(--text-muted); }
.bv-hybrid-connector { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bv-hybrid-sync-label { font-size: 10px; font-weight: 600; color: var(--cereda-primary); letter-spacing: 0.06em; text-transform: uppercase; }
.bv-hybrid-line { width: 100%; height: 2px; background: linear-gradient(90deg, var(--bv-blue), var(--cereda-primary), var(--bv-purple)); border-radius: 1px; position: relative; overflow: hidden; }
.bv-hybrid-line::after { content:''; position:absolute; top:0; left:-100%; width:60%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.6),transparent); animation: bv-sync-flow 2s infinite; }
@keyframes bv-sync-flow { to { left: 150%; } }
.bv-sync-badge { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bv-green-soft); color: var(--bv-green); }
.bv-entra-props { display: flex; flex-direction: column; gap: 0; }
.bv-entra-prop { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bv-entra-prop:last-child { border-bottom: none; }
.bv-entra-prop-k { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.bv-entra-prop-v { font-size: 12px; color: var(--text-primary); font-family: monospace; word-break: break-all; }
.bv-entra-prop-v.badge-enabled { display: inline-flex; align-items: center; gap: 5px; background: var(--bv-green-soft); color: var(--bv-green); padding: 2px 8px; border-radius: 999px; font-family: inherit; font-size: 11.5px; font-weight: 600; }
.bv-entra-prop-v.badge-disabled { background: var(--bv-red-soft); color: var(--bv-red); padding: 2px 8px; border-radius: 999px; font-family: inherit; font-size: 11.5px; font-weight: 600; }
.bv-jwt-preview { background: #0d1117; border: 1px solid rgba(63,163,163,0.25); border-radius: 10px; padding: 14px; font-family: 'Courier New', monospace; font-size: 11px; color: #7ee787; line-height: 1.6; word-break: break-all; max-height: 120px; overflow-y: auto; margin-top: 16px; }
.bv-cap-list { display: flex; flex-direction: column; gap: 8px; }
.bv-cap-item { display: flex; align-items: center; gap: 10px; background: var(--bv-card2); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; }
.bv-cap-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bv-cap-icon svg { width: 14px; height: 14px; }
.bv-cap-icon.grant { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-cap-icon.block { background: var(--bv-red-soft); color: var(--bv-red); }
.bv-cap-icon.report { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-cap-body { flex: 1; }
.bv-cap-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bv-cap-cond { font-size: 11.5px; color: var(--text-secondary); }
.bv-cap-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.05em; }
.bv-cap-badge.GRANT { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-cap-badge.BLOCK { background: var(--bv-red-soft); color: var(--bv-red); }
.bv-cap-badge.REPORT { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-sessions-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 18px 20px; }
.bv-sessions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 14px; }
.bv-sessions-item .bv-si-label { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.bv-sessions-item .bv-si-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* FIDO tab */
.bv-fido-hero { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.bv-fkc-card { background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--bv-r-lg); padding: 20px; position: relative; overflow: hidden; cursor: pointer; }
.bv-fkc-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.08),transparent 60%); pointer-events:none; }
.bv-fkc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bv-fkc-visual { width: 52px; height: 52px; border-radius: 14px; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; position: relative; }
.bv-fkc-visual svg { width: 24px; height: 24px; color: #fbbf24; position: relative; z-index: 1; }
.bv-fkc-type-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,0.4); color: #fcd34d; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid rgba(251,191,36,0.3); }
.bv-fkc-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 3px; }
.bv-fkc-sub { font-size: 11.5px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.bv-fkc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }
.bv-fkc-stat .bv-fkcs-v { font-size: 14px; font-weight: 700; color: #fff; }
.bv-fkc-stat .bv-fkcs-l { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.bv-fkc-stat + .bv-fkc-stat { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 14px; }
.bv-add-key-card { background: var(--bv-card); border: 1.5px dashed var(--bv-line-strong); border-radius: var(--bv-r-lg); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); cursor: pointer; min-height: 160px; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.bv-add-key-card:hover { border-color: var(--cereda-primary); color: var(--cereda-primary); }
.bv-akc-plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed currentColor; display: grid; place-items: center; }
.bv-akc-plus svg { width: 18px; height: 18px; stroke-width: 1.75; }
.bv-akc-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bv-add-key-card:hover .bv-akc-title { color: var(--cereda-primary); }
.bv-fido-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bv-fido-activity { }
.bv-fido-act-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bv-fido-act-row:last-child { border-bottom: none; }
.bv-fido-act-label { font-size: 12.5px; color: var(--text-secondary); }
.bv-fido-act-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bv-fido-act-value.green { color: var(--bv-green); }
.bv-fido-act-value.amber { color: var(--bv-amber); }
.bv-rec-list { display: flex; flex-direction: column; gap: 8px; }
.bv-rec-item { display: flex; align-items: center; gap: 10px; background: var(--bv-card2); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; }
.bv-rec-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bv-rec-icon svg { width: 14px; height: 14px; }
.bv-rec-icon.ok { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-rec-icon.warn { background: var(--bv-amber-soft); color: var(--bv-amber); }
.bv-rec-body { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.bv-rec-body-sub { font-size: 11px; color: var(--text-secondary); }
.bv-rec-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.bv-rec-badge.ok { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-rec-badge.warn { background: var(--bv-amber-soft); color: var(--bv-amber); }

/* Lifecycle tab */
.bv-lc-stage-bar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 6px; margin-bottom: 18px; }
.bv-lc-stage { padding: 14px 12px; border-radius: 9px; position: relative; cursor: default; }
.bv-lcs-num { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 3px; }
.bv-lcs-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.005em; }
.bv-lcs-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.bv-lc-stage.done .bv-lcs-num { color: var(--bv-green); }
.bv-lc-stage.done .bv-lcs-label { color: var(--text-primary); }
.bv-lc-stage.current { background: var(--bv-teal-soft); box-shadow: inset 0 0 0 1px rgba(63,163,163,0.3); }
.bv-lc-stage.current .bv-lcs-num { color: var(--cereda-primary); }
.bv-lc-stage.current .bv-lcs-label { color: var(--cereda-primary); }
.bv-lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bv-milestone-list { display: flex; flex-direction: column; position: relative; }
.bv-milestone-list::before { content:''; position:absolute; left:9px; top:16px; bottom:16px; width:2px; background:var(--border-color); border-radius:1px; }
.bv-milestone { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: flex-start; padding: 9px 0; }
.bv-ms-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--border-color); display: grid; place-items: center; z-index: 1; flex-shrink: 0; }
.bv-ms-dot.done { background: var(--bv-green); border-color: var(--bv-green); box-shadow: 0 0 0 4px rgba(52,211,153,0.12); }
.bv-ms-dot.done svg { width: 10px; height: 10px; stroke: #052e1a; stroke-width: 3; }
.bv-ms-dot.current { border-color: var(--cereda-primary); background: var(--bg-primary); box-shadow: 0 0 0 4px var(--bv-teal-soft); }
.bv-ms-dot.current::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--cereda-primary); }
.bv-ms-dot.upcoming { border-style: dashed; }
.bv-ms-body .bv-ms-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bv-ms-body .bv-ms-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.bv-ms-time { font-size: 11px; color: var(--text-muted); padding-top: 2px; white-space: nowrap; text-align: right; }
.bv-ms-time.future { color: var(--cereda-primary); }
.bv-contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bv-kv-card { padding: 14px 16px; background: var(--bv-card2); border: 1px solid var(--border-color); border-radius: 10px; }
.bv-kv-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.bv-kv-value { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; }
.bv-kv-sub { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.bv-offboard-card { background: var(--bv-card); border: 1px solid var(--border-color); border-radius: var(--bv-r-lg); padding: 18px 20px; margin-top: 14px; }
.bv-offboard-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.bv-offboard-row:last-child { border-bottom: none; }
.bv-offboard-row-k { color: var(--text-secondary); }
.bv-offboard-row-v { color: var(--text-primary); font-weight: 500; }
.bv-offboard-actions { display: flex; gap: 10px; margin-top: 16px; }

/* Modals */
.bv-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.bv-modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 28px 32px; width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow-y: auto; }
.bv-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.bv-modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.bv-modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; line-height: 1; }
.bv-form-row { margin-bottom: 16px; }
.bv-form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.bv-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }

/* Section title util */
.bv-section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 22px 0 10px; }

/* Responsive */
@media (max-width: 1200px) {
  .bv-stat-row,.bv-asset-stats { grid-template-columns: repeat(2, 1fr); }
  .bv-grid-2,.bv-grid-3,.bv-entra-grid,.bv-lc-grid { grid-template-columns: 1fr; }
  .bv-fido-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bv-workspace { grid-template-columns: 1fr; }
  .bv-list-panel { display: none; }
  .bv-lc-stage-bar { grid-template-columns: repeat(2, 1fr); }
  .bv-contract-grid { grid-template-columns: 1fr; }
  .bv-lic-summary { grid-template-columns: 1fr; }
}

/* ============================================================================
   ASSETS PAGE — Master-Detail Layout (.ap-*)
   ============================================================================ */

/* ── Page wrapper ── */
.ap-page {
  display: flex;
  height: calc(100vh - var(--topbar-height, 60px));
  overflow: hidden;
  background: transparent;
}

/* ── Left Panel ── */
.ap-left-panel {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}

.ap-left-header {
  padding: 20px 16px 12px;
  flex-shrink: 0;
}

.ap-panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ap-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}
.ap-panel-badge {
  background: rgba(13,148,136,0.2);
  color: #0d9488;
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Search Toggle ── */
.ap-search-toggle {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 10px;
}
.ap-search-toggle-btn {
  flex: 1;
  padding: 5px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-align: center;
}
.ap-search-toggle-btn--active {
  background: rgba(13,148,136,0.2);
  color: #0d9488;
}
.ap-search-toggle-btn:hover:not(.ap-search-toggle-btn--active) { color: #94a3b8; }

/* ── Search Box ── */
.ap-search-box {
  position: relative;
  margin-bottom: 12px;
}
.ap-search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px 8px 34px;
  color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.ap-search-input::placeholder { color: #475569; }
.ap-search-input:focus { border-color: rgba(13,148,136,0.5); }
.ap-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 13px;
  pointer-events: none;
}

/* ── Filter Pills ── */
.ap-pills-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.ap-pill {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #94a3b8;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}
.ap-pill:hover { border-color: rgba(255,255,255,0.2); color: #f1f5f9; }
.ap-pill--active {
  background: rgba(13,148,136,0.2);
  border-color: rgba(13,148,136,0.5);
  color: #0d9488;
}

/* ── Stat Grid ── */
.ap-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ap-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
.ap-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
}
.ap-stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}
.ap-stat-card--teal .ap-stat-value { color: #0d9488; }
.ap-stat-card--green .ap-stat-value { color: #34d399; }
.ap-stat-card--amber .ap-stat-value { color: #f59e0b; }

/* ── User Filter Banner ── */
.ap-user-filter-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 16px 8px;
  flex-shrink: 0;
  font-size: 11px;
  color: #93c5fd;
}
.ap-user-filter-text { flex: 1; min-width: 0; }
.ap-user-filter-text strong { color: #bfdbfe; }
.ap-user-filter-clear {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s;
}
.ap-user-filter-clear:hover { color: #ef4444; }

/* ── Asset List ── */
.ap-asset-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
}
.ap-asset-list::-webkit-scrollbar { width: 4px; }
.ap-asset-list::-webkit-scrollbar-track { background: transparent; }
.ap-asset-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.ap-asset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  border: 1px solid transparent;
  margin-bottom: 3px;
}
.ap-asset-item:hover { background: rgba(255,255,255,0.04); }
.ap-asset-item--active {
  background: rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.3);
}

.ap-asset-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ap-asset-item--active .ap-asset-icon-wrap { background: rgba(13,148,136,0.15); }

.ap-asset-info { flex: 1; min-width: 0; }
.ap-asset-name {
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-asset-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-asset-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Status Badges ── */
.ap-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.ap-badge-available { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.ap-badge-assigned  { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.ap-badge-inactive  { background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.ap-badge-damaged   { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }

.ap-type-badge {
  background: rgba(13,148,136,0.15);
  color: #0d9488;
  border: 1px solid rgba(13,148,136,0.3);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── Online Dot ── */
.ap-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
}
.ap-online-dot--on { background: #34d399; box-shadow: 0 0 4px rgba(52,211,153,0.6); }

/* ── Online Badge ── */
.ap-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}
.ap-online-badge--on { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.ap-online-badge--off { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* ── Right Panel ── */
.ap-right-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-width: 0;
}
.ap-right-panel::-webkit-scrollbar { width: 6px; }
.ap-right-panel::-webkit-scrollbar-track { background: transparent; }
.ap-right-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Empty State ── */
.ap-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: #475569;
  text-align: center;
}
.ap-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.ap-empty-text { font-size: 15px; font-weight: 600; color: #64748b; }
.ap-empty-sub { font-size: 13px; color: #475569; margin-top: 5px; }

/* ── Detail Header ── */
.ap-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.ap-detail-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.ap-detail-title-area { flex: 1; }
.ap-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.ap-detail-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}
.ap-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ap-detail-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-start;
  padding-top: 4px;
}

/* ── Buttons ── */
.ap-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
}
.ap-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
}
.ap-btn-outline:hover { border-color: rgba(255,255,255,0.3); color: #f1f5f9; }
.ap-btn-teal { background: #0d9488; color: #fff; }
.ap-btn-teal:hover { background: #0f766e; }
.ap-btn-teal:disabled { opacity: 0.5; cursor: not-allowed; }
.ap-btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.ap-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.ap-btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
}
.ap-btn-danger-outline:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.5); }
.ap-btn-icon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s;
  font-family: inherit;
}
.ap-btn-icon:hover { background: rgba(255,255,255,0.1); }

/* ── More Menu ── */
.ap-more-wrap { position: relative; }
.ap-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
}
.ap-more-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: 13px;
  color: #f1f5f9;
  transition: background 0.12s;
  font-family: inherit;
}
.ap-more-item:last-child { border-bottom: none; }
.ap-more-item:hover { background: rgba(255,255,255,0.06); }
.ap-more-item--danger { color: #ef4444; }
.ap-more-item--danger:hover { background: rgba(239,68,68,0.08); }

/* ── KPI Grid ── */
.ap-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.ap-kpi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.ap-kpi-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ap-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.1;
}
.ap-kpi-sub { font-size: 11px; color: #64748b; margin-top: 3px; }
.ap-kpi-card--amber .ap-kpi-value { color: #f59e0b; }
.ap-kpi-card--amber { border-color: rgba(245,158,11,0.2); }
.ap-kpi-card--red .ap-kpi-value { color: #ef4444; }
.ap-kpi-card--red { border-color: rgba(239,68,68,0.2); }
.ap-kpi-card--green .ap-kpi-value { color: #34d399; }
.ap-kpi-card--blue .ap-kpi-value { color: #60a5fa; }

/* ── Tab Bar ── */
.ap-tab-bar {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.ap-tab {
  padding: 10px 18px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
  white-space: nowrap;
}
.ap-tab:hover { color: #94a3b8; }
.ap-tab--active { color: #0d9488; border-bottom-color: #0d9488; }

/* ── Content Grid ── */
.ap-content-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── Card ── */
.ap-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
  backdrop-filter: blur(10px);
}
.ap-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

/* ── Info Row ── */
.ap-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-info-row:last-child { border-bottom: none; }
.ap-info-label { color: #64748b; font-size: 12px; }
.ap-info-value {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-copy-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  transition: all 0.12s;
  font-family: inherit;
}
.ap-copy-btn:hover { background: rgba(255,255,255,0.1); color: #94a3b8; }

/* ── AfA Bar ── */
.ap-afa-bar-wrap { margin-top: 10px; }
.ap-afa-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 5px;
}
.ap-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.ap-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.ap-fill-teal { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.ap-fill-green { background: linear-gradient(90deg, #059669, #34d399); }
.ap-fill-amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
.ap-fill-red { background: linear-gradient(90deg, #dc2626, #ef4444); }
.ap-afa-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #475569;
  margin-top: 4px;
}

/* ── User Card ── */
.ap-user-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ap-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ap-user-name { font-size: 14px; font-weight: 600; color: #f1f5f9; }
.ap-user-pos { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── Agent Metric ── */
.ap-agent-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ap-agent-metric-label { font-size: 12px; color: #64748b; width: 40px; flex-shrink: 0; }
.ap-agent-metric-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.ap-agent-metric-value { font-size: 12px; color: #94a3b8; width: 90px; text-align: right; flex-shrink: 0; }

/* ── Timeline ── */
.ap-timeline { position: relative; padding-left: 24px; }
.ap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.ap-timeline-item { position: relative; margin-bottom: 16px; }
.ap-timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d9488;
  border: 2px solid #0f172a;
}
.ap-timeline-dot--planned { background: #f59e0b; }
.ap-timeline-date { font-size: 11px; color: #64748b; margin-bottom: 3px; }
.ap-timeline-title { font-size: 13px; font-weight: 500; color: #f1f5f9; }
.ap-timeline-desc { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── History Table ── */
.ap-history-table { width: 100%; border-collapse: collapse; }
.ap-history-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ap-history-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-history-table tr:last-child td { border-bottom: none; }
.ap-history-table td:first-child { color: #f1f5f9; }

/* ── Agent Data Grid ── */
.ap-agent-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Document Items ── */
.ap-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.ap-doc-item:hover { background: rgba(255,255,255,0.06); }
.ap-doc-icon {
  width: 36px;
  height: 36px;
  background: rgba(96,165,250,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ap-doc-name { font-size: 13px; font-weight: 500; color: #f1f5f9; }
.ap-doc-meta { font-size: 11px; color: #64748b; margin-top: 2px; }

/* ── Modal ── */
.ap-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.ap-modal {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 90vw;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.ap-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  margin-bottom: 16px;
}
.ap-modal-title { font-size: 16px; font-weight: 700; color: #f1f5f9; }
.ap-modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-family: inherit;
}
.ap-modal-body { padding: 0 24px 16px; }
.ap-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ap-modal-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
}

/* ── Form in Modal ── */
.ap-form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ap-form-row { display: flex; flex-direction: column; gap: 5px; }
.ap-form-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ap-form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 8px 10px;
  color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}
.ap-form-input:focus { border-color: rgba(13,148,136,0.5); }
.ap-form-input::placeholder { color: #475569; }
.ap-form-input option { background: #1e293b; color: #f1f5f9; }

/* ── Light Theme Overrides ── */
html[data-theme="light"] .ap-left-panel {
  background: rgba(0,0,0,0.02);
  border-right-color: #e2e8f0;
}
html[data-theme="light"] .ap-panel-title { color: #1d1d1f; }
html[data-theme="light"] .ap-search-input { background: #ffffff; border-color: #e2e8f0; color: #1d1d1f; }
html[data-theme="light"] .ap-search-input:focus { border-color: #008487; }
html[data-theme="light"] .ap-search-input::placeholder { color: #94a3b8; }
html[data-theme="light"] .ap-asset-item:hover { background: rgba(0,0,0,0.03); }
html[data-theme="light"] .ap-asset-item--active { background: rgba(0,132,135,0.07); border-color: rgba(0,132,135,0.3); }
html[data-theme="light"] .ap-asset-name { color: #1d1d1f; }
html[data-theme="light"] .ap-asset-sub { color: #6e6e73; }
html[data-theme="light"] .ap-stat-card { background: rgba(0,0,0,0.03); border-color: #e2e8f0; }
html[data-theme="light"] .ap-stat-value { color: #1d1d1f; }
html[data-theme="light"] .ap-detail-name { color: #1d1d1f; }
html[data-theme="light"] .ap-card { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .ap-kpi-card { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .ap-kpi-value { color: #1d1d1f; }
html[data-theme="light"] .ap-info-value { color: #1d1d1f; }
html[data-theme="light"] .ap-info-row { border-bottom-color: #f1f5f9; }
html[data-theme="light"] .ap-modal { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .ap-modal-title { color: #1d1d1f; }
html[data-theme="light"] .ap-form-input { background: #ffffff; border-color: #e2e8f0; color: #1d1d1f; }
html[data-theme="light"] .ap-form-input option { background: #ffffff; color: #1d1d1f; }
html[data-theme="light"] .ap-more-menu { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .ap-more-item { color: #1d1d1f; border-bottom-color: #f1f5f9; }
html[data-theme="light"] .ap-more-item:hover { background: #f5f5f7; }
html[data-theme="light"] .ap-timeline::before { background: #e2e8f0; }
html[data-theme="light"] .ap-timeline-title { color: #1d1d1f; }
html[data-theme="light"] .ap-asset-icon-wrap { background: rgba(0,0,0,0.05); }
html[data-theme="light"] .ap-detail-icon-box { background: rgba(0,132,135,0.08); border-color: rgba(0,132,135,0.2); }
html[data-theme="light"] .ap-search-toggle { background: rgba(0,0,0,0.04); border-color: #e2e8f0; }
html[data-theme="light"] .ap-pill { color: #6e6e73; border-color: #e2e8f0; }
html[data-theme="light"] .ap-pill:hover { color: #1d1d1f; border-color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ap-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-content-grid2 { grid-template-columns: 1fr; }
  .ap-agent-data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .ap-left-panel { display: none; }
  .ap-right-panel { padding: 16px; }
}

/* ── Global Select Styling ── */
select, .form-select, select.form-control {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    transition: border-color 0.2s !important;
}
select:focus, .form-select:focus, select.form-control:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.15) !important;
}
select option {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}
select:hover {
    border-color: rgba(255,255,255,0.2) !important;
}

/* ── AP Form Select (AssetsPage) ── */
.ap-form-input[type="text"], .ap-form-input, select.ap-form-input {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ── BV Modal Select (Benutzerverwaltung) ── */
.bv-modal-select, .bv-form-select {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.bv-modal-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}

/* Light Theme Overrides für Global Selects */
html[data-theme="light"] select,
html[data-theme="light"] .form-select,
html[data-theme="light"] select.form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}
html[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}
html[data-theme="light"] .bv-modal-select {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════
   MONITORING PAGE — New Design (mon-* prefix)
═══════════════════════════════════════════════════════════ */
.mon-chip{display:inline-flex;align-items:center;gap:5px;font-family:monospace;font-size:10.5px;font-weight:700;letter-spacing:.4px;padding:2px 8px;border-radius:7px;white-space:nowrap;}
.mon-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 7px currentColor;}
.mon-chip.ok{color:#34d399;background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.3);}
.mon-chip.warn{color:#f59e0b;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);}
.mon-chip.crit{color:#f43f5e;background:rgba(244,63,94,.12);border:1px solid rgba(244,63,94,.3);}
.mon-chip.unk{color:#64748b;background:rgba(100,116,139,.14);border:1px solid rgba(100,116,139,.3);}
.mon-chip.lg{font-size:11.5px;padding:4px 11px;}

.mon-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px;}
@media(max-width:1100px){.mon-kpis{grid-template-columns:repeat(2,1fr);}}
.mon-kpi{padding:18px;position:relative;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;backdrop-filter:blur(10px);}
.mon-kpi-head{display:flex;align-items:center;gap:9px;margin-bottom:14px;}
.mon-kpi-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);}
.mon-kpi-name{font-size:12px;font-weight:650;color:var(--text-muted);letter-spacing:.2px;}
.mon-kpi-row{display:flex;align-items:flex-end;gap:14px;}
.mon-kpi-num{font-family:monospace;font-size:34px;font-weight:750;line-height:1;letter-spacing:-1px;}
.mon-kpi-den{font-size:13px;color:var(--text-muted);font-family:monospace;}
.mon-kpi-breaks{display:flex;gap:14px;margin-left:auto;}
.mon-kpi-break{text-align:right;}
.mon-kpi-break-num{font-family:monospace;font-size:15px;font-weight:700;line-height:1;}
.mon-kpi-break-lbl{font-size:9.5px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin-top:3px;}
.mon-kpi-bar{display:flex;height:5px;border-radius:6px;overflow:hidden;margin-top:14px;gap:2px;background:rgba(255,255,255,.05);}
.mon-kpi-bar span{height:100%;}

.mon-perf{display:flex;align-items:center;gap:10px;min-width:0;}
.mon-perf-track{position:relative;flex:1;height:7px;min-width:60px;border-radius:6px;background:rgba(255,255,255,.07);overflow:hidden;}
.mon-perf-fill{position:absolute;left:0;top:0;bottom:0;border-radius:6px;}
.mon-perf-fill.ok{background:linear-gradient(90deg,#0d9488,#34d399);}
.mon-perf-fill.warn{background:linear-gradient(90deg,#d97706,#fbbf24);}
.mon-perf-fill.crit{background:linear-gradient(90deg,#e11d48,#fb7185);}
.mon-perf-val{font-family:monospace;font-size:12px;font-weight:700;min-width:48px;text-align:right;}

.mon-table-wrap{overflow-x:auto;}
.mon-table{width:100%;border-collapse:collapse;}
.mon-table thead th{text-align:left;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--text-muted);padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap;background:rgba(255,255,255,.015);}
.mon-table tbody td{padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:middle;font-size:13px;}
.mon-table tbody tr:last-child td{border-bottom:none;}
.mon-table tbody tr{transition:background .12s;}
.mon-table tbody tr:hover{background:rgba(255,255,255,.03);}
.mon-table tr.lrow-crit td:first-child{border-left:3px solid #f43f5e;padding-left:11px;}
.mon-table tr.lrow-warn td:first-child{border-left:3px solid #f59e0b;padding-left:11px;}

.mon-sev{margin-bottom:20px;}
.mon-sev-head{display:flex;align-items:center;gap:11px;margin-bottom:11px;padding:0 2px;}
.mon-sev-dot{width:10px;height:10px;border-radius:50%;}
.mon-sev-name{font-size:14px;font-weight:700;letter-spacing:.2px;}
.mon-sev-cnt{font-family:monospace;font-size:12px;font-weight:700;padding:2px 9px;border-radius:20px;}
.mon-sev-line{flex:1;height:1px;background:rgba(255,255,255,.08);}
.mon-prob{display:grid;grid-template-columns:auto 1fr auto auto;gap:16px;align-items:center;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.06);transition:background .12s;}
.mon-prob:last-child{border-bottom:none;}
.mon-prob:hover{background:rgba(255,255,255,.03);}
.mon-prob-host{display:flex;align-items:center;gap:11px;min-width:0;}
.mon-prob-icn{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);flex-shrink:0;font-size:18px;}
.mon-prob-name{font-weight:650;font-size:13.5px;font-family:monospace;}
.mon-prob-svc{font-size:11.5px;color:var(--text-muted);margin-top:1px;}
.mon-prob-since{font-family:monospace;font-size:12px;color:var(--text-secondary);text-align:right;}
.mon-prob-since-lbl{font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;}

