/* SiPARKAS — Print styles for laporan (sesuai STYLE.md) */

/* ===== Tampilan layar (preview) ===== */
@media screen {
  body {
    background: #eef2f7;
    margin: 0;
    padding: 24px;
    font-family: 'Inter', Arial, sans-serif;
    color: #0f172a;
  }
  .doc-sheet {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 40px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .10);
    border-radius: 10px;
  }
  .print-only { display: none; }
}

/* ===== Struktur laporan (cetak) ===== */
.doc-letterhead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 3px double #1e293b;
}
.doc-letterhead .logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.doc-letterhead .titles h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: .03em;
}
.doc-letterhead .titles .sub {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.doc-title {
  text-align: center;
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0 16px;
  background: #f8fafc;
}
.doc-meta b { color: #0f172a; }

.doc-no { width: 30px; text-align: center; color: #64748b; white-space: nowrap; }

.doc-sign {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.doc-sign .note {
  font-size: 10px;
  color: #94a3b8;
  max-width: 260px;
  line-height: 1.5;
}
.doc-sign .ttd {
  text-align: center;
  width: 220px;
  flex-shrink: 0;
}
.doc-sign .ttd .nm {
  margin-top: 56px;
  border-top: 1px solid #0f172a;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Tombol cetak (hanya layar) */
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 18px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, .35);
}
.btn-print:hover { background: #4338ca; }

/* ===== Media print ===== */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #000;
    background: #fff;
  }

  header, nav, .no-print, .hidden-print { display: none !important; }

  .doc-sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }

  .doc-letterhead {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 3px double #1e293b;
  }
  .doc-letterhead .logo {
    width: 46px; height: 46px; border-radius: 10px;
    background: #4f46e5; display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
  }
  .doc-letterhead .titles h1 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: .03em; }
  .doc-letterhead .titles .sub { font-size: 11px; color: #475569; margin-top: 2px; }

  .doc-title {
    text-align: center;
    margin: 16px 0 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .doc-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0 16px;
    background: #f8fafc;
  }
  .doc-meta b { color: #0f172a; }

  .doc-no { width: 30px; text-align: center; color: #64748b; white-space: nowrap; }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
  }
  th {
    background-color: #f1f5f9 !important;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    text-align: left;
  }
  td {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    vertical-align: top;
  }
  tr:nth-child(even) td { background-color: #f8fafc !important; }

  .doc-sign {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }
  .doc-sign .note { font-size: 10px; color: #94a3b8; max-width: 260px; line-height: 1.5; }
  .doc-sign .ttd { text-align: center; width: 220px; flex-shrink: 0; }
  .doc-sign .ttd .nm {
    margin-top: 56px;
    border-top: 1px solid #0f172a;
    padding-top: 6px;
    font-size: 11px;
    font-weight: 600;
  }
}