/* ─── GANTT WRAPPER ──────────────────────────────────────── */
.gantt-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ─── LEFT PANEL (Sidebar) ───────────────────────────────── */
.gantt-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--border);
  z-index: 20;
  box-shadow: 3px 0 12px rgba(0,0,0,0.35);
}

.gantt-corner {
  height: var(--gantt-hdr-h);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 16px 10px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sidebar-body {
  flex: 1;
  overflow: hidden; /* scrolled via JS */
  background: var(--bg);
}

#sidebar-rows { width: 100%; }

/* Sidebar job rows */
.sidebar-row {
  height: var(--row-h);
  display: flex;
  align-items: center;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid rgba(100, 115, 135, 0.45);
  cursor: pointer;
  transition: background 0.1s;
  overflow: hidden;
  position: relative;
}
.sidebar-row:hover        { background: rgba(88,166,255,0.07); }
.sidebar-row.even         { background: rgba(255,255,255,0.018); }
.sidebar-row.even:hover   { background: rgba(88,166,255,0.07); }
.sidebar-row.active       { background: var(--accent-dim) !important; }

.sidebar-color-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}

.sidebar-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.job-num {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.job-status {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px 2px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.status-active     { background: rgba(35,134,54,0.22);  color: #3fb950; }
.status-tentative  { background: rgba(187,128,9,0.22);  color: #d29922; }
.status-hold       { background: rgba(139,148,158,0.2); color: #8b949e; }
.status-cancelled  { background: rgba(248,81,73,0.18);  color: #f85149; }
.status-quote      { background: rgba(88,166,255,0.18); color: #58a6ff; }

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

.job-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── RIGHT PANEL (Timeline) ─────────────────────────────── */
.gantt-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Date header */
.timeline-header-wrap {
  height: var(--gantt-hdr-h);
  flex-shrink: 0;
  overflow: hidden; /* scrolled via JS */
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

#date-header {
  height: var(--gantt-hdr-h);
  display: flex;
  flex-direction: column;
}

.week-band {
  display: flex;
  height: 22px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.week-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding-left: 5px;
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.day-band {
  display: flex;
  height: 32px;
}

.day-cell {
  width: var(--day-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  border-right: 1px solid rgba(48,54,61,0.45);
  user-select: none;
  gap: 1px;
}
.day-cell .dow-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.day-cell.weekend         { background: var(--weekend-bg); border-left: 1px solid rgba(255,255,255,0.07); }
.day-cell.weekend .dow-label,
.day-cell.weekend         { color: rgba(150,160,175,0.75); }
.day-cell.today-header    { color: var(--today-color) !important; }
.day-cell.today-header .dow-label { color: var(--today-color) !important; }
.day-cell.out-of-month    { opacity: 0.45; background: rgba(0,0,0,0.18); }
.week-label.out-of-month  { opacity: 0.45; }

/* Current-month columns pop against the dimmed padding */
.day-cell:not(.out-of-month) {
  background: rgba(255,255,255,0.04);
  border-top: 2px solid rgba(88,166,255,0.35);
}
.day-cell.weekend:not(.out-of-month) {
  background: rgba(255,255,255,0.055);
}

/* ── Month differentiation (range mode) ─────────────────── */
/* Taller header to fit the month-name band */
body.range-mode { --gantt-hdr-h: 74px; }

.month-band {
  display: flex;
  height: 20px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.month-label-band {
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
.month-label-band span {
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.month-label-band.alt          { background: rgba(88,166,255,0.08); color: var(--text); }
.month-label-band.out-of-month { opacity: 0.4; }
.month-label-band.month-start  { border-left: 2px solid rgba(88,166,255,0.55); }

/* Alternating month tint on header day cells */
.day-cell.month-alt:not(.out-of-month)         { background: rgba(88,166,255,0.07); }
.day-cell.month-alt.weekend:not(.out-of-month) { background: rgba(88,166,255,0.11); }
/* Divider at each month's first day */
.day-cell.month-start { border-left: 2px solid rgba(88,166,255,0.55); }

/* Timeline body */
.timeline-body-wrap {
  flex: 1;
  overflow: auto; /* main scroll — both axes */
  position: relative;
}

#timeline-rows {
  position: relative;
}

/* Timeline rows */
.timeline-row {
  height: var(--row-h);
  border-bottom: 1px solid rgba(100, 115, 135, 0.45);
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
  overflow: visible;
}
.timeline-row:hover      { background: rgba(88,166,255,0.05); }
.timeline-row.even       { background: rgba(255,255,255,0.015); }
.timeline-row.even:hover { background: rgba(88,166,255,0.05); }
.timeline-row.active     { background: var(--accent-dim) !important; }

/* Out-of-month column overlay in timeline rows */
.out-of-month-stripe {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--day-w);
  background: rgba(0,0,0,0.32);
  pointer-events: none;
  z-index: 0;
}

/* Current-month column highlight in timeline rows */
.in-month-stripe {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--day-w);
  background: rgba(255,255,255,0.055);
  pointer-events: none;
  z-index: 0;
}
/* Alternating month shade so adjacent months read differently */
.in-month-stripe.alt     { background: rgba(88,166,255,0.06); }
.out-of-month-stripe.alt { background: rgba(0,0,0,0.42); }

/* Weekend stripe */
.weekend-stripe {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--day-w);
  background: var(--weekend-bg);
  pointer-events: none;
  z-index: 0;
}

/* Today line */
.today-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--today-color);
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}

/* Show Start / Show End tick markers */
.show-tick {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 22px;
  border-radius: 1px;
  pointer-events: none;
  z-index: 6;
}
.show-tick-start { background: rgba(255, 255, 255, 0.90); }
.show-tick-end   { background: rgba(255, 255, 255, 0.45); }

/* Daily grid lines */
.grid-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(100, 115, 135, 0.45);
  pointer-events: none;
  z-index: 1;
}
/* Weekly boundary — slightly stronger */
.grid-line.grid-line-week {
  background: rgba(100, 115, 135, 0.75);
}
/* Month boundary — strongest divider, on-brand accent */
.grid-line.grid-line-month {
  background: rgba(88, 166, 255, 0.55);
  width: 2px;
  z-index: 2;
}

/* Gantt bar */
.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  overflow: hidden;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  transition: filter 0.15s, box-shadow 0.15s;
  cursor: pointer;
  min-width: 6px;
}
.gantt-bar:hover {
  filter: brightness(1.18);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.bar-label {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* Missing-date bar — striped red, full width */
.gantt-bar-missing {
  opacity: 0.75;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.2) 6px,
    rgba(0,0,0,0.2) 12px
  ) !important;
  border: 1px solid rgba(252,165,165,0.4);
}
.gantt-bar-missing:hover { opacity: 0.9; }

/* Bright core segment: Load-In → Pickup */
.gantt-bar-core {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}


/* ─── OFFICE SECTION HEADER ──────────────────────────────── */
.office-header-row {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(30, 40, 58, 0.85);
  border-top: 2px solid rgba(88,166,255,0.35);
  border-bottom: 1px solid rgba(88,166,255,0.2);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  left: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.office-header-row:hover {
  background: rgba(45, 58, 85, 0.95);
}
.office-header-row.collapsed {
  border-bottom: 2px solid rgba(88,166,255,0.35);
}

.office-chevron {
  font-size: 9px;
  opacity: 0.75;
  flex-shrink: 0;
}

.office-header-timeline {
  height: 54px;
  background: rgba(88,166,255,0.04);
  border-top: 2px solid rgba(88,166,255,0.35);
  border-bottom: 1px solid rgba(88,166,255,0.2);
  flex-shrink: 0;
  cursor: pointer;
}
.office-header-timeline:hover {
  background: rgba(88,166,255,0.07);
}
.office-header-timeline.collapsed {
  border-bottom: 2px solid rgba(88,166,255,0.35);
}

/* Section divider — "Date Range Data Missing" */
.section-header-row {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(127,29,29,0.25);
  border-top: 2px solid rgba(248,81,73,0.5);
  border-bottom: 1px solid rgba(248,81,73,0.3);
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  gap: 8px;
  position: sticky;
  left: 0;
  transition: background 0.15s;
}
.section-header-row.collapsible {
  cursor: pointer;
  user-select: none;
}
.section-header-row.collapsible:hover {
  background: rgba(127,29,29,0.4);
}
.section-header-row.collapsed {
  border-bottom: 2px solid rgba(248,81,73,0.5);
}

.section-header-icon {
  font-size: 13px;
}

.section-header-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 9px;
  background: rgba(248,81,73,0.2);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-header-timeline {
  height: 54px;
  background: rgba(127,29,29,0.15);
  border-top: 2px solid rgba(248,81,73,0.5);
  border-bottom: 1px solid rgba(248,81,73,0.3);
  flex-shrink: 0;
  transition: background 0.15s;
}
.section-header-timeline.collapsible {
  cursor: pointer;
}
.section-header-timeline.collapsible:hover {
  background: rgba(127,29,29,0.25);
}
.section-header-timeline.collapsed {
  border-bottom: 2px solid rgba(248,81,73,0.5);
}

/* Under construction page */
.under-construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - var(--header-h));
  gap: 16px;
  text-align: center;
  color: var(--text-muted);
  user-select: none;
}
.uc-icon   { font-size: 56px; line-height: 1; }
.uc-title  { font-size: 22px; font-weight: 600; color: var(--text); margin: 0; }
.uc-message { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Empty state */
.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── DETAIL PANEL ───────────────────────────────────────── */
.detail-panel {
  position: fixed;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  width: 360px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(0,0,0,0.45);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
}

.detail-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-top: 5px;
}

.detail-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.detail-close {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  margin-top: 2px;
}
.detail-close:hover { background: var(--border); color: var(--text); }

.detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

/* Detail sections */
.detail-section {
  margin-bottom: 20px;
}
.detail-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.detail-item.full { grid-column: 1 / -1; }

.detail-item label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-item span {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
.detail-item span.muted { color: var(--text-muted); font-style: italic; }

/* Date row in detail */
.date-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}
.date-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.date-bar-label { color: var(--text-muted); flex-shrink: 0; }
.date-bar-value { color: var(--text); font-weight: 600; }
.date-bar-arrow { color: var(--text-dim); font-size: 14px; }

/* ─── LIGHTNING LINK ────────────────────────────────────── */
.lightning-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid rgba(88,166,255,0.3);
  border-radius: 5px;
  transition: background 0.15s, border-color 0.15s;
}
.lightning-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.card-lightning-link {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.card-lightning-link:hover { opacity: 1; }

/* ─── PROJECT ROW — count pill ──────────────────────────── */
.proj-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px 2px;
  border-radius: 10px;
  background: rgba(35,134,54,0.22);
  color: #3fb950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ─── PROJECT DETAIL — per-show cards ───────────────────── */
/* ── Detail Gantt panel (project show timeline) ─────────
   Docks against the left edge of the detail panel and reuses
   the main calendar's grid classes (.day-cell, .gantt-bar,
   .grid-line, .weekend-stripe, .today-line, .show-tick). */
.detail-gantt {
  position: fixed;
  right: 360px;               /* flush with .detail-panel */
  top: var(--header-h);
  bottom: 0;
  max-width: min(820px, calc(100vw - 560px));
  min-width: 340px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  z-index: 49;                /* just under .detail-panel */
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(0,0,0,0.45);
}

.dg-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.dg-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.dg-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.dg-scroll {
  flex: 1;
  overflow: auto;
  position: relative;
}

.dg-grid { min-width: 100%; }

/* Header band — sticky on both axes */
.dg-head {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.dg-corner {
  position: sticky;
  left: 0;
  z-index: 7;
  width: 180px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 0 10px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.dg-head-days { flex-shrink: 0; }

.dg-month-band {
  display: flex;
  height: 18px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.dg-month-label {
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
.dg-month-label.alt { background: rgba(88,166,255,0.08); color: var(--text); }

/* Data rows */
.dg-row {
  display: flex;
  height: 46px;
  border-bottom: 1px solid rgba(100, 115, 135, 0.45);
  cursor: pointer;
  transition: background 0.1s;
}
.dg-row.even  { background: rgba(255,255,255,0.015); }
.dg-row:hover { background: rgba(88,166,255,0.05); }

.dg-name {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 180px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  overflow: hidden;
}
.dg-row:hover .dg-name { background: var(--surface2); }

.dg-name-accent {
  width: 3px;
  align-self: stretch;
  margin: 8px 0;
  border-radius: 2px;
  flex-shrink: 0;
}

.dg-name-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dg-name-num {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dg-name .job-status { font-size: 8px; padding: 0 5px 1px; }

.dg-name-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dg-track {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
}

.proj-job-card.mg-highlight {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.proj-job-card {
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.proj-job-card-top {
  display: flex;
}

.proj-job-accent {
  width: 4px;
  flex-shrink: 0;
  border-radius: 0;
}

.proj-job-card-info {
  flex: 1;
  padding: 9px 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proj-job-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.proj-job-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-job-dates {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.proj-job-venue {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Financials */
.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.fin-row:last-child { border-bottom: none; }
.fin-label { color: var(--text-muted); }
.fin-value { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-row.total .fin-label { color: var(--text); font-weight: 700; }
.fin-row.total .fin-value { color: #3fb950; font-size: 14px; }

/* ─── COMPACT MODE ───────────────────────────────────────── */
.view-toggle-btn {
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.view-toggle-btn:hover       { background: var(--surface2); color: var(--text); }
.view-toggle-btn.active      { background: var(--accent-dim); color: var(--accent); border-color: rgba(88,166,255,0.4); }

/* Compact rows */
body.compact .sidebar-row,
body.compact .timeline-row   { height: var(--row-h-compact, 28px) !important; }

body.compact .gantt-corner,
body.compact .timeline-header-wrap { height: var(--gantt-hdr-h); } /* header unchanged */

body.compact .job-meta       { display: none; }
body.compact .sidebar-top    { display: none; }
body.compact .job-name       { font-size: 11px; font-weight: 600; }
body.compact .sidebar-color-bar { border-radius: 0; }

body.compact .gantt-bar        { height: 18px; }
body.compact .gantt-bar-core   { border-radius: 3px; }
body.compact .bar-label        { font-size: 10px; }


body.compact .office-header-row,
body.compact .office-header-timeline,
body.compact .section-header-row,
body.compact .section-header-timeline { height: 28px !important; font-size: 10px; }

body.compact .proj-count     { font-size: 9px; padding: 1px 5px; }

