/* =====================================================================
   Review card actions (owner / agent / builder card grids — _AdminReviewCard).
   Row 1: Review & verify + icon tools. Row 2: Approve / Reject, or Hide + Availability menu.
   ===================================================================== */
.rc-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e8edf3;
}

.rc-actions__main,
.rc-actions__manage {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

.rc-actions .rc-actions__grow {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

/* Base button */
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rc-btn:hover {
  border-color: #c3cfdc;
  background: #f6f8fb;
  color: #0f172a;
}

.rc-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Review & verify: fills the row; solid blue while the listing waits for a decision */
.rc-btn--open {
  flex: 1 1 auto;
  width: auto;
  border-color: #bfd3fb;
  color: #1d4ed8;
}

.rc-btn--open:hover {
  border-color: #93b4f8;
  background: #eff5ff;
  color: #1e40af;
}

.rc-btn--open.is-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.rc-btn--open.is-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

/* Square icon tools (History, Edit) */
.rc-btn--icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  padding: 0;
  color: #475569;
}

.rc-btn--icon .bi-clock-history {
  color: #7c3aed;
}

.rc-btn--quiet {
  color: #334155;
}

.rc-btn--quiet .bi {
  color: #64748b;
}

.rc-btn--go {
  border-color: #bbe5cb;
  background: #f0fbf4;
  color: #166534;
}

.rc-btn--go:hover {
  border-color: #86d3a3;
  background: #e3f7ea;
  color: #14532d;
}

.rc-btn--menu .rc-btn__caret {
  margin-left: auto;
  font-size: 0.7rem;
}

.rc-btn--menu[aria-expanded="true"] {
  border-color: #c3cfdc;
  background: #f6f8fb;
}

/* Availability menu */
.rc-menu {
  min-width: 12.5rem;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.rc-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
}

.rc-menu__item .bi {
  width: 1rem;
  color: #64748b;
}

.rc-menu li:first-child .rc-menu__item .bi {
  color: #16a34a;
}

/* Approve / Reject (from _AdminListingReviewActions) — same height and corners as the other buttons */
.rc-actions .admin-listing-review-actions--card {
  margin-top: 0;
  gap: 0.4rem;
}

.rc-actions .admin-listing-review-actions--card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Each card's action row is its own stacking layer (site.css z-index: 2), so the next card would paint over
   an open Availability menu. Lift the row that holds the open menu above its neighbours. */
.admin-review-mcard__actions.rc-actions:has(.dropdown-menu.show) {
  z-index: 1050;
}
