/**
 * ORIZON OS - Design System & Stylesheet
 * Estilo: Clean, Empresarial e Tecnológico (Inspirado em Notion & Pipefy)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Cores Neutras Corporativas de Alta Sobriedade e Elegância */
  --bg-app: #edf2f7;             /* Slate 100/200 - Fundo elegante que dá destaque e contraste aos cards brancos */
  --bg-surface: #ffffff;         /* Superfície branca limpa */
  --bg-surface-subtle: #f1f5f9;  /* Slate 100 */
  --bg-surface-hover: #e2e8f0;   /* Slate 200 */
  
  --border-light: #e2e8f0;       /* Slate 200 - Linhas discretas e organizadas */
  --border-medium: #cbd5e1;      /* Slate 300 */
  --border-focus: #0f172a;       /* Slate 900 */

  --text-primary: #0f172a;       /* Slate 900 - Contraste executivo e alta legibilidade */
  --text-secondary: #334155;     /* Slate 700 */
  --text-muted: #64748b;         /* Slate 500 */
  --text-inverse: #ffffff;

  /* Identidade Corporativa Sóbria & Executiva */
  --brand-navy: #090d16;         /* Grafite profundo para sidebar */
  --brand-navy-light: #161f30;
  --brand-blue: #0f172a;         /* Primário preto/grafite elegante */
  --brand-blue-hover: #1e293b;
  --brand-accent: #1e3a8a;       /* Azul executivo contido */
  
  /* Indicadores Semânticos Moderados (Sem Saturação Neon) */
  --financial-emerald: #166534;  /* Verde floresta corporativo */
  --financial-emerald-subtle: #f0fdf4;
  --financial-emerald-border: #bbf7d0;

  --warning-amber: #92400e;      /* Âmbar sério para atenção */
  --warning-amber-subtle: #fffbeb;
  --warning-amber-border: #fef08a;

  --critical-rose: #9f1239;      /* Vinho/Rose fechado para criticidade */
  --critical-rose-subtle: #fff1f2;
  --critical-rose-border: #fecdd3;

  --stage-neutral: #1e293b;
  --stage-neutral-subtle: #f1f5f9;

  /* Sombras Precisas e Sutis (Clean & Elevated Contrast) */
  --shadow-xs: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.08), 0 1px 3px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 5px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.16), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  /* Dimensões & Raios */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --sidebar-width: 255px;
  --header-height: 58px;

  /* Transições */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: #bfdbfe;
  color: #0f172a;
}

::placeholder {
  color: #64748b;
  opacity: 1;
}

/* Tabular Numbers para Métricas */
.tabular {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

/* Layout Estrutural da Aplicação */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Estilo Notion / Linear */
.sidebar {
  width: var(--sidebar-width);
  background: var(--brand-navy);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-normal);
}

