body {
  font-family: Arial, sans-serif;
  background: #f3f5f2;
  margin: 0;
  padding: 20px;
  color: #1f2a1f;
}
.container { max-width: 1100px; margin: auto; }
header h1 { color: #1f5d2a; }
.notice {
  background: #fffbe6;
  border-left: 4px solid #c9a500;
  padding: 10px;
  border-radius: 6px;
}
.tabs { margin: 20px 0; }
.tab, button {
  background: #2f7d32;
  color: white;
  border: none;
  padding: 10px 16px;
  margin-right: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.tab.active { background: #1f5d2a; }
.card {
  background: #f8fff6;
  border: 1px solid #7cb16d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}
label { display: flex; flex-direction: column; font-weight: bold; }
input, select {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #7cb16d;
  border-radius: 6px;
  background: #fff;
}
.help {
  margin-top: 15px;
  background: #fff;
  padding: 10px;
  border-left: 4px solid #2f7d32;
}
.hidden { display: none; }
.toolbar { margin-bottom: 30px; }
.results strong { font-size: 1.3rem; color: #1f5d2a; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
}
.small {
  color: #536253;
  font-size: 0.9rem;
  line-height: 1.5;
}
.pdf-form { display: none; }
.pdf-page {
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 12mm;
  background: white;
  color: #111;
  font-family: Arial, sans-serif;
  border: 2px solid #1f1f1f;
}
.pdf-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid #1f1f1f;
  padding-bottom: 8mm;
}
.pdf-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pdf-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.pdf-stamp {
  min-width: 32mm;
  height: 24mm;
  border: 2px solid #1f1f1f;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}
.pdf-row,
.pdf-box-grid {
  display: grid;
  grid-template-columns: 28mm 1fr 28mm 1fr;
  border-left: 1px solid #333;
  border-top: 1px solid #333;
  margin: 7mm 0;
}
.pdf-row span,
.pdf-row strong,
.pdf-box-grid div {
  min-height: 12mm;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 2mm;
}
.pdf-box-grid {
  grid-template-columns: 1fr 1fr;
}
.pdf-box-grid div {
  display: flex;
  flex-direction: column;
}
.pdf-box-grid span,
.pdf-row span {
  font-size: 10px;
  color: #333;
}
.pdf-page h2 {
  margin: 7mm 0 3mm;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pdf-table th,
.pdf-table td {
  border: 1px solid #333;
  padding: 2.5mm;
  vertical-align: top;
}
.pdf-table th {
  background: #e8efe6;
  text-align: left;
}
.pdf-table td:first-child,
.pdf-table td:last-child {
  width: 28mm;
  text-align: right;
  font-weight: bold;
}
.pdf-note {
  margin-top: 7mm;
  font-size: 10px;
}
.pdf-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20mm;
  margin-top: 18mm;
}
.pdf-sign span {
  border-top: 1px solid #333;
  padding-top: 2mm;
  text-align: center;
  font-size: 11px;
}
@media print {
  @page { size: A4; margin: 0; }
  body { background: white; padding: 0; }
  .container { display: none; }
  .pdf-form { display: block; }
  .pdf-page {
    width: 210mm;
    min-height: 297mm;
    border: none;
    margin: 0;
    page-break-after: always;
  }
}
