/* ── SIDEBAR ── */

.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: background 0.2s, border-color 0.2s;
}

.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-top { padding: 4px 6px 2px; }

.workspace {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 4px;
  margin: 4px 6px;
  transition: background 0.15s;
}

.workspace:hover { background: var(--hover); }

.ws-icon {
  width: 24px;
  height: 24px;
  background: var(--text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.ws-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
}

.ws-chevron { color: var(--text-muted); font-size: 11px; }

.sb-search {
  margin: 2px 6px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-muted);
  font-size: 13.5px;
}

.sb-search:hover { background: var(--hover); }
.sb-search svg { width: 14px; height: 14px; flex-shrink: 0; }

.sb-section { padding: 20px 0 4px; }

.sb-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-light);
  padding: 0 14px 4px;
  letter-spacing: 0.01em;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 6px;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  user-select: none;
}

.sb-item:hover { background: var(--hover); color: var(--text); }

.sb-item.active {
  background: var(--selected);
  color: var(--text);
  font-weight: 500;
}

.sb-footer {
  margin-top: auto;
  padding: 8px 6px 12px;
  border-top: 1px solid var(--border);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.sb-user:hover { background: var(--hover); }

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 500; color: var(--text); }

/* ── MAIN ── */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TOPBAR ── */

.topbar {
  height: 45px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
  transition: background 0.2s, border-color 0.2s;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.bc-sep { color: var(--text-light); font-size: 11px; }
.bc-current { color: var(--text); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.tb-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.tb-btn:hover { background: var(--hover); color: var(--text); }
.tb-btn svg { width: 15px; height: 15px; }

/* ── PAGE SECTIONS ── */

.page { display: none; flex: 1; }
.page.active { display: flex; flex-direction: column; }

/* ── BLANK PAGE ── */

.blank-content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 96px 80px;
}

.blank-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── AD REPORT PAGE ── */

.report-content {
  flex: 1;
  padding: 32px 32px 60px;
  overflow-y: auto;
}

/* ── REPORT PAGE HEADER ── */

.report-header {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.report-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.report-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FUNNEL LAYOUT ── */

.funnel-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.funnel-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--card-bg);
}

.funnel-group-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.funnel-group-label.ht { color: var(--purple); }
.funnel-group-label.mt { color: var(--blue); }

#funnel-totals-container .section-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── BOOKINGS PLACEHOLDER ── */

.tab-placeholder {
  padding: 40px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* ── CREATIVES EMPTY ROW ── */

.table-empty-cell {
  text-align: center;
  padding: 24px 14px;
  color: var(--text-light);
  font-size: 13px;
}
