/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.receipt-form-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1020; /* keep above card body content */
  background: #f7f7f7;
  padding: 0.5rem 0 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.flash-highlight {
  animation: flash-highlight 0.6s ease-in-out;
}

@keyframes flash-highlight {
  0%   { background-color: rgba(255, 243, 205, 0.8); }
  100% { background-color: transparent; }
}

.suggestions-box {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-row {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  min-width: 180px;
  flex: 1 1 220px;
}
