:root {
  --navy: #0D004C; --blue: #00AEEF; --deep-blue: #2E3192;
  --green: #3DAE49; --orange: #EB681D; --yellow: #FFB71A;
  --grey: #6D6E71; --black: #231F20; --bg: #f4f4f7;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--black);
  font-family: 'Urbanist','Helvetica Neue',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
header {
  background: white; border-bottom: 1px solid #ececf2;
  padding: 18px 28px; display: flex; justify-content: space-between; align-items: center;
  border-top: 6px solid var(--navy);
}
header .brand { display: flex; align-items: center; gap: 14px; }
header .brand .logo { height: 34px; width: auto; display: block; }
header .brand span { color: var(--grey); font-weight: 600; font-size: 14px; border-left: 1px solid #ececf2; padding-left: 14px; }
header .meta { color: var(--grey); font-size: 13px; }
main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px; flex: 1; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.card { padding: 18px; border-radius: 8px; color: white; }
.card .n { font-size: 32px; font-weight: 800; line-height: 1; }
.card .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; font-weight: 600; }
.panel {
  background: white; border-radius: 8px; padding: 18px; margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(13,0,76,0.06);
}
.panel h2 {
  margin: 0 0 12px 0; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey);
}
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); border-bottom: 2px solid var(--navy); font-weight: 700; }
td { padding: 10px; border-bottom: 1px solid #eceef4; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
a { color: var(--deep-blue); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters button {
  padding: 6px 12px; border: 1px solid #ddd; background: white; border-radius: 16px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.filters button.active { background: var(--navy); color: white; border-color: var(--navy); }
.chart-box { position: relative; height: 260px; }
.loading { text-align: center; padding: 60px 20px; color: var(--grey); }
footer {
  background: var(--navy); color: white; padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.actions { display: flex; gap: 8px; }
.btn {
  padding: 8px 16px; border-radius: 6px; background: rgba(255,255,255,0.12); color: white;
  border: 1px solid rgba(255,255,255,0.24); font-family: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,0.2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); }
.btn.primary:hover { background: #00c5ff; }
.footer-meta { letter-spacing: 4px; font-weight: 800; font-size: 14px; }
.toast {
  position: fixed; bottom: 80px; right: 24px; background: var(--navy); color: white;
  padding: 12px 18px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(8px); transition: all 0.2s; pointer-events: none;
  max-width: 360px; font-size: 13px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--orange); }
.toast.success { background: var(--green); }
@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; gap: 12px; }
  .actions { flex-wrap: wrap; justify-content: center; }
}
