/* ------ Cards de módulos (home.php) ------ */
:root {
  --nepam-green: #1f7a3a;
  --nepam-green-soft: rgba(31, 122, 58, .14);
  --nepam-green-shadow: rgba(31, 122, 58, .22);
}

.module-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.module-card .card-body {
  padding: 1.25rem 1.25rem;
  min-height: 150px;
  /* teste 150–170 */
  display: flex;
  align-items: center;
  /* centraliza verticalmente */
}

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

/* “tint” discreto no hover */
.module-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;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--nepam-green);

  /* profundidade: sombra real + um “toque” puxando pra baixo/direita */
  box-shadow:
    0 .5rem 1.2rem rgba(0, 0, 0, .08),
    .35rem .45rem 0 var(--nepam-green-soft);
}

.module-card:hover::before {
  opacity: 1;
}

/* Ícone */
.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;
  /* dá mais presença */
  transition: color .12s ease;
  margin-bottom: .35rem;
}


/* No hover, o ícone e o título ficam verdes */
.module-card:hover .module-icon {
  color: var(--nepam-green);
}

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

/* Desabilitado */
.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;
}

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


/* =========================================================
   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: 0.85rem;
  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;
}

/* ícone dos links */
.sidebar-collapsed .sidebar-link>i:first-child {
  font-size: 1.15rem;
  margin: 0;
}

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

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

/* ícones centralizados */
.sidebar-collapsed .sidebar-link i {
  font-size: 1.15rem;
  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-sair {
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}

/* texto sair escondido */
.sidebar-collapsed .btn-sair span {
  display: none;
}

/* 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: 72px;
  height: 72px;

  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)
   Visual clean estilo Google Agenda
========================= */

.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: 3px;

  display: flex;
  align-items: center;
  gap: 3px;

  z-index: 3;
}

.indicador-evento,
.indicador-lembrete {
  font-size: 7px;
  line-height: 1;
}

.indicador-evento {
  color: #7048e8;
}

.indicador-lembrete {
  color: #f59f00;
}

.dia:hover .indicador-evento,
.dia:hover .indicador-lembrete {
  transform: scale(1.12);
  transition: transform 0.15s ease;
}

/* =========================
   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: #b197fc;
  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: #495057;
}

.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: #7048e8;
}

.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-folder-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.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-name {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;

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

  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  color: #1a1a1a;

  text-align: center;
}

.ppgas-folder-name span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.ppgas-year-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.row.g-4 {
  margin-bottom: 30px;
}

/* 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;
}

.ppgas-folder-ra {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: #777;
  margin-top: 2px;
}


/* =========================
   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;
}

/* =========================
   BOTÃO DE EDIÇÃO EM CARDS
   Usado em:
   - PPGA&S
   - Contatos > Servidores
========================= */

.card-edit-wrapper {
  position: relative;
}

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

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

  border: none;
  background: #fff;
  color: #444;

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

  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: all .15s ease;
}

.card-edit-btn:hover {
  background: #1c7ed6;
  color: #fff;
}

.card-edit-btn:hover {
  background: #1c7ed6;
  color: #fff;
}

/* ============================= */
/* 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;
}