/* ZIPMAS Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --zm-primary: #008751;
  --zm-primary-dark: #006b40;
  --zm-primary-light: #e6f5ef;
  --zm-accent: #fcd116;
  --zm-navy: #002395;
  --zm-success: #10b981;
  --zm-warning: #f59e0b;
  --zm-danger: #ef4444;
  --zm-info: #3b82f6;
  --zm-dark: #0f172a;
  --zm-muted: #64748b;
  --zm-border: #e2e8f0;
  --zm-bg: #f1f5f9;
  --zm-surface: #ffffff;
  --zm-sidebar-width: 270px;
  --zm-topbar-height: 64px;
  --zm-radius: 14px;
  --zm-radius-sm: 10px;
  --zm-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --zm-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --zm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background: var(--zm-bg);
  color: var(--zm-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.zm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1040;
}

.zm-overlay.show { display: block; }

.zm-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.38);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zm-loading-overlay.is-visible {
  display: flex;
}

.zm-loading-logo {
  width: min(168px, 42vw);
  height: auto;
  max-height: 168px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Topbar */
.zm-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--zm-topbar-height);
  background: var(--zm-surface);
  border-bottom: 1px solid var(--zm-border);
  z-index: 1050;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
}

.zm-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
  min-width: 0;
}

.zm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.zm-topbar-user {
  min-width: 0;
}

.zm-user-menu__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zm-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--zm-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.zm-brand:hover { color: var(--zm-primary-dark); }

.zm-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--zm-border);
  background: var(--zm-surface);
  border-radius: var(--zm-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zm-muted);
  transition: var(--zm-transition);
  cursor: pointer;
}

.zm-icon-btn:hover {
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  border-color: var(--zm-primary);
}

/* Sidebar */
.zm-sidebar {
  position: fixed;
  top: var(--zm-topbar-height);
  left: 0;
  width: var(--zm-sidebar-width);
  height: calc(100vh - var(--zm-topbar-height));
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  z-index: 1045;
  overflow-y: auto;
  transition: transform var(--zm-transition);
  display: flex;
  flex-direction: column;
}

.zm-sidebar.collapsed { transform: translateX(-100%); }

.zm-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zm-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.zm-sidebar-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--zm-primary), #00a86b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 135, 81, 0.35);
}

.zm-sidebar-title {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.2;
}

.zm-sidebar-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  margin: 0;
}

.zm-nav-section {
  padding: 1rem 1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.zm-nav { padding: 0.5rem 0.75rem 1.5rem; flex: 1; }

.zm-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: var(--zm-radius-sm);
  font-weight: 500;
  font-size: 0.925rem;
  transition: var(--zm-transition);
}

.zm-nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.zm-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.zm-nav-link.active {
  background: linear-gradient(135deg, var(--zm-primary), #00a86b);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.35);
}

/* Collapsible sidebar groups */
.zm-nav-group {
  margin: 0.35rem 0 0.55rem;
}

.zm-nav-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 0;
  border: 0;
  border-radius: var(--zm-radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: var(--zm-transition);
  text-align: left;
}

.zm-nav-group__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.zm-nav-group__toggle.is-active {
  background: rgba(0, 135, 81, 0.18);
  color: #fff;
}

.zm-nav-group__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.zm-nav-group__label i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.zm-nav-group__chevron {
  font-size: 0.78rem;
  opacity: 0.55;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.zm-nav-group.is-open .zm-nav-group__chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

.zm-nav-group__menu {
  margin: 0.2rem 0 0.15rem 0.55rem;
  padding: 0.2rem 0 0.2rem 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.zm-nav-group__menu[hidden] {
  display: none !important;
}

.zm-nav-link--sub {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.zm-nav-link--sub i {
  font-size: 1rem;
}

.zm-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-align: center;
}

/* Main content */
.zm-content {
  margin-left: var(--zm-sidebar-width);
  margin-top: var(--zm-topbar-height);
  padding: 1.75rem 2rem 2.5rem;
  min-height: calc(100vh - var(--zm-topbar-height));
  transition: margin-left var(--zm-transition);
}

.zm-content.full-width { margin-left: 0; }

.zm-footer {
  margin-left: var(--zm-sidebar-width);
  padding: 1rem 2rem;
  background: var(--zm-surface);
  border-top: 1px solid var(--zm-border);
  color: var(--zm-muted);
  font-size: 0.82rem;
  text-align: center;
  transition: margin-left var(--zm-transition);
}

.zm-footer.full-width { margin-left: 0; }

/* ── Page Header ── */
.zm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.zm-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.zm-page-subtitle {
  color: var(--zm-muted);
  margin: 0;
  font-size: 0.925rem;
}

.zm-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Cards ── */
.zm-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius);
  box-shadow: var(--zm-shadow);
  overflow: hidden;
}

.zm-card-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--zm-border);
  background: var(--zm-surface);
}

.zm-card-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.zm-card-body { padding: 1.5rem; }

/* Stat cards */
.zm-stat-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius);
  padding: 1.375rem;
  box-shadow: var(--zm-shadow);
  transition: transform var(--zm-transition), box-shadow var(--zm-transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.zm-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.zm-stat-card.primary::before { background: var(--zm-primary); }
.zm-stat-card.success::before { background: var(--zm-success); }
.zm-stat-card.warning::before { background: var(--zm-warning); }
.zm-stat-card.danger::before { background: var(--zm-danger); }

.zm-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zm-shadow-lg);
}

.zm-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.zm-stat-card.primary .zm-stat-icon { background: var(--zm-primary-light); color: var(--zm-primary); }
.zm-stat-card.success .zm-stat-icon { background: #d1fae5; color: var(--zm-success); }
.zm-stat-card.warning .zm-stat-icon { background: #fef3c7; color: var(--zm-warning); }
.zm-stat-card.danger .zm-stat-icon { background: #fee2e2; color: var(--zm-danger); }

.zm-stat-label {
  color: var(--zm-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.zm-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.zm-stat-card.primary .zm-stat-value { color: var(--zm-primary); }
.zm-stat-card.success .zm-stat-value { color: var(--zm-success); }
.zm-stat-card.warning .zm-stat-value { color: var(--zm-warning); }
.zm-stat-card.danger .zm-stat-value { color: var(--zm-danger); }

/* Floating toast notifications — overlay, no layout shift */
.zm-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(420px, calc(100vw - 1.5rem));
  max-width: 100%;
  pointer-events: none;
}

.zm-toast-host .zm-flash-alert {
  pointer-events: auto;
  margin: 0;
  animation: zm-toast-in 0.28s ease-out;
}

@keyframes zm-toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.6rem) translateX(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.zm-content ~ .zm-toast-host,
body.zm-public-body .zm-toast-host {
  top: 5.75rem;
}

body:not(.zm-public-body) .zm-toast-host {
  top: 4.5rem;
}

/* Flash / toast alerts */
.zm-flash-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: none;
  border-radius: var(--zm-radius-sm);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  font-weight: 500;
}

.zm-flash-alert__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.zm-flash-alert__body {
  flex: 1;
  min-width: 0;
}

.zm-flash-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--zm-success);
}

.zm-flash-alert--success .zm-flash-alert__icon { color: var(--zm-success); }

.zm-flash-alert--danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--zm-danger);
}

.zm-flash-alert--danger .zm-flash-alert__icon { color: var(--zm-danger); }

.zm-flash-alert--warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--zm-warning);
}

.zm-flash-alert--warning .zm-flash-alert__icon { color: var(--zm-warning); }

.zm-flash-alert--info {
  background: #eff6ff;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

.zm-flash-alert--info .zm-flash-alert__icon { color: #3b82f6; }

/* Table */
.zm-table thead th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  border: none;
  padding: 0.875rem 1.25rem;
}

.zm-profile-alert {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  border: none;
  padding: 0.875rem 1.25rem;
}

.zm-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-color: var(--zm-border);
  font-size: 0.925rem;
}

.zm-table tbody tr { transition: background var(--zm-transition); }
.zm-table tbody tr:hover { background: #f8fafc; }

/* Badges */
.zm-badge {
  padding: 0.35em 0.7em;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* Buttons */
.btn-zm-primary {
  background: linear-gradient(135deg, var(--zm-primary), #00a86b);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--zm-radius-sm);
  padding: 0.5rem 1.25rem;
  transition: var(--zm-transition);
}

.btn-zm-primary:hover {
  background: linear-gradient(135deg, var(--zm-primary-dark), var(--zm-primary));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.3);
}

.btn-zm-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--zm-radius-sm);
  padding: 0.5rem 1.25rem;
  transition: var(--zm-transition);
}

.btn-zm-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.btn-zm-outline {
  border: 1px solid var(--zm-border);
  background: var(--zm-surface);
  color: var(--zm-dark);
  font-weight: 500;
  border-radius: var(--zm-radius-sm);
  padding: 0.5rem 1.25rem;
  transition: var(--zm-transition);
}

.btn-zm-outline:hover {
  background: var(--zm-primary-light);
  border-color: var(--zm-primary);
  color: var(--zm-primary);
}

/* Forms */
.zm-form-control,
.form-control,
.form-select {
  border-radius: var(--zm-radius-sm);
  border: 1px solid var(--zm-border);
  padding: 0.625rem 0.875rem;
  font-size: 0.925rem;
  transition: var(--zm-transition);
}

.zm-form-control:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.15);
}

.zm-form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--zm-dark);
}

/* Activity feed */
.zm-activity-item {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--zm-border);
  transition: background var(--zm-transition);
}

.zm-activity-item:last-child { border-bottom: none; }
.zm-activity-item:hover { background: #f8fafc; }

.zm-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Chart container */
.zm-chart-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--zm-shadow);
  height: 100%;
}

.zm-dashboard-chart {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zm-dashboard-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 180px;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
}

.zm-dashboard-chart-empty i {
  font-size: 2rem;
}

.zm-chart-area--compact {
  min-height: 180px;
}

.zm-dashboard-empty i {
  font-size: 2rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.5rem;
}

.zm-chart-area {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--zm-radius-sm);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* User avatar dropdown */
.zm-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--zm-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--zm-radius-sm);
  transition: var(--zm-transition);
}

.zm-user-menu:hover { background: var(--zm-primary-light); color: var(--zm-dark); }

.zm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

/* Notification dropdown */
.zm-notif-dropdown {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.zm-notif-dropdown .zm-icon-btn {
  flex-shrink: 0;
}

.zm-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--zm-surface, #fff);
}

.zm-notif-menu {
  width: min(360px, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
  border-radius: 14px !important;
}

.zm-notif-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zm-border);
  background: #fafbfc;
}

.zm-notif-menu__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--zm-primary);
  background: var(--zm-primary-light);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.zm-notif-menu__body {
  max-height: 360px;
  overflow-y: auto;
}

.zm-notif-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--zm-border);
  background: #fafbfc;
}

.zm-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background var(--zm-transition);
}

.zm-notif-item:hover {
  background: #f8fafc;
  color: inherit;
}

.zm-notif-item.is-unread {
  background: linear-gradient(90deg, rgba(0, 135, 81, 0.06) 0%, transparent 100%);
}

.zm-notif-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.zm-notif-item__icon--primary { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.zm-notif-item__icon--warning { background: rgba(255, 193, 7, 0.15); color: #b45309; }
.zm-notif-item__icon--success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.zm-notif-item__icon--secondary { background: rgba(108, 117, 125, 0.12); color: #6c757d; }

.zm-notif-item__content {
  flex: 1;
  min-width: 0;
}

.zm-notif-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.zm-notif-item__message {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.45;
}

.zm-notif-item__time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.zm-notif-item__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zm-primary);
  margin-top: 0.35rem;
}

.zm-notif-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.zm-notif-empty i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.zm-notif-list-item.is-unread {
  background: linear-gradient(90deg, rgba(0, 135, 81, 0.05) 0%, transparent 100%);
}

.zm-public-nav .zm-notif-dropdown .zm-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
}

.zm-public-nav .zm-notif-dropdown .zm-icon-btn:hover {
  border-color: #86efac;
  color: var(--zm-primary);
  background: #f0fdf4;
}

@media (max-width: 991.98px) {
  .zm-topbar {
    padding: 0 0.75rem;
  }

  .zm-user-menu__name {
    max-width: 100px;
  }
}

@media (max-width: 575.98px) {
  .zm-topbar-actions {
    gap: 0.2rem;
  }

  .zm-topbar .zm-icon-btn {
    width: 34px;
    height: 34px;
  }

  .zm-topbar .zm-avatar {
    width: 32px;
    height: 32px;
  }

  .zm-user-menu {
    padding: 0.15rem;
  }
}

/* Map page */
.zm-map-controls {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--zm-shadow);
  margin-bottom: 1.25rem;
}

.zm-map-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.map-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zm-dark);
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 999px;
  transition: var(--zm-transition);
  cursor: pointer;
}

.map-status-btn:hover {
  border-color: var(--zm-primary);
  background: var(--zm-primary-light);
}

.map-status-btn.active {
  background: var(--zm-primary);
  border-color: var(--zm-primary);
  color: #fff;
}

.map-status-btn.active .map-status-swatch {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.map-status-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.map-status-swatch[data-status="1"] { background: #b3ffb3; border-color: #00e600; }
.map-status-swatch[data-status="3"] { background: #fdba74; border-color: #ea580c; }
.map-status-swatch[data-status="4"] { background: #add8e6; border-color: #0000ff; }

.zm-map-controls__legends {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zm-map-controls__legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
}

.zm-map-controls__legend-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zm-muted);
  min-width: 4.5rem;
}

.zm-map-controls__legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.zm-map-status-legend--compact .zm-plot-legend-item {
  font-size: 0.6875rem;
}

.zm-map-status-float {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--zm-radius-sm);
  padding: 0.625rem 0.75rem;
  box-shadow: var(--zm-shadow);
  border: 1px solid var(--zm-border);
  max-width: 220px;
  z-index: 2;
}

.zm-map-status-float__title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zm-muted);
  margin-bottom: 0.375rem;
}

.zm-map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  margin: 0.125rem 0.25rem 0.125rem 0;
}

.zm-map-status-pill__swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.zm-map-status-pill[data-status="1"] .zm-map-status-pill__swatch { background: #b3ffb3; box-shadow: inset 0 0 0 1px #00e600; }
.zm-map-status-pill[data-status="2"] .zm-map-status-pill__swatch { background: #ff8c66; box-shadow: inset 0 0 0 1px #cc3300; }
.zm-map-status-pill[data-status="3"] .zm-map-status-pill__swatch { background: #fdba74; box-shadow: inset 0 0 0 1px #ea580c; }
.zm-map-status-pill[data-status="4"] .zm-map-status-pill__swatch { background: #add8e6; box-shadow: inset 0 0 0 1px #0000ff; }
.zm-map-status-pill[data-status="5"] .zm-map-status-pill__swatch { background: #ffff99; box-shadow: inset 0 0 0 1px #ffcc00; }

.zm-map-zone-row__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--zm-border);
}

.zm-map-stat-chip--status {
  position: relative;
  border-color: var(--chip-stroke, var(--zm-border));
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--chip-fill) 25%, #fff) 100%);
}

.zm-map-stat-chip__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--chip-fill);
  box-shadow: inset 0 0 0 1.5px var(--chip-stroke);
  margin-bottom: 0.25rem;
}

