*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base: #f1f5f9;
  --bg-app: #e2e8f0;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-hover: rgba(2, 132, 199, 0.06);

  --border: #cbd5e1;
  --border-bright: #94a3b8;

  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-mono: #0284c7;

  --accent-cyan: #0284c7;
  --accent-cyan-dim: rgba(2, 132, 199, 0.12);
  --accent-green: #059669;
  --accent-green-dim: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706;
  --accent-amber-dim: rgba(217, 119, 6, 0.12);
  --accent-red: #dc2626;
  --accent-red-dim: rgba(220, 38, 38, 0.12);
  --accent-purple: #7c3aed;
  --accent-purple-dim: rgba(124, 58, 237, 0.12);

  --priority-critical: #dc2626;
  --priority-high: #d97706;
  --priority-medium: #b45309;
  --priority-low: #64748b;

  --severity-critical: #dc2626;
  --severity-high: #d97706;
  --severity-medium: #b45309;
  --severity-low: #64748b;

  --status-active: #059669;
  --status-pending: #d97706;
  --status-completed: #64748b;
  --status-inprogress: #0284c7;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.15), 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.35);
  --shadow-glow-red: 0 0 20px rgba(220, 38, 38, 0.35);
  --shadow-glow-green: 0 0 20px rgba(5, 150, 105, 0.35);
}

body.dark-theme {
  --bg-base: #0b0f19;
  --bg-app: #0f172a;
  --bg-panel: #131c2e;
  --bg-card: #172238;
  --bg-elevated: #1e2c46;
  --bg-hover: rgba(255, 255, 255, 0.06);

  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.16);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-mono: #38bdf8;

  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.12);
  --accent-green: #34d399;
  --accent-green-dim: rgba(52, 211, 153, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-dim: rgba(251, 191, 36, 0.12);
  --accent-red: #f87171;
  --accent-red-dim: rgba(248, 113, 113, 0.12);
  --accent-purple: #a78bfa;
  --accent-purple-dim: rgba(167, 139, 250, 0.12);

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-glow-cyan: 0 0 16px rgba(56, 189, 248, 0.25);
  --shadow-glow-red: 0 0 16px rgba(248, 113, 113, 0.25);
  --shadow-glow-green: 0 0 16px rgba(52, 211, 153, 0.25);
  
  color-scheme: dark;
}

body.dark-theme,
body.dark-theme html,
body.dark-theme #root {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.06), transparent 70%),
    radial-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  background-attachment: fixed;
  color: #090d16;
  color: var(--text-primary);
}

body.dark-theme .sidebar {
  background: #101726;
  border-right-color: #cbd5e1;
  border-right-color: var(--border);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

body.dark-theme .sidebar-logo {
  background: #101726;
  border-bottom-color: #cbd5e1;
  border-bottom-color: var(--border);
}

body.dark-theme .sidebar-status {
  background: #101726;
  border-top-color: #cbd5e1;
  border-top-color: var(--border);
}

body.dark-theme .topbar {
  background: rgba(16, 23, 38, 0.88);
  border-bottom-color: #cbd5e1;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

body.dark-theme .login-page {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

body.dark-theme .login-brand-block {
  background: linear-gradient(135deg, #172238 0%, #131c2e 100%);
  border-bottom-color: #cbd5e1;
  border-bottom-color: var(--border);
}

body.dark-theme .handover-scope {
  background: #ffffff;
  background: var(--bg-card);
  border-color: #cbd5e1;
  border-color: var(--border);
}

html, body, #root {
  height: 100%;
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(2, 132, 199, 0.07), transparent 70%),
    radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  background-attachment: fixed;
  color: #090d16;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #94a3b8; background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; background: var(--text-muted); }

/* Layout */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 235px;
  min-width: 235px;
  background: #ffffff;
  background: var(--bg-panel);
  border-right: 1px solid #cbd5e1;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  transition: width 0.2s ease;
  position: relative;
  z-index: 20;
}

.sidebar-logo {
  padding: 16px 16px 14px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
}

.sidebar-logo .logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sidebar-logo .logo-brand:hover .logo-icon {
  transform: scale(1.05);
}

.logo-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1;
}

.logo-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-logo .logo-mark {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-version-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #0284c7;
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  line-height: 1.2;
}

.sidebar-logo .logo-sub {
  font-size: 11px;
  color: #64748b;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-dept-wrapper {
  margin-top: 12px;
  width: 100%;
}

.sidebar-section {
  padding: 16px 12px 8px;
}

.sidebar-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #64748b;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 7px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #334155;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.16s ease;
  text-decoration: none;
  border: 1px solid transparent;
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #090d16;
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  color: #0284c7;
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.2);
  font-weight: 600;
}

.nav-item.active svg {
  color: #0284c7;
  color: var(--accent-cyan);
}

.nav-item svg { flex-shrink: 0; }

.sidebar-status {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
  position: relative;
}

.sidebar-status::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #94a3b8, transparent);
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #334155;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  background: var(--accent-green);
  box-shadow: 0 0 8px #059669;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 245, 160, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Main content */
.main-content {
  flex: 1 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 28px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 60px;
}

body:not(.dark-theme) .topbar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.topbar-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.topbar-meta {
  font-size: 11.5px;
  color: #64748b;
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Page content */
.page-content {
  padding: 24px 28px;
  flex: 1 1;
}

/* Cards / Panels */
.panel {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06), 0 0 20px rgba(0, 240, 255, 0.05);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 240, 255, 0.05);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.panel-title {
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #090d16;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg {
  color: #0284c7;
  color: var(--accent-cyan);
}

.panel-body { padding: 20px; }

