/* Letak za ispis: jedna stranica A4 */
@page {
  size: A4;
  margin: 14mm;
}

:root {
  --ink: #1b1f27;
  --muted: #586070;
  --line: #d8d4ca;
  --accent: #b3202c;
  --ok: #1f6b3a;
  --navy: #12305c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #e9e6df;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10.5pt;
  line-height: 1.4;
}

.sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 12px auto;
  padding: 14mm;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.toolbar {
  max-width: 210mm;
  margin: 12px auto 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.toolbar button {
  font: inherit;
  font-weight: 600;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.eyebrow {
  margin: 0;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 2mm 0 1mm;
  font-family: var(--serif);
  font-size: 34pt;
  line-height: 1.05;
}

h2 {
  margin: 0 0 2mm;
  font-family: var(--serif);
  font-size: 14pt;
}

.lead {
  margin: 0 0 5mm;
  font-size: 12pt;
  color: var(--muted);
}

.row {
  display: grid;
  gap: 4mm;
  margin-bottom: 5mm;
}

.row.three { grid-template-columns: repeat(3, 1fr); }
.row.four { grid-template-columns: repeat(4, 1fr); }
.row.two { grid-template-columns: repeat(2, 1fr); }

.box {
  border: 0.4mm solid var(--line);
  border-top: 1.2mm solid var(--ink);
  border-radius: 1.5mm;
  padding: 3mm 3.5mm;
}

.box strong.big {
  display: block;
  font-family: var(--serif);
  font-size: 26pt;
  line-height: 1;
  margin-bottom: 1mm;
}

.box.good { border-top-color: var(--ok); }
.box.good strong.big { color: var(--ok); }
.box.mid { border-top-color: var(--navy); }
.box.mid strong.big { color: var(--navy); }
.box.bad { border-top-color: var(--accent); }
.box.bad strong.big { color: var(--accent); }

.change {
  font-family: var(--serif);
  font-size: 22pt;
  font-weight: 700;
  margin: 1mm 0;
}

.change .old { color: #8a8f9a; text-decoration: line-through; font-weight: 400; }
.change .new { color: var(--ok); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
}

th, td {
  text-align: left;
  padding: 1.4mm 2mm;
  border-bottom: 0.3mm solid var(--line);
}

th { font-size: 8pt; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.hr td { color: var(--accent); font-weight: 700; }
tr.prop td { color: var(--ok); font-weight: 700; }

.small {
  font-size: 8pt;
  color: var(--muted);
}

.foot {
  margin-top: 5mm;
  padding-top: 3mm;
  border-top: 0.4mm solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 6mm;
  font-size: 9.5pt;
}

.foot strong { font-size: 11pt; }

@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { margin: 0; width: auto; min-height: 0; padding: 0; box-shadow: none; }
}
