:root {
  --ioh-blue: #0d47a1;
  --ioh-blue-light: #1565c0;
  --ioh-teal: #00acc1;
  --ioh-bg: #f4f6f9;
  --sidebar-w: 260px;
}
body { font-family: "Segoe UI", system-ui, sans-serif; background: var(--ioh-bg); margin: 0; }
.auth-body { min-height: 100vh; background: linear-gradient(135deg, #0d47a1 0%, #00acc1 100%); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.15); padding: 2rem; }
.sidebar { width: var(--sidebar-w); min-height: 100vh; background: #1a2332; flex-shrink: 0; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { color: #fff !important; background: rgba(13,71,161,.35); border-radius: 6px; }
.main-content { min-width: 0; }
.stat-card { background: #fff; border-radius: 10px; padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); border-left: 4px solid var(--ioh-blue); }
.stat-card .label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--ioh-blue); }
.badge-online { background: #198754; }
.badge-offline { background: #dc3545; }
.badge-warning { background: #fd7e14; }
.table-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; }
.btn-primary { background: var(--ioh-blue); border-color: var(--ioh-blue); }
.btn-primary:hover { background: var(--ioh-blue-light); border-color: var(--ioh-blue-light); }
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}
.client-switcher-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.client-switcher-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}
.client-switcher-form select {
  margin: 0;
  width: auto;
  min-width: 180px;
  max-width: 280px;
}
.property-fixed-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}
.dash-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.dash-widget {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.dash-widget--success { border-left: 4px solid #198754; }
.dash-widget--danger { border-left: 4px solid #dc3545; }
.dash-widget--warning { border-left: 4px solid #fd7e14; }
.dash-widget--info { border-left: 4px solid var(--ioh-blue); }
.dash-widget__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin: 0 0 0.25rem;
}
.dash-widget__value {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  color: var(--ioh-blue);
}
.dash-widget--success .dash-widget__value { color: #198754; }
.dash-widget--danger .dash-widget__value { color: #dc3545; }
.dash-widget--warning .dash-widget__value { color: #e67e22; }
.nav-section-label { font-size: 0.7rem; }
.branch-view-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}
