/* Owner app shell (dashboard, apartments, pool, requests, settings).
   Mobile first: bottom tab bar on phones, sidebar from 992px. On top of Bootstrap 5.3. */

:root {
  /* Pine green from the dms palette on its warm neutrals; yellow only as a small highlight */
  --o-bg: #f7f6f2;
  --o-surface: #ffffff;
  --o-surface-2: #f1efe9;
  --o-ink: #1c231f;
  --o-ink-2: #5d6660;
  --o-ink-3: #93998f;
  --o-line: #e4e1d5;
  --o-brand: #2e6f5e;
  --o-brand-strong: #1f4f43;
  --o-brand-soft: #e5f0eb;
  --o-accent: #2e6f5e;
  --o-accent-strong: #245a4c;
  --o-on-accent: #ffffff;
  --o-highlight: #ffc107;
  --o-hero: linear-gradient(135deg, #1f4f43 0%, #2e6f5e 55%, #3d8a74 100%);
  --o-sun: #d97706;
  --o-sun-soft: #fef3c7;
  --o-green: #15803d;
  --o-green-soft: #dcfce7;
  --o-coral: #e8573a;
  --o-coral-soft: #fde9e3;
  --o-violet: #6d28d9;
  --o-violet-soft: #ede9fe;
  --o-red: #dc2626;
  --o-red-soft: #fee2e2;
  --o-radius: 18px;
  --o-radius-sm: 12px;
  --o-shadow: 0 1px 2px rgba(15, 31, 51, 0.05), 0 6px 20px rgba(15, 31, 51, 0.06);
  --o-shadow-lg: 0 18px 50px rgba(15, 31, 51, 0.18);
  --o-tabbar-h: 72px;
  --o-sidebar-w: 248px;

  --bs-body-bg: var(--o-bg);
  --bs-body-color: var(--o-ink);
  --bs-border-color: var(--o-line);
  --bs-primary: var(--o-brand);
  --bs-primary-rgb: 46, 111, 94;
  --bs-link-color: var(--o-brand-strong);
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* clip (not hidden): stops sideways overflow without breaking position: sticky (the save bars) */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--o-bg);
  color: var(--o-ink);
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}
body.o-booting .o-main { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-brand {
  --bs-btn-color: var(--o-on-accent); --bs-btn-bg: var(--o-accent); --bs-btn-border-color: var(--o-accent);
  --bs-btn-hover-color: var(--o-on-accent); --bs-btn-hover-bg: var(--o-accent-strong); --bs-btn-hover-border-color: var(--o-accent-strong);
  --bs-btn-active-color: var(--o-on-accent); --bs-btn-active-bg: var(--o-brand-strong); --bs-btn-active-border-color: var(--o-brand-strong);
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.85); --bs-btn-disabled-bg: #8fb3a8; --bs-btn-disabled-border-color: #8fb3a8;
  box-shadow: 0 4px 12px rgba(46, 111, 94, 0.22);
}
.btn-soft {
  --bs-btn-color: var(--o-ink); --bs-btn-bg: var(--o-surface-2); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--o-ink); --bs-btn-hover-bg: #e2e9f1; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #d9e2ec; --bs-btn-active-border-color: transparent;
}
.btn-soft-danger {
  --bs-btn-color: var(--o-red); --bs-btn-bg: var(--o-red-soft); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--o-red); --bs-btn-hover-border-color: var(--o-red);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #b91c1c;
}
.btn-success-solid {
  --bs-btn-color: #fff; --bs-btn-bg: var(--o-green); --bs-btn-border-color: var(--o-green);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #166534; --bs-btn-hover-border-color: #166534;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #14532d;
}
.btn:focus-visible, .o-chip:focus-visible, .o-tab:focus-visible, .o-nav a:focus-visible {
  outline: 3px solid rgba(46, 111, 94, 0.35); outline-offset: 2px; box-shadow: none;
}
.form-control, .form-select { border-radius: 12px; border-color: var(--o-line); min-height: 46px; min-width: 0; }
/* iOS gives date inputs a wide intrinsic size; keep them inside their column */
input[type="date"].form-control, input[type="datetime-local"].form-control { width: 100%; max-width: 100%; -webkit-appearance: none; appearance: none; }
.form-control:focus, .form-select:focus { border-color: var(--o-brand); box-shadow: 0 0 0 4px rgba(46, 111, 94, 0.14); }
.form-label { font-size: 0.8rem; font-weight: 700; color: var(--o-ink-2); margin-bottom: 6px; }

