.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  @media(max-width: 1024px) { .reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media(max-width: 720px) { .reports-grid { grid-template-columns: 1fr; } }
  .report-card {
    background: var(--form-card-bg);
    border: 1px solid var(--form-card-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--form-card-shadow);
    overflow: hidden;
  }
  .report-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
  }
  .report-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--page-title-color);
    line-height: 1.2;
  }
  .report-card-chip {
    margin-top: 6px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15,158,126,0.1);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .report-card-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--page-title-color);
    white-space: nowrap;
  }
  .report-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
  }
  .report-card-meta span { line-height: 1.5; }
  .reports-verification {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .reports-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--page-title-color);
    cursor: pointer;
  }
  .reports-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
  }
  .reports-progress-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .reports-progress-fill {
    position: absolute;
    inset: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), rgba(46,196,160,0.35));
    transition: width 0.25s ease;
  }
  .reports-progress-mark {
    position: absolute;
    top: 100%;
    transform: translateY(8px);
    font-size: 10px;
    color: var(--muted);
  }
  
  .reports-progress-value.warning {
  color: #d13438; /* red (Microsoft Fluent red) */
  font-weight: 600;
}
  .reports-progress-mark-start { left: 0; transform: translate(-0%, 8px); }
  .reports-progress-mark-mid { left: 50%; transform: translate(-50%, 8px); }
  .reports-progress-mark-end { right: 0; transform: translate(0%, 8px); }
  .reports-progress-value {
    font-size: 12px;
    color: var(--muted);
    margin-top: -6px;
  }
  .report-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .report-empty {
    padding: 24px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
  }
  .reports-progress-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .reports-progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: var(--form-card-border);
    overflow: hidden;
  }
  .reports-progress-tick {
    position: absolute;
    top: -6px;
    width: 1px;
    height: 24px;
    background: var(--muted);
  }
  .reports-progress-tick.mid {
    left: 50%;
    transform: translateX(-50%);
  }
  .reports-progress-scale {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr auto 1fr;
    font-size: 10px;
    color: var(--muted);
    margin-top: -6px;

  }
  .reports-progress-scale .start {
    justify-self: start;
  }
  .reports-progress-scale .mid {
    justify-self: center;
  }
  .reports-progress-scale .end {
    justify-self: end;
  }


.reports-approvals {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.approval-chip {
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid;
  white-space:nowrap;
}

.approval-chip.Approved {
  color:#065f46;
  border-color:#10b981;
  background:#ecfdf5;
}

.approval-chip.Pending {
  color:#92400e;
  border-color:#f59e0b;
  background:#fff7ed;
}

.approval-chip.Rejected {
  color:#7f1d1d;
  border-color:#ef4444;
  background:#fff5f5;
}


/* ── AWARDED PROJECTS — HEADER + KPI STATS, FROZEN WHILE SCROLLING ── */
.awarded-frozen-block {
  position: sticky;
  top: 0;
  z-index: 6;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ── REPORTS — HEADER + SEARCH/FILTER TOOLBAR, FROZEN WHILE SCROLLING ── */
.reports-frozen-block {
  position: sticky;
  top: 0;
  z-index: 6;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: none;
}
.awarded-frozen-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.awarded-header-col {
  flex: 0 0 auto;
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.awarded-stats-row {
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.awarded-stats-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.awarded-stats-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .awarded-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .awarded-frozen-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .awarded-header-col { white-space: normal; }
}
@media (max-width: 720px) {
  .awarded-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .awarded-stats-row { grid-template-columns: 1fr; }
}
.awarded-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--form-card-bg);
  border: 1px solid var(--form-card-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--form-card-shadow);
  min-width: 0;
}
.awarded-stat-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.awarded-stat-icon svg { width: 16px; height: 16px; }
.awarded-stat-text { min-width: 0; }
.awarded-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(12px, calc(12px + 10 * ((100vw - 1280px) / 640)), 17px);
  font-weight: 700;
  color: var(--page-title-color);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.awarded-stat-label {
  font-size: clamp(8.5px, calc(8.5px + 4 * ((100vw - 1280px) / 640)), 10.5px);;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.awarded-stat-label .awarded-stat-sublabel {
  color: var(--muted);
  opacity: 0.75;
}


/* ── AWARDED — EMPTY STATE ── */
.report-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--form-card-bg);
  border: 1px solid var(--form-card-border);
  border-radius: 18px;
}
.report-empty-state svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
  opacity: 0.6;
}
.report-empty-state span { font-size: 14px; }





