/* =============================================
   CRM Infoss - Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Dark Theme (default) */
  --bg-color:        #0d0f14;
  --surface-color:   #141720;
  --surface2-color:  #1c2030;
  --border-color:    #252b3b;
  --accent-color:    #00d4ff;
  --accent2-color:   #7c3aed;
  --success-color:   #10b981;
  --warning-color:   #f59e0b;
  --danger-color:    #ef4444;
  --muted-color:     #94a3b8;
  --text-color:      #e2e8f0;
  --text-dim-color:  #64748b;
  --radius:          10px;
  --shadow:          0 4px 24px rgba(0,0,0,.45);
  /* aliases (legado + consistência) */
  --accent:          var(--accent-color);
  --surface:         var(--surface-color);
  --surface2:        var(--surface2-color);
  --border:          var(--border-color);
  --text:            var(--text-color);
  --bg:              var(--bg-color);
  --muted:           var(--muted-color);
  --success:         var(--success-color);
  --danger:          var(--danger-color);
}

.theme-light {
  /* Tema claro — superfícies levemente acinzentadas (não branco puro), melhor hierarquia */
  --bg-color:        #e2e8f0;
  --surface-color:   #f1f4f9;
  --surface2-color:  #e8edf5;
  --border-color:    #c5d0e3;
  --accent-color:    #2563eb;
  --accent2-color:   #6366f1;
  --success-color:   #059669;
  --warning-color:   #d97706;
  --danger-color:    #dc2626;
  --muted-color:     #5c6b7f;
  --text-color:      #0f172a;
  --text-dim-color:  #475569;
  --shadow:          0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.07);
  /*
   * Importante: --surface/--border etc. vivem no :root (html) apontando para cores escuras.
   * Com tema só no body, os filhos herdavam --surface do html → cards pretos no modo claro.
   * Re-mapear aliases aqui para herança correta a partir do body.theme-light.
   */
  --accent:          var(--accent-color);
  --accent2:         var(--accent2-color);
  --surface:         var(--surface-color);
  --surface2:        var(--surface2-color);
  --border:          var(--border-color);
  --text:            var(--text-color);
  --bg:              var(--bg-color);
  --muted:           var(--muted-color);
  --success:         var(--success-color);
  --danger:          var(--danger-color);
}

/* Mesmo padrão no escuro (garante aliases coerentes no body.theme-dark) */
.theme-dark {
  --accent:          var(--accent-color);
  --accent2:         var(--accent2-color);
  --surface:         var(--surface-color);
  --surface2:        var(--surface2-color);
  --border:          var(--border-color);
  --text:            var(--text-color);
  --bg:              var(--bg-color);
  --muted:           var(--muted-color);
  --success:         var(--success-color);
  --danger:          var(--danger-color);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.theme-light {
  background: linear-gradient(165deg, #dde5f0 0%, #d4dde9 40%, #dce3ee 100%);
}

.theme-light .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.theme-light .btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  opacity: 1;
}

.theme-light .card {
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow);
}

