* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f9f6ef;
  color: #1f2937;
}

/* ── Nav bar ── */
.nav-bar {
  background: #1a1a1a;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  display: block;
  height: 18px;
  width: auto;
}

/* ── Page layout ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header-text h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
}

.page-header-text p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.page-header input[type="search"] {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  width: 240px;
  background: #fff;
}

/* ── Status banner ── */
.status {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Table section ── */
.table-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

td:nth-child(5),
td:nth-child(6) {
  white-space: nowrap;
}

td.empty-results {
  text-align: center;
  color: #6b7280;
}

tbody tr:hover {
  background: #f9f6ef;
}

/* ── Pager ── */
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.pager button {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.pager button:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Download button ── */
a.download-link {
  display: inline-block;
  background: #8bc53f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}

a.download-link:hover {
  background: #7ab535;
  text-decoration: none;
}
