/* BoothNest v4.5.1 Courtney inventory safety polish */

:root {
  --bn451-green: #166534;
  --bn451-soft: #ecfdf3;
  --bn451-line: #dbeade;
  --bn451-ink: #0f172a;
  --bn451-muted: #64748b;
}

/* Make the simple inventory/gallery easier to scan */
.simple-inventory-wrap,
.bn-simple-inventory,
.inventory-page,
.simple-gallery,
.gallery-grid {
  overflow: visible !important;
}

.simple-gallery,
.gallery-grid,
.inventory-gallery-grid {
  align-items: stretch !important;
}

.simple-gallery > *,
.gallery-grid > *,
.inventory-gallery-grid > *,
.bn-gallery-card,
.simple-gallery-card,
.item-gallery-card,
.inventory-gallery-card {
  overflow: visible !important;
  position: relative !important;
}

/* Equal, predictable action buttons */
.bn-gallery-actions,
.gallery-actions,
.item-actions,
.simple-card-actions,
.card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.bn-gallery-actions a,
.bn-gallery-actions button,
.gallery-actions a,
.gallery-actions button,
.item-actions a,
.item-actions button,
.simple-card-actions a,
.simple-card-actions button,
.card-actions a,
.card-actions button {
  width: 100% !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  text-align: center !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

/* Stop More menus from getting trapped under cards */
.dropdown,
.more-menu,
.more-dropdown,
.item-more-menu,
[data-more-menu] {
  position: relative !important;
  overflow: visible !important;
  z-index: 50 !important;
}

.dropdown-menu,
.more-menu-panel,
.more-dropdown-panel,
.item-more-menu-panel,
[data-more-panel] {
  z-index: 9999 !important;
  max-width: min(92vw, 320px) !important;
}

/* Subtle high-confidence selected item highlight */
.bn451-selected,
.bn-selected-photo-item,
[data-selected-photo-item="1"] {
  outline: 3px solid var(--bn451-green) !important;
  box-shadow: 0 0 0 6px rgba(22, 101, 52, .14) !important;
  border-radius: 16px !important;
}

/* Make Courtney mode links/cards cleaner without changing PHP */
a[href*="simple/add"],
a[href*="simple/find"],
a[href*="simple/today"],
a[href*="simple/photos"] {
  text-decoration-thickness: 2px;
}

/* Reduce accidental tiny tap targets */
button,
.btn,
a.btn,
.action-btn,
.bn-btn {
  min-height: 40px;
}

@media (max-width: 760px) {
  .bn-gallery-actions,
  .gallery-actions,
  .item-actions,
  .simple-card-actions,
  .card-actions {
    gap: 8px !important;
  }

  .bn-gallery-actions a,
  .bn-gallery-actions button,
  .gallery-actions a,
  .gallery-actions button,
  .item-actions a,
  .item-actions button,
  .simple-card-actions a,
  .simple-card-actions button,
  .card-actions a,
  .card-actions button {
    min-height: 48px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
  }
}