/* Fonte padrão geral */
body, table, input, select, textarea, button, label {
    font-family: Arial, sans-serif;
    font-size: 8pt; /* menor fonte */
    color: #333;
}

/* Estilo Tabela */
.tabela-protheus {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 5px; /* Era 20px, agora só 5px */
}

.tabela-protheus th {
    background-color: #007bff; /* Azul Protheus */
    color: white;
    font-weight: bold;
    font-size: 8pt;
    text-align: left;
    padding: 5px;
    border-bottom: 2px solid #dee2e6;
}

.tabela-protheus td {
    font-size: 8pt;
    padding: 4px 5px;
    border-bottom: 1px solid #dee2e6;
}

.tabela-protheus tr:hover {
    background-color: #f6f6f6;
}

/* Botões */
.botao-protheus {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    margin: 2px;
    border: none;
    border-radius: 3px;
    font-size: 8pt;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.botao-protheus:hover {
    background-color: #0056b3;
}

/* Inputs e Selects */
.input-protheus {
    width: 100%;
    padding: 4px 6px;
    margin: 3px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 8pt;
    box-sizing: border-box;
}
.input-protheus:focus {
    border-color: #007bff;
    outline: none;
}

/* Labels */
.label-protheus {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 8pt;
    display: block;
}

/* Ajustar espaços do conteúdo */
.container-conteudo {
    padding-top: 5px; /* Era muito grande */
    margin-top: 5px; /* Reduzido */
}
footer {
    margin-top: 20px;
    padding: 10px;
    font-size: 8pt;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;

  
  .modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px 30px;
    width: 400px;
    box-shadow: 0 0 10px #444;
    text-align: center;
    font-size: 10pt;
  }
  
  .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  .btn-print {
    background: #28a745;
    color: white;
  }
  
  .btn-voltar {
    background: #6c757d;
    color: white;
  }
  tabela-contas {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 9pt;
}
.tabela-contas th, .tabela-contas td {
    font-size: 9pt;
    padding: 6px 8px;
}
.tabela-contas th {
    background-color: #f3f3f3;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}
.tabela-contas tr:nth-child(even) {
    background-color: #fafafa;
}
.tabela-contas tr:hover {
    background-color: #eef2f7;
}  

.container-form {
  max-width: 1100px;
  margin: 30px auto;
  background: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.container-form h2 {
  background: #007BFF;
  color: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.form-grid label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.titulo-formulario {
  font-size: 20px;
  color: #003366;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}
.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}
.alerta.info {
  background: #e7f3fe;
  color: #31708f;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.brutus-form-duas-colunas .linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.brutus-form-duas-colunas label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.brutus-form-duas-colunas input,
.brutus-form-duas-colunas select,
.brutus-form-duas-colunas textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.btn-secondary {
  background-color: #6c757d; /* Cinza padrão Protheus */
  color: white;
  border: 1px solid #5a6268;
  padding: 5px 10px;
  font-size: 8pt;
  border-radius: 3px;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #5a6268; /* Escurece ao passar o mouse */
}
.container-form {
  max-width: 1200px;
  margin: auto;
  background-color: #f8f8f8; /* Fundo cinza claro, padrão Protheus */
  padding: 15px;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
}


  .modal-protheus h3 {
    margin: 0 0 10px 0;
    color: #007bff;
  }

  .modal-protheus input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
  }

  .tabela-protheus {
    width: 100%;
    border-collapse: collapse;
  }

  .tabela-protheus th {
    background-color: #007bff;
    color: white;
    padding: 5px;
    font-size: 10pt;
    text-align: left;
  }

  .tabela-protheus td {
    padding: 6px;
    border-bottom: 1px solid #ccc;
    font-size: 9pt;
  }

  .tabela-protheus tr:hover {
    background-color: #eef;
    cursor: pointer;
  }
  .modal-protheus {
    display: none !important; /* Garante que inicie fechado */
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #007bff;
    width: 800px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    z-index: 9999;
  }