.sidebar-brand {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090d16;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-brand-text h1 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sidebar-brand-text p {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 16px 12px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28) 0%, rgba(30, 64, 175, 0.16) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-left: 4px solid #3b82f6;
  border-radius: 9px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-item .icon {
  width: 19px;
  height: 19px;
  opacity: 0.85;
  stroke-width: 2.2;
  color: #94a3b8;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.nav-item:hover .icon {
  opacity: 1;
  color: #60a5fa;
}

.nav-item.active .icon {
  opacity: 1;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #ef4444;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

.user-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Área Principal de Conteúdo */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* Topbar Executiva Reestruturada e Destacada */
.topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  gap: 20px;
}

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

/* Marca da Plataforma na Topbar */
.topbar-platform-brand {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.platform-name-tag {
  background: #0f172a;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
  transition: all 0.15s ease;
}

.platform-name-tag:hover {
  background: #1e293b;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
}

.breadcrumbs .crumb {
  font-weight: 800;
  color: #334155;
  transition: all var(--transition-fast);
}

.breadcrumbs .crumb:hover {
  color: var(--brand-blue);
}

/* Tag executiva da marca Orizon no Breadcrumb */
.breadcrumbs .crumb:first-child {
  background: #0f172a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumbs .crumb:first-child:hover {
  background: #1e3a8a;
  color: #ffffff;
}

.breadcrumbs .crumb-separator {
  color: #94a3b8;
  font-weight: 700;
  font-size: 15px;
}

.breadcrumbs .crumb.current {
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Centro: Barra de Busca Global Ampliada e Destacada */
.topbar-center {
  flex: 1;
  max-width: 520px;
  display: flex;
  justify-content: center;
  margin: 0 14px;
}

.global-search-container {
  position: relative;
  width: 100%;
}

.global-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Ícone de Lupa com posicionamento perfeito e sem sobreposição */
.global-search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
  transition: color var(--transition-fast);
}

/* Input de busca com padding-left de 52px para respiro total das letras */
.global-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 42px 10px 52px !important;
  border-radius: 10px;
  border: 1.5px solid #94a3b8;
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
  font-size: 13px;
}

.global-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.global-search-input:focus + .search-icon,
.global-search-input-wrap:focus-within .search-icon {
  color: #2563eb;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  line-height: 1;
}

.search-clear-btn:hover {
  background: #94a3b8;
  color: #ffffff;
}

/* Dropdown Flutuante de Resultados da Busca Global */
.global-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  max-width: 90vw;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 6px 14px rgba(15, 23, 42, 0.08);
  max-height: 460px;
  overflow-y: auto;
  z-index: 1000;
  animation: fadeInDown 0.15s ease-out;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.search-esc-hint {
  font-size: 10.5px;
  color: #94a3b8;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.search-empty-state {
  padding: 32px 20px;
  text-align: center;
}

.search-category-group {
  border-bottom: 1px solid #f1f5f9;
}

.search-category-group:last-child {
  border-bottom: none;
}

.search-category-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.15s ease;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-selected {
  background: #eff6ff;
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.search-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-text {
  min-width: 0;
  flex: 1;
}

.search-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.search-item-sub {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.search-item-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.search-result-item:hover .search-item-badge,
.search-result-item.is-selected .search-item-badge {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.search-mark {
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 2px;
}

/* Lado Direito da Topbar: Ações & Perfil Estruturados */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-company-select {
  height: 40px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  max-width: 230px;
  transition: all var(--transition-fast);
}

.topbar-company-select:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.topbar-company-select:focus {
  border-color: #2563eb;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.topbar-btn-action {
  height: 40px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 13px;
  border-radius: 9px;
  white-space: nowrap;
  background: #0f172a;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-btn-action:hover {
  background: #1e293b;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

.topbar-divider {
  width: 1.5px;
  height: 32px;
  background: #cbd5e1;
  margin: 0 4px;
}

/* Área de Perfil do Consultor (Executive Profile Badge Destacado) */
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.topbar-profile:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.09);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.profile-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.profile-avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.profile-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px #ffffff;
  flex-shrink: 0;
}

.profile-role {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.profile-chevron {
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.topbar-profile:hover .profile-chevron {
  color: #0f172a;
}

/* Dropdown Menu do Perfil do Consultor */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 6px 14px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  padding: 14px;
  animation: fadeInDown 0.15s ease-out;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-menu-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 12px 0 8px;
}

.profile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.profile-user-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.profile-user-option:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.profile-user-option.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.profile-menu-footer {
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* Botões do Design System - Sóbrios e Executivos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: #94a3b8;
}

.btn-emerald {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
}

.btn-emerald:hover {
  background: #14532d;
}

.btn-amber {
  background: #92400e;
  color: #ffffff;
  border-color: #92400e;
}

.btn-amber:hover {
  background: #78350f;
}

.btn-critical {
  background: #9f1239;
  color: #ffffff;
  border-color: #9f1239;
}

.btn-whatsapp {
  background: #15803d;
  color: #ffffff;
  font-weight: 600;
  border-color: #166534;
}

.btn-whatsapp:hover {
  background: #166534;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Área de Conteúdo / Views */
.content-area {
  padding: 24px 20px 32px;
  flex: 1;
  min-width: 0;
}

/* View Header */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.view-title-group h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.view-title-group p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.view-actions .btn {
  height: 42px;
  border-radius: 8px;
  font-weight: 700;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Cards & Containers */
.card {
  background: var(--bg-surface);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(15, 23, 42, 0.05);
  border-color: #94a3b8;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-blue);
}

.kpi-card.kpi-critical::before { background: var(--critical-rose); }
.kpi-card.kpi-amber::before { background: var(--warning-amber); }
.kpi-card.kpi-emerald::before { background: var(--financial-emerald); }

.kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-caption {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grid de 2 Dashes do Radar com Proporção Quadrada/Ampla */
.kpi-grid-radar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card-square {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.kpi-card-square:hover {
  box-shadow: 0 6px 18px -3px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  border-color: #94a3b8;
}

.kpi-card-square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #2563eb;
}

.kpi-card-square.kpi-critical::before {
  background: var(--critical-rose);
}

.kpi-card-square.kpi-emerald::before {
  background: var(--financial-emerald);
}

.kpi-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.kpi-top-row .kpi-label {
  margin-bottom: 0;
}

.kpi-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   RADAR DE COBRANÇA DE FUNCIONÁRIOS (Dashboard Component)
   ============================================================ */
.radar-container {
  margin-bottom: 28px;
}

.radar-table-wrapper {
  overflow-x: auto;
}

.radar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.radar-table th {
  background: #e2e8f0;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  font-weight: 800;
  border-bottom: 2px solid #cbd5e1;
}

.radar-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: #0f172a;
  font-size: 13.5px;
}

.radar-table tr:hover {
  background: #f1f5f9;
}

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

.employee-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

.employee-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.employee-role {
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.task-cell-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.task-cell-desc {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub-abas e Alternância no Radar de Cobrança (Pendências vs Histórico) */
.radar-toggle-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  gap: 2px;
}

.radar-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #475569;
  background: transparent;
  text-decoration: none;
}

.radar-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.radar-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Botões de Ação Quadrados & Maiores do Radar */
.radar-actions-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.btn-action-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-action-square:hover {
  transform: translateY(-1px);
}

.btn-action-square:active {
  transform: translateY(0);
}

.btn-whatsapp-square {
  background: #ecfdf5;
  color: #047857;
  border-color: #86efac;
}

.btn-whatsapp-square:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.btn-resolve-square {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-resolve-square:hover {
  background: #f8fafc;
  color: #047857;
  border-color: #10b981;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.btn-reopen-square {
  background: #fffbeb;
  color: #b45309;
  border-color: #f59e0b;
}

.btn-reopen-square:hover {
  background: #fef3c7;
  border-color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

.radar-mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.routine-full-card {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  margin-top: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

/* Radar Desktop vs Mobile Visibility Base Rules */
.radar-desktop-table {
  display: block;
}

.radar-mobile-list {
  display: none;
}

/* Sprint & Pipeline Desktop vs Mobile Base Rules */
.sprint-desktop-table {
  display: block;
}

.sprint-mobile-list {
  display: none;
}

.pipeline-mobile-stage-bar {
  display: none;
}

/* Badges & Tags Executivas com Sobriedade e Alto Contraste */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.badge-neutral {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-critica {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge-alta,
.badge-urgente {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef08a;
}

.badge-media,
.badge-alerta {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.overdue-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: #fff1f2;
  font-size: 11px;
  font-weight: 700;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* ============================================================
   PIPELINE METODOLÓGICO (5 Etapas da Consultoria + Rotina Diária)
   Estilo Executivo Sóbrio
   ============================================================ */
.pipeline-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 8px;
  min-height: calc(100vh - 220px);
  scrollbar-width: auto;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.pipeline-board::-webkit-scrollbar {
  height: 8px;
}

.pipeline-board::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

.pipeline-board::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.pipeline-board::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.pipeline-column {
  flex: 0 0 285px;
  width: 285px;
  min-width: 285px;
  max-width: 285px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: calc(100vh - 210px);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 5px rgba(15, 23, 42, 0.04);
}

.column-header {
  padding: 14px 16px;
  background: #ffffff;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-light);
  border-top: 2.5px solid #334155;
}

.column-header.stage-1 { border-top-color: #334155; }
.column-header.stage-2 { border-top-color: #334155; }
.column-header.stage-3 { border-top-color: #334155; }
.column-header.stage-4 { border-top-color: #0f172a; }
.column-header.stage-5 { border-top-color: #334155; }
.column-header.stage-6 { border-top-color: #166534; }

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

.column-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.column-count {
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-medium);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

.column-desc {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}

/* Ações nos Cabeçalhos das Colunas de Etapa */
.column-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.column-action-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.column-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.column-action-btn.btn-delete-col:hover {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

/* Card Pontilhado para Adicionar Nova Coluna / Etapa */
.pipeline-add-column-card {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 480px;
  max-height: calc(100vh - 210px);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
  padding: 16px;
}

.pipeline-add-column-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
}

/* Estado Vazio Elegante da Coluna de Etapa */
.pipeline-column-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 28px 16px;
  text-align: center;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  margin: 6px 0;
}

.pipeline-empty-icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.75;
}

.pipeline-empty-text {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.pipeline-empty-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.add-col-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.add-col-inner strong {
  font-size: 13.5px;
  color: #1e293b;
}

/* Empty State para Etapas da Consultoria */
.pipeline-empty-state {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  margin: 10px 0;
}

.pipeline-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.pipeline-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.pipeline-empty-state p {
  font-size: 14px;
  color: #475569;
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.pipeline-empty-state .empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.color-preset-dot {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-preset-dot:hover {
  transform: scale(1.15);
}

.column-cards-container {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card da Empresa no Pipeline */
.company-pipeline-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.company-pipeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #64748b;
  transform: translateY(-1px);
}

.card-company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-segment-tag {
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
}

.card-footer-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   GRID DE EMPRESAS CLIENTES (Início / Clientes)
   ============================================================ */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.company-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
}

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

.company-box-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.company-initials-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.company-main-meta h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.company-main-meta p {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  margin-top: 3px;
}

.company-health-bar {
  margin: 14px 0;
}

.health-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

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

.progress-fill.health-low { background: var(--critical-rose); }
.progress-fill.health-mid { background: var(--warning-amber); }

/* ============================================================
   WORKSPACE DO CLIENTE (Notion & Pipefy Hybrid Area)
   ============================================================ */
.client-hero-banner {
  background: #ffffff;
  color: var(--text-primary);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.client-hero-title h2 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.client-hero-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
}

/* Botão de Cobrança / Início WhatsApp para Rotinas Diárias */
.btn-routine-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.06);
}

.btn-routine-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  transform: translateY(-1px);
}

.client-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.client-tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.client-tab-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
  color: #64748b;
  transition: color 0.18s ease;
}

.client-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  border-color: #cbd5e1;
}

.client-tab-btn:hover svg {
  color: var(--brand-blue);
}

.client-tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  font-weight: 800;
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.client-tab-btn.active svg {
  color: var(--brand-blue);
  stroke-width: 2.4;
}

/* Notion Table & Checklist */
.notion-table-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  transition: background var(--transition-fast);
}

.notion-table-row:hover {
  background: var(--bg-surface-subtle);
}

.routine-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--financial-emerald);
}

.routine-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.routine-done .routine-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ============================================================
   FICHA DE FUNCIONÁRIO & ENTREVISTA 1:1 DIAGNÓSTICA
   ============================================================ */
.interview-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.interview-form-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.interview-section-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
}

.interview-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Score Dial & Badge */
.score-badge-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  font-size: 22px;
  font-weight: 800;
  border: 3px solid var(--financial-emerald);
  color: var(--financial-emerald);
  background: var(--financial-emerald-subtle);
}

.score-badge-large.score-mid {
  border-color: var(--warning-amber);
  color: var(--warning-amber);
  background: var(--warning-amber-subtle);
}

.score-badge-large.score-low {
  border-color: var(--critical-rose);
  color: var(--critical-rose);
  background: var(--critical-rose-subtle);
}

/* ==========================================
   MATRIZ DE AVALIAÇÃO DE DESEMPENHO (SCORE)
   ========================================== */
.score-matrix-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
}

.score-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.score-matrix-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-matrix-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-rating-badge.rating-bom {
  background: #dcfce7;
  color: #15803d;
  border: 1.5px solid #86efac;
}

.score-rating-badge.rating-moderado {
  background: #fef3c7;
  color: #b45309;
  border: 1.5px solid #fcd34d;
}

.score-rating-badge.rating-ruim {
  background: #ffe4e6;
  color: #be123c;
  border: 1.5px solid #fda4af;
}

.score-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.score-criterion-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.score-criterion-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.08);
}

.score-crit-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-crit-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.35;
  font-weight: 500;
}

/* CLASSIFICAÇÃO EM BOLINHAS DE 1 A 5 */
.rating-dots-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 6px;
}

.rating-dot-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.rating-dot-label input[type="radio"] {
  display: none;
}

.rating-dot-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.rating-dot-label:hover .rating-dot-circle {
  border-color: #0f172a;
  color: #0f172a;
  background: #f1f5f9;
  transform: scale(1.08);
}

.rating-dot-label.active .rating-dot-circle {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
}

.rating-dot-caption {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 14px;
  text-align: center;
}

.rating-dot-label.active .rating-dot-caption {
  color: #0f172a;
  font-weight: 800;
}

.score-segmented-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.score-seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  color: #475569;
  text-align: center;
}

.score-seg-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.score-seg-btn input[type="radio"] {
  display: none;
}

.score-seg-btn.active-ruim {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #ef4444 !important;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.15);
}

.score-seg-btn.active-moderado {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #f59e0b !important;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}

.score-seg-btn.active-bom {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.15);
}

/* Tags de critérios no Card de Funcionário */
.employee-criteria-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.crit-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crit-pill.pill-bom {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.crit-pill.pill-moderado {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.crit-pill.pill-ruim {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Modal Universal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  position: relative;
  animation: modalIn 0.2s ease-out;
}

.modal-container.modal-lg {
  max-width: 960px;
}

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

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #9f1239;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface-subtle);
}

/* Diálogo de Confirmação: Sair sem Salvar */
.modal-unsaved-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: unsavedFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-unsaved-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(226, 232, 240, 0.9);
  animation: unsavedCardIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes unsavedCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-unsaved-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-unsaved-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal-unsaved-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 22px;
}

.modal-unsaved-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-unsaved-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .modal-unsaved-actions {
    flex-direction: column-reverse;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000000 !important;
}

.toast {
  padding: 12px 18px;
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  border-left: 4px solid var(--brand-blue);
}

.toast.toast-success { border-left-color: var(--financial-emerald); }
.toast.toast-error { border-left-color: var(--critical-rose); }

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

/* ============================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (ORIZON Mobile OS)
   Diretrizes: mobile-design skill (Touch Targets >= 44px, Fitts' Law,
   Thumb Zone, Safe Area Insets e iOS Auto-Zoom Prevention)
   ============================================================ */

/* Elementos Mobile Base (Ocultos no Desktop) */
.menu-toggle-btn {
  display: none;
}

.mobile-search-toggle-btn {
  display: none;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  transition: all var(--transition-fast);
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 48;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-bottom-nav {
  display: none;
}

/* ============================================================
   BREAKPOINT 1: TABLETS & TELAS COMPACTAS (<= 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(290px, 84vw);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }

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

  .sidebar-close-btn {
    display: flex;
  }

  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0;
  }

  .menu-toggle-btn {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
  }

  .topbar {
    padding: 0 16px;
    gap: 12px;
  }

  .topbar-center {
    max-width: 380px;
    margin: 0 8px;
  }

  .companies-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ============================================================
   BREAKPOINT 2: SMARTPHONES & TELAS MÓVEIS (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Prevenção de Auto-Zoom no iOS Safari (font-size >= 16px obrigatório) */
  input,
  select,
  textarea,
  .form-control,
  .global-search-input {
    font-size: 16px !important;
  }

  /* Safe Area e Padding do Conteúdo (84px inferior para respiro do menu) */
  .content-area {
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    min-width: 0;
  }

  /* Topbar Mobile Executiva Compacta */
  .topbar {
    height: 58px;
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-left {
    gap: 10px;
  }

  .breadcrumbs {
    gap: 6px;
    font-size: 13px;
  }

  .breadcrumbs .crumb:first-child {
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 4px;
  }

  .breadcrumbs .crumb-separator {
    font-size: 13px;
  }

  .breadcrumbs .crumb.current {
    font-size: 13.5px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Barra de Pesquisa Desktop Oculta por padrão no Celular */
  .topbar-center {
    display: none;
  }

  /* Quando o modo de busca mobile estiver ativo na topbar */
  .topbar.search-mobile-open .topbar-left,
  .topbar.search-mobile-open .topbar-right {
    display: none !important;
  }

  .topbar.search-mobile-open .topbar-center {
    display: flex !important;
    flex: 1;
    max-width: 100%;
    margin: 0;
  }

  .mobile-search-toggle-btn {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
  }

  .topbar-client-quicknav {
    display: none;
  }

  .topbar-btn-action {
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .topbar-divider {
    display: none;
  }

  .topbar-profile {
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .topbar-profile:hover {
    background: transparent;
  }

  .profile-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .profile-details,
  .profile-chevron {
    display: none;
  }

  .profile-dropdown {
    width: 270px;
    top: calc(100% + 6px);
    right: -6px;
  }

  /* Dropdown de Resultados da Busca Global no Mobile */
  .global-search-dropdown {
    width: calc(100vw - 24px);
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 6px);
    max-height: 75vh;
  }

  /* Barra de Navegação Inferior Mobile (Thumb Zone) */
  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1.5px solid #cbd5e1;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
    z-index: 100;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 2px;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .bottom-nav-item.active {
    color: #2563eb;
    font-weight: 800;
  }

  .bottom-nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    transition: all 0.15s ease;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    color: #2563eb;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
  }

  .bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 1px solid #ffffff;
    line-height: 1.2;
  }

  /* View Header Mobile Ultra-Compact */
  .view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .view-title-group h2 {
    font-size: 16.5px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }

  .view-title-group p {
    display: none !important; /* Oculta descrições longas para trazer o conteúdo ao topo imediatamente */
  }

  .view-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
  }

  .view-actions .btn {
    flex: 1 1 calc(50% - 3px);
    min-height: 38px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
  }

  /* Grid de KPIs Mobile */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .kpi-card {
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }

  .kpi-label {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }

  .kpi-value {
    font-size: 20px !important;
  }

  .kpi-caption {
    font-size: 10.5px !important;
    margin-top: 2px !important;
  }

  /* Grid de Empresas Clientes Mobile (Compacto e Vertical) */
  .companies-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .company-box-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  }

  .company-box-top {
    margin-bottom: 6px !important;
    gap: 10px !important;
  }

  .company-initials-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
  }

  .company-main-meta h3 {
    font-size: 14.5px !important;
    line-height: 1.2 !important;
  }

  .company-main-meta p {
    font-size: 11.5px !important;
    margin-top: 1px !important;
  }

  .company-health-bar {
    margin: 6px 0 !important;
  }

  .health-bar-header {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .progress-track {
    height: 4px !important;
  }

  /* Esteira das 5 Etapas (Acesso Rápido por Abas Verticais no Celular) */
  .pipeline-mobile-stage-bar {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin-bottom: 10px;
    padding: 2px 0;
  }

  .pipeline-mobile-stage-bar::-webkit-scrollbar {
    display: none;
  }

  .pipeline-stage-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .pipeline-stage-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  }

  .pipeline-board {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: auto;
  }

  .pipeline-board.single-column-mode {
    display: block !important;
  }

  .pipeline-column {
    min-width: 82vw;
    max-width: 84vw;
    flex: 0 0 82vw;
    scroll-snap-align: start;
    max-height: 75vh;
  }

  .pipeline-column.is-mobile-hidden {
    display: none !important;
  }

  .pipeline-board.single-column-mode .pipeline-column {
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    max-height: none !important;
  }

  .column-header {
    padding: 10px 12px !important;
  }

  .column-desc {
    display: none !important;
  }

  .company-pipeline-card {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }

  .card-company-name {
    font-size: 13.5px !important;
  }

  .card-segment-tag {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .card-metric-row {
    font-size: 11.5px !important;
    margin-bottom: 3px !important;
  }

  .card-footer-actions {
    margin-top: 6px !important;
    padding-top: 6px !important;
    gap: 4px !important;
  }

  /* Workspace do Cliente Mobile Ultra-Compacto */
  .client-hero-banner {
    flex-direction: column;
    padding: 12px 14px !important;
    gap: 8px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }

  .client-hero-banner > div:last-child {
    align-items: stretch !important;
    width: 100%;
  }

  .client-hero-banner select.form-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .client-hero-title h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .client-hero-details {
    gap: 6px !important;
    font-size: 11px !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
  }

  /* Abas do Workspace */
  .client-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
  }

  .client-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .client-tab-btn {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    min-height: 36px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  /* ============================================================
     DASHBOARD & RADAR DE COBRANÇA MOBILE (Foco Imediato na Lista)
     ============================================================ */
  /* Ocultar Cards de Métricas/KPIs no celular para não empurrar tarefas para baixo */
  .dashboard-view .kpi-grid {
    display: none !important;
  }

  .dashboard-view .view-header {
    margin-bottom: 12px;
    gap: 8px;
  }

  .dashboard-view .view-header p {
    display: none !important;
  }

  .dashboard-view .btn-esteira-quick {
    display: none !important; /* Já disponível na barra inferior fixa de navegação */
  }

  .dashboard-view .view-actions {
    width: 100%;
  }

  .dashboard-view .view-actions button {
    width: 100% !important;
    min-height: 44px;
    font-size: 13.5px;
    font-weight: 800;
    justify-content: center;
    box-shadow: var(--shadow-sm);
  }

  .dashboard-view .radar-container {
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .dashboard-view .radar-container .card-header {
    padding: 12px;
    gap: 10px;
  }

  .radar-header-top {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

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

  .radar-toggle-group {
    width: 100%;
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    gap: 3px;
  }

  .radar-tab-btn {
    flex: 1;
    justify-content: center;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 8px;
  }

  .radar-filters-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .radar-search-input {
    width: 100% !important;
    min-width: 100% !important;
    height: 42px !important;
    font-size: 16px !important; /* Previne auto-zoom no iOS */
  }

  .radar-company-select {
    width: 100% !important;
    min-width: 100% !important;
    height: 42px !important;
    font-size: 16px !important;
  }

  .radar-overdue-btn {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center;
    font-size: 13px !important;
  }

  .radar-counter-badge {
    align-self: flex-start;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Ocultar tabela desktop e exibir lista de cards touch-friendly */
  .radar-desktop-table {
    display: none !important;
  }

  .radar-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
  }

  .radar-mobile-card {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    transition: transform 0.12s ease;
  }

  .radar-mobile-card:active {
    transform: scale(0.99);
  }

  .radar-mobile-card.is-overdue {
    border-left: 5px solid var(--critical-rose) !important;
    background: linear-gradient(90deg, rgba(254, 226, 226, 0.2) 0%, #ffffff 30%);
  }

  .radar-mobile-card.is-completed {
    border-left: 5px solid var(--financial-emerald) !important;
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.25) 0%, #ffffff 30%);
  }

  .radar-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .radar-card-top .employee-cell {
    flex: 1;
    min-width: 0;
  }

  .radar-card-top .employee-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }

  .radar-card-top .employee-role {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
  }

  .radar-card-top .company-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    cursor: pointer;
  }

  .radar-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .radar-card-body .task-cell-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .radar-card-body .task-cell-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .radar-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
    font-size: 12px;
  }

  .radar-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
  }

  .radar-card-actions .btn {
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 12px;
  }

  .radar-card-actions .btn-whatsapp {
    flex: 2;
    min-height: 44px;
    font-weight: 800;
  }

  .radar-card-actions .btn-secondary {
    flex: 1;
    min-height: 44px;
  }

  /* Grid Inferior de Rotinas & Alertas */
  .dashboard-bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 6px;
  }

  .dashboard-bottom-grid .card {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .dashboard-bottom-grid .card-header {
    padding: 10px 12px;
  }

  .dashboard-bottom-grid .card-body {
    padding: 8px 10px !important;
  }

  .notion-table-row {
    padding: 8px 10px !important;
    gap: 8px !important;
    min-height: 38px !important;
  }

  .routine-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  /* Sprint Tarefas no Mobile */
  .sprint-header-card {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
  }

  .sprint-header-card p {
    display: none !important;
  }

  .sprint-header-card h3 {
    font-size: 14.5px !important;
    margin-bottom: 2px !important;
  }

  .sprint-progress-pill {
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 10px !important;
    margin-top: 4px !important;
  }

  .sprint-toolbar {
    padding: 8px 10px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
  }

  .sprint-filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 4px !important;
  }

  .sprint-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .sprint-filter-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
    min-height: 30px !important;
    border-radius: 5px !important;
  }

  .sprint-search-box {
    min-width: 100%;
    height: 36px !important;
  }

  .sprint-desktop-table {
    display: none !important;
  }

  .sprint-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .sprint-mobile-card {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }

  .sprint-mobile-card.is-completed {
    border-left: 4px solid var(--financial-emerald) !important;
    opacity: 0.85;
    background: #fafafa;
  }

  .sprint-mobile-card.is-overdue {
    border-left: 4px solid var(--critical-rose) !important;
    background: #fffcfc;
  }

  .sprint-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .sprint-check-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #166534;
    font-weight: 800;
    margin-top: 1px;
  }

  .sprint-check-btn.checked {
    background: #ecfdf5;
    border-color: #10b981;
  }

  .sprint-task-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
  }

  .sprint-task-title.task-completed {
    text-decoration: line-through;
    color: #64748b;
  }

  .sprint-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-light);
  }

  .sprint-task-select {
    height: 28px !important;
    font-size: 11.5px !important;
  }

  /* Ficha de Colaborador & Avaliação 1:1 */
  .interview-form-grid {
    grid-template-columns: 1fr;
    gap: 10px !important;
  }

  .interview-section-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }

  .score-criteria-grid {
    grid-template-columns: 1fr;
    gap: 8px !important;
  }

  .rating-dots-group {
    padding: 6px 4px !important;
    gap: 4px !important;
  }

  .rating-dot-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .score-matrix-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Organograma Touch Mobile */
  .whiteboard-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  .whiteboard-toolbar > div {
    justify-content: space-between;
    width: 100%;
  }

  .whiteboard-viewport {
    height: calc(100vh - 210px) !important;
  }

  .organogram-wrapper.is-fullscreen .whiteboard-viewport {
    height: calc(100vh - 90px) !important;
  }

  .btn-zoom {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
  }

  .organogram-sectors-bar {
    padding: 2px 0 !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .organogram-sector-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
    height: 28px !important;
  }

  /* Modal em Estilo Bottom Sheet no Celular */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-container,
  .modal-container.modal-lg {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    animation: sheetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .modal-header {
    padding: 14px 18px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
  }

  .modal-close-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .modal-body {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .modal-body form div[style*="grid-template-columns: 1fr 1fr"],
  .modal-body form div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 8px !important;
    margin: 16px -16px -16px !important;
    padding: 14px 16px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  .card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  @keyframes sheetSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Documento Folha A4 no Celular */
  .word-a4-sheet {
    padding: 20px 16px;
  }
}

/* ============================================================
   BREAKPOINT 3: SMARTPHONES ULTRA COMPACTOS (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
  .topbar-btn-action span {
    display: none;
  }

  .topbar-btn-action {
    padding: 0 10px;
  }

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

  .view-actions .btn {
    flex: 1 1 100%;
  }

  .pipeline-column {
    min-width: 88vw;
    max-width: 90vw;
    flex: 0 0 88vw;
  }
}


/* Animação de Alerta Pulsante no Radar */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(225, 29, 72, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Scrollbars Elegantes e Sutis */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =========================================================
   FORM CONTROLS & SELECTS - Alto Contraste & Espaçamento
   ========================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  line-height: 1.45;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

select.form-control,
select {
  cursor: pointer;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600;
  padding: 6px 10px;
}

.form-control:focus,
select:focus,
textarea:focus {
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15) !important;
}

/* =========================================================
   DOCUMENTO EXECUTIVO ESTILO MICROSOFT WORD (FOLHA A4)
   ========================================================= */
.word-doc-container {
  transition: transform var(--transition-fast);
}

.word-a4-sheet {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 20px 25px -5px rgba(15, 23, 42, 0.1);
  padding: 48px 56px;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  color: #0f172a;
}

.word-body-content h1,
.word-editor-surface h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 10px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 6px;
}

