/* ===== A4 PAGE ===== */
.report-page {
  width: 210mm;
  min-height: 297mm;
  padding: 20mm 14mm; /* top-bottom 20mm, left-right 14mm */
  margin: auto;
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #000;
  box-sizing: border-box;
  border: 2px solid #004080;
  border-radius: 6px;
  position: relative;
}

/* ===== HEADER ===== */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #004080;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.logo-left, .logo-right {
  height: 60px; /* slightly bigger logos */
}

.header-title {
  text-align: center;
  flex-grow: 1;
  line-height: 1.3;
}

.header-title h1 {
  margin: 0;
  color: #c0392b; /* Red */
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

.header-title h2 {
  margin: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #004080;
}

.report-date {
  margin: 6px 0;
  font-size: 14px;
  font-weight: bold;
  color: #e74c3c;
  background: #fceae9;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== GRID CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.card {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
  font-size: 11px;
  background: #fefefe;
  border-radius: 4px;
  box-shadow: inset 0 0 2px #ddd;
}

.card b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #003366;
}

/* ===== MODERN TABLES ===== */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 11px;
}

.modern-table th {
  background: #004080;
  color: #fff;
  padding: 5px;
  font-size: 11px;
}

.modern-table td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
}

/* ZEBRA STRIPE FOR TABLES */
.modern-table tbody tr:nth-child(odd) { background: #f9f9f9; }

/* ===== FOOTER ===== */
.report-footer {
  text-align: center;
  font-size: 10px;
  margin-top: 10px;
  padding: 6px;
  border-top: 1px solid #ccc;
  color: #fff;
  background: #004080; /* footer background */
  border-radius: 0 0 6px 6px;
}

/* ===== BUTTONS OUTSIDE REPORT ===== */
.report-buttons {
  text-align: center;
  margin: 10px 0;
}

.report-buttons button, .report-buttons a.button {
  margin: 2px 5px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #004080;
  background: #004080;
  color: #fff;
}

.report-buttons button:hover, .report-buttons a.button:hover {
  background: #003366;
  border-color: #003366;
}

/* ===== PRINT STYLES ===== */
@media print {
  body * { visibility: hidden; }
  .report-page, .report-page * { visibility: visible; }
  .report-page { position: absolute; top: 0; left: 0; width: 100%; margin: 0; }
  .report-buttons { display: none !important; }
}
