/* ═══════════════════════════════════════════════════════════
   QARIBIA — Shared portal shell additions (operator + admin)
   -----------------------------------------------------------------
   Loaded by BOTH portals after operator.css / admin.css.
   Only covers what the two shells share and the base stylesheets
   don't: the pinned account block + Log out button at the bottom of
   the sidebar.

   Why pinned: the sidebar scrolls (overflow-y:auto). On a short
   laptop screen the nav is taller than the viewport, so a footer that
   is just "last in the flow" ends up below the fold and Log out looks
   like it doesn't exist. position:sticky keeps it on screen.
   ══════════════════════════════════════════════════════════ */

.op-sidebar__foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  background: var(--deep-green, #163126);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.op-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  min-width: 0;
}

.op-account__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.18);
  color: var(--gold-light, #E3BE7A);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
}

.op-account__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.op-account__name,
.op-account__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-account__name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.op-account__sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.op-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.op-logout i { font-size: 0.82rem; }

.op-logout:hover {
  background: rgba(192, 57, 43, 0.24);
  border-color: rgba(232, 128, 108, 0.55);
}

.op-logout:focus-visible {
  outline: 2px solid var(--gold-light, #E3BE7A);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   Page header: a little more air between breadcrumb and title.
   The title row that used to repeat the page name inside each page
   has been removed, so content starts straight under this header.
   ══════════════════════════════════════════════════════════ */
.op-header .op-breadcrumb { margin-bottom: 10px; }

/* "Add" button lives in the header on the Listings page. Hidden while
   the add/edit wizard is open, where it would be redundant. */
.op-header__add { white-space: nowrap; padding: 10px 18px; }
body:has(#lwView.active) #addListingBtn { display: none; }

@media (max-width: 640px) {
  .op-header__add span { display: none; }
  .op-header__add { padding: 10px 12px; }
}
