/* style.css — Jadwal Sidang SIMPERA, PA Brebes.
 * Lembar dibuat semirip mungkin dengan halaman SIMPERA aslinya:
 * putih, teks hitam, tabel bergaris tipis, judul di tengah. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
  color: #111;
  font-size: 14px;
}

/* ---- toolbar (tidak ikut tercetak) ---- */
.toolbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 12px 16px;
}
.toolbar-title { font-size: 18px; font-weight: bold; }
.toolbar-title span { font-size: 13px; font-weight: normal; color: #555; }
.toolbar-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
  margin-top: 10px;
}
.toolbar-form label { font-size: 13px; color: #333; }
.toolbar-form input, .toolbar-form select {
  display: block; margin-top: 2px; padding: 8px; font-size: 14px;
  border: 1px solid #bbb; border-radius: 4px; background: #fff;
}
.btn {
  padding: 8px 16px; font-size: 14px; cursor: pointer;
  border: 1px solid #999; border-radius: 4px; background: #eee;
}
.btn:hover { background: #ddd; }
.link { font-size: 13px; color: #1a5fb4; align-self: center; }
.status { margin-top: 10px; font-size: 13px; color: #555; }
.status.ok { color: #1a7a2e; }
.status.error {
  color: #b00020; background: #fdecea; border: 1px solid #f5c6cb;
  border-radius: 4px; padding: 8px 10px;
}

/* ---- lembar ---- */
.sheet-wrap { max-width: 1100px; margin: 16px auto; padding: 0 12px 32px; }
#cetak {
  background: #fff; padding: 16px 20px;
  border: 1px solid #ddd; overflow-x: auto;
}
.sheet-title {
  text-align: center; color: #000; font-size: 15px; font-weight: bold;
  margin: 4px 0;
}
.sheet-sub { text-align: center; color: #000; font-size: 12px; margin: 4px 0 12px; }
.muted { color: #777; text-align: center; }
.empty { text-align: center; color: #000; font-size: 14px; }
.diag {
  border: 1px solid #999; background: #fff8e1; padding: 10px 14px;
  margin: 10px 0; text-align: left; font-size: 12px; color: #333;
}
.sheet-foot { text-align: center; color: #666; font-size: 12px; margin-top: 8px; }

.head-table { border: none; width: 100%; border-collapse: collapse; }
.head-table td { border: none; font-size: 12px; vertical-align: top; }
.head-table .faktor { font-size: 11px; }

.data-table { border-collapse: collapse; width: 100%; }
.data-table th, .data-table td {
  border: 1px solid #555; padding: 3px 5px; font-size: 11px;
  text-align: center; vertical-align: middle;
}
.data-table th { font-weight: bold; background: #f7f7f7; }
.data-table td { font-size: 11px; }

.sign-table { border: none; width: 100%; border-collapse: collapse; }
.sign-table td { border: none; font-size: 12px; }

/* ---- cetak: hanya lembar yang keluar ---- */
@media print {
  body { background: #fff; }
  .toolbar, .sheet-foot { display: none !important; }
  .sheet-wrap { max-width: none; margin: 0; padding: 0; }
  #cetak { border: none; padding: 0; overflow: visible; }
  .diag { display: none !important; }
}

/* ---- layar kecil: tabel boleh geser ke samping ---- */
@media (max-width: 640px) {
  .toolbar-title { font-size: 16px; }
  #cetak { padding: 10px 8px; }
}
