/* ============================================================
   LynPDF Test Suite — Shared Stylesheet
   ============================================================ */

@page {
  size: A4;
  margin: 15mm;
}

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ---- Typography ---- */
h1 { font-size: 26px; font-weight: bold; color: #1a1a2e; margin-bottom: 12px; }
h2 { font-size: 20px; font-weight: bold; color: #16213e; margin-bottom: 10px; border-bottom: 2px solid #dee2e6; padding-bottom: 6px; }
h3 { font-size: 16px; font-weight: bold; color: #0f3460; margin-bottom: 8px; }
p  { margin-bottom: 10px; }

/* ---- Test Section ---- */
.test-section {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #dee2e6;
  background-color: #fafafa;
  page-break-inside: avoid;
}

.test-section h3 {
  margin-bottom: 12px;
  padding: 8px 12px;
  background-color: #e8f0fe;
  color: #0f3460;
}

.test-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.test-expect {
  font-size: 11px;
  color: #856404;
  background-color: #fff3cd;
  padding: 6px 10px;
  margin-top: 8px;
  border-left: 3px solid #ffc107;
}

/* ---- Layout Helpers ---- */
.row { display: flex; flex-direction: row; margin-bottom: 12px; }
.col { flex: 1; padding: 8px; }
.gap-8 { padding: 4px; }
.page-break { page-break-before: always; }

/* ---- Box Helpers ---- */
.box {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  page-break-inside: avoid;
}

.box-sm {
  padding: 8px;
  margin-bottom: 6px;
  border: 1px solid #ddd;
  page-break-inside: avoid;
}

/* ---- Color Helpers ---- */
.bg-light { background-color: #f8f9fa; }
.bg-blue  { background-color: #cce5ff; }
.bg-green { background-color: #d4edda; }
.bg-red   { background-color: #f8d7da; }
.bg-yellow { background-color: #fff3cd; }
.bg-dark  { background-color: #1a1a2e; color: #fff; }
.text-white { color: #fff; }
.text-muted { color: #6c757d; }
.text-danger { color: #dc3545; }
.text-success { color: #28a745; }

/* ---- Table ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.table th, .table td {
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  text-align: left;
}
.table th {
  background-color: #1a1a2e;
  color: #fff;
  font-weight: bold;
}
.alt-row td { background-color: #f8f9fa; }
