/* ==========================================================================
   Flow ALM - Design System & Tokens
   ========================================================================== */
:root {
  /* Cores Principais - Dark Theme (Padrão) */
  --bg-app: #080b11;
  --bg-sidebar: #0d121c;
  --bg-panel: rgba(18, 24, 38, 0.75);
  --bg-subpanel: rgba(26, 34, 52, 0.6);
  --bg-hover: rgba(255, 255, 255, 0.05);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(99, 102, 241, 0.5);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Disciplinas & Especialidades */
  --front-accent: #06b6d4;
  --front-bg: rgba(6, 182, 212, 0.12);
  --front-border: rgba(6, 182, 212, 0.3);

  --back-accent: #10b981;
  --back-bg: rgba(16, 185, 129, 0.12);
  --back-border: rgba(16, 185, 129, 0.3);

  --fullstack-accent: #818cf8;
  --fullstack-bg: rgba(99, 102, 241, 0.15);
  --fullstack-border: rgba(99, 102, 241, 0.35);

  --dba-accent: #f472b6;
  --dba-bg: rgba(236, 72, 153, 0.15);
  --dba-border: rgba(236, 72, 153, 0.35);

  --analyst-accent: #a78bfa;
  --analyst-bg: rgba(139, 92, 246, 0.15);
  --analyst-border: rgba(139, 92, 246, 0.35);

  --qa-accent: #fbbf24;
  --qa-bg: rgba(245, 158, 11, 0.15);
  --qa-border: rgba(245, 158, 11, 0.35);

  --devops-accent: #fb923c;
  --devops-bg: rgba(249, 115, 22, 0.15);
  --devops-border: rgba(249, 115, 22, 0.35);

  /* Status Gerais */
  --color-danger: #f43f5e;
  --color-warning: #eab308;
  --color-success: #22c55e;
  --color-info: #3b82f6;

  /* Gradientes & Sombras */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  --gradient-btn-hover: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  --glow-brand: 0 0 20px rgba(99, 102, 241, 0.35);
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);

  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --topbar-height: 70px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema Claro */
[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.88);
  --bg-subpanel: rgba(248, 250, 252, 0.95);
  --bg-hover: rgba(0, 0, 0, 0.04);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-active: rgba(99, 102, 241, 0.4);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utilitários de Vidro */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.glass-subpanel {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Layout Principal (Sidebar + Main)
   ========================================================================== */
.alm-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
.alm-sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition);
  z-index: 20;
}

.alm-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.alm-sidebar.collapsed .logo-meta,
.alm-sidebar.collapsed .nav-text,
.alm-sidebar.collapsed .nav-counter,
.alm-sidebar.collapsed .nav-section-title,
.alm-sidebar.collapsed .sidebar-widget {
  display: none !important;
}

.alm-sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1.25rem 0.5rem;
}

.alm-sidebar.collapsed .sidebar-toggle {
  display: none;
}

.alm-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.85rem 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-brand);
}

.logo-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.sidebar-toggle:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

