#form, #kosong { max-width: 980px; }
main { padding-top: 12px; }
fieldset { border: 1px solid var(--garis); border-radius: 8px; background: #fff; margin: 0 0 16px; padding: 12px 16px 14px; }
legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 200px 1fr; gap: 8px 12px; align-items: center; }
.grid2 label { font-weight: 600; }
input[type=text], input[type=number], select { padding: 6px 8px; border: 1px solid var(--garis); border-radius: 6px; font: inherit; width: 100%; max-width: none; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { border-bottom: 1px solid #eee; padding: 4px 6px; text-align: left; }
table.t td.kode { font: 12px ui-monospace, Consolas, monospace; color: #6b7280; width: 120px; }
table.t td.kkm { width: 90px; }
.catatan { color: #4b5563; font-size: 13px; margin: 0 0 8px; }

/* ---- Kosongkan nilai */
fieldset.bahaya { border-color: #fca5a5; }
fieldset.bahaya legend { color: #b91c1c; }
.pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; margin: 6px 0 10px; }
.pilih label, .baris-cek { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.pilih label.semua, .baris-cek.semua { font-weight: 700; }
.pilih input, .baris-cek input { width: auto; margin: 0; }
.kosong-sub { margin: 10px 0 4px; font-weight: 700; }
.kosong-aksi { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.dalam { margin-left: 22px; color: #4b5563; font-size: 13px; }
table.riwayat { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.riwayat th, table.riwayat td { border-bottom: 1px solid #eee; padding: 4px 6px; text-align: left; font-size: 13px; }
table.riwayat .sudah { color: #6b7280; }
#status.err, #status.ok, #status.warn { font-weight: 600; }
.ringkas-dlg { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.ringkas-dlg td, .ringkas-dlg th { border-bottom: 1px solid #eee; padding: 3px 6px; text-align: left; }
.ringkas-dlg td.n { text-align: right; }
.dlg-konfirm { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.dlg-konfirm input { width: 160px; }
.kotak-aman { background: #ecfdf5; border: 1px solid #86efac; border-radius: 6px; padding: 6px 10px; font-size: 13px; margin: 8px 0; }
