@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@200..800&display=swap');

:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-subtle: #f1f4ee;
  --ink: #182d23;
  --ink-secondary: #52635a;
  --muted: #72837a;
  --line: #e2e8de;
  --line-light: #edf2ea;
  
  --emerald-900: #0f2e22;
  --emerald-800: #143d2e;
  --emerald-700: #1b523e;
  --emerald-600: #236c53;
  --emerald-500: #2f8e6d;
  --emerald-100: #daf1e7;
  --emerald-50: #f0f9f5;

  --amber-700: #8a4e0a;
  --amber-500: #c97a18;
  --amber-100: #faeed9;
  --amber-50: #fdfaf3;

  --blue-700: #1d4ed8;
  --blue-100: #e0eafd;
  
  --red-600: #dc2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(24, 45, 35, 0.04);
  --shadow-md: 0 4px 12px rgba(24, 45, 35, 0.06);
  --shadow-lg: 0 12px 32px rgba(24, 45, 35, 0.08);

  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .brand, .big-money, .metric-val {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 18px;
  background: white;
  z-index: 999;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* Buttons & Chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-subtle); border-color: #cbd8c5; }
.btn.primary {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: white;
}
.btn.primary:hover { background: var(--emerald-700); }
.btn.lg {
  padding: 13px 22px;
  font-size: 15px;
  border-radius: var(--radius-md);
}
.btn.sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn.text-btn {
  border-color: transparent;
  background: transparent;
  color: var(--ink-secondary);
}
.btn.text-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}
.badge.alert { background: #fee2e2; color: #b91c1c; }
.badge.warning { background: var(--amber-100); color: var(--amber-700); }
.badge.info { background: var(--blue-100); color: var(--blue-700); }
.badge.success { background: var(--emerald-100); color: var(--emerald-700); }

/* Provider-first onboarding screen */
.welcome-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.welcome-hero {
  background: linear-gradient(145deg, #123326 0%, #1a4d3a 100%);
  color: white;
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.welcome-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(93, 187, 143, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.brand-lg {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #79e7be;
}
.hero-body { margin: auto 0; max-width: 480px; }
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #a4f4d2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title span { color: #88ebb8; }
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #cde2d8;
  margin-bottom: 32px;
}
.hero-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.hero-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a3c7b8;
  margin-bottom: 10px;
}
.hero-preview-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'Manrope', sans-serif;
}

.welcome-panel {
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}
.connect-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.connect-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.connect-card p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.provider-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.provider-btn:hover {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
  transform: translateY(-1px);
}
.provider-btn svg.arrow {
  margin-left: auto;
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.ms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.ms-grid span:nth-child(1) { background: #f25022; }
.ms-grid span:nth-child(2) { background: #7fba00; }
.ms-grid span:nth-child(3) { background: #00a4ef; }
.ms-grid span:nth-child(4) { background: #ffb900; }
.google-g {
  font-size: 22px;
  font-weight: 800;
  color: #4285f4;
  font-family: Arial, sans-serif;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.auth-guarantee {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Header & Top Bar */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--emerald-900);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Live Discovery Ticker / Banner - Compact Sleek Strip */
.discovery-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 6px 20px;
  font-size: 12.5px;
  transition: all 0.25s ease;
}
.discovery-banner.scanning {
  background: #f0fdf4;
  border-bottom-color: #86efac;
}
.discovery-banner.complete {
  background: #fbfdfa;
  border-bottom-color: var(--line);
}
.banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}
.banner-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
}
.banner-status strong {
  font-weight: 700;
}
.banner-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
}
.progress-bar-track {
  flex: 1;
  height: 5px;
  background: #e2e8de;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--emerald-600);
  transition: width 0.4s ease;
}
.banner-rescan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: white;
  transition: all 0.15s ease;
}
.banner-rescan-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
  border-color: #cbd8c5;
}
  background: var(--emerald-600);
  transition: width 0.4s ease;
}

/* Dashboard Main Layout */
.dashboard-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  flex: 1;
}

/* Compact High-Density Operations KPI Ribbon */
.kpi-ribbon {
  background: linear-gradient(135deg, #113628 0%, #1b4e3a 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kpi-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.kpi-money {
  font-size: 30px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: #ffffff;
  line-height: 1;
}
.kpi-money.pulse-green {
  animation: moneyPulse 0.4s ease-out;
}
.kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93e2bf;
}
.kpi-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c9e0d4;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.kpi-stat-item strong {
  color: white;
  font-weight: 800;
}