.zm-map-stat-chip--status .zm-map-stat-chip__value {
  color: var(--zm-dark);
}

.zm-map-info-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f8fafc;
}

.zm-map-info-status__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.zm-map-info-status[data-status="1"] .zm-map-info-status__swatch { background: #b3ffb3; box-shadow: inset 0 0 0 1px #00e600; }
.zm-map-info-status[data-status="2"] .zm-map-info-status__swatch { background: #ff8c66; box-shadow: inset 0 0 0 1px #cc3300; }
.zm-map-info-status[data-status="3"] .zm-map-info-status__swatch { background: #fdba74; box-shadow: inset 0 0 0 1px #ea580c; }
.zm-map-info-status[data-status="4"] .zm-map-info-status__swatch { background: #add8e6; box-shadow: inset 0 0 0 1px #0000ff; }
.zm-map-info-status[data-status="5"] .zm-map-info-status__swatch { background: #ffff99; box-shadow: inset 0 0 0 1px #ffcc00; }

.zm-map-container {
  background: #e2e8f0;
  border-radius: var(--zm-radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--zm-border);
}

.zm-map-container #map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

@media (min-width: 992px) {
  .zm-map-layout {
    align-items: flex-start;
  }

  .zm-map-layout__map {
    align-self: stretch;
  }

  .zm-map-layout__map .zm-map-container {
    width: 100%;
    min-height: 480px;
  }
}

@media (max-width: 991.98px) {
  .zm-map-layout .zm-map-container {
    height: 380px;
  }
}

.zm-plot-card {
  background: var(--zm-surface);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius);
  padding: 1.375rem;
  box-shadow: var(--zm-shadow);
}

.zm-plot-attr {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.zm-plot-attr:last-child { border-bottom: none; }

.zm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

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

.zm-map-zone-stat__bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.zm-map-zone-stat__bar .progress-bar {
  border-radius: 999px;
}

/* Map sidebar — stat cards (matches zone plots page) */
.zm-map-summary {
  overflow: hidden;
}

.zm-map-stats-wrap {
  padding: 1.125rem 1.25rem 1.25rem;
}

.zm-map-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.zm-map-stat-card {
  padding: 1rem 1.125rem;
  margin: 0;
  width: 100%;
}

.zm-map-stat-card__inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.zm-map-stat-card .zm-stat-icon {
  width: 42px;
  height: 42px;
  font-size: 1.125rem;
  border-radius: 11px;
  flex-shrink: 0;
}

.zm-map-stat-card .zm-stat-value {
  font-size: 1.625rem;
  line-height: 1.1;
}

.zm-map-stat-card .zm-stat-label {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.zm-map-stats-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--zm-muted);
  background: #f8fafc;
  border: 1px dashed var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-map-stats-empty i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.625rem;
  opacity: 0.4;
}

.zm-map-stats-empty p {
  margin: 0;
  font-size: 0.8125rem;
}

.zm-map-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.5rem;
  border-radius: var(--zm-radius-sm);
  border: 1px solid var(--zm-border);
  background: #f8fafc;
  text-align: center;
}

.zm-map-stat-chip__value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.zm-map-stat-chip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  margin-top: 0.125rem;
}

.zm-map-stat-chip--primary .zm-map-stat-chip__value { color: var(--zm-primary); }
.zm-map-stat-chip--success .zm-map-stat-chip__value { color: var(--zm-success); }
.zm-map-stat-chip--warning .zm-map-stat-chip__value { color: var(--zm-warning); }
.zm-map-stat-chip--danger .zm-map-stat-chip__value { color: var(--zm-danger); }

.zm-map-stats-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zm-muted);
  margin-bottom: 0.625rem;
}

.zm-map-stats-note {
  font-size: 0.75rem;
  color: var(--zm-muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--zm-radius-sm);
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.zm-map-zone-row {
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.zm-map-zone-row--orphan {
  background: #f8fafc;
  border-style: dashed;
}

.zm-map-zone-row__head {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.zm-map-zone-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.zm-map-zone-row__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--zm-dark);
}

.zm-map-zone-row__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.125rem;
}

.zm-map-zone-row__badge.registered { color: var(--zm-success); }
.zm-map-zone-row__badge.orphan { color: #b45309; }

.zm-map-zone-row__count {
  text-align: right;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--zm-primary);
  line-height: 1;
  flex-shrink: 0;
}

.zm-map-zone-row__count span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  margin-top: 0.125rem;
}

.zm-map-zone-row__detail {
  font-size: 0.75rem;
  color: var(--zm-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--zm-border);
}

.zm-map-stats-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zm-primary);
  text-decoration: none;
  margin-top: 0.75rem;
}

.zm-map-stats-link:hover {
  color: var(--zm-primary-dark);
  text-decoration: underline;
}

.zm-legend-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zm-muted);
  align-self: center;
}

.zm-legend-item--orphan {
  opacity: 0.85;
}

.zm-legend-dot--orphan {
  background: #94a3b8 !important;
  border: 2px dashed #64748b;
}
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* Auth pages */
.zm-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0a1628 0%, #0d3d2e 40%, #008751 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.zm-auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.zm-auth-card {
  background: var(--zm-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 980px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.zm-auth-visual {
  background-color: #0066a1;
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.zm-auth-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 77, 46, 0.35) 100%
  );
  z-index: 0;
}

.zm-auth-flag-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 5px;
  z-index: 2;
}

.zm-auth-flag-bar .zm-flag-blue { flex: 1; background: #0066cc; }
.zm-auth-flag-bar .zm-flag-black { flex: 1; background: #000; }
.zm-auth-flag-bar .zm-flag-green { flex: 2; background: #007a33; }

.zm-auth-form-col {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  display: flex;
  align-items: center;
}

.zm-auth-form {
  padding: 2.75rem 3rem;
  width: 100%;
}

.zm-auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.zm-auth-logo {
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.zm-auth-emblem {
  width: 96px;
  height: auto;
  max-height: 105px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 12px rgba(0, 135, 81, 0.12));
}

.zm-auth-gov-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zm-primary-dark);
  margin-bottom: 0.35rem;
}

.zm-auth-title {
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--zm-dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.zm-auth-subtitle {
  color: var(--zm-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0;
}

.zm-auth-form-body .zm-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  margin-bottom: 0.45rem;
}

.zm-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.zm-auth-input-wrap > i {
  position: absolute;
  left: 1rem;
  color: var(--zm-primary);
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}

.zm-auth-input {
  padding: 0.72rem 1rem 0.72rem 2.75rem !important;
  border: 1.5px solid var(--zm-border) !important;
  border-radius: 12px !important;
  font-size: 0.925rem;
  background: white !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zm-auth-input:focus {
  border-color: var(--zm-primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.12) !important;
}

.zm-btn-login {
  width: 100%;
  padding: 0.82rem 1.25rem;
  background: linear-gradient(135deg, var(--zm-primary-dark), var(--zm-primary));
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 135, 81, 0.3);
}

.zm-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 135, 81, 0.4);
  color: white;
}

.zm-auth-form-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zm-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.zm-auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zm-muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.zm-auth-back-link:hover {
  color: var(--zm-primary);
  gap: 0.6rem;
}

.zm-auth-trust {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zm-muted);
}

.zm-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zm-auth-trust i {
  color: var(--zm-primary);
  font-size: 0.85rem;
}

/* 404 */
.zm-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zm-bg);
  padding: 2rem;
}

.zm-error-card {
  text-align: center;
  background: var(--zm-surface);
  border-radius: var(--zm-radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--zm-shadow-lg);
  max-width: 480px;
  width: 100%;
}

.zm-error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--zm-primary), var(--zm-navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Status badges for applications */
.status-pending,
.zm-badge.status-pending { background: #dbeafe; color: #1e40af; }
.status-success,
.status-approved,
.zm-badge.status-success,
.zm-badge.status-approved { background: #d1fae5; color: #065f46; }
.status-danger,
.status-rejected,
.zm-badge.status-danger,
.zm-badge.status-rejected { background: #fee2e2; color: #991b1b; }
.status-warning,
.zm-badge.status-warning { background: #fef3c7; color: #92400e; }
.status-secondary,
.zm-badge.status-secondary { background: #f1f5f9; color: #475569; }
.status-info,
.zm-badge.status-info { background: #e0f2fe; color: #0369a1; }

/* Timeline */
.zm-timeline { position: relative; padding-left: 28px; }
.zm-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zm-border);
}

.zm-timeline-item { position: relative; padding-bottom: 1.25rem; }
.zm-timeline-dot {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--zm-primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--zm-border);
}

.zm-timeline-dot.completed { background: var(--zm-success); }
.zm-timeline-dot.pending { background: var(--zm-warning); }
.zm-timeline-dot.rejected { background: var(--zm-danger); }

.zm-timeline-content {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--zm-radius-sm);
  font-size: 0.9rem;
}

/* Scrollbar */
.zm-sidebar::-webkit-scrollbar { width: 5px; }
.zm-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Responsive */
@media (max-width: 991.98px) {
  .zm-sidebar { transform: translateX(-100%); }
  .zm-sidebar.show { transform: translateX(0); }
  .zm-content,
  .zm-footer { margin-left: 0; }
  .zm-content { padding: 1.25rem; }
}

@media (max-width: 767.98px) {
  .zm-auth-visual { min-height: 260px; }
  .zm-auth-form { padding: 2rem 1.75rem; }
  .zm-auth-emblem { width: 80px; max-height: 88px; }
  .zm-auth-title { font-size: 1.55rem; }
}

/* ── Profile page ── */
.zm-profile-shell {
  overflow: hidden;
}

.zm-profile-hero {
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 45%, #f8fafc 100%);
  border-bottom: 1px solid var(--zm-border);
}

.zm-profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.zm-profile-hero__avatar {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 135, 81, 0.18);
  flex-shrink: 0;
}

.zm-profile-hero__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.25rem;
  color: var(--zm-dark);
}

.zm-profile-hero__email {
  font-size: 0.9rem;
  color: var(--zm-muted);
  margin: 0 0 0.75rem;
}

.zm-profile-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zm-profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zm-muted);
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 999px;
}

.zm-profile-tag--role {
  color: var(--zm-primary-dark);
  background: var(--zm-primary-light);
  border-color: rgba(0, 135, 81, 0.2);
}

.zm-profile-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.zm-profile-stat {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-profile-stat__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zm-muted);
  margin-bottom: 0.25rem;
}

.zm-profile-stat__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zm-dark);
  word-break: break-word;
}

.zm-profile-body {
  padding: 0.5rem 2rem 1.5rem;
}

.zm-profile-block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--zm-border);
}

.zm-profile-block--last {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.zm-profile-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.zm-profile-block__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.zm-profile-block__icon--security {
  background: #eff6ff;
  color: #2563eb;
}

.zm-profile-block__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--zm-dark);
}

.zm-profile-block__desc {
  font-size: 0.8125rem;
  color: var(--zm-muted);
  margin: 0;
}

.zm-profile-block .form-control {
  height: 42px;
  border-radius: var(--zm-radius-sm);
  border-color: var(--zm-border);
  font-size: 0.9rem;
}

.zm-profile-block .form-control:focus {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
}

.zm-profile-block .form-control:disabled {
  background: #f8fafc;
  color: var(--zm-muted);
}

.zm-profile-hint {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--zm-muted);
  line-height: 1.5;
}

.zm-profile-hint i {
  color: var(--zm-primary);
}

.zm-profile-security {
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-profile-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--zm-radius-sm);
}

.zm-profile-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 2rem;
  background: #fafbfc;
  border-top: 1px solid var(--zm-border);
}

@media (max-width: 767.98px) {
  .zm-profile-hero {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .zm-profile-hero__identity {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.25rem;
  }

  .zm-profile-hero__tags {
    justify-content: center;
  }

  .zm-profile-hero__grid {
    grid-template-columns: 1fr;
  }

  .zm-profile-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .zm-profile-footer {
    flex-direction: column-reverse;
    padding: 1rem 1.25rem;
  }

  .zm-profile-footer .btn {
    width: 100%;
  }
}

/* ── Zone management ── */
.zm-form-section-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.zm-form-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.zm-form-switch-card {
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  padding: 0.875rem 1rem;
  height: 100%;
}

.zm-form-switch-card .form-check-input:checked {
  background-color: var(--zm-primary);
  border-color: var(--zm-primary);
}

.zm-zone-map-picker {
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}

#zoneMapPicker {
  height: 280px;
  width: 100%;
}

.zm-zone-map-hint {
  padding: 0.625rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--zm-border);
  font-size: 0.8125rem;
  color: var(--zm-muted);
}

#plotMapPicker,
.zm-plot-map-picker #plotMapPicker,
#zonePlotsMap,
.zm-plot-map-picker #zonePlotsMap {
  height: 480px;
  width: 100%;
}

.zm-zone-plots-map #zonePlotsMap {
  height: 360px;
}

.zm-plot-draw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zm-plot-draw-tools .btn.active {
  box-shadow: 0 2px 8px rgba(0, 135, 81, 0.25);
}

.zm-plot-map-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--zm-muted);
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-plot-map-stat {
  font-weight: 600;
  color: var(--zm-dark);
  white-space: nowrap;
}

.zm-plot-dim--disabled .input-group .form-control,
.zm-plot-dim--disabled .input-group .btn {
  opacity: 0.55;
}

.zm-plot-rect-badge {
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
}

.zm-plot-edges-panel {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-plot-edges-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.zm-plot-edges-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--zm-dark);
}

.zm-plot-edges-panel__title i { color: var(--zm-primary); }

.zm-plot-edges-panel__meta {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.zm-plot-edges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zm-plot-edge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem 0.25rem 0.375rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zm-plot-edge-row:focus-within {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
  background: #fff;
}

.zm-plot-edge-row--active {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.zm-plot-edge-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  margin: 0;
  flex-shrink: 0;
}

.zm-plot-edge-row--active .zm-plot-edge-label {
  background: #f59e0b;
  color: #fff;
}

.zm-plot-edge-input {
  width: 4.25rem;
  border: none !important;
  background: transparent !important;
  padding: 0.125rem 0.25rem !important;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
  text-align: right;
}

.zm-plot-edge-input:focus {
  outline: none;
}

.zm-plot-edge-unit {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zm-muted);
  flex-shrink: 0;
}

