
/* ===== ESTILOS GLOBAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --cor-primaria: #3498db;       /* Azul principal */
  --cor-secundaria: #2c3e50;     /* Azul escuro */
  --cor-texto: #333;             /* Preto suave */
  --cor-fundo: #f9f9f9;          /* Cinza claro */
  --cor-borda: #ddd;             /* Cinza para bordas */
  --cor-sucesso: #2ecc71;        /* Verde */
  --cor-erro: #e74c3c;           /* Vermelho */
}

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--cor-primaria);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-primario {
  background-color: var(--cor-primaria);
  color: white;
}

.btn-primario:hover {
  background-color: #2980b9;
}


#inputBuscaUsuario:focus {
    border-color: var(--cor-primaria);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.btn-icon i.fa-file-pdf:hover {
    color: #c0392b !important;
    transform: scale(1.2);
    transition: 0.2s;
}

/* ===== AJUSTES PARA MODAL DE RH (ABAS) ===== */

/* Container das Abas */
.tabs {
    display: flex;
    gap: 5px;
    background: #f1f4f9;
    padding: 10px 10px 0 10px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--cor-borda);
}

/* Estilo dos Botões das Abas */
.tablink-modal {
    padding: 10px 20px;
    border: none;
    background: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
}

.tablink-modal:hover {
    background: #e2e6ea;
}

.tablink-modal.active {
    background: white;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-borda);
    border-bottom: 2px solid white; /* Esconde a borda de baixo para parecer uma aba conectada */
    margin-bottom: -1px;
}

/* Esconder conteúdo das abas inativas */
.tab-pane {
    display: none; 
}

/* Mostrar apenas a aba ativa */
.tab-pane.active {
    display: block !important;
}

/* Grid de Formulário (Baseado no seu padrão de 2 colunas) */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px 0;
}

/* Estilização dos Grupos de Informação */
.info-group {
    margin-bottom: 15px;
}

.info-group h3 {
    font-size: 0.85rem;
    color: var(--cor-secundaria);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-group input, 
.info-group select {
    width: 100%;
    height: 42px; /* Altura padrão dos seus inputs */
    padding: 8px 12px;
    border: 1px solid var(--cor-borda);
    border-radius: 4px;
    background-color: white;
}

/* Destaque para o campo de Unidade de Destino na Transferência */
#groupDestino {
    grid-column: span 2;
    background: #fffcf0;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
}

