.error {
    color: red;
    margin-bottom: 5px;
    text-align: center;
  }

body {
  background: linear-gradient(150deg, rgb(255, 255, 255) 35%, rgb(141, 141, 141) 80%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-hero {
  background-color: #2561ac;
  color: #fff;
  padding: 1.5rem 0;
}

.dashboard-hero p {
  color: rgba(255, 255, 255, 0.85);
}
  
a {
  text-decoration: none;
}

.btn-link {
  color: #1776cf; /* cor da Loja 2 */
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.btn-link:hover {
  color: #138999; /* tom mais escuro no hover */
  text-decoration: underline;
}

.nav-pill {
  padding: 0.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #000;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-block;
}

@media (min-width: 992px) {
  .nav-pill {
    font-size: 1rem;
  }
}

.nav-pill:hover {
  background-color: rgba(229, 231, 235, 0.75);
  color: #000;
  text-decoration: none;
}

.nav-pill:active {
  transform: scale(0.9);
}

.nav-pill.active-page {
  background-color: rgba(229, 231, 235, 0.75);
}

.lang-selector {
  width: 30px;
  height: 30px;
  background-color: #1f2937;
  color: #fff;
  border-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  user-select: none;
}

.lang-dropdown {
  background-color: #4b5563 !important;
  border: none !important;
  min-width: auto !important;
  padding: 2px !important;
}

.lang-item {
  display: block;
  padding: 0.5rem;
  color: #fff !important;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
}

.lang-item:hover {
  background-color: #1f2937 !important;
  color: #fff !important;
}

.link-hover {
  margin: 0 0.3em;
  padding: 0.2em;
  max-width: fit-content;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.link-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.link-hover:hover::after {
  width: 100%;
  left: 0;
}

.dropdown-toggle.link-hover::after {
  display: block;
  border: none;
  vertical-align: 0;
  margin-left: 0;
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.dropdown-toggle.link-hover:hover::after {
  width: 100%;
  left: 0;
}

.h-chart {
  min-height: 20em;
  margin-bottom: 5rem;
}

.chart-container {
  height: 100%;
  width: 100%;
}

canvas {
  max-width: 100%;
  margin-bottom: 2rem;
  height: auto !important;
}

.flash-messages {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1050; /* Maior que o Bootstrap modal */
  width: 300px;
}

.flash-messages .alert {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.blue-line {
  border-top: 1px solid rgb(35, 114, 187);
  margin-top: 0.5em;
}

@media print {
  @page {
      margin: 1em; /* Remove margens extras */
      size: auto; /* Usa o tamanho padrão */
  }

  .not-print {
    display: none !important;
  }

  body {
      -webkit-print-color-adjust: exact; /* Mantém as cores */
      print-color-adjust: exact;
  }
}