/* ─── DASHBOARD ──────────────────────────────────────────── */

.dashboard-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

/* Dashboard disclaimer banner */
.dash-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(210, 168, 255, 0.07);
  border: 1px solid rgba(210, 168, 255, 0.25);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.dash-disclaimer svg.lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #d2a8ff;
}
.dash-disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

/* Dashboard greeting */
.dash-greeting {
  padding-bottom: 4px;
}
.dash-greeting-text {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(
    95deg,
    #58a6ff  0%,
    #d2a8ff  20%,
    #ffffff  40%,
    #d2a8ff  60%,
    #ffa657  80%,
    #58a6ff  100%
  );
  background-size: 300% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes greeting-ripple {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
.dash-greeting-text.rippling {
  animation: greeting-ripple 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.dash-greeting-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Stat cards row */
.stat-cards {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.stat-card {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-card-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stat-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Two-column panels layout */
.dash-panels {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  min-height: 0;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.dash-panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-panel-title--hero {
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  padding: 16px 16px 12px;
}

.panel-copy-btn {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.panel-copy-btn:hover  { background: var(--surface2); color: var(--text); border-color: #484f58; }
.panel-copy-btn.copied { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.4); }

.dash-panel-link {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  transition: background 0.15s;
}
.dash-panel-link:hover { background: var(--surface2); }

.dash-empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* "This week at a glance" sub-heading */
.dash-week-subheading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 16px 6px;
}

/* City group header inside This Week panel */
.city-group-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding: 10px 16px 6px;
  background: rgba(88,166,255,0.04);
  border-bottom: 1px solid var(--border-light);
}

/* Show row */
.dash-show-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.dash-show-row:last-child { border-bottom: none; }
.dash-show-row:hover { background: var(--surface2); }

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

.dash-show-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dash-show-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(88,166,255,0.05);
}
.dash-show-total-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.dash-show-total-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dash-project-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1px 6px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-show-dates {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-show-revenue {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: right;
}

/* Staffing alert row */
.staffing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.staffing-row:last-child { border-bottom: none; }
.staffing-row:hover { background: var(--surface2); }

.staffing-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staffing-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staffing-row-date {
  font-size: 11px;
  color: var(--text-muted);
}

.staffing-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.fill-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fill-bar-track {
  width: 80px;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}

.fill-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ─── LUCIDE ICONS ───────────────────────────────────────── */
/* Base */
svg.lucide { display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav sidebar icons */
.lsb-tab svg.lucide { width: 16px; height: 16px; flex-shrink: 0; }

/* Header button icons */
.lsb-toggle svg.lucide,
.lsb-close svg.lucide  { width: 18px; height: 18px; }
.nav-btn svg.lucide    { width: 16px; height: 16px; }
.icon-btn svg.lucide   { width: 16px; height: 16px; }
.search-icon svg.lucide { width: 14px; height: 14px; }
.search-clear svg.lucide { width: 12px; height: 12px; }

/* Under construction */
.uc-icon svg.lucide    { width: 56px; height: 56px; opacity: 0.5; }

/* Dashboard heading globe */
.dash-panel-title--hero svg.lucide { width: 20px; height: 20px; margin-right: 4px; }

/* Copy button */
.panel-copy-btn svg.lucide { width: 12px; height: 12px; }

/* Detail panel / lightning links */
.lightning-link svg.lucide,
.card-lightning-link svg.lucide { width: 13px; height: 13px; }
.detail-close svg.lucide { width: 14px; height: 14px; }

/* Section header warning */
.section-header-icon svg.lucide { width: 14px; height: 14px; }

/* Office chevrons */
.office-chevron svg.lucide { width: 12px; height: 12px; }

/* Staffing table external link */
.staffing-lightning-link svg.lucide { width: 13px; height: 13px; }

/* ─── REVENUE BY OFFICE CHART ───────────────────────────── */
.revenue-chart-wrap {
  padding: 20px 24px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.revenue-chart-wrap canvas {
  max-width: 220px;
  max-height: 220px;
}

.revenue-legend {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rev-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

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

.rev-legend-office {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-legend-value {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rev-legend-pct {
  color: var(--text-dim);
  font-size: 11px;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