/* ---------- Shell: top bar ---------- */
.o-topbar {
  position: sticky; top: 0; z-index: 1020;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.o-topbar.scrolled { border-bottom-color: var(--o-line); }
.o-topbar__brand { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--o-highlight); background: var(--o-hero); box-shadow: 0 4px 12px rgba(31, 79, 67, 0.3); }
.o-back { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--o-surface); color: var(--o-ink); box-shadow: var(--o-shadow); text-decoration: none; }
.o-back:hover { color: var(--o-brand); }
.o-topbar__title { flex: 1; min-width: 0; }
.o-topbar__title h1 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-topbar__title p { margin: 0; font-size: 0.78rem; color: var(--o-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.o-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem; flex-shrink: 0; letter-spacing: 0.02em;
}
.o-avatar.sm { width: 34px; height: 34px; font-size: 0.8rem; }
.o-avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.o-menu { border: 0; border-radius: 16px; box-shadow: var(--o-shadow-lg); padding: 8px; min-width: 240px; }
.o-menu .dropdown-item { border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 0.92rem; }
.o-menu .dropdown-item i { width: 22px; color: var(--o-ink-3); }
.o-menu__head { padding: 8px 12px 10px; border-bottom: 1px solid var(--o-line); margin-bottom: 6px; }
.o-menu__head b { display: block; }
.o-menu__head small { color: var(--o-ink-2); word-break: break-all; }

/* ---------- Shell: navigation ---------- */
.o-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--o-line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  display: flex;
}
.o-nav__brand, .o-nav__user { display: none; }
.o-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--o-ink-3); text-decoration: none; font-size: 0.68rem; font-weight: 700;
  padding: 6px 2px; border-radius: 14px; position: relative; min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.o-nav a span.o-nav__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.o-nav__icon { width: 46px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: background 0.2s, color 0.2s; position: relative; }
.o-nav a.active { color: var(--o-brand-strong); }
.o-nav a.active .o-nav__icon { background: var(--o-brand-soft); color: var(--o-brand); }
.o-nav a:active .o-nav__icon { transform: scale(0.94); }
.o-badge {
  position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #bd5b41; color: #fff; font-size: 0.65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.o-badge[hidden] { display: none !important; }

.o-main { padding: 12px 16px calc(var(--o-tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: 1240px; margin: 0 auto; }
/* Narrow phones: keep all six tab labels readable */
@media (max-width: 991.98px) { .o-nav__icon { width: 40px; } }
@media (max-width: 419.98px) {
  .o-nav { padding-left: 2px; padding-right: 2px; }
  .o-nav a { font-size: 0.6rem; letter-spacing: -0.02em; padding-left: 0; padding-right: 0; }
  .o-nav__icon { width: 36px; }
}
@media (max-width: 359.98px) { .o-nav a { font-size: 0.55rem; } }

@media (min-width: 992px) {
  .o-nav {
    top: 0; right: auto; width: var(--o-sidebar-w); flex-direction: column; gap: 4px;
    border-top: 0; border-right: 1px solid var(--o-line); padding: 22px 14px; background: var(--o-surface);
  }
  .o-nav__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-weight: 800; font-size: 1.05rem; color: var(--o-ink); }
  .o-nav__brand small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--o-ink-3); }
  .o-nav a { flex: 0 0 auto; flex-direction: row; gap: 12px; font-size: 0.92rem; padding: 8px 10px; color: var(--o-ink-2); }
  .o-nav a:hover { background: var(--o-surface-2); color: var(--o-ink); }
  .o-nav a.active { background: var(--o-hero); color: #fff; box-shadow: 0 4px 12px rgba(31, 79, 67, 0.22); }
  .o-nav a.active:hover { color: #fff; }
  .o-nav a.active .o-nav__icon { background: transparent; }
  .o-nav__icon { width: 26px; height: 26px; }
  .o-nav .o-badge { position: static; margin-left: auto; border: 0; }
  .o-nav__user { display: flex; margin-top: auto; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--o-line); }
  .o-nav__user div { min-width: 0; }
  .o-nav__user b { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .o-nav__user small { color: var(--o-ink-3); font-size: 0.75rem; }
  .o-shell-body { padding-left: var(--o-sidebar-w); }
  .o-topbar { padding: 18px 32px 14px; }
  .o-topbar__brand { display: none; }
  .o-topbar__title h1 { font-size: 1.5rem; }
  .o-topbar__title p { font-size: 0.85rem; }
  .o-main { padding: 8px 32px 48px; }
}

/* ---------- Building blocks ---------- */
.o-card { background: var(--o-surface); border-radius: var(--o-radius); box-shadow: var(--o-shadow); }
.o-section { margin-top: 22px; }
.o-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.o-section__head h2 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--o-ink-2); margin: 0; display: flex; align-items: center; gap: 8px; }
.o-section__head a, .o-link { font-size: 0.85rem; font-weight: 700; color: var(--o-brand); text-decoration: none; }