/* Master-Detail Operations Layout */
.workspace-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  align-items: start;
  transition: all 0.25s ease;
}
.workspace-layout.has-drawer {
  grid-template-columns: minmax(0, 1fr) 480px;
}
@media (max-width: 1100px) {
  .workspace-layout.has-drawer {
    grid-template-columns: 1fr;
  }
}

/* Slide-Out Inspector Drawer */
.inspector-drawer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 30;
  animation: slideDrawer 0.25s ease;
}
@keyframes slideDrawer {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.drawer-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Card Enhancements: Checkbox, Formula, Quick Actions */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.card-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--emerald-800);
  flex-shrink: 0;
  margin: 0;
}
.card-formula {
  font-size: 11px;
  color: var(--ink-secondary);
  background: #f1f5ee;
  border: 1px solid #dce4d7;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', monospace;
  margin-top: 4px;
  display: inline-block;
  white-space: nowrap;
}
.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Floating Batch Bar */
.batch-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-900);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(15, 35, 25, 0.4);
  z-index: 100;
  animation: slideUpBatch 0.25s ease;
}
@keyframes slideUpBatch {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Project Batch & Collapse Buttons */
.project-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
}
.project-batch-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-700);
  background: #ffffff;
  border: 1px solid var(--emerald-600);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.project-batch-btn:hover {
  background: var(--emerald-50);
}

/* HERO MONEY CARD: Obvious, Tangible, Clean */
.hero-money-card {
  background: linear-gradient(135deg, #113628 0%, #1b4e3a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-money-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 30%, rgba(93, 187, 143, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.money-content {
  position: relative;
  z-index: 1;
}
.money-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93e2bf;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.big-money {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 8px;
  transition: transform 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.big-money.pulse-green {
  animation: moneyPulse 0.4s ease-out;
}
@keyframes moneyPulse {
  0% { transform: scale(1); color: #fff; }
  50% { transform: scale(1.05); color: #9df0cb; text-shadow: 0 0 20px rgba(157, 240, 203, 0.7); }
  100% { transform: scale(1); color: #fff; }
}
.money-live-badge {
  font-size: 13px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
  vertical-align: middle;
}
.money-subtext {
  font-size: 14px;
  color: #c9e0d4;
  max-width: 520px;
  line-height: 1.5;
}
.money-stats {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.stat-pill {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 140px;
}
.stat-pill .num {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: #fff;
  display: block;
}
.stat-pill .lbl {
  font-size: 12px;
  color: #b0d4c3;
  margin-top: 2px;
  display: block;
}

/* Top Sticky Control & Filter Bar */
.controls-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.controls-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.view-tab {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-tab:hover {
  color: var(--ink);
}
.view-tab.active {
  background: white;
  color: var(--emerald-900);
  box-shadow: var(--shadow-sm);
}
.controls-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-secondary);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}
.filter-chip.active {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: white;
}
.filter-chip .count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.filter-chip:not(.active) .count {
  background: #e2e8de;
  color: var(--ink);
}

.search-and-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
}
.search-input-box input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 180px;
  color: var(--ink);
}
.custom-select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  font-weight: 500;
}

/* Project Scope Ledger & Export Suite */
.ledger-header {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ledger-project-select {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ledger-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ledger-metric-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.ledger-metric-pill .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  letter-spacing: 0.04em;
}
.ledger-metric-pill .val {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
}
.ledger-metric-pill.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.ledger-metric-pill.highlight .val {
  color: var(--emerald-800);
}
.export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ledger-table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.scope-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.scope-type-badge.base {
  background: #f1f5ee;
  color: #4b5563;
  border: 1px solid #d1d5db;
}
.scope-type-badge.unbilled {
  background: #ecfdf5;
  color: var(--emerald-800);
  border: 1px solid #86efac;
}
.scope-type-badge.pending {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid #fde68a;
}

/* Attention Section & Cards */
.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-headline h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.items-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

/* Individual Finding Card */
.feed-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}
.feed-card.highlight-new {
  animation: slideInCard 0.45s ease forwards;
  border-left: 4px solid var(--emerald-600);
}
@keyframes slideInCard {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-card:hover {
  border-color: #cbd8c5;
  box-shadow: var(--shadow-md);
}

.card-main { min-width: 0; }
.card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.card-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}
.card-quote-snippet {
  background: #fbfdfa;
  border-left: 3px solid var(--emerald-500);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin: 8px 0 10px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.card-quote-snippet mark {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 170px;
}
.card-money {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: var(--emerald-800);
  text-align: right;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}
.card-money.unpriced {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-700);
  background: var(--amber-50);
  border-color: #fde68a;
}

/* Secondary Section Tabs & Unified Content */
.secondary-section {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.secondary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.secondary-title h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.secondary-title p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  background: white;
  color: var(--emerald-900);
  box-shadow: var(--shadow-sm);
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.project-summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.project-summary-card:hover {
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.psc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.psc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.psc-sub {
  font-size: 12px;
  color: var(--muted);
}
.psc-quote-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  margin-top: 8px;
  display: inline-block;
}
.psc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 12px;
  font-size: 13px;
}
.psc-scope-add {
  font-weight: 800;
  color: var(--emerald-800);
}

/* Secondary Panels (Projects, Learned Rates) */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.panel-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.panel-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-box-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.clean-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clean-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-light);
}

