body {
  font-size: 0.9rem;
}


html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.spacer {
  min-height: 300px;
}

#main-content {
  padding-top: 4rem;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
  #main-content {
    padding-top: 1rem;
    padding-left: 220px; /* match sidebar width */
  }
}

.sidebar-logo {
  font-weight: bold;
  font-size: 1.1rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.text-muted.small {
  padding-left: 0.25rem;
  padding-top: 1rem;
}


.offcanvas-body {
  overflow-y: auto;
  max-height: calc(100vh - 56px); /* Adjust if you have a header */
}


.offcanvas .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}


nav.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.5) !important; /* light gray on dark */
}


#refreshBtn {
  z-index: 9999;
  opacity: 0.9;
}
#refreshBtn:hover {
  opacity: 1;
}


div#pushSetup {
    margin-bottom: 0;
    text-align: center;
}


.title-button .btn {
    margin-bottom: 0 !important;
}


.meta_date {
    font-style: italic;
    padding-right: 10px;
}


.leaflet-popup-content a.btn-secondary {
    color: #fff;
}



.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 8px;
}

.trend-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-card span.text-muted {
  opacity: 0.2;
}
.stat-card span.text-small {
  font-size: 0.5em;
  opacity: 0.4;
}

.dropdown-toggle::after {
    display: none;
}


/* Full-screen overlay — hidden by default */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;

  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .2s ease;
}

/* Open state driven by ARIA */
#overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay__content {
  font: 500 1rem/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-align: center;
  display: grid;
  gap: .75rem;
  place-items: center;
}

/* Minimal spinner */
.overlay__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fixed close button (always in viewport corner) */
.overlay__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.overlay__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #overlay { transition: none; }
}


/* /v2/products/products.css */
.product-card {
  transition: box-shadow .15s ease;
}
.product-card:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}
.product-thumb {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.low-warning { background: rgba(255, 193, 7, 0.08); }
.low-danger { background: rgba(220, 53, 69, 0.08); }


img#currentImage {
  max-width: 100%;
}



/* keep toasts above modals/backdrops on mobile */
#toastArea { z-index: 2000; } /* > bootstrap modal/backdrop */