@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --ink: #1a1610;
  --muted: #7a6e5f;
  --line: #d5c9b5;
  --paper: #f5f0e8;
  --card: #fffdf8;
  --gold: #b98d3d;
  --gold-dark: #7a5a22;
  --hero-bg: #11151c;
  --needs-bg: #fff0e8;
  --needs-ink: #8a3a12;
  --draft-bg: #edf4ee;
  --draft-ink: #245a32;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Site Header ─────────────────────────────── */

.site-header {
  background: var(--hero-bg);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header img {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.site-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(230,220,200,.8);
  margin: 0;
}

.gold-rule {
  height: 0.5px;
  background: linear-gradient(to right,
    transparent, rgba(201,162,39,.4) 15%,
    #c9a227 50%, rgba(201,162,39,.4) 85%, transparent);
}

/* ── Toolbar ─────────────────────────────────── */

.toolbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.report-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.search-wrap { flex: 1; max-width: 400px; }

.search-input {
  width: 100%;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--gold); background: #fffdf8; }

/* ── Table ───────────────────────────────────── */

.table-wrap { padding: 28px 40px 56px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
}

thead tr { background: var(--hero-bg); }

th {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,162,39,.85);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 13px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(213,201,181,.4);
  vertical-align: middle;
  color: var(--ink);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #faf6ef; }

td.report-id-cell {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

td.date-cell {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

td.warnings-cell {
  font-size: 12px;
  color: var(--needs-ink);
  max-width: 260px;
}

/* ── Status Badges ───────────────────────────── */

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status.draft  { background: var(--draft-bg); color: var(--draft-ink); }
.status.needs  { background: var(--needs-bg); color: var(--needs-ink); }

/* ── Action Links ────────────────────────────── */

td.actions { white-space: nowrap; }

td.actions a {
  color: var(--gold-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-right: 12px;
  transition: color .15s;
}

td.actions a:last-child { margin-right: 0; }
td.actions a:hover { color: var(--gold); }

/* ── No Results ──────────────────────────────── */

.no-results {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 900px) {
  .site-header, .toolbar, .table-wrap { padding-left: 18px; padding-right: 18px; }
  .site-header h1 { font-size: 15px; }
  table { display: block; overflow-x: auto; }
}