/* Header no modo claro: barra escura em carvão (preto suavizado), não branca */
.theme-light .navbar {
  background: linear-gradient(180deg, #3a4454 0%, #2d3542 55%, #282f3b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-light .navbar .nav-link,
.theme-light .navbar .dropdown-toggle {
  color: rgba(226, 232, 240, 0.9);
}

.theme-light .navbar .nav-link:hover,
.theme-light .navbar .dropdown-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.theme-light .navbar .nav-link.active,
.theme-light .navbar .dropdown-toggle.active {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
}

.theme-light .navbar .nav-divider {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.theme-light .navbar .dropdown-menu {
  background: #2f3744;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.theme-light .navbar .dropdown-item {
  color: #e2e8f0;
}

.theme-light .navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.theme-light .navbar .dropdown-item.active {
  background: rgba(147, 197, 253, 0.15);
  color: #bfdbfe;
}

.theme-light .navbar .menu-toggle,
.theme-light .navbar .theme-toggle {
  color: #e2e8f0;
}

.theme-light .navbar .menu-toggle:hover,
.theme-light .navbar .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-light .navbar .user-name {
  color: #f1f5f9;
}

.theme-light .navbar .user-role {
  color: #94a3b8;
}

.theme-light .navbar .user-profile:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-light .navbar .user-dropdown-menu {
  background: #2f3744 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.theme-light .navbar .user-dropdown-menu .dropdown-item {
  color: #e2e8f0 !important;
}

.theme-light .navbar .user-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.theme-light .navbar .user-dropdown-menu .dropdown-item.logout-item {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Badge do sino: borda coerente com o header escuro */
.theme-light .navbar-right a[href*='atividades'] span[style*='border'] {
  border-color: #2d3542 !important;
}

.theme-light input:focus,
.theme-light select:focus,
.theme-light textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.theme-light .login-card {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.08);
}

.theme-light .tab-btn.active {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }

/* ---- Layout ---- */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .3s;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.sidebar-logo .brand span { color: var(--text); }
.sidebar-logo small { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-group { padding: 8px 16px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--text); background: var(--surface2); }
.nav-item.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0,212,255,.06); }
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.user-info .user-name { font-weight: 600; font-size: 13px; color: var(--text); }
.user-info .user-role { font-size: 11px; color: var(--muted); }

/* Main content */
.main-content {
  margin-left: 0;
  padding-top: 52px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.content { padding: 12px 20px 20px 20px; flex: 1; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
.card-body { padding: 20px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.c-blue::before { background: var(--accent); }
.stat-card.c-purple::before { background: var(--accent2); }
.stat-card.c-green::before { background: var(--success); }
.stat-card.c-yellow::before { background: var(--warning); }
.stat-card.c-red::before { background: var(--danger); }
.stat-card.c-orange::before { background: #ea580c; }

.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; line-height: 1; color: var(--text-color); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Cards de métrica no modo claro — leitura e profundidade */
body.theme-light .stat-card {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.theme-light .stat-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #00b8d9; color: #000; opacity: 1; }

/* Botão primary - Modo noturno com melhor contraste */
.theme-dark .btn-primary {
  color: #ffffff;
}

.theme-dark .btn-primary:hover {
  color: #ffffff;
}
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Botões outline - Modo noturno com melhor destaque */
.theme-dark .btn-outline {
  border: 1.5px solid #3a4556;
  background: rgba(58, 69, 86, 0.08);
}

.theme-dark .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
}

/* Botões outline - Modo claro com melhor visibilidade */
.theme-light .btn-outline {
  border: 1.5px solid #475569;
  color: #1e293b;
  background: rgba(248, 250, 252, 0.6);
}

.theme-light .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; opacity: 1; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; opacity: 1; }

/* Nova/editar oportunidade — "+ Adicionar produto" / "+ Adicionar serviço" (azul #0066cc, alinhado à aba Produtos) */
button.btn.nova-opp-btn-add-produto,
button.btn.nova-opp-btn-add-servico,
a.btn.nova-opp-btn-add-produto,
a.btn.nova-opp-btn-add-servico {
  -webkit-appearance: none;
  appearance: none;
  background-color: #0066cc !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid #0052a3 !important;
  box-shadow: none;
}
button.btn.nova-opp-btn-add-produto:hover,
button.btn.nova-opp-btn-add-servico:hover,
a.btn.nova-opp-btn-add-produto:hover,
a.btn.nova-opp-btn-add-servico:hover {
  background-color: #0052a3 !important;
  color: #fff !important;
  opacity: 1;
}
body.theme-dark button.btn.nova-opp-btn-add-produto,
body.theme-dark button.btn.nova-opp-btn-add-servico,
body.theme-dark a.btn.nova-opp-btn-add-produto,
body.theme-dark a.btn.nova-opp-btn-add-servico {
  background-color: #1d6fd4 !important;
  border-color: #1560bd !important;
}
body.theme-dark button.btn.nova-opp-btn-add-produto:hover,
body.theme-dark button.btn.nova-opp-btn-add-servico:hover,
body.theme-dark a.btn.nova-opp-btn-add-produto:hover,
body.theme-dark a.btn.nova-opp-btn-add-servico:hover {
  background-color: #1560bd !important;
}

.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { padding: 7px 9px; }

/* Cabeçalho de lista (título + ação principal) */
.page-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-heading-row__title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
  line-height: 1.2;
}

/* CTA principal (ex.: Nova oportunidade) — marca BelCX */
.btn-cta-nova {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #f8fafc;
  background: linear-gradient(135deg, var(--accent2-color) 0%, var(--accent-color) 52%, #22d3ee 100%);
  background-size: 120% 120%;
  background-position: 80% 50%;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(0, 212, 255, 0.22),
    0 4px 14px rgba(124, 58, 237, 0.18);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease, background-position 0.25s ease;
}
.btn-cta-nova:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  background-position: 40% 50%;
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.14),
    0 12px 28px rgba(0, 212, 255, 0.3),
    0 6px 18px rgba(124, 58, 237, 0.22);
}
.btn-cta-nova:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn-cta-nova:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}
.btn-cta-nova .btn-cta-nova__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.btn-cta-nova .btn-cta-nova__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.theme-light .btn-cta-nova {
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 10px 26px rgba(37, 99, 235, 0.28);
}
.theme-light .btn-cta-nova:hover {
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.1),
    0 14px 32px rgba(37, 99, 235, 0.35);
}

