:root {
  --primary: #1570ef;
  --primary-dark: #175cd3;
  --primary-light: #eff8ff;
  --sidebar-bg: #252040;
  --sidebar-hover: #3a345c;
  --sidebar-active: #1877f2;
  --sidebar-icon: #b0b8c9;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-muted: #98a2b3;
  --border: #eaecf0;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --success: #12b76a;
  --success-bg: #ecfdf3;
  --warning: #f79009;
  --danger: #f04438;
  --purple: #7f56d9;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 8px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 16px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-width: 80px;
  --header-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== LOGIN PAGE ===== */
html.login-layout,
html.login-layout body.login-body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.login-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 60fr 40fr;
  background: #fff;
}

.login-hero {
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: #fff;
  box-sizing: border-box;
}

.login-hero-visual {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.login-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

.login-hero-copy {
  position: absolute;
  top: clamp(108px, 22vh, 188px);
  left: clamp(32px, 7vw, 112px);
  right: clamp(32px, 7vw, 112px);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.login-hero h1 {
  font-size: clamp(1.875rem, 2.6vw, 2.375rem);
  font-weight: 600;
  color: #101828;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  -webkit-font-smoothing: antialiased;
}

.login-hero p {
  font-size: clamp(0.9375rem, 1.15vw, 1rem);
  color: #475467;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid #eaecf0;
}

.login-panel-brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: clamp(36px, 6vh, 56px) clamp(32px, 6vw, 72px) 0;
}

.login-panel-brand .brand-logo {
  margin-bottom: 0;
  gap: 12px;
}

.login-panel-brand .brand-logo-icon {
  width: 40px;
  height: 40px;
}

.login-panel-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 40px) clamp(32px, 6vw, 72px) clamp(32px, 5vh, 56px);
  position: relative;
  z-index: 1;
  min-height: 0;
}

.login-form-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
}

