body {
  background: #f8f9fa;
}
table td {
  vertical-align: middle;
}

/* Results table styling */
.results-table {
  margin-top: 10px;
  font-size: 0.9em;
}
.results-table th {
  background-color: #f0f0f0;
  font-weight: 600;
}

/* Toast notification styling */
.custom-toast {
  animation: slideIn 0.3s ease-out;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Panel layout (sidebar + content) ─────────────────────── */
.rfq-panel-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ── Filter Sidebar ────────────────────────────────────────── */
.filter-sidebar {
  width: 215px;
  min-width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #e9ecef;
  padding-right: 16px;
  margin-right: 16px;
}
.sidebar-inner {
  position: sticky;
  top: 12px;
}
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6c757d;
}
.clear-all-link {
  font-size: 0.75rem;
  color: #adb5bd;
  text-decoration: none;
}
.clear-all-link:hover { color: #dc3545; text-decoration: none; }

.filter-group {
  border-bottom: 1px solid #f0f0f0;
  padding: 7px 0;
}
.filter-group:last-child { border-bottom: none; }

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #343a40;
  padding: 1px 0 3px;
  user-select: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.filter-group-header:hover { color: #0d6efd; }

.filter-caret {
  font-size: 0.65rem;
  color: #adb5bd;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
/* Bootstrap collapse uses .collapsed class on the toggle button */
.filter-group-header[aria-expanded="false"] .filter-caret { transform: rotate(-90deg); }

.filter-group-body { padding-top: 4px; }

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 0.78rem;
  cursor: pointer;
  color: #495057;
  margin-bottom: 0;
}
.filter-label:hover { color: #0d6efd; }
.filter-label input[type="checkbox"] { cursor: pointer; flex-shrink: 0; accent-color: #6c757d; }

.filter-scrollable-list {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 2px;
}
.filter-scrollable-list::-webkit-scrollbar { width: 4px; }
.filter-scrollable-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }

/* ── Priority dots ─────────────────────────────────────────── */
.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.priority-dot.high   { background-color: #198754; }
.priority-dot.medium { background-color: #ffc107; }
.priority-dot.low    { background-color: #dc3545; }

/* ── Seller trust dots ─────────────────────────────────────── */
.seller-trust-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  cursor: help;
  vertical-align: middle;
  margin-left: 3px;
  flex-shrink: 0;
}
.seller-trust-dot.trust-green  { background-color: #198754; }
.seller-trust-dot.trust-yellow { background-color: #ffc107; }
.seller-trust-dot.trust-red    { background-color: #dc3545; }

/* ── Panel content (right of sidebar) ─────────────────────── */
.panel-content {
  flex: 1;
  min-width: 0;
}

/* ── Active filter chips bar ───────────────────────────────── */
.active-filter-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px 4px 16px;
  background: #e7f1ff;
  color: #0a58ca;
  border: 1px solid #b6d4fe;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}
.chip-remove {
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 3px;
  border-radius: 50%;
  color: #6ea8fe;
}
.chip-remove:hover { background: #b6d4fe; color: #0a58ca; }

/* ── Watchlist priority badge in table ─────────────────────── */
.wl-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}
.wl-badge.high   { background: #198754; }
.wl-badge.medium { background: #ffc107; }
.wl-badge.low    { background: #dc3545; }