:root {
  --bos-navy: #0f1729;
  --bos-navy-light: #1a2540;
  --bos-blue: #2f6feb;
  --bos-blue-light: #eaf1fe;
  --bos-green: #16a34a;
  --bos-green-light: #e8f8ee;
  --bos-orange: #f59e0b;
  --bos-orange-light: #fef3e2;
  --bos-purple: #8b5cf6;
  --bos-purple-light: #f2edfe;
  --bos-red: #ef4444;
  --bos-text: #1f2937;
  --bos-muted: #6b7280;
  --bos-border: #e5e7eb;
  --bos-bg: #f5f7fb;
}

* { box-sizing: border-box; }

body {
  background: var(--bos-bg);
  color: var(--bos-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
}

/* ---------- Layout ---------- */
.bos-app { display: flex; min-height: 100vh; }

.bos-sidebar {
  width: 68px;
  flex-shrink: 0;
  background: var(--bos-navy);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  z-index: 100;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}
.bos-sidebar:hover,
body.bos-sidebar-pinned-open .bos-sidebar {
  width: 248px;
  overflow-y: auto;
  box-shadow: 6px 0 28px rgba(15, 23, 41, 0.22);
}

.bos-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.bos-sidebar-brand .logo-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bos-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15.5px;
  flex-shrink: 0;
}
.bos-sidebar-brand .brand-label {
  opacity: 0;
  transition: opacity 0.12s ease;
  overflow: hidden;
}
.bos-sidebar:hover .bos-sidebar-brand .brand-label,
body.bos-sidebar-pinned-open .bos-sidebar-brand .brand-label {
  opacity: 1;
  transition: opacity 0.22s ease 0.08s;
}
.bos-sidebar-pin {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #8a97b5;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.12s ease, color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.bos-sidebar:hover .bos-sidebar-pin,
body.bos-sidebar-pinned-open .bos-sidebar-pin {
  opacity: 1;
  transition: opacity 0.22s ease 0.08s, color 0.15s ease, background 0.15s ease;
}
.bos-sidebar-pin:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bos-sidebar-pin.active { color: var(--bos-blue); }

.bos-nav { padding: 10px 10px 24px; }
.bos-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #b8c2d9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}
.bos-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.bos-nav a.active { background: var(--bos-blue); color: #fff; }
.bos-nav .icon { width: 16px; text-align: center; opacity: 0.9; flex-shrink: 0; }
.bos-nav .nav-label {
  opacity: 0;
  transition: opacity 0.1s ease;
}
.bos-sidebar:hover .bos-nav .nav-label,
body.bos-sidebar-pinned-open .bos-nav .nav-label {
  opacity: 1;
  transition: opacity 0.22s ease 0.08s;
}

.bos-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 68px;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
body.bos-sidebar-pinned-open .bos-main {
  margin-left: 248px;
}

/* Hover-to-expand relies on a real hover state, which touch devices don't
   have - on small screens, fall back to the sidebar's original always-open
   behavior rather than leaving it stuck as an unusable icon-only rail. */
@media (max-width: 768px) {
  .bos-sidebar {
    position: sticky;
    width: 248px;
    overflow-y: auto;
  }
  .bos-sidebar-brand .brand-label,
  .bos-sidebar-pin,
  .bos-nav .nav-label {
    opacity: 1;
  }
  .bos-main {
    margin-left: 0;
  }
}


.bos-topbar {
  background: #fff;
  border-bottom: 1px solid var(--bos-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.bos-topbar .search input {
  border: 1px solid var(--bos-border);
  border-radius: 8px;
  padding: 8px 12px;
  width: 340px;
  font-size: 16px;
  background: var(--bos-bg);
}
.bos-user { display: flex; align-items: center; gap: 10px; }
.bos-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bos-blue-light); color: var(--bos-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15.5px;
}

.bos-content { padding: 22px 24px; flex: 1; }

/* ---------- Cards ---------- */
.bos-card {
  background: #fff;
  border: 1px solid var(--bos-border);
  border-radius: 12px;
  padding: 18px;
  min-height: auto !important;
}
.bos-card + .bos-card { margin-top: 18px; }
.bos-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-text);
  margin-bottom: 4px;
}
.bos-card-sub { color: var(--bos-muted); font-size: 16px; }

.bos-kpi-label { color: var(--bos-muted); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;}
.bos-kpi-value { font-size: 24px; font-weight: 800; margin-top: 4px; }

/* Wraps a .bos-card in a link (KPI metrics that navigate somewhere)
   without it looking/behaving like a normal blue underlined link. */
a.bos-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .12s ease, transform .12s ease;
}
a.bos-card-link:hover {
  box-shadow: 0 2px 10px rgba(15, 23, 41, 0.08);
  transform: translateY(-1px);
}
a.bos-card-link:hover .bos-kpi-value { color: var(--bos-blue); }