.demo-role-float {
  position: fixed;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed #e4e7ec;
  border-radius: 6px;
  font-size: 0.6875rem;
  z-index: 100;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.demo-role-float:hover {
  opacity: 1;
}

.demo-role-float label {
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-role-float select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  background: white;
  color: var(--text-secondary);
}

.login-role-picker { margin-bottom: 20px; }

.login-role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.login-role-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.login-role-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.login-role-option input {
  grid-row: 1 / span 2;
  accent-color: var(--primary);
}

.login-role-option span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.login-role-option small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.login-form-container {
  width: 100%;
  max-width: 360px;
  position: relative;
  margin-top: clamp(16px, 3vh, 32px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand-logo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #101828;
  letter-spacing: -0.01em;
}

.login-form-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #101828;
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.link-bold {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.link-bold:hover { color: var(--primary); }

.form-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 112, 239, 0.12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: white;
  color: var(--text-primary);
  border: 1px solid #d0d5dd;
  width: 100%;
  padding: 10px 18px;
  margin-top: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-outline:hover { background: var(--bg-page); }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}


/* ===== APP SHELL ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sidebar-logo svg,
.sidebar-logo img {
  width: 28px;
  height: 28px;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  width: 100%;
  align-items: center;
}

.sidebar-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--sidebar-icon);
  transition: background 0.2s, color 0.2s;
  position: relative;
  flex-shrink: 0;
}

.sidebar-logout { margin-top: auto; }

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar-link svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-logo {
  position: relative;
}

.sidebar-link[data-tooltip]::after,
.sidebar-logo[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #101828;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.18);
}

.sidebar-link[data-tooltip]::before,
.sidebar-logo[data-tooltip]::before {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #101828;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 300;
}

.sidebar-link:hover::after,
.sidebar-link:hover::before,
.sidebar-link:focus-visible::after,
.sidebar-link:focus-visible::before,
.sidebar-logo:hover::after,
.sidebar-logo:hover::before,
.sidebar-logo:focus-visible::after,
.sidebar-logo:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-muted { color: var(--text-muted); }
.breadcrumb-active { color: var(--text-primary); font-weight: 500; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-dropdown-wrap {
  position: relative;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.user-menu:hover,
.notification-btn:hover {
  background: var(--bg-page);
}

.user-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-lg { width: 44px; height: 44px; font-size: 0.9rem; }
.user-avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }

.user-info { line-height: 1.3; text-align: left; }
.user-name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.user-email { font-size: 0.8125rem; color: var(--text-secondary); }
.user-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }

.user-menu[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 360px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.notification-panel { min-width: 380px; max-width: 420px; }

.header-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.text-link-btn:hover { color: var(--primary-dark); }

.notification-list {
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.notification-item:hover { background: var(--bg-page); }

.notification-item.is-read { opacity: 0.55; }

.notification-item.is-read .notification-dot { background: var(--border); }

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notification-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.header-dropdown-foot {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.user-menu-panel { min-width: 280px; }

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.user-menu-head strong {
  display: block;
  font-size: 0.925rem;
}

.user-menu-head span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.user-menu-links {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.user-menu-links a,
.user-menu-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.user-menu-links a:hover,
.user-menu-link-btn:hover {
  background: var(--bg-page);
  color: var(--primary);
}

.user-menu-danger { color: var(--danger) !important; }
.user-menu-danger:hover { background: #fef3f2 !important; color: var(--danger) !important; }

.profile-edit-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.profile-edit-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-edit-hero h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.profile-edit-hero p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.form-control-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
}

.form-control-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.add-assignee-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-success-banner {
  background: var(--success-bg);
  color: #067647;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 16px;
}

.login-page-single .login-form-panel-full {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.city-resource-item[data-href] {
  cursor: pointer;
  transition: background 0.15s;
}

.city-resource-item[data-href]:hover {
  background: var(--bg-page);
}

.page-body { padding: 24px 32px; flex: 1; background: var(--bg-page); }

.text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover { background: var(--bg-page); }

.icon-btn-primary {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-header-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.card-body { padding: 20px; }

/* ===== SERVICE PROGRESS (Dashboard) ===== */
.service-list { display: flex; flex-direction: column; gap: 4px; }

.service-progress-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.service-progress-item.completed {
  background: var(--success-bg);
}

.service-progress-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-progress-icon.home-search { background: #eff8ff; color: #1570ef; }
.service-progress-icon.school-search { background: #ecfdf3; color: #12b76a; }
.service-progress-icon.settling-in-service { background: #fef3f2; color: #f04438; }
.service-progress-icon.orientation { background: #f4f3ff; color: #7f56d9; }

.service-progress-content { flex: 1; min-width: 0; }

.service-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.service-progress-label { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.service-progress-count { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; }

.progress-bar-track {
  height: 6px;
  background: #eaecf0;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.progress-bar-fill.home-search { background: #1570ef; }
.progress-bar-fill.school-search { background: #12b76a; }
.progress-bar-fill.settling-in-service { background: #f04438; }
.progress-bar-fill.orientation,
.progress-bar-fill.completed { background: #12b76a; }

/* Home page progress (legacy) */
.progress-widget { margin-bottom: 16px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-label { font-size: 0.875rem; font-weight: 500; }
.progress-count { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; }
.progress-widget.completed { background: var(--success-bg); padding: 12px; border-radius: var(--radius-sm); }

.progress-ring {
  width: 72px;
  height: 72px;
  position: relative;
}

.progress-ring svg { transform: rotate(-90deg); }

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 24px;
  align-items: start;
}

.dashboard-right-col { display: flex; flex-direction: column; gap: 24px; }

.profile-card { overflow: hidden; padding-bottom: 16px; }

.profile-banner {
  height: 88px;
  background: #eff8ff;
  position: relative;
  overflow: hidden;
}

.profile-skyline {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-wrap {
  text-align: center;
  margin-top: -44px;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.profile-avatar-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.profile-name { font-size: 1rem; font-weight: 600; margin-top: 12px; color: var(--text-primary); }
.profile-title { font-size: 0.875rem; color: var(--text-secondary); margin-top: 2px; }
.profile-id {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 6px;
}

.profile-contact-list {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-contact-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.profile-contact-value { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }

.profile-meta-chips {
  padding: 12px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.meta-chip-label { color: var(--text-muted); min-width: 90px; }
.meta-chip-value { font-weight: 500; color: var(--text-primary); }
.meta-chip-value.client { color: #dd2590; }

/* ===== MOM TIMELINE ===== */
.mom-card .card-body { padding: 8px 20px 20px; }

.mom-timeline {
  max-height: 640px;
  overflow-y: auto;
  position: relative;
}

.mom-entry {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.mom-entry:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 28px;
  bottom: -8px;
  width: 1px;
  border-left: 2px dotted #d0d5dd;
}

.mom-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}

.mom-entry-body { flex: 1; min-width: 0; }

.mom-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mom-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.mom-chevron { flex-shrink: 0; color: var(--text-muted); }

.mom-bullets {
  display: none;
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mom-entry.expanded .mom-bullets { display: block; }

.mom-content {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== CITY RESOURCES ===== */
.city-resource-list { display: flex; flex-direction: column; gap: 4px; }

.city-resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.city-resource-item:hover { background: var(--bg-page); }

.city-resource-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.city-resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-resource-icon.gift { background: #fef3f2; color: #f04438; }
.city-resource-icon.calendar { background: #eff8ff; color: #1570ef; }
.city-resource-icon.home { background: #ecfdf3; color: #12b76a; }

.resource-list { display: flex; flex-direction: column; gap: 8px; }

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.resource-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.resource-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
}

.resource-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ===== HOME PAGE ===== */
.home-welcome {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-welcome h1 { font-size: 1.75rem; margin-bottom: 8px; }
.home-welcome p { color: var(--text-secondary); max-width: 560px; line-height: 1.6; }

.home-welcome-rich {
  border: 1px solid #bfdbfe;
  align-items: center;
  gap: 32px;
}

.home-welcome-hr {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.home-welcome-consultant {
  background: linear-gradient(135deg, #f4f3ff 0%, #f9f5ff 100%);
  border-color: #ddd6fe;
}

.home-welcome-main { flex: 1; min-width: 0; }

.home-welcome-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.home-welcome-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.home-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.progress-ring-lg { width: 96px; height: 96px; }
.progress-ring-lg svg { width: 96px; height: 96px; }
.progress-ring-caption {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.home-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-meta-chip {
  font-size: 0.78rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-primary);
}

.home-meta-chip-label {
  color: var(--text-muted);
  margin-right: 4px;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mini-stat-card {
  padding: 16px 20px;
  text-align: center;
}

.mini-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.mini-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.home-grid-secondary {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}

.card-header-muted {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.event-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}

.event-item:last-child { border-bottom: none; }
.event-item:hover { background: var(--bg-page); padding-left: 8px; padding-right: 8px; }

.event-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 56px;
  padding-top: 2px;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-body strong { font-size: 0.875rem; }
.event-body span { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.4; }

.event-type-tour .event-date { color: #1570ef; }
.event-type-school .event-date { color: #12b76a; }
.event-type-meeting .event-date { color: #7f56d9; }
.event-type-milestone .event-date { color: #f79009; }
.event-type-call .event-date { color: #f04438; }

.contact-cards { display: flex; flex-direction: column; gap: 12px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card strong { display: block; font-size: 0.875rem; }
.contact-role { display: block; font-size: 0.75rem; color: var(--text-muted); }
.contact-detail { display: block; font-size: 0.8125rem; color: var(--primary); margin-top: 2px; }

.quick-access-rich {
  grid-template-columns: repeat(3, 1fr) !important;
}

.resource-item-rich {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 20px !important;
  height: 100%;
}

.resource-item-rich .resource-icon {
  width: 44px;
  height: 44px;
}

.resource-item-rich strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.resource-item-rich span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.insight-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.insight-tip-card {
  padding: 20px;
  border-left: 4px solid var(--primary);
}

.insight-tip-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.insight-tip-card h4 {
  font-size: 0.95rem;
  margin: 8px 0;
}

.insight-tip-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.priority-list { display: flex; flex-direction: column; gap: 0; }

.priority-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.priority-item:last-child { border-bottom: none; }
.priority-item:hover { background: var(--bg-page); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-sm); }
.priority-item strong { display: block; font-size: 0.875rem; }
.priority-item span { font-size: 0.8125rem; color: var(--text-secondary); }
.priority-item svg { flex-shrink: 0; color: var(--text-muted); margin-left: auto; }

.priority-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.priority-badge-urgent { background: #fef3f2; color: #b42318; }
.priority-badge-review { background: #fffaeb; color: #b54708; }
.priority-badge-follow-up { background: #eff8ff; color: #175cd3; }

.activity-feed { display: flex; flex-direction: column; }

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover strong { color: var(--primary); }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  margin-top: 6px;
}

.activity-item strong { display: block; font-size: 0.875rem; }
.activity-item span { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.activity-item em { font-size: 0.75rem; color: var(--text-muted); font-style: normal; margin-top: 4px; display: block; }

.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-icon-blue { background: #eff8ff; color: #1570ef; }
.dash-stat-icon-green { background: #ecfdf3; color: #12b76a; }
.dash-stat-icon-amber { background: #fffaeb; color: #f79009; }
.dash-stat-icon-purple { background: #f4f3ff; color: #7f56d9; }

.dash-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.dash-stat-label { font-size: 0.875rem; font-weight: 600; margin-top: 2px; }
.dash-stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.assignee-mini-list { display: flex; flex-direction: column; gap: 12px; }

.assignee-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
}

.assignee-mini-info { flex: 1; min-width: 0; }
.assignee-mini-info strong { display: block; font-size: 0.875rem; }
.assignee-mini-info span { font-size: 0.78rem; color: var(--text-muted); }

.dashboard-top-grid { margin-bottom: 24px; }

.hr-stat-icon-purple { background: #f4f3ff; color: #7f56d9; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.next-steps-list { list-style: none; }

.next-steps-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.next-steps-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.next-step-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.next-step-link:hover { color: var(--primary); text-decoration: underline; }

.service-progress-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}

.service-progress-link:hover {
  background: var(--bg-page);
  transform: translateX(2px);
}

.quick-access-card { margin-top: 24px; }

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== MY DETAILS ===== */
.my-details-page { display: flex; flex-direction: column; gap: 20px; }

.my-details-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
}

.my-details-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.my-details-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  background: white;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.my-details-hero h1 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.my-details-hero p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.my-details-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.my-details-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.my-details-layout {
  align-items: start;
  grid-template-columns: 360px 1fr !important;
}

.my-details-nav {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 88px;
  min-width: 360px;
}

.my-details-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  background: var(--bg-page);
}

.my-details-nav-head strong { font-size: 1rem; }
.my-details-nav-head span { color: var(--text-muted); font-size: 0.875rem; }

.my-details-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 22px;
  min-height: 56px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.my-details-nav-item:last-child { border-bottom: none; }

.my-details-nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  width: 20px;
  height: 20px;
}

.my-details-nav-label {
  flex: 1;
  line-height: 1.45;
  font-size: 0.875rem;
}

.my-details-nav-item:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}

.my-details-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.my-details-nav-item.active svg { opacity: 1; }

.section-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-status-dot.complete { background: var(--success); }
.section-status-dot.partial { background: var(--warning); }
.section-status-dot.empty { background: var(--border); }

.section-fill-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

.my-details-nav-item.active .section-fill-pct { color: var(--primary); }

.my-details-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.my-details-meta {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  color: white;
  border: none;
}

.my-details-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 24px;
}

.meta-tile-label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-tile strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.my-details-section-head {
  align-items: flex-start !important;
}

.my-details-section-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.detail-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-field-card {
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.detail-field-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.detail-field-card label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.detail-field-value {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}

.detail-field-card.is-empty .detail-field-value {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.my-details-section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.details-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.section-nav { padding: 0; overflow: hidden; }

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
}

.section-nav-item:last-child { border-bottom: none; }

.section-nav-item svg { flex-shrink: 0; opacity: 0.7; }

.section-nav-item:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}

.section-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.section-nav-item.active svg { opacity: 1; }

.details-section-panel.is-hidden { display: none; }

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 0.875rem;
}

.profile-summary-card { margin-bottom: 24px; }

.field-label { color: var(--text-secondary); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field .value {
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-field .value.is-empty {
  color: var(--text-muted);
  font-style: italic;
  min-height: 42px;
}

/* ===== ITINERARY ===== */
.itinerary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.date-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.date-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: white;
}

.date-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.timeline-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.timeline-item.active .timeline-content {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline-content {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.timeline-time {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title { font-weight: 600; margin-bottom: 6px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); }

.map-placeholder {
  background: #e2e8f0;
  border-radius: var(--radius);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-pin {
  width: 32px;
  height: 32px;
  background: var(--danger);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

/* ===== MAPS (Leaflet) ===== */
.demo-map {
  border-radius: var(--radius);
  min-height: 500px;
  height: 100%;
  width: 100%;
  z-index: 1;
  background: #e2e8f0;
}

.demo-map-full {
  min-height: calc(100vh - 180px);
}

.maps-page-header {
  margin-bottom: 12px;
}

.maps-location-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.demo-map-marker span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 5px;
  background: var(--danger);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}

.leaflet-container {
  font-family: inherit;
  border-radius: var(--radius);
}

/* ===== PROPERTIES ===== */
.property-date-bar {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #3d4451;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.property-date-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 58px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow-sm);
}

.property-date-day {
  background: #6b7280;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  padding: 10px 12px 8px;
  text-align: center;
}

.property-date-chip.active .property-date-day {
  background: #dc2626;
}

.property-date-meta {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 8px;
  text-align: center;
  text-transform: capitalize;
}

.properties-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}

.property-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.property-card:hover, .property-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.property-thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.property-price {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-thumb-wrap { position: relative; flex-shrink: 0; }

.property-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.property-location { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.property-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.property-disclaimer {
  font-size: 0.75rem;
  color: var(--danger);
  font-style: italic;
  margin-top: 12px;
}

/* ===== ADMIN TABLE ===== */
.data-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead { background: var(--sidebar-bg); color: white; }

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover { background: var(--bg-page); }

.table-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-progress-bar {
  width: 80px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.table-progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 36px;
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.table-user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.table-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.table-show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.table-select {
  width: auto !important;
  padding: 6px 10px !important;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.table-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-page);
  border-color: #cbd5e1;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-btn-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-btn-active:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  width: 260px;
  font-family: inherit;
}

.table-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.table-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.table-view-btn:hover {
  background: var(--primary);
  color: white;
}

.table-cell-muted {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.assignee-list-card .card-header h3 { margin: 0; }

.assignee-list-table th:last-child,
.assignee-list-table td:last-child {
  width: 1%;
  padding-right: 20px;
}

.table-search {
  width: min(320px, 100%);
}

.btn-inline {
  width: auto !important;
  margin-top: 0 !important;
}

/* ===== PDF VIEWER ===== */
.pdf-viewer {
  background: #374151;
  border-radius: var(--radius);
  padding: 24px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-page {
  background: white;
  width: 100%;
  max-width: 700px;
  min-height: 500px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.pdf-page-cover {
  height: 400px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1596176530439-07f798275d6c?w=800&h=500&fit=crop') center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.pdf-page-cover h2 { font-size: 2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.pdf-page-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pdf-location { font-size: 0.9rem; margin-bottom: 8px; }
.pdf-subtitle { font-size: 1rem; margin-top: 8px; }

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: white;
  font-size: 0.85rem;
}

/* ===== SETTLING IN ===== */
.doc-list { display: flex; flex-direction: column; gap: 16px; }

.doc-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.doc-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.doc-icon {
  width: 160px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light), #bfdbfe);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.doc-name { font-weight: 600; margin-bottom: 6px; }
.doc-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== CONSULTANT MESSAGES ===== */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.message-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.message-item.unread {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-body { flex: 1; min-width: 0; }

.message-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.message-subject {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.message-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.message-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ===== CALL SUMMARY ===== */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.summary-card .card-header h3 {
  font-size: 1rem;
  margin: 0;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-list li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.summary-list li:last-child { border-bottom: none; }

.summary-list li::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-demo { background: #fef3c7; color: #92400e; font-size: 0.7rem; padding: 4px 10px; }

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) { background: var(--bg-page); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.link-btn:hover { color: var(--primary-dark); }

/* ===== DEMO MODAL & TOAST ===== */
.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  max-width: 360px;
  pointer-events: none;
}

.demo-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-modal[hidden] { display: none; }

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.demo-modal-dialog {
  position: relative;
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-modal-header h3 { font-size: 1.05rem; margin: 0; }

.demo-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
}

.demo-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.demo-modal-body h4 { color: var(--text-primary); margin-bottom: 12px; }
.demo-modal-body ul { margin: 12px 0 12px 20px; }

.demo-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

body.modal-open { overflow: hidden; }

.property-card { cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.property-card:hover { box-shadow: var(--shadow-md); }

.property-date-chip { cursor: pointer; transition: transform 0.15s, opacity 0.2s; }
.property-date-chip:hover:not(.active) { opacity: 0.85; transform: translateY(-1px); }

.date-tab { transition: background 0.2s, color 0.2s; }
.date-tab:hover:not(.active) { background: var(--bg-page); }

/* ===== HR DASHBOARD ===== */
.hr-dashboard-welcome {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.hr-dashboard-welcome h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hr-dashboard-welcome p {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 0.925rem;
}

.hr-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.hr-stat-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hr-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-stat-icon-blue { background: #eff8ff; color: #1570ef; }
.hr-stat-icon-green { background: #ecfdf3; color: #12b76a; }
.hr-stat-icon-amber { background: #fffaeb; color: #f79009; }

.hr-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hr-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hr-assignee-shell {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: -24px -24px 24px;
  padding: 0 24px;
}

.hr-assignee-context {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.hr-assignee-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-assignee-context-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.hr-assignee-context-info strong {
  font-size: 0.95rem;
}

.hr-assignee-context-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hr-assignee-context-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hr-empty-state-card {
  text-align: center;
  padding: 64px 24px !important;
  color: var(--text-secondary);
}

.hr-empty-state-card svg {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hr-empty-state-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hr-empty-state-card p {
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto;
}

/* ===== HR / CONSULTANT PORTAL (legacy) ===== */
.hr-shell {
  background: #f3f4f6;
  min-height: 100vh;
}

.hr-header {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 64px;
  gap: 24px;
}

.hr-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hr-brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.hr-assignee-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  padding: 8px 24px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hr-assignee-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.hr-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hr-stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}

.hr-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.hr-stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

.hr-card-title {
  font-weight: 700;
  padding: 12px 4px 16px;
  font-size: 0.95rem;
}

.hr-search-label {
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hr-sort {
  opacity: 0.6;
  font-size: 0.7rem;
  margin-left: 4px;
}

.hr-naf-value.empty {
  min-height: 38px;
  background: #f3f4f6;
}

.hr-call-summary-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 520px;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
    url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1400&h=700&fit=crop') center/cover;
}

.hr-call-summary-panels {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hr-call-summary-visual {
  overflow: hidden;
  border-left: 1px solid #e5e7eb;
}

.hr-call-summary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-itinerary-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.hr-welcome-kit {
  background: #525659;
  border: 1px solid #374151;
}

.hr-pdf-stage {
  padding: 24px;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.hr-pdf-page {
  max-width: 640px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hr-pdf-toolbar {
  background: #3d3d3d;
  color: white;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hr-pdf-icon {
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 2px;
}

.hr-pdf-page-count {
  margin-left: auto;
  font-weight: 400;
  opacity: 0.85;
}

.hr-pdf-footer {
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
  background: #3d3d3d;
}

.hr-main-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.hr-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 28px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.hr-nav-item:hover { background: rgba(0, 0, 0, 0.12); color: white; }

.hr-nav-item.active {
  background: rgba(0, 0, 0, 0.18);
  border-bottom-color: white;
}

.hr-user {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hr-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hr-user-name { font-weight: 600; font-size: 0.95rem; }

.hr-logout {
  margin-left: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.hr-logout:hover { background: rgba(0, 0, 0, 0.15); color: white; }

.hr-assignee-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hr-tab {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 99px;
  background: transparent;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.hr-tab:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}

.hr-tab.active {
  background: var(--primary);
  color: white;
}

.hr-page-body {
  padding: 20px 24px 40px;
}

.hr-table-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px;
}

.hr-table-controls {
  margin-bottom: 16px;
}

.hr-show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.hr-select, .hr-search { max-width: 200px; }

.hr-data-table thead {
  background: #111827;
  color: white;
}

.hr-data-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 14px;
}

.hr-data-table tbody td {
  padding: 12px 14px;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.hr-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
}

.hr-action-btn:hover {
  background: #15803d;
  transform: scale(1.05);
}

.hr-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

.hr-pagination { display: flex; gap: 4px; }

.hr-page-btn {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hr-page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hr-page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* NAF */
.hr-naf-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: white;
  border: 1px solid #e5e7eb;
  min-height: 600px;
}

.hr-naf-sidebar {
  background: #2c333f;
  padding: 12px 0;
}

.hr-naf-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1.4;
}

.hr-naf-nav-item:hover { background: rgba(255, 255, 255, 0.06); }

.hr-naf-nav-item.active {
  background: rgba(21, 112, 239, 0.2);
  color: white;
}

.hr-naf-check {
  width: 14px;
  height: 14px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.hr-naf-nav-item.active .hr-naf-check {
  border-color: var(--primary);
  background: var(--primary);
}

.hr-naf-content { padding: 20px 24px; }

.hr-naf-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.hr-naf-meta span { color: #6b7280; }

.hr-naf-panel.is-hidden { display: none; }

.hr-naf-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hr-naf-form-header {
  background: #4b5563;
  color: white;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hr-naf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hr-naf-field label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.hr-naf-value {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.875rem;
  min-height: 38px;
}

/* Call Summary */
.hr-call-summary {
  min-height: 520px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1400&h=700&fit=crop') center/cover;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #e5e7eb;
}

.hr-summary-box {
  background: rgba(55, 65, 81, 0.88);
  color: white;
  padding: 20px 24px;
  max-width: 720px;
  border-radius: 2px;
}

.hr-summary-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.hr-summary-box ul { list-style: disc; margin-left: 20px; }

.hr-summary-box li {
  padding: 4px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hr-pdf-toolbar {
  background: #374151;
  color: white;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hr-pdf-viewer { border-radius: 0; }

.hr-empty-state {
  background: white;
  border: 1px solid #d1d5db;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.95rem;
}

.hr-itinerary-date-badge { margin-bottom: 16px; }

.hr-date-cal {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hr-date-cal-head {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  text-align: center;
}

.hr-date-cal-day {
  font-size: 1.75rem;
  font-weight: 700;
  padding: 8px 20px 10px;
  text-align: center;
  color: #111827;
}

.hr-itinerary-layout { min-height: 480px; }
.hr-itinerary-map { min-height: 420px; border-radius: 4px; }
.hr-assignee-map { min-height: 520px; border-radius: 4px; border: 1px solid #e5e7eb; }

@media (max-width: 960px) {
  .hr-header-inner { flex-wrap: wrap; padding: 12px; }
  .hr-main-nav { order: 3; width: 100%; justify-content: flex-start; }
  .hr-naf-layout { grid-template-columns: 1fr; }
  .hr-naf-form-grid { grid-template-columns: 1fr; }
  .hr-assignee-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .hr-stat-cards { grid-template-columns: 1fr 1fr; }
  .mini-stat-row { grid-template-columns: 1fr 1fr; }
  .dash-stat-row { grid-template-columns: 1fr 1fr; }
  .home-grid-secondary { grid-template-columns: 1fr; }
  .insight-tips-grid { grid-template-columns: 1fr; }
  .quick-access-rich { grid-template-columns: 1fr 1fr !important; }
  .hr-dashboard-welcome { flex-direction: column; align-items: flex-start; }
  .hr-assignee-context { flex-wrap: wrap; }
  .profile-edit-layout { grid-template-columns: 1fr; }
  .header-dropdown { min-width: 300px; right: -8px; }
  .properties-layout { grid-template-columns: 1fr; }
  .itinerary-layout { grid-template-columns: 1fr; }
  .details-layout { grid-template-columns: 1fr; }
  .my-details-nav { position: static; }
  .my-details-meta-grid { grid-template-columns: 1fr 1fr; }
  .detail-field-grid { grid-template-columns: 1fr; }
  .my-details-hero { flex-direction: column; align-items: flex-start; }
  .my-details-section-foot { flex-direction: column; align-items: flex-start; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  html.login-layout,
  html.login-layout body.login-body { overflow: auto; height: auto; }

  .login-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  html.login-layout,
  html.login-layout body.login-body { overflow: auto; }

  .login-page { position: relative; inset: auto; height: auto; min-height: 100vh; }

  .login-hero { height: auto; min-height: 50vh; }
  .login-hero-visual { height: auto; min-height: 50vh; position: relative; }
  .login-hero-art { position: relative; inset: auto; height: auto; max-height: 50vh; object-fit: contain; }
  .login-hero-copy { position: relative; top: auto; left: auto; right: auto; padding: 32px 24px 16px; }
  .login-form-panel { height: auto; padding: 32px 24px 80px; }
}

@media (max-width: 768px) {
  .login-hero { display: none; }
  .page-body { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .doc-item { grid-template-columns: 1fr; }
  .quick-access-grid { grid-template-columns: 1fr 1fr; }
  .profile-summary-grid { grid-template-columns: 1fr; }
}

/* ===== UNIFIED PAGE POLISH ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--text-secondary);
}

.empty-state svg { color: var(--text-muted); opacity: 0.7; }

.empty-state h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0;
}

.empty-state p {
  margin: 0;
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.maps-card .maps-card-body,
.itinerary-map-body {
  padding: 0 !important;
}

.maps-card .demo-map-full,
.itinerary-map-panel .demo-map {
  min-height: 520px;
  border-radius: 0 0 var(--radius) var(--radius);
  border: none;
}

.welcome-kit-card .pdf-viewer { margin: 0; }

.itinerary-panel .card-body { padding-top: 8px; }

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.table-select { width: auto; padding: 6px 10px; }

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