.word-body-content h2,
.word-editor-surface h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 8px;
}

.word-body-content h3,
.word-editor-surface h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.word-body-content p,
.word-editor-surface p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #1e293b;
}

.word-body-content ul,
.word-body-content ol,
.word-editor-surface ul,
.word-editor-surface ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.word-body-content li,
.word-editor-surface li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.word-body-content table,
.word-editor-surface table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}

.word-body-content th,
.word-editor-surface th {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
  font-weight: 800;
  color: #0f172a;
}

.word-body-content td,
.word-editor-surface td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  color: #1e293b;
}

.word-editor-surface:focus {
  border-color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.2) !important;
}

/* Regras de Impressão Direta */
@media print {
  body {
    background: #ffffff !important;
  }
  .sidebar,
  .top-header,
  .client-tabs-nav,
  .view-actions,
  .modal-overlay,
  .modal-container,
  button {
    display: none !important;
  }
  .main-wrapper,
  .content-area,
  .client-workspace-container {
    margin: 0 !important;
    padding: 0 !important;
  }
  .word-a4-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   GRAVAÇÃO DE ÁUDIO & TRANSCRIÇÃO INTELIGENTE (Meeting Studio)
   ========================================================================== */
.meeting-recording-studio {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.rec-pulse {
  animation: pulse-recording 1.2s infinite ease-in-out;
}

@keyframes pulse-recording {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.executive-audio-box {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.executive-audio-box:hover {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}

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

/* ============================================================
   MODELO SPRINT DE TAREFAS - ÁREA DO CLIENTE
   Design Elegante, Alto Contraste e Orientado a Entregas
   ============================================================ */
.sprint-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 24px;
}

.sprint-header-card {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.sprint-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sprint-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.sprint-progress-pill {
  min-width: 210px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.sprint-progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.sprint-progress-fill {
  height: 100%;
  background: var(--brand-blue);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.sprint-category-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 7px;
  border-radius: 4px;
  line-height: 1.3;
}

.sprint-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* Botão de Cobrança WhatsApp no Sprint */
.btn-sprint-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1.3px solid #86efac;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.05);
}

.btn-sprint-whatsapp svg,
.btn-routine-whatsapp svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn-sprint-whatsapp:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-sprint-whatsapp:active {
  transform: translateY(0);
}

.sprint-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.sprint-filter-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.sprint-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sprint-filter-btn:hover {
  color: var(--text-primary);
}

.sprint-filter-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Indicadores Numéricos dos Filtros (Minidash Integrado) */
.sprint-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  margin-left: 6px;
  transition: all 0.15s ease;
}

.sprint-filter-btn.active .sprint-count-badge {
  background: #0f172a;
  color: #ffffff;
}

.sprint-count-badge.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.sprint-filter-btn.active .sprint-count-badge.badge-pending {
  background: #d97706;
  color: #ffffff;
}

.sprint-count-badge.badge-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.sprint-filter-btn.active .sprint-count-badge.badge-overdue {
  background: #dc2626;
  color: #ffffff;
}

.sprint-count-badge.badge-completed {
  background: #dcfce7;
  color: #166534;
}

.sprint-filter-btn.active .sprint-count-badge.badge-completed {
  background: #16a34a;
  color: #ffffff;
}

.sprint-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  min-width: 250px;
  transition: border-color 0.15s ease;
}

.sprint-search-box:focus-within {
  border-color: var(--brand-blue);
}

.sprint-search-input {
  border: none;
  outline: none;
  font-size: 12.5px;
  color: var(--text-primary);
  width: 100%;
  background: transparent;
  font-family: inherit;
}

.sprint-table-container {
  overflow-x: auto;
}

.sprint-table-header {
  display: grid;
  grid-template-columns: 40px minmax(240px, 2.3fr) minmax(140px, 1.2fr) 110px 100px 160px minmax(150px, auto);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border-light);
  background: #f1f5f9;
  min-width: 920px;
}

.sprint-task-row {
  display: grid;
  grid-template-columns: 40px minmax(240px, 2.3fr) minmax(140px, 1.2fr) 110px 100px 160px minmax(150px, auto);
  padding: 12px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  transition: background 0.15s ease;
  min-width: 920px;
}

.sprint-task-row:hover {
  background: #f8fafc;
}

.sprint-task-row.task-completed {
  background: #fcfcfc;
}

.sprint-task-row.task-completed .sprint-task-title {
  text-decoration: line-through;
  color: #64748b;
}

.sprint-check-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.sprint-check-btn:hover {
  border-color: var(--financial-emerald);
  transform: scale(1.1);
}

.sprint-check-btn.checked {
  background: var(--financial-emerald);
  border-color: var(--financial-emerald);
  color: #ffffff;
}

.sprint-task-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
}

