/* ── Sticky headers ───────────────────────────────────── */
.header {
  padding: 0.6rem 1rem;
  background-color: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 8px;
  position: sticky;
  top: -1px;
  z-index: 3;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

h3.header {
  font-size: 0.95rem;
  line-height: 1.5rem;
  z-index: 2;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  box-shadow: none;
  z-index: 3;
  top: 30px;
}

.header.is-pinned {
  margin-left: 9rem;
  width: calc(100% - 11rem);
  border: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ── GroupBy mode ─────────────────────────────────────── */
body[groupBy="1"] img {
  filter: grayscale(80%);
  opacity: 0.85;
}

/* ── Search form ──────────────────────────────────────── */
#searchForm {
  margin: 1.5rem 0 0.5rem;
  position: relative;
}

#searchForm .form-control {
  border-radius: 8px 0 0 8px;
  border-color: #ced4da;
  font-size: 0.95rem;
}

#searchForm .btn {
  border-radius: 0 8px 8px 0;
}

/* ── Search overlay ───────────────────────────────────── */
body.showSearchResults::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.55);
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  position: fixed;
  z-index: 34;
  backdrop-filter: blur(2px);
}

/* ── Search results dropdown ──────────────────────────── */
#searchResult.show {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 50;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 0.75rem;
  width: 100%;
  left: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 420px;
  overflow-y: auto;
}

.col[data-set-id] {
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.col[data-set-id] p {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.col[data-set-id] img {
  border-radius: 4px;
  max-height: 80px;
  width: 100%;
  object-fit: contain;
}

.col[data-set-id]:hover {
  background-color: #0d6efd;
  color: #fff;
}

.col[data-set-id]:hover small {
  color: rgba(255,255,255,0.8);
}
