/* =====================
   Botões Principais do Sistema
   ===================== */
  .btn-dashboard {
    background-color: #FFC107;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    width: 250px;
    transition: background-color 0.3s ease;
    text-align: center;
}

  .btn-dashboard:hover {
    background-color: #e6b106;
    color: black;
}

  .btn-tabela {
    background-color: #FFC107;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
  }

  .btn-tabela:hover {
    background-color: #e0a800;
    color: #000;
  }

  .btn-dashboard2 {
    background-color: #FFC107;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
  }

/* =====================
   Botões de Ações em Tabelas (Visualizar, Editar, Excluir, Pegar Pedido)
   ===================== */
  .btn-acao {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
  }

  .btn-visualizar,
  .btn-pegar {
    background-color: #FFC107;
    color: black;
  }

  .btn-visualizar:hover,
  .btn-pegar:hover {
    background-color: #e6b106;
  }

  .btn-editar {
    background-color: #FFC107;
    color: #000;
  }

  .btn-editar:hover {
    background-color: #FFC107;
  }

  .btn-excluir {
  background-color: #e74c3c;
  color: white;
  border: none;
  }

  .btn-excluir:hover {
    background-color: #c82333;
  }

  .btn-status {
  background-color: #b5b5b5;
  color: #444;
  cursor: default;
  }

/* =====================
   Tabelas / Resumos
   ===================== */
  table.resumo-tabela {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #2c2f33;
    color: white;
    font-size: 0.95rem;
  }

  table.resumo-tabela th,
  table.resumo-tabela td {
    border: 1px solid #444;
    padding: 8px 16px;
    text-align: center;
    white-space: nowrap;
  }

  table.resumo-tabela th {
    background-color: #1e1f21;
    font-weight: 600;
  }

  table.resumo-tabela tbody tr:nth-child(even) {
    background-color: #3a3d40;
  }

  .resumo-table th, .resumo-table td {
    vertical-align: middle;
    padding: 12px;
    white-space: nowrap;
  }

/* =====================
   Alerts
   ===================== */
  .alert {
    color: red;
    font-weight: bold;
    text-align: center;
  }

  .custom-alert {
    background-color: #ffdddd;
    color: #c0392b;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    text-align: center;
  }

/* =====================
   Paginação
   ===================== */
  .pagination-nav .active {
    background-color: #FFC107;
    color: #000;
    font-weight: bold;
  }

/* =====================
   Botão Desativado
   ===================== */
  .btn-disabled {
    background-color: #b5b5b5;
    color: #444;
    font-weight: bold;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
  }

/* =====================
   Botões Pequenos
   ===================== */
  .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: auto;
    text-align: center;
    background-color: #FFC107;
    color: #000;
    font-weight: bold;
  }


  /* Modal com fundo escurecido e foco central */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.6);
    display: none;  /* ✅ ISSO É ESSENCIAL */
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .modal-box {
    background-color: #fff;
    color: #000;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
  }
  
  .modal-box h5 {
    margin-bottom: 20px;
  }
  
  body.modal-open {
    overflow: hidden;
    filter: blur(2px); /* ou backdrop-filter se quiser aplicar à parte */
  }

  .modal-box .btn {
  min-width: 120px;
  margin: 0 10px;
  }

/* Efeito de desfoque quando modal estiver ativo */
  .blur-background {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  }

/* Corrige o modal para estar sempre em foco */
  .modal-box {
  background-color: #ffffff;
  color: #000;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 400px;
  width: 100%;
  z-index: 9999;
  }
