/* ===============================
   FIXED CONTEXT BAR
================================ */

.context-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: var(--bg-main);
  border-bottom: var(--border-soft);
  z-index: var(--z-header);
}

/* ===============================
   PAGE BODY
================================ */

.body-container {
  padding-top: 52px;
  padding-bottom: calc(var(--bottom-nav-height) + 12px);
}

/* ===============================
   SEARCH
================================ */

.search-container {
  padding: var(--space-md);
}

.wrap-search-border {
  display: flex;
  align-items: center;
  border: 1px solid #eaeaea;
  padding: 14px 16px;
  border-radius: 14px;
}

#searchBar {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  margin-left: 8px;
  font-family: var(--font-main);
}

/* ===============================
   AGENT LIST
================================ */

#agent-container {
  margin: 0;
  background: var(--bg-main);
}

/* ===============================
   AGENT CARD
================================ */

.agent-card {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--text-main);
}

.agent-card:last-child {
  border-bottom: none;
}

.agent-card:active {
  background: #f9f9f9;
}

/* ===============================
   CARD CONTENT
================================ */

.agent-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-name {
  font-size: 15px;
  font-weight: 600;
}

.agent-status {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.agent-status.open {
  color: var(--color-success);
}

.agent-status.closed {
  color: var(--color-danger);
}

.agent-networks {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.agent-distance {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.agent-footer {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.agent-footer.cash-ready {
  color: var(--color-success);
}

.agent-footer.no-cash {
  color: var(--color-danger);
}

/* ===============================
   HEADER LINKS FIX
================================ */

.context-bar {
  font-size: 14px;
}

.context-links {
  display: flex;
  gap: 14px;
}

.context-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
}

.context-links a:active {
  opacity: 0.7;
}


