body {
  padding-top: 10px;
  margin-top: 60px;
  margin-left: 10px;
  margin-right: 10px;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

form {
  max-height: 160px;
}

input[type="text"],
input[type="number"],
select,
.form-control {
  width: 100%;
  padding: 2px 2px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: -10px;
}

input[type="number"],
.form-control {
  width: 70%;
  padding: 2px 2px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: -10px;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #ccc;
  background-color: #ffffff;
  z-index: 99;
  width: calc(20% - 24px);
  border-radius: 3px;
}

.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

.session,
.session2 {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  overflow-y: auto;
}

#scatterChart {
  width: 100%;
  height: 400px;
  max-height: 600px;
  transition: all 0.3s ease-in-out;
}

.session h4 {
  color: #333;
  font-size: 1.25rem;
  font-weight: bold;
}

.border-dark {
  border-color: #333 !important;
  border-radius: 5px;
}

#hideGraphs {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#hideGraphs .chart {
  width: 100%;
  height: auto;
  max-height: 200px;
}

@media (max-width: 1500px) {

  #scatterChart {
    width: 1200px;
    max-width: 100%;
    height: auto;
  }

  #GraficosSagFront,
  #paiDiv {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #paiDiv {
    margin-top: 20px;
  }
}

#GraficoTransv {
  margin-top: 20px;
}

#paiDiv .chart {
  width: 100%;
  height: 100%;
}

#paiDiv .flex-grow-1 {
  min-height: 400px;
}

@media (max-width: 576px) {
  #GraficoTransv .chart {
    max-height: 300px;
  }
}



#hideGraphs h5 {
  color: #333;
  text-align: center;
  font-weight: bold;
}

#enviar,
#clear,
#btnParar {
  margin: 5px;
}

#enviar {
  background-color: #007bff;
  border: none;
}

#clear {
  background-color: #6c757d;
  border: none;
}

#btnParar {
  background-color: #dc3545;
  border: none;
}

#enviar:hover,
#clear:hover,
#btnParar:hover {
  opacity: 0.9;
}

.row {
  margin-left: 10px;
  margin-right: 10px;
}

#borda1 {
  margin-top: 10px;
  border-top: 1px solid #ccc;
}



.tempor {
  border: 2px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-size: 18px;
  color: #dc3545;
  font-weight: bold;
  text-align: center;
}

.modal-header {
  background-color: #007bff;
  color: #ffffff;
}

.modal-body {
  font-size: 1rem;
  color: #333;
}

.modal-footer .btn {
  background-color: #dc3545;
  border: none;
}

.modal-footer .btn:hover {
  opacity: 0.9;
}

#paiDiv {
  transition: all 0.3s ease-in-out;
}

.chart {
  transition: all 0.3s ease-in-out;
}

.hidden {
  display: none !important;
}

.form-check {
  display: flex;
  justify-content: left;
  align-items: left;
  margin-top: 5px;
}

.form-check-input {
  width: 55px;
  height: 25px;
  cursor: pointer;
}


/* Labels e inputs próximos */
label {
  margin-bottom: 2px;
  display: inline-block;
  font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
select {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-control-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.row {
  margin: 0;
}

@media (max-width: 768px) {
  label {
    font-size: 0.85rem;
  }

  input[type="text"],
  input[type="number"],
  select {
    font-size: 0.8rem;
  }

  .form-check-input {
    width: 40px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  label {
    font-size: 0.8rem;
  }

  input[type="text"],
  input[type="number"],
  select {
    font-size: 0.75rem;
    padding: 4px;
  }
}

.dropdown-menu {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  background-color: #fff;
}

.min-width-300 {
  min-width: 300px;
}

.dropdown-item {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item input[type="checkbox"] {
  margin-right: 8px;
}

.dropdown-item label {
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.col-12.col-sm-6.col-md-4.col-lg-2 {
  position: relative;
}

#borda {
  position: relative;
  z-index: 1;
}

#mostrar-terapeutas {
  z-index: 1000 !important;
  position: absolute;
  transform: translateY(38px);
}

#hideGraphs {
  position: relative;
  z-index: 0;
}

.session {
  overflow: visible !important;
}

.btn-light {
  background-color: #fff !important;
  padding: 0.15rem 0.5rem;
}

.dropdown-toggle::after {
  margin-left: 0.5em;
  vertical-align: middle;
}

.dropdown-menu {
  background-color: #fff;
  border: 1px solid #333;
}

.form-control-xs,
.form-select-xs {
  min-height: 28px;
  border-color: #333 !important;
  background-color: #fff !important;
}

/* Dropdown toggles dentro de formulários/sessões, não no menu de navegação */
.session .dropdown-toggle,
.session2 .dropdown-toggle {
  min-height: 28px;
  border-color: #333 !important;
  background-color: #fff !important;
}

#mostrar-dispositivos option {
  padding: 2px 5px;
  position: relative;
}

#mostrar-dispositivos option:disabled {
  color: #8d8d8d !important;
}

#mostrar-dispositivos option {
  position: relative;
  padding-right: 20px;
}

#mostrar-dispositivos option::after {
  content: "•";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
}

.gray-circle {
  filter: grayscale(100%);
  opacity: 0.6;
}