@font-face {
  font-family: "Nova Round";
  src: url("vendor/nova-round.woff2") format("woff2");
  font-display: swap;
}
:root {
  --sui-accent: #1f56c9;
  --sui-font-brand: "Nova Round", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f7fa;
  color: #09293c;
  font:
    14px/1.5 Lato,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
.content {
  max-width: 1250px;
  margin: auto;
  padding: 26px clamp(18px, 3vw, 42px) 60px;
}
.breadcrumb {
  font-size: 12px;
  color: #637786;
  margin: 0 0 22px;
}
.breadcrumb span {
  margin: 0 10px;
  color: #aab8c1;
}
h1 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.heading p {
  margin: 0;
  color: #637786;
}
.period {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.period label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
}
.period label span {
  font-weight: 400;
}
.period input,
.period select {
  font: inherit;
  font-size: 14px;
  color: #09293c;
  background: white;
  border: 1px solid #ccd7df;
  border-radius: 6px;
  padding: 8px;
  min-height: 38px;
}
.sui-main-btn {
  background: #1f56c9 !important;
  color: white !important;
}
.panel {
  background: white;
  border: 1px solid #dde3e8;
  border-radius: 12px;
  padding: 24px;
}
.state {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.state p {
  color: #637786;
  max-width: 540px;
}
.state .sui-btn {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  background: white;
  border: 1px solid #dde3e8;
  border-radius: 12px;
  padding: 23px;
}
.metric p {
  margin: 0;
  color: #637786;
  font-size: 13px;
}
.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  margin-top: 8px;
  font-weight: 800;
}
.table-wrap {
  overflow: auto;
  padding: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fafbfd;
  color: #637786;
}
th,
td {
  padding: 16px 21px;
  border-bottom: 1px solid #e8edf1;
}
tr:last-child td {
  border-bottom: 0;
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  padding: 20px;
  font-size: 16px;
  font-weight: 700;
}
.footnote {
  font-size: 12px;
  color: #637786;
  margin-top: 22px;
}
.error {
  color: #a72935;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #e2e8ef;
  border-top-color: #1f56c9;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 16px;
  }
  .period {
    gap: 9px;
  }
  .content {
    padding-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.user-context { width: 100%; margin-top: 8px; padding: 18px; border: 1px solid #ccd7df; border-radius: 8px; }
.user-context legend { font-weight: 700; }
.user-context p { margin: 0 0 12px; color: #637786; }
.context-selectors { display: flex; flex-wrap: wrap; gap: 12px; }
.context-selectors label { flex: 1 1 180px; min-width: 0; }
.context-selectors select { width: 100%; }
[hidden] { display: none !important; }