.sprint-task-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.sprint-task-select {
  height: 30px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-light);
  padding: 2px 6px;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  width: 100%;
}

.sprint-task-select:focus {
  border-color: var(--brand-blue);
  outline: none;
}

/* ==========================================================================
   ORGANOGRAMA & MAPA MENTAL EM QUADRO BRANCO (WHITEBOARD)
   ========================================================================== */

.organogram-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.whiteboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
  z-index: 25;
  position: relative;
}

.connecting-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.connecting-mode-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  animation: pulse 1.2s infinite;
}

.active-connect-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.zoom-controls-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: #f8fafc;
  overflow: hidden;
}

.btn-zoom {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-zoom:hover {
  background: #e2e8f0;
}

.zoom-indicator {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

/* BARRA DE SUB-ABAS DE SETORES NO ORGANOGRAMA */
.organogram-sectors-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  overflow-x: auto;
}

.organogram-sectors-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.organogram-sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.organogram-sector-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.organogram-sector-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.organogram-sector-pill .sector-edit-btn,
.organogram-sector-pill .sector-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  transition: all 0.15s ease;
}

.organogram-sector-pill .sector-edit-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.organogram-sector-pill .sector-delete-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-add-sector {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #eff6ff;
  border: 1.2px dashed #93c5fd;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-add-sector:hover {
  background: #dbeafe;
  border-color: var(--brand-blue);
}

