html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Estilos para campos decimais */
.decimal-input {
  font-family: 'Courier New', monospace;
}

.decimal-input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.decimal-input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Placeholder para campos decimais */
.decimal-input::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* ===================== */
/* Analytics page styles */
/* ===================== */
.analytics-table-wrapper {
  overflow-x: auto;
}

.analytics-table {
  border-radius: 6px;
  background-color: #ffffff;
}

.analytics-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #f8f9fa;
}

.analytics-table th,
.analytics-table td {
  vertical-align: middle;
  min-width: 90px;
}

.analytics-table .metric-col {
  width: 220px;
}

.analytics-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #ffffff;
}

.analytics-table .metric-cell {
  font-weight: 600;
}

.vertical-header {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-left: 4px solid #0d6efd;
  margin-bottom: 0.75rem;
}