/* Modal Dialog */
dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop {
  background: rgba(15, 35, 25, 0.45);
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}
.dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-subtle);
}

.evidence-quote {
  background: #fdfdfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald-600);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.evidence-quote mark {
  background: #eef6ec;
  color: var(--emerald-800);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
}

.line-breakdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 16px 0;
  font-size: 13px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-light);
}
.breakdown-row.total {
  font-weight: 800;
  background: var(--surface-subtle);
  border-bottom: none;
  font-size: 14px;
}

.draft-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--emerald-900);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--emerald-600);
}

.full {
  width: 100%;
}

.account-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
}

.attention-section {
  margin-bottom: 24px;
}

.workspace-footer {
  border-top: 1px solid var(--line);
  background: white;
  margin-top: 48px;
}

.success-icon {
  color: var(--emerald-600);
}

.inline-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -2px;
}

/* Records Count Badge in Controls Bar */
.records-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.records-badge strong {
  color: var(--emerald-800);
  font-weight: 800;
}

/* Project Feed Sections */
.project-section-block {
  margin-bottom: 24px;
}
.project-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f1f5ee;
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 2px solid var(--emerald-700);
}
.psh-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.psh-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.psh-quote {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.psh-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.psh-total-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-800);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.project-section-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Interactive Estimation Calculator in Modal */
.calc-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  margin: 12px 0;
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-row:last-child {
  border-bottom: none;
}
.calc-row.total-row {
  background: var(--surface-subtle);
  font-weight: 800;
  font-size: 14px;
}
.calc-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.calc-input {
  width: 76px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  text-align: right;
  outline: none;
  transition: all 0.15s ease;
}
.calc-input:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.calc-row-result {
  font-weight: 700;
  min-width: 85px;
  text-align: right;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
}