.zm-plot-status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.zm-plot-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zm-muted);
}

.zm-plot-legend-item i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid transparent;
}

.zm-plot-legend-item[data-status="1"] i { background: #b3ffb3; border-color: #00e600; }
.zm-plot-legend-item[data-status="2"] i { background: #ff8c66; border-color: #cc3300; }
.zm-plot-legend-item[data-status="3"] i { background: #fdba74; border-color: #ea580c; }
.zm-plot-legend-item[data-status="4"] i { background: #add8e6; border-color: #0000ff; }
.zm-plot-legend-item[data-status="5"] i { background: #ffff99; border-color: #ffcc00; }

/* Plot form page */
.zm-plot-form-page { max-width: 1400px; }

.zm-plot-form-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.zm-plot-form-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.zm-plot-form-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zm-muted);
  margin-bottom: 0.35rem;
}

.zm-plot-form-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zm-dark);
  margin: 0 0 0.35rem;
}

.zm-plot-form-hero__subtitle {
  margin: 0;
  color: var(--zm-muted);
  font-size: 0.9375rem;
  max-width: 36rem;
}

.zm-plot-form-kpis .zm-plot-kpi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 10px;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.zm-plot-kpi i { font-size: 1.25rem; color: var(--zm-primary); opacity: 0.85; }
.zm-plot-kpi--success i { color: var(--zm-success); }
.zm-plot-kpi strong { display: block; font-size: 1.0625rem; line-height: 1.2; color: var(--zm-dark); }
.zm-plot-kpi span { display: block; font-size: 0.75rem; color: var(--zm-muted); }

.zm-plot-form-steps {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: 10px;
}

.zm-plot-form-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--zm-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.zm-plot-form-step.is-active { color: var(--zm-primary); }

.zm-plot-form-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
}

.zm-plot-form-step.is-active .zm-plot-form-step__num {
  background: var(--zm-primary);
  color: #fff;
}

.zm-plot-form-step.is-done { color: var(--zm-success); }

.zm-plot-form-step.is-done .zm-plot-form-step__num {
  background: #ecfdf5;
  color: var(--zm-success);
}

.zm-plot-form-step__line {
  flex: 1;
  min-width: 1.5rem;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.75rem;
}

.zm-plot-form-card__head,
.zm-plot-workspace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.zm-plot-form-card .zm-card-header { border-bottom: 1px solid var(--zm-border); }
.zm-zone-locked--compact { padding: 0.625rem 0.875rem; }

.zm-plot-workspace {
  overflow: hidden;
  border: 1px solid var(--zm-border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.zm-plot-workspace__head {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid var(--zm-border);
}

.zm-plot-live-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.zm-plot-live-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.zm-plot-live-chip--area { background: #ecfdf5; color: #047857; }

.zm-plot-boundary-flow {
  border-bottom: 1px solid var(--zm-border);
  background: #fff;
}

.zm-plot-boundary-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.875rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--zm-border);
}

.zm-plot-boundary-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--zm-muted);
  flex: 1;
  min-width: 8rem;
}

.zm-plot-boundary-step.is-active {
  border-color: var(--zm-primary);
  background: #ecfdf5;
  color: var(--zm-dark);
}

.zm-plot-boundary-step.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--zm-success);
}

.zm-plot-boundary-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.zm-plot-boundary-step.is-active .zm-plot-boundary-step__num {
  background: var(--zm-primary);
  color: #fff;
}

.zm-plot-boundary-step.is-done .zm-plot-boundary-step__num {
  background: #bbf7d0;
  color: #166534;
}

.zm-plot-boundary-step__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.2;
}

.zm-plot-boundary-step__text strong { font-size: 0.8125rem; }
.zm-plot-boundary-step__text small { font-size: 0.6875rem; color: inherit; opacity: 0.85; }

.zm-plot-boundary-step__arrow {
  color: #cbd5e1;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.zm-plot-toolbar--simple {
  border-bottom: 1px solid var(--zm-border);
}

.zm-plot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.875rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--zm-border);
}

.zm-plot-toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.zm-plot-toolbar__group--end { margin-left: auto; }

.zm-plot-toolbar__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  margin-right: 0.25rem;
}

.zm-plot-toolbar .btn { display: inline-flex; align-items: center; gap: 0.35rem; }

.zm-plot-hint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.625rem 1.25rem;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  font-size: 0.8125rem;
  color: #92400e;
}

.zm-plot-hint-bar i { color: #d97706; }
.zm-plot-hint-bar__meta { margin-left: auto; font-size: 0.75rem; color: #78716c; }

.zm-plot-workspace .zm-plot-edges-panel {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--zm-border);
  border-radius: 0;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 0.75rem 1.25rem;
}

.zm-plot-map-frame {
  padding: 0.75rem 1rem 0;
  background: #f1f5f9;
}

.zm-plot-map-frame .zm-plot-map-picker {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.zm-plot-workspace .zm-plot-status-legend {
  padding: 0.75rem 1.25rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--zm-border);
}

.zm-plot-map-frame #plotMapPicker { height: 520px; }

.zm-plot-form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.zm-plot-form-sidebar { position: sticky; top: 5.5rem; }

.zm-plot-guide-list { list-style: none; padding: 0; margin: 0; counter-reset: plot-guide; }

.zm-plot-guide-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.zm-plot-guide-list li:last-child { margin-bottom: 0; }

.zm-plot-guide-list li::before {
  counter-increment: plot-guide;
  content: counter(plot-guide);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--zm-primary-light, #ecfdf5);
  color: var(--zm-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zm-plot-guide-list li strong { display: block; font-size: 0.875rem; margin-bottom: 0.15rem; }

.zm-plot-guide-list li span {
  display: block;
  font-size: 0.8125rem;
  color: var(--zm-muted);
  line-height: 1.45;
}

.zm-plot-zone-facts { display: flex; flex-direction: column; gap: 0.625rem; }

.zm-plot-zone-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--zm-border);
  font-size: 0.875rem;
}

.zm-plot-zone-fact:last-child { border-bottom: none; }
.zm-plot-zone-fact span { color: var(--zm-muted); }

.zm-plot-tip-banner {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #334155;
}

.zm-plot-tip-banner i { font-size: 1.25rem; color: #2563eb; flex-shrink: 0; }
.zm-plot-tip-banner p { margin: 0; line-height: 1.5; }

@media (max-width: 991.98px) {
  .zm-plot-form-sidebar { position: static; }
  .zm-plot-form-step__label { display: none; }
  .zm-plot-form-step__line { min-width: 0.75rem; margin: 0 0.35rem; }
  .zm-plot-map-frame #plotMapPicker { height: 360px; }
  .zm-plot-boundary-step__arrow { display: none; }
  .zm-plot-boundary-step { min-width: calc(50% - 0.5rem); }
}

@media (max-width: 575.98px) {
  .zm-plot-form-hero { padding: 1rem; }
  .zm-plot-form-hero__title { font-size: 1.25rem; }
  .zm-plot-toolbar__group--end { margin-left: 0; width: 100%; }
}

.zm-zone-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zm-primary);
  background: var(--zm-primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.zm-badge-status-active { background: #d1fae5; color: #065f46; }
.zm-badge-status-planned { background: #dbeafe; color: #1e40af; }
.zm-badge-status-development { background: #fef3c7; color: #92400e; }
.zm-badge-status-inactive { background: #f1f5f9; color: #64748b; }

.zm-badge-type-industrial { background: #e0f2fe; color: #0369a1; }
.zm-badge-type-commercial { background: #ede9fe; color: #5b21b6; }
.zm-badge-type-mixed { background: #fce7f3; color: #9d174d; }
.zm-badge-type-agricultural { background: #ecfccb; color: #3f6212; }
.zm-badge-type-tourism { background: #ffedd5; color: #9a3412; }

.zm-badge-role-system { background: #e0e7ff; color: #3730a3; }
.zm-badge-role-custom { background: #f3e8ff; color: #6b21a8; }
.zm-badge-audience-staff { background: #dbeafe; color: #1e40af; }
.zm-badge-audience-external { background: #fce7f3; color: #9d174d; }
.zm-badge-role-staff { background: var(--zm-primary-light); color: var(--zm-primary); }

.zm-user-email {
  font-size: 0.8125rem;
  color: var(--zm-dark);
  text-decoration: none;
  transition: color var(--zm-transition);
}

.zm-user-email:hover {
  color: var(--zm-primary);
  text-decoration: underline;
}

.zm-badge-role,
.zm-badge-audience {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.zm-zone-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--zm-border);
  font-size: 0.875rem;
}

.zm-zone-guide li {
  padding: 0.375rem 0;
}

.zm-zone-tip-card {
  border-color: rgba(0, 135, 81, 0.2);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.zm-zone-delete-summary,
.zm-delete-summary {
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  padding: 1.25rem;
}

.input-group-text {
  background: #f8fafc;
  border-color: var(--zm-border);
  color: var(--zm-muted);
}

.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* ── Zones list page ── */
.zm-zones-card {
  overflow: visible;
  border: 1px solid var(--zm-border);
  box-shadow: var(--zm-shadow);
}

.zm-zones-list-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--zm-border);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.zm-zones-list-title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.zm-zones-list-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.zm-zones-list-head h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--zm-dark);
  letter-spacing: -0.01em;
}

.zm-zones-count {
  display: block;
  font-size: 0.8125rem;
  color: var(--zm-muted);
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Filter bar */
.zm-list-filter {
  background: #f8fafc;
  border-bottom: 1px solid var(--zm-border);
}

.zm-list-filter__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
}

.zm-list-filter__search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  padding: 0 1rem;
  height: 38px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--zm-transition), box-shadow var(--zm-transition);
}

.zm-list-filter__search.is-active {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
}

.zm-list-filter__search i {
  color: var(--zm-muted);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.zm-list-filter__search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  color: var(--zm-dark);
  padding: 0;
  box-shadow: none;
}

.zm-list-filter__search input::placeholder {
  color: #94a3b8;
}

.zm-list-filter__divider {
  width: 1px;
  height: 28px;
  background: var(--zm-border);
  flex-shrink: 0;
}

.zm-list-filter__fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.zm-list-filter__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  padding: 0 0.875rem;
  height: 38px;
  min-width: 0;
  flex: 1 1 140px;
  max-width: 200px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--zm-transition), box-shadow var(--zm-transition);
}

.zm-list-filter__field.is-active {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
}

.zm-list-filter__field > i {
  color: var(--zm-muted);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.zm-list-filter__field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zm-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.zm-list-filter__field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zm-dark);
  padding: 0 1.25rem 0 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  box-shadow: none;
  width: 100%;
  min-width: 0;
}

.zm-list-filter__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--zm-border);
  background: #fff;
  color: var(--zm-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 0.875rem;
  height: 38px;
  margin-left: auto;
  cursor: pointer;
  border-radius: var(--zm-radius-sm);
  transition: var(--zm-transition);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

.zm-list-filter__clear:hover {
  color: var(--zm-primary);
  border-color: rgba(0, 135, 81, 0.35);
  background: var(--zm-primary-light);
}

.zm-list-filter__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem 0.875rem;
}

.zm-list-filter__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid rgba(0, 135, 81, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.375rem 0.25rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 135, 81, 0.08);
}

.zm-list-filter__tag-label {
  color: var(--zm-muted);
  font-weight: 500;
}

.zm-list-filter__tag-value {
  font-weight: 700;
  color: var(--zm-primary);
}

.zm-list-filter__tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  font-size: 0.875rem;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--zm-transition);
}

.zm-list-filter__tag button:hover {
  background: #fee2e2;
  color: var(--zm-danger);
}

/* Table */
.zm-zones-table-wrap {
  overflow: visible;
  padding: 0 0.5rem;
}

.zm-zones-card .dataTables_wrapper {
  overflow: visible !important;
}

.zm-zones-table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.zm-zones-table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--zm-muted);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.875rem 0.625rem;
  background: #f8fafc;
  border: none;
  border-bottom: 2px solid var(--zm-border);
  position: relative;
}

.zm-zones-table thead th:first-child {
  padding-left: 1rem;
  border-radius: 0;
}

.zm-zones-table thead th:last-child {
  padding-right: 1rem;
}

.zm-zones-table tbody td {
  vertical-align: middle;
  padding: 0.75rem 0.625rem;
  font-size: 0.8125rem;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background var(--zm-transition);
}

.zm-zones-table tbody td:first-child {
  padding-left: 1rem;
}

.zm-zones-table tbody td:last-child {
  padding-right: 1rem;
  overflow: visible;
  text-overflow: clip;
}

.zm-zones-table tbody tr {
  transition: background var(--zm-transition), box-shadow var(--zm-transition);
}

.zm-zones-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(0, 135, 81, 0.04) 0%, rgba(0, 135, 81, 0.01) 100%);
}

.zm-zones-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--zm-primary);
}

.zm-zone-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.zm-zone-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.zm-zone-name {
  font-weight: 600;
  color: var(--zm-dark);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

a.zm-zone-name-link {
  font-weight: 600;
  color: var(--zm-dark);
  font-size: 0.875rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--zm-transition);
}

a.zm-zone-name-link:hover {
  color: var(--zm-primary);
  text-decoration: underline;
}

a.zm-plot-pill-link {
  text-decoration: none;
  color: inherit;
  transition: border-color var(--zm-transition), box-shadow var(--zm-transition);
}

a.zm-plot-pill-link:hover {
  border-color: var(--zm-primary);
  box-shadow: 0 0 0 2px rgba(0, 135, 81, 0.12);
}

.zm-plot-status-1, .zm-plot-status.zm-plot-status-1 { background: #d1fae5; color: #065f46; }
.zm-plot-status-2, .zm-plot-status.zm-plot-status-2 { background: #fee2e2; color: #991b1b; }
.zm-plot-status-3, .zm-plot-status.zm-plot-status-3 { background: #ffedd5; color: #c2410c; }
.zm-plot-status-4, .zm-plot-status.zm-plot-status-4 { background: #dbeafe; color: #1e40af; }
.zm-plot-status-5, .zm-plot-status.zm-plot-status-5 { background: #fef3c7; color: #92400e; }

.zm-zones-table tbody tr.zm-row-highlight {
  background: rgba(0, 135, 81, 0.08) !important;
}

.zm-zone-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zm-primary);
  background: var(--zm-primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

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

.zm-plots-cell {
  overflow: visible;
  text-overflow: clip;
}

.zm-plot-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  white-space: nowrap;
}

.zm-plot-pill__total {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--zm-dark);
}

.zm-plot-pill__avail {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zm-success);
  padding-left: 0.35rem;
  border-left: 1px solid var(--zm-border);
}

.zm-area-val {
  font-weight: 700;
  color: var(--zm-dark);
}

.zm-area-unit {
  font-size: 0.75rem;
  color: var(--zm-muted);
  margin-left: 0.15rem;
}

.zm-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.zm-portal-badge.visible {
  background: #d1fae5;
  color: #065f46;
}

.zm-portal-badge.hidden {
  background: #f1f5f9;
  color: #64748b;
}

.zm-zones-table .zm-badge {
  font-size: 0.6875rem;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.zm-row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zm-muted);
}

.zm-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: transparent;
  border: none;
}

