/* Dashboard — v1.6.1: resumo discreto + recentes wide */
#view-dashboard {
  --page-accent: #17658f;
  --page-accent-soft: rgba(23, 101, 143, .10);
}

.dashboard-kpi-stack {
  width: min(100%, 520px);
  margin: 0 0 16px;
}

.kpi-carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  touch-action: pan-y;
}

.kpi-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.kpi-carousel .kpi-slide {
  flex: 0 0 100%;
  min-height: 108px;
  border-radius: 18px;
  box-shadow: none;
  background: linear-gradient(180deg, #fff, #f7fbfd);
}

.kpi-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 7px 0 0;
}

.kpi-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd7df;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.kpi-carousel-dots button.active {
  width: 22px;
  background: var(--page-accent);
}

.dashboard-grid-wide {
  display: block;
}

.recent-wide-panel {
  width: 100%;
  min-width: 0;
}

.recent-wide-panel .mini-list {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .dashboard-kpi-stack { width: min(100%, 560px); }
  .recent-wide-panel .mini-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .kpi-carousel-track { transition: none; }
}

/* v1.7.0 — carrossel com conteúdo e identidade própria */
body[data-active-view="dashboard"] .topbar {
  background: linear-gradient(180deg, #eef8fc 0%, #ffffff 92%);
  border-bottom-color: rgba(23,101,143,.22);
  box-shadow: inset 0 3px 0 #17658f;
}
body[data-active-view="dashboard"] .topbar-period-main,
body[data-active-view="dashboard"] .topbar-total-btn { color: #17658f; }
body[data-active-view="dashboard"] .bottom-nav.raised-dock { --dock-accent: #17658f; }
body[data-active-view="dashboard"] .sidebar .nav-item.active { color: #17658f; background: rgba(23,101,143,.10); }

.kpi-carousel .kpi-slide {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 18px 20px;
  border: 1px solid rgba(23,101,143,.10);
  box-shadow: 0 12px 30px rgba(30,66,88,.06);
}
.kpi-carousel .kpi-slide::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  opacity: .12;
}
.kpi-slide-purchases { background: linear-gradient(135deg,#f7fcff,#edf7fd); }
.kpi-slide-purchases::after { background: #17658f; }
.kpi-slide-payments { background: linear-gradient(135deg,#f7fffb,#effbf6); }
.kpi-slide-payments::after { background: #138168; }
.kpi-slide-future { background: linear-gradient(135deg,#fbf9ff,#f3f0fd); }
.kpi-slide-future::after { background: #6757c5; }
.kpi-slide-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.kpi-slide-kicker { font-size:.68rem !important; letter-spacing:.12em; font-weight:850; color:var(--muted); }
.kpi-slide > strong { display:block; font-size:1.48rem; margin:3px 0 4px; position:relative; z-index:1; }
.kpi-slide > small { display:block; color:var(--muted); }
.kpi-slide-insight {
  position:relative; z-index:1;
  display:flex; align-items:center; gap:7px;
  width:fit-content;
  margin-top:14px; padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(100,116,139,.10);
  color:#4b5f70; font-size:.75rem; font-weight:750;
}
.kpi-slide-insight i { font-size:17px; }
