:root {
  --blue: #006eab;
  --blue-dark: #005687;
  --red: #e53517;
  --orange: #ce7104;
  --ink: #111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --bg: #f4f5f6;
  --white: #fff;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--white);
}
.brand img {
  display: block;
  height: 52px;
  width: auto;
}
.header-label {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 72px 24px 80px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}
.hero p {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font: 700 13px/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-solid {
  background: var(--white);
  color: var(--blue);
}
.btn-solid:hover { background: #f3f8fc; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.file-btn {
  position: relative;
  overflow: hidden;
}
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 64px;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: -36px auto 48px;
  flex: 1;
}

.stats[hidden] { display: none !important; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stats article {
  background: var(--white);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stats strong {
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
}

.panel {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.toolbar[hidden] { display: none !important; }
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
#search {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font: 500 14px var(--font);
}
#search:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.check input { accent-color: var(--blue); }

.dropzone {
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.dropzone.drag {
  background: #eaf4fb;
  outline: 2px dashed var(--blue);
  outline-offset: -8px;
}
.status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

.table-wrap[hidden] { display: none !important; }
.table-wrap { overflow: auto; max-height: 62vh; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
th {
  position: sticky;
  top: 0;
  background: #f7fafc;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
td:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.cat-zand td:nth-child(4) { color: var(--orange); }
.muted { color: var(--muted); }

.site-footer {
  margin-top: auto;
  background: #111;
  color: #cfcfcf;
  text-align: center;
}
.stripes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 8px;
}
.stripes span:nth-child(1) { background: var(--blue); }
.stripes span:nth-child(2) { background: var(--red); }
.stripes span:nth-child(3) { background: var(--orange); }
.site-footer p {
  margin: 0;
  padding: 18px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.overlay[hidden] { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 110, 171, .86);
  color: var(--white);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 20;
}

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .brand img { height: 40px; }
  .hero { padding: 48px 20px 64px; }
}