/* ---------- Icon badges (colored square, used on KPI cards) ---------- */
.bos-icon-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bos-icon-badge-blue   { background: var(--bos-blue-light);   color: var(--bos-blue); }
.bos-icon-badge-green  { background: var(--bos-green-light);  color: var(--bos-green); }
.bos-icon-badge-orange { background: var(--bos-orange-light); color: var(--bos-orange); }
.bos-icon-badge-purple { background: var(--bos-purple-light); color: var(--bos-purple); }
.bos-icon-badge-red    { background: #fee2e2; color: var(--bos-red); }

.bos-kpi-trend { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.bos-kpi-trend-up   { color: var(--bos-green); }
.bos-kpi-trend-down { color: var(--bos-red); }
.bos-kpi-trend-flat { color: var(--bos-muted); font-weight: 500; }

/* ---------- Donut chart with a value centered inside the ring ---------- */
.bos-donut-wrap { position: relative; }
.bos-donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.bos-donut-center .value { font-size: 22px; font-weight: 800; color: var(--bos-text); line-height: 1; }
.bos-donut-center .label { font-size: 11px; color: var(--bos-muted); margin-top: 2px; }

/* ---------- Ranked bar list (e.g. "Top Properties by Rent") ---------- */
.bos-ranked-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.bos-ranked-rank {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bos-bg); color: var(--bos-muted);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bos-ranked-body { flex: 1; min-width: 0; }
.bos-ranked-label-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 3px; }
.bos-ranked-bar-track { height: 6px; border-radius: 999px; background: var(--bos-bg); overflow: hidden; }
.bos-ranked-bar-fill { height: 100%; border-radius: 999px; background: var(--bos-blue); }

/* ---------- Avatar (initials circle, for tenants/contacts without a photo) ---------- */
.bos-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bos-blue-light); color: var(--bos-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ---------- Badges ---------- */
.bos-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
.bos-badge-lead    { background: var(--bos-blue-light);  color: var(--bos-blue); }
.bos-badge-active  { background: var(--bos-green-light); color: var(--bos-green); }
.bos-badge-prospect{ background: var(--bos-orange-light);color: var(--bos-orange); }
.bos-badge-inactive{ background: #f3f4f6; color: #6b7280; }
.bos-badge-danger  { background: #fee2e2; color: #dc2626; }

/* ---------- Tables ---------- */
.bos-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bos-table th {
  text-align: left;
  color: var(--bos-muted);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bos-border);
}
.bos-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bos-border);
  vertical-align: middle;
}
.bos-table tr:last-child td { border-bottom: none; }
.bos-table tr:hover { background: #fafbfd; }

/* ---------- Buttons ---------- */
.btn-bos-primary {
  background: var(--bos-blue);
  border: 1px solid var(--bos-blue);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  padding: 8px 16px;
}
.btn-bos-primary:hover { background: #2660d1; color: #fff; }

.btn-bos-outline {
  background: #fff;
  border: 1px solid var(--bos-border);
  color: var(--bos-text);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  padding: 8px 16px;
}
.btn-bos-outline:hover { background: var(--bos-bg); }

/* Our custom classes set a fixed padding/font-size, which otherwise
   silently overrides Bootstrap's .btn-sm sizing wherever the two are
   combined. Match Bootstrap's own small-button scale here so btn-sm
   actually shrinks things - keeps every .btn-bos-* + .btn-sm pairing
   in the app visually consistent (Edit/Delete pairs, table row
   actions, etc.) instead of only some of them respecting btn-sm. */
.btn-bos-primary.btn-sm,
.btn-bos-outline.btn-sm {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
}

/* ---------- Misc ---------- */
.bos-empty { text-align: center; padding: 48px 20px; color: var(--bos-muted); }
.bos-avatar-sm {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bos-blue-light); color: var(--bos-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: -0.5px;
}
.bos-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bos-navy);
}
.bos-login-card {
  background: #fff; border-radius: 14px; padding: 36px; width: 380px;
}

