/* Gaya bersama halaman alat: beranda, generator tamu, dasbor RSVP, admin */
:root {
  --bg: #f5f2ec; --bg2: #ebe5da; --kartu: #ffffff; --teks: #1e2230; --redup: #6b6f7b; --garis: #e2dccf;
  --utama: #2e3b55; --utama2: #22304a; --emas: #b8955a; --emas-muda: #f3e8d3; --hijau: #2e7d4f; --merah: #b8402f;
  --radius: 14px; --bayang: 0 10px 30px -18px rgba(30,34,48,.35);
  --f-judul: 'Cormorant Garamond', Georgia, serif; --f-isi: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.alat { margin: 0; background: var(--bg); color: var(--teks); font-family: var(--f-isi); font-size: 15px; line-height: 1.6; }
a { color: var(--utama); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; }
.wadah { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wadah.sempit { max-width: 760px; }
.tengah { text-align: center; padding: 80px 16px; }

.kepala-alat { background: var(--utama); color: #fff; }
.kepala-alat .wadah { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.merek { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.merek img { width: 30px; height: 30px; }
.merek b { font-family: var(--f-judul); font-size: 22px; font-weight: 600; }
.kepala-alat nav { display: flex; gap: 6px; flex-wrap: wrap; }
.kepala-alat nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.kepala-alat nav a:hover { background: rgba(255,255,255,.1); color: #fff; }

.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--utama); background: var(--utama); color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.tombol:hover { background: var(--utama2); }
.tombol:active { transform: translateY(1px); }
.tombol.emas { background: var(--emas); border-color: var(--emas); }
.tombol.emas:hover { background: #a6834a; }
.tombol.garis { background: transparent; color: var(--utama); }
.tombol.garis:hover { background: rgba(46,59,85,.06); }
.tombol.hijau { background: #1f9d55; border-color: #1f9d55; }
.tombol.hijau:hover { background: #198347; }
.tombol.bahaya { background: transparent; color: var(--merah); border-color: rgba(184,64,47,.4); }
.tombol.bahaya:hover { background: rgba(184,64,47,.07); }
.tombol.kecil { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.tombol.penuh { width: 100%; }
.tombol[disabled] { opacity: .55; cursor: not-allowed; }
.tombol svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--radius); padding: 20px; box-shadow: var(--bayang); }
.kartu + .kartu { margin-top: 16px; }
.kartu h2 { margin: 0 0 12px; font-size: 18px; }

label.isian { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--teks); }
label.isian small { display: block; font-weight: 400; color: var(--redup); font-size: 12px; margin-top: 3px; }
.isian input, .isian select, .isian textarea, input.isi, select.isi, textarea.isi { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--garis); background: #fff; color: var(--teks); font: inherit; font-size: 15px; outline: none; transition: border .15s, box-shadow .15s; }
.isian input:focus, .isian select:focus, .isian textarea:focus, input.isi:focus, select.isi:focus, textarea.isi:focus { border-color: var(--emas); box-shadow: 0 0 0 3px rgba(184,149,90,.2); }
.isian textarea, textarea.isi { resize: vertical; min-height: 90px; }
.baris { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.baris3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .baris, .baris3 { grid-template-columns: 1fr; gap: 0; } }

.pil { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg2); color: var(--redup); }
.pil.hijau { background: #e3f3e9; color: var(--hijau); }
.pil.merah { background: #f8e4e0; color: var(--merah); }
.pil.emas { background: var(--emas-muda); color: #8a6a35; }

.pesan { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.pesan.galat { background: #fbe9e6; color: var(--merah); }
.pesan.ok { background: #e3f3e9; color: var(--hijau); }
.pesan.info { background: var(--emas-muda); color: #6d5226; }
.pesan:empty { display: none; }

.tabel-wadah { overflow-x: auto; border: 1px solid var(--garis); border-radius: var(--radius); background: #fff; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th, .tabel td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--garis); vertical-align: top; }
.tabel th { background: #faf8f4; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--redup); white-space: nowrap; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel .aksi { display: flex; gap: 6px; flex-wrap: wrap; }

.statistik-alat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.statistik-alat div { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 14px; }
.statistik-alat b { display: block; font-size: 26px; line-height: 1.1; color: var(--utama); }
.statistik-alat span { font-size: 12.5px; color: var(--redup); }
@media (max-width: 640px) { .statistik-alat { grid-template-columns: repeat(2, 1fr); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1e2230; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.tampil { opacity: 1; transform: translate(-50%, 0); }

.kaki-alat { text-align: center; color: var(--redup); font-size: 13px; padding: 30px 16px 40px; }
.tersembunyi { display: none !important; }
.redup { color: var(--redup); }
.kecil { font-size: 13px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.antara { justify-content: space-between; }
.mt { margin-top: 16px; }
.mb0 { margin-bottom: 0; }
.merek b { white-space: nowrap; }
@media (max-width: 760px) {
  .kepala-alat .wadah { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 6px; }
  .merek b { font-size: 19px; }
  .kepala-alat nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; scrollbar-width: none; }
  .kepala-alat nav a { white-space: nowrap; font-size: 13.5px; }
}

[hidden] { display: none !important; }