.zm-table-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--zm-transition);
  border: none;
}

.zm-table-actions__btn.add {
  background: var(--zm-primary);
  color: #fff;
}

.zm-table-actions__btn.add:hover {
  background: var(--zm-primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 135, 81, 0.35);
}

.zm-table-actions__btn.edit {
  background: #dbeafe;
  color: #1d4ed8;
}

.zm-table-actions__btn.edit:hover {
  background: #bfdbfe;
  color: #1e40af;
}

.zm-table-actions__btn.map {
  background: #fef3c7;
  color: #b45309;
}

.zm-table-actions__btn.map:hover {
  background: #fde68a;
  color: #92400e;
}

.zm-table-actions__btn.delete {
  background: #fee2e2;
  color: #dc2626;
}

.zm-table-actions__btn.delete:hover {
  background: #fecaca;
  color: #b91c1c;
}

.zm-dt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--zm-border);
  min-height: 52px;
}

.zm-dt-footer-left,
.zm-dt-footer-center,
.zm-dt-footer-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.zm-dt-footer-left {
  flex: 1 1 auto;
  min-width: 0;
}

.zm-dt-footer-center {
  flex: 0 0 auto;
}

.zm-dt-footer-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.zm-dt-footer .dataTables_info {
  font-size: 0.8125rem;
  color: var(--zm-muted);
  padding: 0;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.zm-dt-footer .dataTables_length {
  font-size: 0.8125rem;
  color: var(--zm-muted);
  padding: 0;
  margin: 0;
}

.zm-dt-footer .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  color: var(--zm-muted);
}

.zm-dt-footer .dataTables_length select {
  border-radius: 8px;
  border: 1px solid var(--zm-border);
  padding: 0.35rem 1.75rem 0.35rem 0.625rem;
  font-size: 0.8125rem;
  background: #fff;
  font-weight: 600;
  color: var(--zm-dark);
  min-width: 62px;
  cursor: pointer;
}

.zm-dt-footer .dataTables_paginate {
  margin: 0;
}

/* Connected pagination — Bootstrap-style button group */
.zm-dt-footer .dataTables_paginate .pagination,
.zm-dt-footer .pagination {
  margin: 0;
  gap: 0;
  flex-wrap: nowrap;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  display: inline-flex;
  padding: 0;
  list-style: none;
  --bs-pagination-border-width: 0;
  --bs-pagination-border-radius: 0;
  --bs-pagination-focus-box-shadow: none;
}

.zm-dt-footer .page-item,
.zm-dt-footer .paginate_button {
  margin: 0 !important;
  list-style: none;
}

.zm-dt-footer .page-item .page-link,
.zm-dt-footer .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0.5rem 0.875rem !important;
  margin: 0 !important;
  border: none !important;
  border-right: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--zm-primary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: none !important;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none !important;
}

.zm-dt-footer .page-item:last-child .page-link,
.zm-dt-footer .paginate_button.last,
.zm-dt-footer .paginate_button.next {
  border-right: none !important;
}

.zm-dt-footer .page-item.active .page-link,
.zm-dt-footer .paginate_button.current {
  background: var(--zm-primary) !important;
  border-color: var(--zm-primary) !important;
  color: #fff !important;
  font-weight: 600;
  z-index: 1;
}

.zm-dt-footer .page-item.disabled .page-link,
.zm-dt-footer .paginate_button.disabled {
  background: #fff !important;
  color: #adb5bd !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

.zm-dt-footer .page-item:not(.active):not(.disabled) .page-link:hover,
.zm-dt-footer .paginate_button:not(.current):not(.disabled):hover {
  background: #f8f9fa !important;
  color: var(--zm-primary-dark) !important;
}

.zm-dt-footer .dataTables_paginate .ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0 0.5rem;
  border-right: 1px solid #dee2e6;
  background: #fff;
  color: var(--zm-muted);
  font-size: 0.875rem;
}

.zm-zone-locked {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

@media (max-width: 991.98px) {
  .zm-list-filter__row {
    flex-direction: column;
    align-items: stretch;
  }

  .zm-list-filter__search {
    max-width: none;
  }

  .zm-list-filter__divider {
    display: none;
  }

  .zm-list-filter__fields {
    width: 100%;
  }

  .zm-list-filter__field {
    flex: 1 1 calc(50% - 0.25rem);
    max-width: none;
  }

  .zm-list-filter__clear {
    margin-left: 0;
    align-self: flex-start;
  }

  .zm-zones-table {
    table-layout: auto;
  }
}

@media (max-width: 767.98px) {
  .zm-list-filter__field {
    flex: 1 1 100%;
  }

  .zm-zones-list-head,
  .zm-list-filter__row,
  .zm-list-filter__tags,
  .zm-dt-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Zone plots page — detail panel */
.zm-zone-detail-card {
  overflow: hidden;
}

.zm-zone-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--zm-border);
  background: linear-gradient(135deg, rgba(0, 135, 81, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.zm-zone-detail-head__main {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.zm-zone-detail-head__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.zm-zone-detail-head h5 {
  font-weight: 700;
  color: var(--zm-dark);
  letter-spacing: -0.02em;
}

.zm-zone-detail-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.zm-zone-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 1.25rem;
  margin-bottom: 1rem;
}

.zm-zone-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
}

.zm-zone-detail-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--zm-primary);
  font-size: 0.9375rem;
  flex-shrink: 0;
  border: 1px solid var(--zm-border);
}

.zm-zone-detail-item__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
  margin-bottom: 0.125rem;
}

.zm-zone-detail-item__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zm-dark);
  line-height: 1.35;
}

.zm-zone-detail-block {
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--zm-border);
  border-radius: var(--zm-radius-sm);
  margin-bottom: 0.875rem;
}

.zm-zone-detail-block__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zm-muted);
  margin-bottom: 0.375rem;
}

.zm-zone-detail-block__text {
  font-size: 0.875rem;
  color: var(--zm-dark);
  line-height: 1.55;
}

.zm-zone-detail-legend {
  padding-top: 0.5rem;
  border-top: 1px solid var(--zm-border);
  margin-top: 0.25rem;
}

.zm-zone-row__icon--plot {
  background: rgba(0, 135, 81, 0.1);
  color: var(--zm-primary);
}

.zm-boundary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zm-muted);
  background: #f1f5f9;
  border: 1px solid var(--zm-border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.zm-map-info {
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.125rem 0;
}

@media (max-width: 575.98px) {
  .zm-zone-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Delete confirmation pages ── */
.zm-delete-card {
  overflow: hidden;
  border: 1px solid var(--zm-border);
  box-shadow: var(--zm-shadow);
}

.zm-delete-card__warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-bottom: 1px solid #fecaca;
}

.zm-delete-card__warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.zm-delete-card__warning-title {
  font-size: 1rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 0.375rem;
}

.zm-delete-card__warning-text {
  font-size: 0.875rem;
  color: #7f1d1d;
  line-height: 1.55;
}

.zm-delete-card__warning-text p:last-child {
  margin-bottom: 0;
}

.zm-delete-card__body {
  padding: 1.5rem;
}

.zm-delete-card__entity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--zm-border);
}

.zm-delete-card__entity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--zm-primary-light);
  color: var(--zm-primary);
  font-size: 1.375rem;
  flex-shrink: 0;
}

.zm-delete-card__entity-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--zm-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.zm-delete-summary__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zm-muted);
  margin-bottom: 0.875rem;
}

.zm-delete-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.zm-delete-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.zm-delete-summary__item--full {
  grid-column: 1 / -1;
}

.zm-delete-summary__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zm-muted);
}

.zm-delete-summary__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zm-dark);
  line-height: 1.45;
  word-break: break-word;
}

.zm-delete-card__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--zm-border);
}

@media (max-width: 575.98px) {
  .zm-delete-summary__grid {
    grid-template-columns: 1fr;
  }

  .zm-delete-card__body,
  .zm-delete-card__warning {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Applications list page — premium registry */
.zm-apps-page {
  --zm-apps-accent: #008751;
  --zm-apps-accent-soft: rgba(0, 135, 81, 0.08);
  --zm-apps-surface: #ffffff;
  --zm-apps-muted: #64748b;
  --zm-apps-border: #e8edf2;
  --zm-apps-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --zm-apps-radius: 16px;
  position: relative;
}

.zm-apps-page::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  right: -1rem;
  height: 220px;
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(0, 135, 81, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(14, 165, 233, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.zm-apps-page > * {
  position: relative;
  z-index: 1;
}

/* Page header */
.zm-apps-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.zm-apps-page-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #008751 0%, #0ea5e9 100%);
  border-radius: 18px 0 0 18px;
}

.zm-apps-page-header__main {
  min-width: 0;
  flex: 1 1 18rem;
}

.zm-apps-page-header__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.zm-apps-page-header__mark {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #008751 0%, #006b41 100%);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(0, 135, 81, 0.28);
}

.zm-apps-page-header__copy {
  min-width: 0;
}

.zm-apps-page-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zm-apps-accent);
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 135, 81, 0.08);
  border: 1px solid rgba(0, 135, 81, 0.14);
}

.zm-apps-page-title {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.3rem;
  color: #0f172a;
  line-height: 1.15;
}

.zm-apps-page-subtitle {
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--zm-apps-muted);
  line-height: 1.55;
  margin: 0;
}

.zm-apps-page-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.zm-apps-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 1rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #dbe3ec;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.zm-apps-map-btn i {
  color: #008751;
  font-size: 1rem;
}

.zm-apps-map-btn:hover {
  color: #006b41;
  border-color: rgba(0, 135, 81, 0.45);
  box-shadow: 0 6px 16px rgba(0, 135, 81, 0.12);
  transform: translateY(-1px);
}

.zm-apps-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.zm-apps-role-chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.zm-apps-role-chip__icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  background: rgba(0, 135, 81, 0.12);
  color: #008751;
  font-size: 0.85rem;
}

.zm-apps-role-chip__label {
  letter-spacing: 0.01em;
}

/* Insight / workflow bar */
.zm-apps-insight-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--zm-apps-border);
  border-radius: 12px;
}

.zm-apps-insight-bar__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.zm-apps-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.zm-apps-flow-step i {
  color: var(--zm-apps-accent);
  font-size: 0.85rem;
}

.zm-apps-flow-arrow {
  font-size: 0.65rem;
  color: #cbd5e1;
}

.zm-apps-insight-bar__queue {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: linear-gradient(135deg, #004d2e, #008751);
  border-radius: 10px;
  color: #fff;
}

.zm-apps-insight-bar__queue-text {
  font-size: 0.82rem;
  opacity: 0.95;
}

.zm-apps-insight-bar__queue-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  margin-right: 0.15rem;
}

.zm-apps-queue-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #004d2e;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zm-apps-queue-btn:hover {
  background: #fff;
  color: #004d2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Metric cards */
.zm-apps-metrics {
  margin-bottom: 1.75rem !important;
}

.zm-apps-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--zm-apps-border);
  border-radius: var(--zm-apps-radius);
  background: var(--zm-apps-surface);
  box-shadow: var(--zm-apps-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.zm-apps-metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--zm-metric-accent, var(--zm-apps-accent));
}

.zm-apps-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: #d1dae3;
}

.zm-apps-metric.is-selected {
  border-color: var(--zm-metric-accent, var(--zm-apps-accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--zm-metric-accent, var(--zm-apps-accent)) 18%, transparent),
    0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.zm-apps-metric--primary { --zm-metric-accent: #008751; }
.zm-apps-metric--warning { --zm-metric-accent: #d97706; }
.zm-apps-metric--success { --zm-metric-accent: #059669; }
.zm-apps-metric--danger  { --zm-metric-accent: #dc2626; }
.zm-apps-metric--info    { --zm-metric-accent: #0284c7; }

.zm-apps-metric__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: color-mix(in srgb, var(--zm-metric-accent) 12%, #fff);
  color: var(--zm-metric-accent);
}

.zm-apps-metric__value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.zm-apps-metric__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zm-apps-muted);
  margin-top: 0.15rem;
}

.zm-apps-stat-tile {
  cursor: pointer;
}

/* Registry card */
.zm-apps-registry {
  background: var(--zm-apps-surface);
  border: 1px solid var(--zm-apps-border);
  border-radius: var(--zm-apps-radius);
  box-shadow: var(--zm-apps-shadow);
  overflow: hidden;
}

.zm-apps-registry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--zm-apps-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.zm-apps-registry__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.zm-apps-registry__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--zm-apps-accent-soft);
  color: var(--zm-apps-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.zm-apps-registry__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.zm-apps-registry__meta {
  font-size: 0.8rem;
  color: var(--zm-apps-muted);
  margin: 0.15rem 0 0;
}

.zm-apps-registry__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid var(--zm-apps-border);
}

.zm-apps-registry__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: zm-apps-pulse 2s ease-in-out infinite;
}

@keyframes zm-apps-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Filter panel */
.zm-apps-filter-panel {
  border-bottom: 1px solid var(--zm-apps-border);
}

.zm-apps-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.5rem;
  background: #fafbfc;
  border-bottom: 1px solid var(--zm-apps-border);
}

.zm-apps-filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-right: 0.35rem;
}

.zm-apps-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zm-apps-chip:hover {
  border-color: #86efac;
  color: var(--zm-apps-accent);
  background: #f0fdf4;
}

.zm-apps-chip.is-active {
  background: linear-gradient(135deg, #006b40, var(--zm-apps-accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 135, 81, 0.3);
}

.zm-apps-chip-queue.is-active i {
  color: #fff;
}

.zm-apps-advanced-filter {
  padding: 0.75rem 1.5rem 1rem;
  background: #fff;
}

.zm-apps-advanced-filter .zm-list-filter__search {
  min-width: 240px;
  flex: 1 1 280px;
}

.zm-apps-search input {
  font-size: 0.88rem;
}

/* Table */
.zm-apps-table-wrap {
  padding: 0;
  border-radius: 0;
}

.zm-apps-page .zm-apps-table {
  margin: 0;
}

.zm-apps-page .zm-apps-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zm-apps-border);
  white-space: nowrap;
}

