body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #f8f9fa;
}


.card.login-card {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.login-card.aparecer {
  opacity: 1;
  transform: translateY(0);
}

.login-card {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.footer {
    margin-top: 20px;
    font-size: 0.9rem;
}

.btn-info {
    background-color: #78be20;
    color: white;
    border-color: #78be20;
    border-radius: 0.35rem;
    transition: all 0.3s;
}

.btn-info:hover {
    background-color: #035f1d;
    border-color: #035f1d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-success {
    background-color: #035f1d;
    color: white;
    border-color: #035f1d;
    border-radius: 0.35rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-outline-success:hover {
    background-color: #78be20;
    border-color: #78be20;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-portal {
    background-color: #78be20;
    color: white;
    border-radius: 0.35rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-portal:hover {
    background-color: #035f1d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6c757d;;
    color: white;
    border-radius: 0.35rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.modal-header {
    background-color: #78be20;
}

.btn-primary {
    background-color: #e1b87f;
    color: white;
    border-color: #e1b87f;
    border-radius: 0.35rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c49758;
    border-color: #c49758;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo_branca {
  max-height: 45px;
  width: auto;
  display: block;
  margin-left: 10px;
}

    .kpi .kpi-dot{width:12px;height:12px;border-radius:999px;display:inline-block;opacity:.6}
    .cards-grid{
      display:grid; gap:1rem;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    .requisicao-card.card-open{ border-left:4px solid #78BE20; }
    .requisicao-card.card-done{ border-left:4px solid #035F1D; filter:saturate(.9) }
    .requisicao-card.card-recusa{ border-left:4px solid #dc3545; background: #fff6f7; }
    .btn-portal.active{ box-shadow: inset 0 0 0 2px rgba(13,110,253,.25); }

        /* Tabela moderna */
    .table-card { overflow: hidden; border-radius: .75rem; }
    .table thead th { font-weight: 600; color: #6c757d; }
    .table thead.sticky { position: sticky; top: 0; z-index: 2; background: #f8f9fa; }
    .table tbody tr { transition: background .15s ease; }
    .table tbody tr:hover { background: #f6f7fb; }
    .table td, .table th { vertical-align: middle; white-space: nowrap; }
    .status-open   { border-left: 4px solid #78BE20; }
    .status-done   { border-left: 4px solid #035F1D; background: #f9fafb; }
    .status-denied { border-left: 4px solid #dc3545; background: #fff6f7; }
    .col-actions   { width: 1%; }
    .badge-prior { font-weight: 600; }
    .search-inline .form-control { border-left: 0; }
    .search-inline .input-group-text { background: #fff; }
    @media (max-width: 992px) {
      .hide-lg { display: none !important; }
    }

.prioridade-cell .badge {
  display: block;
  width: 85%;
  font-size: 1rem;
  padding: 0.5em;
}

/* Centraliza conteúdo no badge e evita texto “sair” */
.badge {
  display: inline-flex;          /* centraliza vertical/horizontal */
  align-items: center;
  justify-content: center;
  line-height: 1;                /* evita esticar vertical */
  padding: .35rem .6rem;         /* altura confortável */
  white-space: nowrap;           /* não quebrar linha */
  vertical-align: middle;        /* alinha no meio da linha/tabela */
}

/* Em células de tabela, garante que nunca corte */
td .badge {
  white-space: nowrap;
}

/* (opcional) para badges muito longos: limitar largura e reticências */
.badge.badge-trunc {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tabela mais "fofa" (padding maior em TH/TD) */
.table-comfy > :not(caption) > * > * {
  padding: 0.9rem 1.1rem; /* ↑ aumente/diminua como preferir */
}

/* Altura mínima da linha (ajuda o badge a “caber”) */
.table-comfy tbody tr {
  height: 60px; /* ajuste fino: 56–64px fica bom */
}

/* Larguras mínimas para colunas críticas */
.table-comfy .col-prioridade { min-width: 160px; }
.table-comfy .col-veiculo    { min-width: 220px; }
.table-comfy .col-actions    { min-width: 120px; }

/* Badge “grande” e centralizado */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

/* Variação maior (aplique .badge-lg junto com .badge) */
.badge-lg {
  font-size: 0.9rem;      /* 0.85–0.95rem */
  padding: 0.45rem 0.75rem;
  border-radius: 999px;   /* reforça o “pill” */
}

/* Garante que dropdown e conteúdo possam “sair” da área da tabela sem cortar */
.table-card .table-responsive {
  overflow: visible;                 /* deixa dropdown aparecer fora */
  position: relative;
  z-index: 0;
}

/* Evita que algum wrapper corte o dropdown */
.table-card,
.table-card .dropdown,
.table-card .dropdown-menu {
  position: static;
}

/* E o dropdown sempre por cima */
.dropdown-menu {
  z-index: 1080; /* acima de table/sticky header, abaixo dos modais (1055–1100) */
}

.logo {
  max-height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 20px auto; /* Centraliza e adiciona margem inferior */
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo.aparecer {
  opacity: 1;
  transform: translateY(0);
}

#toastVeiculo {
  background-color: #78be20; /* Verde Bootstrap */
  color: white;
}

#toastVeiculo .btn-close {
  filter: brightness(0) invert(1); /* Deixa o "X" branco */
}

#toastAtualizacao {
  background-color: #78be20; /* Verde Bootstrap */
  color: white;
}

#toastAtualizacao .btn-close {
  filter: brightness(0) invert(1); /* Deixa o "X" branco */
}

/* Botão secundário */
.btn-portal-secondary {
    background-color: #858796;
    color: white;
}

.btn-portal-secondary:hover {
    background-color: #717384;
}

.card-header-custom {
    background-color: #035f1d;
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header-custom {
    position: relative; /* Container de referência */
    min-height: 100px; /* Altura mínima para o cabeçalho */
    padding-bottom: 40px; /* Espaço para a logo */
    overflow: hidden; /* Esconde o que ultrapassar */
}

.logo-cortada {
    position: absolute;
    right: -5px; /* Distância da direita */
    bottom: 0;
    transform: translateY(50%); /* Mostra apenas a metade superior */
    max-height: 210px; /* Altura máxima da logo */
    width: auto;
    object-fit: cover; /* Garante que a imagem não distorça */
    object-position: top; /* Foca na parte superior da imagem */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Efeito visual opcional */
}

.Titulo {
    padding-top: 15px;
    font-size: 2.5rem;
}

#departamento.form-control {
  margin-bottom: 1rem;
}

#data.form-control {
  margin-bottom: 1rem;
}
.titulo-arquivos {
    font-weight: bold;
    padding-top: 15px;
    padding-bottom: 10px;
    font-size: 2.5rem;
}

.titulo-holerites {
    font-weight: bold;
    padding-top: 15px;
    padding-bottom: 10px;
    font-size: 2.5rem;
}

.card.shadow-sm {
  opacity: 1;
  transform: translateY(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.shadow-sm.aparecer {
  opacity: 1;
  transform: translateY(0);
}

.icon-link {
    margin-right: 30px; /* Aumente conforme necessário */
    display: inline-block;
}

.navbar {
    background-color: #4e4b48;
}

/* Impede o conteúdo de sair da largura do card no mobile */
.accordion-body {
  overflow-x: auto;
}

/* Faz os itens da lista quebrarem corretamente */
.list-group-item {
  flex-direction: column;
  align-items: flex-start !important;
  word-break: break-word;
}

/* Ajusta o botão “Ver” para alinhar corretamente em colunas no mobile */
.list-group-item .btn-portal {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 200px;
}

.card.shadow-sm {
  margin-top: 30px;
}

#notificacaoNovaRequisicao {
  position: fixed;
  top: 0;
  right: 20px;
  z-index: 1055;
}
.notificacao-item {
  background-color: #ffc107;
  color: #000;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  cursor: pointer;
}

  #tabela-veiculos td,
  #tabela-veiculos th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    vertical-align: middle;
  }

  #tabela-veiculos td:last-child {
    white-space: normal; /* Deixa os botões com quebra se necessário */
    max-width: none;
  }

  /* 1) Cores de hover/active dos ITENS do dropdown (vence a var local do BS) */
.dropdown-menu{
  --bs-dropdown-link-hover-bg: rgba(120,190,32,.10); /* verde leve no hover */
  --bs-dropdown-link-active-bg: rgba(120,190,32,.18); /* verde no active */
  --bs-dropdown-link-active-color: #212529;           /* texto escuro no active */
}

/* Se usar menus escuros */
.dropdown-menu.dropdown-menu-dark{
  --bs-dropdown-link-hover-bg: rgba(120,190,32,.25);
  --bs-dropdown-link-active-bg: #78BE20;
  --bs-dropdown-link-active-color: #fff;
}

/* 2) Botão .dropdown-toggle quando aberto/focado (tira o azul) */
.dropdown-toggle:focus,
.dropdown-toggle:active,
.show > .dropdown-toggle,              /* quando o menu está aberto */
.btn:focus.dropdown-toggle,
.btn-check:focus + .btn.dropdown-toggle{
  border-color: #78BE20 !important;
  box-shadow: 0 0 0 .25rem rgba(120,190,32,.25) !important;
  outline: 0;
}

/* Opcional: dar um leve fundo quando o toggle está aberto */
.show > .dropdown-toggle{
  background-color: rgba(120,190,32,.12) !important;
  color: #215600 !important; /* ajuste de contraste; remova se não quiser */
}

/* 3) Fallback forte (se algum tema ainda força azul) */
.dropdown-item:active,
.dropdown-item.active{
  background-color: #78BE20 !important;
  color: #fff !important;
}
  

@media (max-width: 576px) {

  body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #f8f9fa;
  }

  .login-card {
    margin: 0 10px; /* Evita grudar nas bordas */
  }

  .card.shadow-sm {
    margin: 0 10px; /* Evita grudar nas bordas */
  }

  .card-body {
    padding: 1.5rem 1rem; /* Reduz um pouco o padding interno */
  }

  .logo {
    max-width: 250px; /* Diminui a logo */
    max-height: 100px;
  }

  .logo-cortada {
    position: absolute;
    right: -5px; /* Distância da direita */
    bottom: 0;
    transform: translateY(50%); /* Mostra apenas a metade superior */
    max-width: 70px; /* Altura máxima da logo */
    object-fit: cover; /* Garante que a imagem não distorça */
    object-position: top; /* Foca na parte superior da imagem */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Efeito visual opcional */
  }

  .Titulo {
    font-size: 1.5rem;
  }

  .form-label{
    padding: 0.5rem;
  }

  .titulo-holerites {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  .btn-portal {
    font-size: 1rem;
    padding: 0.75rem;
  }
}