/* Variante verde (ex.: Nova indicação) */
.btn-cta-nova--success {
  background: linear-gradient(135deg, #047857 0%, var(--success-color) 45%, #34d399 100%);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(16, 185, 129, 0.28);
}
.btn-cta-nova--success:hover {
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.14),
    0 12px 28px rgba(16, 185, 129, 0.38);
}
.theme-light .btn-cta-nova--success {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 10px 26px rgba(5, 150, 105, 0.35);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* Bloco de tabela com toolbar (JS: bel-table-enhanced) */
.table-wrap.bel-table-enhanced {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: var(--shadow);
}

.theme-dark .table-wrap.bel-table-enhanced {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.bel-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface2-color);
}

.theme-light .bel-table-toolbar {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.bel-table-toolbar .bel-table-toolbar-left {
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bel-table-search-wrap {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  position: relative;
}

.bel-table-search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.45;
  pointer-events: none;
}

.bel-table-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bel-table-search:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.theme-dark .bel-table-search:focus {
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.bel-table-toolbar .btn-bel-csv,
.bel-table-toolbar .btn-bel-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bel-table-meta {
  font-size: 12px;
  color: var(--muted-color);
  padding: 0 4px;
}

.bel-table-scroll {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 2px solid var(--border-color); }
th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-dim-color); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface2-color); }

.theme-light tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.theme-light tbody tr:hover {
  background: rgba(37, 99, 235, 0.06);
}