/* Authentic OAuth Login Screen Card */
.oauth-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.oauth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.oauth-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.oauth-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.oauth-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  margin-bottom: 14px;
  text-align: left;
}
.oauth-account-item:hover {
  border-color: var(--emerald-600);
  background: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.oauth-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--emerald-800);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.oauth-account-details {
  flex: 1;
  min-width: 0;
}
.oauth-account-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.oauth-account-email {
  font-size: 12px;
  color: var(--muted);
}
.oauth-account-tenant {
  font-size: 11px;
  color: var(--emerald-700);
  font-weight: 600;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .welcome-container { grid-template-columns: 1fr; }
  .welcome-hero { padding: 40px 24px; }
  .welcome-panel { padding: 40px 24px; }
  .hero-money-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .money-stats { width: 100%; justify-content: space-between; }
  .sub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dashboard-wrap { padding: 16px; }
  .header-inner { padding: 10px 16px; }
  .feed-card { grid-template-columns: 1fr; }
  .card-action-side { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .controls-bar { flex-direction: column; align-items: stretch; }
  .search-and-sort { width: 100%; }
  .search-input-box { flex: 1; }
  .search-input-box input { width: 100%; }
  .custom-select { width: 100%; }
}

/* Print Scope Schedule Packet */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
  }
  .header,
  .controls-bar,
  .inspector-drawer,
  .batch-bar,
  .operations-ribbon,
  .toast-notification,
  .export-actions,
  .banner-rescan-btn,
  .btn,
  .card-action-side,
  #finding-search,
  .search-and-sort {
    display: none !important;
  }
  .dashboard-wrap {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .ledger-header {
    border: 1px solid #9ca3af !important;
    box-shadow: none !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
  .ledger-metrics {
    gap: 8px !important;
  }
  .ledger-metric-pill {
    border: 1px solid #9ca3af !important;
    background: #f9fafb !important;
    padding: 6px 10px !important;
  }
  .ledger-table-wrap {
    border: 1px solid #9ca3af !important;
    box-shadow: none !important;
  }
  .clean-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  .clean-table th,
  .clean-table td {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px !important;
    font-size: 10pt !important;
  }
  .scope-type-badge {
    border: 1px solid #4b5563 !important;
    color: #111827 !important;
    background: transparent !important;
  }
  .print-signature-block {
    display: block !important;
    margin-top: 36px !important;
    page-break-inside: avoid !important;
  }
  .print-only-header {
    display: block !important;
    margin-bottom: 20px !important;
  }
}

.print-only-header,
.print-signature-block {
  display: none;
}
.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.sig-box {
  border-top: 1px solid #374151;
  padding-top: 8px;
  font-size: 11px;
}
.sig-box strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

/* Base Contract PDF Viewer Suite */
.pdf-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--emerald-800);
  text-align: left;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.35;
}
.pdf-link-btn:hover {
  background: #ecfdf5;
  color: var(--emerald-900);
}
.pdf-link-btn strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pdf-pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: #d1fae5;
  color: #065f46;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* In-App PDF Modal Viewer */
.pdf-viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: fadeInModal 0.2s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pdf-modal-chrome {
  background: #111827;
  color: #f9fafb;
  border-bottom: 1px solid #374151;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.pdf-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pdf-file-icon {
  width: 32px;
  height: 32px;
  background: #dc2626;
  color: white;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pdf-file-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-file-meta {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 1px;
}

.pdf-toolbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}
.pdf-control-btn {
  background: transparent;
  color: #f3f4f6;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdf-control-btn:hover:not(:disabled) {
  background: #374151;
  color: #ffffff;
}
.pdf-control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pdf-page-display {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 700;
  padding: 0 6px;
  font-family: 'Manrope', sans-serif;
}

.pdf-jump-pill {
  background: #78350f;
  color: #fef08a;
  border: 1px solid #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdf-jump-pill:hover {
  background: #92400e;
  border-color: #d97706;
}

.pdf-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 36px 20px 60px 20px;
  background: #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Authentic 8.5x11 Construction Contract Paper Sheet */
.pdf-sheet {
  background: #ffffff;
  color: #111827;
  width: min(840px, 100%);
  min-height: 1080px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  padding: 56px 68px;
  position: relative;
  box-sizing: border-box;
  line-height: 1.6;
  font-size: 13.5px;
  font-family: 'DM Sans', Georgia, serif;
}
.pdf-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 64px;
  font-weight: 900;
  color: rgba(16, 185, 129, 0.05);
  letter-spacing: 0.15em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
}
.pdf-header-seal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #111827;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.pdf-contractor-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pdf-contractor-sub {
  font-size: 11.5px;
  color: #4b5563;
  margin-top: 2px;
}
.pdf-doc-meta {
  text-align: right;
  font-size: 11px;
  color: #4b5563;
  line-height: 1.45;
}
.pdf-doc-meta strong {
  font-size: 12px;
  color: #111827;
}

.pdf-contract-highlight {
  background: #fef08a !important;
  border-left: 4px solid #ca8a04 !important;
  padding: 10px 14px !important;
  margin: 14px 0 !important;
  border-radius: 0 6px 6px 0 !important;
  display: block !important;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3) !important;
  font-weight: 600 !important;
  color: #713f12 !important;
  line-height: 1.55 !important;
}

.pdf-page-footer {
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7280;
}

.pdf-open-tab-btn {
  background: var(--emerald-700);
  color: white;
  border: 1px solid var(--emerald-600);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdf-open-tab-btn:hover {
  background: var(--emerald-600);
}



