/* ============================= */
/* COMPONENTES GLOBAIS NEPAM */
/* BOTÕES DE AÇÃO */
/* ============================= */

.btn-acao-nepam {
  width: 38px;
  height: 38px;

  border-radius: 50%;
  border: none;

  background: #c8c8c8;
  color: #111111;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-acao-nepam i {
  font-size: 0.95rem;
  line-height: 1;
}

.btn-acao-nepam:hover {
  transform: translateY(-1px);
  background: #1c6c34;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn-acao-nepam:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(28, 108, 52, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.acoes-lista-nepam {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.acoes-lista-nepam form {
  display: inline-flex;
  margin: 0;
}

/* ============================= */
/* COMPONENTES GLOBAIS NEPAM */
/* BOTÃO VOLTAR FLUTUANTE */
/* ============================= */

.btn-voltar-flutuante {
  position: fixed;

  top: 72px;
  right: 16px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(44, 138, 62, 0.16);

  color: rgba(18, 18, 18, 0.82);

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08);

  z-index: 950;

  transition:
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-voltar-flutuante i {
  font-size: 0.82rem;
}

.btn-voltar-flutuante:hover {
  transform: translateY(-1px);

  background: rgba(44, 138, 62, 0.26);

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* BOTÕES PRINCIPAIS NEPAM */
/* ============================= */

.btn-nepam {
  height: 42px;

  padding: 0 20px;

  border: none;
  border-radius: 14px;

  background: #d6d6d6;
  color: #1f2937;

  font-size: 0.94rem;
  font-weight: 500;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.btn-nepam:hover {
  transform: translateY(-1px);

  background: #c8c8c8;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-nepam-danger {
  width: 100%;
  min-height: 40px;

  border-radius: 20px;

  background: #c92a2a;
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 6px 14px rgba(201, 42, 42, 0.18);
}

.btn-nepam-danger:hover {
  background: #a61e1e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(201, 42, 42, 0.24);
}


/* ============================= */
/* TOASTS GLOBAIS NEPAM */
/* ============================= */

.toast-container-nepam {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  right: 16px;
  z-index: 11000;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nepam-toast {
  min-width: 320px;
  max-width: 460px;

  padding: 16px 18px;

  border-radius: 12px;
  border-left: 5px solid transparent;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);

  animation: nepamToastIn 0.18s ease forwards;
}

.nepam-toast i {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-top: 1px;
}

.nepam-toast-content {
  flex: 1;
  min-width: 0;
}

.nepam-toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.nepam-toast-msg {
  margin-top: 2px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.nepam-toast-close {
  cursor: pointer;
  opacity: 0.65;
}

.nepam-toast-close:hover {
  opacity: 1;
}

.nepam-toast-success {
  background: #eaf7e5;
  border-left-color: #2b8a3e;
  color: #245b17;
}

.nepam-toast-error {
  background: #fdeaea;
  border-left-color: #c92a2a;
  color: #9b1c1c;
}

.nepam-toast-warning {
  background: #fff3dd;
  border-left-color: #9c5300;
  color: #7a3d00;
}

.nepam-toast-info {
  background: #e8f3ff;
  border-left-color: #1c6fb8;
  color: #0f4c81;
}

@keyframes nepamToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* ALERTAS EM MODAIS NEPAM */
/* ============================= */

.nepam-modal-alert {
  padding: 12px 14px;
  margin-bottom: 14px;

  border-radius: 10px;
  border-left: 5px solid transparent;

  font-size: 0.9rem;
  line-height: 1.3;

  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nepam-modal-alert i {
  font-size: 1rem;
  margin-top: 1px;
}

.nepam-modal-alert-success {
  background: #eaf7e5;
  border-left-color: #2b8a3e;
  color: #245b17;
}

.nepam-modal-alert-warning {
  background: #fff3dd;
  border-left-color: #9c5300;
  color: #7a3d00;
}

.nepam-modal-alert-error {
  background: #fdeaea;
  border-left-color: #c92a2a;
  color: #9b1c1c;
}

.nepam-modal-alert-info {
  background: #e8f3ff;
  border-left-color: #1c6fb8;
  color: #0f4c81;
}


/* ============================= */
/* FILTRO ANO */
/* ============================= */

.filtro-ano-nepam {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.filtro-ano-nepam .filtro-ano-link:first-child {
  margin-left: -10px;
}

.filtro-ano-link {
  height: 38px;

  padding: 0 14px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.55);

  color: #4b5563;

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  backdrop-filter: blur(8px);

  transition:
    background 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}

.filtro-ano-link:hover {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.82);

  color: #111827;
}

.filtro-ano-atual {
  font-size: 1.25rem;
  font-weight: 700;

  color: #111827;

  min-width: 72px;

  text-align: center;
}



/* =========================================================
   COMPONENTE GLOBAL - CARD COM HOVER NEPAM
   Usado em:
   - Home / Módulos
   - Contatos / Cards de pessoas
========================================================= */
:root {
  --nepam-green: #1f7a3a;
  --nepam-green-soft: rgba(31, 122, 58, .14);
  --nepam-green-shadow: rgba(31, 122, 58, .22);
}

.nepam-hover-card,
.contato-card {
  position: relative;
  overflow: hidden;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background-color .12s ease;
}

.nepam-hover-card::before,
.contato-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nepam-green-soft), transparent 55%);
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
}

.nepam-hover-card:hover,
.contato-card:hover {
  transform: translateY(-2px);
  border-color: var(--nepam-green);
  box-shadow:
    0 .5rem 1.2rem rgba(0, 0, 0, .08),
    .35rem .45rem 0 var(--nepam-green-soft);
}