.theme-light thead tr {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

tbody tr.bel-row-hidden {
  display: none;
}

.td-small { font-size: 12px; color: var(--muted-color); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-aberto        { background: rgba(100,116,139,.2); color: #94a3b8; }
.badge-negociacao    { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-agendado      { background: rgba(124,58,237,.2); color: #a78bfa; }
.badge-fechado       { background: rgba(16,185,129,.15); color: #10b981; }
.badge-perdido       { background: rgba(239,68,68,.15); color: #ef4444; }
.badge-seminteresse  { background: rgba(100,116,139,.1); color: #64748b; }

/* Forms */
.form-grid { 
  display: grid; 
  gap: 16px; 
  background: var(--surface-color);
  padding: 16px;
  border-radius: 8px;
}

.modal .form-grid {
  background: var(--surface-color);
  padding: 16px;
  border-radius: 8px;
}
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color .15s, background .15s;
  width: 100%;
}

/* Better contrast for value inputs in product rows */
.valor-unitario, .valor-total {
  background: var(--surface2-color) !important;
  color: var(--text-color) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Modo noturno - melhor contraste */
.theme-dark input,
.theme-dark select,
.theme-dark textarea {
  background: #1a1f2e;
  border: 1px solid #3a4556;
}

.theme-dark input:hover,
.theme-dark select:hover,
.theme-dark textarea:hover {
  border-color: #4a5a6f;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}

.theme-dark input:focus,
.theme-dark select:focus,
.theme-dark textarea:focus {
  background: #1f2635;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--surface); }
.form-hint { font-size: 11px; color: var(--text-dim); }

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 13.5px;
  border-left: 4px solid;
  margin-bottom: 16px;
}
.alert-warning { background: rgba(245,158,11,.1); border-color: var(--warning); color: var(--warning); }
.alert-danger   { background: rgba(239,68,68,.1); border-color: var(--danger); color: var(--danger); }
.alert-success  { background: rgba(16,185,129,.1); border-color: var(--success); color: var(--success); }
.alert-info     { background: rgba(0,212,255,.08); border-color: var(--accent); color: var(--accent); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding-top: 16px; }
.page-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface);
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent); }

/* Filters bar */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  min-width: 140px;
  transition: background .15s, border-color .15s;
}

/* Filter select - Modo noturno */
.theme-dark .filter-select {
  background: #1a1f2e;
  border: 1px solid #3a4556;
}

.theme-dark .filter-select:hover {
  border-color: #4a5a6f;
}

.filter-select:focus { outline: none; border-color: var(--accent); }

.theme-dark .filter-select:focus {
  background: #1f2635;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  min-width: 220px;
  transition: background .15s, border-color .15s;
}

/* Search input - Modo noturno */
.theme-dark .search-input {
  background: #1a1f2e;
  border: 1px solid #3a4556;
}

.theme-dark .search-input:hover {
  border-color: #4a5a6f;
}

.search-input:focus { outline: none; border-color: var(--accent); }

.theme-dark .search-input:focus {
  background: #1f2635;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .3s;
}

.theme-light .modal-overlay {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}

.theme-light .modal {
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: #ffffff;
}

.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; }
.modal-body { 
  padding: 24px; 
  background: var(--surface-color);
}
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.btn-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.btn-close:hover { color: var(--danger); }

/* Placeholder quando o produto não tem imagem (evita emoji no layout) */
.item-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  background: var(--surface2-color, var(--surface-color));
}

/* Link de notificações no header (substitui sino emoji) */
.nav-bell-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--text-color);
  text-decoration: none;
}
.nav-bell-link:hover { color: var(--accent-color); }
.nav-bell-link svg { display: block; }

.bel-ai-trigger-icon svg { display: block; }

.bel-ai-avatar:empty {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent2-color, #6366f1));
  opacity: 0.85;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.07) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.login-brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.login-logo .logo-wordmark {
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.04em;
}
.login-logo .logo-wordmark__bel {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-color);
}
.login-logo .logo-wordmark__cx {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #6ee7f7 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-tagline {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* Charts area (dashboard) */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
@media (max-width: 980px) {
  .charts-grid { grid-template-columns: 1fr; }
}
.chart-container {
  position: relative;
  height: 280px;
}
.chart-container--bar { height: 300px; padding: 4px 2px 0; }
.chart-container--donut { height: 300px; padding: 6px 8px 2px; }
.dashboard-chart-card .card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 0;
}
.dashboard-chart-card .card-body {
  padding-top: 16px;
}
.dashboard-chart-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim-color);
  opacity: 0.85;
}
.theme-light .dashboard-chart-card {
  box-shadow: var(--shadow);
}
.dashboard-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0;
  font-size: 13px;
  color: var(--text-dim-color);
  text-align: center;
  padding: 24px;
}

/* Progress bars */
.progress-bar { background: var(--border); border-radius: 10px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; transition: width .6s ease; }

/* Pill tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: 9px; width: fit-content; margin-bottom: 20px; }
.tab-btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  transition: all .15s;
}
.tab-btn.active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* Duplicate warning */
.dup-warning {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--warning);
  display: none;
  margin-top: 6px;
}
.dup-warning.show { display: block; }

