/* ============================================================
   PRIMETOUR — Dashboards CSS
   Widgets, Charts, Audit, Profile
   ============================================================ */

/* ─── DASHBOARD MAIN GRID ─────────────────────────────────── */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

/* ─── DASHBOARD LAYOUT ────────────────────────────────────── */
/* 12 colunas legacy — usado em /dashboards (analytics) que tem widgets
   com col-span-3, col-span-6, col-span-12 explícitos. */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* dash-stats (Meu Painel 3.6.1+) — flex column de seções; cada seção é
   um grid auto-fit que distribui o espaço entre seus cards.
   Antes (3.6.0): grid único misturava labels (grid-column:1/-1) com
   cards, causando "buraco" branco quando havia 3 cards num grid auto-fit
   que estimava 6 colunas — auto-fit não colapsava as 3 vazias porque
   estavam no fim da mesma row dos cards. */
#dash-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.dash-stats-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 8px 0 0;
  padding-left: 2px;
}
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dash-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.dash-widget:hover { border-color: var(--border-accent); }

/* Column spans */
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-6  { grid-column: span 6; }
.col-span-8  { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* ─── WIDGET HEADER ───────────────────────────────────────── */
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
}
.widget-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.dash-widget:hover .widget-actions { opacity: 1; }

/* ─── WIDGET BODY ─────────────────────────────────────────── */
.widget-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  position: relative;
}

