/* Summit365 — Global Styles */
:root {
  --summit-dark: #0a0f1e;
  --summit-navy: #0d1b3e;
  --summit-blue: #1a3a8f;
  --summit-accent: #2563eb;
  --summit-teal: #0891b2;
  --summit-light: #f0f4ff;
  --summit-white: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --sidebar-width: 260px;
  --topbar-height: 64px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f1f5fb;
  color: #1e293b;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── LAYOUT ─────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--summit-dark);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.sidebar-logo .logo-text { line-height: 1.2; }
.sidebar-logo .logo-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
.sidebar-logo .logo-sub  { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.nav-section { margin-bottom: 4px; }
.nav-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(255,255,255,0.3);
  padding: 8px 24px 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-link.active {
  background: rgba(37,99,235,0.2);
  color: #fff;
  border-right: 3px solid #2563eb;
}
.nav-link .nav-icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user .user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; overflow: hidden; }
.sidebar-user .user-name  { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role  { font-size: 11px; color: rgba(255,255,255,0.4); }
.sidebar-user .logout-btn {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 14px; padding: 4px;
  transition: color 0.15s;
}
.sidebar-user .logout-btn:hover { color: #fff; }

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

.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
.topbar-title { font-size: 18px; font-weight: 700; color: #0f172a; flex: 1; }
.topbar-subtitle { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: #374151;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.topbar-btn:hover { background: var(--summit-light); border-color: var(--summit-accent); color: var(--summit-accent); }
.topbar-btn.primary {
  background: var(--summit-accent); color: #fff; border-color: var(--summit-accent);
}
.topbar-btn.primary:hover { background: #1d4ed8; }
.notif-btn {
  position: relative; width: 38px; height: 38px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #64748b;
  transition: all 0.15s;
}
.notif-btn:hover { background: var(--summit-light); color: var(--summit-accent); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #dc2626; border-radius: 50%;
  border: 2px solid #fff;
}

.page-content { padding: 28px 32px; flex: 1; }

/* ── CARDS ─────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.card-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── STAT CARDS ─────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-icon.yellow { background: #fef3c7; color: #d97706; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.teal   { background: #cffafe; color: #0891b2; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-body { flex: 1; }
.stat-value { font-size: 26px; font-weight: 800; color: #0f172a; line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-trend { font-size: 11px; margin-top: 4px; }
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ── BADGES & STATUS ─────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-teal   { background: #cffafe; color: #0e7490; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ── TABLES ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #f8fafc; text-align: left;
  padding: 11px 16px; font-size: 11px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #64748b;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
.td-main { font-weight: 600; color: #0f172a; }

/* ── HEALTH INDICATOR ─────────────────── */
.health-bar-wrap { display: flex; align-items: center; gap: 8px; }
.health-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 10px; overflow: hidden; max-width: 80px; }
.health-bar-fill { height: 100%; border-radius: 10px; transition: width 0.4s ease; }
.health-bar-fill.good    { background: #16a34a; }
.health-bar-fill.warning { background: #d97706; }
.health-bar-fill.danger  { background: #dc2626; }
.health-score { font-size: 12px; font-weight: 700; min-width: 28px; }
.health-score.good    { color: #16a34a; }
.health-score.warning { color: #d97706; }
.health-score.danger  { color: #dc2626; }

/* ── GRIDS ─────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ── ACCOUNT CARDS ─────────────────────── */
.account-card {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.account-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #93c5fd; }
.account-card.critical { border-left: 4px solid #dc2626; }
.account-card.attention { border-left: 4px solid #d97706; }
.account-card.healthy   { border-left: 4px solid #16a34a; }
.ac-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.ac-company { font-size: 15px; font-weight: 700; color: #0f172a; }
.ac-site { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ac-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ac-meta-item { }
.ac-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: #94a3b8; font-weight: 600; }
.ac-meta-value { font-size: 13px; font-weight: 600; color: #334155; margin-top: 2px; }
.ac-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }

/* ── FORMS ─────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13.5px; color: #1e293b;
  background: #fff; transition: border-color 0.15s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--summit-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-textarea { resize: vertical; min-height: 90px; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary   { background: var(--summit-accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #f1f5f9; color: #374151; border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-success   { background: #16a34a; color: #fff; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; border-radius: 8px; background: #f1f5f9; border: 1px solid var(--border); cursor: pointer; font-size: 15px; color: #64748b; transition: all 0.15s; }
.btn-icon:hover { background: var(--summit-light); color: var(--summit-accent); }

/* ── TABS ─────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab {
  padding: 10px 18px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.15s; text-decoration: none;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--summit-accent); }
.tab.active { color: var(--summit-accent); border-bottom-color: var(--summit-accent); }

/* ── PROGRESS / SCORE RING ─────────────── */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score-ring { position: relative; width: 80px; height: 80px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 18px; font-weight: 800; }
.score-ring-label { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ── TIMELINE ─────────────────────────── */
.timeline { padding-left: 20px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding: 0 0 20px 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-dot.green  { background: #16a34a; }
.timeline-dot.red    { background: #dc2626; }
.timeline-dot.yellow { background: #d97706; }
.timeline-dot.blue   { background: #2563eb; }
.timeline-date  { font-size: 11px; color: var(--muted); font-weight: 600; }
.timeline-title { font-size: 13.5px; font-weight: 600; color: #0f172a; margin-top: 2px; }
.timeline-desc  { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── ALERTS / BANNERS ─────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 12px;
  border-left: 4px solid;
}
.alert-danger  { background: #fff1f2; border-color: #dc2626; color: #7f1d1d; }
.alert-warning { background: #fffbeb; border-color: #d97706; color: #78350f; }
.alert-success { background: #f0fdf4; border-color: #16a34a; color: #14532d; }
.alert-info    { background: #f0f9ff; border-color: #0891b2; color: #0c4a6e; }
.alert-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.alert-body { flex: 1; }
.alert-title { font-size: 13px; font-weight: 700; }
.alert-text  { font-size: 12px; margin-top: 2px; opacity: 0.85; }

/* ── CHECKLIST ─────────────────────────── */
.checklist-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-check {
  width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
  background: #fff;
}
.checklist-check.checked { background: var(--summit-accent); border-color: var(--summit-accent); color: #fff; font-size: 12px; }
.checklist-text { flex: 1; font-size: 13.5px; font-weight: 500; color: #334155; }
.checklist-text.checked { text-decoration: line-through; color: #94a3b8; }
.checklist-area { font-size: 11px; color: var(--muted); }

/* ── MESSAGE BUBBLES ─────────────────── */
.msg-thread { display: flex; flex-direction: column; gap: 16px; }
.msg-item { display: flex; gap: 12px; align-items: flex-start; }
.msg-item.mine { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.msg-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 12px; font-size: 13.5px; line-height: 1.5;
}
.msg-item:not(.mine) .msg-bubble { background: #f1f5f9; color: #334155; border-bottom-left-radius: 4px; }
.msg-item.mine .msg-bubble { background: var(--summit-accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.msg-item.mine .msg-meta { text-align: right; }

/* ── LOGIN ─────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 50%, #1a3a8f 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff; border-radius: 20px;
  padding: 48px 44px; width: 100%; max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .big-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  margin: 0 auto 12px;
}
.login-logo h1 { font-size: 26px; font-weight: 800; color: #0f172a; }
.login-logo p  { font-size: 13px; color: var(--muted); margin-top: 4px; }
.login-divider { text-align: center; font-size: 11px; color: var(--muted); margin: 18px 0; display: flex; align-items: center; gap: 10px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-role-btn {
  background: var(--summit-light); border: 1px solid #bfdbfe;
  border-radius: 8px; padding: 10px 8px;
  font-size: 12px; font-weight: 600; color: var(--summit-blue);
  cursor: pointer; text-align: center; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.demo-role-btn:hover { background: #dbeafe; border-color: var(--summit-accent); }
.demo-role-btn .role-icon { font-size: 18px; }

/* ── PAGE HEADER ─────────────────────── */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 800; color: #0f172a; }
.page-header p  { font-size: 13px; color: var(--muted); margin-top: 4px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── FINANCIAL CARDS ─────────────────── */
.fin-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.fin-card { background: #f8fafc; border-radius: 10px; padding: 16px; border: 1px solid var(--border); }
.fin-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #94a3b8; }
.fin-value { font-size: 22px; font-weight: 800; color: #0f172a; margin-top: 6px; }
.fin-value.green { color: #16a34a; }
.fin-value.red   { color: #dc2626; }

/* ── QA INSPECTION ─────────────────── */
.qa-item { padding: 14px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: flex-start; gap: 14px; }
.qa-item:last-child { border-bottom: none; }
.qa-result { display: flex; gap: 8px; }
.qa-btn {
  padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 2px solid; cursor: pointer; transition: all 0.15s;
}
.qa-btn.pass { border-color: #16a34a; color: #16a34a; background: #fff; }
.qa-btn.pass.selected, .qa-btn.pass:hover { background: #16a34a; color: #fff; }
.qa-btn.fail { border-color: #dc2626; color: #dc2626; background: #fff; }
.qa-btn.fail.selected, .qa-btn.fail:hover { background: #dc2626; color: #fff; }
.qa-btn.na { border-color: #94a3b8; color: #94a3b8; background: #fff; }
.qa-btn.na.selected, .qa-btn.na:hover { background: #94a3b8; color: #fff; }

/* ── EMPTY STATE ─────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.empty-text  { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ── MOBILE ─────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 20px 16px; }
  .fin-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .demo-roles { grid-template-columns: 1fr; }
  .mobile-menu-btn {
    display: flex !important;
    width: 38px; height: 38px;
    background: none; border: 1px solid var(--border);
    border-radius: 8px; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: #64748b;
  }
  .topbar { padding: 0 16px; }
}
.mobile-menu-btn { display: none; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.mobile-overlay.show { display: block; }

/* ── MISC ─────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.link { color: var(--summit-accent); text-decoration: none; font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.scroll-x { overflow-x: auto; }
.priority-critical { color: #dc2626; font-weight: 700; }
.priority-high     { color: #d97706; font-weight: 700; }
.priority-medium   { color: #2563eb; font-weight: 600; }
.priority-low      { color: #64748b; font-weight: 500; }

/* tooltip */
[title] { cursor: help; }

/* ── CRM MODULE STYLES ──────────────────── */

/* CRM sidebar section separator */
.nav-section-crm {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(99,102,241,0.25);
}

/* CRM nav items get a subtle indigo tint on hover/active */
.nav-link.crm-nav-item:hover,
.nav-link.crm-nav-item.active {
  background: rgba(99,102,241,0.15) !important;
  color: #a5b4fc !important;
}

/* CRM Account card grid */
.crm-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.account-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.account-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--summit-accent);
}

/* CRM Pipeline Kanban */
.crm-pipeline-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 500px;
}
.crm-pipeline-col {
  min-width: 220px;
  background: var(--summit-navy);
  border-radius: 10px;
  padding: 12px;
  flex-shrink: 0;
}
.crm-pipeline-col-header {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crm-pipeline-col-count {
  background: rgba(99,102,241,0.3);
  color: #a5b4fc;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}
.crm-pipeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.crm-pipeline-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.crm-pipeline-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.crm-pipeline-card-meta {
  font-size: 11px;
  color: var(--muted);
}

/* Lead score circles (already using inline styles in CRM, add fallback) */
.score-circle-green { background: #dcfce720; border: 2px solid #16a34a; color: #16a34a; }
.score-circle-yellow { background: #fef3c720; border: 2px solid #d97706; color: #d97706; }
.score-circle-red { background: #fee2e220; border: 2px solid #dc2626; color: #dc2626; }

/* CRM table row highlight */
.crm-lead-row:hover { background: var(--summit-navy); }

/* CRM topbar subtitle */
.crm-topbar-sub {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
}

/* Relationship star bars */
.relationship-stars { color: #f59e0b; letter-spacing: 1px; }

/* CRM proposal/task card */
.crm-list-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Decision maker / role tags */
.role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.role-tag-dm { background: #dbeafe; color: #1d4ed8; }
.role-tag-inf { background: #ede9fe; color: #6d28d9; }
.role-tag-gk { background: #fee2e2; color: #991b1b; }

/* Mobile: CRM pipeline scroll hint */
@media (max-width: 900px) {
  .crm-pipeline-board {
    padding-bottom: 24px;
  }
  .crm-accounts-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   CRM SIDEBAR — Structured sub-menu matching original CRM
   ══════════════════════════════════════════════════════════ */

/* Top divider + CRM label row */
.crm-sidebar-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.crm-sidebar-badge {
  background: #6366f1;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}
.crm-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Each grouped sub-section */
.crm-nav-group {
  padding: 0 0 4px 0;
}

/* Section label (OVERVIEW, SALES PIPELINE, etc.) */
.crm-nav-group-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 18px 4px;
}

/* CRM nav item — inherits .nav-link base, override icon */
.crm-nav-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 18px !important;
  font-size: 13px;
}
.crm-nav-item .crm-nav-icon {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  transition: color 0.2s;
}
.crm-nav-item:hover .crm-nav-icon,
.crm-nav-item.active .crm-nav-icon {
  color: #818cf8;
}
.crm-nav-item.active {
  background: rgba(99,102,241,0.18) !important;
  color: #a5b4fc !important;
  border-left: 2px solid #6366f1;
}
.crm-nav-item:hover {
  background: rgba(99,102,241,0.10) !important;
  color: #c7d2fe !important;
}

/* Badge colours */
.crm-badge-red {
  background: #ef4444 !important;
}

/* Push nav-badge to the right inside CRM items */
.crm-nav-item .nav-badge {
  margin-left: auto;
}

/* ============================================================
   SUMMIT365 TASKS MODULE  —  Asana-style operational task system
   Class names here EXACTLY match tasks.js render output
   ============================================================ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.tm-wrap {
  padding: 0 0 60px;
  min-height: 100vh;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

/* ── Page header ───────────────────────────────────────────── */
.tm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
  flex-wrap: wrap;
}
.tm-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tm-page-title i { color: #7c3aed; }
.tm-page-sub { font-size: 13px; color: #64748b; margin-top: 3px; }
.tm-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.tm-btn-primary {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s;
  white-space: nowrap;
}
.tm-btn-primary:hover { background: #6d28d9; }
.tm-btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s;
  white-space: nowrap;
}
.tm-btn-secondary:hover { background: #e2e8f0; }
.tm-btn-ghost {
  background: transparent;
  color: #7c3aed;
  border: 1px solid #ddd4fe;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.tm-btn-ghost:hover { background: #f5f3ff; }
.tm-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tm-btn-danger:hover { background: #fee2e2; }
.tm-btn-sm { padding: 5px 12px !important; font-size: 12px !important; }

/* ── KPI strip ─────────────────────────────────────────────── */
.tm-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 20px 32px 4px;
  flex-wrap: wrap;
}
.tm-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 110px;
  flex: 1;
  text-align: center;
  transition: box-shadow .2s;
}
.tm-kpi:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.tm-kpi-num { font-size: 30px; font-weight: 900; line-height: 1.1; color: #0f172a; }
.tm-kpi-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.tm-kpi-danger  { border-color: #fecaca; }
.tm-kpi-danger .tm-kpi-num  { color: #dc2626; }
.tm-kpi-warning { border-color: #fed7aa; }
.tm-kpi-warning .tm-kpi-num { color: #d97706; }
.tm-kpi-info    { border-color: #bfdbfe; }
.tm-kpi-info .tm-kpi-num    { color: #2563eb; }
.tm-kpi-success { border-color: #bbf7d0; }
.tm-kpi-success .tm-kpi-num { color: #059669; }
.tm-kpi-neutral {}

/* ── Filter bar ─────────────────────────────────────────────── */
.tm-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.tm-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}
.tm-search-icon { color: #94a3b8; font-size: 13px; flex-shrink: 0; }
.tm-search {
  border: none;
  outline: none;
  font-size: 13px;
  color: #374151;
  width: 100%;
  background: transparent;
  font-family: inherit;
}
.tm-filter-select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}
.tm-filter-select:focus { border-color: #7c3aed; }

/* ── Critical alert ─────────────────────────────────────────── */
.tm-alert-critical {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 16px 32px 0;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.5;
}
.tm-alert-critical i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Sections (collapsible groups in list view) ──────────────── */
.tm-section { margin: 20px 32px 0; }
.tm-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
}
.tm-section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tm-dot-red    { background: #ef4444; }
.tm-dot-amber  { background: #f59e0b; }
.tm-dot-blue   { background: #3b82f6; }
.tm-dot-green  { background: #10b981; }
.tm-dot-gray   { background: #94a3b8; }
.tm-dot-purple { background: #7c3aed; }
.tm-section-title { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .5px; }
.tm-section-count {
  background: #f1f5f9;
  color: #64748b;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.tm-section-toggle { margin-left: auto; font-size: 11px; color: #94a3b8; transition: transform .2s; }
.tm-section-collapsed .tm-section-toggle { transform: rotate(-90deg); }
.tm-section-body {}
.tm-collapsed { display: none; }

/* ── Task list table ─────────────────────────────────────────── */
.tm-task-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.tm-table-header {
  display: grid;
  grid-template-columns: 40px 1fr 130px 100px 130px 130px 90px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 16px;
}
.tm-col-check, .tm-col-main, .tm-col-type, .tm-col-priority,
.tm-col-status, .tm-col-assignee, .tm-col-due {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 9px 8px;
}
.tm-col-check { text-align: center; }
/* Task row */
.tm-task-row {
  display: grid;
  grid-template-columns: 40px 1fr 130px 100px 130px 130px 90px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background .1s;
  min-height: 52px;
}
.tm-task-row:last-child { border-bottom: none; }
.tm-task-row:hover { background: #faf5ff; }
.tm-task-row.tm-row-done { opacity: .6; }
/* Check circle */
.tm-row-check { display: flex; align-items: center; justify-content: center; }
.tm-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
  font-size: 9px;
  color: #fff;
}
.tm-check-circle:hover { border-color: #7c3aed; }
.tm-check-circle.tm-checked { background: #10b981; border-color: #10b981; }
/* Row cells */
.tm-row-main { padding: 10px 8px; overflow: hidden; }
.tm-row-title { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-title-done { text-decoration: line-through; color: #94a3b8 !important; }
.tm-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.tm-meta-account, .tm-meta-loc, .tm-meta-sub,
.tm-meta-attach, .tm-meta-comment, .tm-meta-recur {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tm-meta-account { color: #6366f1; font-weight: 600; }
.tm-row-type { padding: 8px; }
.tm-type-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-row-priority { padding: 8px; }
.tm-row-status { padding: 8px; }
.tm-row-assignee {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tm-assignee-name { font-size: 12px; color: #374151; font-weight: 500; }
.tm-row-due {
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
}
.tm-due-overdue { color: #dc2626 !important; }
.tm-due-today   { color: #d97706 !important; }
.tm-due-soon    { color: #2563eb !important; }
.tm-due-normal  { color: #64748b; }

/* ── Badges: Priority ───────────────────────────────────────── */
.tm-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tm-p-low      { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.tm-p-normal   { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.tm-p-high     { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.tm-p-urgent   { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.tm-p-critical { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
/* Badges: Status */
.tm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tm-s-new          { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.tm-s-assigned     { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.tm-s-inprogress   { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.tm-s-waiting      { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.tm-s-blocked      { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.tm-s-review       { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.tm-s-completed    { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.tm-s-closed       { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.tm-s-cancelled    { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; text-decoration: line-through; }

/* ── Tags ───────────────────────────────────────────────────── */
.tm-tag {
  background: #f1f5f9;
  color: #64748b;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Avatar ─────────────────────────────────────────────────── */
.tm-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Subtask bar ────────────────────────────────────────────── */
.tm-subtask-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}
.tm-subtask-fill {
  height: 100%;
  background: #7c3aed;
  border-radius: 10px;
  transition: width .4s;
}

/* ── Empty states ───────────────────────────────────────────── */
.tm-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.tm-empty-state i  { font-size: 40px; margin-bottom: 12px; display: block; color: #d1d5db; }
.tm-empty-state h3 { font-size: 16px; font-weight: 700; color: #374151; margin: 0 0 6px; }
.tm-empty-state p  { font-size: 13px; margin: 0; }
.tm-empty-sm { font-size: 13px; color: #94a3b8; padding: 20px 0; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   KANBAN BOARD
═══════════════════════════════════════════════════════════════ */
.tm-kanban-board {
  display: flex;
  gap: 14px;
  padding: 20px 32px 32px;
  overflow-x: auto;
  min-height: 65vh;
  align-items: flex-start;
}
.tm-kanban-col {
  min-width: 255px;
  max-width: 270px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 78vh;
}
.tm-kanban-col.tm-drag-over {
  border-color: #7c3aed;
  background: #faf5ff;
}
.tm-kanban-col-header {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.tm-kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tm-kanban-count {
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.tm-kanban-cards {
  padding: 10px 10px 8px;
  overflow-y: auto;
  flex: 1;
}
.tm-kanban-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: grab;
  transition: box-shadow .15s, transform .15s;
  user-select: none;
}
.tm-kanban-card:hover {
  box-shadow: 0 4px 18px rgba(124,58,237,.13);
  transform: translateY(-1px);
}
.tm-kanban-card:active { cursor: grabbing; opacity: .8; }
.tm-kcard-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.tm-kcard-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}
.tm-kcard-account {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  background: #eef2ff;
  border-radius: 5px;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 6px;
}
.tm-kcard-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.tm-kcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.tm-kcard-due {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.tm-kcard-overdue { color: #dc2626 !important; }
.tm-kanban-add {
  width: 100%;
  background: transparent;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
  transition: all .15s;
}
.tm-kanban-add:hover { border-color: #7c3aed; color: #7c3aed; background: #faf5ff; }

/* ═══════════════════════════════════════════════════════════════
   CALENDAR VIEW
═══════════════════════════════════════════════════════════════ */
.tm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 20px 32px;
}
.tm-cal-day-hdr {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 10px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: .5px;
}
.tm-cal-cell {
  min-height: 110px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 7px;
  background: #fff;
  transition: background .1s;
  cursor: pointer;
}
.tm-cal-cell:nth-child(7n) { border-right: none; }
.tm-cal-cell:hover { background: #faf5ff; }
.tm-cal-cell.tm-cal-empty { background: #f8fafc; opacity: .5; pointer-events: none; }
.tm-cal-cell.tm-cal-today {
  background: #faf5ff;
  position: relative;
}
.tm-cal-num {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-cal-today .tm-cal-num {
  background: #7c3aed;
  color: #fff;
  border-radius: 50%;
}
.tm-cal-task-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tm-chip-critical { background: #fee2e2; color: #dc2626; }
.tm-chip-urgent   { background: #fef9c3; color: #a16207; }
.tm-chip-high     { background: #ffedd5; color: #c2410c; }
.tm-chip-normal   { background: #dbeafe; color: #1d4ed8; }
.tm-chip-low      { background: #dcfce7; color: #16a34a; }

/* ═══════════════════════════════════════════════════════════════
   TEAM TASKS VIEW
═══════════════════════════════════════════════════════════════ */
.tm-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  padding: 20px 32px;
}
.tm-team-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.tm-team-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.tm-team-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.tm-team-role { font-size: 12px; color: #64748b; }
.tm-team-stats { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tm-stat-pill {
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}
.tm-stat-open { background: #eef2ff; color: #4338ca; }
.tm-stat-over { background: #fef2f2; color: #dc2626; }
.tm-team-tasks { padding: 6px 0 10px; }
.tm-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background .1s;
}
.tm-mini-row:hover { background: #faf5ff; }
.tm-mini-row:last-child { border-bottom: none; }
.tm-check-circle-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 7px;
  color: #fff;
  cursor: pointer;
}
.tm-checked-sm { background: #10b981; border-color: #10b981; }
.tm-mini-title {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-mini-due { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.tm-more-tasks {
  padding: 6px 18px;
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS VIEW
═══════════════════════════════════════════════════════════════ */
.tm-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 20px 32px;
}
.tm-proj-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.tm-proj-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.tm-proj-color-bar { height: 5px; }
.tm-proj-body { padding: 18px 20px; }
.tm-proj-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tm-proj-name { font-size: 14px; font-weight: 700; color: #0f172a; flex: 1; line-height: 1.4; }
.tm-proj-account { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.tm-proj-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tm-proj-prog-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.tm-proj-prog-fill { height: 100%; border-radius: 10px; transition: width .5s; }
.tm-proj-pct { font-size: 12px; font-weight: 700; color: #374151; flex-shrink: 0; }
.tm-proj-stats { display: flex; gap: 16px; font-size: 12px; color: #64748b; }
.tm-proj-new {
  border: 2px dashed #e2e8f0;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: border-color .2s, background .2s;
}
.tm-proj-new:hover { border-color: #7c3aed; background: #faf5ff; }
.tm-proj-new-inner { text-align: center; }
.tm-proj-new-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
  margin: 0 auto 8px;
}
.tm-proj-new:hover .tm-proj-new-icon { background: #ddd4fe; color: #7c3aed; }
.tm-proj-new-label { font-size: 13px; font-weight: 600; color: #94a3b8; }
.tm-proj-new:hover .tm-proj-new-label { color: #7c3aed; }

/* ═══════════════════════════════════════════════════════════════
   TEMPLATES VIEW
═══════════════════════════════════════════════════════════════ */
.tm-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 32px;
}
.tm-template-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.tm-template-card:hover { box-shadow: 0 4px 16px rgba(124,58,237,.1); border-color: #7c3aed; }
.tm-tpl-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}
.tm-tpl-name { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.tm-tpl-desc { font-size: 12px; color: #64748b; line-height: 1.5; }
.tm-tpl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════════════════════════
   REPORTS VIEW  —  Cards + bar charts + table
═══════════════════════════════════════════════════════════════ */
.tm-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 32px;
}
.tm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.tm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.tm-card-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.tm-card-body { padding: 14px 18px; }
.tm-report-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
}
.tm-report-row:last-child { border-bottom: none; }
.tm-report-label { font-size: 12px; color: #374151; min-width: 90px; }
.tm-report-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}
.tm-report-bar {
  height: 100%;
  background: #7c3aed;
  border-radius: 8px;
  transition: width .5s;
  min-width: 4px;
}
.tm-report-count { font-size: 12px; font-weight: 700; color: #374151; min-width: 24px; text-align: right; }
/* Two column layout in detail */
.tm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tm-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f8fafc;
  gap: 8px;
}
.tm-stat-row:last-child { border-bottom: none; }
.tm-stat-label { font-size: 12px; color: #64748b; font-weight: 500; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   TASK DETAIL VIEW
═══════════════════════════════════════════════════════════════ */
.tm-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 20px 32px 0;
  flex-wrap: wrap;
}
.tm-detail-header-left { flex: 1; min-width: 0; }
.tm-detail-header-right { flex-shrink: 0; text-align: right; }
.tm-detail-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.tm-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.tm-detail-meta i { margin-right: 4px; }
.tm-detail-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  margin: 0 32px;
}
.tm-detail-main {
  padding: 24px 24px 24px 0;
  border-right: 1px solid #e2e8f0;
}
.tm-detail-side {
  padding: 24px 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tabs inside detail */
.tm-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
  gap: 0;
}
.tm-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color .15s;
  font-family: inherit;
}
.tm-tab:hover { color: #7c3aed; }
.tm-tab.active { color: #7c3aed; border-bottom-color: #7c3aed; }
.tm-tab-panel { display: none; }
.tm-tab-panel.active { display: block; }

/* Subtask rows */
.tm-subtask-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.tm-subtask-row:last-child { border-bottom: none; }
.tm-subtask-title { flex: 1; font-size: 13px; color: #374151; }

/* Activity feed */
.tm-activity-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tm-activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}
.tm-activity-item:last-child { border-bottom: none; }
.tm-activity-content { flex: 1; }
.tm-activity-meta { font-size: 12px; color: #64748b; margin-bottom: 3px; }
.tm-activity-meta strong { color: #0f172a; }
.tm-activity-text { font-size: 13px; color: #374151; line-height: 1.5; }
/* Comment textarea */
.tm-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  resize: vertical;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  min-height: 72px;
  transition: border-color .15s;
}
.tm-textarea:focus { border-color: #7c3aed; }
/* Comment input area */
.tm-comment-input { margin-top: 16px; }
/* Input field in filters */
.tm-input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  outline: none;
  font-family: inherit;
  background: #fff;
}
.tm-input:focus { border-color: #7c3aed; }

/* ═══════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════ */
#tm-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .tm-detail-body { grid-template-columns: 1fr; }
  .tm-detail-main { border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; }
  .tm-detail-side { padding-left: 0; }
  .tm-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tm-page-header  { padding: 20px 16px 14px; }
  .tm-filter-bar   { padding: 12px 16px; }
  .tm-kpi-strip    { padding: 16px 16px 4px; }
  .tm-section      { margin: 16px 16px 0; }
  .tm-task-list    { border-radius: 8px; }
  .tm-table-header { grid-template-columns: 40px 1fr 110px 90px; padding: 0 8px; }
  .tm-task-row     { grid-template-columns: 40px 1fr 110px 90px; padding: 0 8px; }
  .tm-col-type, .tm-col-status, .tm-col-assignee,
  .tm-row-type, .tm-row-status, .tm-row-assignee { display: none; }
  .tm-kanban-board { padding: 16px; }
  .tm-team-grid    { padding: 16px; }
  .tm-proj-grid    { padding: 16px; }
  .tm-templates-grid { padding: 16px; }
  .tm-report-grid  { padding: 16px; }
  .tm-cal-grid     { margin: 16px; }
  .tm-detail-header { margin: 16px; padding: 20px; }
  .tm-detail-body  { margin: 0 16px; }
}
@media (max-width: 600px) {
  .tm-table-header { display: none; }
  .tm-task-row { grid-template-columns: 36px 1fr 80px; min-height: 58px; }
  .tm-row-type, .tm-row-priority, .tm-row-status,
  .tm-row-assignee, .tm-row-due { display: none; }
  .tm-kanban-col { min-width: 240px; }
  .tm-cal-cell { min-height: 70px; }
  .tm-two-col { grid-template-columns: 1fr; }
}

/* ── Extra status/due classes ─────────────────────────────── */
.tm-s-waiting-client { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tm-due-ok   { color: #64748b; }
.tm-due-done { color: #94a3b8; text-decoration: line-through; }

/* ============================================================
   SUMMIT365 PROPOSALS MODULE
   proposals.js CSS  v2.0
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.pm-page {
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

/* ── Page Header ─────────────────────────────────────────── */
.pm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.pm-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
}
.pm-page-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.pm-page-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── KPI Strip ───────────────────────────────────────────── */
.pm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pm-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  transition: box-shadow .2s;
}
.pm-kpi:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pm-kpi-num {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}
.pm-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}
.pm-kpi-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.pm-kpi-info  { border-top: 3px solid #3b82f6; }
.pm-kpi-success { border-top: 3px solid #10b981; }
.pm-kpi-warn  { border-top: 3px solid #f59e0b; }
.pm-kpi-info  .pm-kpi-num  { color: #2563eb; }
.pm-kpi-success .pm-kpi-num { color: #059669; }
.pm-kpi-warn  .pm-kpi-num  { color: #d97706; }

/* ── Cards ───────────────────────────────────────────────── */
.pm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.pm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.pm-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-card-sub { font-size: 12px; color: #9ca3af; }
.pm-card-link {
  font-size: 12px;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 600;
}
.pm-card-link:hover { text-decoration: underline; }
.pm-card-body { padding: 18px 20px; }
.pm-no-pad    { padding: 0 !important; }

/* ── Title colors ────────────────────────────────────────── */
.pm-title-warn    { color: #f59e0b; }
.pm-title-success { color: #10b981; }

/* ── Buttons ─────────────────────────────────────────────── */
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.pm-btn-primary   { background: #0ea5e9; color: #fff; }
.pm-btn-primary:hover { background: #0284c7; }
.pm-btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.pm-btn-secondary:hover { background: #e5e7eb; }
.pm-btn-ghost     { background: transparent; color: #6b7280; border: 1px solid #e5e7eb; }
.pm-btn-ghost:hover { background: #f9fafb; }
.pm-btn-sm        { padding: 5px 11px; font-size: 12px; }
.pm-full-btn      { width: 100%; justify-content: center; margin-bottom: 6px; }
.pm-icon-btn      { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: all .15s; }
.pm-icon-btn:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.pm-icon-btn-danger:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* ── Status Badges ───────────────────────────────────────── */
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pm-s-draft      { background: #f3f4f6; color: #6b7280; }
.pm-s-progress   { background: #eff6ff; color: #2563eb; }
.pm-s-review     { background: #fef3c7; color: #d97706; }
.pm-s-pending    { background: #fef3c7; color: #b45309; }
.pm-s-ready      { background: #ecfdf5; color: #059669; }
.pm-s-sent       { background: #eff6ff; color: #1d4ed8; }
.pm-s-viewed     { background: #f0f9ff; color: #0369a1; }
.pm-s-negotiation{ background: #fffbeb; color: #92400e; }
.pm-s-sig-sent   { background: #f5f3ff; color: #6d28d9; }
.pm-s-sig-pending{ background: #ede9fe; color: #7c3aed; }
.pm-s-won        { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.pm-s-lost       { background: #fef2f2; color: #991b1b; }
.pm-s-expired    { background: #f3f4f6; color: #9ca3af; }
.pm-s-archived   { background: #f3f4f6; color: #9ca3af; }
.pm-s-info       { background: #eff6ff; color: #2563eb; }

/* ── Signature Badges ─────────────────────────────────────── */
.pm-sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.pm-sig-none     { background: #f3f4f6; color: #9ca3af; }
.pm-sig-pending  { background: #fef3c7; color: #d97706; }
.pm-sig-sent     { background: #ede9fe; color: #7c3aed; }
.pm-sig-viewed   { background: #eff6ff; color: #2563eb; }
.pm-sig-partial  { background: #fef3c7; color: #b45309; }
.pm-sig-done     { background: #ecfdf5; color: #059669; font-weight: 800; }
.pm-sig-expired  { background: #fef2f2; color: #ef4444; }
.pm-sig-failed   { background: #fef2f2; color: #dc2626; }

/* ── Priority Dot ─────────────────────────────────────────── */
.pm-priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── Avatar ─────────────────────────────────────────────── */
.pm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.pm-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.pm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
}
.pm-search {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.pm-search:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.pm-filter-select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #374151;
  outline: none;
  cursor: pointer;
}
.pm-filter-select:focus { border-color: #0ea5e9; }

/* ── Table ───────────────────────────────────────────────── */
.pm-table-wrap  { overflow-x: auto; }
.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pm-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.pm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  color: #374151;
}
.pm-row { cursor: pointer; transition: background .15s; }
.pm-row:hover { background: #f8faff; }
.pm-row:last-child td { border-bottom: none; }
.pm-row-title { font-weight: 600; color: #111827; font-size: 13px; margin-bottom: 2px; }
.pm-row-meta  { font-size: 11px; color: #9ca3af; }
.pm-row-sub   { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.pm-col-value { font-weight: 700; color: #111827; white-space: nowrap; }
.pm-col-dates { font-size: 12px; color: #6b7280; }
.pm-row-owner { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; }
.pm-analytics-mini { display: flex; gap: 10px; font-size: 12px; color: #6b7280; }
.pm-analytics-mini i { margin-right: 2px; }
.pm-row-actions { display: flex; gap: 4px; align-items: center; }
.pm-exp-overdue { color: #ef4444; font-weight: 600; }
.pm-exp-soon    { color: #f59e0b; font-weight: 600; }

/* ── Empty State ─────────────────────────────────────────── */
.pm-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}
.pm-empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.pm-empty-state p { font-size: 14px; margin-bottom: 16px; }
.pm-empty-sm {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Dashboard Grid ──────────────────────────────────────── */
.pm-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pm-dash-pipeline,
.pm-dash-recent   { grid-column: span 1; }
.pm-dash-expiring,
.pm-dash-sig-queue { grid-column: span 1; }
.pm-dash-performers { grid-column: span 2; }

.pm-pipeline-row { margin-bottom: 12px; }
.pm-pipeline-label { display: flex; justify-content: space-between; font-size: 12px; color: #374151; margin-bottom: 4px; font-weight: 500; }
.pm-pipeline-bar-wrap { background: #f3f4f6; border-radius: 4px; height: 8px; }
.pm-pipeline-bar { height: 8px; border-radius: 4px; transition: width .4s; }

.pm-activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
}
.pm-activity-row:last-child { border-bottom: none; }
.pm-activity-row:hover { background: #f8faff; }
.pm-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.pm-activity-body  { flex: 1; min-width: 0; }
.pm-activity-title { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-activity-meta  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.pm-expiring-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.pm-expiring-row:last-child { border-bottom: none; }
.pm-expiring-row:hover { background: #fffbeb; }
.pm-expiring-title { font-size: 13px; font-weight: 600; color: #111827; }
.pm-expiring-meta  { font-size: 11px; color: #9ca3af; }
.pm-expiring-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pm-exp-critical   { background: #fef2f2; color: #dc2626; }
.pm-exp-warn       { background: #fffbeb; color: #d97706; }

.pm-sig-queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
}
.pm-sig-queue-row:last-child { border-bottom: none; }
.pm-sig-queue-row:hover { background: #f5f3ff; }
.pm-sig-queue-body { flex: 1; min-width: 0; }
.pm-sig-queue-title { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sig-queue-meta  { font-size: 11px; color: #9ca3af; }

.pm-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pm-mini-table th { padding: 8px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.pm-mini-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.pm-mini-table tr:last-child td { border-bottom: none; }

.pm-rate-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.pm-rate-good { background: #ecfdf5; color: #059669; }
.pm-rate-low  { background: #fef2f2; color: #ef4444; }

/* ── Templates ───────────────────────────────────────────── */
.pm-template-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pm-tag-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.pm-tag-btn:hover  { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.pm-tag-btn.active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }

.pm-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.pm-tpl-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pm-tpl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: #0ea5e9; }
.pm-tpl-icon {
  padding: 20px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}
.pm-tpl-body { padding: 4px 18px 14px; flex: 1; }
.pm-tpl-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.pm-tpl-cat  { font-size: 11px; color: #6b7280; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pm-tpl-desc { font-size: 12px; color: #4b5563; line-height: 1.5; margin-bottom: 10px; }
.pm-tpl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pm-tpl-tag  { display: inline-block; padding: 2px 8px; background: #f3f4f6; border-radius: 10px; font-size: 10px; font-weight: 600; color: #6b7280; }
.pm-tpl-meta { display: flex; gap: 12px; font-size: 11px; color: #9ca3af; flex-wrap: wrap; }
.pm-tpl-meta i { margin-right: 3px; }
.pm-tpl-actions {
  padding: 12px 18px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Content Library ─────────────────────────────────────── */
.pm-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.pm-asset-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s;
}
.pm-asset-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); border-color: #0ea5e9; transform: translateY(-1px); }
.pm-asset-thumb {
  height: 90px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pm-asset-icon { font-size: 36px; }
.pm-asset-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.pm-asset-slide { background: #ede9fe; color: #6d28d9; }
.pm-asset-image { background: #ecfdf5; color: #059669; }
.pm-asset-pdf   { background: #fef2f2; color: #dc2626; }
.pm-asset-body    { padding: 12px 14px; }
.pm-asset-title   { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.pm-asset-cat     { font-size: 10px; color: #6b7280; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.pm-asset-preview { font-size: 11px; color: #6b7280; line-height: 1.4; margin-bottom: 8px; }
.pm-asset-tags    { display: flex; flex-wrap: wrap; gap: 4px; }
.pm-asset-actions {
  padding: 8px 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ── Signature Page ──────────────────────────────────────── */
.pm-sig-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
}
.pm-sig-card:last-child { border-bottom: none; }
.pm-sig-card:hover      { background: #f5f3ff; }
.pm-sig-card-done:hover { background: #f0fdf4; }
.pm-sig-card-body { flex: 1; min-width: 0; }
.pm-sig-card-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.pm-sig-card-meta  { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.pm-sig-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.pm-sig-value      { font-size: 16px; font-weight: 800; color: #111827; }
.pm-sig-fields     { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-sig-field      { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.pm-sig-field-done    { background: #ecfdf5; color: #059669; }
.pm-sig-field-pending { background: #fef3c7; color: #d97706; }

/* ── Analytics ───────────────────────────────────────────── */
.pm-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pm-funnel-stage   { margin-bottom: 10px; }
.pm-funnel-label   { display: flex; justify-content: space-between; font-size: 12px; color: #374151; margin-bottom: 4px; font-weight: 500; }
.pm-funnel-bar-wrap { background: #f3f4f6; border-radius: 4px; height: 10px; }
.pm-funnel-bar     { height: 10px; border-radius: 4px; transition: width .4s; }
.pm-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
}
.pm-top-row:last-child { border-bottom: none; }
.pm-top-row:hover { background: #f0fdf4; }
.pm-top-rank { width: 24px; height: 24px; border-radius: 50%; background: #ecfdf5; color: #059669; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm-top-body { flex: 1; min-width: 0; }
.pm-top-title { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-top-meta  { font-size: 11px; color: #9ca3af; }
.pm-top-value { font-size: 15px; font-weight: 800; color: #059669; text-align: right; white-space: nowrap; }
.pm-top-term  { font-size: 10px; color: #9ca3af; }
.pm-lost-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
}
.pm-lost-row:last-child { border-bottom: none; }
.pm-lost-row:hover { background: #fef2f2; }
.pm-lost-title  { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.pm-lost-reason { font-size: 11px; color: #6b7280; font-style: italic; }
.pm-lost-value  { font-size: 14px; font-weight: 700; color: #ef4444; white-space: nowrap; flex-shrink: 0; }

/* ── Proposal Detail ─────────────────────────────────────── */
.pm-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.pm-detail-topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.pm-detail-id { font-size: 11px; font-weight: 700; color: #93c5fd; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.pm-detail-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.3; }
.pm-detail-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-detail-header-right { flex-shrink: 0; }
.pm-detail-value-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
}
.pm-detail-value { font-size: 32px; font-weight: 900; color: #fff; }
.pm-detail-term  { font-size: 12px; color: #93c5fd; margin-top: 4px; }
.pm-detail-exp   { font-size: 11px; margin-top: 6px; font-weight: 600; }

.pm-detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.pm-detail-main { min-width: 0; }
.pm-detail-side { min-width: 0; }

.pm-client-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-ci-item { }
.pm-ci-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; margin-bottom: 3px; }
.pm-ci-val   { font-size: 13px; font-weight: 600; color: #111827; }
.pm-link     { color: #2563eb; text-decoration: none; }
.pm-link:hover { text-decoration: underline; }
.pm-loc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #eff6ff; color: #1d4ed8; border-radius: 20px; font-size: 11px; font-weight: 600; margin: 2px; }

/* Pricing Table */
.pm-pricing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm-pricing-table th { padding: 10px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #6b7280; letter-spacing: .04em; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.pm-pricing-table td { padding: 11px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.pm-num-col   { text-align: right; white-space: nowrap; }
.pm-total-col { font-weight: 700; color: #111827; }
.pm-subtotal-row td { background: #f9fafb; border-top: 2px solid #e5e7eb; }
.pm-grand-total { font-size: 16px; font-weight: 900; color: #111827; }
.pm-recurring-note { font-size: 11px; color: #6b7280; text-align: center; padding: 8px; font-style: italic; }

/* Signature Fields Detail */
.pm-sig-field-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.pm-sig-field-row:last-child { border-bottom: none; }
.pm-sig-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pm-sig-icon-done    { background: #ecfdf5; color: #059669; }
.pm-sig-icon-pending { background: #fef3c7; color: #d97706; }
.pm-sig-info  { flex: 1; min-width: 0; }
.pm-sig-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; margin-bottom: 2px; }
.pm-sig-signer { font-size: 14px; font-weight: 700; color: #111827; }
.pm-sig-date   { font-size: 12px; color: #059669; margin-top: 2px; }
.pm-sig-pending-text { font-size: 12px; color: #d97706; margin-top: 2px; font-style: italic; }
.pm-sig-done-icon { color: #10b981; font-size: 20px; }

/* Comments */
.pm-comment { display: flex; gap: 12px; margin-bottom: 16px; }
.pm-comment-body { flex: 1; min-width: 0; }
.pm-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 13px; }
.pm-comment-date { font-size: 11px; color: #9ca3af; }
.pm-comment-text { font-size: 13px; color: #374151; line-height: 1.5; }
.pm-comment-input-wrap { margin-top: 16px; border-top: 1px solid #f3f4f6; padding-top: 14px; }
.pm-comment-input-area { }
.pm-comment-input { width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; resize: vertical; box-sizing: border-box; outline: none; }
.pm-comment-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.pm-comment-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pm-check-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; cursor: pointer; user-select: none; }

/* Detail Sidebar */
.pm-info-list  { display: flex; flex-direction: column; gap: 8px; }
.pm-info-row   { display: flex; justify-content: space-between; font-size: 12px; }
.pm-info-row span:first-child { color: #9ca3af; font-weight: 500; }
.pm-info-row span:last-child  { color: #111827; font-weight: 600; }

.pm-engagement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-eng-item        { text-align: center; padding: 10px; background: #f9fafb; border-radius: 8px; }
.pm-eng-wide        { grid-column: span 2; }
.pm-eng-num         { font-size: 22px; font-weight: 800; color: #111827; }
.pm-eng-label       { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

.pm-owner-card { display: flex; align-items: center; gap: 12px; }
.pm-owner-info { min-width: 0; }
.pm-owner-name { font-size: 14px; font-weight: 700; color: #111827; }
.pm-owner-role { font-size: 11px; color: #6b7280; }

.pm-tag-list   { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-notes-text { font-size: 13px; color: #4b5563; line-height: 1.6; margin: 0; white-space: pre-wrap; }
.pm-quick-actions { display: flex; flex-direction: column; }

/* ── Proposal Builder ──────────────────────────────────────── */
.pm-builder-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  background: #f0f4f8;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.pm-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pm-builder-header-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pm-builder-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pm-builder-title-wrap   { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-builder-title-input {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  border: none;
  outline: none;
  background: transparent;
  min-width: 280px;
  font-family: 'Inter', sans-serif;
}
.pm-builder-title-input:focus { background: #f9fafb; border-radius: 6px; padding: 4px 8px; margin: -4px -8px; }

.pm-builder-body {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  flex: 1;
  overflow: hidden;
}

/* Builder Panels */
.pm-builder-sections-panel,
.pm-builder-props-panel {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-builder-props-panel { border-right: none; border-left: 1px solid #e5e7eb; }
.pm-builder-panel-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
  flex-shrink: 0;
}
.pm-builder-sections-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.pm-builder-panel-footer { padding: 12px; border-top: 1px solid #f3f4f6; flex-shrink: 0; }

.pm-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.pm-section-item:hover    { background: #f8faff; }
.pm-section-active        { opacity: 1; }
.pm-section-selected      { background: #eff6ff !important; border-left-color: #0ea5e9; }
.pm-section-drag          { color: #d1d5db; font-size: 12px; cursor: grab; }
.pm-section-icon          { width: 28px; height: 28px; border-radius: 6px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6b7280; flex-shrink: 0; }
.pm-section-selected .pm-section-icon { background: #eff6ff; color: #0ea5e9; }
.pm-section-info { flex: 1; min-width: 0; }
.pm-section-label { font-size: 13px; font-weight: 600; color: #111827; }
.pm-section-desc  { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-section-toggle { flex-shrink: 0; }
.pm-section-check { width: 16px; height: 16px; cursor: pointer; accent-color: #0ea5e9; }

/* Builder Canvas */
.pm-builder-canvas {
  background: #f0f4f8;
  overflow-y: auto;
  padding: 24px;
}
.pm-canvas-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.pm-canvas-select-prompt { text-align: center; padding: 48px 32px; }
.pm-canvas-icon { font-size: 48px; color: #d1d5db; margin-bottom: 16px; }
.pm-canvas-select-prompt h3 { font-size: 18px; font-weight: 700; color: #6b7280; margin: 0 0 8px; }
.pm-canvas-select-prompt p  { font-size: 14px; color: #9ca3af; margin: 0; }

.pm-section-editor {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  max-width: 680px;
  margin: 0 auto;
}
.pm-section-editor h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 20px; border-bottom: 1px solid #f3f4f6; padding-bottom: 12px; }

.pm-editor-field { margin-bottom: 16px; }
.pm-editor-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 6px; }
.pm-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.pm-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.pm-full-input  { width: 100%; display: block; }

.pm-cover-styles { display: flex; gap: 10px; margin-top: 4px; }
.pm-cover-opt { width: 60px; height: 40px; border-radius: 8px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; border: 2px solid transparent; transition: all .15s; }
.pm-cover-opt span { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; }
.pm-cover-active { border-color: #fff; box-shadow: 0 0 0 3px #0ea5e9; }

.pm-scope-checklist { display: flex; flex-direction: column; gap: 6px; }
.pm-line-item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pm-sig-config { display: flex; flex-direction: column; gap: 12px; }
.pm-sig-config-row { display: flex; gap: 12px; }

/* Builder Props Panel */
.pm-builder-props-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.pm-props-section { margin-bottom: 16px; }
.pm-props-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 6px; }
.pm-assign-list { display: flex; flex-direction: column; gap: 6px; }
.pm-assign-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; }
.pm-assign-check { margin-left: auto; accent-color: #0ea5e9; cursor: pointer; }

/* ── Modal Wizard ─────────────────────────────────────────── */
.pm-wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.pm-wizard-opt {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.pm-wizard-opt:hover { border-color: #0ea5e9; background: #f0f9ff; }
.pm-wizard-icon  { font-size: 28px; margin-bottom: 8px; }
.pm-wizard-label { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.pm-wizard-desc  { font-size: 11px; color: #6b7280; line-height: 1.4; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pm-detail-body   { grid-template-columns: 1fr; }
  .pm-detail-side   { order: -1; }
  .pm-builder-body  { grid-template-columns: 260px 1fr; }
  .pm-builder-props-panel { display: none; }
  .pm-dash-performers { grid-column: span 1; }
}
@media (max-width: 900px) {
  .pm-page { padding: 16px 16px; }
  .pm-dash-grid     { grid-template-columns: 1fr; }
  .pm-analytics-grid { grid-template-columns: 1fr; }
  .pm-builder-body  { grid-template-columns: 1fr; }
  .pm-builder-sections-panel { display: none; }
  .pm-detail-header { padding: 20px 18px; }
  .pm-detail-title  { font-size: 18px; }
}
@media (max-width: 600px) {
  .pm-kpi-strip     { grid-template-columns: repeat(2, 1fr); }
  .pm-template-grid { grid-template-columns: 1fr; }
  .pm-content-grid  { grid-template-columns: repeat(2,1fr); }
  .pm-client-info-grid { grid-template-columns: 1fr; }
  .pm-sig-config-row { flex-direction: column; }
}

/* ============================================================
   Summit365 Onboarding Module — CSS  (ob-* / obf-* prefix)
   Internal dashboard, submission management, form builder +
   Client-facing multi-step form experience
   ============================================================ */

/* ── Base Variables ──────────────────────────────────────── */
:root {
  --ob-green:   #059669;
  --ob-green-l: #d1fae5;
  --ob-green-d: #047857;
  --ob-blue:    #3b82f6;
  --ob-amber:   #f59e0b;
  --ob-red:     #ef4444;
  --ob-purple:  #8b5cf6;
  --ob-gray:    #6b7280;
  --ob-bg:      #f0f4f8;
  --ob-card:    #ffffff;
  --ob-border:  #e5e7eb;
  --ob-radius:  12px;
  --ob-shadow:  0 1px 4px rgba(0,0,0,.08);
  --ob-shadow-md: 0 4px 16px rgba(0,0,0,.10);
}

/* ── Page Layout ─────────────────────────────────────────── */
.ob-page { padding: 24px 28px; min-height: 100%; }

.ob-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ob-page-header-left { flex: 1; min-width: 0; }
.ob-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.ob-page-sub { font-size: 13px; color: #6b7280; margin: 0; }
.ob-page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.ob-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.ob-btn-primary { background: var(--ob-green); color: #fff; }
.ob-btn-primary:hover { background: var(--ob-green-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.ob-btn-secondary { background: #f3f4f6; color: #374151; }
.ob-btn-secondary:hover { background: #e5e7eb; }
.ob-btn-outline { background: transparent; color: var(--ob-green); border: 1.5px solid var(--ob-green); }
.ob-btn-outline:hover { background: var(--ob-green-l); }
.ob-btn-danger { background: #fee2e2; color: var(--ob-red); }
.ob-btn-danger:hover { background: #fecaca; }
.ob-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.ob-btn-icon { padding: 8px 10px; }

/* ── KPI Strip ───────────────────────────────────────────── */
.ob-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ob-kpi {
  background: var(--ob-card);
  border-radius: var(--ob-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--ob-shadow);
  border: 1px solid var(--ob-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ob-kpi:hover { transform: translateY(-2px); box-shadow: var(--ob-shadow-md); }
.ob-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--ob-green-l);
  color: var(--ob-green);
}
.ob-kpi.kpi-amber .ob-kpi-icon { background: #fef3c7; color: var(--ob-amber); }
.ob-kpi.kpi-red .ob-kpi-icon   { background: #fee2e2; color: var(--ob-red); }
.ob-kpi.kpi-blue .ob-kpi-icon  { background: #dbeafe; color: var(--ob-blue); }
.ob-kpi.kpi-purple .ob-kpi-icon { background: #ede9fe; color: var(--ob-purple); }
.ob-kpi.kpi-gray .ob-kpi-icon  { background: #f3f4f6; color: var(--ob-gray); }
.ob-kpi-num { font-size: 24px; font-weight: 800; color: #111827; line-height: 1; }
.ob-kpi-label { font-size: 11px; color: #6b7280; margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Cards ───────────────────────────────────────────────── */
.ob-card {
  background: var(--ob-card);
  border-radius: var(--ob-radius);
  border: 1px solid var(--ob-border);
  box-shadow: var(--ob-shadow);
  overflow: hidden;
}
.ob-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ob-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ob-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.ob-card-body  { padding: 20px; }
.ob-card-footer { padding: 14px 20px; border-top: 1px solid var(--ob-border); background: #fafafa; }

/* ── Grid Layouts ────────────────────────────────────────── */
.ob-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ob-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ob-grid-14 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
@media (max-width: 900px) {
  .ob-grid-2, .ob-grid-3, .ob-grid-14 { grid-template-columns: 1fr; }
}

/* ── Status Badges ───────────────────────────────────────── */
.ob-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ob-s-draft    { background: #f3f4f6; color: #374151; }
.ob-s-sent     { background: #dbeafe; color: #1d4ed8; }
.ob-s-progress { background: #fef3c7; color: #92400e; }
.ob-s-done     { background: #d1fae5; color: #065f46; }
.ob-s-missing  { background: #fee2e2; color: #991b1b; }
.ob-s-approved { background: #ede9fe; color: #5b21b6; }
.ob-s-archived { background: #f9fafb; color: #9ca3af; border: 1px solid #e5e7eb; }

/* ── Progress Bar ────────────────────────────────────────── */
.ob-prog-bar-wrap {
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}
.ob-prog-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}
.ob-prog-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 4px;
}

/* ── Dot Status ──────────────────────────────────────────── */
.ob-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ob-dot-green  { background: #10b981; }
.ob-dot-blue   { background: #3b82f6; }
.ob-dot-red    { background: #ef4444; }
.ob-dot-amber  { background: #f59e0b; }
.ob-dot-gray   { background: #d1d5db; }

/* ── Avatar ──────────────────────────────────────────────── */
.ob-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.ob-avatar-stack { display: flex; }
.ob-avatar-stack .ob-avatar { margin-left: -6px; border: 2px solid #fff; }
.ob-avatar-stack .ob-avatar:first-child { margin-left: 0; }

/* ── Table ───────────────────────────────────────────────── */
.ob-table-wrap { overflow-x: auto; }
.ob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ob-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  background: #fafafa;
  border-bottom: 1px solid var(--ob-border);
  white-space: nowrap;
}
.ob-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}
.ob-table tr:hover td { background: #f9fafb; }
.ob-table .ob-table-name { font-weight: 600; color: #111827; }
.ob-table .ob-table-sub  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ── Search & Filters ────────────────────────────────────── */
.ob-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.ob-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.ob-search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
}
.ob-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1.5px solid var(--ob-border);
  border-radius: 9px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.ob-search-input:focus { border-color: var(--ob-green); }
.ob-filter-select {
  padding: 9px 12px;
  border: 1.5px solid var(--ob-border);
  border-radius: 9px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.ob-filter-select:focus { border-color: var(--ob-green); }

/* ── Timeline / Activity Feed ────────────────────────────── */
.ob-timeline { list-style: none; padding: 0; margin: 0; }
.ob-timeline-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}
.ob-timeline-item:last-child { border-bottom: none; }
.ob-tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ob-tl-body { flex: 1; min-width: 0; }
.ob-tl-title { font-size: 13px; font-weight: 600; color: #111827; }
.ob-tl-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.ob-tl-time  { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* ── Section Completeness ────────────────────────────────── */
.ob-sections-list { display: flex; flex-direction: column; gap: 8px; }
.ob-section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid var(--ob-border);
}
.ob-section-row:hover { background: #f3f4f6; }
.ob-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ob-green-l);
  color: var(--ob-green);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-section-name { flex: 1; font-size: 13px; font-weight: 500; color: #374151; }
.ob-section-pct  { font-size: 12px; font-weight: 700; color: var(--ob-green); }

/* ── Submission Detail ───────────────────────────────────── */
.ob-detail-hero {
  background: linear-gradient(135deg, var(--ob-green) 0%, var(--ob-green-d) 100%);
  border-radius: var(--ob-radius);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.ob-detail-hero-left h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.ob-detail-hero-left p  { font-size: 13px; opacity: 0.85; margin: 0; }
.ob-detail-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.ob-detail-meta-item { text-align: center; }
.ob-detail-meta-num  { font-size: 22px; font-weight: 800; }
.ob-detail-meta-lbl  { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.ob-detail-actions   { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.ob-detail-actions .ob-btn-primary { background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.4); }
.ob-detail-actions .ob-btn-primary:hover { background: rgba(255,255,255,0.35); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ── Info Grid ───────────────────────────────────────────── */
.ob-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.ob-info-item label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; font-weight: 600; }
.ob-info-item .val  { font-size: 14px; font-weight: 600; color: #111827; margin-top: 4px; }

/* ── Tabs ────────────────────────────────────────────────── */
.ob-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  flex-wrap: wrap;
}
.ob-tab {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  background: transparent;
}
.ob-tab.active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ob-tab:hover:not(.active) { color: #374151; }

/* ── Empty State ─────────────────────────────────────────── */
.ob-empty {
  text-align: center;
  padding: 56px 24px;
  color: #9ca3af;
}
.ob-empty-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.5; }
.ob-empty h3 { font-size: 16px; font-weight: 700; color: #374151; margin: 0 0 8px; }
.ob-empty p  { font-size: 13px; }

/* ── Template Cards ──────────────────────────────────────── */
.ob-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ob-template-card {
  background: var(--ob-card);
  border-radius: var(--ob-radius);
  border: 1.5px solid var(--ob-border);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.ob-template-card:hover { transform: translateY(-3px); box-shadow: var(--ob-shadow-md); border-color: var(--ob-green); }
.ob-template-card.active { border-color: var(--ob-green); box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.ob-tc-banner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.ob-tc-body { padding: 16px; }
.ob-tc-name  { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.ob-tc-desc  { font-size: 12px; color: #9ca3af; line-height: 1.5; }
.ob-tc-meta  { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ob-tc-tag   { font-size: 11px; padding: 3px 8px; background: #f3f4f6; color: #6b7280; border-radius: 20px; font-weight: 500; }
.ob-tc-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ob-border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Settings Panel ──────────────────────────────────────── */
.ob-settings-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .ob-settings-grid { grid-template-columns: 1fr; } }
.ob-settings-nav { display: flex; flex-direction: column; gap: 2px; }
.ob-settings-nav-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.ob-settings-nav-item:hover { background: #f3f4f6; color: #111827; }
.ob-settings-nav-item.active { background: var(--ob-green-l); color: var(--ob-green); }
.ob-settings-panel { flex: 1; }
.ob-settings-section { margin-bottom: 28px; }
.ob-settings-section-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 14px; }

/* ── Form Fields (internal) ──────────────────────────────── */
.ob-field { margin-bottom: 16px; }
.ob-field label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ob-border);
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus { border-color: var(--ob-green); }
.ob-field textarea { min-height: 90px; resize: vertical; }

/* ── Color Picker Swatches ───────────────────────────────── */
.ob-color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-swatch {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.ob-swatch.active { border-color: #111827; }

/* ── Checklist / Workflow ────────────────────────────────── */
.ob-workflow-list { display: flex; flex-direction: column; gap: 10px; }
.ob-workflow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 9px;
  border: 1px solid var(--ob-border);
}
.ob-workflow-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ob-green); flex-shrink: 0; cursor: pointer; }
.ob-workflow-label { flex: 1; font-size: 13px; color: #374151; }
.ob-workflow-item.done .ob-workflow-label { text-decoration: line-through; color: #9ca3af; }
.ob-workflow-assign { font-size: 11px; color: #9ca3af; }

/* ── Chart Containers ────────────────────────────────────── */
.ob-chart-wrap { position: relative; height: 200px; }

/* ── Share Link Box ──────────────────────────────────────── */
.ob-share-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f9fafb;
  border: 1.5px dashed var(--ob-border);
  border-radius: 9px;
  padding: 12px 14px;
}
.ob-share-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #374151;
  font-family: 'Courier New', monospace;
}

/* ── Alert / Banner ──────────────────────────────────────── */
.ob-alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ob-alert-info   { background: #dbeafe; color: #1d4ed8; }
.ob-alert-warn   { background: #fef3c7; color: #92400e; }
.ob-alert-danger { background: #fee2e2; color: #991b1b; }
.ob-alert-success{ background: #d1fae5; color: #065f46; }

/* ─────────────────────────────────────────────────────────
   CLIENT-FACING MULTI-STEP FORM (obf-*)
   ───────────────────────────────────────────────────────── */

/* ── Shell & Layout ──────────────────────────────────────── */
.obf-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

.obf-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.obf-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.obf-logo {
  width: 38px;
  height: 38px;
  background: var(--ob-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.obf-logo-s { color: #fff; font-size: 22px; font-weight: 900; line-height: 1; }
.obf-brand-name { font-size: 15px; font-weight: 800; color: #111827; }
.obf-brand-sub  { font-size: 11px; color: #9ca3af; }
.obf-header-center { flex: 1; text-align: center; }
.obf-form-title { font-size: 15px; font-weight: 700; color: #374151; }
.obf-form-account { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.obf-header-right { display: flex; align-items: center; gap: 12px; }
.obf-save-status { font-size: 12px; color: #9ca3af; display: flex; align-items: center; gap: 6px; }
.obf-save-status i { color: #10b981; }

/* ── Progress Stepper ────────────────────────────────────── */
.obf-progress-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  overflow-x: auto;
}
.obf-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  margin: 0 auto;
  max-width: 900px;
}
.obf-step {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.obf-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.obf-step-label { font-size: 11.5px; font-weight: 600; color: #9ca3af; transition: color 0.3s; white-space: nowrap; }
.obf-step.done .obf-step-num   { background: var(--ob-green); color: #fff; }
.obf-step.done .obf-step-label { color: var(--ob-green); }
.obf-step.active .obf-step-num   { background: #111827; color: #fff; box-shadow: 0 0 0 4px rgba(17,24,39,.12); }
.obf-step.active .obf-step-label { color: #111827; }
.obf-step-connector {
  height: 2px;
  width: 28px;
  background: #e5e7eb;
  margin: 0 4px;
  transition: background 0.3s;
  flex-shrink: 0;
}
.obf-step-connector.done { background: var(--ob-green); }

/* ── Progress Bar Strip ──────────────────────────────────── */
.obf-progress-bar-strip {
  background: #e5e7eb;
  height: 3px;
  border-radius: 0;
}
.obf-progress-bar-fill {
  height: 3px;
  background: var(--ob-green);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s ease;
}

/* ── Main Form Body ──────────────────────────────────────── */
.obf-body {
  flex: 1;
  padding: 40px 24px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ── Step Card ───────────────────────────────────────────── */
.obf-step-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden;
  animation: obfFadeIn 0.3s ease;
}
@keyframes obfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.obf-step-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.obf-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ob-green-l);
  color: var(--ob-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.obf-step-title { font-size: 21px; font-weight: 800; color: #111827; margin: 0 0 6px; }
.obf-step-sub   { font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0; }
.obf-step-body  { padding: 24px 32px 32px; }

/* ── Form Elements (Client Form) ─────────────────────────── */
.obf-field { margin-bottom: 22px; }
.obf-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.obf-required { color: var(--ob-red); font-size: 11px; }
.obf-optional { font-size: 11px; color: #9ca3af; font-weight: 400; }
.obf-hint { font-size: 12px; color: #9ca3af; margin-top: 5px; line-height: 1.4; }

.obf-input,
.obf-select,
.obf-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
.obf-input:focus,
.obf-select:focus,
.obf-textarea:focus {
  border-color: var(--ob-green);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}
.obf-input.error,
.obf-select.error,
.obf-textarea.error { border-color: var(--ob-red); }
.obf-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.obf-select { cursor: pointer; }
.obf-input-prefix-wrap { position: relative; }
.obf-input-prefix-wrap .obf-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9ca3af;
  pointer-events: none;
}
.obf-input-prefix-wrap .obf-input { padding-left: 28px; }

/* ── Radio / Checkbox Groups ─────────────────────────────── */
.obf-radio-group,
.obf-check-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.obf-radio-group.inline,
.obf-check-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.obf-radio-option,
.obf-check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.obf-radio-option:hover,
.obf-check-option:hover { border-color: var(--ob-green); background: #f0fdf4; }
.obf-radio-option input[type="radio"],
.obf-check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ob-green);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.obf-radio-option.selected,
.obf-check-option.selected { border-color: var(--ob-green); background: #f0fdf4; }
.obf-option-label { font-size: 14px; color: #111827; font-weight: 500; }
.obf-option-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* ── Yes/No Toggle ───────────────────────────────────────── */
.obf-yesno { display: flex; gap: 10px; }
.obf-yesno-btn {
  flex: 1;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
  background: #fff;
  user-select: none;
}
.obf-yesno-btn:hover { border-color: var(--ob-green); color: var(--ob-green); }
.obf-yesno-btn.selected-yes { background: #d1fae5; border-color: var(--ob-green); color: var(--ob-green-d); }
.obf-yesno-btn.selected-no  { background: #fee2e2; border-color: var(--ob-red); color: #991b1b; }

/* ── File Upload ─────────────────────────────────────────── */
.obf-upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.obf-upload-zone:hover, .obf-upload-zone.drag-over {
  border-color: var(--ob-green);
  background: #f0fdf4;
}
.obf-upload-icon { font-size: 28px; color: #d1d5db; margin-bottom: 10px; }
.obf-upload-zone:hover .obf-upload-icon { color: var(--ob-green); }
.obf-upload-label { font-size: 14px; color: #374151; font-weight: 600; }
.obf-upload-hint  { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.obf-upload-input { display: none; }
.obf-upload-files { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.obf-upload-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
}
.obf-upload-file-row i { color: var(--ob-green); }
.obf-upload-file-name { flex: 1; font-weight: 500; color: #374151; }
.obf-upload-file-size { color: #9ca3af; font-size: 11px; }
.obf-upload-file-rm   { color: #9ca3af; cursor: pointer; }
.obf-upload-file-rm:hover { color: var(--ob-red); }

/* ── Day/Time Selectors ──────────────────────────────────── */
.obf-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.obf-day-btn {
  padding: 10px 4px;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  transition: all 0.2s;
  user-select: none;
}
.obf-day-btn:hover { border-color: var(--ob-green); color: var(--ob-green); }
.obf-day-btn.selected { background: var(--ob-green); color: #fff; border-color: var(--ob-green); }

/* ── Location Card (multi-location) ─────────────────────── */
.obf-loc-cards { display: flex; flex-direction: column; gap: 14px; }
.obf-loc-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.obf-loc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.obf-loc-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.obf-loc-card-body  { padding: 18px; }
.obf-add-location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px dashed var(--ob-green);
  border-radius: 10px;
  color: var(--ob-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}
.obf-add-location-btn:hover { background: #f0fdf4; }

/* ── Inline Field Grid ───────────────────────────────────── */
.obf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .obf-field-row { grid-template-columns: 1fr; } }

/* ── Checkboxes as service tiles ─────────────────────────── */
.obf-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.obf-service-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  user-select: none;
}
.obf-service-tile:hover { border-color: var(--ob-green); background: #f0fdf4; }
.obf-service-tile.selected { border-color: var(--ob-green); background: #d1fae5; }
.obf-service-tile input { accent-color: var(--ob-green); flex-shrink: 0; }
.obf-service-icon { font-size: 16px; }
.obf-service-label { font-size: 13px; font-weight: 500; color: #374151; }
.obf-service-tile.selected .obf-service-label { color: var(--ob-green-d); }

/* ── Holiday Grid ────────────────────────────────────────── */
.obf-holiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.obf-holiday-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  background: #fff;
}
.obf-holiday-item:hover { border-color: var(--ob-green); background: #f0fdf4; }
.obf-holiday-item.selected { background: #d1fae5; border-color: var(--ob-green); color: var(--ob-green-d); }
.obf-holiday-item input { accent-color: var(--ob-green); flex-shrink: 0; }

/* ── Form Navigation Footer ──────────────────────────────── */
.obf-nav-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.obf-nav-left  { display: flex; align-items: center; gap: 10px; }
.obf-nav-right { display: flex; align-items: center; gap: 10px; }
.obf-nav-step-info { font-size: 13px; color: #9ca3af; }

.obf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.obf-btn-primary { background: var(--ob-green); color: #fff; }
.obf-btn-primary:hover { background: var(--ob-green-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(5,150,105,.35); }
.obf-btn-back { background: #f3f4f6; color: #374151; }
.obf-btn-back:hover { background: #e5e7eb; }
.obf-btn-save { background: #fff; color: #374151; border: 1.5px solid #e5e7eb; }
.obf-btn-save:hover { border-color: #9ca3af; }
.obf-btn-submit {
  background: linear-gradient(135deg, var(--ob-green) 0%, var(--ob-green-d) 100%);
  color: #fff;
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(5,150,105,.3);
}
.obf-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,.4); }

/* ── Section Divider ─────────────────────────────────────── */
.obf-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}
.obf-section-divider-line { flex: 1; height: 1px; background: #e5e7eb; }
.obf-section-divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
}

/* ── Critical Area Cards ─────────────────────────────────── */
.obf-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.obf-area-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: #fff;
}
.obf-area-card:hover { border-color: var(--ob-green); background: #f0fdf4; }
.obf-area-card.selected { border-color: var(--ob-green); background: #d1fae5; }
.obf-area-card-icon { font-size: 24px; margin-bottom: 8px; }
.obf-area-card-name { font-size: 12px; font-weight: 600; color: #374151; }
.obf-area-card.selected .obf-area-card-name { color: var(--ob-green-d); }

/* ── Success / Confirmation Screen ──────────────────────── */
.obf-success {
  text-align: center;
  padding: 60px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.obf-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ob-green), var(--ob-green-d));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(5,150,105,.35);
  animation: obfPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes obfPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.obf-success h2 { font-size: 26px; font-weight: 800; color: #111827; margin: 0 0 12px; }
.obf-success p  { font-size: 15px; color: #6b7280; line-height: 1.6; }
.obf-success-steps {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  text-align: left;
}
.obf-success-steps h4 { font-size: 13px; font-weight: 700; color: #374151; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.obf-success-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #374151;
}
.obf-success-step:last-child { border-bottom: none; }
.obf-success-step i { color: var(--ob-green); width: 16px; }

/* ── Tooltip ─────────────────────────────────────────────── */
.obf-tooltip { position: relative; display: inline-block; }
.obf-tooltip-icon {
  width: 18px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #6b7280;
  cursor: help;
  font-weight: 700;
}
.obf-tooltip:hover .obf-tooltip-box {
  display: block;
}
.obf-tooltip-box {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 7px;
  white-space: nowrap;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  pointer-events: none;
}

/* ── Conditional Logic Reveal ────────────────────────────── */
.obf-conditional { overflow: hidden; }
.obf-conditional.hidden { display: none; }

/* ── Signature Pad (placeholder) ────────────────────────── */
.obf-sig-pad {
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s;
}
.obf-sig-pad:hover { border-color: var(--ob-green); background: #f0fdf4; }

/* ── Mobile Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  .obf-body { padding: 20px 16px; }
  .obf-step-header { padding: 20px 20px 16px; }
  .obf-step-body   { padding: 16px 20px 24px; }
  .obf-header      { padding: 12px 16px; }
  .obf-header-center { display: none; }
  .obf-progress-wrap { padding: 12px 16px; }
  .obf-day-grid    { grid-template-columns: repeat(4, 1fr); }
  .obf-service-grid { grid-template-columns: 1fr 1fr; }
  .obf-nav-footer  { padding: 14px 16px; }
  .obf-btn         { padding: 10px 16px; font-size: 13px; }
  .ob-kpi-strip    { grid-template-columns: 1fr 1fr; }
  .ob-page         { padding: 16px; }
}

/* ============================================================
   Summit365 Workflow Pipeline Module — CSS  (wf-* prefix)
   Lead → Proposal → Signature → Onboarding → Tasks → Account
   ============================================================ */

:root {
  --wf-purple:  #7c3aed;
  --wf-purple-l:#ede9fe;
  --wf-green:   #059669;
  --wf-green-l: #d1fae5;
  --wf-blue:    #3b82f6;
  --wf-amber:   #f59e0b;
  --wf-red:     #ef4444;
  --wf-border:  #e5e7eb;
  --wf-card:    #ffffff;
  --wf-bg:      #f0f4f8;
  --wf-radius:  12px;
  --wf-shadow:  0 1px 4px rgba(0,0,0,.08);
  --wf-shadow-md:0 4px 16px rgba(0,0,0,.10);
}

/* ── Page ────────────────────────────────────────────────── */
.wf-page { padding: 24px 28px; min-height: 100%; }
.wf-pipeline-page { padding: 24px 12px 24px 28px; }

.wf-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.wf-page-header-left { flex: 1; min-width: 0; }
.wf-page-title { font-size: 22px; font-weight: 800; color: #111827; margin: 0 0 4px; letter-spacing: -.3px; }
.wf-page-sub   { font-size: 13px; color: #6b7280; margin: 0; }
.wf-page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.wf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
}
.wf-btn-primary  { background: var(--wf-purple); color: #fff; }
.wf-btn-primary:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,.3); }
.wf-btn-secondary{ background: #f3f4f6; color: #374151; }
.wf-btn-secondary:hover { background: #e5e7eb; }
.wf-btn-outline  { background: transparent; color: var(--wf-purple); border: 1.5px solid var(--wf-purple); }
.wf-btn-outline:hover { background: var(--wf-purple-l); }
.wf-btn-ghost    { background: transparent; color: #6b7280; padding: 6px 10px; }
.wf-btn-ghost:hover { color: #111827; background: #f3f4f6; border-radius: 8px; }
.wf-btn-hero     { background: rgba(255,255,255,.2); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.wf-btn-hero:hover { background: rgba(255,255,255,.35); transform: translateY(-1px); }
.wf-btn-sm  { padding: 6px 12px; font-size: 12px; border-radius: 7px; }

/* ── KPI Strip ───────────────────────────────────────────── */
.wf-kpi-strip {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 14px; margin-bottom: 24px;
}
.wf-kpi {
  background: var(--wf-card); border-radius: var(--wf-radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--wf-shadow);
  border: 1px solid var(--wf-border); transition: transform .2s,box-shadow .2s;
}
.wf-kpi:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-md); }
.wf-kpi-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}
.wf-kpi-num  { font-size: 22px; font-weight: 800; color: #111827; line-height: 1; }
.wf-kpi-lbl  { font-size: 11px; color: #6b7280; margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.wf-kpi-sub  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────────── */
.wf-card { background: var(--wf-card); border-radius: var(--wf-radius); border: 1px solid var(--wf-border); box-shadow: var(--wf-shadow); overflow: hidden; }
.wf-card-header { padding: 16px 20px; border-bottom: 1px solid var(--wf-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wf-card-title  { font-size: 14px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; }
.wf-card-body   { padding: 20px; }
.wf-card-actions{ display: flex; gap: 8px; }

/* ── Grid ────────────────────────────────────────────────── */
.wf-grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wf-grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.wf-grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.wf-grid-14 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; }
@media(max-width:900px){
  .wf-grid-2,.wf-grid-3,.wf-grid-4,.wf-grid-14 { grid-template-columns: 1fr; }
}

/* ── Stage / Sig Badges ──────────────────────────────────── */
.wf-stage-badge, .wf-sig-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* ── Pills ───────────────────────────────────────────────── */
.wf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 500;
  background: #f3f4f6; color: #374151;
}
.wf-pill-sm   { padding: 2px 6px; font-size: 10px; }
.wf-pill-blue { background: #dbeafe; color: #1d4ed8; }
.wf-pill-green{ background: #d1fae5; color: #065f46; }
.wf-pill-light{ background: rgba(255,255,255,.2); color: #fff; }

/* ── Avatar ──────────────────────────────────────────────── */
.wf-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; line-height: 1; flex-shrink: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.wf-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.wf-bc-sep     { color: #d1d5db; }
.wf-bc-current { font-size: 14px; font-weight: 600; color: #111827; }

/* ── Table ───────────────────────────────────────────────── */
.wf-table-wrap { overflow-x: auto; }
.wf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wf-table th { text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; background: #fafafa; border-bottom: 1px solid var(--wf-border); white-space: nowrap; }
.wf-table td { padding: 13px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.wf-table tr:hover td { background: #f9fafb; }
.wf-table-name { font-weight: 600; color: #111827; }
.wf-table-sub  { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.wf-table-val  { font-weight: 700; color: #111827; }

/* ── Search / Filters ────────────────────────────────────── */
.wf-search-wrap { position: relative; flex: 1; min-width: 200px; }
.wf-search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 13px; }
.wf-search { width: 100%; padding: 9px 12px 9px 34px; border: 1.5px solid var(--wf-border); border-radius: 9px; font-size: 13px; outline: none; background: #fff; box-sizing: border-box; }
.wf-search:focus { border-color: var(--wf-purple); }
.wf-filter-sel { padding: 9px 12px; border: 1.5px solid var(--wf-border); border-radius: 9px; font-size: 13px; color: #374151; background: #fff; cursor: pointer; outline: none; }
.wf-filter-sel:focus { border-color: var(--wf-purple); }

/* ── Numbers ─────────────────────────────────────────────── */
.wf-num-green  { color: #059669 !important; }
.wf-num-amber  { color: #d97706 !important; }
.wf-num-red    { color: #ef4444 !important; }

/* ── Lifecycle Banner ────────────────────────────────────── */
.wf-lifecycle-banner {
  background: linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);
  border-radius: var(--wf-radius); padding: 20px 24px; margin-bottom: 24px; color: #fff;
}
.wf-lifecycle-title { font-size: 13px; font-weight: 700; opacity: .7; margin-bottom: 14px; letter-spacing: .5px; text-transform: uppercase; }
.wf-lifecycle-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wf-lc-step  { display: flex; align-items: center; gap: 8px; }
.wf-lc-num   { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wf-lc-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.wf-lc-arrow { color: rgba(255,255,255,.4); font-size: 11px; padding: 0 4px; }

/* ── Command Center Grid ─────────────────────────────────── */
.wf-cmd-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media(max-width:900px){ .wf-cmd-grid { grid-template-columns: 1fr; } }
.wf-scroll-300 { max-height: 320px; overflow-y: auto; }

/* ── Pipeline Funnel ─────────────────────────────────────── */
.wf-funnel-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; border-radius: 6px; transition: background .15s; }
.wf-funnel-row:hover { background: #f9fafb; }
.wf-funnel-stage { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.wf-funnel-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wf-funnel-label { font-size: 13px; color: #374151; font-weight: 500; }
.wf-funnel-bar-wrap { flex: 1; height: 20px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.wf-funnel-bar { height: 100%; border-radius: 6px; transition: width .4s; min-width: 8px; }
.wf-funnel-count { font-size: 13px; font-weight: 700; color: #111827; min-width: 24px; text-align: right; }
.wf-funnel-val   { font-size: 12px; color: #6b7280; min-width: 80px; text-align: right; }
.wf-funnel-summary { border-top: 1px solid #f3f4f6; margin-top: 8px; padding-top: 8px; }
.wf-funnel-closed .wf-funnel-label { font-weight: 600; }

/* ── Activity Feed ───────────────────────────────────────── */
.wf-activity-feed { list-style: none; padding: 0; margin: 0; }
.wf-act-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.wf-act-item:last-child { border-bottom: none; }
.wf-act-dot  { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.wf-act-body { flex: 1; min-width: 0; }
.wf-act-title{ font-size: 13px; color: #374151; font-weight: 500; line-height: 1.4; }
.wf-act-sub  { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.wf-act-time { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* ── Action Required Cards ───────────────────────────────── */
.wf-action-items-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 12px; }
.wf-action-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid; }
.wf-action-amber { background: #fffbeb; border-color: #fde68a; }
.wf-action-blue  { background: #eff6ff; border-color: #bfdbfe; }
.wf-action-green { background: #f0fdf4; border-color: #bbf7d0; }
.wf-action-purple{ background: #faf5ff; border-color: #ddd6fe; }
.wf-action-icon  { width: 36px; height: 36px; border-radius: 8px; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; color: #6b7280; }
.wf-action-body  { flex: 1; min-width: 0; }
.wf-action-title { font-size: 13px; font-weight: 700; color: #111827; }
.wf-action-sub   { font-size: 12px; color: #374151; margin-top: 2px; }
.wf-action-meta  { font-size: 11px; color: #9ca3af; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ── Mini Stats ──────────────────────────────────────────── */
.wf-mini-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.wf-mini-stat  { text-align: center; padding: 10px 8px; background: #f9fafb; border-radius: 8px; }
.wf-mini-num   { font-size: 20px; font-weight: 800; color: #111827; }
.wf-mini-lbl   { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* ── Kanban Board ────────────────────────────────────────── */
.wf-kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; min-height: 500px; }
.wf-kanban-col { flex-shrink: 0; width: 240px; display: flex; flex-direction: column; gap: 10px; }
.wf-kanban-header { padding: 12px 14px 10px; background: #fff; border-radius: 10px; border: 1px solid var(--wf-border); }
.wf-kanban-stage-name { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.wf-kanban-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.wf-kanban-count { font-size: 11px; font-weight: 700; background: #f3f4f6; color: #374151; padding: 2px 7px; border-radius: 10px; }
.wf-kanban-val   { font-size: 11px; color: #9ca3af; }
.wf-kanban-cards { display: flex; flex-direction: column; gap: 10px; }
.wf-kanban-card  { background: #fff; border: 1px solid var(--wf-border); border-radius: 10px; padding: 13px 14px; cursor: pointer; transition: all .2s; box-shadow: var(--wf-shadow); }
.wf-kanban-card:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-md); border-color: var(--wf-purple); }
.wf-kc-company { font-size: 13px; font-weight: 700; color: #111827; }
.wf-kc-contact { font-size: 11px; color: #6b7280; margin-top: 3px; }
.wf-kc-meta    { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.wf-kc-value   { font-size: 12px; font-weight: 700; color: #059669; }
.wf-kc-industry{ font-size: 10px; color: #9ca3af; }
.wf-kc-footer  { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.wf-kc-age     { font-size: 11px; color: #9ca3af; flex: 1; }
.wf-kc-icon    { font-size: 12px; }
.wf-kanban-empty { font-size: 12px; color: #d1d5db; text-align: center; padding: 20px 0; }

/* ── Workflow Icons in Table ─────────────────────────────── */
.wf-workflow-icons { display: flex; gap: 6px; }
.wf-wi     { font-size: 14px; }
.wf-wi-on  { color: #10b981; }
.wf-wi-off { color: #d1d5db; }

/* ── Lead Detail Hero ────────────────────────────────────── */
.wf-detail-hero { border-radius: var(--wf-radius); padding: 28px 32px; color: #fff; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.wf-detail-company { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.wf-detail-contact { font-size: 14px; opacity: .85; margin-bottom: 12px; }
.wf-detail-tags    { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-detail-hero-right { text-align: right; }
.wf-detail-value    { font-size: 28px; font-weight: 900; }
.wf-detail-value-lbl{ font-size: 12px; opacity: .7; margin-bottom: 14px; }
.wf-detail-actions  { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Lifecycle Progress ──────────────────────────────────── */
.wf-lifecycle-progress { display: flex; align-items: center; background: #fff; border: 1px solid var(--wf-border); border-radius: var(--wf-radius); padding: 16px 24px; margin-bottom: 20px; overflow-x: auto; }
.wf-lcp-step   { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.wf-lcp-circle { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .3s; }
.wf-lcp-label  { font-size: 11px; font-weight: 600; color: #9ca3af; white-space: nowrap; }
.wf-lcp-step.done .wf-lcp-circle { background: #d1fae5; color: #059669; }
.wf-lcp-step.done .wf-lcp-label  { color: #059669; }
.wf-lcp-step.current .wf-lcp-circle { background: var(--wf-purple); color: #fff; box-shadow: 0 0 0 4px var(--wf-purple-l); }
.wf-lcp-step.current .wf-lcp-label  { color: var(--wf-purple); font-weight: 700; }
.wf-lcp-line   { flex: 1; height: 2px; background: #e5e7eb; min-width: 24px; margin: 0 4px; margin-bottom: 16px; }
.wf-lcp-line.done { background: #10b981; }

/* ── Tabs ────────────────────────────────────────────────── */
.wf-tabs { display: flex; gap: 2px; background: #f3f4f6; border-radius: 10px; padding: 4px; margin-bottom: 20px; flex-wrap: wrap; width: fit-content; }
.wf-tab  { padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer; transition: all .2s; white-space: nowrap; border: none; background: transparent; }
.wf-tab.active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.wf-tab:hover:not(.active) { color: #374151; }

/* ── Info Grid ───────────────────────────────────────────── */
.wf-info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 14px; }
.wf-info-item label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; font-weight: 600; }
.wf-info-item .val  { font-size: 14px; font-weight: 600; color: #111827; margin-top: 4px; }

/* ── Stage Grid ──────────────────────────────────────────── */
.wf-stage-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 8px; }
.wf-stage-btn  { padding: 9px 12px; border: 1.5px solid var(--wf-border); border-radius: 8px; font-size: 12px; font-weight: 600; color: #374151; background: #fff; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 8px; }
.wf-stage-btn:hover { border-color: var(--wf-purple); color: var(--wf-purple); }
.wf-stage-btn.active { font-size: 13px; }

/* ── Workflow Connections ────────────────────────────────── */
.wf-connections { display: flex; flex-direction: column; gap: 14px; }
.wf-conn-item   { display: flex; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--wf-border); background: #fff; }
.wf-conn-done   { border-color: #bbf7d0; background: #f0fdf4; }
.wf-conn-active { border-color: #bfdbfe; background: #eff6ff; }
.wf-conn-pending{ opacity: .7; }
.wf-conn-icon   { width: 36px; height: 36px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #6b7280; flex-shrink: 0; }
.wf-conn-done .wf-conn-icon  { background: #d1fae5; color: #059669; }
.wf-conn-active .wf-conn-icon{ background: #dbeafe; color: #2563eb; }
.wf-conn-label  { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.wf-conn-detail { font-size: 13px; color: #374151; margin-bottom: 4px; }
.wf-conn-meta   { font-size: 12px; color: #9ca3af; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wf-conn-empty  { font-size: 12px; color: #9ca3af; margin-bottom: 8px; font-style: italic; }

/* ── Proposal Preview ────────────────────────────────────── */
.wf-proposal-preview { border: 1.5px solid var(--wf-border); border-radius: 10px; overflow: hidden; }
.wf-pp-cover { background: linear-gradient(135deg,#1e1b4b,#4c1d95); color: #fff; padding: 24px; text-align: center; }
.wf-pp-logo  { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; margin: 0 auto 12px; }
.wf-pp-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.wf-pp-client{ font-size: 12px; opacity: .7; margin-bottom: 4px; }
.wf-pp-contact{ font-size: 12px; opacity: .7; }
.wf-pp-value { font-size: 14px; font-weight: 800; margin-top: 8px; color: #a7f3d0; }
.wf-pp-date  { font-size: 11px; opacity: .5; margin-top: 6px; }
.wf-pp-pages { padding: 12px; }
.wf-pp-page  { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 12px; color: #374151; }
.wf-pp-page:hover { background: #f9fafb; }
.wf-pp-page-num  { width: 20px; height: 20px; background: #f3f4f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #6b7280; flex-shrink: 0; }
.wf-pp-page-name { flex: 1; font-weight: 500; }

/* ── Signer Row ──────────────────────────────────────────── */
.wf-signer-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f9fafb; border-radius: 8px; border: 1px solid var(--wf-border); margin-bottom: 8px; flex-wrap: wrap; }
.wf-signer-avatar { width: 34px; height: 34px; border-radius: 50%; background: #6366f1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wf-signer-info   { flex: 1; min-width: 0; }
.wf-signer-name   { font-size: 13px; font-weight: 600; color: #111827; }
.wf-signer-meta   { font-size: 11px; color: #9ca3af; }
.wf-signer-date   { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* ── Audit Log ───────────────────────────────────────────── */
.wf-audit-log { position: relative; }
.wf-audit-entry { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.wf-audit-dot   { width: 10px; height: 10px; border-radius: 50%; background: #6366f1; flex-shrink: 0; margin-top: 5px; }
.wf-audit-content{ flex: 1; }
.wf-audit-event  { font-size: 13px; font-weight: 600; color: #111827; }
.wf-audit-meta   { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #9ca3af; margin-top: 3px; }
.wf-audit-note   { font-size: 12px; color: #6b7280; margin-top: 4px; background: #f9fafb; padding: 6px 10px; border-radius: 6px; }

/* ── Timeline ────────────────────────────────────────────── */
.wf-timeline { display: flex; flex-direction: column; gap: 0; }
.wf-tl-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.wf-tl-item:last-child { border-bottom: none; }
.wf-tl-dot   { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.wf-tl-body  { flex: 1; }
.wf-tl-title { font-size: 13px; font-weight: 500; color: #374151; line-height: 1.4; }
.wf-tl-meta  { display: flex; gap: 8px; align-items: center; margin-top: 5px; flex-wrap: wrap; }

/* ── Automation Grid ─────────────────────────────────────── */
.wf-automations-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 16px; }
.wf-automation-card  { background: #fff; border: 1.5px solid var(--wf-border); border-radius: var(--wf-radius); padding: 16px; }
.wf-auto-active  { border-color: #bbf7d0; }
.wf-auto-inactive{ opacity: .7; }
.wf-auto-header  { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.wf-auto-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.wf-auto-arrow   { text-align: center; color: #9ca3af; font-size: 13px; margin: 6px 0; }
.wf-auto-condition{ background: #fef3c7; color: #92400e; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.wf-auto-action  { background: #d1fae5; color: #065f46; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.wf-auto-toggle  { display: flex; align-items: center; gap: 6px; }
.wf-toggle { width: 36px; height: 20px; background: #d1d5db; border-radius: 10px; cursor: pointer; position: relative; transition: background .2s; }
.wf-toggle-on    { background: #10b981; }
.wf-toggle-thumb { width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.wf-toggle-on .wf-toggle-thumb { left: 18px; }

/* ── Signature Flow ──────────────────────────────────────── */
.wf-sig-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.wf-sf-step  { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.wf-sf-num   { width: 28px; height: 28px; border-radius: 50%; background: var(--wf-purple-l); color: var(--wf-purple); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.wf-sf-label { font-size: 11px; font-weight: 600; color: #374151; text-align: center; max-width: 80px; }
.wf-sf-arrow { color: #9ca3af; font-size: 12px; padding: 0 4px; margin-bottom: 16px; }
.wf-sig-features { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.wf-sig-feature  { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #374151; padding: 12px; background: #f9fafb; border-radius: 8px; }

/* ── Account Cards ───────────────────────────────────────── */
.wf-account-card { background: #fff; border: 1px solid var(--wf-border); border-radius: var(--wf-radius); box-shadow: var(--wf-shadow); overflow: hidden; }
.wf-ac-header { padding: 18px 24px; background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-bottom: 1px solid var(--wf-border); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wf-ac-company { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.wf-ac-meta    { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-ac-mrr     { font-size: 24px; font-weight: 800; color: #059669; }
.wf-ac-mrr span{ font-size: 14px; }
.wf-ac-arr     { font-size: 12px; color: #6b7280; margin-top: 4px; }
.wf-ac-body    { padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.wf-ac-col     { display: flex; flex-direction: column; gap: 6px; }
.wf-ac-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; font-weight: 600; margin-bottom: 4px; }
.wf-ac-contact { font-size: 14px; font-weight: 600; color: #111827; }
.wf-ac-contact-meta { font-size: 12px; color: #6b7280; }
.wf-ac-footer  { padding: 14px 24px; border-top: 1px solid var(--wf-border); background: #fafafa; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.wf-ac-locations { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-ac-loc     { font-size: 11px; color: #374151; background: #f3f4f6; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }

/* ── Launch Tasks ────────────────────────────────────────── */
.wf-launch-tasks { display: flex; flex-direction: column; gap: 0; max-height: 480px; overflow-y: auto; }
.wf-lt-group     { margin-bottom: 12px; }
.wf-lt-group-header { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 8px 12px; background: #f9fafb; border-radius: 6px; margin-bottom: 6px; }
.wf-lt-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #9ca3af; }
.wf-lt-task  { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 12px; color: #374151; border-bottom: 1px solid #f9fafb; }
.wf-lt-task:hover { background: #f9fafb; }
.wf-lt-priority { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wf-lt-high  { background: #ef4444; }
.wf-lt-med   { background: #f59e0b; }
.wf-lt-title { flex: 1; }
.wf-lt-due   { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.wf-launch-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; flex-wrap: wrap; }
.wf-launch-item:last-child { border-bottom: none; }
.wf-li-company { font-size: 14px; font-weight: 600; color: #111827; flex: 1; }
.wf-li-value   { font-size: 13px; font-weight: 700; color: #6b7280; }
.wf-li-actions { display: flex; gap: 6px; }

/* ── Executive Funnel ────────────────────────────────────── */
.wf-exec-funnel-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f9fafb; }
.wf-exec-funnel-row:last-child { border-bottom: none; }
.wf-ef-label { min-width: 140px; font-size: 13px; font-weight: 500; color: #374151; }
.wf-ef-bar-wrap { flex: 1; height: 24px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.wf-ef-bar   { height: 100%; border-radius: 6px; transition: width .6s; min-width: 4px; }
.wf-ef-count { font-size: 14px; font-weight: 700; color: #111827; min-width: 28px; text-align: right; }
.wf-ef-val   { font-size: 13px; color: #6b7280; min-width: 90px; text-align: right; }
.wf-ef-pct   { font-size: 13px; font-weight: 700; min-width: 42px; text-align: right; }

/* ── Bottleneck Alerts ───────────────────────────────────── */
.wf-bottleneck-list { display: flex; flex-direction: column; gap: 10px; }
.wf-bn-item  { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.wf-bn-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.wf-bn-red   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.wf-bn-blue  { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.wf-bn-item i{ flex-shrink: 0; margin-top: 2px; }
.wf-bn-item strong { display: block; font-size: 13px; margin-bottom: 3px; }

/* ── Automation Preview ──────────────────────────────────── */
.wf-automation-preview { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #065f46; display: flex; align-items: center; gap: 10px; margin-top: 16px; }

/* ── Section / Progress ──────────────────────────────────── */
.wf-sections-list { display: flex; flex-direction: column; gap: 8px; }
.wf-section-row   { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fafafa; border-radius: 8px; border: 1px solid var(--wf-border); font-size: 13px; }
.wf-section-num   { width: 22px; height: 22px; border-radius: 50%; background: var(--wf-purple-l); color: var(--wf-purple); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wf-section-name  { flex: 1; font-weight: 500; color: #374151; }
.wf-prog-bar-wrap { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.wf-prog-bar      { height: 100%; border-radius: 4px; transition: width .4s; }

/* ── Contact Card ────────────────────────────────────────── */
.wf-contact-card { background: #f9fafb; border-radius: 10px; padding: 14px; border: 1px solid var(--wf-border); }
.wf-cc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; font-weight: 600; margin-bottom: 6px; }
.wf-cc-name  { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.wf-cc-title { font-size: 12px; color: #6b7280; margin-bottom: 3px; }
.wf-cc-meta  { font-size: 12px; color: #6b7280; }

/* ── New Lead Form ───────────────────────────────────────── */
.wf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .wf-form-grid { grid-template-columns: 1fr; } }
.wf-field label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.wf-input,.wf-select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--wf-border); border-radius: 8px; font-size: 13px; color: #111827; background: #fff; outline: none; transition: border-color .2s; box-sizing: border-box; }
.wf-input:focus,.wf-select:focus { border-color: var(--wf-purple); }
.wf-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--wf-border); border-radius: 8px; font-size: 13px; color: #111827; background: #fff; outline: none; resize: vertical; min-height: 80px; box-sizing: border-box; }
.wf-textarea:focus { border-color: var(--wf-purple); }
.wf-service-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 8px; margin-top: 8px; }
.wf-service-tile-lbl { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--wf-border); border-radius: 8px; font-size: 12px; color: #374151; cursor: pointer; transition: all .2s; }
.wf-service-tile-lbl:hover { border-color: var(--wf-purple); color: var(--wf-purple); }

/* ── Alerts ──────────────────────────────────────────────── */
.wf-alert { padding: 12px 16px; border-radius: 9px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
.wf-alert-success{ background: #d1fae5; color: #065f46; border: 1px solid #bbf7d0; }
.wf-alert-info   { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.wf-alert-warn   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.wf-alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Empty State ─────────────────────────────────────────── */
.wf-empty { text-align: center; padding: 56px 24px; color: #9ca3af; }
.wf-empty-icon { font-size: 36px; margin-bottom: 14px; opacity: .5; }
.wf-empty h3 { font-size: 16px; font-weight: 700; color: #374151; margin: 0 0 8px; }
.wf-empty p  { font-size: 13px; margin: 0 0 16px; }

/* ── Mobile ──────────────────────────────────────────────── */
@media(max-width:640px){
  .wf-page { padding: 16px; }
  .wf-detail-hero { padding: 20px; }
  .wf-lifecycle-progress { padding: 12px 16px; }
  .wf-tabs { gap: 1px; }
  .wf-tab  { padding: 7px 12px; font-size: 12px; }
  .wf-kpi-strip { grid-template-columns: 1fr 1fr; }
  .wf-lifecycle-banner { display: none; }
  .wf-kanban-col { width: 200px; }
  .wf-ac-body { grid-template-columns: 1fr; }
}

/* ============================================================
   SIGNATURE MODULE — sig-* styles
   ============================================================ */

/* Page shell */
.sig-page { padding: 24px; max-width: 1400px; margin: 0 auto; }
.sig-page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:28px; gap:16px; flex-wrap:wrap; }
.sig-page-header-left { flex:1; }
.sig-page-title { font-size:24px; font-weight:800; color:#111827; margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.sig-page-sub { color:#6b7280; font-size:13px; margin:0; }
.sig-page-header-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Breadcrumb */
.sig-breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:20px; font-size:13px; color:#6b7280; }
.sig-breadcrumb-sep { color:#d1d5db; }

/* KPI Strip */
.sig-kpi-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:28px; }
.sig-kpi { background:#fff; border-radius:14px; padding:18px; display:flex; align-items:center; gap:14px; box-shadow:0 1px 4px rgba(0,0,0,.06); border:1px solid #f0f0f0; }
.sig-kpi-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.sig-kpi-num { font-size:24px; font-weight:800; color:#111827; line-height:1; }
.sig-kpi-lbl { font-size:12px; color:#6b7280; margin-top:2px; font-weight:500; }
.sig-kpi-sub { font-size:11px; color:#9ca3af; margin-top:1px; }

/* Alert Banner */
.sig-alert-banner { background:#fef3c7; border:1px solid #fde68a; border-radius:12px; padding:14px 18px; display:flex; align-items:center; gap:12px; font-size:13px; color:#92400e; margin-bottom:24px; flex-wrap:wrap; }
.sig-alert-banner > i { font-size:18px; color:#d97706; flex-shrink:0; }
.sig-alert-item { background:#fff7ed; border:1px solid #fed7aa; border-radius:6px; padding:3px 10px; color:#d97706; cursor:pointer; font-weight:600; margin:2px 4px; display:inline-block; }
.sig-alert-item:hover { background:#fff; }

/* Cards */
.sig-card { background:#fff; border-radius:16px; border:1px solid #e5e7eb; box-shadow:0 2px 8px rgba(0,0,0,.05); margin-bottom:20px; overflow:hidden; }
.sig-card-header { padding:16px 20px; border-bottom:1px solid #f3f4f6; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.sig-card-title { font-size:15px; font-weight:700; color:#111827; display:flex; align-items:center; gap:8px; }
.sig-card-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sig-card-body { padding:20px; }

/* Buttons */
.sig-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; border:none; transition:all .15s; white-space:nowrap; }
.sig-btn-primary { background:linear-gradient(135deg,#7c3aed,#6366f1); color:#fff; }
.sig-btn-primary:hover { opacity:.9; transform:translateY(-1px); }
.sig-btn-secondary { background:#f3f4f6; color:#374151; }
.sig-btn-secondary:hover { background:#e5e7eb; }
.sig-btn-outline { background:#fff; color:#374151; border:1.5px solid #e5e7eb; }
.sig-btn-outline:hover { border-color:#7c3aed; color:#7c3aed; }
.sig-btn-ghost { background:transparent; color:#6b7280; }
.sig-btn-ghost:hover { background:#f3f4f6; }
.sig-btn-sm { padding:5px 11px; font-size:12px; border-radius:6px; }
.sig-btn-lg { padding:13px 24px; font-size:15px; border-radius:10px; }

/* Badges */
.sig-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:.03em; }

/* Tables */
.sig-table-wrap { overflow-x:auto; }
.sig-table { width:100%; border-collapse:collapse; font-size:13px; }
.sig-table th { padding:10px 14px; background:#f9fafb; color:#6b7280; font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.05em; text-align:left; border-bottom:1px solid #e5e7eb; }
.sig-table td { padding:13px 14px; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
.sig-table tr:last-child td { border-bottom:none; }
.sig-table tr:hover td { background:#fafafa; }
.sig-table-name { font-weight:600; color:#111827; cursor:pointer; }
.sig-table-name:hover { color:#7c3aed; }
.sig-table-sub { font-size:11px; color:#9ca3af; margin-top:2px; }
.sig-doc-row { transition:background .1s; }

/* Search / Select */
.sig-search { border:1.5px solid #e5e7eb; border-radius:8px; padding:7px 12px; font-size:13px; outline:none; min-width:200px; }
.sig-search:focus { border-color:#7c3aed; box-shadow:0 0 0 3px #7c3aed18; }
.sig-select-sm { border:1.5px solid #e5e7eb; border-radius:8px; padding:7px 12px; font-size:13px; outline:none; cursor:pointer; }
.sig-select-sm:focus { border-color:#7c3aed; }

/* "How It Works" Steps */
.sig-how-steps { display:flex; align-items:flex-start; gap:4px; flex-wrap:wrap; margin-bottom:20px; }
.sig-how-step { display:flex; flex-direction:column; align-items:center; text-align:center; max-width:120px; min-width:90px; }
.sig-how-icon { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:6px; }
.sig-how-num { font-size:10px; font-weight:700; color:#9ca3af; margin-bottom:3px; }
.sig-how-title { font-size:12px; font-weight:700; color:#111827; margin-bottom:4px; line-height:1.3; }
.sig-how-desc { font-size:10px; color:#9ca3af; line-height:1.4; }
.sig-how-arrow { color:#d1d5db; font-size:14px; padding-top:20px; }

/* Integration Grid */
.sig-integrations-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.sig-integration { background:#fafafa; border-radius:12px; border:1.5px solid #e5e7eb; padding:16px; }
.sig-integration-active { border-color:#10b981; background:#f0fdf4; }
.sig-integration-name { font-weight:700; color:#111827; font-size:14px; margin-bottom:6px; }
.sig-integration-desc { font-size:12px; color:#6b7280; margin-bottom:10px; line-height:1.4; }
.sig-integration-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }

/* Prepare Layout */
.sig-prepare-layout { display:grid; grid-template-columns:1fr 400px; gap:20px; align-items:start; }
@media (max-width:900px) { .sig-prepare-layout { grid-template-columns:1fr; } }
.sig-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .sig-form-grid { grid-template-columns:1fr; } }
.sig-field { display:flex; flex-direction:column; gap:5px; }
.sig-field label { font-size:12px; font-weight:600; color:#374151; }
.sig-input { border:1.5px solid #e5e7eb; border-radius:8px; padding:9px 12px; font-size:13px; outline:none; transition:border .15s; font-family:inherit; }
.sig-input:focus { border-color:#7c3aed; box-shadow:0 0 0 3px #7c3aed18; }
.sig-select { border:1.5px solid #e5e7eb; border-radius:8px; padding:9px 12px; font-size:13px; outline:none; cursor:pointer; font-family:inherit; }
.sig-select:focus { border-color:#7c3aed; }
.sig-textarea { border:1.5px solid #e5e7eb; border-radius:8px; padding:9px 12px; font-size:13px; outline:none; resize:vertical; min-height:80px; font-family:inherit; }
.sig-textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 3px #7c3aed18; }

/* Signer Rows */
.sig-signer-row { display:grid; grid-template-columns:28px 1fr 1fr 160px auto; gap:10px; align-items:end; margin-bottom:12px; padding:12px; background:#f9fafb; border-radius:10px; border:1px solid #e5e7eb; }
@media (max-width:700px) { .sig-signer-row { grid-template-columns:1fr 1fr; } .sig-signer-num { display:none; } }
.sig-signer-num { width:28px; height:28px; border-radius:50%; background:#ede9fe; color:#7c3aed; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Drop Zone */
.sig-doc-source-tabs { display:flex; gap:6px; margin-bottom:16px; background:#f3f4f6; border-radius:8px; padding:4px; }
.sig-tab-btn { padding:6px 14px; border-radius:6px; border:none; background:transparent; font-size:13px; font-weight:500; cursor:pointer; color:#6b7280; transition:all .15s; }
.sig-tab-btn.sig-tab-active { background:#fff; color:#7c3aed; font-weight:700; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.sig-drop-zone { border:2px dashed #c4b5fd; border-radius:12px; padding:40px 20px; text-align:center; cursor:pointer; transition:all .2s; color:#6b7280; }
.sig-drop-zone:hover { border-color:#7c3aed; background:#faf7ff; }

/* Field Palette */
.sig-field-palette { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.sig-field-chip { display:flex; align-items:center; gap:6px; padding:6px 12px; border-radius:20px; border:1.5px solid; font-size:12px; font-weight:600; cursor:grab; background:#fff; transition:all .15s; }
.sig-field-chip:hover { transform:scale(1.05); box-shadow:0 2px 8px rgba(0,0,0,.12); }

/* Document Preview */
.sig-doc-preview-box { border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.sig-doc-preview-header { background:#f3f4f6; padding:10px 14px; font-size:12px; font-weight:600; color:#374151; display:flex; align-items:center; border-bottom:1px solid #e5e7eb; }
.sig-doc-preview-body { padding:16px; background:#fafafa; min-height:240px; }
.sig-preview-line { height:8px; border-radius:4px; background:#e5e7eb; margin-bottom:8px; }
.sig-preview-line-wide { width:100%; }
.sig-preview-line-medium { width:75%; }
.sig-preview-line-short { width:50%; }
.sig-preview-field-row { display:flex; gap:12px; margin-top:12px; }
.sig-preview-sig-field, .sig-preview-date-field, .sig-preview-init-field { flex:1; border:2px dashed #c4b5fd; border-radius:8px; padding:10px; font-size:11px; color:#7c3aed; display:flex; align-items:center; gap:6px; font-weight:600; }

/* Document Viewer */
.sig-doc-hero { background:#fff; border-radius:16px; border:1px solid #e5e7eb; padding:20px 24px; margin-bottom:20px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; box-shadow:0 2px 8px rgba(0,0,0,.05); }
.sig-doc-hero-left { display:flex; align-items:flex-start; gap:16px; flex:1; }
.sig-doc-icon { width:52px; height:52px; background:linear-gradient(135deg,#7c3aed,#6366f1); border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; flex-shrink:0; }
.sig-doc-hero-title { font-size:20px; font-weight:800; color:#111827; margin-bottom:6px; }
.sig-doc-hero-meta { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:#6b7280; }
.sig-doc-hero-meta span { display:flex; align-items:center; gap:5px; }
.sig-doc-hero-right { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* Tabs */
.sig-tabs { display:flex; gap:2px; background:#f3f4f6; border-radius:10px; padding:4px; margin-bottom:20px; flex-wrap:wrap; }
.sig-tab { padding:8px 18px; border-radius:8px; border:none; background:transparent; font-size:13px; font-weight:500; cursor:pointer; color:#6b7280; transition:all .15s; }
.sig-tab.sig-tab-active { background:#fff; color:#7c3aed; font-weight:700; box-shadow:0 1px 4px rgba(0,0,0,.08); }

/* View Grid */
.sig-view-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:start; }
@media (max-width:900px) { .sig-view-grid { grid-template-columns:1fr; } }

/* PDF Viewer */
.sig-pdf-viewer { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.sig-pdf-toolbar { background:#f9fafb; padding:10px 14px; border-bottom:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-between; font-size:13px; }
.sig-pdf-name { display:flex; align-items:center; gap:6px; font-weight:600; color:#374151; }
.sig-pdf-page { padding:24px; min-height:500px; background:#fff; }
.sig-pdf-content { max-width:680px; margin:0 auto; }
.sig-pdf-letterhead { border-bottom:2px solid #e5e7eb; padding-bottom:20px; margin-bottom:20px; }
.sig-pdf-title { font-size:20px; font-weight:800; color:#111827; margin-bottom:6px; }
.sig-pdf-subtitle { font-size:13px; color:#6b7280; line-height:1.5; }
.sig-pdf-body-text p { font-size:13px; line-height:1.7; color:#374151; margin-bottom:12px; }
.sig-pdf-sig-section { border-top:2px solid #e5e7eb; margin-top:40px; padding-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.sig-pdf-sig-block { padding:16px; border:1.5px solid #e5e7eb; border-radius:10px; }
.sig-pdf-sig-label { font-size:10px; font-weight:700; color:#9ca3af; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.sig-pdf-sig-done { font-size:20px; margin-bottom:8px; }
.sig-pdf-sig-pending { font-size:13px; color:#9ca3af; font-style:italic; margin-bottom:8px; }
.sig-pdf-sig-meta { font-size:11px; color:#6b7280; margin-bottom:6px; }
.sig-pdf-sig-name { font-size:13px; font-weight:600; color:#374151; border-top:1px solid #e5e7eb; padding-top:6px; margin-top:6px; }
.sig-pdf-sig-title { font-size:11px; color:#9ca3af; }

/* Progress Circle */
.sig-progress-circle-wrap { text-align:center; margin-bottom:20px; }
.sig-progress-circle { width:100px; height:100px; border-radius:50%; background:conic-gradient(#10b981 calc(var(--pct)*1%),#f0fdf4 0); display:inline-flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 0 0 8px #fff; position:relative; }
.sig-progress-num { font-size:20px; font-weight:800; color:#111827; }
.sig-progress-lbl { font-size:10px; color:#6b7280; }
.sig-signers-list { display:flex; flex-direction:column; gap:10px; }
.sig-signer-status { display:flex; align-items:center; gap:12px; padding:10px; background:#f9fafb; border-radius:10px; }
.sig-signer-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.sig-signer-info { flex:1; min-width:0; }
.sig-signer-name { font-size:13px; font-weight:600; color:#111827; }
.sig-signer-role { font-size:11px; color:#9ca3af; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Timeline */
.sig-timeline { display:flex; flex-direction:column; gap:12px; }
.sig-timeline-item { display:flex; align-items:flex-start; gap:12px; }
.sig-timeline-icon { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.sig-timeline-action { font-size:13px; font-weight:600; color:#111827; }
.sig-timeline-meta { font-size:11px; color:#9ca3af; margin-top:1px; }

/* Signer Detail */
.sig-signer-detail-card { border:1.5px solid #e5e7eb; border-radius:12px; padding:16px; margin-bottom:14px; }
.sig-signer-avatar-lg { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; flex-shrink:0; }
.sig-signer-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sig-detail-lbl { font-size:11px; color:#9ca3af; font-weight:600; text-transform:uppercase; letter-spacing:.04em; margin-right:8px; }
.sig-detail-val { font-size:13px; color:#374151; font-weight:500; }

/* Audit Table */
.sig-audit-hash { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:10px 14px; font-size:12px; color:#166534; display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.sig-audit-table-wrap { overflow-x:auto; }
.sig-audit-table { width:100%; border-collapse:collapse; font-size:12px; }
.sig-audit-table th { padding:8px 12px; background:#f9fafb; color:#6b7280; font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid #e5e7eb; text-align:left; }
.sig-audit-table td { padding:10px 12px; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
.sig-audit-num { background:#ede9fe; color:#7c3aed; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }

/* Certificate */
.sig-certificate { border:2px solid #e5e7eb; border-radius:16px; overflow:hidden; max-width:780px; margin:0 auto; }
.sig-cert-header { background:linear-gradient(135deg,#1e1b4b,#312e81); padding:40px; text-align:center; color:#fff; }
.sig-cert-badge { width:64px; height:64px; border-radius:50%; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-size:28px; color:#fbbf24; margin:20px auto 12px; }
.sig-cert-title { font-size:24px; font-weight:800; margin-bottom:8px; }
.sig-cert-subtitle { color:rgba(255,255,255,.7); font-size:13px; }
.sig-cert-body { padding:30px 40px; border-bottom:1px solid #e5e7eb; }
.sig-cert-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f3f4f6; font-size:13px; }
.sig-cert-row:last-child { border-bottom:none; }
.sig-cert-lbl { font-weight:600; color:#6b7280; }
.sig-cert-val { color:#111827; font-weight:500; }
.sig-cert-signers { padding:24px 40px; border-bottom:1px solid #e5e7eb; }
.sig-cert-signer { margin-bottom:20px; }
.sig-cert-footer { background:#f9fafb; padding:16px 40px; font-size:12px; color:#6b7280; display:flex; align-items:center; }

/* Client Signing Page */
.sig-signing-shell { min-height:100vh; background:#f8fafc; font-family:'Inter',sans-serif; }
.sig-signing-header { background:#fff; border-bottom:1px solid #e5e7eb; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:100; }
.sig-signing-body { display:grid; grid-template-columns:1fr 340px; gap:0; max-width:1100px; margin:0 auto; padding:24px; }
@media (max-width:768px) { .sig-signing-body { grid-template-columns:1fr; } }
.sig-signing-doc-panel { background:#fff; border-radius:14px; border:1px solid #e5e7eb; overflow:hidden; margin-right:20px; }
.sig-signing-doc-header { background:#f9fafb; padding:14px 20px; border-bottom:1px solid #e5e7eb; font-weight:600; font-size:13px; color:#374151; display:flex; align-items:center; }
.sig-signing-doc-content { padding:32px 40px; max-height:calc(100vh - 200px); overflow-y:auto; }
.sig-signing-fields { margin-top:32px; border-top:2px dashed #e5e7eb; padding-top:24px; }
.sig-signing-field-header { font-weight:700; color:#374151; font-size:14px; margin-bottom:20px; }
.sig-field-to-sign { margin-bottom:20px; }
.sig-field-label { font-size:13px; font-weight:600; color:#374151; margin-bottom:8px; display:flex; align-items:center; gap:7px; }
.sig-signature-canvas { border:2px dashed #c4b5fd; border-radius:10px; min-height:80px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; padding:16px; text-align:center; }
.sig-signature-canvas:hover { border-color:#7c3aed; background:#faf7ff; }
.sig-signing-sidebar { position:sticky; top:90px; display:flex; flex-direction:column; gap:16px; height:fit-content; }
.sig-signing-info-card, .sig-signing-security-card { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; font-size:13px; }
.sig-signing-security-card { text-align:center; background:#f0fdf4; border-color:#bbf7d0; }
.sig-info-row { display:flex; justify-content:space-between; font-size:12px; padding:5px 0; border-bottom:1px solid #f3f4f6; color:#374151; }
.sig-info-row:last-child { border-bottom:none; }
.sig-info-row span:first-child { color:#9ca3af; }

/* Completion Page */
.sig-complete-wrap { text-align:center; padding:80px 24px; max-width:600px; margin:0 auto; }
.sig-complete-icon { font-size:72px; color:#10b981; margin-bottom:20px; animation:sigBounce .6s ease; }
@keyframes sigBounce { 0%{transform:scale(.5);opacity:0} 70%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
.sig-complete-title { font-size:36px; font-weight:800; color:#111827; margin-bottom:12px; }
.sig-complete-sub { font-size:16px; color:#6b7280; line-height:1.6; margin-bottom:32px; }
.sig-complete-steps { display:flex; flex-direction:column; gap:14px; margin-bottom:32px; text-align:left; }
.sig-complete-step { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px 20px; display:flex; align-items:flex-start; gap:14px; font-size:13px; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.sig-complete-step i { font-size:20px; flex-shrink:0; margin-top:2px; }
.sig-complete-step strong { display:block; margin-bottom:2px; color:#111827; }
.sig-complete-step span { color:#6b7280; }


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Icon Rail + Submenu Panel Layout
   Replaces the old long-scroll sidebar with:
   • Upper .sb-panel  — submenu links for the active module
   • Middle .sidebar-user — user info bar
   • Bottom .sb-rail  — collapsed icon dock, one button per module
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout overrides ─────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* no outer scroll */
}

/* ── Submenu Panel (upper scrollable area) ───────────────────── */
.sb-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.sb-panel-module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--mod-color, #2563eb);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-transform: uppercase;
  flex-shrink: 0;
}
.sb-panel-module-header i {
  font-size: 14px;
  opacity: 0.9;
}

.sb-panel-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.sb-panel-nav::-webkit-scrollbar { width: 3px; }
.sb-panel-nav::-webkit-scrollbar-track { background: transparent; }
.sb-panel-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* Group label inside panel */
.sb-panel-group-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: rgba(255,255,255,0.28);
  padding: 10px 20px 3px;
  text-transform: uppercase;
}

/* Empty state */
.sb-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}
.sb-panel-empty i { font-size: 28px; }

/* ── User bar — slim compact version ─────────────────────────── */
.sidebar-user {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-user .user-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.sidebar-user .user-name  { font-size: 12px; }
.sidebar-user .user-role  { font-size: 10px; }

/* ── Bottom Icon Rail ─────────────────────────────────────────── */
.sb-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  padding: 4px 4px;
  gap: 2px;
}

/* Single rail icon button */
.sb-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 7px 4px 5px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  position: relative;
  color: rgba(255,255,255,0.45);
}
.sb-rail-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}
.sb-rail-btn i {
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
}
.sb-rail-btn span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.15s;
}

/* Active rail button — uses CSS variable set by JS */
.sb-rail-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.sb-rail-btn.active i {
  color: var(--rail-active-color, #2563eb);
  filter: drop-shadow(0 0 6px var(--rail-active-color, #2563eb));
}
.sb-rail-btn.active span {
  color: var(--rail-active-color, #2563eb);
}

/* Active indicator pip above icon */
.sb-rail-btn.active::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--rail-active-color, #2563eb);
  box-shadow: 0 0 6px var(--rail-active-color, #2563eb);
}

/* ── Nav link tweaks inside new panel ────────────────────────── */
.sb-panel-nav .nav-link {
  padding: 9px 20px;
  font-size: 13px;
  border-radius: 0;
}
.sb-panel-nav .nav-link.active {
  border-right: 3px solid #2563eb;
  background: rgba(37,99,235,0.18);
}
.sb-panel-nav .crm-nav-item {
  padding: 9px 20px;
}
