body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f5f7; /* Fundo cinza bem claro idêntico à imagem */
}

/* =========================================
   SIDEBAR (Design Empresa)
   ========================================= */
.side-bar {
  width: 272px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 12, 230, 0.3) transparent;
}

.sidebar-top { display: flex; justify-content: flex-start; padding-left: 10px; margin-bottom: 40px; margin-top: 10px; }

.sidebar-menu { display: flex; flex-direction: column; flex: 1; gap: 8px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  text-decoration: none;
  color: #555555;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-item img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.menu-item.active img {
  opacity: 1;
  filter: brightness(0) invert(1); /* Deixa o ícone branco */
}

.menu-divider-empresa {
  height: 1px;
  background-color: transparent; /* No design da empresa não tem linha forte, apenas espaço */
  margin: 15px 0;
}

/* Rodapé do Menu da Empresa */
.sidebar-footer-empresa {
  margin-top: auto;
  background-color: #f6f0ff; /* Roxo ultra claro */
  border-radius: 8px;
  padding: 16px;
}

.footer-empresa-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.empresa-nome-rodape {
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.btn-encerrar-sessao {
  background: none;
  border: none;
  color: #790ce6;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

/* =========================================
   BARRA SUPERIOR E CONTEÚDO
   ========================================= */
.main-content {
  flex: 1;
  margin-left: 272px;
  display: flex;
  flex-direction: column;
}

/* Barra superior branca para a versão Empresa */
.top-bar-white {
  background-color: #ffffff;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pesquisa-wrapper { display: flex; align-items: center; background-color: #f5f5f5; border-radius: 35px; padding: 6px 10px 6px 20px; width: 100%; max-width: 500px; height: 48px; justify-content: space-between; }

.input-busca-real { border: none; background: transparent; font-size: 15px; color: #333; width: 100%; font-style: italic; }

.btn-filtrar { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: #790ce6; font-size: 15px; font-weight: 600; font-style: italic; cursor: pointer; padding: 5px 15px; border-left: 1px solid rgba(0, 0, 0, 0.1); }

/* =========================================
   DASHBOARD / PAINEL GOVERNANÇA
   ========================================= */
.dashboard-wrapper {
  padding: 40px;
  max-width: 1400px;
}

.dash-header { margin-bottom: 30px; }

.dash-title { font-size: 28px; font-weight: 800; color: #000; margin: 0 0 8px 0; }

.dash-subtitle { font-size: 16px; color: #666; margin: 0; }

/* ROW 1: Métricas (Cards pequenos no topo) */
.metrics-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  flex: 1;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-value { font-size: 32px; font-weight: 800; color: #000; margin: 0 0 5px 0; line-height: 1; }

.metric-label { font-size: 14px; color: #888; font-weight: 500; }

/* As barrinhas coloridas na lateral de cada card */
.line-yellow { border-left: 6px solid #eab308; }

.line-blue   { border-left: 6px solid #3b82f6; }

.line-green  { border-left: 6px solid #22c55e; }

.line-red    { border-left: 6px solid #ef4444; }

/* ROW 2: Grid Inferior */
.dash-grid {
  display: flex;
  gap: 25px;
}

.dash-col-left { flex: 1.8; }

.dash-col-right { flex: 1; display: flex; flex-direction: column; gap: 25px; }

/* Painéis Brancos Padrão */
.dash-panel {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.panel-header { margin-bottom: 25px; }

.panel-title { font-size: 18px; font-weight: 700; color: #000; margin: 0 0 4px 0; }

.panel-subtitle { font-size: 13px; color: #888; margin: 0; }

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.gap-small { gap: 10px; }

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child { border-bottom: none; padding-bottom: 0; }

.list-item-simple {
  padding: 15px 20px;
  border-radius: 8px;
}

.bg-light { background-color: #f9fafc; }

/* Fundo sutil pros itens de distribuição */

.item-texts { display: flex; flex-direction: column; gap: 4px; }

.item-title { font-size: 15px; font-weight: 700; color: #000; margin: 0; }

.item-desc { font-size: 13px; color: #666; margin: 0; }

/* Badges / Etiquetas de Status */
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-revisar { background-color: #fff8e1; color: #d97706; }

/* Amarelo */
.badge-validar { background-color: #dcfce7; color: #15803d; }

/* Verde */
.badge-ajuste  { background-color: #ffe4e6; color: #e11d48; }

/* Vermelho/Rosa */
.badge-pendente { background-color: #ffedd5; color: #b45309; display: inline-block; margin-bottom: 15px; }

.badge-pendente-wrapper { margin-top: -10px; }

.text-warning-desc { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 25px 0; }

/* Botões do Painel */
.panel-footer-btn { display: flex; justify-content: flex-end; margin-top: auto; }

.panel-footer-btn-center { display: flex; justify-content: center; margin-top: auto; }

.panel-footer-btn-left { display: flex; justify-content: flex-start; margin-top: auto; }

.btn-primary {
  background-color: #790ce6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover { background-color: #6109b8; }

.btn-light-purple {
  background-color: #f6f0ff;
  color: #790ce6;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  width: 100%; /* Estica para ocupar a base do card */
}

.btn-light-purple:hover { background-color: #ead9ff; }

@media (max-width: 1024px) {
  .config-empresa-wrapper {
    padding: 30px 20px;
  }

/* Empilha os painéis de configuração que estavam lado a lado */
  .config-grid {
    flex-direction: column;
  }

.top-bar-white {
    padding: 0 20px;
  }
}

/* Telas Pequenas (Celulares) - Abaixo de 768px */
@media (max-width: 768px) {
  /* Esconde o Sidebar */
  .side-bar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

/* Faz o conteúdo principal ocupar toda a tela */
  .main-content {
    margin-left: 0;
  }

/* Ajustes da barra de pesquisa e topo */
  .top-bar-white {
    padding: 0 15px;
    gap: 15px;
  }

.pesquisa-wrapper {
    padding: 6px 10px;
  }

.input-busca-real {
    font-size: 14px;
  }

.btn-filtrar span {
    display: none; /* Esconde a palavra "Filtrar" */
  }

/* Esconde os textos do perfil no topo para liberar espaço (deixa só o avatar) */
  .perfil-textos-top {
    display: none;
  }

/* Ajustes de tipografia do cabeçalho */
  .page-title {
    font-size: 24px;
  }

.page-subtitle {
    font-size: 14px;
  }

/* Reduz o padding interno dos cards */
  .card-painel {
    padding: 20px 15px;
  }

/* Reorganiza os itens com badge para não encavalar o texto com a etiqueta */
  .config-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

.badge {
    align-self: flex-start; /* Alinha a etiqueta à esquerda no celular */
  }

/* Empilha os botões no rodapé dos cards */
  .panel-footer-btn-row {
    flex-direction: column;
    gap: 10px;
  }

.btn-primary, .btn-light-purple {
    width: 100%;
    text-align: center;
  }
}