.chart-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* ─── KPI WIDGETS ─────────────────────────────────────────── */
.kpi-widget {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
/* Accent stripe no topo das KPI cards */
.dash-widget.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.6;
}
/* Variantes de cor para KPIs (via data-accent) */
.dash-widget[data-accent="success"]::before { background: var(--color-success); }
.dash-widget[data-accent="info"]::before    { background: var(--color-info); }
.dash-widget[data-accent="warning"]::before { background: var(--color-warning); }
.dash-widget[data-accent="danger"]::before  { background: var(--color-danger); }
.dash-widget[data-accent="brand"]::before   { background: var(--brand-gold); }
.kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-ui);
}
.kpi-sublabel {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.kpi-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.kpi-trend.up    { color: var(--color-success); }
.kpi-trend.down  { color: var(--color-danger); }
.kpi-trend.flat  { color: var(--text-muted); }
.kpi-bar {
  margin-top: auto;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.kpi-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4.23+ — Sublinks de drill-down dentro do card "Pontualidade".
   Cards-mãe são clicáveis (cursor:pointer); o sublink ainda precisa
   de outline visual pra deixar claro que é clicável independente do card. */
.kpi-sublink {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-default);
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.kpi-sublink:hover {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* ─── LEADERBOARD / RANKING ───────────────────────────────── */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-rank {
  width: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}
.leaderboard-rank.gold   { color: var(--color-warning); }
.leaderboard-rank.silver { color: #94A3B8; }
.leaderboard-rank.bronze { color: #B45309; }
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.leaderboard-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ─── DATE RANGE PICKER ───────────────────────────────────── */
.date-range-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-range-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.date-range-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.date-range-btn.active {
  background: var(--color-info-bg);
  border-color: var(--border-accent);
  color: var(--brand-gold);
}

/* ─── DASHBOARD TOOLBAR ───────────────────────────────────── */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dashboard-toolbar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

/* ─── ACTIVITY FEED ───────────────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 320px;
  overflow-y: auto;
}
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.activity-text strong { color: var(--text-primary); }
.activity-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── HEATMAP ─────────────────────────────────────────────── */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3px;
  overflow-x: auto;
}
.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: transform var(--transition-fast);
  position: relative;
}
.heatmap-cell:hover { transform: scale(1.3); z-index: 1; }
.heatmap-0  { background: var(--bg-elevated); }
.heatmap-1  { background: var(--border-accent); opacity: 0.5; }
.heatmap-2  { background: var(--border-accent); opacity: 0.7; }
.heatmap-3  { background: var(--border-accent); }
.heatmap-4  { background: var(--brand-gold); }

/* ─── AUDIT PAGE ──────────────────────────────────────────── */
.audit-log-row {
  display: grid;
  grid-template-columns: 32px 130px 1fr 160px 120px 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  transition: background var(--transition-fast);
}
.audit-log-row:hover { background: var(--bg-hover); }
.audit-row-expanded { background: var(--bg-surface); }

.audit-log-header {
  display: grid;
  grid-template-columns: 32px 130px 1fr 160px 120px 100px;
  gap: 12px;
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.audit-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.audit-detail-panel {
  border-bottom: 2px solid var(--border-default);
}

@keyframes slideDown {
  from { opacity:0; max-height:0; }
  to   { opacity:1; max-height:600px; }
}

.audit-module-bar:hover {
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}

.audit-create  { background: rgba(34,197,94,0.12);   color: var(--color-success); border: 1px solid rgba(34,197,94,0.25); }
.audit-update  { background: rgba(56,189,248,0.12);  color: var(--color-info);    border: 1px solid rgba(56,189,248,0.25); }
.audit-delete  { background: rgba(239,68,68,0.12);   color: var(--color-danger);  border: 1px solid rgba(239,68,68,0.25); }
.audit-auth    { background: rgba(167,139,250,0.12); color: #A78BFA;              border: 1px solid rgba(167,139,250,0.25); }
.audit-other   { background: rgba(107,114,128,0.12); color: var(--text-secondary); border: 1px solid rgba(107,114,128,0.25); }

/* ─── PROFILE PAGE ────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}
.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--text-inverse);
  border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.profile-avatar-edit:hover { transform: scale(1.1); }
.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.profile-email {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.profile-stat-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}
.profile-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── COLOR AVATAR PICKER ─────────────────────────────────── */
.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 3px solid transparent;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected {
  /* Borda invertida da paleta (escura em paletas claras, clara em
   * paletas escuras) — sempre visível. White hardcoded sumia em
   * paletas claras (platinum/sand). */
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--brand-gold);
}

/* ─── EXPORT PANEL ────────────────────────────────────────── */
.export-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.export-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.export-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.export-card-icon { font-size: 2rem; margin-bottom: 8px; }
.export-card-label { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.export-card-desc  { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

/* ─── LOADING STATE ───────────────────────────────────────── */
.chart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.chart-loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg-elevated);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .col-span-3 { grid-column: span 6; }
  .col-span-4 { grid-column: span 6; }
}
@media (max-width: 768px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .col-span-3, .col-span-4, .col-span-6, .col-span-8, .col-span-12 { grid-column: span 1; }
  .audit-log-row    { grid-template-columns: 32px 1fr 80px; gap:8px; }
  .audit-log-header { display: none; }
  .audit-log-row > *:nth-child(4) { display: none; }
  .audit-log-row > *:nth-child(5) { display: none; }
  .audit-detail-panel { padding-left:16px !important; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PAINEL COMERCIAL DE NEWSLETTERS — modo foco, escolha da unidade e a
   tela da jornada do cliente (25/09/2026). Só tokens: a paleta clara troca
   o dourado por azul-marinho e o cartão escuro continua legível.
   ═══════════════════════════════════════════════════════════════════════ */

/* MODO FOCO: a página ocupa a tela inteira, sem sidebar nem cabeçalho.
   O caminho de volta é o link "Voltar para o Gestor" da própria página. */
body.modo-foco .sidebar { display: none; }
body.modo-foco .main-content { margin-left: 0; }
body.modo-foco .app-header { display: none; }
body.modo-foco .page-content { padding: var(--space-5) var(--space-8) 48px; }
body.modo-foco .page-content > * { max-width: 1480px; margin-left: auto; margin-right: auto; }
.nl-foco-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--space-3); }
.nl-foco-voltar { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-secondary);
  text-decoration: none; padding: 6px 10px 6px 6px; border-radius: var(--radius-full); border: 1px solid transparent; }
.nl-foco-voltar:hover { color: var(--text-primary); border-color: var(--border-subtle); background: var(--bg-surface); }
.nl-foco-voltar i { width: 15px; height: 15px; }

/* ESCOLHA DA UNIDADE: cartões grandes, nome no centro, o número em cinza. */
.pc-escolha-titulo { font-size: 1.05rem; color: var(--text-secondary); margin: var(--space-2) 0 var(--space-4); }
.pc-bus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.pc-bu-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 124px;
  padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); background: var(--bg-surface);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); cursor: pointer; font-family: inherit;
  color: var(--text-primary); text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pc-bu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-gold); }
