:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182537;
  background: #f4f6f9;
  font-size: 14px;
  font-synthesis: none;
  --muted: #718095;
  --border: #e4e9f0;
  --blue: #2563eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled,
select:disabled {
  cursor: default;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.2;
}
h2 {
  font-size: 14px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 12px;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #182537;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-light {
  color: #8491a3;
  font-weight: 400;
}
.account {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
.subtle {
  border: 1px solid var(--border);
  background: #fff;
  color: #536276;
  padding: 7px 12px;
  border-radius: 6px;
}
.subtle:hover {
  background: #f4f6f9;
}
.dashboard {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 4vw;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .muted {
  margin-top: 9px;
  font-size: 13px;
}
.source-label {
  font-size: 11px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 8px 13px;
  white-space: nowrap;
}
.source-label:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 7px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.date-range-field input {
  cursor: pointer;
}
.filter-info {
  grid-column: 1/-1;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.filter-info strong {
  color: #536276;
  font-weight: 600;
}
.daterangepicker {
  font-family: inherit;
  border-color: var(--border);
  border-radius: 9px;
  box-shadow: 0 10px 35px #18253720;
}
.daterangepicker .calendar-table td,
.daterangepicker .calendar-table th {
  padding: 3px;
}
.daterangepicker .calendar-table tbody tr:hover {
  background: transparent;
}
.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background: var(--blue);
}
.daterangepicker .drp-buttons button {
  height: 32px;
  margin-left: 8px;
  font-size: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #536276;
  min-width: 0;
}
input,
select {
  border: 1px solid #dbe1ea;
  background: #fff;
  color: #25344a;
  border-radius: 6px;
  padding: 9px 10px;
  height: 38px;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #93b4fb;
  border-color: var(--blue);
}
.primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  color: white;
  font-weight: 600;
  height: 38px;
  white-space: nowrap;
}
.primary:hover {
  background: #1d4ed8;
}
.primary:disabled {
  opacity: 0.5;
}
.notice {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 22px;
  line-height: 1.6;
}
.notice.error {
  color: #b42318;
  border: 1px solid #fecaca;
  background: #fff4f3;
  padding: 10px 12px;
  border-radius: 7px;
}
.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: loading-spin 0.75s linear infinite;
}
.notice.is-loading,
.filter-info.is-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice.is-loading {
  padding: 14px 16px;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
}
.primary.is-loading:disabled {
  cursor: progress;
  opacity: 0.85;
}
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid #3b82f6;
  border-radius: 9px;
  padding: 20px;
  min-width: 0;
}
.kpi:nth-child(2) {
  border-top-color: #10b981;
}
.kpi-top {
  border-top-color: #94a3b8;
}
.kpi p {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.kpi strong {
  display: block;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.kpi strong.compact {
  font-size: 20px;
  min-height: 36px;
  letter-spacing: -0.4px;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 10px;
}
.rankings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.card-heading {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
}
.card-heading .muted {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  white-space: nowrap;
  padding: 6px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 600;
  color: #7a8798;
  background: #fafbfd;
  font-size: 10px;
  white-space: nowrap;
}
td,
th {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f3f7;
}
td {
  max-width: 210px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8faff;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.balance-value.negative {
  color: #b42318;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 35px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.chart-body {
  height: 310px;
  padding: 20px;
}
.daily {
  margin-bottom: 20px;
}
.daily .chart-body {
  height: 320px;
}
.accessible-data summary {
  cursor: pointer;
  padding: 15px 18px;
  color: #536276;
  font-size: 12px;
  font-weight: 600;
}
.accessible-data details {
  border-top: 1px solid var(--border);
}
.hourly-data {
  max-height: 360px;
}
.footnote {
  margin: 16px 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer {
  padding: 20px 4vw;
  border-top: 1px solid var(--border);
  color: #8491a3;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: 100%;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 15% 0%, #e6eefc, transparent 60%), #f4f6f9;
  padding: 24px;
}
.login-panel {
  width: 100%;
  max-width: 430px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 50px #25344a09;
}
.login-panel > .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 23px;
  margin-bottom: 28px;
}
.login-panel h1 {
  font-size: 29px;
  line-height: 1.3;
}
.login-panel .muted {
  margin-top: 13px;
  font-size: 13px;
}
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}
.login-panel label {
  font-size: 12px;
}
.login-panel input {
  height: 42px;
}
.login-panel .primary {
  width: 100%;
  margin-top: 5px;
  height: 43px;
  justify-content: space-between;
}
.login-panel .primary.is-loading {
  justify-content: center;
}
.login-foot {
  margin-top: 28px;
  color: #8a97a8;
  font-size: 10px;
  text-align: center;
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(1000px, 94vw);
  max-height: 85vh;
  color: #182537;
}
dialog::backdrop {
  background: #15243b70;
  backdrop-filter: blur(3px);
}
dialog > .table-wrap {
  max-height: 55vh;
}
.modal-tools {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.modal-tools label:first-child {
  flex: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  .dashboard {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 1250px) {
  .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .filters .date-range-field {
    grid-column: span 2;
  }
  .filters > .primary {
    grid-column: 1/-1;
  }
  .kpi {
    padding: 16px;
  }
  .kpi strong {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 20px;
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .account {
    gap: 10px;
  }
  .account > span {
    max-width: 120px;
    overflow-wrap: anywhere;
  }
  .dashboard {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: start;
  }
  .source-label {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .daterangepicker {
    position: fixed;
    top: 16px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
  .daterangepicker::before,
  .daterangepicker::after {
    display: none;
  }
  .daterangepicker .ranges ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daterangepicker .drp-calendar {
    float: none;
    width: 100%;
    max-width: none;
  }
  .filters .primary {
    grid-column: 1/-1;
  }
  .kpis {
    gap: 12px;
  }
  .kpi strong {
    font-size: 23px;
  }
  .chart-body {
    height: 280px;
    padding: 12px;
  }
  .brand-light {
    display: none;
  }
  .modal-tools {
    flex-wrap: wrap;
  }
  .modal-tools label:first-child {
    flex: 1 0 100%;
  }
  .login-panel {
    padding: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading::before {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