/* TELA CHEIA (FULLSCREEN) NO ORGANOGRAMA */
.organogram-wrapper.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.organogram-wrapper.is-fullscreen .whiteboard-viewport {
  height: calc(100vh - 104px) !important;
  flex: 1 !important;
}

.whiteboard-viewport {
  width: 100%;
  height: 680px;
  overflow: auto;
  position: relative;
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1.3px, transparent 1.3px);
  background-size: 24px 24px;
  cursor: default !important; /* Ponteiro nativo de alto contraste que nunca some no Windows */
  user-select: none;
  -webkit-user-select: none;
}

.whiteboard-viewport.is-panning {
  cursor: grabbing !important;
}

.organogram-connecting-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #334155;
  animation: fadeInDown 0.2s ease;
}

.organogram-connecting-banner strong {
  color: #38bdf8;
  font-weight: 700;
}

.whiteboard-canvas {
  min-width: 7500px;
  min-height: 5000px;
  width: 7500px;
  height: 5000px;
  position: relative;
  transform-origin: 0 0;
  cursor: default !important;
}

.whiteboard-svg-layer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible !important; /* Garante que nenhuma linha conectorra seja cortada no limite do quadro */
  cursor: default !important;
}

.whiteboard-svg-layer .connector-group {
  pointer-events: all;
}