.o-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.o-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-pill.no-dot::before { display: none; }
.o-pill.green { background: var(--o-green-soft); color: var(--o-green); }
.o-pill.sun { background: var(--o-sun-soft); color: var(--o-sun); }
.o-pill.brand { background: var(--o-brand-soft); color: var(--o-brand-strong); }
.o-pill.grey { background: var(--o-surface-2); color: var(--o-ink-2); }
.o-pill.red { background: var(--o-red-soft); color: var(--o-red); }
.o-pill.violet { background: var(--o-violet-soft); color: var(--o-violet); }
.o-pill.coral { background: var(--o-coral-soft); color: var(--o-coral); }

.o-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.o-chips::-webkit-scrollbar { display: none; }
.o-chip {
  border: 1px solid var(--o-line); background: var(--o-surface); color: var(--o-ink-2);
  border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; text-decoration: none;
}
a.o-chip:hover { color: var(--o-ink); border-color: var(--o-ink-3); }
a.o-chip.active:hover { color: #fff; }
.o-chip .count { background: var(--o-surface-2); border-radius: 999px; padding: 0 7px; font-size: 0.72rem; color: var(--o-ink-2); }
.o-chip.active { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.o-chip.active .count { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Segmented tabs */
.o-tabs { display: flex; background: var(--o-surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.o-tab { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 9px 10px; font-weight: 700; font-size: 0.88rem; color: var(--o-ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.o-tab .count { background: rgba(15, 31, 51, 0.08); border-radius: 999px; padding: 0 7px; font-size: 0.72rem; }
.o-tab.active { background: var(--o-surface); color: var(--o-ink); box-shadow: 0 1px 3px rgba(15, 31, 51, 0.12); }
.o-tab.active .count { background: var(--o-brand-soft); color: var(--o-brand-strong); }
/* Three tabs on a phone: drop the icons so the labels fit */
@media (max-width: 479.98px) {
  .o-tabs--3 .o-tab { padding: 9px 6px; gap: 5px; font-size: 0.82rem; }
  .o-tabs--3 .o-tab > i { display: none; }
}

/* Stat tiles */
.o-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .o-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.o-stat { padding: 14px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border: 0; text-align: left; width: 100%; transition: transform 0.15s, box-shadow 0.15s; }
a.o-stat:hover, button.o-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 31, 51, 0.1); color: inherit; }
.o-stat__icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.o-stat b { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.o-stat span { font-size: 0.8rem; color: var(--o-ink-2); font-weight: 600; }
.o-stat__top { display: flex; justify-content: space-between; align-items: flex-start; }
.o-stat__top i.fa-arrow-right { color: var(--o-ink-3); font-size: 0.8rem; }
.tone-brand { background: var(--o-brand-soft); color: var(--o-brand); }
.tone-green { background: var(--o-green-soft); color: var(--o-green); }
.tone-sun { background: var(--o-sun-soft); color: var(--o-sun); }
.tone-coral { background: var(--o-coral-soft); color: var(--o-coral); }
.tone-violet { background: var(--o-violet-soft); color: var(--o-violet); }
.tone-grey { background: var(--o-surface-2); color: var(--o-ink-2); }
.tone-red { background: var(--o-red-soft); color: var(--o-red); }

/* List rows */
.o-list { padding: 4px 0; }
.o-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; }
.o-row + .o-row { border-top: 1px solid var(--o-line); }
a.o-row:hover, button.o-row:hover { background: var(--o-surface-2); color: inherit; }
button.o-row { width: 100%; border: 0; background: none; text-align: left; }
.o-row__icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.o-row__body { flex: 1; min-width: 0; }
.o-row__title { font-weight: 700; font-size: 0.94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-row__sub { font-size: 0.8rem; color: var(--o-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-row__end { font-size: 0.78rem; color: var(--o-ink-3); font-weight: 600; text-align: right; flex-shrink: 0; }
.o-row__chev { color: var(--o-ink-3); font-size: 0.8rem; }

/* Media placeholder (apartments have few or no photos) */
.o-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: size; background: #e3e2de; }
.o-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
/* No photo: soft grey with a faint icon and a blurred "NO IMAGE" (sizes follow the box via container units) */
.o-media__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqh;
  color: #a4a39d;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 10px, rgba(0, 0, 0, 0) 10px 20px),
    linear-gradient(180deg, #ebeae6 0%, #dddcd7 100%);
}
.o-media__ph i { font-size: clamp(0.9rem, 22cqh, 3rem); opacity: 0.55; }
.o-media__ph b {
  font-size: clamp(0.5rem, 9cqw, 1.25rem); font-weight: 800; letter-spacing: 0.32em; text-indent: 0.32em; text-transform: uppercase; white-space: nowrap;
  color: #9d9c96; filter: blur(0.6px); text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 2px rgba(0, 0, 0, 0.08);
}
.o-media__tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.o-media__tr { position: absolute; top: 12px; right: 12px; z-index: 2; }
.o-media .o-pill { background: rgba(255, 255, 255, 0.94); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.o-price-tag { background: rgba(15, 31, 51, 0.82); color: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 0.95rem; backdrop-filter: blur(6px); }
.o-price-tag small { font-weight: 600; opacity: 0.8; font-size: 0.72rem; }

/* Grids */
.o-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .o-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .o-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Facts row */
.o-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--o-ink-2); }
.o-facts span { display: inline-flex; align-items: center; gap: 6px; }
.o-facts i { color: var(--o-ink-3); }

/* Info box */
.o-box { border-radius: 14px; padding: 12px 14px; font-size: 0.88rem; display: flex; gap: 10px; align-items: flex-start; }
.o-box i { margin-top: 2px; }
.o-box.grey { background: var(--o-surface-2); color: var(--o-ink-2); }
.o-box.green { background: var(--o-green-soft); color: #14532d; }
.o-box.sun { background: var(--o-sun-soft); color: #78350f; }
.o-box.brand { background: var(--o-brand-soft); color: var(--o-brand-strong); }
.o-box.red { background: var(--o-red-soft); color: #7f1d1d; }

/* Empty / error / skeleton */
.o-empty { text-align: center; padding: 40px 20px; color: var(--o-ink-2); }
.o-empty__icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.o-empty h3 { font-size: 1.05rem; font-weight: 800; color: var(--o-ink); margin-bottom: 4px; }
.o-empty p { font-size: 0.9rem; margin: 0 auto 14px; max-width: 320px; }
.o-skel { background: linear-gradient(90deg, #e9eef4 25%, #f4f7fa 37%, #e9eef4 63%); background-size: 400% 100%; animation: o-shimmer 1.3s ease infinite; border-radius: 10px; }
@keyframes o-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.o-rise { animation: o-rise 0.32s ease both; }
@keyframes o-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-rise, .o-skel { animation: none; } }

/* Bottom sheet (Bootstrap modal that docks to the bottom on phones) */
.o-sheet .modal-content { border: 0; border-radius: 24px; box-shadow: var(--o-shadow-lg); }
.o-sheet .modal-header { border: 0; padding: 18px 20px 6px; }
.o-sheet .modal-title { font-weight: 800; font-size: 1.1rem; }
.o-sheet .modal-body { padding: 8px 20px 20px; }
.o-sheet .modal-footer { border-top: 1px solid var(--o-line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
@media (max-width: 575.98px) {
  .o-sheet .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; max-width: none; min-height: 0; height: auto !important; }
  .o-sheet.fade .modal-dialog { transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .o-sheet.show .modal-dialog { transform: none; }
  .o-sheet .modal-content { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .o-sheet .modal-dialog-scrollable .modal-content { max-height: 92vh; }
  .o-sheet .modal-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--o-line); }
}

/* SweetAlert2 look */
.swal2-popup.o-swal { border-radius: 22px; font-family: var(--bs-font-sans-serif); padding-bottom: 1.25rem; }
.swal2-popup.o-swal .swal2-title { font-size: 1.2rem; font-weight: 800; color: var(--o-ink); }
.swal2-popup.o-swal .swal2-html-container { color: var(--o-ink-2); font-size: 0.95rem; }
.swal2-popup.o-swal .swal2-actions { gap: 8px; }
.swal2-popup.o-swal .swal2-actions .btn { min-width: 120px; padding: 10px 18px; }
.swal2-container { z-index: 2000; }

.visually-hidden-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 3000; background: #fff; padding: 8px 12px; border-radius: 10px; }

/* "Add Rent" buttons: #ffc107 with dark text */
.btn-rent {
  --bs-btn-color: #1c231f; --bs-btn-bg: #ffc107; --bs-btn-border-color: #ffc107;
  --bs-btn-hover-color: #1c231f; --bs-btn-hover-bg: #e0a800; --bs-btn-hover-border-color: #e0a800;
  --bs-btn-active-color: #1c231f; --bs-btn-active-bg: #d39e00; --bs-btn-active-border-color: #d39e00;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.o-fab.btn-rent { box-shadow: 0 10px 26px rgba(224, 168, 0, 0.45); }
.action i.tone-rent { background: #ffc107; color: #1c231f; }

/* Floating add button on phones; sits above the tab bar */
.o-fab { position: fixed; right: 16px; bottom: calc(var(--o-tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 1025; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 26px rgba(31, 79, 67, 0.35); }
@media (min-width: 992px) { .o-fab { position: static; box-shadow: none; padding: 10px 16px; border-radius: 12px; } }

/* Form card sections */
.o-form-section { padding: 18px; }
.o-form-section + .o-form-section { border-top: 1px solid var(--o-line); }
.o-form-section h2 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--o-ink-2); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.o-switch { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.o-switch + .o-switch { border-top: 1px dashed var(--o-line); }
.o-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 2px 0 0; flex-shrink: 0; cursor: pointer; }
.o-switch .form-check-input:checked { background-color: var(--o-accent); border-color: var(--o-accent-strong); }
.o-switch label { cursor: pointer; }
.o-switch b { display: block; font-size: 0.92rem; }
.o-switch small { color: var(--o-ink-2); }
.o-switch a { color: var(--o-brand); font-weight: 600; }
.o-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.o-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--o-surface-2); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 0.85rem; font-weight: 600; }
.o-tag button { border: 0; background: rgba(15, 31, 51, 0.08); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--o-ink-2); }
.o-tag button:hover { background: var(--o-red-soft); color: var(--o-red); }
.o-tag.locked { background: var(--o-brand-soft); color: var(--o-brand-strong); padding-right: 12px; }
.o-sticky-actions { position: sticky; bottom: calc(var(--o-tabbar-h) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--o-bg) 70%, transparent); padding: 14px 0 10px; margin-top: 8px; display: flex; gap: 10px; z-index: 5; }
@media (min-width: 992px) { .o-sticky-actions { bottom: 0; } }
.o-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.o-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--o-ink-3); font-weight: 800; padding: 10px 14px; text-align: left; background: var(--o-surface-2); }
.o-table td { padding: 12px 14px; border-top: 1px solid var(--o-line); }
.o-table .num { text-align: right; font-variant-numeric: tabular-nums; }
