/* LeBrand — Estilos principais */
:root {
  --lb-primary:   #1a3a5c;
  --lb-accent:    #e8a020;
  --lb-light:     #f4f6fa;
  --lb-border:    #dee2e6;
}

body {
  background: var(--lb-light);
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #212529;
}

/* Navbar */
.lb-navbar {
  background: var(--lb-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.lb-navbar .navbar-brand { font-size: 1.3rem; letter-spacing: .5px; }
.lb-navbar .nav-link.active { color: var(--lb-accent) !important; font-weight: 600; }

/* Cards de estatísticas */
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* Tabelas */
.lb-table { background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.lb-table thead th {
  background: var(--lb-primary); color: #fff;
  font-weight: 500; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .5px; border: none; padding: 12px 16px;
}
.lb-table tbody tr:hover { background: #f0f4ff; }
.lb-table tbody td { padding: 12px 16px; vertical-align: middle; border-color: var(--lb-border); }

/* Badges de despacho */
.badge-despacho {
  font-size: .75rem; padding: 4px 10px; border-radius: 20px; font-weight: 500;
}

/* Página de login */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--lb-primary) 0%, #2d6a9f 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.login-card {
  width: 100%; max-width: 420px;
  border: none; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-card .login-header {
  background: var(--lb-primary);
  border-radius: 16px 16px 0 0;
  padding: 2rem; text-align: center; color: #fff;
}
.login-card .login-header h2 { font-weight: 700; font-size: 1.8rem; }
.login-card .login-header .subtitle { color: rgba(255,255,255,.7); font-size: .9rem; }

/* Breadcrumb */
.lb-breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; }
.lb-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }

/* Botões */
.btn-lb { background: var(--lb-primary); color: #fff; border: none; }
.btn-lb:hover { background: #14304d; color: #fff; }
.btn-lb-accent { background: var(--lb-accent); color: #fff; border: none; }
.btn-lb-accent:hover { background: #c98a18; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border: none; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

/* Detalhe de marca */
.marca-header {
  background: var(--lb-primary);
  border-radius: 12px;
  color: #fff; padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.marca-header .presentation-badge {
  background: rgba(255,255,255,.15);
  border-radius: 20px; padding: 4px 14px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: 1px;
}

/* NCL hover */
.ncl-item:hover { background: #eef2ff; }
.ncl-item:has(.ncl-check:checked) { background: #e8f0fe; }

/* ── Mobile (≤ 576px) ──────────────────────────────────────────── */
@media (max-width: 576px) {
  main.container-fluid { padding-left: .75rem !important; padding-right: .75rem !important; }

  .marca-header { padding: 1rem 1rem; }
  .marca-header h4 { font-size: 1.1rem; }
  .marca-header .fs-4 { font-size: 1.1rem !important; }

  .stat-card .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-card .fs-3 { font-size: 1.4rem !important; }

  /* Oculta colunas secundárias em tabelas no mobile */
  .lb-table .hide-mobile { display: none !important; }

  /* Botões de ação em coluna no mobile */
  .lb-header-actions { flex-direction: column !important; align-items: flex-start !important; gap: .5rem !important; }
  .lb-header-actions .btn { width: 100%; }

  /* Marca-header flex em coluna */
  .marca-header .d-flex.justify-content-between { flex-direction: column; gap: .75rem; }
  .marca-header .d-flex.justify-content-between .btn { align-self: flex-start; }

  /* NCL form — 1 coluna no mobile */
  #ncl-grid .col-md-6 { width: 100% !important; }
}

/* ── Tablet (577px – 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  .lb-table thead th { font-size: .75rem; padding: 8px 10px; }
  .lb-table tbody td { padding: 8px 10px; font-size: .85rem; }
}

/* ── Base padronizada ──────────────────────────────────────────────────────
   Antes cada tela escolhia seu raio (12px aqui, 16px ali) e sua sombra. Uma
   geometria só faz o conjunto parecer o mesmo produto. */
:root {
  --lb-raio: 12px;
  --lb-sombra: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
}

.lb-card {
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-raio);
  box-shadow: var(--lb-sombra);
}

/* Altura fixa: gráfico não pode crescer junto com a largura da coluna. */
.lb-chart { position: relative; height: 220px; }
.lb-chart canvas { max-height: 220px; }

.lb-vazio {
  height: 220px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #98a2b3; font-size: .82rem; padding: 0 1rem;
}

/* Rótulo em maiúsculas + valor destacado: a grade de dados do processo. */
.lb-dado { padding: .65rem .9rem; border-radius: 8px; background: #f8f9fb;
           border: 1px solid var(--lb-border); height: 100%; }
.lb-dado dt { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
              color: #667085; font-weight: 600; margin-bottom: .2rem; }
.lb-dado dd { font-size: .92rem; font-weight: 600; color: #101828; margin: 0;
              word-break: break-word; }
.lb-dado dd.vazio { color: #98a2b3; font-weight: 400; }

/* Logomarca: num sistema de marcas a imagem é o ativo, não um enfeite. */
.lb-logo {
  width: 44px; height: 44px; object-fit: contain; background: #fff;
  border: 1px solid var(--lb-border); border-radius: 8px; padding: 3px; flex-shrink: 0;
}
.lb-logo-g { width: 120px; height: 120px; object-fit: contain; background: #fff;
             border: 1px solid var(--lb-border); border-radius: var(--lb-raio); padding: 8px; }

/* Cor com significado: apresentação da marca, não paleta aleatória. */
.lb-tag-mista       { background: #e8f0fe; color: #1a3a5c; }
.lb-tag-nominativa  { background: #f3f4f6; color: #475467; }
.lb-tag-figurativa  { background: #fef3e2; color: #b54708; }