/* ===== NAVBAR (Top Navigation) ===== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(20, 23, 32, 0.92);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 20px;
  box-sizing: border-box;
  overflow: visible;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

/* Logo Section (Left) */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link .logo-wordmark {
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.04em;
}

.logo-wordmark__bel {
  font-size: 21px;
  font-weight: 600;
  color: #f0f0f5;
}

.logo-wordmark__cx {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #6ee7f7 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light .logo-wordmark__bel {
  color: #2d2d3d;
}

body.theme-light .navbar .logo-wordmark__bel {
  color: #e8eaef;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  display: none;
  line-height: 0;
}

.menu-toggle:hover {
  background: var(--surface2-color);
  color: var(--accent-color);
}

.menu-toggle:active {
  transform: scale(0.96);
}

.menu-toggle svg {
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-color);
  letter-spacing: -0.5px;
}

/* Navigation Links (Center) */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

/* Dropdowns marcados abrem ancorados à direita do botão (evitam cobrir tema/perfil) */
.nav-dropdown--menu-end .dropdown-menu {
  left: auto;
  right: 0;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim-color);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-color);
  background: var(--surface2-color);
}

.nav-link.active {
  color: var(--accent-color);
  background: rgba(0, 212, 255, 0.1);
}

.theme-light .nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
  margin: 0 16px;
  align-self: center;
  opacity: 0.6;
}

.theme-light .nav-divider {
  background: #d1d5db;
}

@media (max-width: 900px) {
  .nav-divider {
    display: none;
  }
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim-color);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle:hover {
  color: var(--text-color);
  background: var(--surface2-color);
}

/* Chevron em menus dropdown (substitui caractere ▼) */
.nav-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.22s ease, margin 0.22s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-chevron {
  transform: rotate(225deg);
  margin-top: 2px;
  opacity: 0.95;
}

.nav-badge {
  margin-left: 2px;
  background: var(--danger-color);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav-link--accent {
  color: var(--accent-color);
  font-weight: 700;
}

.nav-link--accent:hover {
  color: var(--accent-color);
  filter: brightness(1.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 196px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  margin-top: 6px;
  padding: 6px;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 9px 12px;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s ease;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  box-sizing: border-box;
}

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

.dropdown-item.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-color);
}

/* Right Section (Theme, User, Logout) */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle .theme-icon {
  display: block;
  flex-shrink: 0;
}

body.theme-dark .theme-toggle .theme-icon--moon {
  display: none;
}

body.theme-light .theme-toggle .theme-icon--sun {
  display: none;
}

.theme-toggle:hover {
  background: var(--surface2-color);
  color: var(--accent-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.18s ease;
}

.user-profile:hover {
  background: var(--surface2-color);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-color);
}

.user-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim-color);
}

.logout-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--danger-color);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logout-btn:hover {
  opacity: 0.9;
}

/* Mobile Menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--surface-color);
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 250;
  overflow-y: auto;
}

.mobile-overlay.open ~ .mobile-menu {
  transform: translateX(0);
}

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

.mobile-header__title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin: 0;
}

.close-menu {
  background: transparent;
  border: none;
  color: var(--text-dim-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  line-height: 0;
  transition: color 0.18s ease, background 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu:hover {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
}

.close-menu svg {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 12px 0;
}

.mobile-nav-list li {
  margin: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--surface2-color);
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
  .navbar {
    padding: 0 16px;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-right {
    gap: 12px;
  }

  .user-info {
    display: none;
  }

  .user-profile {
    padding: 6px 8px;
  }

  .logout-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .content {
    padding: 12px;
  }
}

@media (min-width: 1600px) {
  .main-content {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

@media (min-width: 1400px) {
  .main-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0 12px;
    gap: 8px;
  }

  .logo-text {
    font-size: 16px;
  }

  .navbar-right {
    gap: 8px;
  }

  .logout-btn {
    display: none;
  }

  .mobile-menu {
    width: 100%;
  }
}

/* ========== Página Atividades — cards por prioridade ========== */
.atividades-board {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}