.nepam-hover-card:hover::before,
.contato-card:hover::before {
  opacity: 1;
}

/* ------ Cards de módulos (home.php) ------ */
.module-card {
  height: 190px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
}

.module-card .card-body {
  height: 100%;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
}

.module-card .card-body>.d-flex {
  width: 100%;
}

.module-card .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}

.module-card .module-card-content {
  width: 100%;
  min-width: 0;
}

.module-card.module-disabled .module-card-content {
  width: 100%;
}

.module-card:not(.module-disabled):hover .module-icon,
.module-card:not(.module-disabled):hover .h5 {
  color: var(--nepam-green) !important;
}

.module-icon {
  font-size: 1.95rem;
  line-height: 1;
  opacity: .9;
  color: rgba(0, 0, 0, .55);
  transition: color .12s ease;
}

.module-icon i {
  display: inline-flex;
  line-height: 1;
}

.module-card .h5 {
  font-size: 1.2rem;
  transition: color .12s ease;
  margin-bottom: .35rem;
}

.module-card .text-muted.small {
  font-size: .92rem;
  line-height: 1.25rem;
}

.module-disabled {
  opacity: .65;
  cursor: default;
}

.module-disabled:hover {
  transform: none;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: none !important;
}

.module-disabled:hover::before {
  opacity: 0;
}

.module-disabled:hover .module-icon,
.module-disabled:hover .h5 {
  color: rgba(0, 0, 0, .55) !important;
}

@media (max-width: 576px) {
  .module-card {
    height: auto;
    min-height: 170px;
  }

  .module-card .module-card-content {
    max-width: 100%;
  }
}


/* =========================================================
   LAYOUT TOP (layout_top.php)
========================================================= */

:root {
  --nepam-green: #1C6C34;
}

.nepam-navbar {
  background: var(--nepam-green);
}

.nepam-navbar .navbar-brand {
  font-weight: 600;
}

.nepam-breadcrumb {
  background: rgba(0, 0, 0, .03);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: .5rem 0;
}

.nepam-breadcrumb .breadcrumb a {
  text-decoration: none;
}

.nepam-breadcrumb .breadcrumb a:hover {
  text-decoration: underline;
}

.top-logout {
  margin-left: 6px;
  opacity: 0.85;
}

.top-logout:hover {
  opacity: 1;
}

/* =========================
   TOPBAR - AÇÕES GLOBAIS
   Notificações / Resumo do Dia
========================= */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* botão circular */

.topbar-icon-btn {
  position: relative;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.16);

  transition:
    background .15s ease,
    transform .15s ease;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.topbar-icon-btn i {
  font-size: 1rem;
}

/* calendário */

.topbar-icon-calendar i {
  color: #74c0fc;
}

/* notificações */

.topbar-icon-notification i {
  color: #ffd43b;
}

/* contador */

.topbar-badge {
  position: absolute;

  top: -4px;
  right: -4px;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  border-radius: 999px;

  background: #dc3545;
  color: #fff;

  font-size: 11px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #1C6C34;
}

/* =========================
   DROPDOWN - NOTIFICAÇÕES
========================= */

.notificacoes-dropdown {
  width: 340px;

  padding: 0;

  border: none;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

/* cabeçalho */

.notificacoes-header {
  padding: 14px 16px;

  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;

  font-weight: 700;
  font-size: 0.95rem;
}

/* lista */

.notificacoes-lista {
  max-height: 360px;
  overflow-y: auto;
}

/* item */

.notificacao-item {
  display: block;

  padding: 12px 16px;

  text-decoration: none;
  color: inherit;

  border-bottom: 1px solid #f1f3f5;

  transition: background .15s ease;
}

.notificacao-item:hover {
  background: #f8f9fa;
}

/* título */

.notificacao-titulo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212529;
}

/* texto */

.notificacao-texto {
  font-size: 0.82rem;
  color: #6c757d;

  margin-top: 2px;
}

/* data */

.notificacao-data {
  font-size: 0.72rem;
  color: #adb5bd;

  margin-top: 4px;
}

/* footer */

