/* ============================================================
   BMLUNS Rental Management System - Main Stylesheet
   Colors: Sky Blue #38BDF8 | Navy #1E3A8A | Blue #2563EB | Teal #14B8A6
   ============================================================ */

:root {
  --sky:      #38BDF8;
  --navy:     #1E3A8A;
  --blue:     #2563EB;
  --teal:     #14B8A6;
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --sidebar-width: 260px;
  --sidebar-collapsed: 68px;
  --topbar-height: 62px;
  --border-radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --transition: .2s ease;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --gray-50:  #0F172A;
  --gray-100: #1E293B;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748B;
  --gray-500: #94A3B8;
  --gray-600: #CBD5E1;
  --gray-700: #E2E8F0;
  --gray-800: #F1F5F9;
  --gray-900: #F8FAFC;
  --white:    #1E293B;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: .9rem;
  background: var(--gray-50);
  color: var(--gray-800);
  margin: 0;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

/* ============================================================
   LAYOUT - Sidebar + Main
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  background: var(--navy);
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
}

.sidebar-brand .brand-logo {
  width: 38px; height: 38px;
  background: var(--sky);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -.2px;
}

.sidebar-brand .brand-text span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--sky);
  opacity: .85;
}

.sidebar-scroll {
  flex: 1;
  min-height: 0; /* flexbug #1: without this, a flex child won't scroll - it
                     grows to fit its content instead of clipping to the
                     available space, so overflow-y:auto never engages */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
  padding: .6rem 0;
}

.nav-section-label {
  padding: .7rem 1.1rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .nav-section-label { opacity: 0; }

.nav-item { list-style: none; }

.nav-link-side {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem 1.1rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-link-side:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-link-side.active {
  background: rgba(56,189,248,.18);
  color: var(--sky);
  border-right: 3px solid var(--sky);
}

.nav-link-side .nav-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  font-size: 1rem;
  display: grid; place-items: center;
}

.nav-link-side .nav-label {
  font-size: .855rem;
  font-weight: 500;
}

.nav-link-side .nav-badge {
  margin-left: auto;
  background: #EF4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .12rem .45rem;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-badge { display: none; }

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 1030;
  transition: left var(--transition);
  box-shadow: var(--shadow-sm);
}

.topbar.sidebar-collapsed { left: var(--sidebar-collapsed); }

.topbar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 8px;
  color: var(--gray-600);
  font-size: 1.2rem;
  transition: background var(--transition);
}
.topbar-toggle:hover { background: var(--gray-100); }

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.topbar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem .5rem;
  border-radius: 8px;
  color: var(--gray-500);
  font-size: 1.05rem;
  position: relative;
  transition: background var(--transition);
}
.topbar-btn:hover { background: var(--gray-100); color: var(--navy); }

.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  display: grid; place-items: center;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: border-color var(--transition);
}
.topbar-avatar:hover { border-color: var(--sky); }

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
  transition: margin-left var(--transition);
  flex: 1 1 auto;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  overflow-x: hidden;
}

.main-content.sidebar-collapsed { margin-left: var(--sidebar-collapsed); width: calc(100% - var(--sidebar-collapsed)); max-width: calc(100% - var(--sidebar-collapsed)); }

.page-content {
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
}

