/* Header & footer situs (Ui\Bingkai). Dimuat di semua halaman depan. Warna identitas: teal #00aa88, ungu #966ae4. */
body { padding-top: 80px !important; }
.azd-hd { position: fixed; top: 0; left: 0; right: 0; z-index: 999999; height: 80px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: #fff; border-bottom: 2px solid #966ae4; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); font-family: inherit; }
.azd-hd *, .azd-ft * { box-sizing: border-box; }
.azd-hd-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.azd-hd-logo { height: 52px; width: auto; display: block; }
.azd-hd-nama { display: grid; gap: 3px; min-width: 0; }
.azd-hd-sub { font-size: 11.5px; color: #966ae4; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.azd-hd-judul { color: #00aa88; font-size: 22px; font-weight: 800; line-height: 1; white-space: nowrap; }
.azd-hd-kanan { display: flex; align-items: center; gap: 10px; }
.azd-hd-lonceng { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; text-decoration: none; }
.azd-hd-lonceng:hover { color: #00aa88; border-color: #99e2d3; }
.azd-hd-lonceng svg, .azd-hd-caret { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.azd-hd-angka { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.azd-hd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.azd-hd-akun { position: relative; }
.azd-hd-tombol { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; font: inherit; color: #334155; }
.azd-hd-tombol:hover, .azd-hd-tombol[aria-expanded=true] { background: #f8fafc; border-color: #e2e8f0; }
.azd-hd-salam { display: grid; text-align: right; line-height: 1.2; }
.azd-hd-salam strong { font-size: 14px; color: #1e293b; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azd-hd-salam small { font-size: 11.5px; color: #64748b; }
.azd-hd-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #00aa88; display: block; }
.azd-hd-caret { width: 16px; height: 16px; color: #94a3b8; }
.azd-hd-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); padding: 8px; display: grid; }
.azd-hd-menu[hidden] { display: none; }
.azd-hd-menu-user { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid #f1f5f9; margin-bottom: 6px; }
.azd-hd-menu-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.azd-hd-menu-user div { display: grid; min-width: 0; }
.azd-hd-menu-user strong { font-size: 14px; color: #1e293b; }
.azd-hd-menu-user small { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azd-hd-item { display: block; padding: 9px 10px; border-radius: 9px; color: #334155; text-decoration: none; font-size: 14px; }
.azd-hd-item:hover, .azd-hd-item:focus-visible { background: #f0fdfa; color: #00806a; }
.azd-hd-keluar { color: #dc2626; border-top: 1px solid #f1f5f9; margin-top: 6px; border-radius: 0 0 9px 9px; }
.azd-hd-keluar:hover { background: #fef2f2; color: #b91c1c; }
.azd-hd-versi { font-size: 11px; color: #94a3b8; text-align: center; padding: 6px 0 2px; }
@media (max-width: 768px) {
	body { padding-top: 64px !important; }
	html:root { --header-height: 64px; }
	.azd-hd { height: 64px; padding: 0 12px; }
	.azd-hd-logo { height: 40px; }
	.azd-hd-sub { font-size: 9.5px; letter-spacing: .6px; }
	.azd-hd-judul { font-size: 17px; }
	.azd-hd-salam, .azd-hd-caret { display: none; }
	.azd-hd-tombol { padding: 3px; }
}
@media (max-width: 380px) { .azd-hd-sub { display: none; } }

.azd-ft { background: #00aa88; color: #fff; margin-top: 50px; border-top: 4px solid #966ae4; padding: 18px 20px; font-family: inherit; }
.azd-ft-isi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 600; text-align: center; }
.azd-ft-rilis { width: min(560px, 92vw); max-height: 80vh; border: 0; border-radius: 16px; padding: 0; color: #1e293b; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.azd-ft-rilis::backdrop { background: rgba(15, 23, 42, .5); }
.azd-ft-rilis-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e2e8f0; font-size: 16px; }
.azd-ft-rilis-head button { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #64748b; }
.azd-ft-rilis ol { list-style: none; margin: 0; padding: 8px 18px 16px; }
.azd-ft-rilis li { padding: 10px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13.5px; text-align: left; }
.azd-ft-rilis li:last-child { border-bottom: 0; }
.azd-ft-rilis li small { color: #64748b; }
.azd-ft-rilis li span { font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; border-radius: 99px; padding: 2px 8px; }
.azd-ft-rilis li p { margin: 4px 0 0; color: #475569; line-height: 1.5; }
@media (max-width: 480px) { .azd-ft-isi { font-size: 12px; } }
@media print { .azd-hd, .azd-ft { display: none !important; } body { padding-top: 0 !important; } }

/* Footer tetap di dasar layar walau isi halaman pendek (tinggi header 80/64 + footer ±112). */
#page.site { min-height: calc(100vh - 80px - 112px); min-height: calc(100dvh - 80px - 112px); }
@media (max-width: 768px) { #page.site { min-height: calc(100vh - 64px - 106px); min-height: calc(100dvh - 64px - 106px); } }

/* Versi ERP: samar, di bawah halaman dashboard (bukan di footer). */
.azd-versi { margin: 28px 0 0; text-align: center; font-size: 11.5px; color: #94a3b8; }
.azd-versi button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.azd-versi button:hover { color: #64748b; background: #f1f5f9; }