.zm-apps-page .zm-apps-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

.zm-apps-page .zm-apps-table tbody tr {
  transition: background 0.15s ease;
}

.zm-apps-page .zm-apps-table tbody tr:hover {
  background: #f8fafc;
}

.zm-apps-table tbody tr.zm-app-row-queue {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.4) 0%, transparent 55%);
}

.zm-apps-table tbody tr.zm-app-row-queue:hover {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.55) 0%, rgba(248, 250, 252, 1) 100%);
}

/* Reference cell */
.zm-app-ref-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.zm-apps-ref-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

.zm-app-source {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

/* Applicant */
.zm-apps-applicant {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.zm-apps-applicant__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.zm-apps-applicant__name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-apps-applicant__email {
  font-size: 0.75rem;
  color: var(--zm-apps-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Plot */
.zm-apps-plot {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.zm-apps-plot__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--zm-apps-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.zm-apps-plot__title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.zm-apps-plot__meta {
  font-size: 0.72rem;
  color: var(--zm-apps-muted);
  margin-top: 0.1rem;
}

.zm-apps-zone-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-apps-date {
  display: block;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.82rem;
}

.zm-apps-time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

/* Status */
.zm-app-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  white-space: normal;
}

.zm-apps-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  line-height: 1.2;
}

.zm-apps-status-pill.status-pending  { background: #dbeafe; color: #1e40af; }
.zm-apps-status-pill.status-success,
.zm-apps-status-pill.status-approved { background: #d1fae5; color: #065f46; }
.zm-apps-status-pill.status-danger,
.zm-apps-status-pill.status-rejected { background: #fee2e2; color: #991b1b; }
.zm-apps-status-pill.status-warning  { background: #fef3c7; color: #92400e; }
.zm-apps-status-pill.status-secondary { background: #f1f5f9; color: #475569; }
.zm-apps-status-pill.status-info     { background: #e0f2fe; color: #0369a1; }

.zm-apps-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zm-apps-status-pill.status-warning::before { background: #d97706; }
.zm-apps-status-pill.status-pending::before  { background: #2563eb; }
.zm-apps-status-pill.status-success::before,
.zm-apps-status-pill.status-approved::before { background: #059669; }
.zm-apps-status-pill.status-danger::before,
.zm-apps-status-pill.status-rejected::before  { background: #dc2626; }
.zm-apps-status-pill.status-info::before     { background: #0284c7; }
.zm-apps-status-pill.status-secondary::before { background: #64748b; }

.zm-apps-doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* Review link */
.zm-apps-review-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zm-apps-accent);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 135, 81, 0.25);
  background: var(--zm-apps-accent-soft);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.zm-apps-review-link:hover {
  color: #fff;
  background: var(--zm-apps-accent);
  border-color: var(--zm-apps-accent);
  box-shadow: 0 4px 12px rgba(0, 135, 81, 0.28);
}

.zm-apps-review-link i {
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.zm-apps-review-link:hover i {
  transform: translate(2px, -2px);
}

/* Empty state */
.zm-apps-empty {
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
}

.zm-apps-empty__ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(0, 135, 81, 0.06);
}

.zm-apps-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  color: var(--zm-apps-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 16px rgba(0, 135, 81, 0.12);
}

.zm-apps-empty__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.zm-apps-empty__text {
  font-size: 0.9rem;
  color: var(--zm-apps-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.zm-apps-empty__btn {
  border-radius: 10px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
}

/* DataTables footer scoped */
.zm-apps-page .zm-dt-footer {
  padding: 0.85rem 1.5rem 1rem;
  border-top: 1px solid var(--zm-apps-border);
  background: #fafbfc;
}

@media (max-width: 991.98px) {
  .zm-apps-insight-bar__flow {
    width: 100%;
  }

  .zm-apps-insight-bar__queue {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  .zm-apps-page-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.05rem 1.05rem 1.15rem;
  }

  .zm-apps-page-header__mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .zm-apps-page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .zm-apps-metric {
    padding: 0.9rem 1rem;
  }

  .zm-apps-metric__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .zm-apps-metric__value {
    font-size: 1.35rem;
  }

  .zm-apps-quick-filters {
    padding: 0.75rem 1rem;
  }

  .zm-apps-advanced-filter {
    padding: 0.65rem 1rem 0.85rem;
  }

  .zm-apps-registry__head {
    padding: 1rem;
  }

  .zm-apps-review-link span {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .zm-apps-flow-arrow {
    display: none;
  }

  .zm-apps-flow-step {
    font-size: 0.68rem;
  }
}

/* ═══ Staff Dashboard — simple & clean ═══ */
.zm-dash {
  /* inherits zm-apps-page atmosphere when combined */
}

.zm-dash .zm-apps-metric {
  cursor: default;
}

.zm-dash-inventory__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 280px;
}

.zm-dash-inventory__status,
.zm-dash-inventory__zones {
  padding: 1.35rem 1.5rem 1.5rem;
}

.zm-dash-inventory__status {
  border-right: 1px solid var(--zm-apps-border, #e8edf2);
}

.zm-dash-inventory__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.zm-dash-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.zm-dash-status-list__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.zm-dash-status-list__label {
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
}

.zm-dash-status-list__count {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.zm-dash-status-list__count small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 0.25rem;
}

.zm-dash-status-list__track {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.zm-dash-status-list__fill {
  height: 100%;
  border-radius: 999px;
}

.zm-dash-status-list__fill--success { background: linear-gradient(90deg, #10b981, #34d399); }
.zm-dash-status-list__fill--primary { background: linear-gradient(90deg, #008751, #10b981); }
.zm-dash-status-list__fill--info    { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.zm-dash-status-list__fill--warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.zm-dash-status-list__fill--muted   { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

.zm-dash-zone-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.zm-dash-apps-panel.zm-apps-registry {
  margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .zm-dash-inventory__body {
    grid-template-columns: 1fr;
  }

  .zm-dash-inventory__status {
    border-right: none;
    border-bottom: 1px solid var(--zm-apps-border, #e8edf2);
  }
}

@media (max-width: 575.98px) {
  .zm-dash-zone-block {
    flex-direction: column;
    align-items: stretch;
  }

  .zm-dash-zone-donut {
    margin: 0 auto;
  }
}

.zm-dash-panel {
  background: #fff;
  border: 1px solid var(--zm-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
}

.zm-dash-pair-row {
  align-items: stretch;
}

.zm-dash-pair-row > [class*="col-"] {
  display: flex;
}

.zm-dash-panel--stretch {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.zm-dash-panel__body {
  flex: 1;
  min-height: 0;
}

.zm-dash-panel--stretch .zm-dash-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zm-dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.zm-dash-panel__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.zm-dash-panel__title i {
  color: var(--zm-primary);
}

.zm-dash-panel__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.zm-dash-panel__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zm-primary);
  text-decoration: none;
}

.zm-dash-panel__link:hover {
  text-decoration: underline;
}

.zm-dash-bars {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.zm-dash-bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.zm-dash-bar__label {
  font-weight: 600;
  color: #475569;
}

.zm-dash-bar__count {
  font-weight: 800;
  color: #0f172a;
}

.zm-dash-bar__track {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.zm-dash-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.zm-dash-bar__fill--success { background: linear-gradient(90deg, #10b981, #34d399); }
.zm-dash-bar__fill--primary { background: linear-gradient(90deg, #008751, #10b981); }
.zm-dash-bar__fill--info    { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.zm-dash-bar__fill--warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.zm-dash-bar__fill--muted   { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

/* Plots by zone — donut + legend */
.zm-dash-zone-chart {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  height: 100%;
}

.zm-dash-zone-donut {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.zm-dash-zone-donut__center {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fff;
  line-height: 1.1;
}

.zm-dash-zone-donut__center strong {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.zm-dash-zone-donut__center span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.zm-dash-zone-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.zm-dash-zone-legend__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #f8fafc;
}

.zm-dash-zone-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zm-dash-zone-legend__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-dash-zone-legend__count {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

.zm-dash-timeline {
  padding: 0.5rem 1.25rem 1rem;
  height: 100%;
  overflow-y: auto;
}

.zm-dash-timeline--row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  height: auto;
  overflow: visible;
  padding: 1rem 1.35rem 1.25rem;
}

.zm-dash-timeline--row .zm-dash-timeline__item {
  padding: 0.75rem;
  margin: 0;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
}

.zm-dash-timeline--row .zm-dash-timeline__item:last-child {
  border-bottom: 1px solid #e8edf2;
}

.zm-dash-timeline__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f8fafc;
}

.zm-dash-timeline__item:last-child {
  border-bottom: none;
}

.zm-dash-timeline__dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.zm-dash-timeline__dot--success { background: #d1fae5; color: #059669; }
.zm-dash-timeline__dot--danger  { background: #fee2e2; color: #dc2626; }
.zm-dash-timeline__dot--warning { background: #fef3c7; color: #d97706; }
.zm-dash-timeline__dot--info    { background: #e0f2fe; color: #0284c7; }
.zm-dash-timeline__dot--primary { background: #ecfdf5; color: #008751; }

.zm-dash-timeline__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.zm-dash-timeline__ref {
  font-size: 0.72rem;
  color: #64748b;
  font-family: ui-monospace, monospace;
}

.zm-dash-timeline__time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.zm-dash-app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
}

.zm-dash-app-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid #f1f5f9;
  background: #fafbfc;
}

.zm-dash-app-stat:last-child {
  border-right: none;
}

.zm-dash-app-stat--warn { background: #fffdf5; }
.zm-dash-app-stat--ok   { background: #f6fdf9; }
.zm-dash-app-stat--bad   { background: #fffafa; }

.zm-dash-app-stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.zm-dash-app-stat__lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zm-dash-app-cards-wrap {
  padding: 1.15rem 1.25rem 1rem;
}

.zm-dash-app-cards {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.zm-dash-app-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* 1 application — compact card, no full-width stretch */
.zm-dash-app-cards--n1 {
  grid-template-columns: minmax(260px, 320px);
  justify-content: start;
}

/* 2 applications — equal halves, fill the row */
.zm-dash-app-cards--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 3 applications — three equal columns */
.zm-dash-app-cards--n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 4 applications — four equal columns (wraps on smaller screens via media queries) */
.zm-dash-app-cards--n4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 5 applications — five columns on wide screens */
.zm-dash-app-cards--n5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* 6+ applications — responsive grid + scroll */
.zm-dash-app-cards--many {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: min(440px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.zm-dash-app-cards--many::-webkit-scrollbar {
  width: 6px;
}

.zm-dash-app-cards--many::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.zm-dash-app-cards__foot {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
}

.zm-dash-app-cards__foot a {
  font-weight: 700;
  color: var(--zm-primary);
  text-decoration: none;
  margin-left: 0.35rem;
}

.zm-dash-app-cards__foot a:hover {
  text-decoration: underline;
}

.zm-dash-app-card:hover {
  border-color: rgba(0, 135, 81, 0.35);
  box-shadow: 0 6px 20px rgba(0, 135, 81, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.zm-dash-app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.zm-dash-app-card__ref {
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-dash-app-card__status {
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  line-height: 1.25;
  flex-shrink: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-dash-app-card__applicant {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.zm-dash-app-card__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zm-dash-app-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-dash-app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.zm-dash-app-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.zm-dash-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #94a3b8;
}

.zm-dash-empty--compact {
  padding: 1.75rem 1.25rem;
}

.zm-dash-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.zm-dash-empty p {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 1199.98px) {
  .zm-dash-app-cards--n5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zm-dash-app-cards--n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .zm-dash-app-cards--n5,
  .zm-dash-app-cards--n4,
  .zm-dash-app-cards--n3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .zm-dash-app-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .zm-dash-app-stat:nth-child(2) {
    border-right: none;
  }

  .zm-dash-app-stat:nth-child(1),
  .zm-dash-app-stat:nth-child(2) {
    border-bottom: 1px solid #f1f5f9;
  }

  .zm-dash-app-cards-wrap {
    padding: 1rem;
  }

  .zm-dash-app-cards--n5,
  .zm-dash-app-cards--n4,
  .zm-dash-app-cards--n3,
  .zm-dash-app-cards--n2 {
    grid-template-columns: 1fr;
  }

  .zm-dash-app-cards--n1 {
    grid-template-columns: 1fr;
  }

  .zm-dash-app-cards--many {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 575.98px) {
  .zm-dash-page-header {
    margin-bottom: 1.15rem;
  }

  .zm-dash-page-actions {
    width: 100%;
  }

  .zm-dash-insight-bar {
    padding: 0.75rem 1rem;
  }

  .zm-dash-status-grid {
    grid-template-columns: 1fr;
  }

  .zm-dash-zone-chart {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .zm-dash-zone-donut {
    margin: 0 auto;
  }

  .zm-dash-pair-row > [class*="col-"] {
    display: block;
  }

  .zm-dash-panel--stretch {
    min-height: 0;
  }
}

/* ─── Role edit / add form ─── */
.zm-role-form-page .zm-apps-page-header {
  margin-bottom: 1.5rem;
}

.zm-role-form-panel {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.zm-role-form-panel__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid #e8edf2;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.zm-role-form-panel__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 135, 81, 0.1);
  color: #008751;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.zm-role-form-panel__title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.zm-role-form-panel__meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.zm-role-form-panel__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.zm-role-form-panel__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid #e8edf2;
  background: #fafbfc;
}

.zm-role-form-panel__foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
}

.zm-role-field {
  margin-bottom: 1.1rem;
}

.zm-role-field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.zm-role-field__label span {
  color: #dc2626;
}

.zm-role-field__input {
  border-radius: 10px;
  border-color: #e2e8f0;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.zm-role-field__input:focus {
  border-color: #008751;
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
}

.zm-role-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.zm-role-slug-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 10px;
}

.zm-role-slug-readonly code {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
}

.zm-role-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zm-role-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.zm-role-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  margin: 0;
}

.zm-role-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zm-role-toggle__ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: background 0.2s ease;
}

.zm-role-toggle__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.zm-role-toggle input:checked + .zm-role-toggle__ui {
  background: #008751;
}

.zm-role-toggle input:checked + .zm-role-toggle__ui::after {
  transform: translateX(18px);
}

.zm-role-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.zm-role-toggle__text strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.zm-role-toggle__text small {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.zm-role-system-note {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 135, 81, 0.06);
  border: 1px solid rgba(0, 135, 81, 0.15);
  color: #047857;
}

.zm-role-system-note i {
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.zm-role-system-note strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.zm-role-system-note p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.zm-role-perms__head {
  flex-wrap: wrap;
}

.zm-role-perms__title-wrap {
  flex: 1;
  min-width: 160px;
}

.zm-role-perms__summary {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 135, 81, 0.08);
  border: 1px solid rgba(0, 135, 81, 0.15);
  margin-left: auto;
}

.zm-role-perms__summary strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #008751;
}

.zm-role-perms__summary span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zm-role-perm-group {
  margin-bottom: 1.5rem;
}

.zm-role-perm-group:last-child {
  margin-bottom: 0;
}

.zm-role-perm-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zm-role-perm-group__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.zm-role-perm-group__count {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.zm-role-perm-group__toggle {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #008751;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.zm-role-perm-group__toggle:hover {
  background: rgba(0, 135, 81, 0.06);
  border-color: rgba(0, 135, 81, 0.3);
}

.zm-role-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.zm-role-perm-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.zm-role-perm-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.zm-role-perm-card__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zm-role-perm-card__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: transparent;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.zm-role-perm-card__check:checked + .zm-role-perm-card__box {
  background: #008751;
  border-color: #008751;
  color: #fff;
}

.zm-role-perm-card:has(.zm-role-perm-card__check:checked) {
  border-color: rgba(0, 135, 81, 0.35);
  background: rgba(0, 135, 81, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.08);
}

.zm-role-perm-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.zm-role-perm-card__label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.zm-role-perm-card__desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
}

.zm-role-perms-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

.zm-role-perms-empty i {
  font-size: 1.75rem;
  color: #f59e0b;
  display: block;
  margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
  .zm-role-perm-grid {
    grid-template-columns: 1fr;
  }

  .zm-role-form-panel__foot {
    flex-direction: column-reverse;
  }

  .zm-role-form-panel__foot .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Document tracker — investor & staff */
.zm-doc-tracker {
  --doc-border: #e8edf2;
  --doc-muted: #64748b;
  --doc-accent: #008751;
}

.zm-doc-tracker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.zm-doc-tracker__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.zm-doc-tracker__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 135, 81, 0.1);
  color: var(--doc-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.zm-doc-tracker__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.zm-doc-tracker__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--doc-muted);
}

.zm-doc-tracker__pending-text {
  color: #d97706;
  font-weight: 700;
}

.zm-doc-tracker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.zm-doc-tracker__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.zm-doc-tracker__pill--warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.zm-doc-tracker__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.zm-doc-tracker__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #004d2e, #008751);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
}

.zm-doc-tracker__submit:hover {
  color: #fff;
  filter: brightness(1.05);
}

.zm-submit-ministry-modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.zm-submit-ministry-modal .modal-header,
.zm-submit-ministry-modal .modal-footer {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.zm-submit-ministry-modal .modal-body {
  padding: 1rem 1.35rem 0.5rem;
}

.zm-submit-ministry-modal textarea.form-control {
  border-radius: 12px;
  min-height: 96px;
  resize: vertical;
}

.zm-doc-tracker__table-wrap {
  border: 1px solid var(--doc-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.zm-doc-tracker-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.zm-doc-tracker-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid var(--doc-border);
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.zm-doc-tracker-table tbody td {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}

.zm-doc-tracker-table tbody tr:last-child td {
  border-bottom: none;
}

.zm-doc-row--pending {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.04), transparent 35%);
}

.zm-doc-row--done {
  background: #fff;
}

.zm-doc-row--pending:hover,
.zm-doc-row--done:hover {
  background: #f8fafc;
}

.zm-doc-col-num {
  width: 2.5rem;
}

.zm-doc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
}

.zm-doc-identity {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.zm-doc-identity__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.zm-doc-identity__icon.is-pending {
  background: #fff7ed;
  color: #ea580c;
}

.zm-doc-identity__icon.is-done {
  background: rgba(0, 135, 81, 0.1);
  color: #008751;
}

.zm-doc-identity__text {
  min-width: 0;
}

.zm-doc-identity__name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.zm-doc-req {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.zm-doc-identity__meta {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.zm-doc-instr {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  min-width: 0;
}

.zm-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.zm-doc-chip--stage {
  background: #e0f2fe;
  color: #0369a1;
}

.zm-doc-chip--success {
  background: #ecfdf5;
  color: #047857;
}

.zm-doc-chip--warn {
  background: #fffbeb;
  color: #b45309;
}

.zm-doc-status-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.zm-doc-date-inline {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}

.zm-doc-muted {
  color: #cbd5e1;
}

.zm-doc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.zm-doc-action--view {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.zm-doc-action--view:hover {
  color: #008751;
  border-color: rgba(0, 135, 81, 0.3);
  background: rgba(0, 135, 81, 0.05);
}

.zm-doc-action--upload {
  background: linear-gradient(135deg, #004d2e, #008751);
  color: #fff;
  border: none;
  cursor: pointer;
}

.zm-doc-action--upload:hover {
  color: #fff;
  filter: brightness(1.05);
}

.zm-doc-upload {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.zm-doc-upload__file {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 92px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
}

.zm-doc-upload__file.has-file {
  border-style: solid;
  border-color: rgba(0, 135, 81, 0.35);
  background: rgba(0, 135, 81, 0.05);
  color: #047857;
}

.zm-doc-upload__file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.zm-doc-upload__filename {
  overflow: hidden;
  text-overflow: ellipsis;
}

.zm-doc-empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
  border: 1px dashed var(--doc-border);
  border-radius: 14px;
  background: #fafbfc;
}

.zm-doc-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.zm-doc-empty h6 {
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.zm-doc-empty p {
  margin: 0 auto;
  max-width: 420px;
  font-size: 0.85rem;
  color: var(--doc-muted);
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .zm-doc-upload {
    width: 100%;
    justify-content: stretch;
  }

  .zm-doc-upload__file,
  .zm-doc-action--upload {
    flex: 1;
    justify-content: center;
    max-width: none;
  }
}

/* ── Application review page ── */
.zm-review-hero {
  position: relative;
  margin-bottom: 1.15rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 135, 81, 0.08) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(240, 253, 244, 0.75) 100%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.zm-review-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #004d2e, #008751);
}
.zm-review-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
}
.zm-review-page .zm-review-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.28);
  margin-bottom: 0;
}
.zm-review-page .zm-review-back:hover {
  color: #008751;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.zm-review-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
}
.zm-review-hero__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.zm-review-hero__identity {
  min-width: 0;
  flex: 1;
}
.zm-review-hero__ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
}
.zm-review-hero__ref {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}
.zm-review-hero__status {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.7rem;
}
.zm-review-hero__project {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}
.zm-review-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.zm-review-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}
.zm-review-hero__chip i {
  color: #008751;
  font-size: 0.85rem;
}
.zm-review-hero__aside {
  flex-shrink: 0;
}
.zm-review-hero__mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #004d2e, #008751);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(0, 135, 81, 0.28);
}
.zm-review-sep { margin: 0 0.35rem; color: #94a3b8; }
.zm-review-header-actions {
  align-items: flex-end;
  gap: 0.65rem;
}
.zm-review-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148,163,184,0.35);
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .zm-review-hero {
    padding: 0.95rem 1rem 1.05rem;
  }
  .zm-review-hero__aside { display: none; }
  .zm-review-hero__ref {
    font-size: 1.35rem;
  }
}

.zm-review-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.zm-review-summary__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-right: 1px solid #eef2f7;
  min-width: 0;
  transition: background 0.15s ease;
}
.zm-review-summary__item:last-child {
  border-right: none;
}
.zm-review-summary__item:hover {
  background: #f8fafc;
}
.zm-review-summary__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #ecfdf5;
  color: #008751;
  font-size: 1rem;
}
.zm-review-summary__icon.is-docs {
  background: #eff6ff;
  color: #2563eb;
}
.zm-review-summary__icon.is-size {
  background: #fff7ed;
  color: #c2410c;
}
.zm-review-summary__icon.is-use {
  background: #f0fdf4;
  color: #15803d;
}
.zm-review-summary__icon.is-local {
  background: #ecfdf5;
  color: #047857;
}
.zm-review-summary__icon.is-foreign {
  background: #eff6ff;
  color: #1d4ed8;
}
.zm-review-summary__body {
  min-width: 0;
  flex: 1;
}
.zm-review-summary__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.zm-review-summary__value {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zm-review-summary__suffix {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.zm-review-callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.zm-review-callout__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.zm-review-callout__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.zm-review-callout__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
}
.zm-review-callout__meta {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}
.zm-review-callout--investor {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}
.zm-review-callout--investor .zm-review-callout__icon {
  background: #008751;
  color: #fff;
}
.zm-review-callout--investor .zm-review-callout__eyebrow { color: #047857; }
.zm-review-callout--investor-soft {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.zm-review-callout--investor-soft .zm-review-callout__icon {
  background: #e2e8f0;
  color: #475569;
}
.zm-review-callout--return,
.zm-review-callout--return-soft {
  background: #fffbeb;
  border-color: #fde68a;
}
.zm-review-callout--return .zm-review-callout__icon,
.zm-review-callout--return-soft .zm-review-callout__icon {
  background: #f59e0b;
  color: #fff;
}
.zm-review-callout--return .zm-review-callout__eyebrow,
.zm-review-callout--return-soft .zm-review-callout__eyebrow { color: #b45309; }
.zm-review-callout--return-soft {
  background: #fffdf5;
  opacity: 0.95;
}
.zm-review-callout--pending {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.zm-review-callout--pending .zm-review-callout__icon {
  background: #3b82f6;
  color: #fff;
}
.zm-review-callout--pending .zm-review-callout__eyebrow { color: #1d4ed8; }

.zm-review-panel {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}
.zm-review-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.zm-review-tabs .nav-link {
  border: none;
  border-radius: 12px 12px 0 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.zm-review-tabs .nav-link.active {
  color: #008751;
  background: #fff;
  box-shadow: 0 -1px 0 #fff, inset 0 -2px 0 #008751;
}
.zm-review-tab-count {
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  font-weight: 800;
}
.zm-review-tab-content { padding: 0; overflow: hidden; }
.zm-review-section {
  padding: 0.9rem 1rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}
.zm-review-section:last-child { border-bottom: none; }
.zm-review-section--flush { padding: 1rem; }
.zm-review-section__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  font-weight: 800;
  margin: 0 0 1rem;
}

.zm-review-pending-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 600;
}

.zm-review-handoff {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
}
.zm-review-handoff__icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f59e0b;
  color: #fff;
  font-size: 1rem;
}
.zm-review-handoff__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}
.zm-review-handoff__meta strong {
  font-size: 0.9rem;
  color: #92400e;
}
.zm-review-handoff__meta span,
.zm-review-handoff__meta time {
  color: #a16207;
  font-weight: 600;
}
.zm-review-handoff__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #78350f;
  white-space: pre-wrap;
}
.zm-review-handoff__from {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a16207;
}

.zm-review-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.zm-review-block:last-child { margin-bottom: 0; }
.zm-review-block__head {
  padding: 0.55rem 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.zm-review-block__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.zm-review-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.zm-review-dl__row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.4rem 0.65rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  align-items: start;
  min-width: 0;
}
.zm-review-dl__row:nth-child(2n) {
  border-right: none;
}
.zm-review-dl__row:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
  grid-template-columns: 118px minmax(0, 1fr);
  border-right: none;
}
.zm-review-dl__row:nth-last-child(-n+2):nth-child(odd),
.zm-review-dl__row:nth-last-child(-n+2):nth-child(even) {
  border-bottom: none;
}
.zm-review-dl__row:nth-last-child(1):nth-child(odd) {
  border-bottom: none;
}
.zm-review-dl__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
  padding-top: 0.05rem;
}
.zm-review-dl__row dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.zm-review-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.zm-review-pill--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.zm-review-pill--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.zm-review-comments-intro {
  margin: -0.35rem 0 1rem;
  color: #64748b;
  font-size: 0.88rem;
}
.zm-party-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.55rem;
}
.zm-party-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
}
.zm-party-tabs .nav-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.zm-party-tabs .nav-link.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.zm-party-tabs .nav-link.active .zm-review-tab-count {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.zm-party-tabs__full { display: none; }
@media (min-width: 768px) {
  .zm-party-tabs__label { display: none; }
  .zm-party-tabs__full { display: inline; }
}
.zm-party-tab-content { margin-top: 0.25rem; }
.zm-party-chat-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.zm-party-chat-legend__left { color: #1d4ed8; }
.zm-party-chat-legend__right { color: #047857; }
.zm-party-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.35rem 0.15rem 0.5rem;
  min-height: 4rem;
}
.zm-party-msg {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: min(78%, 28rem);
  max-width: 100%;
}
.zm-party-msg.is-left,
.zm-party-msg.is-comment {
  align-self: flex-start;
  align-items: flex-start;
  margin-right: auto;
}
.zm-party-msg.is-right,
.zm-party-msg.is-response {
  align-self: flex-end;
  align-items: flex-end;
  margin-left: auto;
}
.zm-party-msg__rail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  max-width: 100%;
}
.zm-party-msg.is-right .zm-party-msg__rail,
.zm-party-msg.is-response .zm-party-msg__rail {
  flex-direction: row-reverse;
}
.zm-party-msg__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.zm-party-msg.is-left .zm-party-msg__pill,
.zm-party-msg.is-comment .zm-party-msg__pill {
  background: #dbeafe;
  color: #1d4ed8;
}
.zm-party-msg.is-right .zm-party-msg__pill,
.zm-party-msg.is-response .zm-party-msg__pill {
  background: #d1fae5;
  color: #047857;
}
.zm-party-msg__dir {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.zm-party-msg__bubble {
  width: 100%;
  border-radius: 14px;
  padding: 0.65rem 0.85rem 0.55rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.zm-party-msg.is-left .zm-party-msg__bubble,
.zm-party-msg.is-comment .zm-party-msg__bubble {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-bottom-left-radius: 4px;
}
.zm-party-msg.is-right .zm-party-msg__bubble,
.zm-party-msg.is-response .zm-party-msg__bubble {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-bottom-right-radius: 4px;
}
.zm-party-msg__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.zm-party-msg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.zm-party-msg.is-right .zm-party-msg__meta,
.zm-party-msg.is-response .zm-party-msg__meta {
  justify-content: flex-end;
}
@media (max-width: 575.98px) {
  .zm-party-msg { width: min(88%, 100%); }
}
.zm-review-comment-card__kind { font-weight: 800; }
.zm-review-comment-card__sep { opacity: 0.45; font-weight: 500; }
.zm-review-comments {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.zm-review-comment-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.95rem 1.05rem;
}
.zm-review-comment-card__thread {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.zm-review-comment-card.is-handoff {
  border-color: #fcd34d;
  background: #fffbeb;
}
.zm-review-comment-card.is-handoff .zm-review-comment-card__badge { color: #b45309; }
.zm-review-comment-card.is-handoff .zm-review-comment-card__thread { color: #a16207; }
.zm-review-comment-card.is-investor {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}
.zm-review-comment-card.is-ministry {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}
.zm-review-comment-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.zm-review-comment-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.zm-review-comment-card.is-investor .zm-review-comment-card__badge { color: #047857; }
.zm-review-comment-card.is-ministry .zm-review-comment-card__badge { color: #b45309; }
.zm-review-comment-card__time {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}
.zm-review-comment-card__body {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
  white-space: pre-wrap;
}
.zm-review-comment-card__foot {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #64748b;
}
.zm-review-comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}
.zm-review-comments-empty i {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.5rem;
}
.zm-review-comments-empty p { margin: 0; }

.zm-review-timeline__note {
  margin-top: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #334155;
}
.zm-party-activity__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.15rem;
}
.zm-party-activity__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.zm-party-activity__pill.is-comment {
  background: #dbeafe;
  color: #1d4ed8;
}
.zm-party-activity__pill.is-response {
  background: #d1fae5;
  color: #047857;
}
.zm-timeline-item--comment .zm-timeline-dot {
  background: #3b82f6;
}
.zm-timeline-item--response .zm-timeline-dot {
  background: #10b981;
}
.zm-timeline-item--highlight .zm-timeline-content .fw-semibold {
  color: #008751;
}

.zm-review-action-card,
.zm-review-route-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.zm-review-action-card__head {
  padding: 0.85rem 1rem 0.35rem;
}
.zm-review-action-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}
.zm-action-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.45rem 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
}
.zm-action-tabs .nav-link {
  border: none;
  border-radius: 8px 8px 0 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}
.zm-action-tabs .nav-link.active {
  color: #008751;
  background: #fff;
  box-shadow: inset 0 -2px 0 #008751;
}
.zm-review-action-card__body {
  padding: 0.85rem 1rem 1.05rem;
}
.zm-review-action-field {
  margin-bottom: 0.85rem;
}
.zm-review-action-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.zm-review-comment {
  border-radius: 10px;
  min-height: 72px;
  font-size: 0.9rem;
  border-color: #e2e8f0;
}
.zm-review-action-empty {
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zm-doc-request-builder {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.zm-doc-request-builder__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.zm-doc-request-builder__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.zm-doc-request-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.zm-doc-request-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
.zm-doc-request-row .zm-remove-doc-row {
  justify-self: end;
  width: 2rem;
  padding: 0.2rem;
}

.zm-review-internal {
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}
.zm-review-internal__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.zm-review-internal__head > i {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #008751;
  flex-shrink: 0;
}
.zm-review-internal__head strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.2;
}
.zm-review-internal__head span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}
.zm-review-internal__body {
  padding: 0.55rem;
}

.zm-internal-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.zm-internal-file {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon meta"
    "input input"
    "note note";
  gap: 0.35rem 0.55rem;
  align-items: start;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #fbfcfe;
}
.zm-internal-file:hover {
  border-color: #c7e6d5;
  background: #f7fdf9;
}
.zm-internal-file__icon {
  grid-area: icon;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #008751;
  font-size: 0.9rem;
}
.zm-internal-file__meta {
  grid-area: meta;
  min-width: 0;
}
.zm-internal-file__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.zm-internal-file__hint {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.zm-internal-file__current {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: #047857;
  text-decoration: none;
  font-weight: 700;
}
.zm-internal-file__input {
  grid-area: input;
  margin-top: 0.1rem;
}
.zm-internal-file__input .form-control,
.zm-internal-file__input input[type="file"] {
  font-size: 0.75rem;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  border-color: #e2e8f0;
  background: #fff;
}
.zm-internal-file__note {
  grid-area: note;
}
.zm-internal-file__note-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.2rem;
}
.zm-internal-file__note textarea {
  border-radius: 8px;
  font-size: 0.78rem;
  resize: vertical;
  min-height: 52px;
}
.zm-internal-file__error {
  grid-column: 1 / -1;
  color: #b91c1c;
  font-size: 0.72rem;
}
.zm-internal-file-empty {
  margin: 0;
  padding: 0.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
}

.zm-internal-gallery {
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
  overflow: hidden;
}
.zm-internal-gallery__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #d1fae5;
  background: rgba(236, 253, 245, 0.7);
}
.zm-internal-gallery__head > i {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #008751;
  color: #fff;
  flex-shrink: 0;
}
.zm-internal-gallery__head strong {
  display: block;
  font-size: 0.82rem;
  color: #065f46;
  line-height: 1.2;
}
.zm-internal-gallery__head span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.zm-internal-gallery__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
}
.zm-internal-gallery__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.zm-internal-gallery__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #008751;
  flex-shrink: 0;
}
.zm-internal-gallery__body {
  min-width: 0;
  flex: 1;
}
.zm-internal-gallery__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.zm-internal-gallery__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.zm-internal-gallery__stage {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
.zm-internal-gallery__note {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #334155;
  white-space: pre-wrap;
  line-height: 1.4;
}
.zm-internal-gallery__open {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #008751;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  text-decoration: none;
  flex-shrink: 0;
}
.zm-internal-gallery__open:hover {
  background: #d1fae5;
  color: #065f46;
}

/* legacy details styles kept inert */
.zm-review-internal-docs { display: none; }

.zm-review-action-btns {
  display: grid;
  gap: 0.45rem;
}
.zm-review-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.62rem 0.85rem;
  border: none;
}
.zm-review-action-btn.is-forward {
  background: linear-gradient(135deg, #004d2e, #008751);
  color: #fff;
}
.zm-review-action-btn.is-forward:hover { filter: brightness(1.06); color: #fff; }
.zm-review-action-btn.is-return,
.zm-review-action-btn.btn-warning {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74 !important;
}
.zm-review-action-btn.is-return:hover,
.zm-review-action-btn.btn-warning:hover {
  background: #ffedd5;
  color: #9a3412;
}
.zm-review-action-btn.is-approve {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.zm-review-action-btn.is-approve:hover { background: #d1fae5; color: #065f46; }
.zm-review-action-btn.is-reject {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.zm-review-action-btn.is-reject:hover { background: #fee2e2; color: #991b1b; }

.zm-review-route-card {
  padding: 0.9rem 1rem 1rem;
}
.zm-review-route-card__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 800;
  margin: 0 0 0.65rem;
}
.zm-review-route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.zm-review-route-steps li {
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.zm-review-route-steps li.is-current {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Lease / contract panel */
.zm-review-section--lease {
  padding: 1rem 1.05rem 1.25rem;
  overflow: hidden;
}
.zm-lease {
  --lease-ink: #0f172a;
  --lease-muted: #64748b;
  --lease-line: #e2e8f0;
  --lease-soft: #f8fafc;
  --lease-green: #008751;
  --lease-green-soft: #ecfdf5;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 1rem;
  box-sizing: border-box;
}
.zm-lease *,
.zm-lease *::before,
.zm-lease *::after { box-sizing: border-box; }

.zm-lease__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-width: 0;
}
.zm-lease__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.zm-lease__mark {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #008751, #047857);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(0, 135, 81, 0.22);
}
.zm-lease__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lease-muted);
}
.zm-lease__title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lease-ink);
  line-height: 1.2;
}
.zm-lease__status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}
.zm-lease__status--pending_issue { background: #fff7ed; color: #c2410c; }
.zm-lease__status--issued { background: #eff6ff; color: #1d4ed8; }
.zm-lease__status--signed_pending { background: #fef3c7; color: #b45309; }
.zm-lease__status--active { background: var(--lease-green-soft); color: #047857; }
.zm-lease__status--terminated,
.zm-lease__status--returned,
.zm-lease__status--expired { background: #fef2f2; color: #b91c1c; }

.zm-lease__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--lease-line);
  border: 1px solid var(--lease-line);
  border-radius: 14px;
  overflow: hidden;
}
.zm-lease__stat {
  background: #fff;
  padding: 0.85rem 0.9rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.zm-lease__stat--accent { background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%); }
.zm-lease__stat--warn { background: linear-gradient(180deg, #fff7ed 0%, #fff 70%); }
.zm-lease__stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lease-muted);
}
.zm-lease__stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lease-ink);
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.zm-lease__stat-value em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lease-muted);
  margin-left: 0.15rem;
}
.zm-lease__stat-value--date { font-size: 0.95rem; }
.zm-lease sup {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
  font-weight: inherit;
}
.zm-lease__stat-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lease-muted);
}
.zm-lease__stat--money .zm-lease__stat-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
}

.zm-lease__files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.zm-lease__file {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--lease-line);
  border-radius: 12px;
  background: var(--lease-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.zm-lease__file:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: inherit;
  transform: translateY(-1px);
}
.zm-lease__file > i:first-child {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--lease-line);
  color: var(--lease-green);
}
.zm-lease__file > span {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}
.zm-lease__file strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lease-ink);
}
.zm-lease__file small {
  font-size: 0.75rem;
  color: var(--lease-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zm-lease__file > i:last-child {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 0.9rem;
}

.zm-lease__actions,
.zm-lease__phases {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.zm-lease__card--waiting {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 55%);
  border-color: #bfdbfe;
}
.zm-lease__reissue {
  border-top: 1px dashed #dbe3ee;
  margin-top: 0.25rem;
}
.zm-lease__reissue > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  user-select: none;
}
.zm-lease__reissue > summary::-webkit-details-marker { display: none; }
.zm-lease__reissue > summary::after {
  content: '';
  display: inline-block;
  margin-left: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.15rem;
}
.zm-lease__reissue[open] > summary::after {
  transform: rotate(-135deg);
  vertical-align: -0.05rem;
}
.zm-lease__card-head {
  padding: 0.9rem 1rem 0;
}
.zm-lease__card-head h3,
.zm-lease__phases > .zm-lease__card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lease-ink);
}
.zm-lease__card-head p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--lease-muted);
  line-height: 1.45;
}
.zm-lease__card-head-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.zm-lease__card-icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #047857;
  font-size: 1.05rem;
}
.zm-lease__schedule-info {
  background: linear-gradient(180deg, #f8fffb 0%, #fff 60%);
  padding: 0;
}
.zm-lease__schedule-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  user-select: none;
}
.zm-lease__schedule-summary::-webkit-details-marker { display: none; }
.zm-lease__schedule-summary::after {
  content: '';
  margin-left: auto;
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #047857;
  border-bottom: 2px solid #047857;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.zm-lease__schedule-info[open] > .zm-lease__schedule-summary::after {
  transform: rotate(-135deg);
}
.zm-lease__schedule-summary-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.zm-lease__schedule-summary-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}
.zm-lease__schedule-summary-text small {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}
.zm-lease__schedule-body {
  border-top: 1px solid #d1fae5;
  padding: 0.85rem 1rem 0.25rem;
}
.zm-lease__schedule-desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}
.zm-lease__rules {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.zm-lease__rules li {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.zm-lease__rule-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.zm-lease__rule-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.zm-lease__terminate {
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff7f7 0%, #fff 48%);
  overflow: hidden;
  min-width: 0;
}
.zm-lease__terminate-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  user-select: none;
}
.zm-lease__terminate-summary::-webkit-details-marker { display: none; }
.zm-lease__terminate-summary::after {
  content: '';
  margin-left: auto;
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #b91c1c;
  border-bottom: 2px solid #b91c1c;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.zm-lease__terminate[open] > .zm-lease__terminate-summary::after {
  transform: rotate(-135deg);
}
.zm-lease__terminate-summary-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.zm-lease__terminate-summary-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #7f1d1d;
}
.zm-lease__terminate-summary-text small {
  font-size: 0.78rem;
  color: #9f1239;
  opacity: 0.9;
  line-height: 1.35;
}
.zm-lease__terminate-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 1.1rem;
}
.zm-lease__terminate-body {
  border-top: 1px solid #fecdd3;
  padding: 0.85rem 1rem 0.15rem;
}
.zm-lease__terminate-desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #9f1239;
  line-height: 1.45;
}
.zm-lease__terminate-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.zm-lease__terminate-alert i {
  margin-top: 0.1rem;
  flex: 0 0 auto;
}
.zm-lease__terminate-form {
  padding: 0 0 1rem;
  gap: 0.85rem;
}
.zm-lease__terminate-form .zm-lease__field .form-control,
.zm-lease__terminate-form .zm-lease__field .form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #fecdd3;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  box-shadow: none;
}
.zm-lease__terminate-form .zm-lease__field .form-control:focus,
.zm-lease__terminate-form .zm-lease__field .form-select:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.zm-lease__terminate-notes {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.5;
}
.zm-lease__terminate-actions {
  margin-top: 0.1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #fecaca;
}

@media (max-width: 767.98px) {
  .zm-lease__rules { grid-template-columns: 1fr; }
}
.zm-lease__form {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}
.zm-lease__form--compact { padding-top: 0.35rem; }
.zm-lease__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
}
.zm-lease__grid--amount {
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.6fr);
}
.zm-lease__field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.zm-lease__field--grow { grid-column: span 1; }
.zm-lease__field label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.zm-lease__field label span { color: #dc2626; }
.zm-lease__field .form-control,
.zm-lease__field .form-select,
.zm-lease__verify .form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
  border-color: #dbe3ee;
  font-size: 0.88rem;
}
.zm-lease__field .js-money-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.zm-lease__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--lease-muted);
  line-height: 1.45;
}
.zm-lease__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zm-lease__danger {
  background: #fffafa;
  border-color: #fecaca;
}
.zm-lease__danger > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b91c1c;
  user-select: none;
}
.zm-lease__danger > summary::-webkit-details-marker { display: none; }
.zm-lease__danger > summary::after {
  content: '';
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.zm-lease__danger[open] > summary::after {
  transform: rotate(-135deg);
}
.zm-lease__danger-note {
  margin: 0 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 600;
}

.zm-lease__phase { padding: 0.9rem 1rem; }
.zm-lease__phase-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.zm-lease__phase-top h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--lease-ink);
}
.zm-lease__phase-top p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--lease-muted);
  line-height: 1.4;
  word-break: break-word;
}
.zm-lease__phase-badge {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.zm-lease__record {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--lease-line);
  min-width: 0;
}
.zm-lease__record-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.84rem;
}
.zm-lease__record-main a {
  color: var(--lease-green);
  font-weight: 600;
  text-decoration: none;
}
.zm-lease__record-main a:hover { text-decoration: underline; }
.zm-lease__verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
  gap: 0.45rem;
  margin-top: 0.55rem;
  min-width: 0;
}
.zm-lease__empty,
.zm-lease__ended {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--lease-muted);
}

.zm-lease--investor {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

@media (max-width: 991.98px) {
  .zm-lease__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zm-lease__files { grid-template-columns: 1fr; }
  .zm-lease__grid { grid-template-columns: 1fr; }
  .zm-lease__grid--amount { grid-template-columns: 1fr; }
  .zm-lease__verify { grid-template-columns: 1fr 1fr; }
  .zm-lease__verify .btn { grid-column: span 1; }
}
@media (max-width: 575.98px) {
  .zm-lease__stats { grid-template-columns: 1fr 1fr; }
  .zm-lease__stat--money { grid-column: span 2; }
  .zm-lease__verify { grid-template-columns: 1fr; }
}

@media (max-width: 1199.98px) {
  .zm-review-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zm-review-summary__item:nth-child(3n) { border-right: none; }
  .zm-review-summary__item:nth-child(n+4) {
    border-top: 1px solid #eef2f7;
  }
}
@media (max-width: 767.98px) {
  .zm-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zm-review-summary__item { border-right: 1px solid #eef2f7; }
  .zm-review-summary__item:nth-child(2n) { border-right: none; }
  .zm-review-summary__item:nth-child(n+3) { border-top: 1px solid #eef2f7; }
  .zm-review-dl {
    grid-template-columns: 1fr;
  }
  .zm-review-dl__row {
    grid-template-columns: 110px minmax(0, 1fr);
    border-right: none;
  }
  .zm-review-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* —— Payments tab panel —— */
.zm-pay {
  --pay-ink: #0f172a;
  --pay-muted: #64748b;
  --pay-line: #e2e8f0;
  --pay-soft: #f8fafc;
  --pay-green: #008751;
  --pay-green-soft: #ecfdf5;
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}
.zm-pay__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.zm-pay__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.zm-pay__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  color: var(--pay-green);
  border: 1px solid #a7f3d0;
  flex: 0 0 auto;
}
.zm-pay__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pay-muted);
}
.zm-pay__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pay-ink);
  line-height: 1.2;
}
.zm-pay__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
}
.zm-pay__chip--grace { background: #fff7ed; color: #c2410c; }
.zm-pay__chip--warn { background: #fef2f2; color: #b91c1c; }
.zm-pay__chip--ok { background: var(--pay-green-soft); color: #047857; }

.zm-pay__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--pay-line);
  border: 1px solid var(--pay-line);
  border-radius: 14px;
  overflow: hidden;
}
.zm-pay__metric {
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.zm-pay__metric--warn { background: linear-gradient(180deg, #fff7ed 0%, #fff 70%); }
.zm-pay__metric-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pay-muted);
}
.zm-pay__metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pay-ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.zm-pay__metric-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pay-muted);
}

.zm-pay__schedule,
.zm-pay__reminder,
.zm-pay__phases {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.zm-pay__fold {
  border: 1px solid var(--pay-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}
.zm-pay__fold-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  user-select: none;
}
.zm-pay__fold-summary::-webkit-details-marker { display: none; }
.zm-pay__fold-summary::after {
  content: '';
  margin-left: auto;
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.zm-pay__fold[open] > .zm-pay__fold-summary::after {
  transform: rotate(-135deg);
}
.zm-pay__fold-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--pay-soft);
  border: 1px solid var(--pay-line);
  color: var(--pay-green);
}
.zm-pay__fold-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.zm-pay__fold-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pay-ink);
}
.zm-pay__fold-text small {
  font-size: 0.78rem;
  color: var(--pay-muted);
  line-height: 1.35;
}
.zm-pay__fold-body {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.9rem;
}
.zm-pay__phases-body { gap: 0.85rem; }
.zm-pay__section-head h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pay-ink);
}
.zm-pay__section-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pay-muted);
  line-height: 1.4;
}
.zm-pay__rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.zm-pay__rule {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--pay-line);
  border-radius: 12px;
  background: var(--pay-soft);
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.zm-pay__rule-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pay-muted);
}
.zm-pay__rule-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pay-ink);
  line-height: 1.35;
  word-break: break-word;
}
.zm-pay__rule-value small { font-weight: 600; color: var(--pay-muted); }