/* ================================================================
   LEADS BOARD (kanban) — used by leads_data.html only
   ================================================================ */

.lb-board-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: -40px; /* added to remove the extra scrollable space at the bottom  */
}

.lb-board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 1px;
}

.lb-column {
  flex: 0 0 280px;
  width: 280px;
  background: var(--form-card-bg);
  border: 1px solid var(--form-card-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 280px); /* from 340 to 280 to change the height */
  box-shadow: var(--form-card-shadow);
}

.lb-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--form-card-border);
  flex-shrink: 0;
}

.lb-column-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lb-dot-new         { background: var(--teal); }
.lb-dot-quotation    { background: #a05ad0; }
.lb-dot-onhold       { background: #e2941f; }
.lb-dot-negotiation  { background: #2f9bd6; }
.lb-dot-confirmed    { background: #16a394; }
.lb-dot-payment      { background: #7a5cd6; }
.lb-dot-delivery     { background: #d6893a; }
.lb-dot-completed    { background: #3f9e4d; }
.lb-dot-lost         { background: var(--danger); }

.lb-column-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--page-title-color);
  flex: 1;
}

.lb-column-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal-dark, var(--teal));
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-column-cards {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lb-column-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--form-card-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--page-title-color);
  flex-shrink: 0;
  background: var(--off-white, rgba(0,0,0,0.015));
/*  border-radius: 0 0 14px 14px; */
}

.lb-empty-col {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 16px 6px;
}

.lb-card {
  border: 1px solid var(--form-card-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: box-shadow .12s ease, border-color .12s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--border-active);
}

.lb-card-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--page-title-color);
  line-height: 1.3;
}

.lb-card-type {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal-dark, var(--teal));
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.lb-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.lb-card-row span:last-child { color: var(--page-title-color); font-weight: 600; }

.lb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.lb-avatar-stack { display: flex; align-items: center; }
.lb-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--card-bg);
  margin-left: -8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .1s ease;
}
.lb-avatar:first-child { margin-left: 0; }
.lb-avatar:hover { transform: translateY(-2px); z-index: 5; }

.lb-time-in-stage {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Contact popover ── */
.lb-popover {
  position: fixed;
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--form-card-bg);
  border: 1px solid var(--form-card-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  padding: 12px;
  min-width: 220px;
  z-index: 500;
}
.lb-popover.show { display: flex; }

.lb-popover-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.lb-popover-name { font-weight: 700; font-size: 13px; color: var(--page-title-color); }
.lb-popover-role { font-size: 11.5px; color: var(--muted); margin-top: 1px; margin-bottom: 8px; }
.lb-popover-link {
  border: none;
  background: var(--teal-dim);
  color: var(--teal-dark, var(--teal));
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.lb-popover-link:hover { background: var(--teal-border); }

@media (max-width: 720px) {
  .lb-column { flex: 0 0 240px; width: 240px; }
}


/* ================================================================
   REPORTS BOARD (kanban) — reports.html reuses the same .lb-column
   shell as Leads, but wraps the existing .reports-grid/.report-card
   markup instead of the compact .lb-card, and needs a bit more width.
   ================================================================ */

.lb-dot-notselected { background: var(--muted); }

.lb-column--report {
  flex: 0 0 340px;
  width: 340px;
}

/* Inside a kanban column, .reports-grid stacks as a single column
   instead of the 3-across grid used when it's a flat page (Awarded). */
.lb-column-cards .reports-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-column-cards .report-card {
  border-radius: 12px;
}

@media (max-width: 720px) {
  .lb-column--report { flex: 0 0 300px; width: 300px; }
}