.atividades-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.atividades-card:hover {
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
}

.theme-dark .atividades-card:hover {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
}

.atividades-card .atividades-card__header {
  border-bottom: none;
  padding: 14px 18px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.atividades-card .atividades-card__header .card-title {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.atividades-card--late .atividades-card__header {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 45%, #9f1239 100%);
}

.atividades-card--today .atividades-card__header {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #ea580c 100%);
}

.atividades-card--future .atividades-card__header {
  background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #047857 100%);
}

.atividades-card--done .atividades-card__header {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 50%, #475569 100%);
}

.atividades-card__body {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.atividades-board .atividades-card__body::-webkit-scrollbar {
  width: 7px;
}

.atividades-board .atividades-card__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
  border-radius: 999px;
}

.atividades-board .atividades-card__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.45), rgba(100, 116, 139, 0.55));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.atividades-board .atividades-card__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.65), rgba(100, 116, 139, 0.75));
  background-clip: padding-box;
}

.theme-light .atividades-board .atividades-card__body {
  scrollbar-color: rgba(100, 116, 139, 0.4) rgba(241, 245, 249, 0.6);
}

.theme-light .atividades-board .atividades-card__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(100, 116, 139, 0.5));
  background-clip: padding-box;
}

.theme-dark .atividades-board .atividades-card__body {
  scrollbar-color: rgba(148, 163, 184, 0.35) rgba(15, 23, 42, 0.35);
}

.theme-dark .atividades-board .atividades-card__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.28), rgba(100, 116, 139, 0.42));
  background-clip: padding-box;
}

.theme-light .atividades-card--late .atividades-card__body {
  background: linear-gradient(180deg, #fff1f2 0%, var(--surface-color) 50%);
}

.theme-light .atividades-card--today .atividades-card__body {
  background: linear-gradient(180deg, #fffbeb 0%, var(--surface-color) 50%);
}

.theme-light .atividades-card--future .atividades-card__body {
  background: linear-gradient(180deg, #ecfdf5 0%, var(--surface-color) 50%);
}

.theme-light .atividades-card--done .atividades-card__body {
  background: linear-gradient(180deg, #f1f5f9 0%, var(--surface-color) 50%);
}

.theme-dark .atividades-card--late .atividades-card__body {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.14) 0%, var(--surface-color) 42%);
}

.theme-dark .atividades-card--today .atividades-card__body {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, var(--surface-color) 42%);
}

.theme-dark .atividades-card--future .atividades-card__body {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, var(--surface-color) 42%);
}

.theme-dark .atividades-card--done .atividades-card__body {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.18) 0%, var(--surface-color) 42%);
}

.atividades-empty {
  text-align: center;
  color: var(--muted-color);
  padding: 28px 14px;
  font-size: 13px;
}

.atividades-item {
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

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

.atividades-item--muted {
  opacity: 0.9;
}

.atividades-item-cliente {
  word-break: break-word;
}

a.atividades-item-mainlink {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  max-width: 100%;
}

a.atividades-item-mainlink:hover strong {
  text-decoration: underline;
}

/* Ver oportunidade — aba Contatos (e-mail copiar / WhatsApp) */
.opp-contato-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.opp-contato-text {
  word-break: break-word;
  line-height: 1.4;
}

.opp-contato-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface2-color, var(--surface-color));
  color: var(--muted-color);
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.opp-contato-icon-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--surface-color);
}

.opp-contato-wa-btn {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.45);
}

.opp-contato-wa-btn:hover {
  color: #128c7e;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.theme-light .opp-contato-wa-btn:hover {
  background: rgba(37, 211, 102, 0.12);
}

.opp-contato-svg {
  display: block;
}

.opp-contato-copy-btn--done {
  border-color: var(--success-color, #22c55e) !important;
  color: var(--success-color, #22c55e) !important;
}


