/* ==========================================================================
   Lembar Buku Induk — Gaya Cetak (A4, standar arsip Kemenag)
   ========================================================================== */
.sheet{
  background:#fff;width:210mm;min-height:297mm;margin:0 auto 1.5rem;padding:14mm 15mm 16mm;
  box-shadow:0 18px 40px -24px rgba(15,23,42,.35);border:1px solid #e2e8f0;color:#111;
  font-family:'Times New Roman',Georgia,serif;font-size:10.5pt;position:relative;
}
.sheet *{box-sizing:border-box}
.sheet__kop{display:flex;gap:14px;align-items:center;border-bottom:3px double #111;padding-bottom:8px;margin-bottom:4px}
.sheet__kop img{width:74px;height:74px;object-fit:contain}
.sheet__kop-text{flex:1;text-align:center;line-height:1.28}
.sheet__kop-text .k1{font-size:11pt;letter-spacing:.5px;text-transform:uppercase}
.sheet__kop-text .k2{font-size:15pt;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.sheet__kop-text .k3{font-size:8.5pt}
.sheet__title{text-align:center;margin:14px 0 12px}
.sheet__title h2{font-size:13pt;margin:0;text-transform:uppercase;letter-spacing:1px;font-weight:700}
.sheet__title p{margin:2px 0 0;font-size:9.5pt}
.sheet h3.sec{
  font-size:10.5pt;margin:14px 0 6px;padding:4px 8px;background:#e8f5ee;border-left:4px solid #065f46;
  text-transform:uppercase;letter-spacing:.4px;
}
table.tbl{width:100%;border-collapse:collapse;font-size:9.7pt}
table.tbl th,table.tbl td{border:1px solid #444;padding:3.1px 5.5px;vertical-align:top}
table.tbl th{background:#f2f6f4;text-align:center;font-weight:700}
table.tbl td.label{background:#f8fafc;width:31%;font-weight:600}
table.tbl td.num{text-align:center}
table.tbl tr.total td{font-weight:700;background:#f8fafc}
.sheet__foot{display:flex;justify-content:space-between;margin-top:22px;font-size:9.8pt;text-align:center}
.sheet__sign{width:46%}
.sheet__sign .space{height:52px}
.sheet__sign .name{font-weight:700;text-decoration:underline}
.sheet__idgrid{display:grid;grid-template-columns:minmax(0,1fr) 34mm;gap:6mm;align-items:start}
.sheet__idgrid > div:first-child{min-width:0}
.sheet__photoside{display:flex;flex-direction:column;gap:3mm;align-items:center;margin-top:2mm}
.sheet__photo{
  width:32mm;height:42mm;border:1px solid #444;object-fit:cover;
  display:grid;place-items:center;font-size:8pt;color:#666;background:#fafafa;text-align:center;
}
.sheet__photo-cap{font-size:7.6pt;text-align:center;line-height:1.3;color:#333;letter-spacing:.3px}
@media screen and (max-width:900px){
  .sheet__idgrid{grid-template-columns:1fr}
  .sheet__photoside{margin:8px 0 12px}
}
.sheet__note{font-size:8pt;color:#555;margin-top:10px;border-top:1px dotted #999;padding-top:6px}
.predikat-legend{font-size:8.2pt;color:#444;margin:4px 0 0}

.print-toolbar{
  display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;justify-content:center;
  padding:.8rem 1rem;margin-bottom:1rem;background:#fff;border:1px solid var(--line);border-radius:12px;
}
@media print{
  @page{size:A4 portrait;margin:0}
  body{background:#fff !important}
  .sheet{box-shadow:none;border:none;margin:0;width:auto;min-height:auto;padding:12mm 14mm}
  .print-toolbar,.no-print{display:none !important}
  .sheet + .sheet{page-break-before:always}
  tr{page-break-inside:avoid}
}
@media screen and (max-width:900px){
  .sheet{width:100%;padding:16px;font-size:10pt}
}