.whiteboard-connector-path {
  stroke: #64748b;
  stroke-width: 2.2px;
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.15s ease, stroke-width 0.15s ease;
  cursor: default;
}

.connector-group:hover .whiteboard-connector-path {
  stroke: #0f172a;
  stroke-width: 3.2px;
}

.conn-delete-badge {
  cursor: pointer !important;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.connector-group:hover .conn-delete-badge {
  opacity: 1;
}

.conn-delete-circle {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1.5px;
  transition: all 0.15s ease;
}

.conn-delete-badge:hover .conn-delete-circle {
  fill: #fee2e2;
  stroke: #ef4444;
}

.conn-delete-text {
  fill: #64748b;
  font-size: 14px;
  font-weight: 800;
  user-select: none;
  pointer-events: none;
}

.conn-delete-badge:hover .conn-delete-text {
  fill: #b91c1c;
}

/* NÓS DO ORGANOGRAMA */
.whiteboard-node {
  position: absolute;
  width: 240px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 10;
  cursor: pointer !important; /* Cursor pointer de alto contraste para nunca ficar invisível */
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.25s ease, filter 0.25s ease;
}

.whiteboard-node:hover,
.whiteboard-node *:hover {
  cursor: pointer !important;
}

.whiteboard-node.is-dragging,
.whiteboard-node.is-dragging * {
  z-index: 60 !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24) !important;
  border-color: #0f172a !important;
  cursor: grabbing !important;
  transform: scale(1.02);
}