/* Navegação Lateral */
.sidebar-nav {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.5rem 0.5rem 0.3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.nav-icon {
  font-size: 1.15rem;
}

.nav-counter {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-item.active .nav-counter {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

/* Widget Lateral */
.sidebar-widget {
  margin: 1rem;
  padding: 0.85rem;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.widget-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.widget-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.widget-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Área Principal & Topbar
   ========================================================================== */
.alm-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

/* Topbar */
.alm-topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  border-radius: 0;
  border-left: none;
  border-top: none;
  border-right: none;
  z-index: 10;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

.project-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
}

.custom-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.custom-select option {
  background: #111827;
  color: #f8fafc;
}

.custom-select-sm {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.custom-select-sm option {
  background: #111827;
  color: #f8fafc;
}

/* Busca Global */
.global-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  width: 280px;
  transition: border-color var(--transition), width var(--transition);
}

.global-search-box:focus-within {
  border-color: #6366f1;
  width: 340px;
}

.global-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
}

.global-search-box input::placeholder {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dropdown "+ Novo" */
.dropdown-wrapper {
  position: relative;
}

.btn-glow {
  box-shadow: var(--shadow-sm), var(--glow-brand);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

.dropdown-menu.show {
  display: flex;
  animation: dropdownIn 0.15s ease-out;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}

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

.dropdown-item .item-icon {
  font-size: 1.25rem;
}

.dropdown-item strong {
  display: block;
  font-size: 0.85rem;
}

.dropdown-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Ícone de Tema */
.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subpanel);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}

.icon-circle-btn:hover {
  border-color: #818cf8;
  transform: scale(1.05);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subpanel);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   Área de Conteúdo (Views / Abas)
   ========================================================================== */
.alm-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.view-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.quick-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   KPI Cards (Dashboard & QA)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.border-accent-blue { border-left: 4px solid #6366f1; }
.border-accent-cyan { border-left: 4px solid #06b6d4; }
.border-accent-emerald { border-left: 4px solid #10b981; }
.border-accent-amber { border-left: 4px solid #f59e0b; }

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bg-blue { background: rgba(99, 102, 241, 0.15); }
.bg-cyan { background: rgba(6, 182, 212, 0.15); }
.bg-emerald { background: rgba(16, 185, 129, 0.15); }
.bg-amber { background: rgba(245, 158, 11, 0.15); }
.bg-rose { background: rgba(244, 63, 94, 0.15); }

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.kpi-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.kpi-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.kpi-sub-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-subpanel);
  color: var(--text-secondary);
}

.front-tag {
  background: var(--front-bg);
  color: var(--front-accent);
  border: 1px solid var(--front-border);
}

.back-tag {
  background: var(--back-bg);
  color: var(--back-accent);
  border: 1px solid var(--back-border);
}

/* Split Grid */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.content-card {
  padding: 1.5rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title-row h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.badge-subtle {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-subpanel);
  color: var(--text-muted);
  font-weight: 600;
}

/* Lista de Projetos */
.projects-progress-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  padding: 0.85rem;
  background: var(--bg-subpanel);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.project-name {
  font-weight: 600;
  color: var(--text-main);
}

.project-counts {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Workload da Equipe */
.team-workload-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.workload-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-subpanel);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.workload-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.workload-info {
  flex: 1;
}

.workload-name-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.workload-hours {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Tabela de Rastreabilidade & Tabelas Gerais
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.alm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.alm-table th {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.alm-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.alm-table tbody tr:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   Barra de Filtros (Segmented Control & Selects)
   ========================================================================== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.segmented-control {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
  gap: 0.2rem;
}

.segment-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.segment-btn:hover {
  color: var(--text-main);
}

.segment-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Controles de Alternância de Layout: Modo Blocos (Cards) vs Lista Compacta
   ========================================================================== */
.view-mode-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-layout-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.15rem;
  gap: 0.15rem;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.view-mode-btn .view-mode-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: stroke var(--transition);
  flex-shrink: 0;
}

.view-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

.view-mode-btn.active .view-mode-icon {
  stroke: #818cf8;
}

/* Responsividade e Ajuste para Grid containers em modo Lista */
.projects-cards-grid.is-list-view,
.requirements-cards-grid.is-list-view,
.team-cards-grid.is-list-view {
  display: block !important;
  width: 100% !important;
}

/* Envoltório da Tabela de Modo Lista */
.list-mode-table-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.compact-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
}

.compact-data-table thead th {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.compact-data-table tbody tr {
  transition: background-color var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.compact-data-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.compact-data-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: var(--text-main);
}

/* Células e Componentes Específicos do Modo Lista */
.cell-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 180px;
}

.cell-main-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition);
  line-height: 1.3;
}

.cell-main-title:hover {
  color: #818cf8;
}

.cell-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cell-sub-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
  max-width: 220px;
}

.progress-track.mini-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.mini-metrics-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.metric-mini-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.metric-mini-tag.deadline-tag {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.btn-xs {
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

.card-btn-action.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-add-task-xs {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  transition: all var(--transition);
}

.btn-add-task-xs:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.task-list-assignee-metrics {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.task-id-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.task-status-select {
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color var(--transition);
}

.task-status-select:hover {
  border-color: #818cf8;
}

.kanban-list-container {
  width: 100%;
}

/* ==========================================================================
   Aba: Requisitos & Especificação
   ========================================================================== */
.requirements-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.requirement-card {
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}

.requirement-card:hover {
  border-color: var(--border-active);
}

.req-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.req-code-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--req-bg);
  color: var(--req-accent);
  border: 1px solid var(--req-border);
}

.req-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
}

.moscow-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.moscow-must { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.moscow-should { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.moscow-could { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.badge-feature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  letter-spacing: 0.01em;
}

.badge-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.14);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.user-story-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-subpanel);
  border-left: 3px solid #8b5cf6;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem;
}

.bdd-container {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

[data-theme="light"] .bdd-container {
  background: #f8fafc;
}

.bdd-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.bdd-content {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a5b4fc;
  white-space: pre-wrap;
}

.req-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   Aba: Quadro Kanban
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  min-height: calc(100vh - 280px);
}