.card-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.card-body { padding: 1.25rem; }
.card-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.sky   { background: #EFF9FF; color: var(--sky); }
.stat-icon.blue  { background: #EFF2FF; color: var(--blue); }
.stat-icon.teal  { background: #EFFDF5; color: var(--teal); }
.stat-icon.navy  { background: #EFF3FF; color: var(--navy); }
.stat-icon.green { background: #F0FDF4; color: #16A34A; }
.stat-icon.red   { background: #FEF2F2; color: #DC2626; }
.stat-icon.amber { background: #FFFBEB; color: #D97706; }
.stat-icon.purple{ background: #FAF5FF; color: #7C3AED; }

.stat-body { flex: 1; }
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-label {
  font-size: .78rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: .15rem;
}
.stat-change {
  font-size: .75rem;
  font-weight: 600;
  margin-top: .3rem;
}
.stat-change.up   { color: #16A34A; }
.stat-change.down { color: #DC2626; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.breadcrumb-nav .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: .8rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }
.breadcrumb-item.active { color: var(--gray-500); }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { border-radius: var(--border-radius); overflow: hidden; }

.table {
  margin: 0;
  font-size: .855rem;
}

.table thead th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: .775rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .8rem 1rem;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.table tbody td {
  padding: .85rem 1rem;
  vertical-align: middle;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover td { background: var(--gray-50); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .3em .7em;
  border-radius: 20px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .875rem;
  color: var(--gray-800);
  background: var(--white);
  padding: .5rem .85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
  outline: none;
}

.form-text { font-size: .78rem; color: var(--gray-500); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-size: .855rem;
  font-weight: 500;
  padding: .48rem 1.1rem;
  border-radius: 8px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-sky {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy);
}
.btn-sky:hover { background: #29ABE8; border-color: #29ABE8; color: var(--navy); }

.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn-teal:hover { background: #0EA49A; border-color: #0EA49A; }

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: #162B6A; border-color: #162B6A; }

.btn-outline-primary { border-color: var(--blue); color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); color: #fff; }

.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-xs { padding: .2rem .55rem; font-size: .75rem; border-radius: 6px; }
.btn-lg { padding: .65rem 1.5rem; font-size: .95rem; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  font-size: .875rem;
  padding: .85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}
.alert-icon { flex-shrink: 0; font-size: 1rem; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #2563EB 50%, #0EA5E9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.auth-header {
  background: var(--navy);
  padding: 2rem;
  text-align: center;
}

.auth-logo {
  width: 60px; height: 60px;
  background: var(--sky);
  border-radius: 14px;
  display: grid; place-items: center;
  margin: 0 auto .75rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
}

.auth-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.auth-subtitle {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  margin: .3rem 0 0;
}

.auth-body { padding: 2rem; }

/* ============================================================
   RECEIPT
   ============================================================ */
.receipt-container {
  max-width: 680px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.receipt-header {
  background: var(--navy);
  padding: 1.5rem 2rem;
  color: #fff;
}

.receipt-header .company { font-size: 1.1rem; font-weight: 700; }
.receipt-header .receipt-no { font-size: .82rem; opacity: .75; margin-top: .25rem; }

.receipt-body { padding: 2rem; }
.receipt-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.receipt-row:last-child { border-bottom: none; }
.receipt-label { font-size: .82rem; color: var(--gray-500); }
.receipt-value { font-size: .88rem; font-weight: 600; color: var(--gray-800); }

.receipt-amount {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
}
.receipt-amount .amount { font-size: 2rem; font-weight: 800; color: var(--navy); }
.receipt-amount .currency { font-size: .9rem; color: var(--gray-500); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-icon {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}
.empty-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: .4rem;
}
.empty-desc { font-size: .82rem; color: var(--gray-400); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-header {
  background: var(--navy);
  color: #fff;
  border-radius: calc(var(--border-radius) - 1px) calc(var(--border-radius) - 1px) 0 0;
}
.modal-title { font-size: .95rem; font-weight: 600; }
.modal-header .btn-close { filter: invert(1); }
.modal-footer { border-top: 1px solid var(--gray-200); }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress {
  height: 6px;
  border-radius: 20px;
  background: var(--gray-200);
  overflow: hidden;
}
.progress-bar { border-radius: 20px; }

/* ============================================================
   CHARTS
   ============================================================ */
.chart-container { position: relative; }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1035;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
    height: 100vh;
    max-height: 100vh;
    top: 0;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-scroll {
    max-height: calc(100vh - 62px);
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
  }
  .topbar { left: 0 !important; }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 575.98px) {
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .stat-value { font-size: 1.2rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-navy { color: var(--navy) !important; }
.text-sky  { color: var(--sky) !important; }
.text-teal { color: var(--teal) !important; }
.bg-navy   { background: var(--navy) !important; }
.bg-sky    { background: var(--sky) !important; }
.bg-teal   { background: var(--teal) !important; }
.border-sky{ border-color: var(--sky) !important; }
.fw-600    { font-weight: 600; }
.fw-700    { font-weight: 700; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---- Loading Spinner ---- */
.spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  display: grid; place-items: center;
  z-index: 9999;
}
.spinner-border-sky { color: var(--sky); }

/* ---- Print ---- */
@media print {
  .sidebar, .topbar, .topbar-right, .btn, .alert { display: none !important; }
  .main-content { margin-left: 0 !important; padding-top: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .receipt-container { box-shadow: none !important; }
}

/* ---- Animate ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .25s ease; }

/* ============================================================
   STAT CARD FIXES - prevent overflow/cut-off on all screens
   ============================================================ */

/* Stat value scales down for long currency strings */
.stat-value {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* In col-6 (half-width) reduce icon + padding */
.col-6 .stat-card {
  padding: 1rem .85rem;
  gap: .65rem;
}
.col-6 .stat-icon {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.col-6 .stat-value {
  font-size: clamp(.88rem, 2.2vw, 1.25rem);
}
.col-6 .stat-label {
  font-size: .72rem;
}

/* Ensure stat-body doesn't overflow */
.stat-body {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

/* Defaulters / Properties page layout fix */
.defaulters-table td,
.defaulters-table th {
  white-space: nowrap;
}

/* Table fix - allow horizontal scroll on small screens */
.card .table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Properties grid - prevent card overflow */
.properties-grid .card {
  overflow: hidden;
}

/* Page content max-width so content doesn't stretch awkwardly */
@media (min-width: 1400px) {
  .page-content {
    max-width: 1600px;
  }
}

/* Fix col-6 stat cards on very small screens */
@media (max-width: 400px) {
  .col-6 .stat-card {
    padding: .75rem .6rem;
    gap: .5rem;
  }
  .col-6 .stat-icon {
    width: 32px;
    height: 32px;
    font-size: .85rem;
    border-radius: 8px;
  }
  .col-6 .stat-value {
    font-size: .82rem;
  }
  .col-6 .stat-label {
    font-size: .68rem;
  }
}

/* Receipt container mobile */
@media (max-width: 767px) {
  .receipt-container {
    margin: 1rem;
    border-radius: 8px;
  }
  .receipt-body {
    padding: 1.25rem;
  }
}

/* Fix page-header wrapping on mobile */
.page-header {
  flex-wrap: wrap;
  gap: .75rem;
}
.page-header > div:last-child {
  flex-wrap: wrap;
}

/* ============================================================
   SPECIFIC PAGE LAYOUT FIXES
   ============================================================ */

/* --- Defaulters Table --- */
.table th, .table td {
  vertical-align: middle;
}
/* Allow table to scroll horizontally on mobile rather than squishing */
.table { font-size: .835rem; }
.table thead th { font-size: .73rem; }

/* --- Properties Grid --- */
.property-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* --- Stat cards on medium screens --- */
@media (min-width: 576px) and (max-width: 991px) {
  .col-6 .stat-card { padding: 1rem; gap: .75rem; }
  .col-6 .stat-icon { width: 42px; height: 42px; }
  .col-6 .stat-value { font-size: 1.1rem; }
}

/* --- Currency values in tight spaces --- */
.stat-value.currency {
  font-size: clamp(.85rem, 2vw, 1.4rem);
  white-space: nowrap;
}

/* --- Topbar on mobile --- */
@media (max-width: 576px) {
  .topbar-title { display: none; }
  .page-header .btn { font-size: .78rem; padding: .35rem .65rem; }
}

/* --- Fix card footer on mobile --- */
.card-footer {
  flex-wrap: wrap;
  gap: .5rem;
}

/* --- Nav badge position fix --- */
.nav-badge {
  margin-left: auto;
  flex-shrink: 0;
}

/* --- Table action buttons --- */
.table .btn-xs { padding: .2rem .45rem; font-size: .73rem; }

/* --- Alert in forms --- */
.alert { font-size: .855rem; }

/* --- Empty state icon color fix --- */
.empty-icon i { color: var(--gray-300); }

/* --- Fix the progress bars in property cards --- */
.progress { flex-shrink: 0; }

/* --- Sidebar nav label wrap prevention --- */
.nav-label { 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

/* --- Main content min-height fix --- */
.main-content { min-height: 100vh; }

/* --- Bootstrap Icons fallback - show box if font not loaded --- */
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: "bootstrap-icons" !important;
}

/* --- Stat card inner min-width prevent squeeze --- */
.stat-card .stat-body .stat-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