.whiteboard-node.connect-source {
  border: 2.5px solid #0f172a !important;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.18) !important;
}

/* Evita que o texto interno converta o mouse em cursor I-beam fino e quase invisível */
.whiteboard-node .node-header,
.whiteboard-node .node-body,
.whiteboard-node .node-name,
.whiteboard-node .node-role,
.whiteboard-node .node-tags,
.whiteboard-node .badge {
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none;
  cursor: pointer !important;
}

/* ==========================================
   DESTAQUE DE HIERARQUIA & SUBORDINAÇÃO
   ========================================== */

/* Cartão do Líder / Gestor Clicado */
.whiteboard-node.hierarchy-root {
  border: 2.5px solid #2563eb !important;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35), 0 14px 28px rgba(37, 99, 235, 0.25) !important;
  z-index: 45 !important;
  transform: scale(1.03);
}

.whiteboard-node.hierarchy-root::before {
  content: "👑 Líder Selecionado";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  pointer-events: none;
  z-index: 50;
  animation: fadeInDown 0.2s ease-out;
}

/* Cartões Subordinados (Toda a árvore abaixo do líder) */
.whiteboard-node.hierarchy-subordinate {
  border: 2.5px solid #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.28), 0 10px 22px rgba(2, 132, 199, 0.2) !important;
  z-index: 40 !important;
  transform: scale(1.02);
}

