/* Refined Professional Style */

/* Form container and spacing */
.container, .container-fluid {
  padding: 1rem;
}

.row {
  margin-bottom: 1rem;
}

/* Label styling - reduced font size */
.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #495057;
  display: block;
}

/* Input field styling */
.form-control {
  padding: 0.4rem 0.6rem;
  height: auto;
  font-size: 0.9rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

/* Read-only inputs */
.form-control[readonly] {
  background-color: #f0f0f0;
  border-color: #e2e6ea;
}

/* Select dropdown styling */
select.form-control {
  cursor: pointer;
  padding-right: 1.75rem;
}

/* Date and time inputs */
input[type="date"], 
input[type="time"] {
  min-height: 34px;
}

/* Help text styling */
.form-text {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Button styling */
.btn {
  font-size: 0.9rem;
  padding: 0.375rem 0.75rem;
}

/* Fix for btn-dark-color-outline */
.btn-dark-color-outline {
  color: #343a40;
  background-color: transparent;
  border: 1px solid #343a40;
}

.btn-dark-color-outline:hover {
  color: #fff;
  background-color: #343a40;
  border-color: #343a40;
}

/* Adicionar button */
.btn-outline-success {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

/* Table styling */
table {
  font-size: 0.9rem;
}

/* Header styling */
h1, h2, h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #343a40;
}

/* Filter section */
.filter-section {
  margin-bottom: 1.25rem;
}

/* Search results dropdown */
#resultados_busca {
  position: absolute;
  z-index: 1000;
  width: calc(100% - 1.5rem);
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
}

/* Adjust asterisk for required fields */
.required:after {
  content: " *";
  color: #dc3545;
}

/* Small icon styling */
.form-control + .btn-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-md-2, .col-md-4, .col-6, .col-12 {
    margin-bottom: 0.75rem;
  }
  
  .form-control {
    font-size: 16px; /* For mobile to prevent zoom */
  }
}