.pc-bu-card-grupo { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.pc-bu-card-nome { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.pc-bu-card-sub { font-size: .7rem; color: var(--text-muted); line-height: 1.4; }
.pc-bu-card-todas { border-style: dashed; background: transparent; box-shadow: none; }
.pc-bu-card-sem { opacity: .72; }

/* CABEÇALHO DA UNIDADE: o nome é o próprio seletor. */
.pc-bu-pill { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); background: var(--bg-surface); }
.pc-bu-pill select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text-primary);
  font-family: inherit; font-size: 1.25rem; font-weight: 700; padding: 8px 40px 8px 14px; cursor: pointer; outline: none; max-width: 420px; }
.pc-bu-pill select:focus-visible { box-shadow: 0 0 0 2px var(--brand-gold); border-radius: var(--radius-md); }
.pc-bu-pill::after { content: ''; position: absolute; right: 14px; top: 50%; width: 0; height: 0; pointer-events: none;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--text-secondary); transform: translateY(-40%); }
.pc-bu-sub { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
.pc-rodape-fontes { margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }

/* A JORNADA DO CLIENTE — a tela de uma pessoa. */
.jc-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.jc-nome { font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--text-primary); }
.jc-sub { font-size: .8rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.jc-grandes { display: flex; gap: 28px; flex-wrap: wrap; }
.jc-grande { display: flex; align-items: baseline; gap: 8px; }
.jc-grande-n { font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--text-primary); }
.jc-grande-r { font-size: .78rem; color: var(--text-muted); }
.jc-etapas { display: flex; gap: 8px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.jc-etapa { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jc-etapa-rot { font-size: .72rem; color: var(--text-secondary); }
.jc-etapa-bar { height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; padding: 0 16px;
  font-weight: 700; font-size: .95rem; color: var(--text-inverse); background: var(--pc-cor); }
.jc-etapa-off .jc-etapa-bar { color: var(--text-muted); border: 1px solid var(--border-subtle);
  background: repeating-linear-gradient(135deg, var(--bg-elevated) 0 6px, var(--bg-surface) 6px 12px); }
/* A grade tem duas linhas: pessoa · cliques · anel na primeira, a linha do tempo
   ocupando as três colunas na segunda, e a checklist alta na coluna da direita
   atravessando as duas — senão o cartão da pessoa esticava até a altura da
   checklist e virava um vazio (medido no harness em 25/09/2026). */
.jc-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.15fr; grid-template-areas: "pessoa cliques anel check" "tempo tempo tempo check";
  grid-template-rows: auto 1fr; gap: var(--space-4); margin-bottom: var(--space-4); align-items: stretch; }
.jc-pessoa { grid-area: pessoa; } .jc-cliques { grid-area: cliques; } .jc-anel-card { grid-area: anel; } .jc-check { grid-area: check; } .jc-tempo { grid-area: tempo; }
.jc-outras { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.jc-card { border-radius: var(--radius-lg); background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: var(--space-5); min-width: 0; }
.jc-card-t { font-size: 1.02rem; font-weight: 600; margin-bottom: var(--space-3); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.jc-card-t small { font-size: .7rem; color: var(--text-muted); font-weight: 400; white-space: nowrap; }
.jc-pessoa { background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface)); display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 280px; position: relative; }
.jc-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-gold); color: var(--text-inverse);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; margin-bottom: auto; }
.jc-pessoa-nome { font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.jc-pessoa-sub { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
/* O valor fica NO FLUXO, abaixo do nome: absoluto no canto, ele cobria nomes
   longos a 1280px (medido no harness em 25/09/2026). */
.jc-pessoa-valor { align-self: flex-start; margin-top: 12px; padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--border-default); background: var(--bg-elevated); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.jc-barras { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 30px; }
.jc-barra { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; min-width: 0; }
.jc-barra-f { width: 8px; border-radius: var(--radius-full); background: var(--border-strong); }
.jc-barra-on .jc-barra-f { background: var(--text-primary); }
.jc-barra-max .jc-barra-f { background: var(--brand-gold); }
.jc-barra-rot { font-size: .6rem; color: var(--text-muted); white-space: nowrap; }
.jc-barra-bolha { position: absolute; top: -28px; font-size: .66rem; background: var(--brand-gold); color: var(--text-inverse);
  padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; }
.jc-anel-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.jc-anel { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--brand-gold) calc(var(--jc-pct) * 1%), var(--bg-elevated) 0); }
.jc-anel-in { width: 118px; height: 118px; border-radius: 50%; background: var(--bg-surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; }
.jc-anel-n { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.jc-anel-r { font-size: .66rem; color: var(--text-muted); margin-top: 4px; text-align: center; }
/* O cartão da checklist é o de destaque — com a borda dourada em cima, e não com
   fundo escuro: `--bg-deepest` é navy na paleta clara "portal" e o texto ficava
   navy sobre navy (harness, 25/09/2026). */
.jc-check { background: var(--bg-elevated); border-top: 4px solid var(--brand-gold); }
.jc-check-n { font-size: 1.5rem; font-weight: 600; }
.jc-check-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.jc-check-item:last-child { border-bottom: 0; }
.jc-check-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--bg-surface); color: var(--text-muted); }
.jc-check-ico i { width: 16px; height: 16px; }
.jc-check-txt { flex: 1; min-width: 0; }
.jc-check-rot { font-size: .86rem; font-weight: 500; line-height: 1.25; }
.jc-check-data { font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
.jc-check-ok .jc-check-rot { text-decoration: line-through; color: var(--text-muted); }
.jc-check-ok .jc-check-mark { background: var(--brand-gold); color: var(--text-inverse); border-color: var(--brand-gold); }
.jc-check-atual .jc-check-rot { font-weight: 700; }
.jc-check-atual .jc-check-mark { border: 2px solid var(--brand-gold); color: var(--brand-gold); }
.jc-check-mark { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--bg-surface); color: transparent; border: 1px solid var(--border-strong); }
.jc-check-mark i { width: 13px; height: 13px; }
.jc-check-v2 { opacity: .5; padding: 5px 0; }
.jc-check-v2 .jc-check-ico { width: 28px; height: 28px; }
/* Os dias PREENCHEM a largura: com um ou dois dias a coluna cresce e os eventos
   se distribuem em mais de uma coluna dentro dela; com muitos dias, cada um
   segura 240px e a faixa rola de lado. (25/09/2026: um dia só ficava numa
   coluna de 230px com a tela inteira vazia ao lado.) */
.jc-dias { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.jc-dia { flex: 1 1 240px; min-width: 240px; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border-subtle); padding: var(--space-3); }
.jc-dia-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; align-content: start; }
.jc-dia-h { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.jc-ev { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: var(--radius-sm); background: var(--bg-surface); min-width: 0; }
.jc-ev-atual { outline: 1px solid var(--brand-gold); }
.jc-ev-ico { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--pc-cor); color: var(--text-inverse); }
.jc-ev-ico i { width: 14px; height: 14px; }
.jc-ev-t { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.jc-ev-d { font-size: .66rem; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.jc-ev-h { font-size: .62rem; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 1100px) { .jc-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "pessoa cliques" "anel check" "tempo tempo"; grid-template-rows: auto; } }
@media (max-width: 700px)  { .jc-grid { grid-template-columns: 1fr; grid-template-areas: "pessoa" "cliques" "anel" "check" "tempo"; } .jc-nome { font-size: 1.5rem; } .jc-grande-n { font-size: 1.8rem; }
  body.modo-foco .page-content { padding: var(--space-4); } }