.kanban-column {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: 100%;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.dot-gray { background: #94a3b8; }
.dot-purple { background: #8b5cf6; }
.dot-blue { background: #3b82f6; }
.dot-amber { background: #f59e0b; }
.dot-emerald { background: #10b981; }

.column-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: var(--bg-subpanel);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.kanban-cards-dropzone {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 150px;
}

/* Card de Demanda no Kanban */
.task-card {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: grab;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.task-card.task-front {
  border-left: 3px solid var(--front-accent);
}

.task-card.task-back {
  border-left: 3px solid var(--back-accent);
}

.task-card.task-fullstack {
  border-left: 3px solid var(--fullstack-accent);
}

.task-card.task-dba {
  border-left: 3px solid var(--dba-accent);
}

.task-card.task-analyst {
  border-left: 3px solid var(--analyst-accent);
}

.task-card.task-qa {
  border-left: 3px solid var(--qa-accent);
}

.task-card.task-devops {
  border-left: 3px solid var(--devops-accent);
}

.task-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.task-tags-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.task-tags-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.task-hours-badge {
  font-size: 0.7rem;
  white-space: nowrap;
}

.task-role-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}

.role-front { background: var(--front-bg); color: var(--front-accent); }
.role-back { background: var(--back-bg); color: var(--back-accent); }
.role-fullstack { background: var(--fullstack-bg); color: var(--fullstack-accent); }
.role-dba { background: var(--dba-bg); color: var(--dba-accent); }
.role-analyst { background: var(--analyst-bg); color: var(--analyst-accent); }
.role-qa { background: var(--qa-bg); color: var(--qa-accent); }
.role-devops { background: var(--devops-bg); color: var(--devops-accent); }

.task-priority-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}

.pri-alta { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.pri-media { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pri-baixa { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.task-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

.task-project-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-badges-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

/* Rodapé estruturado do Card no Kanban */
.task-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.55rem;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.task-assignee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.task-assignee-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.task-avatar-mini {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.task-assignee-name {
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

.task-assign-action {
  flex-shrink: 0;
}

.task-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}

.task-ops-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  min-width: 0;
}

.task-actions-btn-group {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.task-move-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--transition);
}

.task-move-btn:hover {
  color: var(--text-main);
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

/* ==========================================================================
   Aba: Equipe de Desenvolvedores
   ========================================================================== */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dev-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  flex-shrink: 0;
}

.dev-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-panel);
}

.dev-meta {
  flex: 1;
  min-width: 140px;
}

.dev-meta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-word;
}

.dev-role-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.skills-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.skill-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.capacity-section {
  margin-top: auto;
  background: var(--bg-subpanel);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
}

.capacity-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Aba: Camada de Testes & QA (Test Runner)
   ========================================================================== */
.test-runner-card {
  padding: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 1.75rem;
}

.test-runner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.runner-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.terminal-icon {
  font-size: 1.2rem;
  color: #f59e0b;
}

.runner-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.runner-progress-wrapper {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
}

.runner-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.3s ease;
}

.runner-console {
  background: #060910;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.console-line {
  line-height: 1.4;
}

.log-pass { color: #34d399; }
.log-fail { color: #f87171; }
.log-info { color: #60a5fa; }
.log-warn { color: #fbbf24; }

/* Status de Testes */
.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pass { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-fail { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.status-pill.clickable {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.status-pill.clickable:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.status-pill.clickable:active {
  transform: translateY(0);
}

/* ==========================================================================
   Modais
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.modal-body > * {
  flex-shrink: 0;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.65);
}

.custom-input,
.custom-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.custom-input:focus,
.custom-textarea:focus {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.85);
}

.apf-auto-name-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.apf-auto-name-input:focus {
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.9);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6366f1;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row > * {
  flex: 1;
  min-width: 140px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .alm-sidebar {
    position: fixed;
    left: -100%;
    transition: left var(--transition);
  }

  .alm-sidebar.mobile-open {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .global-search-box {
    display: none;
  }

  .alm-topbar {
    padding: 0 1rem;
  }

  .alm-content-area {
    padding: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Aba: Gestão de Projetos (CRUD)
   ========================================================================== */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.project-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.project-code-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  color: #818cf8;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-subpanel);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  text-align: center;
}

.project-metric-item {
  display: flex;
  flex-direction: column;
}

.project-metric-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-metric-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-deadline-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-actions-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.3);
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.card-btn-action {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.card-btn-action:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.card-btn-action.btn-del:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

.card-btn-action.btn-add-task {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

.card-btn-action.btn-add-task:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.card-btn-action.btn-add-task-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.card-btn-action.btn-add-task-pill:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.7);
  transform: translateY(-1px);
}

.linked-task-chip {
  transition: all var(--transition);
  border: 1px solid transparent;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-task-chip:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.req-linked-tasks-block {
  flex: 1;
  min-width: 260px;
}

@keyframes cardPulseGlow {
  0% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); border-color: var(--border-subtle); }
  25% { box-shadow: 0 0 22px rgba(16, 185, 129, 0.5); border-color: rgba(16, 185, 129, 0.75); }
  100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); border-color: var(--border-subtle); }
}

.requirement-card.highlight-pulse {
  animation: cardPulseGlow 2.5s ease;
}

tr.highlight-pulse {
  animation: cardPulseGlow 2.5s ease;
  background-color: rgba(16, 185, 129, 0.15) !important;
}

.btn-code-lock-toggle {
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}

.btn-code-lock-toggle:hover {
  filter: brightness(1.25);
  text-decoration: underline;
}

.badge-code-auto {
  transition: all var(--transition);
}

.input-with-badge input[readonly] {
  cursor: not-allowed;
  user-select: all;
}

/* Botões de expansão rápida de especificação de requisito na demanda */
.btn-expand-req-spec {
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.4rem;
}

.btn-expand-req-spec:hover {
  filter: brightness(1.25);
  text-decoration: underline;
}

.btn-icon-expand-req {
  transition: all var(--transition);
}

.btn-icon-expand-req:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  transform: translateY(-1px);
}

.req-spec-preview-drawer {
  animation: fadeInDown 0.25s ease-out;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.btn-close-preview:hover {
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.1) !important;
}




/* ==============================================================================
   ESTILOS DE AUTENTICAÇÃO: LOGIN & CADASTRO (FULLSCREEN OVERLAY)
   ============================================================================== */
.auth-screen-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-screen-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.alm-container.hidden {
  display: none !important;
}

/* Efeitos Luminosos de Fundo */
.auth-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.orb-primary {
  width: 450px;
  height: 450px;
  background: #6366f1;
  top: 10%;
  left: 15%;
}

.orb-secondary {
  width: 380px;
  height: 380px;
  background: #06b6d4;
  bottom: 10%;
  right: 15%;
  animation-delay: -3s;
}

.orb-accent {
  width: 300px;
  height: 300px;
  background: #10b981;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.08); }
}

/* Card Central de Autenticação */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15);
  animation: cardScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

@keyframes cardScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.auth-logo-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.auth-badge-pro {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  vertical-align: middle;
}

.auth-logo-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Abas de Navegação (Entrar vs Criar Conta) */
.auth-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg-subpanel);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab-btn:hover {
  color: var(--text-main);
}

.auth-tab-btn.active {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Alert Box */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}

.auth-alert.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.auth-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Contas de Demonstração Rápidas */
.demo-accounts-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.35rem;
}

.demo-box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.demo-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.demo-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.demo-chip:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.demo-chip .chip-icon {
  font-size: 1.15rem;
}

.demo-chip .chip-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.2;
}