/* Stat cards / KPI Overview */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 114px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.stat-card.cyan::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}
.stat-card.green::before {
  background: linear-gradient(90deg, #059669, #34d399);
}
.stat-card.amber::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.stat-card.red::before {
  background: linear-gradient(90deg, #dc2626, #f87171);
}
.stat-card.purple::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.stat-card:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

body.dark-theme .stat-card.cyan .stat-value { color: #0284c7; color: var(--accent-cyan); }
body.dark-theme .stat-card.green .stat-value { color: #059669; color: var(--accent-green); }
body.dark-theme .stat-card.amber .stat-value { color: #d97706; color: var(--accent-amber); }
body.dark-theme .stat-card.red .stat-value { color: #dc2626; color: var(--accent-red); }
body.dark-theme .stat-card.purple .stat-value { color: #7c3aed; color: var(--accent-purple); }

body:not(.dark-theme) .stat-card.cyan .stat-value { color: #0284c7; }
body:not(.dark-theme) .stat-card.green .stat-value { color: #059669; }
body:not(.dark-theme) .stat-card.amber .stat-value { color: #d97706; }
body:not(.dark-theme) .stat-card.red .stat-value { color: #dc2626; }
body:not(.dark-theme) .stat-card.purple .stat-value { color: #7c3aed; }

.stat-sub {
  font-size: 12px;
  color: #64748b;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tables */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.data-table th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  color: #64748b;
  color: var(--text-muted);
  padding: 12px 18px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  color: #090d16;
  color: var(--text-primary);
  font-size: 13.5px;
  transition: background 0.15s ease;
}

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

.data-table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  transition: all 0.15s ease;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}

.badge-critical { background: rgba(220, 38, 38, 0.12); background: var(--accent-red-dim); color: #dc2626; color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-high { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-medium { background: rgba(251, 191, 36, 0.1); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.2); }
.badge-low { background: rgba(100, 116, 139, 0.12); color: #334155; color: var(--text-secondary); border: 1px solid rgba(100, 116, 139, 0.25); }

.badge-open { background: rgba(220, 38, 38, 0.12); background: var(--accent-red-dim); color: #dc2626; color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-inprogress { background: rgba(2, 132, 199, 0.12); background: var(--accent-cyan-dim); color: #0284c7; color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-active { background: rgba(5, 150, 105, 0.12); background: var(--accent-green-dim); color: #059669; color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-resolved { background: rgba(5, 150, 105, 0.12); background: var(--accent-green-dim); color: #059669; color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-closed { background: rgba(100, 116, 139, 0.1); color: #334155; color: var(--text-secondary); border: 1px solid rgba(100, 116, 139, 0.2); }
.badge-pending { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-completed { background: rgba(100, 116, 139, 0.1); color: #334155; color: var(--text-secondary); border: 1px solid rgba(100, 116, 139, 0.2); }
.badge-deferred { background: rgba(124, 58, 237, 0.12); background: var(--accent-purple-dim); color: #7c3aed; color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.3); }
.badge-rostered { background: rgba(2, 132, 199, 0.12); background: var(--accent-cyan-dim); color: #0284c7; color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-unassigned { background: rgba(100, 116, 139, 0.08); color: #64748b; color: var(--text-muted); border: 1px dashed rgba(100, 116, 139, 0.3); }
.badge-onhold { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-awaitingresponse { background: rgba(124, 58, 237, 0.12); background: var(--accent-purple-dim); color: #7c3aed; color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.3); }
.badge-raisedtovista { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-unabletoclose { background: rgba(220, 38, 38, 0.12); background: var(--accent-red-dim); color: #dc2626; color: var(--accent-red); border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-awaitingapproval { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-cancelled { background: rgba(100, 116, 139, 0.1); color: #64748b; color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-user-select: none;
          user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0.5px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.btn-ghost {
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #090d16;
  color: var(--text-primary);
  border-color: #94a3b8;
  border-color: var(--border-bright);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.12);
  background: var(--accent-red-dim);
  color: #dc2626;
  color: var(--accent-red);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}
.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 5px; }
.btn-icon { padding: 7px; border-radius: 6px; border-radius: var(--radius-sm); }

/* Forms */
.form-grid { display: grid; grid-gap: 16px; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  color: var(--text-muted);
  font-weight: 500;
}

input, select, textarea {
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #090d16;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(25, 118, 201, 0.12);
}

select { cursor: pointer; }
select option { background: #ffffff; background: var(--bg-card); }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* ==========================================================================
   ULTRA-MODERN SEARCH BOX & CONTROLS
   ========================================================================== */

.modern-search-box,
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1.5px solid #94a3b8;
  border: 1.5px solid var(--border-bright);
  border-radius: 24px;
  padding: 2px 10px 2px 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modern-search-box:hover,
.search-box:hover {
  border-color: rgba(2, 132, 199, 0.45);
  background: #ffffff;
  background: var(--bg-panel);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.modern-search-box:focus-within,
.search-box:focus-within {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  background: #ffffff;
  background: var(--bg-panel);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12), 0 4px 14px rgba(2, 132, 199, 0.1);
  box-shadow: 0 0 0 3px var(--accent-cyan-dim), 0 4px 14px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

.modern-search-box .search-icon,
.search-box .search-icon,
.search-box > svg {
  color: #64748b;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
  position: static !important;
  transform: none !important;
  margin-right: 2px;
}

.modern-search-box:focus-within .search-icon,
.search-box:focus-within .search-icon,
.search-box:focus-within > svg {
  color: #0284c7;
  color: var(--accent-cyan);
  transform: scale(1.08) !important;
}

.modern-search-box input,
.search-box input {
  flex: 1 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 7px 8px !important;
  font-size: 12.5px !important;
  color: #090d16 !important;
  color: var(--text-primary) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif !important;
  font-family: var(--font-sans) !important;
  width: 100%;
}

.modern-search-box input::placeholder,
.search-box input::placeholder {
  color: #64748b !important;
  color: var(--text-muted) !important;
  font-weight: 400;
  opacity: 0.85;
}

.modern-search-box .search-clear-btn,
.search-box .search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #64748b;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  transition: all 0.15s ease;
  position: static !important;
  transform: none !important;
}

.modern-search-box .search-clear-btn:hover,
.search-box .search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  color: var(--accent-red);
  transform: scale(1.1) !important;
}

.search-shortcut-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #64748b;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  -webkit-user-select: none;
          user-select: none;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(0, 240, 255, 0.08), transparent 70%),
    radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
    #e2e8f0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(0, 240, 255, 0.08), transparent 70%),
    radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
    var(--bg-app);
  background-size: 100% 100%, 28px 28px, 100% 100%;
}

.login-panel {
  width: 440px;
  max-width: 94vw;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-top: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
  background: #ffffff;
  background: var(--bg-card);
  overflow: hidden;
}

.login-brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  padding: 26px 28px 22px;
  background: #ffffff;
  background: var(--bg-panel);
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.login-app-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: #030712;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #059669 100%);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #38bdf8 50%, var(--accent-green) 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: iconFloat 3s ease-in-out infinite;
}

.login-app-name {
  color: #090d16;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.login-app-subtitle {
  margin-top: 4px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-weight: 600;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease-out;
}

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

.modal {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.12);
  animation: modalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
}

.modal-title {
  font-size: 15.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  color: #090d16;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.modal-body { padding: 24px; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

/* Alerts / empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #64748b;
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg { opacity: 0.3; }
.empty-state p { font-size: 13px; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid;
  margin-bottom: 16px;
}

.alert-error { background: rgba(220, 38, 38, 0.12); background: var(--accent-red-dim); border-color: rgba(215,58,73,0.24); color: #dc2626; color: var(--accent-red); }
.alert-warning { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); border-color: rgba(183,121,31,0.24); color: #d97706; color: var(--accent-amber); }
.alert-success { background: rgba(5, 150, 105, 0.12); background: var(--accent-green-dim); border-color: rgba(31,143,85,0.24); color: #059669; color: var(--accent-green); }
.alert-info { background: rgba(2, 132, 199, 0.12); background: var(--accent-cyan-dim); border-color: rgba(25,118,201,0.24); color: #0284c7; color: var(--accent-cyan); }

/* Handover task scope */
.handover-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #090d16;
  color: var(--text-primary);
  font-size: 13px;
}

.handover-scope-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  color: var(--text-muted);
}

/* Solutions knowledge base */
.solutions-page {
  min-height: 0;
}

.solutions-layout {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.solutions-list-panel,
.solutions-detail-panel {
  min-width: 0;
}

.solutions-list-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.solutions-search {
  position: relative;
  padding: 14px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.solutions-search svg {
  position: absolute;
  left: 25px;
  top: 26px;
  color: #64748b;
  color: var(--text-muted);
  pointer-events: none;
}

.solutions-search input {
  padding-left: 34px;
}

.solutions-list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
}

.solution-list-item {
  width: 100%;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-list-item:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.solution-list-item.active {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  background: #f8fafc;
  background: var(--bg-elevated);
  box-shadow: inset 3px 0 0 #0284c7, 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: inset 3px 0 0 var(--accent-cyan), var(--shadow-sm);
}

.solution-list-heading {
  color: #090d16;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.solution-list-meta {
  color: #64748b;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.solution-list-excerpt {
  color: #334155;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solutions-empty,
.solutions-empty-detail {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  color: var(--text-muted);
  text-align: center;
}

.solutions-empty svg,
.solutions-empty-detail svg {
  opacity: 0.35;
}

.solutions-empty-detail {
  min-height: 520px;
  padding: 24px;
}

.solutions-empty-detail h2 {
  color: #090d16;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.solutions-editor {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.solutions-editor-grid {
  align-items: start;
}

.solutions-editor textarea {
  min-height: 220px;
}

.solutions-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 13px;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px dashed #94a3b8;
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #334155;
  color: var(--text-secondary);
  cursor: pointer;
}

.solutions-dropzone > svg {
  color: #0284c7;
  color: var(--accent-cyan);
}

.solutions-dropzone strong {
  display: block;
  color: #090d16;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
}

.solutions-dropzone span {
  display: block;
  color: #64748b;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.solutions-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.solution-attachment {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
}

.solution-attachment-preview {
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #0284c7;
  color: var(--accent-cyan);
}

.solution-attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-attachment-body {
  min-width: 0;
}

.solution-attachment-name {
  color: #090d16;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solution-attachment-meta {
  color: #64748b;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 2px;
}

.solution-attachment-section {
  margin-top: 7px;
  display: grid;
  grid-template-columns: auto minmax(92px, 1fr);
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
  color: #64748b;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.solution-attachment-section select {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.solution-attachment-actions {
  display: flex;
  gap: 5px;
}

.solution-detail {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.solution-document {
  background: #e2e8f0;
  background: var(--bg-app);
}

.solution-document-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-gap: 22px;
  gap: 22px;
  padding: 18px clamp(14px, 3vw, 34px) 28px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
}

.solution-document-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.solution-detail-heading,
.solution-document-header {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.solution-detail-heading h2,
.solution-document-header h2 {
  color: #090d16;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.solution-detail-heading span,
.solution-document-header span {
  color: #64748b;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 11px;
}

.solution-document-section {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.solution-document-section-title {
  color: #0284c7;
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.solution-document-section p {
  color: #334155;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.solution-document-fix-section {
  padding-top: 18px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
}

.solution-document-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-top: 6px;
}

.solution-document-image,
.solution-document-image-loading {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.solution-document-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ffffff;
  background: var(--bg-card);
}

.solution-document-image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  color: #64748b;
  color: var(--text-muted);
  font-size: 12px;
}

.solution-document-image figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solution-document-image-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 13px;
}

.solution-read-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.solution-read-grid section {
  padding: 16px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.solution-read-title {
  margin-bottom: 8px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.solution-read-grid p {
  color: #334155;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.solutions-empty-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive Master-Detail layout classes */
.responsive-master-detail {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.responsive-master-detail.shifts-grid {
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  align-items: start;
  height: calc(100vh - 120px);
  min-height: 0;
}

.shifts-grid .list-panel {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
}

.shifts-grid .detail-panel {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
}

.responsive-master-detail.incidents-grid {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
}

.responsive-master-detail.projects-grid {
  grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
}

.tasks-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.incident-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

/* Mobile Header & Overlay default hidden states */
.mobile-header {
  display: none;
}
.sidebar-overlay {
  display: none;
}

/* Mobile back button for master-detail viewports */
.btn-back-master {
  display: none !important;
}

@media (max-width: 900px) {
  .btn-back-master {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
  }
}

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-mono { font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace; font-family: var(--font-mono); }
.text-sm { font-size: 12px; }
.text-muted { color: #64748b; color: var(--text-muted); }
.text-secondary { color: #334155; color: var(--text-secondary); }
.w-full { width: 100%; }
.overflow-x-auto { overflow-x: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 20px; gap: 20px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dashboard-col > .panel {
  width: 100%;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: #64748b;
  color: var(--text-muted);
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid #94a3b8;
  border: 2px solid var(--border-bright);
  border-top-color: #0284c7;
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Task checklist item */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  transition: all 0.16s ease;
}

.task-item:last-child { border-bottom: none; }
.task-item:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateX(2px);
}

.task-checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid #94a3b8;
  border: 1.5px solid var(--border-bright);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-checkbox:hover {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.12);
  box-shadow: 0 0 8px var(--accent-cyan-dim);
}

.task-checkbox.checked {
  background: #059669;
  background: var(--accent-green);
  border-color: #059669;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.4);
}

.task-title { font-size: 13.5px; color: #090d16; color: var(--text-primary); font-weight: 500; }
.task-title.done { text-decoration: line-through; color: #64748b; color: var(--text-muted); }
.task-meta { font-size: 11.5px; color: #64748b; color: var(--text-muted); margin-top: 3px; display: flex; gap: 10px; font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace; font-family: var(--font-mono); }

/* Incident item */
.incident-item {
  padding: 14px 18px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.incident-item:last-child { border-bottom: none; }
.incident-item:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 #0284c7;
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}

.incident-title { font-size: 13.5px; font-weight: 600; color: #090d16; color: var(--text-primary); margin-bottom: 4px; }
.incident-system { font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace; font-family: var(--font-mono); font-size: 11px; color: #0284c7; color: var(--accent-cyan); font-weight: 600; letter-spacing: 0.3px; }

/* Shift summary card */
.shift-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.shift-card:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 14px rgba(0, 240, 255, 0.08);
}

.shift-card.selected {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  background: #f8fafc;
  background: var(--bg-elevated);
  box-shadow: inset 3px 0 0 #0284c7, 0 0 16px rgba(0, 240, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--accent-cyan), 0 0 16px rgba(0, 240, 255, 0.12);
}

.shift-card.live {
  border-color: rgba(255, 170, 0, 0.35);
  background: rgba(255, 170, 0, 0.04);
}

.shift-card.live::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #d97706;
  background: var(--accent-amber);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}

.shift-card.active {
  border-color: rgba(0, 245, 160, 0.35);
  background: rgba(0, 245, 160, 0.04);
}

.shift-card.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #059669;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.6);
}

/* Divider */
.divider { height: 1px; background: #cbd5e1; background: var(--border); margin: 20px 0; }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #334155;
  color: var(--text-secondary);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  font-weight: 500;
}

/* Settings */
.settings-page {
  display: block;
}

.settings-stack {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.settings-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
}

.settings-hero,
.settings-metric {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
}

.settings-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px;
}

.settings-hero-icon,
.settings-heading-icon,
.settings-metric-icon,
.settings-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #059669);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  box-shadow: 0 12px 26px rgba(25, 118, 201, 0.18);
}

.settings-hero-title {
  font-size: 20px;
  font-weight: 600;
  color: #090d16;
  color: var(--text-primary);
}

.settings-hero-meta,
.settings-section-meta,
.settings-metric-label,
.settings-empty-inline {
  color: #64748b;
  color: var(--text-muted);
  font-size: 12px;
}

.settings-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.settings-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.settings-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
}

.settings-metric.cyan .settings-metric-icon { background: rgba(2, 132, 199, 0.12); background: var(--accent-cyan-dim); color: #0284c7; color: var(--accent-cyan); }
.settings-metric.green .settings-metric-icon { background: rgba(5, 150, 105, 0.12); background: var(--accent-green-dim); color: #059669; color: var(--accent-green); }
.settings-metric.amber .settings-metric-icon { background: rgba(217, 119, 6, 0.12); background: var(--accent-amber-dim); color: #d97706; color: var(--accent-amber); }
.settings-metric.red .settings-metric-icon { background: rgba(220, 38, 38, 0.12); background: var(--accent-red-dim); color: #dc2626; color: var(--accent-red); }
.settings-metric.purple .settings-metric-icon { background: rgba(124, 58, 237, 0.12); background: var(--accent-purple-dim); color: #7c3aed; color: var(--accent-purple); }

.settings-metric-value {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #090d16;
  color: var(--text-primary);
}

.settings-metric-label {
  margin-top: 4px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}

.settings-side-nav {
  position: sticky;
  top: 16px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 10px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  color: #334155;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}

.settings-nav-item:hover {
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #090d16;
  color: var(--text-primary);
}

.settings-nav-item.active {
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  color: #0284c7;
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0284c7;
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}

.settings-main {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  min-width: 0;
}

.settings-section {
  scroll-margin-top: 18px;
}

.settings-section-header {
  gap: 14px;
}

.settings-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-heading-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  color: #0284c7;
  color: var(--accent-cyan);
}

.settings-section-title {
  color: #090d16;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.settings-section-meta {
  margin-top: 1px;
}

.settings-access-body,
.settings-team-body,
.settings-list-editor .panel-body {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.settings-create-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr) minmax(140px, 1fr) 140px auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.settings-create-button,
.settings-add-row > .btn {
  min-height: 39px;
}

.settings-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
}

.settings-user-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #ffffff;
  background: var(--bg-card);
}

.settings-user-table th {
  padding: 10px 12px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.settings-user-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.settings-user-table input,
.settings-user-table select {
  min-height: 36px;
}

.settings-mono-input {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 12px;
}

.settings-password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-password-field svg {
  position: absolute;
  left: 10px;
  color: #64748b;
  color: var(--text-muted);
  pointer-events: none;
}

.settings-password-field input {
  padding-left: 32px;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.settings-toggle input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #059669;
  accent-color: var(--accent-green);
}

.settings-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.settings-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}

.settings-shift-time-row {
  grid-template-columns: minmax(150px, 1fr) 120px 120px auto;
}

.settings-tech-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.settings-tech-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
}

.settings-tech-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.settings-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #0284c7;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-weight: 600;
}

.settings-tech-name {
  color: #090d16;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.settings-empty-state {
  padding: 22px;
  border: 1px dashed #94a3b8;
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
  border-radius: var(--radius);
  color: #64748b;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

.settings-section-strip {
  margin-bottom: 12px;
}

.settings-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.settings-list-editor {
  min-width: 0;
}

.settings-shift-type-editor {
  grid-column: 1 / -1;
}

.settings-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.settings-tag {
  gap: 6px;
  padding: 4px 5px 4px 9px;
}

.settings-tag-remove {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  color: #dc2626;
  color: var(--accent-red);
  background: transparent;
  cursor: pointer;
}

.settings-tag-action {
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  padding: 0 7px;
  color: #0284c7;
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  font-size: 11px;
  cursor: pointer;
}

.settings-tag-action:hover:not(:disabled) {
  background: rgba(8, 145, 178, 0.18);
}

.settings-tag-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.settings-tag-remove:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.12);
  background: var(--accent-red-dim);
}

.settings-tag-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Collaborative presence */
.presence-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(25, 118, 201, 0.26);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  color: #0284c7;
  color: var(--accent-cyan);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  cursor: default;
  z-index: 3;
}

.presence-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border-radius: var(--radius);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  text-transform: none;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 12px;
  white-space: nowrap;
}

.presence-popover strong {
  color: #090d16;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.presence-badge:hover .presence-popover {
  opacity: 1;
  transform: translateY(0);
}

/* Incident export preview */
.export-preview {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.export-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #334155;
  color: var(--text-secondary);
  font-size: 12px;
}

.export-preview-header strong {
  color: #090d16;
  color: var(--text-primary);
  font-size: 13px;
}

.export-preview-table {
  min-width: 720px;
  background: #ffffff;
  background: var(--bg-card);
}

.export-preview-table tbody tr {
  cursor: default;
}

.export-preview-note {
  color: #64748b;
  color: var(--text-muted);
  font-size: 12px;
}

/* Shift chat */
.shift-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  justify-items: end;
}

.shift-chat-trigger {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(25, 118, 201, 0.28);
  border-radius: 999px;
  background: #0284c7;
  background: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 16px 36px rgba(25, 118, 201, 0.24);
  cursor: pointer;
}

.shift-chat.inactive .shift-chat-trigger {
  background: #ffffff;
  background: var(--bg-card);
  color: #0284c7;
  color: var(--accent-cyan);
}

.shift-chat-icon-stack {
  position: relative;
  width: 23px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shift-chat-icon-stack svg:last-child {
  position: absolute;
  right: -4px;
  bottom: -3px;
  padding: 1px;
  border: 1px solid #ffffff;
  border: 1px solid var(--bg-card);
  border-radius: 999px;
  background: #0284c7;
  background: var(--accent-cyan);
  color: #ffffff;
}

.shift-chat-trigger > span:not(.shift-chat-icon-stack) {
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.shift-chat-trigger > span.unread {
  background: #dc2626;
  background: var(--accent-red);
  color: #ffffff;
}

.shift-chat-notification {
  order: -1;
  width: 300px;
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 9px;
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(25, 118, 201, 0.24);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-align: left;
}

.shift-chat-notification svg {
  margin-top: 2px;
  color: #0284c7;
  color: var(--accent-cyan);
}

.shift-chat-notification span {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.shift-chat-notification strong {
  color: #090d16;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}

.shift-chat-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 460px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  background: var(--bg-card);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15), 0 6px 16px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
}

.shift-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
}

.shift-chat-title {
  font-size: 14px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
}

.shift-chat-meta {
  margin-top: 2px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.shift-chat-messages {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.shift-chat-empty {
  margin: auto;
  color: #64748b;
  color: var(--text-muted);
  font-size: 13px;
}

.chat-message {
  max-width: 86%;
  align-self: flex-start;
}

.chat-message.own { align-self: flex-end; }

.chat-message-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 3px;
  color: #64748b;
  color: var(--text-muted);
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.chat-message.own .chat-message-meta { justify-content: flex-end; }

.chat-message-bubble {
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
  color: #090d16;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-message.own .chat-message-bubble {
  background: #0284c7;
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: #0284c7;
  border-color: var(--accent-cyan);
}

.shift-chat-error {
  padding: 8px 14px;
  color: #dc2626;
  color: var(--accent-red);
  background: rgba(220, 38, 38, 0.12);
  background: var(--accent-red-dim);
  border-top: 1px solid rgba(215,58,73,0.2);
  font-size: 12px;
}

.shift-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-panel);
}

/* Monthly schedule planner */
.modal-wide {
  max-width: 1180px;
}

.schedule-modal {
  max-height: 92vh;
}

.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.schedule-month-control,
.schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-month-control input {
  width: 160px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.schedule-body {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.schedule-bulk-panel {
  display: grid;
  grid-template-columns: 170px 180px minmax(280px, 1fr) auto auto;
  align-items: start;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.schedule-technician-picker {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.schedule-technician-picker.compact select {
  padding: 6px 8px;
  font-size: 11px;
}

.schedule-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 23px;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(25, 118, 201, 0.2);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  color: #0284c7;
  color: var(--accent-cyan);
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.schedule-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.schedule-empty-chip {
  color: #64748b;
  color: var(--text-muted);
  font-size: 11px;
}

.weekday-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weekday-toggle {
  padding: 7px 8px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  cursor: pointer;
}

.weekday-toggle.active {
  background: #0284c7;
  background: var(--accent-cyan);
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.schedule-grid-wrap {
  overflow: auto;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
}

.schedule-grid {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #ffffff;
  background: var(--bg-card);
}

.schedule-grid th,
.schedule-grid td {
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #cbd5e1;
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.schedule-grid th:last-child,
.schedule-grid td:last-child { border-right: 0; }
.schedule-grid tr:last-child td { border-bottom: 0; }

.schedule-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: #edf6ff;
  color: #334155;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.schedule-shift-heading,
.schedule-shift-time {
  display: block;
}

.schedule-shift-time {
  margin-top: 2px;
  color: #0284c7;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
}

.schedule-grid td {
  padding: 10px;
  min-width: 210px;
}

.schedule-date-cell {
  width: 84px;
  min-width: 84px !important;
  background: #f8fbff;
  color: #090d16;
  color: var(--text-primary);
  text-align: center;
}

.schedule-date-cell strong {
  display: block;
  font-size: 18px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.schedule-date-cell span {
  color: #64748b;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.schedule-note-input {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    background: #ffffff;
    background: var(--bg-panel);
    border-bottom: 1px solid #cbd5e1;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }

  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: #0284c7;
    color: var(--accent-cyan);
  }

  .mobile-menu-toggle {
    background: transparent;
    border: none;
    color: #334155;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
  }

  .mobile-menu-toggle:hover {
    background: #f8fafc;
    background: var(--bg-elevated);
    color: #090d16;
    color: var(--text-primary);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    z-index: 1040;
    animation: fadeIn 0.2s ease;
  }

  .app-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    min-width: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    background: var(--bg-card);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow);
    max-height: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-top: 56px; /* Offset for mobile header */
    overflow: visible;
  }

  .topbar,
  .topbar-actions,
  .schedule-toolbar,
  .schedule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    margin-top: 10px;
    gap: 8px;
  }

  .page-content {
    padding: 16px;
  }

  .grid-2,
  .grid-3,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto !important;
  }

  .dashboard-col {
    height: auto !important;
    overflow: visible !important;
    padding-right: 0;
  }

  .settings-overview,
  .settings-layout,
  .settings-create-grid,
  .settings-add-row,
  .settings-shift-time-row,
  .settings-tech-row,
  .solutions-layout,
  .solution-read-grid {
    grid-template-columns: 1fr;
  }

  /* Master-Detail mobile handling */
  .responsive-master-detail.shifts-grid,
  .responsive-master-detail.incidents-grid,
  .responsive-master-detail.projects-grid {
    grid-template-columns: 1fr;
    display: block;
  }

  .responsive-master-detail.show-detail .list-panel {
    display: none;
  }

  .responsive-master-detail.show-list .detail-panel {
    display: none;
  }

  .solutions-layout.show-detail .solutions-list-panel {
    display: none;
  }

  .solutions-layout.show-list .solutions-detail-panel {
    display: none;
  }

  /* Tasks Filter Bar mobile layout */
  .tasks-filter-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .incident-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-metrics,
  .settings-list-grid,
  .solutions-attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-list-panel {
    position: static;
    max-height: none;
  }

  .settings-side-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-nav-item {
    justify-content: center;
  }

  .settings-inline-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .schedule-bulk-panel {
    grid-template-columns: 1fr;
  }

  .shift-chat {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 620px) {
  .settings-metrics,
  .settings-list-grid,
  .settings-side-nav,
  .solutions-attachments,
  .solutions-dropzone {
    grid-template-columns: 1fr;
  }

  .incident-info-grid {
    grid-template-columns: 1fr;
  }

  .solutions-dropzone .btn {
    width: -moz-fit-content;
    width: fit-content;
  }

  .settings-hero,
  .settings-metric {
    align-items: flex-start;
  }

  .settings-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Incident Sharing Slide-In Toasts */
.notification-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification-toast {
  pointer-events: auto;
  width: 350px;
  background: rgba(23, 32, 51, 0.95); /* Dark theme slate matching the app colors */
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 8px 12px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.notification-toast:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 1);
  border-color: rgba(37, 99, 235, 0.5); /* blue glow */
  box-shadow: 0 14px 38px rgba(35, 54, 84, 0.25);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-toast.dismissing {
  animation: toast-slide-out 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.notification-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple, #7c3aed));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.notification-content {
  flex-grow: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.notification-sender {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.notification-time {
  font-size: 9.5px;
  color: #64748b;
  color: var(--text-muted);
}

.notification-message {
  font-size: 11.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-title {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8; /* light blue */
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
}

/* Projects & Engineering Workspace Styles */
.badge-priority-critical {
  background-color: rgba(220, 38, 38, 0.12) !important;
  background-color: var(--accent-red-dim) !important;
  color: #dc2626 !important;
  color: var(--priority-critical) !important;
}
.badge-priority-high {
  background-color: rgba(217, 119, 6, 0.12) !important;
  background-color: var(--accent-amber-dim) !important;
  color: #d97706 !important;
  color: var(--priority-high) !important;
}
.badge-priority-medium {
  background-color: rgba(217, 119, 6, 0.08) !important;
  color: #b45309 !important;
  color: var(--priority-medium) !important;
}
.badge-priority-low {
  background-color: #f1f5f9 !important;
  background-color: var(--bg-base) !important;
  color: #64748b !important;
  color: var(--priority-low) !important;
}

.status-badge.status-cancelled {
  background-color: #f8fafc;
  background-color: var(--bg-elevated);
  color: #64748b;
  color: var(--text-muted);
}

.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
}

.subtask-row {
  transition: background-color 0.15s ease;
}

.subtask-row:hover {
  background-color: rgba(2, 132, 199, 0.06) !important;
  background-color: var(--bg-hover) !important;
}

.epic-block {
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.gantt-container {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
}

.kanban-container {
  scrollbar-width: thin;
}

/* Additional styling for tabs and tables in Projects page */
.tab-btn {
  background: transparent;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #0284c7;
  color: var(--accent-cyan);
  border-bottom: 2px solid #0284c7;
  border-bottom: 2px solid var(--accent-cyan);
}

.tab-btn:hover {
  color: #090d16;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .grid-2-mobile {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   JIRA-STYLE KANBAN BOARD & TECHNICIAN QUICK FILTERS
   ========================================================================== */

.kanban-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Jira-Style Quick Filters Bar */
.jira-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  background: var(--bg-panel);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
}

.jira-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.jira-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.jira-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #f1f5f9;
  background: var(--bg-base);
  color: #334155;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.jira-chip-btn:hover {
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #090d16;
  color: var(--text-primary);
  border-color: #64748b;
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.jira-chip-btn.active {
  background: #0284c7;
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.jira-chip-btn.unassigned.active {
  background: #d97706;
  background: var(--accent-amber);
  color: #ffffff;
  border-color: #d97706;
  border-color: var(--accent-amber);
}

/* Avatar Chips */
.jira-avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #f1f5f9;
  background: var(--bg-base);
  color: #090d16;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.jira-avatar-chip:hover {
  background: #f8fafc;
  background: var(--bg-elevated);
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.jira-avatar-chip.active {
  background: #ffffff;
  background: var(--bg-card);
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  color: #0284c7;
  color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25), 0 4px 12px rgba(2, 132, 199, 0.15);
}

.jira-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jira-avatar-chip.active .jira-avatar-circle {
  background: #0284c7;
  background: var(--accent-cyan);
}

.jira-chip-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jira-chip-count {
  padding: 1px 6px;
  border-radius: 10px;
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  font-size: 10.5px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748b;
  color: var(--text-muted);
}

.jira-avatar-chip.active .jira-chip-count {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  color: var(--accent-cyan);
  border-color: rgba(2, 132, 199, 0.25);
}

.jira-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: #dc2626;
  color: var(--accent-red);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.jira-clear-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}

.jira-filter-right {
  font-size: 11.5px;
  color: #64748b;
  color: var(--text-muted);
}

/* Kanban Columns & Animations */
.kanban-columns-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.kanban-col-wrapper {
  flex: 1 0 260px;
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 12px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.kanban-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-to-do { background: #64748b; }
.status-in-progress { background: var(--accent-blue); }
.status-waiting-for-review { background: #d97706; background: var(--accent-amber); }
.status-blocked { background: #dc2626; background: var(--accent-red); }
.status-completed { background: #059669; background: var(--accent-green); }

.kanban-col-title {
  font-weight: 700;
  font-size: 13px;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
}

.kanban-col-badge {
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  padding: 1px 7px;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
  color: var(--text-secondary);
}

.kanban-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 560px;
  padding-right: 2px;
}

.kanban-empty-placeholder {
  padding: 24px 12px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  color: var(--text-muted);
  border: 1px dashed #94a3b8;
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.01);
  font-style: italic;
}

/* Kanban Animated Cards */
.kanban-card-item {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.kanban-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(2, 132, 199, 0.4);
}

.animated-card {
  animation: cardEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kanban-card-epic {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kanban-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.kanban-card-desc {
  font-size: 11px;
  color: #334155;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.4;
}

.kanban-card-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.kanban-assignee-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #334155;
  color: var(--text-secondary);
  font-weight: 500;
}

.mini-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
  font-size: 10.5px;
}

.kanban-due-date {
  color: #64748b;
  color: var(--text-muted);
}

.kanban-due-date.overdue {
  color: #dc2626;
  color: var(--accent-red);
  font-weight: 700;
}

.kanban-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kanban-status-select {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #f1f5f9;
  background: var(--bg-base);
  color: #090d16;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.kanban-status-select:hover {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .kanban-columns-track {
    scroll-snap-type: x mandatory;
    gap: 10px;
  }

  .kanban-col-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100vw - 44px);
    scroll-snap-align: start;
    min-height: 380px;
  }

  .jira-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .jira-filter-left {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
  }

  .jira-filter-right {
    text-align: right;
    font-size: 10.5px;
  }

  .settings-top-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-quick-stats {
    width: 100%;
    justify-content: space-between;
  }

  .settings-tabs-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   MODERN SETTINGS & ADMINISTRATION STYLING
   ========================================================================== */

.settings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.settings-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: #ffffff;
  background: var(--bg-panel);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.settings-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(16, 185, 129, 0.12));
  color: #0284c7;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.settings-main-subtitle {
  font-size: 13px;
  color: #64748b;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.settings-quick-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  font-size: 12.5px;
  color: #334155;
  color: var(--text-secondary);
}

.stat-pill strong {
  color: #090d16;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}

.text-cyan { color: #0284c7 !important; color: var(--accent-cyan) !important; }
.text-green { color: #059669 !important; color: var(--accent-green) !important; }
.text-purple { color: #8b5cf6 !important; }
.text-amber { color: #f59e0b !important; }
.text-red { color: #ef4444 !important; }

/* Toast alerts */
.settings-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn 0.2s ease-in-out;
}

.settings-toast.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.settings-toast.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.settings-toast button {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.settings-toast button:hover { opacity: 1; }

/* Tabs bar */
.settings-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #cbd5e1;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #334155;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all 0.16s ease;
}

.settings-tab-btn:hover {
  color: #090d16;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.03);
}

.settings-tab-btn.active {
  color: #0284c7;
  color: var(--accent-cyan);
  background: #ffffff;
  background: var(--bg-panel);
}

.settings-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #0284c7;
  background: var(--accent-cyan);
  border-radius: 3px 3px 0 0;
}

.tab-badge {
  padding: 2px 7px;
  border-radius: 10px;
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #64748b;
  color: var(--text-muted);
}

.settings-tab-btn.active .tab-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  color: var(--accent-cyan);
  border-color: rgba(2, 132, 199, 0.2);
}

/* Panes */
.settings-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.2s ease-out;
}

/* Card Header Toolbar */
.settings-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #ffffff;
  background: var(--bg-panel);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 280px;
  flex: 1 1;
  max-width: 420px;
  transition: border-color 0.15s;
}

.search-box:focus-within {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.search-box button {
  background: transparent;
  border: none;
  color: #64748b;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #f8fafc;
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #090d16;
  color: var(--text-primary);
  border-color: #64748b;
  border-color: var(--text-muted);
}

.pill-btn.active {
  background: #0284c7;
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.btn-add {
  padding: 9px 16px;
  font-weight: 600;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* User Management Table */
.settings-table-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.user-management-table {
  width: 100%;
  border-collapse: collapse;
}

.user-management-table th {
  text-align: left;
  padding: 12px 20px;
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  color: var(--text-muted);
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.user-management-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13.5px;
}

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

.user-management-table tr:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.user-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.user-cell-name {
  font-weight: 600;
  color: #090d16;
  color: var(--text-primary);
}

.user-cell-email {
  font-size: 11.5px;
  color: #64748b;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  margin-top: 1px;
}

.badge-username {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #334155;
}

.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-role.admin {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.badge-role.tech {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.badge-role.viewer {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.status-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.status-toggle-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-toggle-pill.active {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}
.status-toggle-pill.active .dot { background: #16a34a; }

.status-toggle-pill.inactive {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}
.status-toggle-pill.inactive .dot { background: #dc2626; }

.table-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.action-icon-btn:hover {
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #090d16;
  color: var(--text-primary);
  border-color: #64748b;
  border-color: var(--text-muted);
}

.action-icon-btn.danger:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.empty-table-cell {
  text-align: center;
  padding: 40px !important;
  color: #64748b;
  color: var(--text-muted);
  font-style: italic;
}

/* Action Cards */
.settings-action-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.card-desc {
  font-size: 12.5px;
  color: #64748b;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.add-technician-bar {
  display: flex;
  gap: 12px;
  max-width: 600px;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  flex: 1 1;
}

.input-with-icon input {
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  font-size: 13.5px;
  width: 100%;
}

.card-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
}

.search-box.small {
  padding: 5px 10px;
  min-width: 220px;
}

.count-label {
  font-size: 12px;
  color: #64748b;
  color: var(--text-muted);
}

/* Technician Cards Grid */
.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  padding: 18px 20px;
}

.tech-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item-card:hover {
  border-color: rgba(2, 132, 199, 0.3);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}

.tech-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.tech-card-body {
  flex: 1 1;
  min-width: 0;
}

.tech-name-text {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #090d16;
  color: var(--text-primary);
}

.tech-role-badge {
  font-size: 11px;
  color: #64748b;
  color: var(--text-muted);
}

.edit-inline-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.edit-inline-row input {
  padding: 4px 8px;
  font-size: 13px;
}

.tech-card-actions {
  display: flex;
  gap: 4px;
}

.empty-state-banner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #64748b;
  color: var(--text-muted);
  font-style: italic;
}

/* Shift Presets */
.presets-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

body.dark-theme .presets-banner {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
}

.presets-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 12px;
}

body.dark-theme .presets-header {
  color: #0284c7;
  color: var(--accent-cyan);
}

.preset-chips-row,
.preset-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-chip-btn,
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px;
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'IBM Plex Sans', sans-serif;
  font-family: var(--font-sans);
  text-align: left;
}

body.dark-theme .preset-chip-btn,
body.dark-theme .preset-btn {
  background: #f8fafc;
  background: var(--bg-elevated);
  border-color: rgba(56, 189, 248, 0.25);
}

.preset-chip-btn:hover,
.preset-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.preset-chip-btn:hover .preset-name,
.preset-btn:hover .preset-name { color: #ffffff; }
.preset-chip-btn:hover .preset-time,
.preset-btn:hover .preset-time { color: rgba(255, 255, 255, 0.9); }

.preset-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0c4a6e;
}

body.dark-theme .preset-name {
  color: #090d16;
  color: var(--text-primary);
}

.preset-time {
  font-size: 11px;
  color: #0284c7;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  margin-top: 2px;
}

body.dark-theme .preset-time {
  color: #0284c7;
  color: var(--accent-cyan);
}

.shift-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 140px auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: flex-end;
  max-width: 780px;
}

.card-sub-header .sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
}

.shift-schedule-grid,
.shift-slots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  padding: 20px;
}

.shift-schedule-card,
.shift-slot-row {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.shift-schedule-card:hover,
.shift-slot-row:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}

.shift-card-top,
.shift-slot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shift-icon-box,
.shift-slot-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shift-meta {
  flex: 1 1;
  min-width: 0;
}

.shift-title,
.shift-slot-name {
  font-size: 14px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
  display: block;
}

.shift-duration-badge {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}

.shift-timing-badge,
.shift-slot-time {
  display: block;
  padding: 8px 12px;
  background: #f8fafc;
  background: var(--bg-elevated);
  border: 1px dashed #94a3b8;
  border: 1px dashed var(--border-bright);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #090d16;
  color: var(--text-primary);
  text-align: center;
}

.shift-card-footer,
.shift-slot-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #cbd5e1;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.shift-edit-form,
.shift-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

/* Category & Status Chips */
.category-subtabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.subtab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  background: #ffffff;
  background: var(--bg-card);
  border-radius: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.subtab-btn:hover {
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #090d16;
  color: var(--text-primary);
}

.subtab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-gap: 18px;
  gap: 18px;
}

.category-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
}

.cat-meta {
  font-size: 11.5px;
  color: #64748b;
  color: var(--text-muted);
}

.cat-desc {
  font-size: 12px;
  color: #64748b;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.category-add-row {
  display: flex;
  gap: 8px;
}

.category-add-row input {
  padding: 7px 12px;
  font-size: 12.5px;
}

.category-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 36px;
  padding: 10px;
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #090d16;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chip-del-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: color 0.15s;
}

.chip-del-btn:hover {
  color: #ef4444;
}

.empty-chips-hint {
  font-size: 12px;
  color: #64748b;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px;
}

/* Settings Modal */
.settings-modal {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #94a3b8;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15), 0 6px 16px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: modalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  color: #090d16;
  color: var(--text-primary);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.field-hint {
  font-size: 11px;
  color: #64748b;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkbox-row {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: #0284c7;
}

/* ==========================================================================
   SOLUTIONS KNOWLEDGE BASE & SOPs REDESIGN
   ========================================================================== */

.solutions-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 12px;
  padding: 16px 20px;
}

.solutions-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.solutions-category-bar::-webkit-scrollbar {
  display: none;
}

.solutions-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-card);
  color: #334155;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
          user-select: none;
}
.solutions-category-chip:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  color: #090d16;
  color: var(--text-primary);
  transform: translateY(-1px);
}
.solutions-category-chip.active {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  background: #0284c7;
  background: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(6, 182, 212, 0.32);
  font-weight: 700;
}
.solutions-category-chip .chip-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
}
.solutions-category-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.solutions-category-chip:not(.active) .chip-count {
  background: #f8fafc;
  background: var(--bg-elevated);
  color: #64748b;
  color: var(--text-muted);
}

.solutions-master-detail {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  flex: 1 1;
  min-height: 0;
  height: calc(100vh - 165px);
  overflow: hidden;
}

.solutions-list-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  background: var(--bg-panel);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  height: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.solutions-list-header {
  padding: 12px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
  background: var(--bg-base);
  flex-shrink: 0;
}

.solutions-cards-scroll {
  flex: 1 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}

.solutions-card-item {
  padding: 12px 14px;
  border-radius: 10px;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.solutions-card-item:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}
.solutions-card-item.selected {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  box-shadow: inset 3px 0 0 #0284c7, 0 3px 10px rgba(6, 182, 212, 0.12);
  box-shadow: inset 3px 0 0 var(--accent-cyan), 0 3px 10px rgba(6, 182, 212, 0.12);
}

.solutions-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #090d16;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solutions-card-issue {
  font-size: 11.5px;
  color: #334155;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solutions-reader-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  background: var(--bg-panel);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  height: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.solutions-reader-scroll {
  flex: 1 1;
  overflow-y: auto;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
}

.solutions-symptom-box {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 4px solid #d97706;
  border-left: 4px solid var(--accent-amber);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solutions-resolution-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-left: 4px solid #059669;
  border-left: 4px solid var(--accent-green);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solutions-code-block {
  background: #f1f5f9;
  background: var(--bg-base);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 13px 15px;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #090d16;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.solutions-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  background: #ffffff;
  background: var(--bg-card);
  font-size: 11.5px;
  color: #334155;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.solutions-attachment-chip:hover {
  border-color: #0284c7;
  border-color: var(--accent-cyan);
  color: #090d16;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .solutions-master-detail {
    grid-template-columns: 1fr;
    height: auto;
  }
  .solutions-master-detail.mobile-detail-active .solutions-list-panel {
    display: none;
  }
  .solutions-master-detail:not(.mobile-detail-active) .solutions-reader-panel {
    display: none;
  }
}

/* ==========================================================================
   PROJECTS & WORKSPACE SUB-PAGES REDESIGN
   ========================================================================== */

.project-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 13px;
  border-radius: 10px;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: #ffffff;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 10px;
  margin-bottom: 6px;
  text-align: left;
}
.project-card-item:hover {
  border-color: #94a3b8;
  border-color: var(--border-bright);
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
  transform: translateX(2px);
}
.project-card-item.selected {
  border-left-color: #0284c7;
  border-left-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.12);
  background: var(--accent-cyan-dim);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.12);
}

.project-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.project-kpi-card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
  min-height: 85px;
}
.project-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  border-color: #94a3b8;
  border-color: var(--border-bright);
}
.project-kpi-card .kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  color: var(--text-muted);
}
.project-kpi-card .kpi-value {
  font-size: 24px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-top: 4px;
}

.workload-bar-track {
  flex-grow: 1;
  height: 8px;
  background: #f1f5f9;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
}
.workload-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.subtask-table-wrap {
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  overflow-x: auto;
  background: #ffffff;
  background: var(--bg-card);
}

.subtask-table-modern {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.subtask-table-modern th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
  background: var(--bg-base);
  white-space: nowrap;
}
.subtask-table-modern td {
  padding: 9px 12px;
  font-size: 12px;
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: #090d16;
  color: var(--text-primary);
}
.subtask-table-modern tr:last-child td {
  border-bottom: none;
}
.subtask-table-modern tr:hover td {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}

.epic-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #f1f5f9;
  background: var(--bg-base);
  border-bottom: 1px solid #cbd5e1;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  flex-wrap: wrap;
  gap: 10px;
  -webkit-user-select: none;
          user-select: none;
  transition: background 0.15s ease;
}
.epic-header-card:hover {
  background: rgba(2, 132, 199, 0.06);
  background: var(--bg-hover);
}