/* ============================================================
   Property Management - Bootstrap 5.x interface
   Bootstrap handles the grid, cards, spacing, tables and controls.
   These rules only provide the module-specific dimensions/colors.
   ============================================================ */
.pm-app-bg { background:#f7f9fc; font-size:16px; }
.pm-sidebar { width:220px; min-height:100vh; background:#071d36; position:sticky; top:0; height:100vh; }
.pm-logo { width:38px; height:38px; border-radius:10px; background:#2f6feb; color:#fff; font-size:20px; }
.pm-brand-subtitle { font-size:10px; letter-spacing:.65px; color:#c8d5e5; margin-top:3px; }
.pm-nav .nav-link { color:#e7edf5; font-size:15px; font-weight:500; padding:.62rem .75rem; border-radius:.5rem; }
.pm-nav .nav-link:hover { color:#fff; background:rgba(255,255,255,.08); }
.pm-nav .nav-link.active { color:#fff; background:#28466f; }
.pm-user-avatar { width:38px; height:38px; border-radius:50%; background:#eaf1fe; color:#2f6feb; }
.pm-topbar { min-height:72px; z-index:1020; }
.pm-search-wrap { width:min(100%, 430px); }
.pm-search-wrap .input-group-text,.pm-search-wrap .form-control { min-height:44px; font-size:15px; }
.pm-notification-dot { position:absolute; width:7px; height:7px; border-radius:50%; background:#ef4444; top:1px; right:0; border:1px solid #fff; }
.pm-mobile-nav { background:#071d36; color:#fff; }
.pm-kpi-card { min-height:116px; border:1px solid #e6eaf0 !important; transition:transform .12s ease,box-shadow .12s ease; }
.pm-kpi-card:hover { transform:translateY(-1px); box-shadow:0 .4rem 1rem rgba(16,24,40,.08)!important; }
.pm-kpi-label { font-size:14px; }
.pm-kpi-icon { width:48px; height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; font-size:22px; }
.pm-chart-donut { position:relative; width:210px; height:210px; }
.pm-chart-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.pm-chart-center strong { font-size:25px; line-height:1.05; }
.pm-chart-center span { color:#667085; font-size:14px; margin-top:6px; }
.pm-dot { display:inline-block; width:11px; height:11px; border-radius:50%; flex:0 0 auto; }
.pm-activity-icon { width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.pm-task-check { width:20px; height:20px; flex:0 0 auto; }
.pm-progress { height:5px; }
.pm-line-chart { height:245px; }
.pm-work-chart { height:175px; }
.min-w-0 { min-width:0; }

/* Property list/detail/work-order components that cannot be expressed by a
   single Bootstrap utility remain here in app.css. */
.pm-page-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:16px;gap:10px}.pm-search-small{height:40px;width:280px;border:1px solid #e6eaf0;border-radius:7px;display:flex;align-items:center;padding:0 11px;gap:8px;color:#98a2b3;background:#fff}.pm-search-small input{width:100%;border:0;outline:0;font-size:15px}.pm-primary-btn{min-height:40px;border:0;background:#2864ef;color:#fff;border-radius:6px;padding:0 14px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:6px}.pm-outline-btn{min-height:40px;border:1px solid #e6eaf0;background:#fff;color:#344054;border-radius:6px;padding:0 13px;font-size:15px;text-decoration:none;display:inline-flex;align-items:center;gap:6px}.pm-table-card{background:#fff;border:1px solid #e6eaf0;border-radius:9px;overflow:hidden;box-shadow:0 1px 3px rgba(16,24,40,.04)}.pm-table{width:100%;border-collapse:collapse}.pm-table th{height:46px;background:#fafbfc;color:#475467;font-size:14px;font-weight:600;text-align:left;padding:0 14px;border-bottom:1px solid #e6eaf0;white-space:nowrap}.pm-table td{height:58px;padding:8px 14px;border-bottom:1px solid #eef1f4;font-size:15px;color:#344054;vertical-align:middle}.pm-table tbody tr:last-child td{border-bottom:0}.pm-property-cell{display:flex;align-items:center;gap:10px}.pm-property-thumb{width:56px;height:42px;border-radius:5px;background:linear-gradient(135deg,#dbe5f0,#b9c8dc);overflow:hidden;flex:0 0 auto}.pm-property-thumb img{width:100%;height:100%;object-fit:cover}.pm-property-name{color:#2764ef;text-decoration:none;font-weight:600}.pm-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:13px;font-weight:600}.pm-status.green{background:#eaf8ee;color:#1b8b43}.pm-status.orange{background:#fff4db;color:#b87500}.pm-status.red{background:#feeeee;color:#d83a3a}.pm-pagination{display:flex;justify-content:flex-end;align-items:center;gap:5px;padding:12px 14px;border-top:1px solid #e6eaf0}.pm-pagination span,.pm-pagination a{width:32px;height:32px;border:1px solid #e6eaf0;border-radius:5px;display:grid;place-items:center;text-decoration:none;color:#667085;font-size:14px}.pm-pagination .active{background:#2764ef;color:#fff;border-color:#2764ef}.pm-property-hero{display:grid;grid-template-columns:260px 1fr auto;gap:20px;align-items:start;margin-bottom:12px}.pm-property-photo{height:165px;border-radius:9px;overflow:hidden;background:linear-gradient(135deg,#dbe5f0,#b9c8dc)}.pm-property-photo img{width:100%;height:100%;object-fit:cover}.pm-property-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:6px}.pm-property-gallery div{height:36px;border-radius:4px;background:linear-gradient(135deg,#dbe5f0,#b9c8dc)}.pm-property-title{font-size:24px;font-weight:700;margin:3px 0 8px}.pm-property-type{font-size:15px;color:#667085;margin-bottom:14px}.pm-detail-grid{display:grid;grid-template-columns:110px 1fr;gap:9px 18px;font-size:14px}.pm-detail-grid dt{color:#667085;font-weight:500}.pm-detail-grid dd{margin:0;color:#344054}.pm-tabbar{display:flex;gap:28px;border-bottom:1px solid #e6eaf0;margin-top:14px;overflow-x:auto}.pm-tabbar button{border:0;background:transparent;padding:14px 0 11px;font-size:14px;color:#667085;white-space:nowrap}.pm-tabbar button.active{color:#2764ef;font-weight:600;border-bottom:2px solid #2764ef}.pm-detail-section{padding-top:10px}.pm-detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.pm-detail-kpi{border:1px solid #e6eaf0;border-radius:8px;background:#fff;padding:13px}.pm-detail-kpi small{display:block;font-size:13px;color:#667085}.pm-detail-kpi strong{display:block;font-size:22px;margin-top:3px}.pm-section-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px}.pm-section-heading h3{font-size:17px;margin:0;font-weight:700}.pm-maint-tabs{display:flex;gap:24px;border-bottom:1px solid #e6eaf0;margin-bottom:14px}.pm-maint-tabs a{padding:10px 0;color:#667085;text-decoration:none;font-size:14px;border-bottom:2px solid transparent}.pm-maint-tabs a.active{color:#2764ef;border-bottom-color:#2764ef}.pm-priority{font-size:13px;border-radius:999px;padding:4px 8px}.pm-priority.high{background:#feecec;color:#d93434}.pm-priority.medium{background:#fff2d6;color:#b66c00}.pm-priority.low{background:#edf2f7;color:#526273}.pm-empty{padding:45px;text-align:center;color:#667085;font-size:15px}
@media(max-width:991.98px){.pm-property-hero{grid-template-columns:1fr}.pm-property-photo{height:250px}.pm-detail-kpis{grid-template-columns:1fr 1fr}.pm-table-card{overflow-x:auto}.pm-table{min-width:850px}}
@media(max-width:575.98px){.pm-detail-kpis{grid-template-columns:1fr}.pm-page-toolbar{align-items:stretch;flex-direction:column}.pm-search-small{width:100%}}
.pm-panel{background:#fff;border:1px solid #e6eaf0;border-radius:9px;box-shadow:0 1px 3px rgba(16,24,40,.04);padding:18px}.pm-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.pm-panel-title{font-size:17px;font-weight:700}.pm-dashboard-row{display:grid;grid-template-columns:1fr;gap:16px}.pm-activity-meta{font-size:14px;color:#667085}.pm-filter-btn{border:1px solid #e6eaf0;border-radius:6px;background:#fff;padding:7px 10px;font-size:14px;color:#344054}

/* =============================================================
   Unified Business OS sliding sidebar
   Bootstrap supplies the nav/grid utilities; app.css only controls the
   application shell, sidebar states and animation.
   ============================================================= */
:root {
  --bos-sidebar-collapsed: 72px;
  --bos-sidebar-expanded: 270px;
  --bos-sidebar-speed: .26s;
}

.bos-app {
  min-height: 100vh;
}

.bos-sidebar {
  width: var(--bos-sidebar-collapsed);
  min-width: var(--bos-sidebar-collapsed);
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #071b35;
  color: #fff;
  z-index: 1040;
  box-shadow: 2px 0 10px rgba(15, 23, 42, .08);
  transition:
    width var(--bos-sidebar-speed) cubic-bezier(.4,0,.2,1),
    min-width var(--bos-sidebar-speed) cubic-bezier(.4,0,.2,1),
    box-shadow var(--bos-sidebar-speed) ease;
}

body.bos-sidebar-hover-open .bos-sidebar,
body.bos-sidebar-pinned-open .bos-sidebar {
  width: var(--bos-sidebar-expanded);
  min-width: var(--bos-sidebar-expanded);
  overflow-y: auto;
  box-shadow: 8px 0 28px rgba(15, 23, 42, .18);
}

.bos-main {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(100% - var(--bos-sidebar-collapsed));
  margin-left: var(--bos-sidebar-collapsed);
  transition:
    margin-left var(--bos-sidebar-speed) cubic-bezier(.4,0,.2,1),
    width var(--bos-sidebar-speed) cubic-bezier(.4,0,.2,1);
}

body.bos-sidebar-hover-open .bos-main,
body.bos-sidebar-pinned-open .bos-main {
  width: calc(100% - var(--bos-sidebar-expanded));
  margin-left: var(--bos-sidebar-expanded);
}

.bos-sidebar-brand {
  min-height: 70px;
  overflow: hidden;
}

.bos-sidebar-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--bos-blue);
  color: #fff;
  font-size: 18px;
}

.bos-brand-copy,
.bos-nav-label,
.bos-sidebar-user-copy,
.bos-nav-chevron,
.bos-sidebar-pin {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .12s ease, visibility .12s ease;
}

body.bos-sidebar-hover-open .bos-brand-copy,
body.bos-sidebar-pinned-open .bos-brand-copy,
body.bos-sidebar-hover-open .bos-nav-label,
body.bos-sidebar-pinned-open .bos-nav-label,
body.bos-sidebar-hover-open .bos-sidebar-user-copy,
body.bos-sidebar-pinned-open .bos-sidebar-user-copy,
body.bos-sidebar-hover-open .bos-nav-chevron,
body.bos-sidebar-pinned-open .bos-nav-chevron,
body.bos-sidebar-hover-open .bos-sidebar-pin,
body.bos-sidebar-pinned-open .bos-sidebar-pin {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease .06s, visibility .18s ease .06s;
}

.bos-sidebar-pin {
  color: rgba(255,255,255,.65);
  border: 0;
  background: transparent;
  line-height: 1;
}
.bos-sidebar-pin:hover { color:#fff; background:rgba(255,255,255,.08); }
.bos-sidebar-pin.active { color:#4f8cff; }

.bos-sidebar-subtitle { font-size:10px; letter-spacing:.08em; }

.bos-sidebar .bos-nav {
  padding: .8rem .65rem 1rem !important;
}

.bos-sidebar .bos-nav > .nav-link,
.bos-sidebar .bos-nav > button.nav-link {
  display:flex;
  align-items:center;
  width:100%;
  min-height:46px;
  margin:0;
  padding:.68rem .82rem;
  border:0;
  border-radius:.55rem;
  color:rgba(255,255,255,.78);
  background:transparent;
  font-size:15px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
}

.bos-sidebar .bos-nav > .nav-link:hover,
.bos-sidebar .bos-nav > button.nav-link:hover {
  color:#fff;
  background:rgba(255,255,255,.08);
}

.bos-sidebar .bos-nav > .nav-link.active,
.bos-sidebar .bos-nav > button.nav-link.active {
  color:#fff;
  background:#234a83;
}

.bos-sidebar .bos-nav i {
  width:20px;
  min-width:20px;
  text-align:center;
  font-size:17px;
}

.bos-sidebar .bos-subnav {
  opacity:0;
  visibility:hidden;
  max-height:0;
  overflow:hidden;
  transition:opacity .12s ease, max-height .18s ease;
}

body.bos-sidebar-hover-open .bos-sidebar .bos-subnav,
body.bos-sidebar-pinned-open .bos-sidebar .bos-subnav {
  opacity:1;
  visibility:visible;
  max-height:420px;
}

.bos-sidebar .bos-subnav .nav-link {
  padding:.5rem .65rem;
  border-radius:.45rem;
  color:rgba(255,255,255,.66);
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}
.bos-sidebar .bos-subnav .nav-link:hover { color:#fff; background:rgba(255,255,255,.07); }
.bos-sidebar .bos-subnav .nav-link.active { color:#fff; background:rgba(47,111,235,.35); }

.bos-nav-chevron { margin-left:auto; transition:transform .2s ease, opacity .12s ease; }
.bos-sidebar button[aria-expanded="true"] .bos-nav-chevron { transform:rotate(180deg); }

.bos-sidebar-user-avatar {
  width:38px;
  height:38px;
  min-width:38px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
}

/* Property Management uses the same unified sidebar. */
.pm-sidebar { display:none !important; }

/* Touch/tablet: sidebar behaves as an off-canvas drawer. */
@media (max-width: 991.98px) {
  .bos-sidebar {
    width: var(--bos-sidebar-expanded);
    min-width: var(--bos-sidebar-expanded);
    transform: translateX(-100%);
    overflow-y:auto;
    transition: transform var(--bos-sidebar-speed) cubic-bezier(.4,0,.2,1);
  }
  body.bos-sidebar-mobile-open .bos-sidebar { transform:translateX(0); }
  .bos-main,
  body.bos-sidebar-hover-open .bos-main,
  body.bos-sidebar-pinned-open .bos-main {
    width:100%;
    margin-left:0;
  }
  .bos-brand-copy,
  .bos-nav-label,
  .bos-sidebar-user-copy,
  .bos-nav-chevron,
  .bos-sidebar-pin,
  .bos-sidebar .bos-subnav {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .bos-sidebar .bos-subnav { max-height:420px; }
}