.demo-chip .chip-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.demo-chip.chip-admin:hover { border-color: #f59e0b; }
.demo-chip.chip-pm:hover { border-color: #8b5cf6; }
.demo-chip.chip-back:hover { border-color: #10b981; }
.demo-chip.chip-front:hover { border-color: #06b6d4; }
.demo-chip.chip-qa:hover { border-color: #ec4899; }

/* Formulário de Autenticação */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon .custom-input {
  padding-left: 2.6rem;
  padding-right: 2.6rem;
  width: 100%;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  opacity: 0.7;
  transition: opacity var(--transition);
  padding: 0.25rem;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-hint-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Medidor de Força de Senha */
.pwd-strength-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 0.45rem;
  overflow: hidden;
}

.pwd-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.pwd-strength-bar.weak { width: 33%; background: #f43f5e; }
.pwd-strength-bar.medium { width: 66%; background: #f59e0b; }
.pwd-strength-bar.strong { width: 100%; background: #22c55e; }

.pwd-strength-text {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.form-actions-auth {
  margin-top: 0.5rem;
}

.btn-auth-submit {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-auth-submit .btn-arrow {
  transition: transform var(--transition);
}

.btn-auth-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.auth-footer-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-link {
  background: none;
  border: none;
  color: #6366f1;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: #818cf8;
}

/* ==============================================================================
   TOPBAR: CARD DO USUÁRIO LOGADO & MENU DROPDOWN DE CONTA
   ============================================================================== */
.user-topbar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-subpanel);
  cursor: pointer;
  transition: all var(--transition);
}

.user-topbar-profile:hover {
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.user-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.user-topbar-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.user-topbar-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-topbar-role {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Dropdown de Detalhes da Conta */
.user-dropdown-menu {
  width: 280px;
  padding: 1rem;
  right: 0;
  top: calc(100% + 8px);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
}

.user-dropdown-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.user-dropdown-name {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-badge-wrap {
  margin-top: 0.3rem;
}

.user-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.user-badge-tag.tag-admin {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.user-badge-tag.tag-front {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.user-badge-tag.tag-back {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-logout-action:hover {
  background: rgba(244, 63, 94, 0.15) !important;
}

/* Responsividade Auth */
@media (max-width: 600px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
  }
  .demo-chips-grid {
    grid-template-columns: 1fr;
  }
  .user-topbar-meta {
    display: none;
  }
}

/* ==============================================================================
   ESTILOS DE RBAC, GOVERNANÇA E OPERAÇÃO POR PERFIL
   ============================================================================== */

/* Badges de Perfis */
.user-badge-tag.tag-pm {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.user-badge-tag.tag-qa {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-role-current {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Matriz de Permissões RBAC */
.rbac-matrix-table th {
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rbac-matrix-table td {
  vertical-align: middle;
  padding: 0.85rem 1rem;
}

.perm-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.perm-tag.perm-full {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.perm-tag.perm-edit {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.perm-tag.perm-view {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.perm-tag.perm-none {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Ações Operacionais no Kanban */
.task-timesheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.task-timesheet-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  transform: translateY(-1px);
}

.task-qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.task-qa-btn:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(168, 85, 247, 0.4));
  color: #fbcfe8;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.task-impediment-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.task-qa-approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.task-qa-approved-badge:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
}

/* Indicador de Restrição / Ação Bloqueada */
.action-restricted {
  opacity: 0.4;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Indicador de Status da Conexão com o Banco de Dados SQLite */
.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  user-select: none;
}

.db-status-pill .db-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.db-status-pill.online {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.db-status-pill.online .db-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

.db-status-pill.offline {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.db-status-pill.offline .db-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Botões de Auto-Atribuição de Demandas (Dev / QA) */
.task-self-assign-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  border-radius: var(--radius-sm);
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.task-self-assign-btn:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  border-color: #6366f1;
  transform: translateY(-1px);
}

.task-assigned-me-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: var(--radius-sm);
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.task-assigned-me-btn:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

/* ==========================================================================
   MÓDULO: DESEMPENHO INDIVIDUAL & AVALIAÇÃO DE PROMOÇÕES (ADMIN)
   ========================================================================== */

/* Badges de Complexidade Técnica de Demandas */
.task-complexity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.complexity-high {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.complexity-med {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.complexity-low {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Legenda Interativa do Gráfico com Chips e Switches */
.perf-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  user-select: none;
}

.perf-legend-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.perf-legend-chip.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.perf-legend-chip.muted {
  opacity: 0.4;
  text-decoration: line-through;
}

.legend-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.legend-counter {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

/* Gráfico de Linha Vetorial SVG */
.perf-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 330px;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  border-radius: var(--radius-md);
}

#perf-line-chart-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.chart-axis-text {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-main);
}

.chart-curve-path {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.3s ease, stroke-width 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.chart-area-path {
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.chart-dot-group {
  cursor: pointer;
}

.chart-dot {
  stroke-width: 2.5;
  transition: r 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.2s ease;
}

.chart-dot-group:hover .chart-dot {
  r: 7.5;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 10px currentColor);
}

/* Tooltip Interativo do Gráfico */
.perf-tooltip {
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  will-change: transform, left, top;
}

.perf-tooltip-content {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Grid de Promoção & Diagnóstico */
.perf-promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.perf-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: var(--text-secondary);
}

.perf-checklist-item.checked {
  color: var(--text-main);
}

.perf-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.perf-check-icon.pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.perf-check-icon.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==============================================================================
   ESTILOS: ABAS DE MODAL, NOTAS DE DESENVOLVEDOR, QA E AUDITORIA
   ============================================================================== */

/* Abas no Modal de Demanda */
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-tab-btn:hover {
  color: var(--text-main);
}

.modal-tab-btn.active {
  color: #818cf8;
  border-bottom-color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.badge-tab-count {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.modal-tab-btn.active .badge-tab-count {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

/* ==============================================================================
   Rolagem Fluida e Estrutura dos Painéis das Abas do Modal de Demanda
   ============================================================================== */
.modal-tab-pane {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.modal-tab-pane::-webkit-scrollbar {
  width: 6px;
}

.modal-tab-pane::-webkit-scrollbar-track {
  background: transparent;
}

.modal-tab-pane::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 999px;
}

.modal-tab-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.65);
}

/* Aba principal de Formulário da Demanda */
#pane-task-form {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#pane-task-form[style*="display: block"] {
  display: flex !important;
  flex-direction: column !important;
}

#pane-task-form > .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* Caixa de Notas do Desenvolvedor */
.dev-notes-box {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  transition: border-color var(--transition);
}

.dev-notes-box:hover {
  border-color: rgba(14, 165, 233, 0.4);
}

.dev-notes-box textarea {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  font-family: 'Fira Code', var(--font-mono, monospace);
  font-size: 0.84rem !important;
  line-height: 1.5;
  color: #e0f2fe !important;
}

.dev-notes-box textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.badge-dev-notes {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  letter-spacing: 0.03em;
}

/* Caixa de Notas & Validação de QA */
.qa-notes-box {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  transition: border-color var(--transition);
}

.qa-notes-box:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.qa-notes-box textarea {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  font-size: 0.84rem !important;
  line-height: 1.5;
  color: #fef3c7 !important;
}

.qa-notes-box textarea:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25) !important;
}

.badge-qa-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-qa-pill.approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-qa-pill.rejected {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.badge-qa-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Badges no Cartão Kanban */
.task-notes-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  cursor: default;
}

.task-qa-notes-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  cursor: default;
}

/* Trilha de Auditoria da Demanda (Timeline) */
.task-audit-timeline {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.85rem;
  max-height: 480px;
  overflow-y: auto;
}

.task-audit-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-subtle);
}

.audit-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.audit-timeline-item:last-child {
  margin-bottom: 0.25rem;
}

.audit-timeline-badge {
  position: absolute;
  left: -1.85rem;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--bg-card);
}

.audit-timeline-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  transition: all var(--transition);
}

.audit-timeline-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
}

.audit-timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audit-timeline-actor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.audit-timeline-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.audit-timeline-details {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

.audit-diff-btn {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.audit-diff-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.35);
}

/* Tags de Ação de Auditoria */
.audit-action-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.audit-tag-create {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.audit-tag-update {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.audit-tag-status {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.audit-tag-qa {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.audit-tag-timesheet {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.audit-tag-hours {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.audit-tag-assign {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.audit-tag-delete {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.audit-tag-auth {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Tabela Global de Auditoria */
.audit-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.audit-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  vertical-align: middle;
}

.audit-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.audit-actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.audit-entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==============================================================================
   MÓDULO DE GESTÃO DE METAS DE PROMOÇÃO (ADMIN / RBAC)
   ============================================================================== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.goal-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: all 0.25s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}

.goal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35), 0 0 15px rgba(99, 102, 241, 0.1);
}

.goal-card.goal-inactive {
  opacity: 0.65;
  border-style: dashed;
  filter: grayscale(0.2);
}

.goal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.goal-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.goal-seniority-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.seniority-pleno {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.seniority-senior {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.seniority-lead {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.seniority-todos {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.goal-category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.goal-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.goal-status-active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.goal-status-paused {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.goal-title-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
}

.goal-desc-p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.goal-benchmark-box {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.goal-benchmark-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.goal-benchmark-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.goal-benchmark-target {
  font-size: 1.05rem;
  font-weight: 700;
  color: #818cf8;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.goal-benchmark-target small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.goal-weight-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.goal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.goal-actions-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

/* ==============================================================================
   MÓDULO: PROPOSTA DA FERRAMENTA & TRILHAS DE CARREIRA / PROMOÇÃO
   ============================================================================== */

/* Hero Banner da Proposta */
.career-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.career-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.career-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.career-hero-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.career-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.career-tag.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.career-tag.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.3);
}

.career-hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.career-hero-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.career-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Grid de Pilares da Ferramenta */
.career-pillars-section {
  margin-bottom: 2.5rem;
}

.career-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.career-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.career-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.career-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.career-pillar-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}

.career-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
}

.career-pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.career-pillar-icon.indigo {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.career-pillar-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.career-pillar-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.career-pillar-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.career-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.career-pillar-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Navegação por Cargo / Especialidade */
.career-role-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.career-role-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.career-role-tab:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.career-role-tab.active {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.career-role-tab.active .career-tab-badge {
  background: #6366f1;
  color: #fff;
}

.career-tab-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Card Principal da Trilha */
.career-track-main {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.career-role-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.75rem;
}

.career-role-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.career-role-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--bg-subpanel);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.career-role-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.career-role-titles p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Stepper de Senioridade (Escada de Carreira) */
.career-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  padding: 0.5rem 0.5rem;
  gap: 0.5rem;
}

.career-stepper-line {
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--border-subtle);
  z-index: 0;
  transform: translateY(-50%);
}

.career-step-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease;
}

.career-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-app);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.career-step-btn:hover .career-step-circle {
  border-color: #818cf8;
  color: var(--text-main);
}

.career-step-btn.active .career-step-circle {
  background: #6366f1;
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  transform: scale(1.08);
}

.career-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.career-step-btn.active .career-step-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Detalhes do Nível de Senioridade */
.career-level-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
}

.career-subcard {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.career-subcard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.career-subcard-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.career-subcard-body ul {
  padding-left: 1.25rem;
  margin: 0;
}

.career-subcard-body li {
  margin-bottom: 0.45rem;
}

/* Badges de Skills / Ferramentas */
.career-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.career-skill-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.career-skill-badge.highlight {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.35);
}

/* Caixa de Métricas do Flow para Promoção */
.career-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.career-metric-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.career-metric-box .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.career-metric-box .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
  margin-top: 0.15rem;
}

.career-metric-box .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Banner de Gatilhos de Promoção */
.career-promotion-trigger {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.career-trigger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.career-trigger-title {
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Simulador Interativo de Prontidão */
.career-simulator {
  background: var(--bg-panel);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.career-sim-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .career-sim-grid {
    grid-template-columns: 1fr;
  }
}

.career-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.career-checklist-item.checked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.career-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  background: var(--bg-app);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.career-checklist-item.checked .career-checkbox {
  background: #10b981;
  border-color: #10b981;
}

.career-check-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.career-check-meta small {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Painel de Score do Simulador */
.career-score-card {
  background: var(--bg-subpanel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.career-gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-gauge-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.career-gauge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.career-opinion-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-left: 3px solid #6366f1;
  text-align: left;
  width: 100%;
  margin-top: 1rem;
}

/* Tabela Comparativa de Senioridade */
.career-matrix-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.career-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.career-matrix-table th {
  background: var(--bg-subpanel);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-medium);
  text-align: left;
}

.career-matrix-table td {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

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

.career-matrix-table tr:hover td {
  background: var(--bg-hover);
}

.career-matrix-dim {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

/* Banner de Atalho para Carreiras no Dashboard */
.career-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .career-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .career-stepper {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .career-stepper-line {
    display: none;
  }
}

/* ==============================================================================
   Painel de Configurações & Cadastro de Estrutura de Carreiras
   ============================================================================== */
.career-level-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  animation: fadeIn 0.25s ease-out;
}

.career-level-form-card:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.career-level-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.career-level-number-badge {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

#career-levels-form-container:empty::before {
  content: 'Nenhum nível hierárquico adicionado ainda. Clique em "+ Adicionar Nível" acima.';
  display: block;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.career-tab-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ==============================================================================
   ESTILOS: RELATÓRIO DE MEDIÇÃO & DOCUMENTO DE REQUISITOS (FATURAMENTO E ACEITE)
   ============================================================================== */
.measurement-metrics-preview {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.m-preview-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.m-preview-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.m-preview-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.m-preview-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-preview-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-bdd-valid {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.7rem;
}

.badge-measurement-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-measurement-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-measurement-untested {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Módulo de Templates de Documentos & Identidade Visual
   ========================================================================== */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.template-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.template-card.is-default-card {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.template-card-header-stripe {
  height: 6px;
  width: 100%;
}

.template-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.template-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-logo-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.template-logo-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.template-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.template-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.template-default-badge {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.template-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-color-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.color-swatch-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.template-sections-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.template-sec-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.template-sec-pill.active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.template-sec-pill.inactive {
  background: rgba(148, 163, 184, 0.08);
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

.template-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn-color-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.block-toggle-card {
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.block-toggle-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.mini-doc-sheet {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  user-select: none;
}

.template-info-chip {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

/* ==============================================================================
   MÓDULO DE APF • ANÁLISE DE PONTOS DE FUNÇÃO (IFPUG CPM 4.3.1)
   ============================================================================== */

/* Badges dos Tipos de Função */
.apf-type-tag, .apf-tag-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.apf-type-tag {
  font-size: 0.8rem;
  padding: 3px 8px;
}

.apf-tag-mini {
  font-size: 0.72rem;
  padding: 2px 6px;
}

.tag-ali {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.tag-aie {
  background: rgba(217, 70, 239, 0.18);
  color: #f0abfc;
  border: 1px solid rgba(217, 70, 239, 0.4);
}

.tag-ee {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.tag-se {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-ce {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Badges e Células de Complexidade */
.apf-badge-comp-sm {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.comp-baixa, .cell-baixa {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.comp-media, .cell-media {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.comp-alta, .cell-alta {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Badges de Tipo de Contagem */
.tag-counting-dev {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-counting-melh {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.tag-counting-test {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-counting-transf {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Seletor de Tipo de Função no Modal */
.apf-type-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.apf-type-option {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.apf-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apf-type-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-height: 85px;
}

.apf-type-option:hover .apf-type-card-inner {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.apf-type-option.active .apf-type-card-inner,
.apf-type-option input[type="radio"]:checked + .apf-type-card-inner {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.apf-type-info {
  margin-top: 6px;
}

.apf-type-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.2;
}

.apf-type-info small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Stepper Input (+ / -) */
.stepper-input-wrapper {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.btn-stepper {
  width: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-stepper:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
}

.stepper-input {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 0.5rem;
}

/* LIVE HUD: Display da Calculadora em Tempo Real */
.apf-live-calc-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.apf-live-calc-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.calc-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.calc-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.calc-metric-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  min-width: 90px;
}

.calc-metric-pill .pill-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.calc-metric-pill .pill-value {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.calc-metric-pill.pill-highlight {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.calc-operator {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 700;
}

.calc-formula-explanation {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Tabelas do Guia IFPUG */
.apf-guide-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.apf-guide-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Tabela de Itens de APF */
.apf-table tr {
  transition: background 0.15s ease;
}

.apf-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.apf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.apf-code-badge {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.apf-final-pf-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #10b981;
}

/* Card View de APF */
.apf-item-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s ease;
  position: relative;
}

.apf-item-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.apf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.apf-card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.apf-card-metric-item small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.apf-card-metric-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.apf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
}

/* Estilos do Assistente de Geração Automática de APF */
#apf-auto-results-container,
#apf-auto-inm-container {
  overflow-x: auto;
  width: 100%;
}

.apf-auto-card-row {
  display: grid;
  grid-template-columns: 36px 74px minmax(240px, 1fr) 86px 86px 96px 70px 72px;
  min-width: 740px;
  gap: 8px;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.apf-auto-card-row > div,
.apf-inm-card-row > div {
  min-width: 0;
}

.apf-auto-card-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.4);
}

.apf-auto-card-row.is-unselected {
  opacity: 0.45;
  background: transparent;
}

.apf-auto-card-header {
  display: grid;
  grid-template-columns: 36px 74px minmax(240px, 1fr) 86px 86px 96px 70px 72px;
  min-width: 740px;
  gap: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.4rem;
}

.apf-auto-rationale {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.apf-detected-pill {
  font-size: 0.68rem;
  padding: 1px 7px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  font-weight: 500;
}

.mini-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mini-stepper button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 24px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mini-stepper button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.mini-stepper input {
  width: 32px;
  background: transparent;
  border: none;
  text-align: center;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-apf-counter {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-weight: 600;
}

/* Abas de Navegação no Assistente CFPS */
.apf-result-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apf-result-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.apf-result-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

/* Linhas da Tabela de Itens Não-Mensuráveis no Modal CFPS */
.apf-inm-card-row {
  display: grid;
  grid-template-columns: 36px 130px minmax(220px, 1fr) 90px 80px 80px;
  min-width: 680px;
  gap: 8px;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.apf-inm-card-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(52, 211, 153, 0.4);
}

.apf-inm-card-row.is-unselected {
  opacity: 0.45;
  background: transparent;
}

.apf-inm-card-header {
  display: grid;
  grid-template-columns: 36px 130px minmax(220px, 1fr) 90px 80px 80px;
  min-width: 680px;
  gap: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.4rem;
}

/* ==============================================================================
   ESTILOS: ITENS NÃO-MENSURÁVEIS (FPN • MÉTRICAS CONTRATUAIS / SISP)
   ============================================================================== */
.tag-inm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-inm-tabelas {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tag-inm-interface {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.tag-inm-parametros {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tag-inm-banco {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tag-inm-scripts {
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.tag-inm-integracoes {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.tag-inm-outros {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* HUD de Cálculo em Tempo Real FPN */
.inm-live-calc-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.inm-live-calc-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1);
}

.inm-calc-formula-display {
  padding: 0.5rem 0;
}

.inm-formula-term {
  text-align: center;
  min-width: 90px;
}

.inm-formula-term.inm-term-result {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.18);
  animation: pulse-result 2s infinite ease-in-out;
}

@keyframes pulse-result {
  0%, 100% { border-color: rgba(16, 185, 129, 0.35); }
  50% { border-color: rgba(16, 185, 129, 0.7); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

/* Card View de Itens Não-Mensuráveis */
.inm-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.inm-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.inm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.inm-card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.inm-card-metric-item {
  text-align: center;
}

.inm-card-metric-item small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.inm-card-metric-item strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.inm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}