.zm-pay__reminder {
  padding: 0;
  border: 1px solid var(--pay-line);
  border-radius: 14px;
  background: #fff;
}
.zm-pay__form { display: grid; gap: 0.75rem; }
.zm-pay__form-row { display: grid; gap: 0.35rem; }
.zm-pay__form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.zm-pay__phase {
  border: 1px solid var(--pay-line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.zm-pay__phase--overdue { border-color: #fecaca; background: linear-gradient(180deg, #fff7f7 0%, #fff 40%); }
.zm-pay__phase--paid { border-color: #a7f3d0; }
.zm-pay__phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.zm-pay__phase-title { min-width: 0; display: grid; gap: 0.15rem; }
.zm-pay__phase-index {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pay-green);
}
.zm-pay__phase-title h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pay-ink);
  line-height: 1.3;
}
.zm-pay__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.zm-pay__badge--pending { background: #eff6ff; color: #1d4ed8; }
.zm-pay__badge--partial { background: #fff7ed; color: #c2410c; }
.zm-pay__badge--paid { background: var(--pay-green-soft); color: #047857; }
.zm-pay__badge--overdue { background: #fef2f2; color: #b91c1c; }
.zm-pay__badge--waived { background: #f8fafc; color: #64748b; }

.zm-pay__phase-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.zm-pay__phase-meta > div {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--pay-soft);
  border: 1px solid #eef2f7;
  min-width: 0;
}
.zm-pay__phase-meta dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pay-muted);
  margin: 0 0 0.15rem;
}
.zm-pay__phase-meta dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--pay-ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.zm-pay__phase-meta dd small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pay-muted);
}
.zm-pay__phase-meta dd.is-due { color: #b45309; }

.zm-pay__records { display: grid; gap: 0.55rem; }
.zm-pay__records-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pay-muted);
}
.zm-pay__record {
  border: 1px solid var(--pay-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.55rem;
  background: #fff;
}
.zm-pay__record--submitted { border-color: #fcd34d; background: #fffbeb; }
.zm-pay__record--verified { border-color: #a7f3d0; background: #f0fdf4; }
.zm-pay__record--rejected { border-color: #fecaca; background: #fef2f2; }
.zm-pay__record-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.zm-pay__record-main strong {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.zm-pay__record-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pay-muted);
}
.zm-pay__record-meta {
  font-size: 0.75rem;
  color: var(--pay-muted);
}
.zm-pay__record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.zm-pay__record-links a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pay-green);
  text-decoration: none;
}
.zm-pay__record-links a:hover { text-decoration: underline; }
.zm-pay__verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
  gap: 0.45rem;
  align-items: center;
}
.zm-pay__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pay-muted);
}
.zm-pay__empty-state {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--pay-line);
  border-radius: 14px;
  background: var(--pay-soft);
  color: var(--pay-muted);
}
.zm-pay__empty-state i { font-size: 1.5rem; color: #94a3b8; }
.zm-pay__empty-state p { margin: 0; font-size: 0.88rem; max-width: 28rem; }

.zm-pay sup {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
}

@media (max-width: 991.98px) {
  .zm-pay__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zm-pay__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zm-pay__phase-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zm-pay__verify { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .zm-pay__summary,
  .zm-pay__rules,
  .zm-pay__phase-meta { grid-template-columns: 1fr 1fr; }
  .zm-pay__verify { grid-template-columns: 1fr; }
}

/* ZanMalipo control number */
.zm-cn { margin-top: 0.75rem; }
.zm-cn__card,
.zm-cn__request,
.zm-cn--staff {
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: linear-gradient(165deg, #f0fdf4 0%, #fff 55%);
  padding: 0.9rem 1rem;
}
.zm-cn__request {
  border-color: #e2e8f0;
  background: #f8fafc;
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}
.zm-cn__intro {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.4;
}
.zm-cn__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 0.35rem;
}
.zm-cn__mode,
.zm-cn__status {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fff7ed;
  color: #c2410c;
}
.zm-cn__status { background: #ecfdf5; color: #047857; }
.zm-cn__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  line-height: 1.2;
  word-break: break-all;
}
.zm-cn__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
}
.zm-cn__card--expired {
  border-color: #fecaca;
  background: linear-gradient(165deg, #fef2f2 0%, #fff 55%);
}
.zm-cn__card--expired .zm-cn__label { color: #b91c1c; }
.zm-cn__expiry {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.zm-lease__evidence {
  margin-top: 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #fff;
}
.zm-lease__evidence > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  list-style: none;
}
.zm-lease__evidence > summary::-webkit-details-marker { display: none; }
.zm-lease__evidence[open] > summary { margin-bottom: 0.65rem; color: #0f172a; }
.zm-lease__pending-note {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.zm-lease__pending-note i { margin-top: 0.1rem; }

/* ── Email & SMS messaging settings ─────────────────────────── */
.zm-msg-page .zm-apps-page-header {
  align-items: flex-start;
}

.zm-msg-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}

.zm-msg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.01em;
}

.zm-msg-pill i { font-size: 0.9rem; opacity: 0.85; }

.zm-msg-pill.is-on {
  border-color: rgba(0, 135, 81, 0.28);
  background: rgba(0, 135, 81, 0.08);
  color: #0f172a;
}

.zm-msg-pill em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.zm-msg-pill em.is-sandbox {
  background: #e2e8f0;
  color: #475569;
}

.zm-msg-pill em.is-live {
  background: #dcfce7;
  color: #166534;
}

.zm-msg-shell {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.zm-msg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem 0;
  margin: 0;
  border-bottom: 1px solid #e8edf2;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.zm-msg-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 12px 12px 0 0;
  padding: 0.7rem 1.05rem;
  margin-bottom: -1px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.zm-msg-tabs .nav-link i {
  font-size: 1rem;
  opacity: 0.75;
}

.zm-msg-tabs .nav-link:hover {
  color: #0f172a;
  background: rgba(0, 135, 81, 0.05);
}

.zm-msg-tabs .nav-link.active {
  color: #008751;
  background: #fff;
  box-shadow: inset 0 -2px 0 #008751;
}

.zm-msg-tabs .nav-link.active i { opacity: 1; }

.zm-msg-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}

.zm-msg-tabs .nav-link.active .zm-msg-tab-count {
  background: rgba(0, 135, 81, 0.12);
  color: #008751;
}

.zm-msg-tab-content {
  padding: 1.25rem 1.25rem 1.5rem;
  background: #f8fafc;
}

.zm-msg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.zm-msg-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.zm-msg-panel--accent {
  border-color: rgba(0, 135, 81, 0.18);
  background:
    linear-gradient(165deg, rgba(0, 135, 81, 0.04) 0%, #fff 42%);
}

.zm-msg-panel--wide {
  width: 100%;
}

.zm-msg-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.zm-msg-panel__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.zm-msg-panel__head p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.zm-msg-panel__body {
  padding: 1rem 1.15rem 1.15rem;
}

.zm-msg-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zm-msg-chip--sandbox {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.zm-msg-chip--live {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.zm-msg-switch {
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #f8fafc;
}

.zm-msg-switch .form-check-label {
  font-weight: 700;
  color: #0f172a;
}

.zm-msg-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem 0.9rem;
}

.zm-msg-field {
  grid-column: span 6;
  min-width: 0;
}

.zm-msg-field--grow { grid-column: span 7; }
.zm-msg-field--sm { grid-column: span 3; }
.zm-msg-field--checks { grid-column: span 5; }
.zm-msg-field--full { grid-column: 1 / -1; }

.zm-msg-field > label,
.zm-msg-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.zm-msg-field .form-control,
.zm-msg-field .form-select {
  border-radius: 10px;
  border-color: #dbe3ec;
  font-size: 0.9rem;
}

.zm-msg-field .form-control:focus,
.zm-msg-field .form-select:focus {
  border-color: rgba(0, 135, 81, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(0, 135, 81, 0.12);
}

.zm-msg-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.zm-msg-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

.zm-msg-hint code {
  font-size: 0.72rem;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0f172a;
}

.zm-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #f1f5f9;
}

.zm-msg-mini-log {
  margin: 0 1.15rem 1.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #f8fafc;
}

.zm-msg-mini-log h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.zm-msg-mini-log__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.zm-msg-mini-log__count {
  font-weight: 600;
  color: #94a3b8;
}

.zm-msg-mini-log__clear-form {
  margin: 0;
  flex-shrink: 0;
}

.zm-msg-mini-log__clear-all {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.zm-msg-mini-log__clear-all:hover {
  color: #b91c1c !important;
  text-decoration: underline;
}

.zm-msg-mini-log ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.zm-msg-mini-log li {
  display: grid;
  grid-template-columns: 4.6rem auto minmax(0, 1fr) 1.75rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
}

.zm-msg-mini-log__delete {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.zm-msg-mini-log__delete-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  line-height: 1;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zm-msg-mini-log__delete-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.zm-msg-mini-log__when {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.zm-msg-mini-log__to {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-weight: 600;
}

.zm-msg-mini-log__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
}

.zm-msg-mini-log__status--ok,
.zm-msg-mini-log__status--success,
.zm-msg-mini-log__status--sent {
  background: #dcfce7;
  color: #166534;
}

.zm-msg-mini-log__status--error,
.zm-msg-mini-log__status--failed {
  background: #fee2e2;
  color: #b91c1c;
}

.zm-msg-mini-log__status--sandbox,
.zm-msg-mini-log__status--logged {
  background: #e0f2fe;
  color: #0369a1;
}

.zm-msg-log-table-wrap {
  overflow-x: auto;
}

.zm-msg-log-table {
  font-size: 0.86rem;
}

.zm-msg-log-table thead th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8fafc;
  border-bottom-width: 1px;
  white-space: nowrap;
  padding: 0.7rem 1rem;
}

.zm-msg-log-table tbody td {
  padding: 0.75rem 1rem;
  border-color: #f1f5f9;
  vertical-align: middle;
}

.zm-msg-log-table tbody tr:hover {
  background: rgba(0, 135, 81, 0.03);
}

.zm-msg-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.zm-msg-channel--email {
  background: #eff6ff;
  color: #1d4ed8;
}

.zm-msg-channel--sms {
  background: #f0fdf4;
  color: #15803d;
}

@media (max-width: 991.98px) {
  .zm-msg-grid {
    grid-template-columns: 1fr;
  }

  .zm-msg-field,
  .zm-msg-field--grow,
  .zm-msg-field--sm,
  .zm-msg-field--checks {
    grid-column: 1 / -1;
  }

  .zm-msg-tab-content {
    padding: 1rem;
  }

  .zm-msg-mini-log li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 575.98px) {
  .zm-msg-tabs .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .zm-msg-tabs .nav-link span {
    display: none;
  }

  .zm-msg-tabs .nav-link i {
    font-size: 1.1rem;
    opacity: 1;
  }

  .zm-msg-tabs .nav-link .zm-msg-tab-count {
    display: inline-grid;
  }
}