.whiteboard-node.hierarchy-subordinate::before {
  content: "↳ Subordinado";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35);
  pointer-events: none;
  z-index: 45;
  animation: fadeInDown 0.2s ease-out;
}

/* Cartões que não fazem parte do ramo selecionado */
.whiteboard-node.hierarchy-dimmed {
  opacity: 0.25 !important;
  filter: grayscale(0.7) !important;
}

/* Conexões ativas no ramo selecionado */
.connector-group.hierarchy-active-path .whiteboard-connector-path {
  stroke: #2563eb !important;
  stroke-width: 3.8px !important;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.4));
}

/* Conexões fora do ramo selecionado */
.connector-group.hierarchy-dimmed-path {
  opacity: 0.08 !important;
}

/* Banner de informação da hierarquia ativa */
.organogram-hierarchy-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #2563eb;
  animation: fadeInDown 0.2s ease;
}

.organogram-hierarchy-banner strong {
  color: #38bdf8;
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px;
}

.node-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-drag-handle {
  color: #94a3b8;
  cursor: move !important;
  padding: 2px 6px;
}

.node-drag-handle:hover {
  color: #0f172a;
}

.node-remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
}

.node-remove-btn:hover {
  color: var(--critical-rose);
}

.node-body {
  padding: 4px 12px 10px;
}

.node-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-role {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.node-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
  border-radius: 0 0 7px 7px;
}

.node-action-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.node-action-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.node-action-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* GAVETA / DRAWER DE COLABORADORES */
.organogram-drawer {
  position: absolute;
  right: 0;
  top: 52px;
  bottom: 0;
  width: 330px;
  background: #ffffff;
  border-left: 1.5px solid var(--border-light);
  box-shadow: -6px 0 20px rgba(15, 23, 42, 0.08);
  z-index: 35;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.drawer-body {
  padding: 16px 18px;
  flex: 1;
  overflow-y: auto;
}

.drawer-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-emp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #ffffff;
  gap: 8px;
}

.drawer-emp-item.already-placed {
  background: #f8fafc;
  opacity: 0.65;
}

/* Área de Anotações Compactas dos Funcionários */
.emp-notes-body {
  transition: max-height 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.emp-notes-body::-webkit-scrollbar {
  width: 5px;
}

.emp-notes-body::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.emp-notes-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.emp-notes-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.btn-toggle-emp-notes:hover {
  text-decoration: underline;
  color: #1d4ed8 !important;
}

/* ==========================================================================
   TELA DE LOGIN EXECUTIVA & SEGURANÇA SUPABASE CLOUD
   ========================================================================== */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #070a12;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 38px 36px 32px;
  animation: loginFadeUp 0.35s ease-out;
}

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

.login-brand-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  box-shadow: 
    0 10px 25px -5px rgba(2, 132, 199, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f8fafc;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
  letter-spacing: -0.1px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.15s ease;
}

.login-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.15s ease;
}

.login-input:focus {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.login-input:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
  color: #38bdf8;
}

.login-input::placeholder {
  color: #64748b;
}

.login-error-banner {
  padding: 11px 14px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 10px;
  color: #fecdd3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  animation: shakeError 0.3s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-btn-primary {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 
    0 10px 20px -5px rgba(2, 132, 199, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.18s ease;
  margin-top: 4px;
}

.login-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 
    0 14px 24px -5px rgba(2, 132, 199, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.login-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px -2px rgba(2, 132, 199, 0.35);
}

.login-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: center;
}

.login-security-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
}

/* ==========================================================================
   BADGE DE STATUS DE SINCRONIZAÇÃO EM NUVEM SUPABASE
   ========================================================================== */
.sidebar-cloud-sync-wrap {
  margin: 18px 10px 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
  user-select: none;
}

.cloud-status-badge.online {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cloud-status-badge.syncing {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cloud-status-badge.offline {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cloud-dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2.2s infinite;
}

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

.cloud-dot-syncing {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  animation: spinSync 1s linear infinite;
}

.cloud-dot-offline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}