.notificacoes-footer {
  padding: 10px 14px;

  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.notificacoes-footer a {
  font-size: 0.85rem;
  font-weight: 600;

  text-decoration: none;
}

/* =========================
   DROPDOWN - RESUMO DO DIA
========================= */

.resumo-dia-dropdown {
  width: 340px;

  padding: 0;

  border: none;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.resumo-dia-header {
  padding: 14px 16px;

  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;

  font-weight: 700;
  font-size: 0.95rem;
}

.resumo-dia-body {
  padding: 14px 16px;
}

.resumo-dia-data {
  font-size: 20px;
  font-weight: 700;
  color: #1C6C34;

  margin-bottom: 14px;
}

.resumo-dia-section {
  margin-bottom: 14px;
}

.resumo-dia-section:last-child {
  margin-bottom: 0;
}

.resumo-dia-section-title {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 6px;

  font-size: 0.8rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.resumo-dia-section-title i {
  color: #1C6C34;
}

.resumo-dia-item {
  padding: 8px 10px;

  background: #f8f9fa;
  border: 1px solid #edf0f2;
  border-radius: 8px;

  font-size: 0.86rem;
  color: #343a40;

  margin-bottom: 6px;
}

.resumo-dia-footer {
  padding: 10px 14px;

  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.resumo-dia-footer a {
  font-size: 0.85rem;
  font-weight: 600;

  text-decoration: none;
}

/* =========================================================
   Classes persolizadas para cor de alertas das linhs do Módulo Ativos
========================================================= */

/* Estado visual - vencido */
.estado-vencido {
  border-left: 5px solid #dc3545;
}

/* Estado visual - próximo do vencimento */
.estado-proximo {
  border-left: 5px solid #ffc107;
}

/* =========================================================
   Padronizar altura e container <th> dos buttons do (list.view de Ativos)
========================================================= */


.btn-acao {
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* remove influência do line-height padrão */
  padding-top: 0;
  padding-bottom: 0;
}

.btn-acao i {
  font-size: 14px;
  line-height: 1;
}

.action-container {
  min-width: 250px;
  justify-content: flex-end;
}


/* =========================================================
   LAYOUT GLOBAL - FASE 1
========================================================= */

/* altura fixa da navbar */
:root {
  --navbar-height: 56px;
}

/* estrutura principal */
html,
body {
  height: 100%;
}

/* body NÃO rola nas páginas internas */
body:not(.login-page) {
  overflow: hidden;
}

/* navbar fixa */
.nepam-navbar {
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* estrutura abaixo da navbar */
.app-layout {
  height: calc(100vh - var(--navbar-height));
  display: flex;
  overflow: hidden;
}

/* sidebar fixa */
.sidebar {
  width: 260px;
  min-width: 260px;

  background: #1f3d2b;
  color: #fff;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-right: 1px solid rgba(255, 255, 255, 0.05);

  transition: width 0.22s ease, min-width 0.22s ease;

}

/* =========================
   SIDEBAR COLLAPSED
========================= */

.sidebar-collapsed {
  width: 78px;
  min-width: 78px;
}

html.sidebar-state-collapsed .sidebar {
  width: 78px;
  min-width: 78px;
  transition: none;
}

html.sidebar-state-collapsed .sidebar .sidebar-link span,
html.sidebar-state-collapsed .sidebar .sidebar-link .bi-chevron-down,
html.sidebar-state-collapsed .sidebar .alerta-alterar-senha {
  display: none;
}

/* =========================
   SIDEBAR COLLAPSED - VISUAL
========================= */

/* usuário */
.sidebar-collapsed .sidebar-user {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* avatar menor */
.sidebar-collapsed .sidebar-avatar {
  width: 46px;
  height: 46px;
}

/* mantém nome e matrícula, mas mais compactos */
.sidebar-collapsed .sidebar-user .fw-semibold {
  font-size: 0.78rem;
  margin-top: 4px;
}

.sidebar-collapsed .sidebar-user .small {
  font-size: 0.68rem;
}

/* esconde apenas o alerta de senha no modo compacto */
.sidebar-collapsed .alerta-alterar-senha {
  display: none;
}

/* links no modo compacto */
.sidebar-collapsed .sidebar-link {
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 42px;

  padding-left: 0;
  padding-right: 0;

  gap: 0;
}

/* esconde texto */
.sidebar-collapsed .sidebar-link span {
  display: none;
}

/* esconde seta */
.sidebar-collapsed .sidebar-link .bi-chevron-down {
  display: none;
}

/* tamanho padrão dos ícones da sidebar */
.icone-sidebar {
  font-size: 24px;
}

/* ajustes do modo recolhido sidebar */
.sidebar-collapsed .sidebar-link i,
.sidebar-collapsed .sidebar-link > i:first-child {
  margin: 0;
}

/* submenu escondido */
.sidebar-collapsed .sidebar-group>.collapse {
  display: none !important;
}

/* flyout dos submenus no modo compacto */
.sidebar-flyout {
  position: fixed;
  z-index: 2000;

  min-width: 190px;

  padding: 8px;

  background: #1f3d2b;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);

  display: none;
}

.sidebar-flyout.show {
  display: block;
}

.sidebar-flyout .sidebar-sublink {
  padding: 8px 12px;
  margin: 2px 0;

  border-radius: 7px;

  color: #ffffffcc;
  font-size: 0.86rem;
}

.sidebar-flyout .sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* botão sair compacto */

.sidebar-collapsed .btn-nepam-danger {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sidebar-collapsed .btn-nepam-danger span {
  display: none !important;
}

.sidebar-collapsed .btn-nepam-danger i {
  margin: 0;
}

.sidebar-collapsed .btn-nepam-danger i {
  margin: 0;
  font-size: 1rem;
}



/* menu rolável */
.sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  padding-bottom: 18px;
}

/* footer fixo */
.sidebar-footer {
  flex-shrink: 0;
}

/* conteúdo central rolável */
.app-content {
  flex: 1;

  overflow-y: auto;
  overflow-x: hidden;

  background: #f8f9fa;
}

/* =========================
   SCROLLBAR DA SIDEBAR
========================= */

.sidebar-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.32);
}

/* HEADER */
.sidebar-header {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* USER */
.sidebar-user {
  font-size: 0.9rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.sidebar-user .small {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.75;
}

.sidebar-user .fw-semibold {
  margin-top: 4px;
}

.sidebar-user .sidebar-avatar {
  margin-bottom: 6px;
}

.sidebar-avatar {
  width: 80px;
  height: 80px;

  padding: 2px;

  border-radius: 50%;
  border: 3px solid #22c55e;

  background: #ffffff;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sidebar-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}



/* DIVIDER */
.sidebar-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* LINKS */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #ffffffcc;
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-link>i:first-child {
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  justify-content: center;
}

.sidebar-link .sidebar-chevron {
  margin-left: auto;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-sublink {
  display: block;
  padding: 6px 30px;
  font-size: 0.85rem;
  color: #ffffffaa;
  text-decoration: none;
}

.sidebar-sublink:hover {
  color: #fff;
}

/* FOOTER */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-divider {
  border: none;
  /* remove border padrão do hr */
  height: 2px;
  /* controla a espessura */
  margin: 1rem 0;
  /* respiro vertical */
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.18),
      transparent);
}


/* submenu (itens dentro do expandido) */
.sidebar-group>.collapse {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  margin: 4px 6px 8px 6px;
  padding: 6px 0;
}

.sidebar-group>.collapse .sidebar-sublink {
  padding: 7px 14px 7px 34px;
  border-radius: 6px;
  margin: 1px 6px;
}

.sidebar-group>.collapse .sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.sidebar-group>.collapse {
  transition: all 0.2s ease;
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sair {
  opacity: 0.85;
}


/* Alerta de TROCA DE SENHA (_partials/sidebar) */

.alerta-alterar-senha {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;

  background: #fff4e6;
  border: 1px solid #ffd8a8;
}

.alerta-alterar-senha small {
  display: block;
  margin-bottom: 8px;

  color: #9c4f00;
  font-size: 0.78rem;
  line-height: 1.3;
}

.btn-alterar-senha {
  width: 100%;

  border: 0;
  border-radius: 6px;

  padding: 8px 10px;

  background: #ffe8cc;
  color: #9c4f00;

  font-size: 0.82rem;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.btn-alterar-senha:hover {
  background: #ffd8a8;
}

/* MODAL ALTERAR SENHA */

.modal-title {
  color: #212529 !important;
}

.modal .form-label {
  color: #212529 !important;
  font-weight: 600;
}

/* =========================
   CSS AVATAR - Módulo Afastamentos (Serividores)
========================= */



.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  font-weight: 600;
  font-size: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}



/* =========================
   PAINEL DE AFASTAMENTOS
========================= */

.afastamento-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  transition: background .15s ease;
}

.afastamento-item:hover {
  background: #fafafa;
}

.afastamento-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.afastamento-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.afastamento-linha-topo {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.afastamento-info {
  display: flex;
  flex-direction: column;
}

.afastamento-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.afastamento-nome {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.afastamento-cargo {
  font-size: 0.85rem;
  font-style: italic;
  color: #6c757d;
  margin-top: 2px;
}

.afastamento-status {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Avatar */

.afastamento-avatar-wrapper {
  padding: 2px;
  border-radius: 50%;
  border: 3px solid transparent;
  flex-shrink: 0;
}

.afastamento-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.afastamento-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #6b7280;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.afastamento-extra {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.afastamento-extra i {
  color: #0d6efd;
}

.afastamento-alerta {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* responsivo */

@media (max-width: 900px) {
  .afastamento-item {
    align-items: flex-start;
  }

  .afastamento-status {
    margin-top: 4px;
  }
}

/* cards */

.card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #f8f9fa;
}

.card-header {
  background: #f1f3f5;
  font-weight: 600;
}


/* férias chegando */
.alerta-ferias {
  margin-top: 4px;
  font-size: 13px;
  background: #fef3c7;
  color: #b45309;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  font-weight: 600;
}

/* retorno */
.alerta-retorno {
  margin-top: 4px;
  font-size: 13px;
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  font-weight: 600;
}

.alerta-licenca {
  margin-top: 4px;
  font-size: 13px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  font-weight: 600;
}

/* Status atuais */

.status-disponivel {
  border-color: #22c55e;
}

.status-ferias {
  border-color: #2563eb;
}

.status-licenca-premio {
  border-color: #daa520;
}

.status-afastamento {
  border-color: #6c757d;
}

.afastamento-status.status-disponivel {
  color: #16a34a;
}

.afastamento-status.status-ferias {
  color: #2563eb;
}

.afastamento-status.status-licenca-premio {
  color: #daa520;
}

.afastamento-status.status-afastamento {
  color: #495057;
}

/* Chips */

.afastamento-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.afastamento-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.afastamento-chip:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.chip-ferias {
  background: #2563eb;
}

.chip-licenca-premio {
  background: #daa520;
  color: #fff;
}

.chip-afastamento {
  background: #5c6670;
  color: #fff;
  font-weight: 500;
}

/* =========================
   MODAL CALENDÁRIO AFASTAMENTOS
========================= */

.modal-calendario {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-calendario .modal-conteudo {
  background: #fff;
  border-radius: 16px;
  width: 820px;
  max-width: 95vw;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  padding: 0;
}

.modal-calendario .modal-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef1f5;
  border-bottom: 1px solid #dde2e7;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.1rem;
}

.modal-calendario .modal-fechar-btn {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #495057;
  line-height: 1;
}

.modal-calendario .modal-fechar-btn:hover {
  color: #212529;
}

/* =========================
   MODAL CALENDÁRIO AFASTAMENTOS - AJUSTES DO COMPONENTE
========================= */

#container-calendarios-afastamento {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 20px 22px 22px;
}

#container-calendarios-afastamento>.col-md-3 {
  width: 350px;
  max-width: 350px;
  flex: 0 0 350px;
}

#container-calendarios-afastamento .calendario-card {
  width: 100%;
}

#container-calendarios-afastamento .dia {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

/* =========================
   LEGENDA DOS AFASTAMENTOS
========================= */

.afastamento-legenda {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.legenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


.legenda-item.disponivel .legenda-dot {
  background: #22c55e;
}

.legenda-item.ferias .legenda-dot {
  background: #0d6efd;
}

.legenda-item.licenca-premio .legenda-dot {
  background: #daa520;
}

.legenda-item.afastamento .legenda-dot {
  background: #495057;
}

.legenda-item.feriado .legenda-dot {
  background: #dc3545;
}

.legenda-item.ponto-facultativo .legenda-dot {
  background: #d95c66;
}

.legenda-item.evento .legenda-dot {
  background: #693dbd;
}

.legenda-item.lembrete .legenda-dot {
  background: #fd7e14;
}


/* =========================
   DESTAQUE DO CARD PARA AFASTAMENTOS
========================= */

.afastamento-item.status-ferias {
  background: #eff6ff;
}

.afastamento-item.status-licenca-premio {
  background: #fff8e1;
  border-bottom: 2px solid #daa520;
}

.afastamento-item.status-afastamento {
  background: #f1f3f5;
}

/* =========================
   FILTROS AFASTAMENTOS
========================= */

/* Barra superior do painel */

.afastamento-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}


/* filtros */

.afastamento-filtros {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filtro-grupo {
  min-width: 180px;
}

.filtro-acoes {
  display: flex;
  align-items: flex-end;
}

/* =========================
   TELA LIST VIEW AFASTAMENTOS
========================= */

/* linha enquanto arrasta */
.sortable-ghost {
  opacity: 0.3;
}

/* item selecionado */
.sortable-chosen {
  background: #f8f9fa;
}

/* item sendo arrastado */
.sortable-drag {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* linha indicadora */
.sortable-ghost td {
  border-top: 3px solid #0d6efd !important;
}


/* =========================
   LAYOUT DE PASTAS / DOCUMENTOS (PADRÃO GLOBAL)
========================= */

/* Cabeçalho da pasta (ex: RH, TI, etc) */
.setor-header {
  cursor: pointer;
}

.setor-header:hover {
  color: #0d6efd;
}

/* Container interno das pastas */
.setor-documentos {
  display: none;
  padding-left: 28px;
}

.setor.ativo .setor-documentos {
  display: block;
}

/* Lista com estrutura visual tipo árvore */
.setor-documentos ul {
  border-left: 2px solid #e4e4e4;
  margin-left: 12px;
}

.setor-documentos li {
  position: relative;
}

.setor-documentos li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 14px;
  width: 12px;
  height: 2px;
  background: #e4e4e4;
}

/* Link de arquivo */
.pop-link {
  color: inherit;
}

.pop-link:hover {
  text-decoration: underline;
}

/* =========================
   ITEM DE PASTA (REUTILIZÁVEL)
========================= */

.pasta-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 8px;

  color: #111827;
  text-decoration: none;
  font-weight: 600;

  transition: background .15s ease, color .15s ease;
}

.pasta-item:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

.pasta-icon {
  font-size: 22px;
  color: #f2b544;
}

/* =========================
   CALENDÁRIO (AGENDA)
========================= */

/* Icones de lembrete e eventos */
.icone-evento,
.icone-lembrete {
  width: 13px;
  height: 13px;
}

/* Icones de lembrete e eventos da Legenda */
.icone-evento-legenda,
.icone-lembrete-legenda {
  width: 16px;
  height: 16px;
}

.calendario-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.calendario-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* HEADER */

.calendario-header {
  background: #f1f3f5;
  color: #2f3e46;
  font-weight: 600;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.calendario-header .mes {
  font-size: 13px;
  letter-spacing: 0.4px;
}

.calendario-header .ano {
  font-size: 12px;
  opacity: 0.65;
}

/* BODY */

.calendario-body {
  padding: 9px;
}

/* GRID */

.calendario-semana,
.calendario-dias {
  display: grid;
  grid-template-columns: repeat(7, 32px);
  justify-content: center;
  text-align: center;
  column-gap: 5px;
  row-gap: 6px;
}

/* DIAS DA SEMANA */

.dia-semana {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 0 5px;
  color: #6c757d;
}

.dia-semana.domingo {
  color: #c92a2a;
}

/* DIAS */

.dia {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: #343a40;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  cursor: default;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.dia-numero {
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* DIA VAZIO */

.dia.vazio {
  visibility: hidden;
}

/* DIA CLICÁVEL */

.dia-clicavel,
.dia.tem-evento,
.dia.tem-lembrete {
  cursor: pointer;
}

/* DOMINGOS */

.dia.domingo {
  color: #c92a2a;
}

/* DIA ATUAL */

.dia.hoje {
  background: #b7e4c7;
  border-color: transparent;
  color: #1b5e20 !important;
  font-weight: 700;
}

/* FERIADO E PONTO FACULTATIVO
   Sem borda fixa.
   Apenas número vermelho.
*/

.dia-feriado,
.dia-ponto {
  color: #c92a2a;
  font-weight: 600;
}

/* AFASTAMENTOS
   Somente estes ficam com círculo/borda fixa.
*/

.dia-ferias {
  color: #1c7ed6;
  border-color: rgba(77, 171, 247, 0.65);
  border-width: 0.05px;
  font-weight: 600;
}

.dia-licenca-premio {
  color: #d18b00;
  border-color: rgba(250, 176, 5, 0.65);
  border-width: 0.05px;
  font-weight: 600;
}

.dia-afastamento {
  color: #495057;
  border-color: rgba(134, 142, 150, 0.65);
  border-width: 0.05px;
  font-weight: 600;
}

/* HOVER PADRÃO */

.dia:not(.vazio):not(.hoje):hover {
  transform: translateY(-1px);
}

/* Hover dia normal */

.dia:not(.vazio):not(.hoje):not(.dia-feriado):not(.dia-ponto):not(.dia-ferias):not(.dia-licenca-premio):not(.dia-afastamento):hover {
  background: #edf7f1;
  color: #1f7a3a;
}

/* Hover feriado/ponto
   Preenche suavemente, mas sem borda fixa.
*/

.dia-feriado:not(.hoje):hover {
  background: #ffe3e3;
  border-color: transparent;
  color: #c92a2a;
}

.dia-ponto:not(.hoje):hover {
  background: #ffe3e3;
  border-color: transparent;
  color: #c92a2a;
}

/* Hover afastamentos
   Mantém a lógica do círculo, preenchendo no hover.
*/

.dia-ferias:not(.hoje):hover {
  background: #e7f0ff;
  border-color: #4dabf7;
  color: #1c7ed6;
}

.dia-licenca-premio:not(.hoje):hover {
  background: #fff3bf;
  border-color: #fab005;
  color: #d18b00;
}

.dia-afastamento:not(.hoje):hover {
  background: #e9ecef;
  border-color: #868e96;
  color: #343a40;
}

/* =========================
   INDICADORES EVENTO / LEMBRETE
========================= */

.indicadores-dia {
  position: absolute;

  top: -1px;
  right: -4.5px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0;

  z-index: 3;
}


/* =========================
   TOOLTIP AGENDA
========================= */

.tooltip {
  z-index: 11000 !important;
}

.tooltip-inner {
  background-color: #2f3437;
  color: #f1f3f5;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
  max-width: 240px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #2f3437;
}

.tooltip .tooltip-arrow::before {
  border-width: 6px;
}

.tooltip-linha {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-feriado {
  color: #ff8787;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-ponto {
  color: #ff8787;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-evento {
  color: #2b8a3e;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-lembrete {
  color: #ffd43b;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-ferias {
  color: #74c0fc;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-ferias i {
  font-size: 18px;
}

.tooltip-licenca-premio {
  color: #ffd43b;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-afastamento {
  color: #dee2e6;
  font-weight: 600;
  font-size: 15px;
}

.tooltip-dica {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

/* =========================
   LEGENDA AGENDA
========================= */

.calendario-legenda {
  font-size: 13px;
  color: #495057;
}

.calendario-legenda .legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legenda-item .indicador-lembrete {
  font-size: 0.9rem;
}

.legenda-item .indicador-evento {
  font-size: 0.9rem;
}

/* =========================
   MODAL EVENTOS AGENDA
========================= */

.modal-eventos {
  border-radius: 12px;
  overflow: hidden;
}

.modal-eventos .modal-header {
  background: #eef1f5;
  border-bottom: 1px solid #dde2e7;
}

#modal-eventos-data {
  font-size: 14px;
  color: #574953;
}

.lista-eventos-dia {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evento-item {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  padding: 10px 12px 10px 14px;
  transition: all 0.2s ease;
}

.evento-item:hover {
  background: #eef1f3;
}

.evento-item::before {
  content: '';
  display: block;
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px 0 0 10px;
}

.evento-item.evento::before {
  background: #2b8a3e;
}

.evento-item.feriado::before {
  background: #dc3545;
}

.evento-item.ponto::before {
  background: #f76707;
}

.evento-item.lembrete::before {
  background: #f59f00;
}

.evento-titulo {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}

.evento-descricao {
  font-size: 13px;
  color: #6c757d;
  margin-top: 3px;
}

/* =========================
   GRID RESPONSIVO DOS MESES
   Quebras antecipadas para evitar sobreposição no zoom
========================= */

.agenda-grid {
  row-gap: 18px;
}

/* padrão: 4 colunas */

/* telas médias / notebook com zoom: 3 colunas */
@media (max-width: 1450px) {
  .agenda-grid .agenda-mes-col {
    width: 33.333333%;
    flex: 0 0 auto;
  }
}

/* zoom maior / telas menores: 2 colunas */
@media (max-width: 1120px) {
  .agenda-grid .agenda-mes-col {
    width: 50%;
    flex: 0 0 auto;
  }
}

/* telas pequenas: 1 coluna */
@media (max-width: 900px) {
  .agenda-grid .agenda-mes-col {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* TELA CURSO.VIEW */

.ppgas-card {
  display: flex;
  justify-content: center;
  min-width: 180px;
}

.ppgas-folder-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ppgas-folder-wrapper {
  position: relative;
  width: 170px;
  height: 140px;
  margin: 0 auto;
}

.ppgas-folder {
  position: relative;
  width: 160px;
  height: 130px;
  margin: 0 auto;
  transition: transform .15s ease, filter .15s ease;
}

.ppgas-folder-card:hover .ppgas-folder {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .2));
}

.ppgas-folder-img {
  width: 150px;
  display: block;
  margin: 0 auto;
}

.ppgas-folder-wrapper .card-edit-btn {
  position: absolute;
  right: 0;
  bottom: 16px;
  z-index: 5;
}

.ppgas-folder-name {
  position: absolute;

  top: 58px;
  left: 50%;

  transform: translateX(-50%);

  width: 105px;

  display: flex;
  flex-direction: column;
  align-items: center;

  font-weight: 700;
  font-size: 14px;
  line-height: 1.08;
  color: #111111;

  text-align: center;

  pointer-events: none;
}

.ppgas-folder-ra {
  display: block;

  margin-top: 3px;

  font-size: 11px;
  font-style: italic;
  font-weight: 600;

  color: #777;

  line-height: 1;
}

@media (max-width: 1450px) {
  .ppgas-card {
    width: 25%;
  }
}

@media (max-width: 1150px) {
  .ppgas-card {
    width: 33.3333%;
  }
}

@media (max-width: 900px) {
  .ppgas-card {
    width: 50%;
  }
}

@media (max-width: 600px) {
  .ppgas-card {
    width: 100%;
  }
}

/* PPGA&S - Tela do prontuário */

.ppgas-pastas-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ppgas-pasta-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;

  color: #111827;
  text-decoration: none;
  font-weight: 600;

  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ppgas-pasta-item:hover {
  background: #f8f9fa;
  border-color: #cfd4da;
  transform: translateX(3px);
}

.ppgas-pasta-icon {
  font-size: 26px;
  color: #f2b544;
}


/* =========================
   PPGA&S - PREVIEW DE ARQUIVOS
========================= */

.ppgas-preview-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .2s ease;
}

.ppgas-preview-img.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

/* ==========================================
   COMPONENTE GLOBAL
   AÇÕES FLUTUANTES EM CARD

   Usado em:
   - PPGA&S / Prontuários
   - PPGA&S / Acompanhamento Acadêmico
   - Contatos / Cards de pessoas
   - Outros cards com ação contextual
========================================== */

.card-edit-wrapper,
.card-acoes-hover {
  position: relative;
}

.card-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 12px;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  border: none;
  background: #c8c8c8;
  color: #111111;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);

  z-index: 950;

  transition:
    opacity 0.14s ease,
    visibility 0.14s ease,
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.card-acoes-hover .card-edit-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-acoes-hover:hover .card-edit-btn,
.card-acoes-hover:focus-within .card-edit-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.card-edit-btn:hover {
  transform: translateY(-1px);
  background: #1c6c34;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-edit-btn:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(28, 108, 52, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

/* =============================
   CONTATOS - COPIAR INLINE
============================= */

.contato-copy-area {
  position: relative;
}

.btn-copy-inline {
  width: 22px;
  height: 22px;

  border: none;
  background: transparent;
  color: #1c6c34;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin-left: 2px;

  opacity: 0;
  visibility: hidden;

  cursor: pointer;

  transition:
    opacity 0.14s ease,
    visibility 0.14s ease,
    transform 0.14s ease;
}

.contato-copy-area:hover .btn-copy-inline {
  opacity: 1;
  visibility: visible;
}

.btn-copy-inline:hover {
  transform: translateY(-1px);
}

.btn-copy-inline i {
  font-size: 0.95rem;
}

.contato-lattes-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-nepam-lattes {
  height: 34px;
  padding: 0 14px;
  background: rgba(44, 138, 62, 0.14);
  color: #1c6c34;
  box-shadow: none;
  gap: 6px;
}

.btn-nepam-lattes:hover {
  background: rgba(44, 138, 62, 0.26);
  color: #123f24;
}



/* ============================= */
/* TELA LOGIN */
/* ============================= */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body.login-page {
  overflow: hidden;
}

.login-page {
  width: 100vw;
  height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: url('/assets/img/tela-login-intranet-nepam.png') no-repeat center center;
  background-size: cover;

  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 26, 0.68);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 46px 42px 54px;

  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

  text-align: center;
  color: #fff;
}

.login-container h1 {
  font-size: 28px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-container p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-unicamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  width: calc(100% + 84px);
  margin-left: -42px;

  box-sizing: border-box;

  min-height: 58px;
  padding: 10px 22px;

  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  color: #123b27;

  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);

  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.2px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: all 0.2s ease;
}

.btn-unicamp img {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.btn-unicamp:hover {
  background: rgba(255, 255, 255, 0.98);
  color: #0b2f1e;
  transform: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

/* Tela LOGIN LOCAL (auth/login_local.view) */

.login-local-container {
  padding-bottom: 28px;
}

.login-local-form {
  width: 100%;
  padding: 0 32px 24px;
  box-sizing: border-box;
}

.login-field {
  margin-bottom: 16px;
  text-align: left;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #123322;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-field input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.btn-login-local {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #f1f5f0;
  color: #174528;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-login-local:hover {
  background: #ffffff;
}

.login-voltar {
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.9;
}

.login-voltar:hover {
  opacity: 1;
  text-decoration: underline;
}

.login-alert {
  margin: 0 32px 18px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: left;
}

.login-alert-danger {
  background: #f8d7da;
  color: #842029;
}

.login-alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.login-alert-warning {
  background: #fff3cd;
  color: #664d03;
}

/* ============================= */
/* TELA SERVIDORES (servidores.view) */
/* ============================= */

.contatos-header {
  margin-bottom: 32px;
}

.contatos-setor {
  margin-bottom: 42px;
}

.contatos-setor-titulo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: #143f28;
  font-size: 1.25rem;
  font-weight: 700;
}

.contatos-setor-titulo::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8e3dc;
}

.contato-card {
  min-height: 200px;

  background: #fff;
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  padding: 22px;

  display: flex;
  gap: 18px;
  align-items: flex-start;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.contato-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e7f5ec;
  flex-shrink: 0;
}

.contato-avatar-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #eef3f0;
  color: #789083;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.contato-nome {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #102033;
}

.contato-cargo {
  color: #6c757d;
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.contato-info {
  font-size: 0.92rem;
  color: #343a40;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

.contato-info i {
  color: #1f7a45;
}

/* ============================= */
/* PPGA&S - ACOMPANHAMENTO ACADÊMICO */
/* ============================= */

.ppgas-acompanhamento-header {
  margin-bottom: 1.5rem;
}

.ppgas-acompanhamento-card {
  height: 100%;
  background: #fff;
  border: 1px solid #dee2e6;
  border-left: 5px solid #2f9e44;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ppgas-acompanhamento-card:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.ppgas-acompanhamento-card.status-ok,
.ppgas-acompanhamento-card.status-realizado {
  border-left-color: #2f9e44;
}

.ppgas-acompanhamento-card.status-atencao {
  border-left-color: #fab005;
}

.ppgas-acompanhamento-card.status-vencido {
  border-left-color: #c92a2a;
}

.ppgas-aluno-nome {
  font-weight: 700;
  font-size: 1rem;
  color: #212529;
}

.ppgas-aluno-meta {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.15rem;
}

.ppgas-prazos-lista {
  margin-top: 1rem;
}

.ppgas-prazo-item+.ppgas-prazo-item {
  margin-top: 1rem;
}

.ppgas-prazo-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #343a40;
}

.ppgas-prazo-percentual {
  font-size: 0.8rem;
  color: #6c757d;
}

.ppgas-progress {
  width: 100%;
  height: 9px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.ppgas-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ppgas-progress-bar.status-realizado {
  background: #1c7ed6;
}

.ppgas-progress-bar.status-ok {
  background: #2f9e44;
}

.ppgas-progress-bar.status-atencao {
  background: #fab005;
}

.ppgas-progress-bar.status-vencido {
  background: #c92a2a;
}

.ppgas-prazo-texto {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #6c757d;
}

.ppgas-acompanhamento-card {
  min-height: 330px;
}

.ppgas-tag-religamento {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5c3c00;
  background: #fff3bf;
  border: 1px solid #ffd43b;
  border-radius: 999px;
  vertical-align: middle;
}

.ppgas-status-concluido {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #228be6;
  line-height: 1;
}

/* ============================= */
/* MODAL  - ACOMPANHAMENTO ACADÊMICO */
/* ============================= */

.ppgas-modal-tabs-content {
  min-height: auto;
}

.ppgas-modal-section {
  min-height: auto;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  background: #fff;
}

.ppgas-modal-section-title {
  font-weight: 700;
  color: #343a40;
}

.ppgas-modal-prazo-item {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1rem;
  align-items: end;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.ppgas-modal-prazo-item:last-child {
  border-bottom: 0;
}

.ppgas-tag-situacao-dac,
.ppgas-tag-absorvida {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5c3c00;
  background: #fff3bf;
  border: 1px solid #ffd43b;
  border-radius: 999px;
}

.ppgas-prorrogacoes-lista,
.ppgas-modal-section .text-muted.small {
  margin-top: 0.5rem;
}

.ppgas-prorrogacao-item {
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: #495057;
  border-bottom: 1px solid #f1f3f5;
}

.ppgas-prorrogacao-item:last-child {
  border-bottom: 0;
}

.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

@media (max-width: 576px) {
  .ppgas-modal-prazo-item {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MODAL CREDENCIAMENTO (\views\ppgas\colaboradores)
========================================================= */

.icone-pdf-documento {
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ============================= */
/* ÁRVORE DOCUMENTAL */
/* ============================= */

.documento-arvore {
  max-width: 1200px;
}

.documento-arvore-grupo {
  width: 100%;
}

.documento-arvore-item {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 42px;

  padding-top: 5px;
  padding-bottom: 5px;

  border-radius: 10px;

  transition: background 0.14s ease;
}

.documento-arvore-item:hover {
  background: rgba(0, 0, 0, 0.035);
}

.documento-arvore-item-ativo {
  background: rgba(0, 0, 0, 0.055);
}

.documento-arvore-toggle {
  width: 24px;
  height: 24px;

  border: 0;
  background: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #4b5563;
  font-size: 0.8rem;

  cursor: pointer;
}

.documento-arvore-toggle-vazio {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 24px;
}

.documento-arvore-link {
  border: 0;
  background: transparent;

  padding: 0;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: inherit;
  text-decoration: none;
  font: inherit;

  cursor: pointer;
}

.documento-arvore-link:hover {
  color: inherit;
  text-decoration: none;
}

.documento-arvore-icone {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.documento-arvore-nome {
  font-weight: 600;
  color: #111827;
}

.documento-arvore-acoes {
  margin-left: auto;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding-right: 8px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.14s ease,
    visibility 0.14s ease;
}

.documento-arvore-item:hover .documento-arvore-acoes,
.documento-arvore-item-ativo .documento-arvore-acoes {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.documento-arvore-btn-acao {
  width: 30px;
  height: 30px;

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.10);
}

.documento-arvore-btn-acao i {
  font-size: 0.8rem;
}

.documento-arvore-menu {
  border: 0;
  border-radius: 12px;
  padding: 6px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.documento-arvore-menu .dropdown-item {
  border-radius: 8px;
  padding: 8px 10px;

  font-size: 0.88rem;
  font-weight: 500;
}

.documento-arvore-menu .dropdown-item:hover {
  background: #f1f3f5;
}

.documento-arvore-item-arquivo .documento-arvore-nome {
  font-weight: 500;
}

.documento-arvore-icone-arquivo {
  width: 34px;
  height: 34px;
}

/* =============================
   LINKS ÚTEIS
============================= */

.link-util-card {
  min-height: 180px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #f8f9fa;
}

.link-util-card .card-body {
  position: relative;
  height: 100%;
  padding: 1.35rem 1.45rem 1.25rem;

  display: flex;
  flex-direction: column;
}

.link-util-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(0, 0, 0, .55);
  margin-bottom: .9rem;

  transition: color .12s ease;
}

.link-util-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;

  margin-bottom: .45rem;

  color: #111827;

  transition: color .12s ease;
}

.link-util-desc {
  font-size: .92rem;
  line-height: 1.35;
  color: #4b5563;

  margin-bottom: 1rem;

  width: 100%;
  max-width: none;
}

.link-util-footer {
  margin-top: auto;

  display: flex;
  justify-content: center;

  padding-top: .75rem;
}

.link-util-footer .btn-nepam {
  height: 38px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 600;
}

.link-util-card:hover .link-util-icon,
.link-util-card:hover .link-util-title {
  color: var(--nepam-green);
}

/* Botão editar nos cards de Links Úteis */
.link-util-card .card-edit-btn {
  right: 14px;
  bottom: 14px;
}