.stats-summary,
.stats-detail { color: #18324a; }

.stats-summary {
  background: #fff;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  margin-top: 16px;
  padding: 20px 22px;
}

.stats-summary__heading,
.stats-detail__top,
.stats-card__heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.stats-summary h2,
.stats-card h2 { font-size: 18px; letter-spacing: -.04em; margin: 5px 0 0; }
.stats-summary__heading p,
.stats-detail__top p { color: #718294; font-size: 11px; margin: 4px 0 0; }
.stats-source { color: #287365; font-size: 11px; font-weight: 700; }
.stats-source i { background: #38a98f; border-radius: 50%; display: inline-block; height: 6px; margin-right: 6px; width: 6px; }

.stats-detail-link {
  color: #205fa7;
  font-size: 12px;
  font-weight: 700;
  padding: 6px;
}

.stats-detail-link:hover { text-decoration: underline; }
.stats-detail-link span { font-size: 18px; margin-left: 4px; vertical-align: -1px; }

.stats-summary__metrics,
.stats-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 17px;
}

.stats-summary__metrics > div,
.stats-kpis > div {
  background: #f5f8fb;
  border-radius: 9px;
  display: grid;
  min-width: 0;
  padding: 14px 16px;
}

.stats-summary__metrics span,
.stats-kpis span { color: #687a8d; font-size: 11px; }
.stats-summary__metrics strong,
.stats-kpis strong { font-size: 25px; letter-spacing: -.04em; margin-top: 6px; }
.stats-summary__metrics small,
.stats-kpis small { color: #738497; font-size: 10px; margin-top: 4px; }
.stats-summary__metrics .stats-page-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats-empty,
.stats-no-data { background: #f6f8fa; border-radius: 10px; color: #607386; padding: 24px; text-align: center; }
.stats-empty p { margin: 6px 0 0; }

.stats-detail__top { margin: -5px 0 16px; }
.stats-period { background: #e9eef4; border-radius: 8px; display: inline-flex; padding: 3px; }
.stats-period button { border-radius: 6px; color: #657689; font-size: 12px; padding: 7px 13px; }
.stats-period button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(20, 48, 73, .12); color: #1e5e9e; font-weight: 700; }
.stats-kpis { margin: 0 0 15px; }
.stats-kpis > div { background: #fff; border: 1px solid #dce5ed; }

.stats-detail-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-card { background: #fff; border: 1px solid #dce5ed; border-radius: 12px; min-width: 0; padding: 20px; }
.stats-card--wide { grid-column: 1 / -1; }
.stats-card__heading { margin-bottom: 19px; }
.stats-card__heading h2 { margin: 0; }
.stats-card__heading span { color: #718294; font-size: 11px; }

.stats-bars { align-items: end; display: flex; gap: 12px; height: 155px; overflow-x: auto; padding: 23px 4px 0; }
.stats-bar { align-items: center; align-self: stretch; color: #718294; display: grid; flex: 1 0 42px; font-size: 10px; grid-template-rows: 16px 1fr 18px; justify-items: center; min-width: 42px; }
.stats-bar i { align-self: end; background: linear-gradient(#4e9ad9, #2676b7); border-radius: 5px 5px 2px 2px; display: block; max-width: 32px; min-height: 8px; width: 72%; }
.stats-bar__value { color: #405c75; font-weight: 700; }
.stats-bars.is-single { justify-content: flex-start; }
.stats-bars.is-single .stats-bar { flex: 0 0 84px; }
.stats-chart-note,
.stats-card__note { color: #758698; font-size: 10px; line-height: 1.5; margin: 12px 0 0; }

.stats-source-list,
.stats-page-list { display: grid; gap: 0; }
.stats-source-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
.stats-source-row + .stats-source-row,
.stats-page-list > div + div { border-top: 1px solid #ebf0f4; }
.stats-source-row strong,
.stats-source-row small { display: block; }
.stats-source-row strong { font-size: 13px; }
.stats-source-row small { color: #718294; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-source-row__amount { text-align: right; }
.stats-source-row__amount b { font-size: 14px; }
.stats-source-row__amount span { color: #718294; font-size: 10px; margin-left: 3px; }
.stats-source-track { background: #edf1f5; border-radius: 3px; grid-column: 1 / -1; height: 5px; overflow: hidden; }
.stats-source-track i { background: #3c8cc9; display: block; height: 100%; }

.stats-page-list > div { align-items: center; display: grid; gap: 10px; grid-template-columns: 22px minmax(0, 1fr) auto; padding: 12px 0; }
.stats-page-list span { background: #eef3f8; border-radius: 5px; color: #607386; display: grid; font-size: 10px; height: 22px; place-items: center; }
.stats-page-list strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-page-list strong small { color: #7a8b9b; display: block; font-size: 9px; font-weight: 500; margin-top: 2px; }
.stats-page-list b { color: #365b79; font-size: 12px; }

.stats-context { background: #eef4f8; border-left: 3px solid #7298b6; border-radius: 8px; color: #51697e; margin-top: 15px; padding: 15px 17px; }
.stats-context strong { color: #29465d; font-size: 12px; }
.stats-context p { font-size: 11px; line-height: 1.65; margin: 5px 0; }
.stats-context span { color: #728598; font-size: 10px; }
.stats-context > div { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.stats-context a { color: #205fa7; flex: none; font-size: 10px; font-weight: 700; }
.stats-context a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .stats-summary__heading,
  .stats-detail__top { align-items: flex-start; gap: 12px; }
  .stats-summary__metrics,
  .stats-kpis { gap: 6px; }
  .stats-summary__metrics > div,
  .stats-kpis > div { padding: 11px 10px; }
  .stats-summary__metrics strong,
  .stats-kpis strong { font-size: 21px; }
  .stats-summary__metrics .stats-page-name { font-size: 13px; }
  .stats-detail-grid { grid-template-columns: 1fr; }
  .stats-card--wide { grid-column: auto; }
}

@media (max-width: 480px) {
  .stats-summary { padding: 17px 14px; }
  .stats-summary h2 { font-size: 16px; }
  .stats-detail-link { font-size: 0; }
  .stats-detail-link span { font-size: 21px; }
  .stats-summary__metrics span,
  .stats-kpis span { font-size: 10px; }
  .stats-summary__metrics small { display: none; }
  .stats-card { padding: 16px; }
  .stats-context > div { align-items: flex-start; flex-direction: column; gap: 6px; }
}