/* Estilo para os Alertas de Transferência */
.alerta-transferencia {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.contador-bolinha {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Ajuste para garantir que o modal mostre os campos */
.tab-pane { display: none; }
.tab-pane.active { display: block !important; }




/* ===== LAYOUT DE LOGIN (AZUL À ESQUERDA) ===== */

.login-page {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: #ffffff; /* Fundo da área direita agora é branco */
}

.login-sidebar {
    width: 450px;
    background: var(--cor-secundaria); /* Azul escuro igual ao menu lateral */
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem;
    z-index: 10;
    justify-content: space-between;
    color: white; /* Texto geral na barra lateral agora é branco */
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.login-main-content {
    flex: 1;
    background-color: #ffffff;
    /* Aqui você pode colocar uma marca d'água ou imagem bem clara no futuro */
}

/* Ajustes nos textos do cabeçalho */
.login-header h1 {
    font-size: 1.8rem;
    color: #ffffff; /* Branco para destacar no azul */
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-header .subtitle {
    color: rgba(255, 255, 255, 0.8); /* Branco levemente transparente */
    text-align: center;
    font-size: 0.95rem;
}

/* Placeholder do Logo */
.logo-placeholder {
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.1); /* Fundo sutil */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--cor-primaria); /* Ícone no azul claro */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Ajustes no Formulário para fundo escuro */
.login-form label {
    color: white;
    font-weight: 500;
}

.login-form input {
    background: rgba(255, 255, 255, 0.05); /* Input levemente visível */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form input:focus {
    background: white;
    color: var(--cor-secundaria);
    outline: none;
}

/* Destaque Vigilância Socioassistencial */
.vigilancia-tag {
    text-align: center;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.2); /* Fundo escuro sutil */
    border-radius: 8px;
    border-left: 4px solid var(--cor-primaria); /* Detalhe em azul claro */
    margin-top: 2rem;
}

.vigilancia-tag p {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.vigilancia-tag strong {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== DASHBOARD (LAYOUT PRINCIPAL) ===== */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--cor-secundaria);
  color: white;
  padding: 1.5rem;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav a {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-content {
  flex: 1;
  padding: 2rem;
}


/* Estilo complementar para o detalhamento das metas */
    .metas-detalhe-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .widget-meta-pequeno {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 8px;
      border-left: 4px solid var(--cor-primaria);
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .widget-meta-pequeno h4 {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: #666;
      margin-bottom: 5px;
    }
    .widget-meta-pequeno p {
      font-size: 1.2rem;
      font-weight: bold;
      color: var(--cor-texto);
      margin: 0;
    }


/* ===== PÁGINA RELATÓRIOS ===== */

.report-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }
    .report-card {
      background: white;
      padding: 20px;
      border-radius: 8px;
      border: 1px solid var(--cor-borda);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .report-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .report-card i {
      font-size: 2rem;
      color: var(--cor-primaria);
      margin-bottom: 15px;
    }
    .report-card h3 {
      margin-bottom: 10px;
      color: var(--cor-secundaria);
    }
    .report-card p {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 20px;
    }
    .report-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    select, input[type="date"] {
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      width: 100%;
    }



/* ===== PÁGINA PERFIL DA UNIDADE ===== */
.unidade-perfil-topo {
  background: var(--cor-secundaria);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.unidade-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.unidade-titulo h2 {
  margin: 0;
  font-size: 1.8rem;
}

.unidade-titulo p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.membro-equipe {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.membro-equipe:last-child {
  border-bottom: none;
}

.membro-equipe strong {
  display: block;
  color: var(--cor-secundaria);
  font-size: 1rem;
}

.membro-equipe span {
  font-size: 0.85rem;
  color: #666;
}

.txt-vazio {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== PÁGINA DE ATENDIDOS ===== */
.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cor-borda);
}

th {
  background-color: var(--cor-primaria);
  color: white;
}

.btn-editar {
  background-color: #f39c12;
  color: white;
}

.btn-desligar {
  background-color: var(--cor-erro);
  color: white;
}

/* ===== PÁGINA DE GRUPOS ===== */
.grupos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.grupo-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/* ===== DASHBOARD - ESTILOS ESPECÍFICOS ===== */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cor-borda);
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.widget h3 {
  color: var(--cor-secundaria);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.widget p {
  font-size: 2rem;
  font-weight: bold;
  color: var(--cor-primaria);
}

.quick-actions {
  margin-top: 2rem;
}

.quick-actions h2 {
  color: var(--cor-secundaria);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.action-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.action-card:hover {
  transform: translateY(-5px);
}

.action-card i {
  font-size: 2rem;
  color: var(--cor-primaria);
  margin-bottom: 0.5rem;
}

.action-card span {
  display: block;
  font-weight: 500;
}

/* ===== TABELA DE INFORMES ULTRA COMPACTA (3 COLUNAS) ===== */
.informe-linha {
  display: grid;
  /* Data: 90px | Título: Flexível | Usuário: 180px */
  grid-template-columns: 90px 1fr 180px; 
  gap: 15px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--cor-borda);
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  font-size: 0.95rem;
}

.informe-linha:hover {
  background-color: #f9f9f9;
}

.header-informe {
  background: #f1f1f1;
  font-weight: bold;
  cursor: default !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-radius: 6px 6px 0 0;
}

.informe-data, .informe-titulo, .informe-usuario {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.informe-titulo {
  color: var(--cor-secundaria);
  font-weight: 600;
}

.informe-usuario {
  color: #666;
  font-size: 0.85rem;
  text-align: right; /* Alinha o nome do usuário à direita para equilibrar o layout */
}

/* ===== ESTILOS DA PÁGINA UNIDADE ===== */
.unidade-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 2rem;
}

.unidade-logo {
  margin-bottom: 1rem;
}

.unidade-descricao {
  color: #666;
  margin-top: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item h3 {
  color: var(--cor-secundaria);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orientadores-list {
  list-style: none;
}

.orientadores-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.orientadores-list li::before {
  content: "•";
  color: var(--cor-primaria);
  position: absolute;
  left: 0;
}

/* ===== ESTILOS DA PÁGINA DE GRUPOS ===== */
.grupos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grupo-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grupo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.grupo-header h3 {
  color: var(--cor-primaria);
  margin: 0;
}

.grupo-actions button {
  background: none;
  border: none;
  color: var(--cor-texto);
  margin-left: 0.5rem;
  font-size: 1rem;
}

.grupo-actions .btn-editar {
  color: var(--cor-primaria);
}

.grupo-actions .btn-excluir {
  color: var(--cor-erro);
}

.grupo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.grupo-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grupo-atendidos h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--cor-secundaria);
}

.grupo-atendidos ul {
  list-style: none;
  padding-left: 0;
}

.grupo-atendidos li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #eee;
}

/* ===== ESTILOS DA PÁGINA VIGILÂNCIA ===== */

/* Tags de Nível de Acesso */
.tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.tag-padrao { background: #e0e0e0; color: #666; }
.tag-gestao { background: #d1ecf1; color: #0c5460; }
.tag-vigilancia { background: #f8d7da; color: #721c24; }

/* Ajuste para botões de ícone na tabela */
.btn-icon {
  background: none;
  border: none;
  color: var(--cor-primaria);
  font-size: 1.1rem;
  margin: 0 5px;
  padding: 5px;
}

.btn-icon.btn-danger { color: var(--cor-erro); }

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Cores para os Tipos de Unidades */
.tag-publica { background: #d4edda; color: #155724; } /* Verde */
.tag-osc { background: #fff3cd; color: #856404; }     /* Amarelo/Laranja */

.status-ativo { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-desligado { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-afastado { background: #fff3cd; color: #f87c07; border: 1px solid #f0c49b; }
.status-excluido { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Ajuste no botão de editar para parecer um link/botão mais profissional */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cor-primaria);
    font-weight: 600;
    font-size: 0.9rem;
}



/* ======================================================
   MODAL – BASE
====================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* ======================================================
   MODAL – CONTEÚDO
====================================================== */

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Modal grande (usado no cadastro de atendidos) */
.modal-content.modal-lg {
  max-width: 900px;
}

.dias-atividade {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dia-item {
  display: grid;
  grid-template-columns: auto 160px 160px 120px 120px;
  align-items: center;
  gap: 0.5rem;
}

.dia-item label {
  font-weight: 500;
}

.tipo-atividade:disabled,
.horario-inicio:disabled,
.horario-fim:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}




/* ======================================================
   FECHAR MODAL
====================================================== */

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #000;
}

/* ======================================================
   ABAS (TABS)
====================================================== */

.tabs {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  border-bottom: 1px solid var(--cor-borda);
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cor-texto-secundario);
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--cor-primaria);
}

.tab-btn.active {
  color: var(--cor-primaria);
  border-bottom-color: var(--cor-primaria);
}

/* ======================================================
   CONTEÚDO DAS ABAS
====================================================== */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ======================================================
   CAMPOS DE FORMULÁRIO
====================================================== */

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
  font-size: 0.9rem;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--cor-primaria);
}

/* Campos somente leitura */
.input-group input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* ======================================================
   CHECKLIST / LISTAS INTERNAS (SE USAR)
====================================================== */

.atendidos-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
}

/* ======================================================
   AÇÕES DO MODAL
====================================================== */

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ======================================================
   RESPONSIVIDADE
====================================================== */

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}





/* Container de Login */
.login-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-container header {
  margin-bottom: 1.5rem;
}

.login-container h1 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.login-container p {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Formulário */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.input-group label {
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 600;
}

.input-group input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #3498db;
}

/* Botão */
.login-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: #2980b9;
}

/* Links */
.footer-links {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #2980b9;
}


/* ===== ESTILOS DA PÁGINA DE GRUPOS ===== */
.grupos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grupo-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grupo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.grupo-header h3 {
  color: var(--cor-primaria);
  margin: 0;
}

.grupo-actions button {
  background: none;
  border: none;
  color: var(--cor-texto);
  margin-left: 0.5rem;
  font-size: 1rem;
}

.grupo-actions .btn-editar {
  color: var(--cor-primaria);
}

.grupo-actions .btn-excluir {
  color: var(--cor-erro);
}

.grupo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.grupo-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grupo-atendidos h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--cor-secundaria);
}

.grupo-atendidos ul {
  list-style: none;
  padding-left: 0;
}

.grupo-atendidos li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #eee;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.atendidos-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
}

/* ===== ESTILOS DA PÁGINA DE ATENDIDOS ===== */
.search-bar {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--cor-borda);
  border-radius: 4px;
}

.search-bar button {
  padding: 0 1.2rem;
  background-color: var(--cor-primaria);
  color: white;
  border: none;
  border-radius: 4px;
}

.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.ativo {
  background-color: #e1f5ea;
  color: var(--cor-sucesso);
}

.status-badge.inativo {
  background-color: #fff3e0;
  color: #ff9800;
}

.status-badge.desligado {
  background-color: #ffebee;
  color: var(--cor-erro);
}

.btn-desligar {
  background-color: #ffebee;
  color: var(--cor-erro);
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-cancelar {
  background-color: #f5f5f5;
  color: var(--cor-texto);
}

/* ===== AGENDA + INFORMES ===== */
.agenda-informes {
  display: grid;
  grid-template-columns: 2fr 1fr; /* agenda maior, informes menor */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Agenda */
.agenda-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.agenda-box iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== INFORMES (LISTA) ===== */
.informes-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.informe-linha {
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--cor-borda);
  cursor: pointer;
  transition: background-color 0.2s;
  align-items: center;
}

.informe-linha:last-child {
  border-bottom: none;
}

.informe-linha:hover {
  background-color: #f5f7fa;
}

.informe-data {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.informe-titulo {
  font-weight: 600;
  color: var(--cor-secundaria);
}

.informe-resumo {
  font-size: 0.9rem;
  color: #555;
}


/* ===== PÁGINA DE PRESENÇA ===== */

/* Área de conteúdo */
.content-body {
  padding: 20px;
}

/* Seletores */
.grupo-select,
.mes-select {
  margin-bottom: 10px;
}

/* Contador de atividades */
#contador-atividades {
  margin-bottom: 15px;
  font-weight: bold;
}

/* Tabela de presenças */
table.presencas {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
}

table.presencas th,
table.presencas td {
  border: 1px solid var(--cor-borda);
  padding: 8px;
  text-align: center;
}

table.presencas th {
  background-color: #e0e0e0;
  color: #333;
  cursor: pointer;
  font-weight: 600;
}

/* Células bloqueadas */
table.presencas td.presenca-bloqueada {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

/* Estilização dos Menus Dropdown */
.menu-dropdown {
    list-style: none;
    margin: 2px 0;
}

.dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 20px;
    color: #bdc3c7;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.dropdown-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-btn i:first-child {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
    list-style: none;
}

.dropdown-container li a {
    padding: 10px 20px 10px 45px !important; /* Recuo para os sub-itens */
    font-size: 0.8rem !important;
    color: #95a5a6 !important;
    display: block;
    border: none !important;
}

.dropdown-container li a:hover {
    color: #3498db !important;
    background: rgba(255, 255, 255, 0.02);
}

/* Seta de indicação */
.arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.dropdown-btn.active .arrow {
    transform: rotate(180deg);
}

.menu-divider-static {
    padding: 15px 20px 5px 20px;
    color: #666;
    font-size: 0.7rem;
    font-weight: bold;
}

.menu-logout a {
    padding: 12px 20px;
    display: block;
    font-weight: 600;
}


.badge-agendado {
    background-color: #ffc107; /* Amarelo/Dourado */
    color: #856404;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
}

